@tuya-miniapp/smart-ui 0.0.1-beta-6 → 1.0.0-beta-2
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 +2 -2
- package/dist/action-sheet/index.json +3 -3
- package/dist/action-sheet/index.wxml +16 -16
- 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 +11 -2
- package/dist/cascader/index.json +3 -3
- package/dist/cascader/index.wxml +15 -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 +5 -5
- 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 +7 -3
- 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 +1 -1
- package/lib/action-sheet/index.json +3 -3
- package/lib/action-sheet/index.wxml +16 -16
- 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 +10 -1
- package/lib/cascader/index.json +3 -3
- package/lib/cascader/index.wxml +15 -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 +5 -5
- 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 +6 -2
- 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
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
.smart-clearfix:after{clear:both;content:"";display:table}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
.smart-clearfix:after{clear:both;content:"";display:table}
|
@@ -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}
|
@@ -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}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
.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}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
.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}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-count-down{color:var(--count-down-text-color,var(--app-B6-N2,rgba(0,0,0,.7)));font-size:var(--count-down-font-size,14px);line-height:var(--count-down-line-height,20px)}
|
package/dist/count-down/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { SmartComponent } from '../common/component';
|
2
2
|
import { isSameSecond, parseFormat, parseTimeData } from './utils';
|
3
3
|
function simpleTick(fn) {
|
4
4
|
return setTimeout(fn, 30);
|
5
5
|
}
|
6
|
-
|
6
|
+
SmartComponent({
|
7
7
|
props: {
|
8
8
|
useSlot: Boolean,
|
9
9
|
millisecond: Boolean,
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-count-down{color:var(--count-down-text-color,var(--app-B6-N2,rgba(0,0,0,.7)));font-size:var(--count-down-font-size,14px);line-height:var(--count-down-line-height,20px)}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"component": true,
|
3
3
|
"usingComponents": {
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"
|
4
|
+
"smart-popup": "../popup/index",
|
5
|
+
"smart-image": "../image/index",
|
6
|
+
"smart-button": "../button/index",
|
7
|
+
"smart-icon": "../icon/index"
|
8
8
|
}
|
9
9
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { SmartComponent } from '../common/component';
|
2
2
|
import { isDef } from '../common/validator';
|
3
3
|
import { pickerProps } from '../picker/shared';
|
4
4
|
const currentYear = new Date().getFullYear();
|
@@ -32,7 +32,7 @@ function getMonthEndDay(year, month) {
|
|
32
32
|
return 32 - new Date(year, month - 1, 32).getDate();
|
33
33
|
}
|
34
34
|
const defaultFormatter = (type, value) => value;
|
35
|
-
|
35
|
+
SmartComponent({
|
36
36
|
classes: ['active-class', 'toolbar-class', 'column-class'],
|
37
37
|
props: Object.assign(Object.assign({}, pickerProps), { value: {
|
38
38
|
type: null,
|
@@ -91,7 +91,7 @@ VantComponent({
|
|
91
91
|
},
|
92
92
|
getPicker() {
|
93
93
|
if (this.picker == null) {
|
94
|
-
this.picker = this.selectComponent('.
|
94
|
+
this.picker = this.selectComponent('.smart-datetime-picker');
|
95
95
|
const { picker } = this;
|
96
96
|
const { setColumnValues } = picker;
|
97
97
|
picker.setColumnValues = (...args) => setColumnValues.apply(picker, [...args, false]);
|
@@ -1,11 +1,12 @@
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
2
|
-
interface
|
2
|
+
interface SmartComponentInstance {
|
3
3
|
parent: WechatMiniprogram.Component.TrivialInstance;
|
4
4
|
children: WechatMiniprogram.Component.TrivialInstance[];
|
5
5
|
index: number;
|
6
6
|
$emit: (name: string, detail?: unknown, options?: WechatMiniprogram.Component.TriggerEventOption) => void;
|
7
|
+
setView: (value: Record<string, any>, callback?: () => void) => void;
|
7
8
|
}
|
8
|
-
export type
|
9
|
+
export type SmartComponentOptions<Data extends WechatMiniprogram.Component.DataOption, Props extends WechatMiniprogram.Component.PropertyOption, Methods extends WechatMiniprogram.Component.MethodOption> = {
|
9
10
|
data?: Data;
|
10
11
|
field?: boolean;
|
11
12
|
classes?: string[];
|
@@ -21,7 +22,7 @@ export type VantComponentOptions<Data extends WechatMiniprogram.Component.DataOp
|
|
21
22
|
created?: () => void;
|
22
23
|
mounted?: () => void;
|
23
24
|
destroyed?: () => void;
|
24
|
-
} & ThisType<
|
25
|
+
} & ThisType<SmartComponentInstance & WechatMiniprogram.Component.Instance<Data & {
|
25
26
|
name: string;
|
26
27
|
value: any;
|
27
28
|
} & Record<string, any>, Props, Methods> & Record<string, any>>;
|
package/dist/dialog/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-dialog{background-color:var(--dialog-background-color,var(--app-B4,#fff));border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,311px)}@media (max-width:321px){.smart-dialog{width:var(--dialog-small-screen-width,90%)}}.smart-dialog__header{color:var(--dialog-header-font-color,var(--app-B4-N1,#000));font-weight:var(--dialog-header-font-weight,400);line-height:var(--dialog-header-line-height,24px);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.smart-dialog__header-icon{border-radius:100%;display:block;font-size:var(--dialog-header-icon-size,39px);height:var(--dialog-header-icon-size,39px);margin:auto auto 12px;width:var(--dialog-header-icon-size,39px)}.smart-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.smart-dialog__message{-webkit-overflow-scrolling:touch;color:var(--dialog-message-text-color,var(--app-B4-N1,#000));font-size:var(--dialog-message-font-size,16px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.smart-dialog__message-text{word-wrap:break-word}.smart-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--dialog-has-title-message-font-size,14px);padding-top:var(--dialog-has-title-message-padding-top,8px)}.smart-dialog__message--round-button{padding-bottom:16px}.smart-dialog__message--left{text-align:left}.smart-dialog__message--right{text-align:right}.smart-dialog__message--justify{text-align:justify}.smart-dialog__input{background-color:var(--dialog-input-background-color,var(--app-B4-N9,rgba(0,0,0,.05)));border-radius:var(--dialog-input-border-radius,10px);font-size:var(--dialog-input-font-size,14px);height:var(--dialog-input-height,40px);margin:var(--dialog-input-margin,0 16px 24px);padding:var(--dialog-input-padding,0 10px)}.smart-dialog__footer{display:flex}.smart-dialog__footer--round-button{height:40px!important;padding:8px 20px 16px!important;position:relative!important}.smart-dialog__button{flex:1}.smart-dialog__cancel,.smart-dialog__confirm{border:0!important;border-radius:0!important}.smart-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}
|
package/dist/dialog/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import warningIcon from '@tuya-miniapp/icons/dist/svg/Warning';
|
2
|
-
import {
|
2
|
+
import { SmartComponent } from '../common/component';
|
3
3
|
import { button } from '../mixins/button';
|
4
4
|
import { toPromise } from '../common/utils';
|
5
|
-
|
5
|
+
SmartComponent({
|
6
6
|
mixins: [button],
|
7
7
|
classes: ['cancle-button-class', 'confirm-button-class'],
|
8
8
|
props: {
|
package/dist/dialog/index.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"component": true,
|
3
3
|
"usingComponents": {
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
4
|
+
"smart-popup": "../popup/index",
|
5
|
+
"smart-button": "../button/index",
|
6
|
+
"smart-icon": "../icon/index",
|
7
|
+
"smart-goods-action": "../goods-action/index",
|
8
|
+
"smart-goods-action-button": "../goods-action-button/index"
|
9
9
|
}
|
10
10
|
}
|
package/dist/dialog/index.wxml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
2
|
|
3
|
-
<
|
3
|
+
<smart-popup
|
4
4
|
show="{{ show }}"
|
5
5
|
z-index="{{ zIndex }}"
|
6
6
|
overlay="{{ overlay }}"
|
7
7
|
transition="{{ transition }}"
|
8
|
-
custom-class="
|
8
|
+
custom-class="smart-dialog smart-dialog--{{ theme }}{{ className }} custom-class"
|
9
9
|
custom-style="width: {{ utils.addUnit(width) }};{{ customStyle }}"
|
10
10
|
overlay-style="{{ overlayStyle }}"
|
11
11
|
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
@@ -16,14 +16,14 @@
|
|
16
16
|
wx:if="{{ title || useTitleSlot }}"
|
17
17
|
class="{{ utils.bem('dialog__header', { isolated: !(message || useSlot) }) }}"
|
18
18
|
>
|
19
|
-
<
|
19
|
+
<smart-icon wx:if="{{ icon }}" class="smart-dialog__header-icon" custom-class="header-icon-class" name="{{ warningIcon }}" color="#F04C4C" />
|
20
20
|
<slot wx:if="{{ useTitleSlot }}" name="title" />
|
21
21
|
<block wx:elif="{{ title }}">{{ title }}</block>
|
22
22
|
</view>
|
23
23
|
|
24
24
|
<input
|
25
25
|
wx:if="{{ value !== null }}"
|
26
|
-
class="
|
26
|
+
class="smart-dialog__input"
|
27
27
|
value="{{ value }}"
|
28
28
|
type="{{ type }}"
|
29
29
|
password="{{ password }}"
|
@@ -37,25 +37,25 @@
|
|
37
37
|
wx:elif="{{ message }}"
|
38
38
|
class="{{ utils.bem('dialog__message', [theme, messageAlign, { hasTitle: title }]) }}"
|
39
39
|
>
|
40
|
-
<text class="
|
40
|
+
<text class="smart-dialog__message-text">{{ message }}</text>
|
41
41
|
</view>
|
42
42
|
|
43
|
-
<
|
44
|
-
<
|
43
|
+
<smart-goods-action wx:if="{{ theme === 'round-button' }}" custom-class="smart-dialog__footer--round-button">
|
44
|
+
<smart-goods-action-button
|
45
45
|
wx:if="{{ showCancelButton }}"
|
46
46
|
loading="{{ loaing.cancel }}"
|
47
|
-
class="
|
48
|
-
custom-class="
|
47
|
+
class="smart-dialog__button smart-hairline--right"
|
48
|
+
custom-class="smart-dialog__cancel cancle-button-class"
|
49
49
|
custom-style="color: {{ cancelButtonColor }}"
|
50
50
|
bind:click="onCancel"
|
51
51
|
>
|
52
52
|
{{ cancelButtonText }}
|
53
|
-
</
|
54
|
-
<
|
53
|
+
</smart-goods-action-button>
|
54
|
+
<smart-goods-action-button
|
55
55
|
wx:if="{{ showConfirmButton }}"
|
56
|
-
class="
|
56
|
+
class="smart-dialog__button"
|
57
57
|
loading="{{ loading.confirm }}"
|
58
|
-
custom-class="
|
58
|
+
custom-class="smart-dialog__confirm confirm-button-class"
|
59
59
|
custom-style="color: {{ confirmButtonColor }}"
|
60
60
|
button-id="{{ confirmButtonId }}"
|
61
61
|
open-type="{{ confirmButtonOpenType }}"
|
@@ -78,35 +78,35 @@
|
|
78
78
|
bindopensetting="onOpenSetting"
|
79
79
|
>
|
80
80
|
{{ confirmButtonText }}
|
81
|
-
</
|
82
|
-
</
|
81
|
+
</smart-goods-action-button>
|
82
|
+
</smart-goods-action>
|
83
83
|
|
84
|
-
<view wx:elif="{{ showCancelButton || showConfirmButton }}" class="
|
84
|
+
<view wx:elif="{{ showCancelButton || showConfirmButton }}" class="smart-hairline--top smart-dialog__footer">
|
85
85
|
<block wx:if="{{ showCancelButton }}">
|
86
86
|
<slot wx:if="{{ useCancelButtonSlot }}" name="cancel-button" />
|
87
87
|
|
88
|
-
<
|
88
|
+
<smart-button
|
89
89
|
wx:else
|
90
90
|
size="large"
|
91
91
|
loading="{{ loading.cancel }}"
|
92
|
-
class="
|
93
|
-
custom-class="
|
92
|
+
class="smart-dialog__button smart-hairline--right"
|
93
|
+
custom-class="smart-dialog__cancel cancle-button-class"
|
94
94
|
custom-style="color: {{ cancelButtonColor || 'var(--app-B4-N3, rgba(0, 0, 0, 0.5))' }}"
|
95
95
|
bind:click="onCancel"
|
96
96
|
>
|
97
97
|
{{ cancelButtonText }}
|
98
|
-
</
|
98
|
+
</smart-button>
|
99
99
|
</block>
|
100
100
|
|
101
101
|
<block wx:if="{{ showConfirmButton }}">
|
102
102
|
<slot wx:if="{{ useConfirmButtonSlot }}" name="confirm-button" />
|
103
103
|
|
104
|
-
<
|
104
|
+
<smart-button
|
105
105
|
wx:else
|
106
106
|
size="large"
|
107
|
-
class="
|
107
|
+
class="smart-dialog__button"
|
108
108
|
loading="{{ loading.confirm }}"
|
109
|
-
custom-class="
|
109
|
+
custom-class="smart-dialog__confirm confirm-button-class"
|
110
110
|
custom-style="color: {{ confirmButtonColor || 'var(--app-B4-N1, rgba(0, 0, 0, 1))' }}"
|
111
111
|
button-id="{{ confirmButtonId }}"
|
112
112
|
open-type="{{ confirmButtonOpenType }}"
|
@@ -129,7 +129,7 @@
|
|
129
129
|
bindopensetting="onOpenSetting"
|
130
130
|
>
|
131
131
|
{{ confirmButtonText }}
|
132
|
-
</
|
132
|
+
</smart-button>
|
133
133
|
</block>
|
134
134
|
</view>
|
135
|
-
</
|
135
|
+
</smart-popup>
|
package/dist/dialog/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-dialog{background-color:var(--dialog-background-color,var(--app-B4,#fff));border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,311px)}@media (max-width:321px){.smart-dialog{width:var(--dialog-small-screen-width,90%)}}.smart-dialog__header{color:var(--dialog-header-font-color,var(--app-B4-N1,#000));font-weight:var(--dialog-header-font-weight,400);line-height:var(--dialog-header-line-height,24px);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.smart-dialog__header-icon{border-radius:100%;display:block;font-size:var(--dialog-header-icon-size,39px);height:var(--dialog-header-icon-size,39px);margin:auto auto 12px;width:var(--dialog-header-icon-size,39px)}.smart-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.smart-dialog__message{-webkit-overflow-scrolling:touch;color:var(--dialog-message-text-color,var(--app-B4-N1,#000));font-size:var(--dialog-message-font-size,16px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.smart-dialog__message-text{word-wrap:break-word}.smart-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--dialog-has-title-message-font-size,14px);padding-top:var(--dialog-has-title-message-padding-top,8px)}.smart-dialog__message--round-button{padding-bottom:16px}.smart-dialog__message--left{text-align:left}.smart-dialog__message--right{text-align:right}.smart-dialog__message--justify{text-align:justify}.smart-dialog__input{background-color:var(--dialog-input-background-color,var(--app-B4-N9,rgba(0,0,0,.05)));border-radius:var(--dialog-input-border-radius,10px);font-size:var(--dialog-input-font-size,14px);height:var(--dialog-input-height,40px);margin:var(--dialog-input-margin,0 16px 24px);padding:var(--dialog-input-padding,0 10px)}.smart-dialog__footer{display:flex}.smart-dialog__footer--round-button{height:40px!important;padding:8px 20px 16px!important;position:relative!important}.smart-dialog__button{flex:1}.smart-dialog__cancel,.smart-dialog__confirm{border:0!important;border-radius:0!important}.smart-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}
|
package/dist/divider/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-divider{align-items:center;border:0 solid var(--divider-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));color:var(--divider-text-color,#969799);display:flex;font-size:var(--divider-font-size,14px);line-height:var(--divider-line-height,24px);margin:var(--divider-margin,16px 0)}.smart-divider:after,.smart-divider:before{border-color:inherit;border-style:inherit;border-width:1px 0 0;box-sizing:border-box;display:block;flex:1;height:1px}.smart-divider:before{content:""}.smart-divider--hairline:after,.smart-divider--hairline:before{transform:scaleY(.5)}.smart-divider--dashed{border-style:dashed}.smart-divider--center:before,.smart-divider--left:before,.smart-divider--right:before{margin-right:var(--divider-content-padding,16px)}.smart-divider--center:after,.smart-divider--left:after,.smart-divider--right:after{content:"";margin-left:var(--divider-content-padding,16px)}.smart-divider--left:before{max-width:var(--divider-content-left-width,10%)}.smart-divider--right:after{max-width:var(--divider-content-right-width,10%)}
|
package/dist/divider/index.js
CHANGED
package/dist/divider/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-divider{align-items:center;border:0 solid var(--divider-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));color:var(--divider-text-color,#969799);display:flex;font-size:var(--divider-font-size,14px);line-height:var(--divider-line-height,24px);margin:var(--divider-margin,16px 0)}.smart-divider:after,.smart-divider:before{border-color:inherit;border-style:inherit;border-width:1px 0 0;box-sizing:border-box;display:block;flex:1;height:1px}.smart-divider:before{content:""}.smart-divider--hairline:after,.smart-divider--hairline:before{transform:scaleY(.5)}.smart-divider--dashed{border-style:dashed}.smart-divider--center:before,.smart-divider--left:before,.smart-divider--right:before{margin-right:var(--divider-content-padding,16px)}.smart-divider--center:after,.smart-divider--left:after,.smart-divider--right:after{content:"";margin-left:var(--divider-content-padding,16px)}.smart-divider--left:before{max-width:var(--divider-content-left-width,10%)}.smart-divider--right:after{max-width:var(--divider-content-right-width,10%)}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-dropdown-item{left:0;overflow:hidden;position:fixed;right:0}.smart-dropdown-item__option{text-align:left}.smart-dropdown-item__option--active .smart-dropdown-item__icon,.smart-dropdown-item__option--active .smart-dropdown-item__title{color:var(--dropdown-menu-option-active-color,var(--app-M1,#3678e3))}.smart-dropdown-item--up{top:0}.smart-dropdown-item--down{bottom:0}.smart-dropdown-item__icon{display:block;line-height:inherit}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useParent } from '../common/relation';
|
2
|
-
import {
|
3
|
-
|
2
|
+
import { SmartComponent } from '../common/component';
|
3
|
+
SmartComponent({
|
4
4
|
classes: ['item-title-class'],
|
5
5
|
field: true,
|
6
6
|
relation: useParent('dropdown-menu', function () {
|
@@ -5,7 +5,7 @@
|
|
5
5
|
class="{{ utils.bem('dropdown-item', direction) }} custom-class"
|
6
6
|
style="{{ wrapperStyle }}"
|
7
7
|
>
|
8
|
-
<
|
8
|
+
<smart-popup
|
9
9
|
show="{{ showPopup }}"
|
10
10
|
custom-style="position: absolute;{{ popupStyle }}"
|
11
11
|
overlay-style="position: absolute;"
|
@@ -21,7 +21,7 @@
|
|
21
21
|
bind:after-enter="onOpened"
|
22
22
|
bind:after-leave="onClosed"
|
23
23
|
>
|
24
|
-
<
|
24
|
+
<smart-cell
|
25
25
|
wx:for="{{ options }}"
|
26
26
|
wx:key="value"
|
27
27
|
data-option="{{ item }}"
|
@@ -32,19 +32,19 @@
|
|
32
32
|
>
|
33
33
|
<view
|
34
34
|
slot="title"
|
35
|
-
class="
|
35
|
+
class="smart-dropdown-item__title item-title-class"
|
36
36
|
style="{{ item.value === value ? 'color:' + activeColor : '' }}"
|
37
37
|
>
|
38
38
|
{{ item.text }}
|
39
39
|
</view>
|
40
|
-
<
|
40
|
+
<smart-icon
|
41
41
|
wx:if="{{ item.value === value }}"
|
42
42
|
name="success"
|
43
|
-
class="
|
43
|
+
class="smart-dropdown-item__icon"
|
44
44
|
color="{{ activeColor }}"
|
45
45
|
/>
|
46
|
-
</
|
46
|
+
</smart-cell>
|
47
47
|
|
48
48
|
<slot />
|
49
|
-
</
|
49
|
+
</smart-popup>
|
50
50
|
</view>
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-dropdown-item{left:0;overflow:hidden;position:fixed;right:0}.smart-dropdown-item__option{text-align:left}.smart-dropdown-item__option--active .smart-dropdown-item__icon,.smart-dropdown-item__option--active .smart-dropdown-item__title{color:var(--dropdown-menu-option-active-color,var(--app-M1,#3678e3))}.smart-dropdown-item--up{top:0}.smart-dropdown-item--down{bottom:0}.smart-dropdown-item__icon{display:block;line-height:inherit}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-dropdown-menu{background-color:var(--dropdown-menu-background-color,var(--app-B3,#fff));box-shadow:var(--dropdown-menu-box-shadow,0 2px 12px var(--app-B6-N6,rgba(0,0,0,.2)));display:flex;height:var(--dropdown-menu-height,50px);-webkit-user-select:none;user-select:none}.smart-dropdown-menu__item{align-items:center;display:flex;flex:1;justify-content:center;min-width:0}.smart-dropdown-menu__item:active{opacity:.7}.smart-dropdown-menu__item--disabled:active{opacity:1}.smart-dropdown-menu__item--disabled .smart-dropdown-menu__title{color:var(--dropdown-menu-title-disabled-text-color,var(--app-B6-N4,rgba(0,0,0,.4)))}.smart-dropdown-menu__title{box-sizing:border-box;color:var(--dropdown-menu-title-text-color,var(--app-B6-N1,#000));font-size:var(--dropdown-menu-title-font-size,15px);line-height:var(--dropdown-menu-title-line-height,18px);max-width:100%;padding:var(--dropdown-menu-title-padding,0 24px 0 8px);position:relative}.smart-dropdown-menu__title:after{border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;content:"";margin-top:-5px;opacity:.8;position:absolute;right:11px;top:50%;transform:rotate(-45deg)}.smart-dropdown-menu__title--active{color:var(--dropdown-menu-title-active-text-color,var(--app-M1,#3678e3))}.smart-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { SmartComponent } from '../common/component';
|
2
2
|
import { useChildren } from '../common/relation';
|
3
3
|
import { addUnit, getRect, getSystemInfoSync } from '../common/utils';
|
4
4
|
let ARRAY = [];
|
5
|
-
|
5
|
+
SmartComponent({
|
6
6
|
field: true,
|
7
7
|
classes: ['title-class'],
|
8
8
|
relation: useChildren('dropdown-item', function () {
|
@@ -86,7 +86,7 @@ VantComponent({
|
|
86
86
|
},
|
87
87
|
getChildWrapperStyle() {
|
88
88
|
const { zIndex, direction } = this.data;
|
89
|
-
return getRect(this, '.
|
89
|
+
return getRect(this, '.smart-dropdown-menu').then((rect) => {
|
90
90
|
const { top = 0, bottom = 0 } = rect;
|
91
91
|
const offset = direction === 'down' ? bottom : this.windowHeight - top;
|
92
92
|
let wrapperStyle = `z-index: ${zIndex};`;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
2
|
<wxs src="./index.wxs" module="computed" />
|
3
3
|
|
4
|
-
<view class="
|
4
|
+
<view class="smart-dropdown-menu smart-dropdown-menu--top-bottom custom-class">
|
5
5
|
<view
|
6
6
|
wx:for="{{ itemListData }}"
|
7
7
|
wx:key="index"
|
@@ -13,7 +13,7 @@
|
|
13
13
|
class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }} title-class"
|
14
14
|
style="{{ item.showPopup ? 'color:' + activeColor : '' }}"
|
15
15
|
>
|
16
|
-
<view class="
|
16
|
+
<view class="smart-ellipsis">
|
17
17
|
{{ computed.displayTitle(item) }}
|
18
18
|
</view>
|
19
19
|
</view>
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-dropdown-menu{background-color:var(--dropdown-menu-background-color,var(--app-B3,#fff));box-shadow:var(--dropdown-menu-box-shadow,0 2px 12px var(--app-B6-N6,rgba(0,0,0,.2)));display:flex;height:var(--dropdown-menu-height,50px);-webkit-user-select:none;user-select:none}.smart-dropdown-menu__item{align-items:center;display:flex;flex:1;justify-content:center;min-width:0}.smart-dropdown-menu__item:active{opacity:.7}.smart-dropdown-menu__item--disabled:active{opacity:1}.smart-dropdown-menu__item--disabled .smart-dropdown-menu__title{color:var(--dropdown-menu-title-disabled-text-color,var(--app-B6-N4,rgba(0,0,0,.4)))}.smart-dropdown-menu__title{box-sizing:border-box;color:var(--dropdown-menu-title-text-color,var(--app-B6-N1,#000));font-size:var(--dropdown-menu-title-font-size,15px);line-height:var(--dropdown-menu-title-line-height,18px);max-width:100%;padding:var(--dropdown-menu-title-padding,0 24px 0 8px);position:relative}.smart-dropdown-menu__title:after{border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;content:"";margin-top:-5px;opacity:.8;position:absolute;right:11px;top:50%;transform:rotate(-45deg)}.smart-dropdown-menu__title--active{color:var(--dropdown-menu-title-active-text-color,var(--app-M1,#3678e3))}.smart-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}
|
package/dist/empty/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:32px 0}.smart-empty__image{height:160px;width:160px}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__description{color:#969799;font-size:14px;line-height:20px;margin-top:16px;padding:0 60px}.smart-empty__description:empty,.smart-empty__description:not(:empty)+.smart-empty__description{display:none}.smart-empty__bottom{margin-top:24px}
|
package/dist/empty/index.js
CHANGED
package/dist/empty/index.wxml
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
2
|
<wxs src="./index.wxs" module="computed" />
|
3
3
|
|
4
|
-
<view class="custom-class
|
5
|
-
<view class="
|
4
|
+
<view class="custom-class smart-empty">
|
5
|
+
<view class="smart-empty__image">
|
6
6
|
<slot name="image"></slot>
|
7
7
|
</view>
|
8
|
-
<view class="
|
9
|
-
<image wx:if="{{ image }}" class="
|
8
|
+
<view class="smart-empty__image">
|
9
|
+
<image wx:if="{{ image }}" class="smart-empty__image__img" src="{{ computed.imageUrl(image) }}" />
|
10
10
|
</view>
|
11
11
|
|
12
|
-
<view class="
|
12
|
+
<view class="smart-empty__description">
|
13
13
|
<slot name="description"></slot>
|
14
14
|
</view>
|
15
|
-
<view class="
|
15
|
+
<view class="smart-empty__description">
|
16
16
|
{{ description }}
|
17
17
|
</view>
|
18
18
|
|
19
|
-
<view class="
|
19
|
+
<view class="smart-empty__bottom">
|
20
20
|
<slot></slot>
|
21
21
|
</view>
|
22
22
|
</view>
|