diff --git a/src/action-sheet/action-sheet.ts b/src/action-sheet/action-sheet.ts index c78d2c1dc..64c595475 100644 --- a/src/action-sheet/action-sheet.ts +++ b/src/action-sheet/action-sheet.ts @@ -1,3 +1,4 @@ +import './action-sheet.less'; import { chunk } from '../common/utils'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; diff --git a/src/avatar-group/avatar-group.ts b/src/avatar-group/avatar-group.ts index 7305e65f4..05d156e05 100644 --- a/src/avatar-group/avatar-group.ts +++ b/src/avatar-group/avatar-group.ts @@ -1,3 +1,4 @@ +import './avatar-group.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import avatarGroupProps from './props'; diff --git a/src/avatar/avatar.ts b/src/avatar/avatar.ts index 5dcfa14ae..27c2f8edd 100644 --- a/src/avatar/avatar.ts +++ b/src/avatar/avatar.ts @@ -1,3 +1,4 @@ +import './avatar.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import avatarProps from './props'; diff --git a/src/back-top/back-top.ts b/src/back-top/back-top.ts index b3bd06cf7..fad9a51f1 100644 --- a/src/back-top/back-top.ts +++ b/src/back-top/back-top.ts @@ -1,3 +1,4 @@ +import './back-top.less'; import { SuperComponent, RelationsOptions, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/badge/badge.ts b/src/badge/badge.ts index 295a9da27..cafa09590 100644 --- a/src/badge/badge.ts +++ b/src/badge/badge.ts @@ -1,3 +1,4 @@ +import './badge.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/button/button.ts b/src/button/button.ts index a1bbf7a27..1c0f414b5 100644 --- a/src/button/button.ts +++ b/src/button/button.ts @@ -1,3 +1,4 @@ +import './button.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/calendar/calendar.ts b/src/calendar/calendar.ts index 3358ceaf4..76ea49b5a 100644 --- a/src/calendar/calendar.ts +++ b/src/calendar/calendar.ts @@ -1,3 +1,4 @@ +import './calendar.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/cascader/cascader.ts b/src/cascader/cascader.ts index a9517b594..1eac28da3 100644 --- a/src/cascader/cascader.ts +++ b/src/cascader/cascader.ts @@ -1,3 +1,4 @@ +import './cascader.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/cell-group/cell-group.ts b/src/cell-group/cell-group.ts index f60fd2e2c..47c2be6fb 100644 --- a/src/cell-group/cell-group.ts +++ b/src/cell-group/cell-group.ts @@ -1,3 +1,4 @@ +import './cell-group.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/cell/cell.ts b/src/cell/cell.ts index b94b731c1..c2fe0a6c8 100644 --- a/src/cell/cell.ts +++ b/src/cell/cell.ts @@ -1,3 +1,4 @@ +import './cell.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/check-tag/check-tag.ts b/src/check-tag/check-tag.ts index ffb1d58b9..4da2f1246 100644 --- a/src/check-tag/check-tag.ts +++ b/src/check-tag/check-tag.ts @@ -1,3 +1,4 @@ +import './check-tag.less'; import { wxComponent, SuperComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/checkbox-group/checkbox-group.ts b/src/checkbox-group/checkbox-group.ts index 6d9ae1b5b..0e91eaf68 100644 --- a/src/checkbox-group/checkbox-group.ts +++ b/src/checkbox-group/checkbox-group.ts @@ -1,3 +1,4 @@ +import './checkbox-group.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/checkbox/checkbox.ts b/src/checkbox/checkbox.ts index f6bd1320d..745264d29 100644 --- a/src/checkbox/checkbox.ts +++ b/src/checkbox/checkbox.ts @@ -1,3 +1,4 @@ +import './checkbox.less'; import { SuperComponent, wxComponent, ComponentsOptionsType, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import Props from './props'; diff --git a/src/col/col.ts b/src/col/col.ts index f3ce3a10d..e3e918b31 100644 --- a/src/col/col.ts +++ b/src/col/col.ts @@ -1,3 +1,4 @@ +import './col.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/collapse-panel/collapse-panel.ts b/src/collapse-panel/collapse-panel.ts index a093d364b..109d93ecd 100644 --- a/src/collapse-panel/collapse-panel.ts +++ b/src/collapse-panel/collapse-panel.ts @@ -1,3 +1,4 @@ +import './collapse-panel.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/collapse/collapse.ts b/src/collapse/collapse.ts index 6bfdb96e3..b41432a98 100644 --- a/src/collapse/collapse.ts +++ b/src/collapse/collapse.ts @@ -1,3 +1,4 @@ +import './collapse.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/common/config.ts b/src/common/config.ts index eb500a93f..40b190d34 100644 --- a/src/common/config.ts +++ b/src/common/config.ts @@ -1,3 +1,4 @@ +const CONFIG_PREFIX = "t"; export default { prefix: CONFIG_PREFIX, }; diff --git a/src/count-down/count-down.ts b/src/count-down/count-down.ts index d2968452c..765d888b6 100644 --- a/src/count-down/count-down.ts +++ b/src/count-down/count-down.ts @@ -1,3 +1,4 @@ +import './count-down.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/date-time-picker/date-time-picker.ts b/src/date-time-picker/date-time-picker.ts index 59090915d..cd991b780 100644 --- a/src/date-time-picker/date-time-picker.ts +++ b/src/date-time-picker/date-time-picker.ts @@ -1,3 +1,4 @@ +import './date-time-picker.less'; import type { Dayjs } from 'dayjs'; import dayjs from 'dayjs'; import localeData from 'dayjs/plugin/localeData'; diff --git a/src/dialog/dialog.ts b/src/dialog/dialog.ts index c57d06b9b..c09c0450d 100644 --- a/src/dialog/dialog.ts +++ b/src/dialog/dialog.ts @@ -1,3 +1,4 @@ +import './dialog.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/divider/divider.ts b/src/divider/divider.ts index 2c5969253..81e53785c 100644 --- a/src/divider/divider.ts +++ b/src/divider/divider.ts @@ -1,3 +1,4 @@ +import './divider.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/drawer/drawer.ts b/src/drawer/drawer.ts index d702f0226..a0a966a36 100644 --- a/src/drawer/drawer.ts +++ b/src/drawer/drawer.ts @@ -1,3 +1,4 @@ +import './drawer.less'; import { ComponentsOptionsType, SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/dropdown-item/dropdown-item.ts b/src/dropdown-item/dropdown-item.ts index ee2fe504e..72d216d69 100644 --- a/src/dropdown-item/dropdown-item.ts +++ b/src/dropdown-item/dropdown-item.ts @@ -1,3 +1,4 @@ +import './dropdown-item.less'; import { RelationsOptions, SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/dropdown-menu/dropdown-menu.ts b/src/dropdown-menu/dropdown-menu.ts index 4dd646b0b..b6daaec67 100644 --- a/src/dropdown-menu/dropdown-menu.ts +++ b/src/dropdown-menu/dropdown-menu.ts @@ -1,3 +1,4 @@ +import './dropdown-menu.less'; import { RelationsOptions, SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/empty/empty.ts b/src/empty/empty.ts index f631f7957..32a8c0df1 100644 --- a/src/empty/empty.ts +++ b/src/empty/empty.ts @@ -1,3 +1,4 @@ +import './empty.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import props from './props'; import config from '../common/config'; diff --git a/src/fab/fab.ts b/src/fab/fab.ts index c0862059e..51bf0e151 100644 --- a/src/fab/fab.ts +++ b/src/fab/fab.ts @@ -1,3 +1,4 @@ +import './fab.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/footer/footer.ts b/src/footer/footer.ts index 820d7ace8..61592691d 100644 --- a/src/footer/footer.ts +++ b/src/footer/footer.ts @@ -1,3 +1,4 @@ +import './footer.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/grid-item/grid-item.ts b/src/grid-item/grid-item.ts index 35d70a706..17b78c66f 100644 --- a/src/grid-item/grid-item.ts +++ b/src/grid-item/grid-item.ts @@ -1,3 +1,4 @@ +import './grid-item.less'; import { SuperComponent, wxComponent, isObject, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/grid/grid.ts b/src/grid/grid.ts index e7558240b..6264ccd2c 100644 --- a/src/grid/grid.ts +++ b/src/grid/grid.ts @@ -1,3 +1,4 @@ +import './grid.less'; import { isObject, SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/icon/icon.ts b/src/icon/icon.ts index 03ac52fde..3213d8618 100644 --- a/src/icon/icon.ts +++ b/src/icon/icon.ts @@ -1,3 +1,4 @@ +import './icon.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; @@ -31,7 +32,7 @@ export default class Icon extends SuperComponent { }, setIconStyle() { - const { name, color, size } = this.properties; + const { name, color, size, prefix } = this.properties; const isImage = name.indexOf('/') !== -1; const sizeValue = addUnit(size); const sizeStyle = isImage && sizeValue ? { width: sizeValue, height: sizeValue } : {}; @@ -44,6 +45,7 @@ export default class Icon extends SuperComponent { ...fontStyle, ...sizeStyle, })}`, + iconClass: `${prefix || this.data.classPrefix}-${name}`, }); }, }; diff --git a/src/icon/icon.wxml b/src/icon/icon.wxml index 914693992..af099c00e 100644 --- a/src/icon/icon.wxml +++ b/src/icon/icon.wxml @@ -11,5 +11,5 @@ - + diff --git a/src/image-viewer/image-viewer.ts b/src/image-viewer/image-viewer.ts index c48f02ef8..699a54fe3 100644 --- a/src/image-viewer/image-viewer.ts +++ b/src/image-viewer/image-viewer.ts @@ -1,3 +1,4 @@ +import './image-viewer.less'; import { styles, calcIcon } from '../common/utils'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; diff --git a/src/image/image.ts b/src/image/image.ts index a23a6070d..b5f2f0bf7 100644 --- a/src/image/image.ts +++ b/src/image/image.ts @@ -1,3 +1,4 @@ +import './image.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import ImageProps from './props'; import config from '../common/config'; diff --git a/src/indexes-anchor/indexes-anchor.ts b/src/indexes-anchor/indexes-anchor.ts index ac89ff04c..cf6631ee4 100644 --- a/src/indexes-anchor/indexes-anchor.ts +++ b/src/indexes-anchor/indexes-anchor.ts @@ -1,3 +1,4 @@ +import './indexes-anchor.less'; import { RelationsOptions, SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/indexes/indexes.ts b/src/indexes/indexes.ts index 2da44129c..648c723fe 100644 --- a/src/indexes/indexes.ts +++ b/src/indexes/indexes.ts @@ -1,3 +1,4 @@ +import './indexes.less'; import { RelationsOptions, SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/input/input.ts b/src/input/input.ts index 78df830f2..b41ac4d75 100644 --- a/src/input/input.ts +++ b/src/input/input.ts @@ -1,3 +1,4 @@ +import './input.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/link/link.ts b/src/link/link.ts index 4c509ebd3..a300a38e6 100644 --- a/src/link/link.ts +++ b/src/link/link.ts @@ -1,3 +1,4 @@ +import './link.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/loading/loading.ts b/src/loading/loading.ts index f568ed150..c5f678f4a 100644 --- a/src/loading/loading.ts +++ b/src/loading/loading.ts @@ -1,3 +1,4 @@ +import './loading.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/message-item/message-item.ts b/src/message-item/message-item.ts index be8fda5ec..4a3c26e38 100644 --- a/src/message-item/message-item.ts +++ b/src/message-item/message-item.ts @@ -1,3 +1,4 @@ +import './message-item.less'; import { SuperComponent, wxComponent, ComponentsOptionsType } from '../common/src/index'; import config from '../common/config'; import { MessageProps } from '../message/message.interface'; diff --git a/src/navbar/navbar.less b/src/navbar/navbar.less index 959eefb49..581faa94c 100644 --- a/src/navbar/navbar.less +++ b/src/navbar/navbar.less @@ -80,13 +80,18 @@ // width: @navbar-right; display: flex; align-items: center; - margin-left: @spacer-1; + // margin-left: @spacer-1; &-arrow { font-size: @navbar-left-arrow-size; } } + &__btn { + padding-right: @spacer-1; + padding-left: @spacer-1; + } + &__capsule { box-sizing: border-box; width: @navbar-capsule-width; diff --git a/src/navbar/navbar.ts b/src/navbar/navbar.ts index 65747dbc0..18dc3981f 100644 --- a/src/navbar/navbar.ts +++ b/src/navbar/navbar.ts @@ -1,3 +1,4 @@ +import './navbar.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/notice-bar/notice-bar.ts b/src/notice-bar/notice-bar.ts index 430eb69c3..88df28442 100644 --- a/src/notice-bar/notice-bar.ts +++ b/src/notice-bar/notice-bar.ts @@ -1,3 +1,4 @@ +import './notice-bar.less'; import { SuperComponent, wxComponent, ComponentsOptionsType } from '../common/src/index'; import { getRect, getAnimationFrame, calcIcon } from '../common/utils'; import props from './props'; diff --git a/src/overlay/overlay.ts b/src/overlay/overlay.ts index d21274a76..f80922d69 100644 --- a/src/overlay/overlay.ts +++ b/src/overlay/overlay.ts @@ -1,3 +1,4 @@ +import './overlay.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import transition from '../mixins/transition'; diff --git a/src/picker-item/picker-item.ts b/src/picker-item/picker-item.ts index afea22877..1f2de9a81 100644 --- a/src/picker-item/picker-item.ts +++ b/src/picker-item/picker-item.ts @@ -1,3 +1,4 @@ +import './picker-item.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/picker/picker.ts b/src/picker/picker.ts index cce276e33..5cd7e096b 100644 --- a/src/picker/picker.ts +++ b/src/picker/picker.ts @@ -1,3 +1,4 @@ +import './picker.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/popup/popup.ts b/src/popup/popup.ts index a2f2f95fb..ce8b097e3 100644 --- a/src/popup/popup.ts +++ b/src/popup/popup.ts @@ -1,3 +1,4 @@ +import './popup.less'; import { TdPopupProps } from './type'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; diff --git a/src/progress/progress.ts b/src/progress/progress.ts index b9342f33f..f7275fd56 100644 --- a/src/progress/progress.ts +++ b/src/progress/progress.ts @@ -1,3 +1,4 @@ +import './progress.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/pull-down-refresh/pull-down-refresh.ts b/src/pull-down-refresh/pull-down-refresh.ts index 5a129d4c2..c8e0880a0 100644 --- a/src/pull-down-refresh/pull-down-refresh.ts +++ b/src/pull-down-refresh/pull-down-refresh.ts @@ -1,3 +1,4 @@ +import './pull-down-refresh.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/radio-group/radio-group.ts b/src/radio-group/radio-group.ts index 2f3a44073..bd1e98563 100644 --- a/src/radio-group/radio-group.ts +++ b/src/radio-group/radio-group.ts @@ -1,3 +1,4 @@ +import './radio-group.less'; import config from '../common/config'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import props from './props'; diff --git a/src/radio/radio.ts b/src/radio/radio.ts index 893a9858a..3f929848f 100644 --- a/src/radio/radio.ts +++ b/src/radio/radio.ts @@ -1,3 +1,4 @@ +import './radio.less'; import config from '../common/config'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import Props from './props'; diff --git a/src/rate/rate.ts b/src/rate/rate.ts index 778633e9f..eaa3c6bed 100644 --- a/src/rate/rate.ts +++ b/src/rate/rate.ts @@ -1,3 +1,4 @@ +import './rate.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/result/result.ts b/src/result/result.ts index b5b1f0fed..29931df0c 100644 --- a/src/result/result.ts +++ b/src/result/result.ts @@ -1,3 +1,4 @@ +import './result.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import props from './props'; import config from '../common/config'; diff --git a/src/row/row.ts b/src/row/row.ts index ac60f631e..87da34714 100644 --- a/src/row/row.ts +++ b/src/row/row.ts @@ -1,3 +1,4 @@ +import './row.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/search/search.ts b/src/search/search.ts index 87bebfb11..527cb3948 100644 --- a/src/search/search.ts +++ b/src/search/search.ts @@ -1,3 +1,4 @@ +import './search.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/side-bar-item/side-bar-item.ts b/src/side-bar-item/side-bar-item.ts index f3dba37b4..e4feec1b5 100644 --- a/src/side-bar-item/side-bar-item.ts +++ b/src/side-bar-item/side-bar-item.ts @@ -1,3 +1,4 @@ +import './side-bar-item.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/side-bar/side-bar.ts b/src/side-bar/side-bar.ts index a371d9a45..26298c6ff 100644 --- a/src/side-bar/side-bar.ts +++ b/src/side-bar/side-bar.ts @@ -1,3 +1,4 @@ +import './side-bar.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/skeleton/skeleton.ts b/src/skeleton/skeleton.ts index 416df282c..500a04c92 100644 --- a/src/skeleton/skeleton.ts +++ b/src/skeleton/skeleton.ts @@ -1,3 +1,4 @@ +import './skeleton.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/slider/slider.ts b/src/slider/slider.ts index 5f07826fe..7b0db4b9a 100644 --- a/src/slider/slider.ts +++ b/src/slider/slider.ts @@ -1,3 +1,4 @@ +import './slider.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import { trimSingleValue, trimValue } from './tool'; diff --git a/src/step-item/step-item.ts b/src/step-item/step-item.ts index aef15e05d..dccb5b830 100644 --- a/src/step-item/step-item.ts +++ b/src/step-item/step-item.ts @@ -1,3 +1,4 @@ +import './step-item.less'; import { wxComponent, SuperComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/stepper/stepper.ts b/src/stepper/stepper.ts index db1731c77..2356bca03 100644 --- a/src/stepper/stepper.ts +++ b/src/stepper/stepper.ts @@ -1,3 +1,4 @@ +import './stepper.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/steps/steps.ts b/src/steps/steps.ts index 063d604b5..4315012a0 100644 --- a/src/steps/steps.ts +++ b/src/steps/steps.ts @@ -1,3 +1,4 @@ +import './steps.less'; import { wxComponent, SuperComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/sticky/sticky.ts b/src/sticky/sticky.ts index bb7c74524..7f3c8dec7 100644 --- a/src/sticky/sticky.ts +++ b/src/sticky/sticky.ts @@ -1,3 +1,4 @@ +import './sticky.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import props from './props'; import config from '../common/config'; diff --git a/src/swipe-cell/swipe-cell.ts b/src/swipe-cell/swipe-cell.ts index 2ad68297c..22ece9b5f 100644 --- a/src/swipe-cell/swipe-cell.ts +++ b/src/swipe-cell/swipe-cell.ts @@ -1,3 +1,4 @@ +import './swipe-cell.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/swiper-nav/swiper-nav.ts b/src/swiper-nav/swiper-nav.ts index ac52a07c4..8e5df6995 100644 --- a/src/swiper-nav/swiper-nav.ts +++ b/src/swiper-nav/swiper-nav.ts @@ -1,3 +1,4 @@ +import './swiper-nav.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import { TdSwiperNavProps } from './type'; diff --git a/src/swiper/swiper.ts b/src/swiper/swiper.ts index f9539b3db..beb24b5d5 100644 --- a/src/swiper/swiper.ts +++ b/src/swiper/swiper.ts @@ -1,3 +1,4 @@ +import './swiper.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/switch/switch.ts b/src/switch/switch.ts index cd799c072..86e3e9899 100644 --- a/src/switch/switch.ts +++ b/src/switch/switch.ts @@ -1,3 +1,4 @@ +import './switch.less'; import { wxComponent, SuperComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/tab-bar-item/tab-bar-item.ts b/src/tab-bar-item/tab-bar-item.ts index 1fdcda025..0dc4d3e0e 100644 --- a/src/tab-bar-item/tab-bar-item.ts +++ b/src/tab-bar-item/tab-bar-item.ts @@ -1,3 +1,4 @@ +import './tab-bar-item.less'; import { wxComponent, SuperComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/tab-bar/tab-bar.ts b/src/tab-bar/tab-bar.ts index 4cd2964d3..e19472545 100644 --- a/src/tab-bar/tab-bar.ts +++ b/src/tab-bar/tab-bar.ts @@ -1,3 +1,4 @@ +import './tab-bar.less'; import { wxComponent, SuperComponent, RelationsOptions } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/tab-panel/tab-panel.ts b/src/tab-panel/tab-panel.ts index b4d2e3a5e..b927bcde6 100644 --- a/src/tab-panel/tab-panel.ts +++ b/src/tab-panel/tab-panel.ts @@ -1,3 +1,4 @@ +import './tab-panel.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import props from './props'; import config from '../common/config'; diff --git a/src/tabs/tabs.ts b/src/tabs/tabs.ts index 894ae3204..c77b3de07 100644 --- a/src/tabs/tabs.ts +++ b/src/tabs/tabs.ts @@ -1,3 +1,4 @@ +import './tabs.less'; import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; import props from './props'; import config from '../common/config'; diff --git a/src/tag/tag.ts b/src/tag/tag.ts index 2d5322e47..440560115 100644 --- a/src/tag/tag.ts +++ b/src/tag/tag.ts @@ -1,3 +1,4 @@ +import './tag.less'; import { wxComponent, SuperComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/textarea/textarea.ts b/src/textarea/textarea.ts index 28e76afeb..6953251ba 100644 --- a/src/textarea/textarea.ts +++ b/src/textarea/textarea.ts @@ -1,3 +1,4 @@ +import './textarea.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/toast/toast.ts b/src/toast/toast.ts index 2a427bb5f..72617ca87 100644 --- a/src/toast/toast.ts +++ b/src/toast/toast.ts @@ -1,3 +1,4 @@ +import './toast.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/transition/transition.ts b/src/transition/transition.ts index 218a5ab4d..05d113c62 100644 --- a/src/transition/transition.ts +++ b/src/transition/transition.ts @@ -1,3 +1,4 @@ +import './transition.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import transition from '../mixins/transition'; import config from '../common/config'; diff --git a/src/tree-select/tree-select.ts b/src/tree-select/tree-select.ts index 13507fb0e..91e790357 100644 --- a/src/tree-select/tree-select.ts +++ b/src/tree-select/tree-select.ts @@ -1,3 +1,4 @@ +import './tree-select.less'; import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; diff --git a/src/upload/upload.ts b/src/upload/upload.ts index 1657a9d4a..794a26b95 100644 --- a/src/upload/upload.ts +++ b/src/upload/upload.ts @@ -1,3 +1,4 @@ +import './upload.less'; import { isObject, SuperComponent, wxComponent } from '../common/src/index'; import props from './props'; import { UploadFile } from './type';