@tuya-miniapp/smart-ui 0.0.1-beta-5 → 1.0.0-beta-1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/dist/action-sheet/index.css +1 -1
- package/dist/action-sheet/index.js +11 -2
- package/dist/action-sheet/index.json +3 -3
- package/dist/action-sheet/index.wxml +15 -15
- package/dist/action-sheet/index.wxss +1 -1
- package/dist/area/index.js +3 -3
- package/dist/area/index.json +1 -1
- package/dist/area/index.wxml +2 -2
- package/dist/battery/index.js +2 -2
- package/dist/button/index.css +1 -1
- package/dist/button/index.js +3 -3
- package/dist/button/index.json +2 -2
- package/dist/button/index.wxml +9 -9
- package/dist/button/index.wxss +1 -1
- package/dist/calendar/calendar.wxml +5 -5
- package/dist/calendar/components/header/index.css +1 -1
- package/dist/calendar/components/header/index.js +2 -2
- package/dist/calendar/components/header/index.wxml +6 -6
- package/dist/calendar/components/header/index.wxss +1 -1
- package/dist/calendar/components/month/index.css +1 -1
- package/dist/calendar/components/month/index.js +2 -2
- package/dist/calendar/components/month/index.wxml +9 -9
- package/dist/calendar/components/month/index.wxss +1 -1
- package/dist/calendar/index.css +1 -1
- package/dist/calendar/index.js +3 -3
- package/dist/calendar/index.json +3 -3
- package/dist/calendar/index.wxml +5 -5
- package/dist/calendar/index.wxss +1 -1
- package/dist/cascader/index.css +1 -1
- package/dist/cascader/index.js +3 -2
- package/dist/cascader/index.json +3 -3
- package/dist/cascader/index.wxml +13 -13
- package/dist/cascader/index.wxss +1 -1
- package/dist/cell/index.css +1 -1
- package/dist/cell/index.js +2 -2
- package/dist/cell/index.json +1 -1
- package/dist/cell/index.wxml +10 -10
- package/dist/cell/index.wxss +1 -1
- package/dist/cell-group/index.css +1 -1
- package/dist/cell-group/index.js +2 -2
- package/dist/cell-group/index.wxml +1 -1
- package/dist/cell-group/index.wxss +1 -1
- package/dist/checkbox/index.css +1 -1
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox/index.json +1 -1
- package/dist/checkbox/index.wxml +2 -2
- package/dist/checkbox/index.wxss +1 -1
- package/dist/checkbox-group/index.css +1 -1
- package/dist/checkbox-group/index.js +2 -2
- package/dist/checkbox-group/index.wxss +1 -1
- package/dist/circle/index.css +1 -1
- package/dist/circle/index.js +2 -2
- package/dist/circle/index.wxml +6 -6
- package/dist/circle/index.wxss +1 -1
- package/dist/col/index.css +1 -1
- package/dist/col/index.js +2 -2
- package/dist/col/index.wxml +1 -1
- package/dist/col/index.wxss +1 -1
- package/dist/collapse/index.js +2 -2
- package/dist/collapse/index.wxml +1 -1
- package/dist/collapse-item/animate.js +1 -1
- package/dist/collapse-item/index.css +1 -1
- package/dist/collapse-item/index.js +2 -2
- package/dist/collapse-item/index.json +1 -1
- package/dist/collapse-item/index.wxml +7 -7
- package/dist/collapse-item/index.wxss +1 -1
- package/dist/common/component.d.ts +3 -3
- package/dist/common/component.js +5 -5
- package/dist/common/index.css +1 -1
- package/dist/common/index.wxss +1 -1
- package/dist/common/style/clearfix.css +1 -1
- package/dist/common/style/clearfix.wxss +1 -1
- package/dist/common/style/ellipsis.css +1 -1
- package/dist/common/style/ellipsis.wxss +1 -1
- package/dist/common/style/hairline.css +1 -1
- package/dist/common/style/hairline.wxss +1 -1
- package/dist/config-provider/index.js +2 -2
- package/dist/config-provider/index.wxml +1 -1
- package/dist/count-down/index.css +1 -1
- package/dist/count-down/index.js +2 -2
- package/dist/count-down/index.wxml +1 -1
- package/dist/count-down/index.wxss +1 -1
- package/dist/custom-keyboard/index.js +2 -2
- package/dist/custom-keyboard/index.json +4 -4
- package/dist/custom-keyboard/index.wxml +2 -2
- package/dist/datetime-picker/index.js +3 -3
- package/dist/datetime-picker/index.json +1 -1
- package/dist/datetime-picker/index.wxml +2 -2
- package/dist/definitions/index.d.ts +4 -3
- package/dist/dialog/index.css +1 -1
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/index.json +5 -5
- package/dist/dialog/index.wxml +25 -25
- package/dist/dialog/index.wxss +1 -1
- package/dist/divider/index.css +1 -1
- package/dist/divider/index.js +2 -2
- package/dist/divider/index.wxss +1 -1
- package/dist/dropdown-item/index.css +1 -1
- package/dist/dropdown-item/index.js +2 -2
- package/dist/dropdown-item/index.json +3 -3
- package/dist/dropdown-item/index.wxml +7 -7
- package/dist/dropdown-item/index.wxss +1 -1
- package/dist/dropdown-menu/index.css +1 -1
- package/dist/dropdown-menu/index.js +3 -3
- package/dist/dropdown-menu/index.wxml +2 -2
- package/dist/dropdown-menu/index.wxss +1 -1
- package/dist/empty/index.css +1 -1
- package/dist/empty/index.js +2 -2
- package/dist/empty/index.wxml +7 -7
- package/dist/empty/index.wxs +7 -6
- package/dist/empty/index.wxss +1 -1
- package/dist/field/index.css +1 -1
- package/dist/field/index.js +15 -3
- package/dist/field/index.json +2 -2
- package/dist/field/index.wxml +10 -10
- package/dist/field/index.wxss +1 -1
- package/dist/field/props.js +1 -9
- package/dist/goods-action/index.css +1 -1
- package/dist/goods-action/index.js +2 -2
- package/dist/goods-action/index.wxss +1 -1
- package/dist/goods-action-button/index.css +1 -1
- package/dist/goods-action-button/index.js +2 -2
- package/dist/goods-action-button/index.json +1 -1
- package/dist/goods-action-button/index.wxml +3 -3
- package/dist/goods-action-button/index.wxss +1 -1
- package/dist/goods-action-icon/index.css +1 -1
- package/dist/goods-action-icon/index.js +3 -3
- package/dist/goods-action-icon/index.json +2 -2
- package/dist/goods-action-icon/index.wxml +5 -5
- package/dist/goods-action-icon/index.wxss +1 -1
- package/dist/grid/index.css +1 -1
- package/dist/grid/index.js +2 -2
- package/dist/grid/index.wxml +1 -1
- package/dist/grid/index.wxss +1 -1
- package/dist/grid-item/index.css +1 -1
- package/dist/grid-item/index.js +3 -3
- package/dist/grid-item/index.json +1 -1
- package/dist/grid-item/index.wxml +4 -4
- package/dist/grid-item/index.wxss +1 -1
- package/dist/icon/index.css +1 -1
- package/dist/icon/index.js +3 -3
- package/dist/icon/index.json +1 -1
- package/dist/icon/index.wxml +4 -4
- package/dist/icon/index.wxs +6 -7
- package/dist/icon/index.wxss +1 -1
- package/dist/image/index.css +1 -1
- package/dist/image/index.js +2 -2
- package/dist/image/index.json +2 -2
- package/dist/image/index.wxml +5 -5
- package/dist/image/index.wxss +1 -1
- package/dist/index-anchor/index.css +1 -1
- package/dist/index-anchor/index.js +3 -3
- package/dist/index-anchor/index.wxml +2 -2
- package/dist/index-anchor/index.wxss +1 -1
- package/dist/index-bar/index.css +1 -1
- package/dist/index-bar/index.js +6 -6
- package/dist/index-bar/index.wxml +3 -3
- package/dist/index-bar/index.wxss +1 -1
- package/dist/info/index.css +1 -1
- package/dist/info/index.js +2 -2
- package/dist/info/index.wxml +1 -1
- package/dist/info/index.wxss +1 -1
- package/dist/loading/index.css +1 -1
- package/dist/loading/index.js +2 -2
- package/dist/loading/index.wxml +3 -3
- package/dist/loading/index.wxss +1 -1
- package/dist/mixins/basic.js +15 -0
- package/dist/mixins/page-scroll.js +10 -10
- package/dist/mixins/transition.js +4 -4
- package/dist/nav-bar/index.css +1 -1
- package/dist/nav-bar/index.js +4 -4
- package/dist/nav-bar/index.json +1 -1
- package/dist/nav-bar/index.wxml +11 -11
- package/dist/nav-bar/index.wxss +1 -1
- package/dist/normal-slider/index.js +2 -2
- package/dist/notice-bar/index.css +1 -1
- package/dist/notice-bar/index.js +4 -4
- package/dist/notice-bar/index.json +1 -1
- package/dist/notice-bar/index.wxml +7 -7
- package/dist/notice-bar/index.wxss +1 -1
- package/dist/notify/index.css +1 -1
- package/dist/notify/index.js +2 -2
- package/dist/notify/index.json +1 -1
- package/dist/notify/index.wxml +4 -4
- package/dist/notify/index.wxss +1 -1
- package/dist/notify/notify.js +2 -2
- package/dist/overlay/index.css +1 -1
- package/dist/overlay/index.js +2 -2
- package/dist/overlay/index.json +1 -1
- package/dist/overlay/index.wxss +1 -1
- package/dist/overlay/overlay.wxml +3 -3
- package/dist/picker/index.css +1 -1
- package/dist/picker/index.js +3 -3
- package/dist/picker/index.wxml +7 -7
- package/dist/picker/index.wxss +1 -1
- package/dist/picker/toolbar.wxml +6 -6
- package/dist/picker-column/index.css +1 -1
- package/dist/picker-column/index.js +2 -2
- package/dist/picker-column/index.wxml +6 -6
- package/dist/picker-column/index.wxss +1 -1
- package/dist/popup/index.css +1 -1
- package/dist/popup/index.js +2 -2
- package/dist/popup/index.json +2 -2
- package/dist/popup/index.wxml +1 -1
- package/dist/popup/index.wxss +1 -1
- package/dist/popup/popup.wxml +2 -2
- package/dist/progress/index.css +1 -1
- package/dist/progress/index.js +4 -4
- package/dist/progress/index.wxml +3 -3
- package/dist/progress/index.wxss +1 -1
- package/dist/radio/index.css +1 -1
- package/dist/radio/index.js +2 -2
- package/dist/radio/index.json +1 -1
- package/dist/radio/index.wxml +2 -2
- package/dist/radio/index.wxss +1 -1
- package/dist/radio-group/index.css +1 -1
- package/dist/radio-group/index.js +2 -2
- package/dist/radio-group/index.wxss +1 -1
- package/dist/rate/index.css +1 -1
- package/dist/rate/index.js +7 -7
- package/dist/rate/index.json +1 -1
- package/dist/rate/index.wxml +2 -2
- package/dist/rate/index.wxss +1 -1
- package/dist/row/index.css +1 -1
- package/dist/row/index.js +2 -2
- package/dist/row/index.wxml +1 -1
- package/dist/row/index.wxss +1 -1
- package/dist/search/index.css +1 -1
- package/dist/search/index.js +2 -2
- package/dist/search/index.json +1 -1
- package/dist/search/index.wxml +7 -7
- package/dist/search/index.wxss +1 -1
- package/dist/sidebar/index.css +1 -1
- package/dist/sidebar/index.js +2 -2
- package/dist/sidebar/index.wxml +1 -1
- package/dist/sidebar/index.wxss +1 -1
- package/dist/sidebar-item/index.css +1 -1
- package/dist/sidebar-item/index.js +2 -2
- package/dist/sidebar-item/index.json +1 -1
- package/dist/sidebar-item/index.wxml +3 -3
- package/dist/sidebar-item/index.wxss +1 -1
- package/dist/skeleton/index.css +1 -1
- package/dist/skeleton/index.js +2 -2
- package/dist/skeleton/index.wxss +1 -1
- package/dist/slider/index.css +1 -1
- package/dist/slider/index.js +4 -4
- package/dist/slider/index.wxss +1 -1
- package/dist/stepper/index.css +1 -1
- package/dist/stepper/index.js +2 -2
- package/dist/stepper/index.wxml +4 -4
- package/dist/stepper/index.wxss +1 -1
- package/dist/steps/index.css +1 -1
- package/dist/steps/index.js +2 -2
- package/dist/steps/index.json +1 -1
- package/dist/steps/index.wxml +9 -9
- package/dist/steps/index.wxss +1 -1
- package/dist/sticky/index.css +1 -1
- package/dist/sticky/index.js +3 -3
- package/dist/sticky/index.wxml +1 -1
- package/dist/sticky/index.wxss +1 -1
- package/dist/swipe-cell/index.css +1 -1
- package/dist/swipe-cell/index.js +2 -2
- package/dist/swipe-cell/index.wxml +3 -3
- package/dist/swipe-cell/index.wxss +1 -1
- package/dist/switch/index.css +1 -1
- package/dist/switch/index.js +2 -2
- package/dist/switch/index.json +1 -1
- package/dist/switch/index.wxml +3 -3
- package/dist/switch/index.wxss +1 -1
- package/dist/tab/index.css +1 -1
- package/dist/tab/index.js +2 -2
- package/dist/tab/index.wxss +1 -1
- package/dist/tabbar/index.css +1 -1
- package/dist/tabbar/index.js +3 -3
- package/dist/tabbar/index.wxss +1 -1
- package/dist/tabbar-item/index.css +1 -1
- package/dist/tabbar-item/index.js +3 -3
- package/dist/tabbar-item/index.json +2 -2
- package/dist/tabbar-item/index.wxml +6 -6
- package/dist/tabbar-item/index.wxss +1 -1
- package/dist/tabs/index.css +1 -1
- package/dist/tabs/index.js +7 -7
- package/dist/tabs/index.json +2 -2
- package/dist/tabs/index.wxml +9 -9
- package/dist/tabs/index.wxs +1 -1
- package/dist/tabs/index.wxss +1 -1
- package/dist/tag/index.css +1 -1
- package/dist/tag/index.js +2 -2
- package/dist/tag/index.json +1 -1
- package/dist/tag/index.wxml +2 -2
- package/dist/tag/index.wxss +1 -1
- package/dist/toast/index.css +1 -1
- package/dist/toast/index.js +2 -2
- package/dist/toast/index.json +4 -4
- package/dist/toast/index.wxml +9 -9
- package/dist/toast/index.wxss +1 -1
- package/dist/toast/toast.js +2 -2
- package/dist/transition/index.css +1 -1
- package/dist/transition/index.js +2 -2
- package/dist/transition/index.wxml +1 -1
- package/dist/transition/index.wxss +1 -1
- package/dist/tree-select/index.css +1 -1
- package/dist/tree-select/index.js +4 -4
- package/dist/tree-select/index.json +3 -3
- package/dist/tree-select/index.wxml +9 -9
- package/dist/tree-select/index.wxss +1 -1
- package/dist/wxs/bem.wxs +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.js +10 -1
- package/lib/action-sheet/index.json +3 -3
- package/lib/action-sheet/index.wxml +15 -15
- package/lib/action-sheet/index.wxss +1 -1
- package/lib/area/index.js +2 -2
- package/lib/area/index.json +1 -1
- package/lib/area/index.wxml +2 -2
- package/lib/battery/index.js +1 -1
- package/lib/button/index.css +1 -1
- package/lib/button/index.js +2 -2
- package/lib/button/index.json +2 -2
- package/lib/button/index.wxml +9 -9
- package/lib/button/index.wxss +1 -1
- package/lib/calendar/calendar.wxml +5 -5
- package/lib/calendar/components/header/index.css +1 -1
- package/lib/calendar/components/header/index.js +1 -1
- package/lib/calendar/components/header/index.wxml +6 -6
- package/lib/calendar/components/header/index.wxss +1 -1
- package/lib/calendar/components/month/index.css +1 -1
- package/lib/calendar/components/month/index.js +1 -1
- package/lib/calendar/components/month/index.wxml +9 -9
- package/lib/calendar/components/month/index.wxss +1 -1
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.js +2 -2
- package/lib/calendar/index.json +3 -3
- package/lib/calendar/index.wxml +5 -5
- package/lib/calendar/index.wxss +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/index.json +3 -3
- package/lib/cascader/index.wxml +13 -13
- package/lib/cascader/index.wxss +1 -1
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.js +1 -1
- package/lib/cell/index.json +1 -1
- package/lib/cell/index.wxml +10 -10
- package/lib/cell/index.wxss +1 -1
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.js +1 -1
- package/lib/cell-group/index.wxml +1 -1
- package/lib/cell-group/index.wxss +1 -1
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/index.json +1 -1
- package/lib/checkbox/index.wxml +2 -2
- package/lib/checkbox/index.wxss +1 -1
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.js +1 -1
- package/lib/checkbox-group/index.wxss +1 -1
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.js +1 -1
- package/lib/circle/index.wxml +6 -6
- package/lib/circle/index.wxss +1 -1
- package/lib/col/index.css +1 -1
- package/lib/col/index.js +1 -1
- package/lib/col/index.wxml +1 -1
- package/lib/col/index.wxss +1 -1
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/index.wxml +1 -1
- package/lib/collapse-item/animate.js +1 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.js +1 -1
- package/lib/collapse-item/index.json +1 -1
- package/lib/collapse-item/index.wxml +7 -7
- package/lib/collapse-item/index.wxss +1 -1
- package/lib/common/component.d.ts +3 -3
- package/lib/common/component.js +6 -6
- package/lib/common/index.css +1 -1
- package/lib/common/index.wxss +1 -1
- package/lib/common/style/clearfix.css +1 -1
- package/lib/common/style/clearfix.wxss +1 -1
- package/lib/common/style/ellipsis.css +1 -1
- package/lib/common/style/ellipsis.wxss +1 -1
- package/lib/common/style/hairline.css +1 -1
- package/lib/common/style/hairline.wxss +1 -1
- package/lib/config-provider/index.js +1 -1
- package/lib/config-provider/index.wxml +1 -1
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.js +1 -1
- package/lib/count-down/index.wxml +1 -1
- package/lib/count-down/index.wxss +1 -1
- package/lib/custom-keyboard/index.js +1 -1
- package/lib/custom-keyboard/index.json +4 -4
- package/lib/custom-keyboard/index.wxml +2 -2
- package/lib/datetime-picker/index.js +2 -2
- package/lib/datetime-picker/index.json +1 -1
- package/lib/datetime-picker/index.wxml +2 -2
- package/lib/definitions/index.d.ts +4 -3
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/index.json +5 -5
- package/lib/dialog/index.wxml +25 -25
- package/lib/dialog/index.wxss +1 -1
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.js +1 -1
- package/lib/divider/index.wxss +1 -1
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.js +1 -1
- package/lib/dropdown-item/index.json +3 -3
- package/lib/dropdown-item/index.wxml +7 -7
- package/lib/dropdown-item/index.wxss +1 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.js +2 -2
- package/lib/dropdown-menu/index.wxml +2 -2
- package/lib/dropdown-menu/index.wxss +1 -1
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.js +1 -1
- package/lib/empty/index.wxml +7 -7
- package/lib/empty/index.wxs +7 -6
- package/lib/empty/index.wxss +1 -1
- package/lib/field/index.css +1 -1
- package/lib/field/index.js +14 -2
- package/lib/field/index.json +2 -2
- package/lib/field/index.wxml +10 -10
- package/lib/field/index.wxss +1 -1
- package/lib/field/props.js +1 -9
- package/lib/goods-action/index.css +1 -1
- package/lib/goods-action/index.js +1 -1
- package/lib/goods-action/index.wxss +1 -1
- package/lib/goods-action-button/index.css +1 -1
- package/lib/goods-action-button/index.js +1 -1
- package/lib/goods-action-button/index.json +1 -1
- package/lib/goods-action-button/index.wxml +3 -3
- package/lib/goods-action-button/index.wxss +1 -1
- package/lib/goods-action-icon/index.css +1 -1
- package/lib/goods-action-icon/index.js +2 -2
- package/lib/goods-action-icon/index.json +2 -2
- package/lib/goods-action-icon/index.wxml +5 -5
- package/lib/goods-action-icon/index.wxss +1 -1
- package/lib/grid/index.css +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/grid/index.wxml +1 -1
- package/lib/grid/index.wxss +1 -1
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.js +2 -2
- package/lib/grid-item/index.json +1 -1
- package/lib/grid-item/index.wxml +4 -4
- package/lib/grid-item/index.wxss +1 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +2 -2
- package/lib/icon/index.json +1 -1
- package/lib/icon/index.wxml +4 -4
- package/lib/icon/index.wxs +6 -7
- package/lib/icon/index.wxss +1 -1
- package/lib/image/index.css +1 -1
- package/lib/image/index.js +1 -1
- package/lib/image/index.json +2 -2
- package/lib/image/index.wxml +5 -5
- package/lib/image/index.wxss +1 -1
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.js +2 -2
- package/lib/index-anchor/index.wxml +2 -2
- package/lib/index-anchor/index.wxss +1 -1
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.js +5 -5
- package/lib/index-bar/index.wxml +3 -3
- package/lib/index-bar/index.wxss +1 -1
- package/lib/info/index.css +1 -1
- package/lib/info/index.js +1 -1
- package/lib/info/index.wxml +1 -1
- package/lib/info/index.wxss +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/loading/index.wxml +3 -3
- package/lib/loading/index.wxss +1 -1
- package/lib/mixins/basic.js +16 -0
- package/lib/mixins/page-scroll.js +10 -10
- package/lib/mixins/transition.js +4 -4
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.js +3 -3
- package/lib/nav-bar/index.json +1 -1
- package/lib/nav-bar/index.wxml +11 -11
- package/lib/nav-bar/index.wxss +1 -1
- package/lib/normal-slider/index.js +1 -1
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.js +3 -3
- package/lib/notice-bar/index.json +1 -1
- package/lib/notice-bar/index.wxml +7 -7
- package/lib/notice-bar/index.wxss +1 -1
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.js +1 -1
- package/lib/notify/index.json +1 -1
- package/lib/notify/index.wxml +4 -4
- package/lib/notify/index.wxss +1 -1
- package/lib/notify/notify.js +2 -2
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.js +1 -1
- package/lib/overlay/index.json +1 -1
- package/lib/overlay/index.wxss +1 -1
- package/lib/overlay/overlay.wxml +3 -3
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.js +2 -2
- package/lib/picker/index.wxml +7 -7
- package/lib/picker/index.wxss +1 -1
- package/lib/picker/toolbar.wxml +6 -6
- package/lib/picker-column/index.css +1 -1
- package/lib/picker-column/index.js +1 -1
- package/lib/picker-column/index.wxml +6 -6
- package/lib/picker-column/index.wxss +1 -1
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +1 -1
- package/lib/popup/index.json +2 -2
- package/lib/popup/index.wxml +1 -1
- package/lib/popup/index.wxss +1 -1
- package/lib/popup/popup.wxml +2 -2
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.js +3 -3
- package/lib/progress/index.wxml +3 -3
- package/lib/progress/index.wxss +1 -1
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/radio/index.json +1 -1
- package/lib/radio/index.wxml +2 -2
- package/lib/radio/index.wxss +1 -1
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.js +1 -1
- package/lib/radio-group/index.wxss +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +6 -6
- package/lib/rate/index.json +1 -1
- package/lib/rate/index.wxml +2 -2
- package/lib/rate/index.wxss +1 -1
- package/lib/row/index.css +1 -1
- package/lib/row/index.js +1 -1
- package/lib/row/index.wxml +1 -1
- package/lib/row/index.wxss +1 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.js +1 -1
- package/lib/search/index.json +1 -1
- package/lib/search/index.wxml +7 -7
- package/lib/search/index.wxss +1 -1
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.js +1 -1
- package/lib/sidebar/index.wxml +1 -1
- package/lib/sidebar/index.wxss +1 -1
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.js +1 -1
- package/lib/sidebar-item/index.json +1 -1
- package/lib/sidebar-item/index.wxml +3 -3
- package/lib/sidebar-item/index.wxss +1 -1
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.js +1 -1
- package/lib/skeleton/index.wxss +1 -1
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.js +3 -3
- package/lib/slider/index.wxss +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.js +1 -1
- package/lib/stepper/index.wxml +4 -4
- package/lib/stepper/index.wxss +1 -1
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.js +1 -1
- package/lib/steps/index.json +1 -1
- package/lib/steps/index.wxml +9 -9
- package/lib/steps/index.wxss +1 -1
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.js +2 -2
- package/lib/sticky/index.wxml +1 -1
- package/lib/sticky/index.wxss +1 -1
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.js +1 -1
- package/lib/swipe-cell/index.wxml +3 -3
- package/lib/swipe-cell/index.wxss +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.js +1 -1
- package/lib/switch/index.json +1 -1
- package/lib/switch/index.wxml +3 -3
- package/lib/switch/index.wxss +1 -1
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.js +1 -1
- package/lib/tab/index.wxss +1 -1
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.js +2 -2
- package/lib/tabbar/index.wxss +1 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.js +2 -2
- package/lib/tabbar-item/index.json +2 -2
- package/lib/tabbar-item/index.wxml +6 -6
- package/lib/tabbar-item/index.wxss +1 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.js +6 -6
- package/lib/tabs/index.json +2 -2
- package/lib/tabs/index.wxml +9 -9
- package/lib/tabs/index.wxs +1 -1
- package/lib/tabs/index.wxss +1 -1
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.js +2 -2
- package/lib/tag/index.json +1 -1
- package/lib/tag/index.wxml +2 -2
- package/lib/tag/index.wxss +1 -1
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.js +2 -2
- package/lib/toast/index.json +4 -4
- package/lib/toast/index.wxml +9 -9
- package/lib/toast/index.wxss +1 -1
- package/lib/toast/toast.js +2 -2
- package/lib/transition/index.css +1 -1
- package/lib/transition/index.js +1 -1
- package/lib/transition/index.wxml +1 -1
- package/lib/transition/index.wxss +1 -1
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.js +2 -2
- package/lib/tree-select/index.json +3 -3
- package/lib/tree-select/index.wxml +9 -9
- package/lib/tree-select/index.wxss +1 -1
- package/lib/wxs/bem.wxs +1 -1
- package/package.json +3 -4
package/dist/calendar/index.wxml
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
<import src="./calendar.wxml" />
|
5
5
|
|
6
|
-
<
|
6
|
+
<smart-popup
|
7
7
|
wx:if="{{ poppable }}"
|
8
|
-
custom-class="
|
9
|
-
close-icon-class="
|
8
|
+
custom-class="smart-calendar__popup--{{ position }}"
|
9
|
+
close-icon-class="smart-calendar__close-icon"
|
10
10
|
show="{{ show }}"
|
11
11
|
round="{{ round }}"
|
12
12
|
position="{{ position }}"
|
@@ -20,8 +20,8 @@
|
|
20
20
|
bind:after-leave="onClosed"
|
21
21
|
>
|
22
22
|
<include src="./calendar.wxml" />
|
23
|
-
</
|
23
|
+
</smart-popup>
|
24
24
|
|
25
25
|
<include wx:else src="./calendar.wxml" />
|
26
26
|
|
27
|
-
<
|
27
|
+
<smart-toast id="smart-toast" />
|
package/dist/calendar/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-calendar{background-color:var(--calendar-background-color,var(--app-B6,#fff));display:flex;flex-direction:column;height:var(--calendar-height,100%)}.smart-calendar__close-icon{top:11px}.smart-calendar__popup--bottom,.smart-calendar__popup--top{height:var(--calendar-popup-height,90%)}.smart-calendar__popup--left,.smart-calendar__popup--right{height:100%}.smart-calendar__body{-webkit-overflow-scrolling:touch;flex:1;overflow:auto}.smart-calendar__footer{flex-shrink:0;padding:0 var(--padding-md,16px)}.smart-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.smart-calendar__footer+.smart-calendar__footer,.smart-calendar__footer:empty{display:none}.smart-calendar__footer:empty+.smart-calendar__footer{display:block!important}.smart-calendar__confirm{height:var(--calendar-confirm-button-height,36px)!important;line-height:var(--calendar-confirm-button-line-height,34px)!important;margin:var(--calendar-confirm-button-margin,7px 0)!important}
|
package/dist/cascader/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-cascader__header{align-items:center;display:flex;height:48px;justify-content:space-between;padding:0 16px}.smart-cascader__title{font-size:16px;font-weight:600;line-height:20px}.smart-cascader__close-icon{color:#c8c9cc;font-size:22px;height:22px}.smart-cascader__tabs-wrap{height:48px!important;padding:0 8px}.smart-cascader__tab{color:#323233!important;flex:none!important;font-weight:600!important;padding:0 8px!important}.smart-cascader__tab--unselected{color:#969799!important;font-weight:400!important}.smart-cascader__option{align-items:center;cursor:pointer;display:flex;font-size:14px;justify-content:space-between;line-height:20px;padding:10px 16px}.smart-cascader__option:active{background-color:#f2f3f5}.smart-cascader__option--selected{color:#1989fa;font-weight:600}.smart-cascader__option--disabled{color:#c8c9cc;cursor:not-allowed}.smart-cascader__option--disabled:active{background-color:initial}.smart-cascader__options{-webkit-overflow-scrolling:touch;box-sizing:border-box;height:384px;overflow-y:auto;padding-top:6px}
|
package/dist/cascader/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { SmartComponent } from '../common/component';
|
2
2
|
import closeIcon from '@tuya-miniapp/icons/dist/svg/Xmark';
|
3
|
-
|
3
|
+
SmartComponent({
|
4
4
|
props: {
|
5
5
|
title: String,
|
6
6
|
value: {
|
@@ -122,6 +122,7 @@ VantComponent({
|
|
122
122
|
selected: null,
|
123
123
|
},
|
124
124
|
],
|
125
|
+
activeTab: 0,
|
125
126
|
});
|
126
127
|
},
|
127
128
|
onClose() {
|
package/dist/cascader/index.json
CHANGED
package/dist/cascader/index.wxml
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
<wxs src="./index.wxs" module="utils" />
|
2
2
|
|
3
|
-
<view wx:if="{{ showHeader }}" class="
|
3
|
+
<view wx:if="{{ showHeader }}" class="smart-cascader__header">
|
4
4
|
<slot name="title" wx:if="{{ useTitleSlot }}"></slot>
|
5
|
-
<text class="
|
6
|
-
<
|
5
|
+
<text class="smart-cascader__title" wx:else>{{ title }}</text>
|
6
|
+
<smart-icon
|
7
7
|
wx:if="{{ closeable }}"
|
8
8
|
name="{{ closeIcon }}"
|
9
|
-
class="
|
9
|
+
class="smart-cascader__close-icon"
|
10
10
|
bind:tap="onClose"
|
11
11
|
/>
|
12
12
|
</view>
|
13
13
|
|
14
|
-
<
|
14
|
+
<smart-tabs
|
15
15
|
active="{{ activeTab }}"
|
16
|
-
custom-class="
|
17
|
-
wrap-class="
|
18
|
-
tab-class="
|
16
|
+
custom-class="smart-cascader__tabs"
|
17
|
+
wrap-class="smart-cascader__tabs-wrap"
|
18
|
+
tab-class="smart-cascader__tab"
|
19
19
|
color="{{ activeColor }}"
|
20
20
|
border="{{ false }}"
|
21
21
|
swipeable="{{ swipeable }}"
|
22
22
|
bind:click="onClickTab"
|
23
23
|
>
|
24
|
-
<
|
24
|
+
<smart-tab
|
25
25
|
wx:for="{{ tabs }}"
|
26
26
|
wx:for-item="tab"
|
27
27
|
wx:for-index="tabIndex"
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<!-- 暂不支持 -->
|
34
34
|
<!-- <slot name="options-top"></slot> -->
|
35
35
|
|
36
|
-
<view class="
|
36
|
+
<view class="smart-cascader__options">
|
37
37
|
<view
|
38
38
|
wx:for="{{ tab.options }}"
|
39
39
|
wx:for-item="option"
|
@@ -45,10 +45,10 @@
|
|
45
45
|
bind:tap="onSelect"
|
46
46
|
>
|
47
47
|
<text>{{ option.text }}</text>
|
48
|
-
<
|
48
|
+
<smart-icon wx:if="{{ utils.isSelected(tab, option) }}" name="success" size="18" />
|
49
49
|
</view>
|
50
50
|
</view>
|
51
51
|
<!-- 暂不支持 -->
|
52
52
|
<!-- <slot name="options-bottom"></slot> -->
|
53
|
-
</
|
54
|
-
</
|
53
|
+
</smart-tab>
|
54
|
+
</smart-tabs>
|
package/dist/cascader/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-cascader__header{align-items:center;display:flex;height:48px;justify-content:space-between;padding:0 16px}.smart-cascader__title{font-size:16px;font-weight:600;line-height:20px}.smart-cascader__close-icon{color:#c8c9cc;font-size:22px;height:22px}.smart-cascader__tabs-wrap{height:48px!important;padding:0 8px}.smart-cascader__tab{color:#323233!important;flex:none!important;font-weight:600!important;padding:0 8px!important}.smart-cascader__tab--unselected{color:#969799!important;font-weight:400!important}.smart-cascader__option{align-items:center;cursor:pointer;display:flex;font-size:14px;justify-content:space-between;line-height:20px;padding:10px 16px}.smart-cascader__option:active{background-color:#f2f3f5}.smart-cascader__option--selected{color:#1989fa;font-weight:600}.smart-cascader__option--disabled{color:#c8c9cc;cursor:not-allowed}.smart-cascader__option--disabled:active{background-color:initial}.smart-cascader__options{-webkit-overflow-scrolling:touch;box-sizing:border-box;height:384px;overflow-y:auto;padding-top:6px}
|
package/dist/cell/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-cell{align-items:center;background-color:var(--cell-background-color,var(--app-B6,#fff));box-sizing:border-box;color:var(--cell-text-color,var(--app-B6-N1,#000));display:flex;font-size:var(--cell-font-size,16px);line-height:var(--cell-line-height,24px);padding:var(--cell-vertical-padding,16px) var(--cell-horizontal-padding,16px);position:relative;width:100%}.smart-cell:after{border-bottom:1px solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:16px;transform:scaleY(.5);transform-origin:center}.smart-cell--borderless:after{display:none}.smart-cell-group{background-color:var(--cell-background-color,var(--app-B6,#fff))}.smart-cell__label{color:var(--cell-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-label-font-size,14px);line-height:var(--cell-label-line-height,18px);margin-top:var(--cell-label-margin-top,3px)}.smart-cell__title{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}.smart-cell__value{align-items:center;color:var(--cell-value-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:flex;justify-content:flex-end;overflow:hidden;text-align:right;vertical-align:middle}.smart-cell__title,.smart-cell__value{flex:1}.smart-cell__title:empty,.smart-cell__value:empty{display:none}.smart-cell__left-icon-wrap,.smart-cell__right-icon-wrap{align-items:center;display:flex;font-size:var(--cell-icon-size,24px);height:var(--cell-line-height,24px)}.smart-cell__left-icon-wrap{margin-right:var(--padding-base,4px)}.smart-cell__right-icon-wrap{color:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)));margin-left:var(--padding-base,4px)}.smart-cell__left-icon{vertical-align:middle}.smart-cell__left-icon,.smart-cell__right-icon{line-height:var(--cell-line-height,24px)}.smart-cell__right-icon>view{background:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)))}.smart-cell--clickable.smart-cell--hover{background-color:var(--cell-active-color,var(--app-B1,#f6f7fb))}.smart-cell--required{overflow:visible}.smart-cell--required:before{color:var(--cell-required-color,var(--app-M2,#f04c4c));content:"*";font-size:var(--cell-font-size,16px);left:var(--padding-xs,8px);position:absolute}
|
package/dist/cell/index.js
CHANGED
@@ -3,8 +3,8 @@ import downIcon from '@tuya-miniapp/icons/dist/svg/Down';
|
|
3
3
|
import leftIcon from '@tuya-miniapp/icons/dist/svg/Left';
|
4
4
|
import rightIcon from '@tuya-miniapp/icons/dist/svg/Right';
|
5
5
|
import { link } from '../mixins/link';
|
6
|
-
import {
|
7
|
-
|
6
|
+
import { SmartComponent } from '../common/component';
|
7
|
+
SmartComponent({
|
8
8
|
classes: [
|
9
9
|
'title-class',
|
10
10
|
'label-class',
|
package/dist/cell/index.json
CHANGED
package/dist/cell/index.wxml
CHANGED
@@ -3,43 +3,43 @@
|
|
3
3
|
|
4
4
|
<view
|
5
5
|
class="custom-class {{ utils.bem('cell', [{ required, borderless: !border, clickable: isLink || clickable }]) }}"
|
6
|
-
hover-class="
|
6
|
+
hover-class="smart-cell--hover hover-class"
|
7
7
|
hover-stay-time="70"
|
8
8
|
style="{{ customStyle }}"
|
9
9
|
bind:tap="onClick"
|
10
10
|
>
|
11
|
-
<
|
11
|
+
<smart-icon
|
12
12
|
wx:if="{{ icon }}"
|
13
13
|
name="{{ icon }}"
|
14
|
-
class="
|
15
|
-
custom-class="
|
14
|
+
class="smart-cell__left-icon-wrap"
|
15
|
+
custom-class="smart-cell__left-icon"
|
16
16
|
/>
|
17
17
|
<slot wx:else name="icon" />
|
18
18
|
|
19
19
|
<view
|
20
20
|
style="{{ computed.titleStyle({ titleWidth, titleStyle }) }}"
|
21
|
-
class="
|
21
|
+
class="smart-cell__title title-class"
|
22
22
|
>
|
23
23
|
|
24
24
|
<block wx:if="{{ title }}">{{ title }}</block>
|
25
25
|
<slot wx:else name="title" />
|
26
26
|
|
27
|
-
<view wx:if="{{ label || useLabelSlot }}" class="
|
27
|
+
<view wx:if="{{ label || useLabelSlot }}" class="smart-cell__label label-class">
|
28
28
|
<slot wx:if="{{ useLabelSlot }}" name="label" />
|
29
29
|
<block wx:elif="{{ label }}">{{ label }}</block>
|
30
30
|
</view>
|
31
31
|
</view>
|
32
32
|
|
33
|
-
<view class="
|
33
|
+
<view class="smart-cell__value value-class">
|
34
34
|
<block wx:if="{{ value || value === 0 }}">{{ value }}</block>
|
35
35
|
<slot wx:else />
|
36
36
|
</view>
|
37
37
|
|
38
|
-
<
|
38
|
+
<smart-icon
|
39
39
|
wx:if="{{ isLink }}"
|
40
40
|
name="{{ arrowDirection ? arrowIcons[arrowDirection] : arrowIcons.right }}"
|
41
|
-
class="
|
42
|
-
custom-class="
|
41
|
+
class="smart-cell__right-icon-wrap right-icon-class"
|
42
|
+
custom-class="smart-cell__right-icon"
|
43
43
|
/>
|
44
44
|
<slot wx:else name="right-icon" />
|
45
45
|
|
package/dist/cell/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-cell{align-items:center;background-color:var(--cell-background-color,var(--app-B6,#fff));box-sizing:border-box;color:var(--cell-text-color,var(--app-B6-N1,#000));display:flex;font-size:var(--cell-font-size,16px);line-height:var(--cell-line-height,24px);padding:var(--cell-vertical-padding,16px) var(--cell-horizontal-padding,16px);position:relative;width:100%}.smart-cell:after{border-bottom:1px solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:16px;transform:scaleY(.5);transform-origin:center}.smart-cell--borderless:after{display:none}.smart-cell-group{background-color:var(--cell-background-color,var(--app-B6,#fff))}.smart-cell__label{color:var(--cell-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-label-font-size,14px);line-height:var(--cell-label-line-height,18px);margin-top:var(--cell-label-margin-top,3px)}.smart-cell__title{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}.smart-cell__value{align-items:center;color:var(--cell-value-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:flex;justify-content:flex-end;overflow:hidden;text-align:right;vertical-align:middle}.smart-cell__title,.smart-cell__value{flex:1}.smart-cell__title:empty,.smart-cell__value:empty{display:none}.smart-cell__left-icon-wrap,.smart-cell__right-icon-wrap{align-items:center;display:flex;font-size:var(--cell-icon-size,24px);height:var(--cell-line-height,24px)}.smart-cell__left-icon-wrap{margin-right:var(--padding-base,4px)}.smart-cell__right-icon-wrap{color:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)));margin-left:var(--padding-base,4px)}.smart-cell__left-icon{vertical-align:middle}.smart-cell__left-icon,.smart-cell__right-icon{line-height:var(--cell-line-height,24px)}.smart-cell__right-icon>view{background:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)))}.smart-cell--clickable.smart-cell--hover{background-color:var(--cell-active-color,var(--app-B1,#f6f7fb))}.smart-cell--required{overflow:visible}.smart-cell--required:before{color:var(--cell-required-color,var(--app-M2,#f04c4c));content:"*";font-size:var(--cell-font-size,16px);left:var(--padding-xs,8px);position:absolute}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-cell-group--inset{border-radius:var(--cell-group-inset-border-radius,16px);margin:var(--cell-group-inset-padding,0 16px);overflow:hidden}.smart-cell-group__title{color:var(--cell-group-title-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-group-title-font-size,16px);line-height:var(--cell-group-title-line-height,16px);padding:var(--cell-group-title-padding,16px 16px 8px)}.smart-cell-group__title--inset{padding:var(--cell-group-inset-title-padding,16px 16px 8px 32px)}
|
package/dist/cell-group/index.js
CHANGED
@@ -6,6 +6,6 @@
|
|
6
6
|
>
|
7
7
|
{{ title }}
|
8
8
|
</view>
|
9
|
-
<view class="custom-class {{ utils.bem('cell-group', { inset }) }} {{ border ? '
|
9
|
+
<view class="custom-class {{ utils.bem('cell-group', { inset }) }} {{ border ? 'smart-hairline--top-bottom' : '' }}">
|
10
10
|
<slot />
|
11
11
|
</view>
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-cell-group--inset{border-radius:var(--cell-group-inset-border-radius,16px);margin:var(--cell-group-inset-padding,0 16px);overflow:hidden}.smart-cell-group__title{color:var(--cell-group-title-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-group-title-font-size,16px);line-height:var(--cell-group-title-line-height,16px);padding:var(--cell-group-title-padding,16px 16px 8px)}.smart-cell-group__title--inset{padding:var(--cell-group-inset-title-padding,16px 16px 8px 32px)}
|
package/dist/checkbox/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-checkbox{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.smart-checkbox--horizontal{margin-right:12px}.smart-checkbox__icon-wrap,.smart-checkbox__label{line-height:var(--checkbox-size,20px)}.smart-checkbox__icon-wrap{flex:none}.smart-checkbox__icon{align-items:center;border:1px solid var(--checkbox-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--checkbox-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--checkbox-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.smart-checkbox__icon--round{border-radius:100%}.smart-checkbox__icon--checked{background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:var(--checkbox-checked-icon-color,#1989fa);color:#fff}.smart-checkbox__icon--disabled{background-color:var(--checkbox-disabled-background-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__icon--disabled.smart-checkbox__icon--checked{color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__label{word-wrap:break-word;color:var(--checkbox-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));padding-left:var(--checkbox-label-margin,10px)}.smart-checkbox__label--left{float:left;margin:0 var(--checkbox-label-margin,10px) 0 0}.smart-checkbox__label--disabled{color:var(--checkbox-disabled-label-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__label:empty{margin:0}
|
package/dist/checkbox/index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import CheckmarkIcon from '@tuya-miniapp/icons/dist/svg/Checkmark';
|
2
2
|
import { useParent } from '../common/relation';
|
3
|
-
import {
|
3
|
+
import { SmartComponent } from '../common/component';
|
4
4
|
function emit(target, value) {
|
5
5
|
target.$emit('input', value);
|
6
6
|
target.$emit('change', value);
|
7
7
|
}
|
8
|
-
|
8
|
+
SmartComponent({
|
9
9
|
field: true,
|
10
10
|
relation: useParent('checkbox-group'),
|
11
11
|
classes: ['icon-class', 'label-class'],
|
package/dist/checkbox/index.json
CHANGED
package/dist/checkbox/index.wxml
CHANGED
@@ -9,9 +9,9 @@
|
|
9
9
|
>
|
10
10
|
<slot />
|
11
11
|
</view>
|
12
|
-
<view class="
|
12
|
+
<view class="smart-checkbox__icon-wrap" bindtap="toggle">
|
13
13
|
<slot wx:if="{{ useIconSlot }}" name="icon" />
|
14
|
-
<
|
14
|
+
<smart-icon
|
15
15
|
wx:else
|
16
16
|
name="{{icon}}"
|
17
17
|
size="0.8em"
|
package/dist/checkbox/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-checkbox{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.smart-checkbox--horizontal{margin-right:12px}.smart-checkbox__icon-wrap,.smart-checkbox__label{line-height:var(--checkbox-size,20px)}.smart-checkbox__icon-wrap{flex:none}.smart-checkbox__icon{align-items:center;border:1px solid var(--checkbox-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--checkbox-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--checkbox-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.smart-checkbox__icon--round{border-radius:100%}.smart-checkbox__icon--checked{background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:var(--checkbox-checked-icon-color,#1989fa);color:#fff}.smart-checkbox__icon--disabled{background-color:var(--checkbox-disabled-background-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__icon--disabled.smart-checkbox__icon--checked{color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__label{word-wrap:break-word;color:var(--checkbox-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));padding-left:var(--checkbox-label-margin,10px)}.smart-checkbox__label--left{float:left;margin:0 var(--checkbox-label-margin,10px) 0 0}.smart-checkbox__label--disabled{color:var(--checkbox-disabled-label-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__label:empty{margin:0}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useChildren } from '../common/relation';
|
2
|
-
import {
|
3
|
-
|
2
|
+
import { SmartComponent } from '../common/component';
|
3
|
+
SmartComponent({
|
4
4
|
field: true,
|
5
5
|
relation: useChildren('checkbox', function (target) {
|
6
6
|
this.updateChild(target);
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
|
package/dist/circle/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-progress-circle{align-items:center;border-radius:50%;box-sizing:border-box;display:flex;height:100px;justify-content:center;overflow:hidden;position:relative;width:100px}.smart-progress-circle-box{height:100%;overflow:hidden;position:absolute;top:0;width:50%}.smart-progress-circle-box-left{left:0}.smart-progress-circle-box-right{right:0}.smart-progress-circle-bar{height:100%;width:100%}.smart-progress-circle-bar-left{transform-origin:right}.smart-progress-circle-bar-right{transform-origin:left}.smart-progress-circle-content{align-items:center;background:var(--app-B1,#f6f7fb);border-radius:50%;display:flex;height:100%;justify-content:center;position:relative;width:100%}
|
package/dist/circle/index.js
CHANGED
package/dist/circle/index.wxml
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
<view class="
|
2
|
-
<view class="
|
3
|
-
<view class="
|
1
|
+
<view class="smart-progress-circle" style="width:{{size}}px;height:{{size}}px;padding:{{trackWidth}}px;background:{{fillColor}};{{style}}">
|
2
|
+
<view class="smart-progress-circle-box smart-progress-circle-box-left">
|
3
|
+
<view class="smart-progress-circle-bar smart-progress-circle-bar-left" style="transform:{{transformLeft}};background:{{trackColor}};">
|
4
4
|
</view>
|
5
5
|
</view>
|
6
|
-
<view class="
|
7
|
-
<view class="
|
6
|
+
<view class="smart-progress-circle-box smart-progress-circle-box-right">
|
7
|
+
<view class="smart-progress-circle-bar smart-progress-circle-bar-right" style="transform:{{transformRight}};background:{{trackColor}};">
|
8
8
|
</view>
|
9
9
|
</view>
|
10
|
-
<view class="
|
10
|
+
<view class="smart-progress-circle-content" style="background:{{maskColor}};">
|
11
11
|
<slot></slot>
|
12
12
|
</view>
|
13
13
|
</view>
|
package/dist/circle/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-progress-circle{align-items:center;border-radius:50%;box-sizing:border-box;display:flex;height:100px;justify-content:center;overflow:hidden;position:relative;width:100px}.smart-progress-circle-box{height:100%;overflow:hidden;position:absolute;top:0;width:50%}.smart-progress-circle-box-left{left:0}.smart-progress-circle-box-right{right:0}.smart-progress-circle-bar{height:100%;width:100%}.smart-progress-circle-bar-left{transform-origin:right}.smart-progress-circle-bar-right{transform-origin:left}.smart-progress-circle-content{align-items:center;background:var(--app-B1,#f6f7fb);border-radius:50%;display:flex;height:100%;justify-content:center;position:relative;width:100%}
|
package/dist/col/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-col{box-sizing:border-box;float:left}.smart-col--1{width:4.16666667%}.smart-col--offset-1{margin-left:4.16666667%}.smart-col--2{width:8.33333333%}.smart-col--offset-2{margin-left:8.33333333%}.smart-col--3{width:12.5%}.smart-col--offset-3{margin-left:12.5%}.smart-col--4{width:16.66666667%}.smart-col--offset-4{margin-left:16.66666667%}.smart-col--5{width:20.83333333%}.smart-col--offset-5{margin-left:20.83333333%}.smart-col--6{width:25%}.smart-col--offset-6{margin-left:25%}.smart-col--7{width:29.16666667%}.smart-col--offset-7{margin-left:29.16666667%}.smart-col--8{width:33.33333333%}.smart-col--offset-8{margin-left:33.33333333%}.smart-col--9{width:37.5%}.smart-col--offset-9{margin-left:37.5%}.smart-col--10{width:41.66666667%}.smart-col--offset-10{margin-left:41.66666667%}.smart-col--11{width:45.83333333%}.smart-col--offset-11{margin-left:45.83333333%}.smart-col--12{width:50%}.smart-col--offset-12{margin-left:50%}.smart-col--13{width:54.16666667%}.smart-col--offset-13{margin-left:54.16666667%}.smart-col--14{width:58.33333333%}.smart-col--offset-14{margin-left:58.33333333%}.smart-col--15{width:62.5%}.smart-col--offset-15{margin-left:62.5%}.smart-col--16{width:66.66666667%}.smart-col--offset-16{margin-left:66.66666667%}.smart-col--17{width:70.83333333%}.smart-col--offset-17{margin-left:70.83333333%}.smart-col--18{width:75%}.smart-col--offset-18{margin-left:75%}.smart-col--19{width:79.16666667%}.smart-col--offset-19{margin-left:79.16666667%}.smart-col--20{width:83.33333333%}.smart-col--offset-20{margin-left:83.33333333%}.smart-col--21{width:87.5%}.smart-col--offset-21{margin-left:87.5%}.smart-col--22{width:91.66666667%}.smart-col--offset-22{margin-left:91.66666667%}.smart-col--23{width:95.83333333%}.smart-col--offset-23{margin-left:95.83333333%}.smart-col--24{width:100%}.smart-col--offset-24{margin-left:100%}
|
package/dist/col/index.js
CHANGED
package/dist/col/index.wxml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<wxs src="./index.wxs" module="computed" />
|
3
3
|
|
4
4
|
<view
|
5
|
-
class="custom-class {{ utils.bem('col', [span]) }} {{ offset ? '
|
5
|
+
class="custom-class {{ utils.bem('col', [span]) }} {{ offset ? 'smart-col--offset-' + offset : '' }}"
|
6
6
|
style="{{ computed.rootStyle({ gutter }) }}"
|
7
7
|
>
|
8
8
|
<slot />
|
package/dist/col/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-col{box-sizing:border-box;float:left}.smart-col--1{width:4.16666667%}.smart-col--offset-1{margin-left:4.16666667%}.smart-col--2{width:8.33333333%}.smart-col--offset-2{margin-left:8.33333333%}.smart-col--3{width:12.5%}.smart-col--offset-3{margin-left:12.5%}.smart-col--4{width:16.66666667%}.smart-col--offset-4{margin-left:16.66666667%}.smart-col--5{width:20.83333333%}.smart-col--offset-5{margin-left:20.83333333%}.smart-col--6{width:25%}.smart-col--offset-6{margin-left:25%}.smart-col--7{width:29.16666667%}.smart-col--offset-7{margin-left:29.16666667%}.smart-col--8{width:33.33333333%}.smart-col--offset-8{margin-left:33.33333333%}.smart-col--9{width:37.5%}.smart-col--offset-9{margin-left:37.5%}.smart-col--10{width:41.66666667%}.smart-col--offset-10{margin-left:41.66666667%}.smart-col--11{width:45.83333333%}.smart-col--offset-11{margin-left:45.83333333%}.smart-col--12{width:50%}.smart-col--offset-12{margin-left:50%}.smart-col--13{width:54.16666667%}.smart-col--offset-13{margin-left:54.16666667%}.smart-col--14{width:58.33333333%}.smart-col--offset-14{margin-left:58.33333333%}.smart-col--15{width:62.5%}.smart-col--offset-15{margin-left:62.5%}.smart-col--16{width:66.66666667%}.smart-col--offset-16{margin-left:66.66666667%}.smart-col--17{width:70.83333333%}.smart-col--offset-17{margin-left:70.83333333%}.smart-col--18{width:75%}.smart-col--offset-18{margin-left:75%}.smart-col--19{width:79.16666667%}.smart-col--offset-19{margin-left:79.16666667%}.smart-col--20{width:83.33333333%}.smart-col--offset-20{margin-left:83.33333333%}.smart-col--21{width:87.5%}.smart-col--offset-21{margin-left:87.5%}.smart-col--22{width:91.66666667%}.smart-col--offset-22{margin-left:91.66666667%}.smart-col--23{width:95.83333333%}.smart-col--offset-23{margin-left:95.83333333%}.smart-col--24{width:100%}.smart-col--offset-24{margin-left:100%}
|
package/dist/collapse/index.js
CHANGED
package/dist/collapse/index.wxml
CHANGED
@@ -31,7 +31,7 @@ function useAnimation(context, expanded, mounted, height) {
|
|
31
31
|
});
|
32
32
|
}
|
33
33
|
export function setContentAnimate(context, expanded, mounted) {
|
34
|
-
getRect(context, '.
|
34
|
+
getRect(context, '.smart-collapse-item__content')
|
35
35
|
.then((rect) => rect.height)
|
36
36
|
.then((height) => {
|
37
37
|
useAnimation(context, expanded, mounted, height);
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-collapse-item__title .smart-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.smart-collapse-item__title--expanded .smart-cell__right-icon{transform:rotate(-90deg)}.smart-collapse-item__title--disabled .smart-cell,.smart-collapse-item__title--disabled .smart-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.smart-collapse-item__title--disabled .smart-cell--hover{background-color:#fff!important}.smart-collapse-item__wrapper{overflow:hidden}.smart-collapse-item__content{background-color:var(--collapse-item-content-background-color,var(--app-B6,#fff));color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { SmartComponent } from '../common/component';
|
2
2
|
import { useParent } from '../common/relation';
|
3
3
|
import { setContentAnimate } from './animate';
|
4
|
-
|
4
|
+
SmartComponent({
|
5
5
|
classes: ['title-class', 'content-class'],
|
6
6
|
relation: useParent('collapse'),
|
7
7
|
props: {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
2
|
|
3
|
-
<view class="
|
4
|
-
<
|
3
|
+
<view class="smart-collapse-item custom-class {{ index !== 0 ? 'smart-hairline--top' : '' }}">
|
4
|
+
<smart-cell
|
5
5
|
size="{{ size }}"
|
6
6
|
title="{{ title }}"
|
7
7
|
title-class="title-class"
|
@@ -12,9 +12,9 @@
|
|
12
12
|
clickable="{{ clickable }}"
|
13
13
|
border="{{ border && expanded }}"
|
14
14
|
class="{{ utils.bem('collapse-item__title', { disabled, expanded }) }}"
|
15
|
-
right-icon-class="
|
16
|
-
custom-class="
|
17
|
-
hover-class="
|
15
|
+
right-icon-class="smart-cell__right-icon"
|
16
|
+
custom-class="smart-cell"
|
17
|
+
hover-class="smart-cell--hover"
|
18
18
|
bind:click="onClick"
|
19
19
|
>
|
20
20
|
<slot
|
@@ -30,14 +30,14 @@
|
|
30
30
|
name="right-icon"
|
31
31
|
slot="right-icon"
|
32
32
|
/>
|
33
|
-
</
|
33
|
+
</smart-cell>
|
34
34
|
<view
|
35
35
|
class="{{ utils.bem('collapse-item__wrapper') }}"
|
36
36
|
style="height: 0;"
|
37
37
|
animation="{{ animation }}"
|
38
38
|
>
|
39
39
|
<view
|
40
|
-
class="
|
40
|
+
class="smart-collapse-item__content content-class"
|
41
41
|
>
|
42
42
|
<slot />
|
43
43
|
</view>
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-collapse-item__title .smart-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.smart-collapse-item__title--expanded .smart-cell__right-icon{transform:rotate(-90deg)}.smart-collapse-item__title--disabled .smart-cell,.smart-collapse-item__title--disabled .smart-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.smart-collapse-item__title--disabled .smart-cell--hover{background-color:#fff!important}.smart-collapse-item__wrapper{overflow:hidden}.smart-collapse-item__content{background-color:var(--collapse-item-content-background-color,var(--app-B6,#fff));color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
2
|
-
import {
|
3
|
-
declare function
|
4
|
-
export {
|
2
|
+
import { SmartComponentOptions } from 'definitions/index';
|
3
|
+
declare function SmartComponent<Data extends WechatMiniprogram.Component.DataOption, Props extends WechatMiniprogram.Component.PropertyOption, Methods extends WechatMiniprogram.Component.MethodOption>(smartOptions: SmartComponentOptions<Data, Props, Methods>): void;
|
4
|
+
export { SmartComponent };
|
package/dist/common/component.js
CHANGED
@@ -6,9 +6,9 @@ function mapKeys(source, target, map) {
|
|
6
6
|
}
|
7
7
|
});
|
8
8
|
}
|
9
|
-
function
|
9
|
+
function SmartComponent(smartOptions) {
|
10
10
|
const options = {};
|
11
|
-
mapKeys(
|
11
|
+
mapKeys(smartOptions, options, {
|
12
12
|
data: 'data',
|
13
13
|
props: 'properties',
|
14
14
|
watch: 'observers',
|
@@ -27,13 +27,13 @@ function VantComponent(vantOptions) {
|
|
27
27
|
options.behaviors = options.behaviors || [];
|
28
28
|
options.behaviors.push(basic);
|
29
29
|
// add relations
|
30
|
-
const { relation } =
|
30
|
+
const { relation } = smartOptions;
|
31
31
|
if (relation) {
|
32
32
|
options.relations = relation.relations;
|
33
33
|
options.behaviors.push(relation.mixin);
|
34
34
|
}
|
35
35
|
// map field to form-field behavior
|
36
|
-
// if (
|
36
|
+
// if (smartOptions.field) {
|
37
37
|
// options.behaviors.push('wx://form-field');
|
38
38
|
// }
|
39
39
|
// add default options
|
@@ -43,4 +43,4 @@ function VantComponent(vantOptions) {
|
|
43
43
|
};
|
44
44
|
Component(options);
|
45
45
|
}
|
46
|
-
export {
|
46
|
+
export { SmartComponent };
|
package/dist/common/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
.smart-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-multi-ellipsis--l2{-webkit-line-clamp:2}.smart-multi-ellipsis--l2,.smart-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.smart-multi-ellipsis--l3{-webkit-line-clamp:3}.smart-clearfix:after{clear:both;content:"";display:table}.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:1px}.smart-hairline--left:after{border-left-width:1px}.smart-hairline--right:after{border-right-width:1px}.smart-hairline--bottom:after{border-bottom-width:1px}.smart-hairline--top-bottom:after{border-width:1px 0}.smart-hairline--surround:after{border-width:1px}
|