File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
action-sheet/_example/align Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module.exports = {
5
5
moduleFileExtensions : [ 'js' , 'ts' ] ,
6
6
moduleNameMapper : {
7
7
'^tdesign-miniprogram/(.*)' : '<rootDir>/src/$1' ,
8
+ '^tdesign-miniprogram' : '<rootDir>/src/index' ,
8
9
'^@behaviors/(.*)' : '<rootDir>/example/behaviors/$1' ,
9
10
} ,
10
11
testMatch : [ '<rootDir>/src/**/__test__/**/*.test.{js,ts}' ] ,
Original file line number Diff line number Diff line change 1
- import ActionSheet , { ActionSheetTheme } from 'tdesign-miniprogram/action-sheet/index ' ;
1
+ import { ActionSheet , ActionSheetTheme } from 'tdesign-miniprogram' ;
2
2
3
3
Component ( {
4
4
methods : {
Original file line number Diff line number Diff line change
1
+ export { default as ActionSheet , ActionSheetTheme } from './action-sheet/index' ;
2
+ export { default as Dialog } from './dialog/index' ;
3
+ export { default as Message } from './message/index' ;
4
+ export { default as Toast } from './toast/index' ;
Original file line number Diff line number Diff line change 1
1
import SkylineBehavior from '@behaviors/skyline.js' ;
2
2
3
- import Toast from 'tdesign-miniprogram/toast/index ' ;
3
+ import { Toast } from 'tdesign-miniprogram' ;
4
4
5
5
Component ( {
6
6
behaviors : [ SkylineBehavior ] ,
You can’t perform that action at this time.
0 commit comments