forked from Tencent/tdesign-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: optimize test configuration and documentation
- Loading branch information
Showing
7 changed files
with
35 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
declare namespace JSX { | ||
interface Element {} //eslint-disable-line | ||
import Vue, { VNode } from 'vue'; | ||
|
||
interface ElementAttributesProperty { $props: {} } | ||
|
||
// allows to use "noImplicitAny": true in tsconfig.json | ||
interface IntrinsicElements { | ||
[elemName: string]: any; | ||
declare global { | ||
namespace JSX { | ||
// tslint:disable no-empty-interface | ||
type Element = VNode | ||
// tslint:disable no-empty-interface | ||
type ElementClass = Vue | ||
interface IntrinsicElements { | ||
[elem: string]: any; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import Vue from 'vue'; | ||
import TDesign from '@/index'; | ||
|
||
import Icon from '../../src/icon'; | ||
import Button from '../../src/button'; | ||
|
||
Vue.use(TDesign); | ||
Vue.config.productionTip = false; | ||
|
||
Vue.component('t-icon', Icon); | ||
Vue.component('t-button', Button); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters