@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
package/lib/notice-bar/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
var component_1 = require("../common/component");
|
4
4
|
var utils_1 = require("../common/utils");
|
5
|
-
(0, component_1.
|
5
|
+
(0, component_1.SmartComponent)({
|
6
6
|
props: {
|
7
7
|
text: {
|
8
8
|
type: String,
|
@@ -60,8 +60,8 @@ var utils_1 = require("../common/utils");
|
|
60
60
|
var _this = this;
|
61
61
|
(0, utils_1.requestAnimationFrame)(function () {
|
62
62
|
Promise.all([
|
63
|
-
(0, utils_1.getRect)(_this, '.
|
64
|
-
(0, utils_1.getRect)(_this, '.
|
63
|
+
(0, utils_1.getRect)(_this, '.smart-notice-bar__content'),
|
64
|
+
(0, utils_1.getRect)(_this, '.smart-notice-bar__wrap'),
|
65
65
|
]).then(function (rects) {
|
66
66
|
var contentRect = rects[0], wrapRect = rects[1];
|
67
67
|
var _a = _this.data, speed = _a.speed, scrollable = _a.scrollable, delay = _a.delay;
|
@@ -7,23 +7,23 @@
|
|
7
7
|
style="{{ computed.rootStyle({ color, backgroundColor, background }) }}"
|
8
8
|
bind:tap="onClick"
|
9
9
|
>
|
10
|
-
<
|
10
|
+
<smart-icon
|
11
11
|
wx:if="{{ leftIcon }}"
|
12
12
|
name="{{ leftIcon }}"
|
13
|
-
class="
|
13
|
+
class="smart-notice-bar__left-icon"
|
14
14
|
/>
|
15
15
|
<slot wx:else name="left-icon" />
|
16
16
|
|
17
|
-
<view class="
|
18
|
-
<view class="
|
17
|
+
<view class="smart-notice-bar__wrap">
|
18
|
+
<view class="smart-notice-bar__content {{ scrollable === false && !wrapable ? 'smart-ellipsis' : '' }}" animation="{{ animationData }}">
|
19
19
|
{{ text }}
|
20
20
|
<slot wx:if="{{ !text }}"></slot>
|
21
21
|
</view>
|
22
22
|
</view>
|
23
23
|
|
24
|
-
<
|
24
|
+
<smart-icon
|
25
25
|
wx:if="{{ mode === 'closeable' }}"
|
26
|
-
class="
|
26
|
+
class="smart-notice-bar__right-icon"
|
27
27
|
name="cross"
|
28
28
|
catch:tap="onClickIcon"
|
29
29
|
/>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
url="{{ url }}"
|
33
33
|
open-type="{{ openType }}"
|
34
34
|
>
|
35
|
-
<
|
35
|
+
<smart-icon class="smart-notice-bar__right-icon" name="arrow" />
|
36
36
|
</navigator>
|
37
37
|
<slot wx:else name="right-icon" />
|
38
38
|
</view>
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-notice-bar{align-items:center;background-color:var(--notice-bar-background-color,#fffbe8);color:var(--notice-bar-text-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:flex;font-size:var(--notice-bar-font-size,14px);height:var(--notice-bar-height,40px);line-height:var(--notice-bar-line-height,24px);padding:var(--notice-bar-padding,0 16px)}.smart-notice-bar--withicon{padding-right:40px;position:relative}.smart-notice-bar--wrapable{height:auto;padding:var(--notice-bar-wrapable-padding,8px 16px)}.smart-notice-bar--wrapable .smart-notice-bar__wrap{height:auto}.smart-notice-bar--wrapable .smart-notice-bar__content{position:relative;white-space:normal}.smart-notice-bar__left-icon{align-items:center;display:flex;margin-right:4px;vertical-align:middle}.smart-notice-bar__left-icon,.smart-notice-bar__right-icon{font-size:var(--notice-bar-icon-size,16px);min-width:var(--notice-bar-icon-min-width,22px)}.smart-notice-bar__right-icon{position:absolute;right:15px;top:10px}.smart-notice-bar__wrap{flex:1;height:var(--notice-bar-line-height,24px);overflow:hidden;position:relative}.smart-notice-bar__content{position:absolute;white-space:nowrap}.smart-notice-bar__content.smart-ellipsis{max-width:100%}
|
package/lib/notify/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-notify{word-wrap:break-word;font-size:var(--notify-font-size,14px);line-height:var(--notify-line-height,20px);padding:var(--notify-padding,6px 15px);text-align:center}.smart-notify__container{box-sizing:border-box;left:0;position:fixed;top:0;width:100%}.smart-notify--primary{background-color:var(--notify-primary-background-color,#1989fa)}.smart-notify--success{background-color:var(--notify-success-background-color,#07c160)}.smart-notify--danger{background-color:var(--notify-danger-background-color,#ee0a24)}.smart-notify--warning{background-color:var(--notify-warning-background-color,#ff976a)}
|
package/lib/notify/index.js
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var component_1 = require("../common/component");
|
4
4
|
var color_1 = require("../common/color");
|
5
5
|
var utils_1 = require("../common/utils");
|
6
|
-
(0, component_1.
|
6
|
+
(0, component_1.SmartComponent)({
|
7
7
|
props: {
|
8
8
|
message: String,
|
9
9
|
background: String,
|
package/lib/notify/index.json
CHANGED
package/lib/notify/index.wxml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
2
|
<wxs src="./index.wxs" module="computed" />
|
3
3
|
|
4
|
-
<
|
4
|
+
<smart-transition
|
5
5
|
name="slide-down"
|
6
6
|
show="{{ show }}"
|
7
|
-
custom-class="
|
7
|
+
custom-class="smart-notify__container"
|
8
8
|
custom-style="{{ computed.rootStyle({ zIndex, top }) }}"
|
9
9
|
bind:tap="onTap"
|
10
10
|
>
|
11
11
|
<view
|
12
|
-
class="
|
12
|
+
class="smart-notify smart-notify--{{ type }}"
|
13
13
|
style="{{ computed.notifyStyle({ background, color }) }}"
|
14
14
|
>
|
15
15
|
<view
|
@@ -18,4 +18,4 @@
|
|
18
18
|
/>
|
19
19
|
<text>{{ message }}</text>
|
20
20
|
</view>
|
21
|
-
</
|
21
|
+
</smart-transition>
|
package/lib/notify/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-notify{word-wrap:break-word;font-size:var(--notify-font-size,14px);line-height:var(--notify-line-height,20px);padding:var(--notify-padding,6px 15px);text-align:center}.smart-notify__container{box-sizing:border-box;left:0;position:fixed;top:0;width:100%}.smart-notify--primary{background-color:var(--notify-primary-background-color,#1989fa)}.smart-notify--success{background-color:var(--notify-success-background-color,#07c160)}.smart-notify--danger{background-color:var(--notify-danger-background-color,#ee0a24)}.smart-notify--warning{background-color:var(--notify-warning-background-color,#ff976a)}
|
package/lib/notify/notify.js
CHANGED
@@ -13,7 +13,7 @@ var __assign = (this && this.__assign) || function () {
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
14
|
var color_1 = require("../common/color");
|
15
15
|
var defaultOptions = {
|
16
|
-
selector: '#
|
16
|
+
selector: '#smart-notify',
|
17
17
|
type: 'danger',
|
18
18
|
message: '',
|
19
19
|
background: '',
|
@@ -48,7 +48,7 @@ function Notify(options) {
|
|
48
48
|
notify.show();
|
49
49
|
return notify;
|
50
50
|
}
|
51
|
-
console.warn('未找到
|
51
|
+
console.warn('未找到 smart-notify 节点,请确认 selector 及 context 是否正确');
|
52
52
|
}
|
53
53
|
exports.default = Notify;
|
54
54
|
Notify.clear = function (options) {
|
package/lib/overlay/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-overlay{background-color:var(--overlay-background-color,rgba(0,0,0,.7));height:100%;left:0;position:fixed;top:0;width:100%}
|
package/lib/overlay/index.js
CHANGED
package/lib/overlay/index.json
CHANGED
package/lib/overlay/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-overlay{background-color:var(--overlay-background-color,rgba(0,0,0,.7));height:100%;left:0;position:fixed;top:0;width:100%}
|
package/lib/overlay/overlay.wxml
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
<
|
1
|
+
<smart-transition
|
2
2
|
show="{{ show }}"
|
3
|
-
custom-class="
|
3
|
+
custom-class="smart-overlay custom-class"
|
4
4
|
custom-style="z-index: {{ zIndex }}; {{ customStyle }}"
|
5
5
|
duration="{{ duration }}"
|
6
6
|
bind:tap="onClick"
|
7
7
|
catch:touchmove="{{ lockScroll ? 'noop' : ''}}"
|
8
8
|
>
|
9
9
|
<slot></slot>
|
10
|
-
</
|
10
|
+
</smart-transition>
|
package/lib/picker/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.smart-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.smart-picker__cancel,.smart-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.smart-picker__cancel--hover,.smart-picker__confirm--hover{opacity:.7}.smart-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.smart-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.smart-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.smart-picker__columns{display:flex;-webkit-mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);-webkit-mask-position:top,bottom;mask-position:top,bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.smart-picker__column{flex:1 1;width:0}.smart-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.smart-picker__frame{left:var(--picker-padding,16px);pointer-events:none;position:absolute;right:var(--picker-padding,16px);top:50%;transform:translateY(-50%);z-index:1}
|
package/lib/picker/index.js
CHANGED
@@ -13,7 +13,7 @@ var __assign = (this && this.__assign) || function () {
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
14
|
var component_1 = require("../common/component");
|
15
15
|
var shared_1 = require("./shared");
|
16
|
-
(0, component_1.
|
16
|
+
(0, component_1.SmartComponent)({
|
17
17
|
classes: ['active-class', 'toolbar-class', 'column-class'],
|
18
18
|
props: __assign(__assign({}, shared_1.pickerProps), { valueKey: {
|
19
19
|
type: String,
|
@@ -44,7 +44,7 @@ var shared_1 = require("./shared");
|
|
44
44
|
beforeCreate: function () {
|
45
45
|
var _this = this;
|
46
46
|
Object.defineProperty(this, 'children', {
|
47
|
-
get: function () { return _this.selectAllComponents('.
|
47
|
+
get: function () { return _this.selectAllComponents('.smart-picker__column') || []; },
|
48
48
|
});
|
49
49
|
},
|
50
50
|
methods: {
|
package/lib/picker/index.wxml
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
<wxs src="./index.wxs" module="computed" />
|
2
2
|
|
3
|
-
<view class="
|
3
|
+
<view class="smart-picker custom-class">
|
4
4
|
<include wx:if="{{ toolbarPosition === 'top' }}" src="./toolbar.wxml" />
|
5
5
|
|
6
|
-
<view wx:if="{{ loading }}" class="
|
6
|
+
<view wx:if="{{ loading }}" class="smart-picker__loading">
|
7
7
|
<loading color="#1989fa"/>
|
8
8
|
</view>
|
9
9
|
|
10
10
|
<view
|
11
|
-
class="
|
11
|
+
class="smart-picker__columns"
|
12
12
|
style="{{ computed.columnsStyle({ itemHeight, visibleItemCount }) }}"
|
13
13
|
catch:touchmove="noop"
|
14
14
|
>
|
15
15
|
<picker-column
|
16
|
-
class="
|
16
|
+
class="smart-picker__column"
|
17
17
|
wx:for="{{ computed.columns(columns) }}"
|
18
18
|
wx:key="index"
|
19
19
|
data-index="{{ index }}"
|
@@ -30,7 +30,7 @@
|
|
30
30
|
/>
|
31
31
|
|
32
32
|
<view
|
33
|
-
class="
|
33
|
+
class="smart-picker__frame smart-hairline--top-bottom"
|
34
34
|
style="{{ computed.frameStyle({ itemHeight }) }}"
|
35
35
|
/>
|
36
36
|
</view>
|
package/lib/picker/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,var(--app-B4,#fff));overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.smart-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.smart-picker__cancel,.smart-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.smart-picker__cancel--hover,.smart-picker__confirm--hover{opacity:.7}.smart-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.smart-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.smart-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bolder,700);max-width:50%;text-align:center}.smart-picker__columns{display:flex;-webkit-mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);mask-image:linear-gradient(0deg,transparent,#000 50%,transparent);-webkit-mask-position:top,bottom;mask-position:top,bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;overflow:hidden;padding:0 var(--picker-padding,16px);position:relative}.smart-picker__column{flex:1 1;width:0}.smart-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,var(--app-B4,#fff));bottom:0;display:flex;justify-content:center;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:4}.smart-picker__frame{left:var(--picker-padding,16px);pointer-events:none;position:absolute;right:var(--picker-padding,16px);top:50%;transform:translateY(-50%);z-index:1}
|
package/lib/picker/toolbar.wxml
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
<view wx:if="{{ showToolbar }}" class="
|
1
|
+
<view wx:if="{{ showToolbar }}" class="smart-picker__toolbar toolbar-class">
|
2
2
|
<view
|
3
|
-
class="
|
4
|
-
hover-class="
|
3
|
+
class="smart-picker__cancel"
|
4
|
+
hover-class="smart-picker__cancel--hover"
|
5
5
|
hover-stay-time="70"
|
6
6
|
data-type="cancel"
|
7
7
|
bindtap="emit"
|
8
8
|
>
|
9
9
|
{{ cancelButtonText }}
|
10
10
|
</view>
|
11
|
-
<view wx:if="{{ title }}" class="
|
11
|
+
<view wx:if="{{ title }}" class="smart-picker__title smart-ellipsis">{{
|
12
12
|
title
|
13
13
|
}}</view>
|
14
14
|
<view
|
15
|
-
class="
|
16
|
-
hover-class="
|
15
|
+
class="smart-picker__confirm"
|
16
|
+
hover-class="smart-picker__confirm--hover"
|
17
17
|
hover-stay-time="70"
|
18
18
|
data-type="confirm"
|
19
19
|
bindtap="emit"
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-picker-column{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bold,500);position:relative;text-align:center}.smart-picker-column__item{padding:0 5px}.smart-picker-column__item--selected{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-weight:var(--font-weight-bold,500)}.smart-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}.smart-picker-column__unit{align-items:center;display:flex;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);width:100%}.smart-picker-column__unit_text{color:var(--picker-option-unit-text-color,var(--app-B6-N4,rgba(0,0,0,.4)));font-size:var(--picker-option-unit-font-size,12px)}.smart-picker-column__unit_hidden{opacity:0}.smart-picker-column__max-text{font-weight:var(--font-weight-bold,500);opacity:0}
|
@@ -4,7 +4,7 @@ var component_1 = require("../common/component");
|
|
4
4
|
var utils_1 = require("../common/utils");
|
5
5
|
var validator_1 = require("../common/validator");
|
6
6
|
var DEFAULT_DURATION = 200;
|
7
|
-
(0, component_1.
|
7
|
+
(0, component_1.SmartComponent)({
|
8
8
|
classes: ['active-class'],
|
9
9
|
props: {
|
10
10
|
valueKey: String,
|
@@ -91,6 +91,9 @@ var DEFAULT_DURATION = 200;
|
|
91
91
|
else {
|
92
92
|
this.setData({ animate: false });
|
93
93
|
}
|
94
|
+
if (this.fireChange) {
|
95
|
+
this.$emit('change', currentIndex);
|
96
|
+
}
|
94
97
|
},
|
95
98
|
onClickItem: function (event) {
|
96
99
|
var index = event.currentTarget.dataset.index;
|
@@ -163,6 +166,7 @@ var DEFAULT_DURATION = 200;
|
|
163
166
|
var data = this.data;
|
164
167
|
index = this.adjustIndex(index) || 0;
|
165
168
|
var offset = -index * data.itemHeight;
|
169
|
+
this.fireChange = false;
|
166
170
|
if (index !== data.currentIndex) {
|
167
171
|
// 需要动画的情况下,保持最大的截取
|
168
172
|
if (animate) {
|
@@ -173,7 +177,7 @@ var DEFAULT_DURATION = 200;
|
|
173
177
|
animate: true,
|
174
178
|
duration: DEFAULT_DURATION,
|
175
179
|
}).then(function () {
|
176
|
-
userAction && _this
|
180
|
+
userAction && (_this.fireChange = true);
|
177
181
|
});
|
178
182
|
});
|
179
183
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<wxs src="./index.wxs" module="computed" />
|
3
3
|
|
4
4
|
<view
|
5
|
-
class="
|
5
|
+
class="smart-picker-column custom-class"
|
6
6
|
style="{{ computed.rootStyle({ itemHeight, visibleItemCount }) }}"
|
7
7
|
bind:touchstart="onTouchStart"
|
8
8
|
catch:touchmove="onTouchMove"
|
@@ -18,14 +18,14 @@
|
|
18
18
|
wx:key="index"
|
19
19
|
data-index="{{ renderStart + index }}"
|
20
20
|
style="height: {{ itemHeight }}px"
|
21
|
-
class="
|
21
|
+
class="smart-ellipsis {{ utils.bem('picker-column__item', { disabled: option && option.disabled, selected: renderStart + index === currentIndex }) }} {{ renderStart + index === currentIndex ? 'active-class' : '' }}"
|
22
22
|
bindtap="onClickItem"
|
23
23
|
>{{ computed.optionText(option, valueKey) }}</view>
|
24
24
|
</view>
|
25
|
-
<view wx:if="{{unit}}" class="
|
26
|
-
<view class="
|
27
|
-
<text class="
|
28
|
-
<view class="
|
25
|
+
<view wx:if="{{unit}}" class="smart-picker-column__unit" style="height: {{ itemHeight }}px">
|
26
|
+
<view class="smart-picker-column__unit_text smart-picker-column__unit_hidden" >{{unit}}</view>
|
27
|
+
<text class="smart-picker-column__max-text">{{ maxText }}</text>
|
28
|
+
<view class="smart-picker-column__unit_text" >{{unit}}</view>
|
29
29
|
</view>
|
30
30
|
|
31
31
|
</view>
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-picker-column{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bold,500);position:relative;text-align:center}.smart-picker-column__item{padding:0 5px}.smart-picker-column__item--selected{color:var(--picker-option-selected-text-color,var(--app-B6-N1,#000));font-weight:var(--font-weight-bold,500)}.smart-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}.smart-picker-column__unit{align-items:center;display:flex;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);width:100%}.smart-picker-column__unit_text{color:var(--picker-option-unit-text-color,var(--app-B6-N4,rgba(0,0,0,.4)));font-size:var(--picker-option-unit-font-size,12px)}.smart-picker-column__unit_hidden{opacity:0}.smart-picker-column__max-text{font-weight:var(--font-weight-bold,500);opacity:0}
|
package/lib/popup/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,var(--app-B4,#fff));box-sizing:border-box;max-height:100%;overflow-y:auto;position:fixed;transition-timing-function:ease}.smart-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.smart-popup--center.smart-popup--round{border-radius:var(--popup-round-border-radius,16px)}.smart-popup--top{left:0;top:0;width:100%}.smart-popup--top.smart-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.smart-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--right.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.smart-popup--bottom{bottom:0;left:0;width:100%}.smart-popup--bottom.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0}.smart-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--left.smart-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0}.smart-popup--bottom.smart-popup--safe{margin-bottom:env(safe-area-inset-bottom)}.smart-popup--bottom.smart-popup--safeTabBar,.smart-popup--top.smart-popup--safeTabBar{bottom:var(--tabbar-height,55px)}.smart-popup--safeTop{padding-top:env(safe-area-inset-top)}.smart-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,24px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.smart-popup__close-icon--top-left{left:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--top-right{right:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,12px);left:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,12px);right:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon:active{opacity:.6}.smart-scale-enter-active,.smart-scale-leave-active{transition-property:opacity,transform}.smart-scale-enter,.smart-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-fade-enter-active,.smart-fade-leave-active{transition-property:opacity}.smart-fade-enter,.smart-fade-leave-to{opacity:0}.smart-center-enter-active,.smart-center-leave-active{transition-property:opacity}.smart-center-enter,.smart-center-leave-to{opacity:0}.smart-bottom-enter-active,.smart-bottom-leave-active,.smart-left-enter-active,.smart-left-leave-active,.smart-right-enter-active,.smart-right-leave-active,.smart-top-enter-active,.smart-top-leave-active{transition-property:transform}.smart-bottom-enter,.smart-bottom-leave-to{transform:translate3d(0,100%,0)}.smart-top-enter,.smart-top-leave-to{transform:translate3d(0,-100%,0)}.smart-left-enter,.smart-left-leave-to{transform:translate3d(-100%,-50%,0)}.smart-right-enter,.smart-right-leave-to{transform:translate3d(100%,-50%,0)}
|
package/lib/popup/index.js
CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var Xmark_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Xmark"));
|
7
7
|
var component_1 = require("../common/component");
|
8
8
|
var transition_1 = require("../mixins/transition");
|
9
|
-
(0, component_1.
|
9
|
+
(0, component_1.SmartComponent)({
|
10
10
|
classes: [
|
11
11
|
'enter-class',
|
12
12
|
'enter-active-class',
|
package/lib/popup/index.json
CHANGED
package/lib/popup/index.wxml
CHANGED
package/lib/popup/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,var(--app-B4,#fff));box-sizing:border-box;max-height:100%;overflow-y:auto;position:fixed;transition-timing-function:ease}.smart-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.smart-popup--center.smart-popup--round{border-radius:var(--popup-round-border-radius,16px)}.smart-popup--top{left:0;top:0;width:100%}.smart-popup--top.smart-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.smart-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--right.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.smart-popup--bottom{bottom:0;left:0;width:100%}.smart-popup--bottom.smart-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0}.smart-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.smart-popup--left.smart-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0}.smart-popup--bottom.smart-popup--safe{margin-bottom:env(safe-area-inset-bottom)}.smart-popup--bottom.smart-popup--safeTabBar,.smart-popup--top.smart-popup--safeTabBar{bottom:var(--tabbar-height,55px)}.smart-popup--safeTop{padding-top:env(safe-area-inset-top)}.smart-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,24px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.smart-popup__close-icon--top-left{left:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--top-right{right:var(--popup-close-icon-margin,12px);top:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,12px);left:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,12px);right:var(--popup-close-icon-margin,12px)}.smart-popup__close-icon:active{opacity:.6}.smart-scale-enter-active,.smart-scale-leave-active{transition-property:opacity,transform}.smart-scale-enter,.smart-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.smart-fade-enter-active,.smart-fade-leave-active{transition-property:opacity}.smart-fade-enter,.smart-fade-leave-to{opacity:0}.smart-center-enter-active,.smart-center-leave-active{transition-property:opacity}.smart-center-enter,.smart-center-leave-to{opacity:0}.smart-bottom-enter-active,.smart-bottom-leave-active,.smart-left-enter-active,.smart-left-leave-active,.smart-right-enter-active,.smart-right-leave-active,.smart-top-enter-active,.smart-top-leave-active{transition-property:transform}.smart-bottom-enter,.smart-bottom-leave-to{transform:translate3d(0,100%,0)}.smart-top-enter,.smart-top-leave-to{transform:translate3d(0,-100%,0)}.smart-left-enter,.smart-left-leave-to{transform:translate3d(-100%,-50%,0)}.smart-right-enter,.smart-right-leave-to{transform:translate3d(100%,-50%,0)}
|
package/lib/popup/popup.wxml
CHANGED
@@ -8,10 +8,10 @@
|
|
8
8
|
catch:touchmove="{{ lockScroll ? 'noop' : ''}}"
|
9
9
|
>
|
10
10
|
<slot />
|
11
|
-
<
|
11
|
+
<smart-icon
|
12
12
|
wx:if="{{ closeable }}"
|
13
13
|
name="{{ closeIcon }}"
|
14
|
-
class="close-icon-class
|
14
|
+
class="close-icon-class smart-popup__close-icon smart-popup__close-icon--{{ closeIconPosition }}"
|
15
15
|
bind:tap="onClickCloseIcon"
|
16
16
|
/>
|
17
17
|
</view>
|
package/lib/progress/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-progress{background:var(--progress-background-color,#ebedf0);border-radius:var(--progress-height,4px);height:var(--progress-height,4px);position:relative}.smart-progress__portion{background:var(--progress-color,#1989fa);border-radius:inherit;height:100%;left:0;position:absolute}.smart-progress__pivot{background-color:var(--progress-pivot-background-color,#1989fa);border-radius:1em;box-sizing:border-box;color:var(--progress-pivot-text-color,#fff);font-size:var(--progress-pivot-font-size,10px);line-height:var(--progress-pivot-line-height,1.6);min-width:3.6em;padding:var(--progress-pivot-padding,0 5px);position:absolute;text-align:center;top:50%;transform:translateY(-50%);word-break:keep-all}
|
package/lib/progress/index.js
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var component_1 = require("../common/component");
|
4
4
|
var color_1 = require("../common/color");
|
5
5
|
var utils_1 = require("../common/utils");
|
6
|
-
(0, component_1.
|
6
|
+
(0, component_1.SmartComponent)({
|
7
7
|
props: {
|
8
8
|
inactive: Boolean,
|
9
9
|
percentage: {
|
@@ -40,8 +40,8 @@ var utils_1 = require("../common/utils");
|
|
40
40
|
setLeft: function () {
|
41
41
|
var _this = this;
|
42
42
|
Promise.all([
|
43
|
-
(0, utils_1.getRect)(this, '.
|
44
|
-
(0, utils_1.getRect)(this, '.
|
43
|
+
(0, utils_1.getRect)(this, '.smart-progress'),
|
44
|
+
(0, utils_1.getRect)(this, '.smart-progress__pivot'),
|
45
45
|
]).then(function (_a) {
|
46
46
|
var portion = _a[0], pivot = _a[1];
|
47
47
|
if (portion && pivot) {
|
package/lib/progress/index.wxml
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
<wxs src="./index.wxs" module="computed" />
|
3
3
|
|
4
4
|
<view
|
5
|
-
class="
|
5
|
+
class="smart-progress custom-class"
|
6
6
|
style="{{ computed.rootStyle({ strokeWidth, trackColor }) }}"
|
7
7
|
>
|
8
8
|
<view
|
9
|
-
class="
|
9
|
+
class="smart-progress__portion"
|
10
10
|
style="{{ computed.portionStyle({ percentage, inactive, color }) }}"
|
11
11
|
>
|
12
12
|
<view
|
13
13
|
wx:if="{{ showPivot && computed.pivotText(pivotText, percentage) }}"
|
14
14
|
style="{{ computed.pivotStyle({ textColor, pivotColor, inactive, color, right }) }}"
|
15
|
-
class="
|
15
|
+
class="smart-progress__pivot"
|
16
16
|
>
|
17
17
|
{{ computed.pivotText(pivotText, percentage) }}
|
18
18
|
</view>
|
package/lib/progress/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-progress{background:var(--progress-background-color,#ebedf0);border-radius:var(--progress-height,4px);height:var(--progress-height,4px);position:relative}.smart-progress__portion{background:var(--progress-color,#1989fa);border-radius:inherit;height:100%;left:0;position:absolute}.smart-progress__pivot{background-color:var(--progress-pivot-background-color,#1989fa);border-radius:1em;box-sizing:border-box;color:var(--progress-pivot-text-color,#fff);font-size:var(--progress-pivot-font-size,10px);line-height:var(--progress-pivot-line-height,1.6);min-width:3.6em;padding:var(--progress-pivot-padding,0 5px);position:absolute;text-align:center;top:50%;transform:translateY(-50%);word-break:keep-all}
|
package/lib/radio/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-radio{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.smart-radio__icon-wrap{flex:none}.smart-radio--horizontal{margin-right:var(--padding-sm,12px)}.smart-radio__icon{align-items:center;border:1px solid var(--radio-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--radio-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--radio-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.smart-radio__icon--round{border-radius:100%}.smart-radio__icon--checked{background-color:var(--radio-checked-icon-color,var(--app-M4,#1989fa));border-color:var(--radio-checked-icon-color,var(--app-M4,#1989fa));color:#fff}.smart-radio__icon--disabled{background-color:var(--radio-disabled-background-color,var(--app-B6-N6,rgba(0,0,0,.2)));border-color:var(--radio-disabled-icon-color,var(--app-B6-N5,rgba(0,0,0,.3)))}.smart-radio__icon--disabled.smart-radio__icon--checked{color:var(--radio-disabled-icon-color,var(--app-B6-N5,rgba(0,0,0,.3)))}.smart-radio__label{word-wrap:break-word;color:var(--radio-label-color,var(--app-B6-N1,#000));line-height:var(--radio-size,20px);padding-left:var(--radio-label-margin,10px)}.smart-radio__label--left{float:left;margin:0 var(--radio-label-margin,10px) 0 0}.smart-radio__label--disabled{color:var(--radio-disabled-label-color,var(--app-B6-N5,rgba(0,0,0,.3)))}.smart-radio__label:empty{margin:0}
|
package/lib/radio/index.js
CHANGED
@@ -7,7 +7,7 @@ var Checkmark_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Checkmar
|
|
7
7
|
var version_1 = require("../common/version");
|
8
8
|
var component_1 = require("../common/component");
|
9
9
|
var relation_1 = require("../common/relation");
|
10
|
-
(0, component_1.
|
10
|
+
(0, component_1.SmartComponent)({
|
11
11
|
field: true,
|
12
12
|
relation: (0, relation_1.useParent)('radio-group', function () {
|
13
13
|
this.updateFromParent();
|
package/lib/radio/index.json
CHANGED
package/lib/radio/index.wxml
CHANGED
@@ -9,9 +9,9 @@
|
|
9
9
|
>
|
10
10
|
<slot />
|
11
11
|
</view>
|
12
|
-
<view class="
|
12
|
+
<view class="smart-radio__icon-wrap" style="font-size: {{ utils.addUnit(iconSize) }}" bindtap="onChange">
|
13
13
|
<slot wx:if="{{ useIconSlot }}" name="icon" />
|
14
|
-
<
|
14
|
+
<smart-icon
|
15
15
|
wx:else
|
16
16
|
name="{{ icon }}"
|
17
17
|
color="{{ value ? '#fff' : 'none'}}"
|
package/lib/radio/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-radio{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.smart-radio__icon-wrap{flex:none}.smart-radio--horizontal{margin-right:var(--padding-sm,12px)}.smart-radio__icon{align-items:center;border:1px solid var(--radio-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--radio-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--radio-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.smart-radio__icon--round{border-radius:100%}.smart-radio__icon--checked{background-color:var(--radio-checked-icon-color,var(--app-M4,#1989fa));border-color:var(--radio-checked-icon-color,var(--app-M4,#1989fa));color:#fff}.smart-radio__icon--disabled{background-color:var(--radio-disabled-background-color,var(--app-B6-N6,rgba(0,0,0,.2)));border-color:var(--radio-disabled-icon-color,var(--app-B6-N5,rgba(0,0,0,.3)))}.smart-radio__icon--disabled.smart-radio__icon--checked{color:var(--radio-disabled-icon-color,var(--app-B6-N5,rgba(0,0,0,.3)))}.smart-radio__label{word-wrap:break-word;color:var(--radio-label-color,var(--app-B6-N1,#000));line-height:var(--radio-size,20px);padding-left:var(--radio-label-margin,10px)}.smart-radio__label--left{float:left;margin:0 var(--radio-label-margin,10px) 0 0}.smart-radio__label--disabled{color:var(--radio-disabled-label-color,var(--app-B6-N5,rgba(0,0,0,.3)))}.smart-radio__label:empty{margin:0}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-radio-group--horizontal{display:flex;flex-wrap:wrap}
|
package/lib/radio-group/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
var component_1 = require("../common/component");
|
4
4
|
var relation_1 = require("../common/relation");
|
5
|
-
(0, component_1.
|
5
|
+
(0, component_1.SmartComponent)({
|
6
6
|
field: true,
|
7
7
|
relation: (0, relation_1.useChildren)('radio'),
|
8
8
|
props: {
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-radio-group--horizontal{display:flex;flex-wrap:wrap}
|
package/lib/rate/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-rate{display:inline-flex;-webkit-user-select:none;user-select:none}.smart-rate__item{padding:0 var(--rate-horizontal-padding,2px);position:relative}.smart-rate__item:not(:last-child){padding-right:var(--rate-icon-gutter,4px)}.smart-rate__icon{color:var(--rate-icon-void-color,#c8c9cc);display:block;font-size:var(--rate-icon-size,20px);height:100%}.smart-rate__icon--half{left:var(--rate-horizontal-padding,2px);overflow:hidden;position:absolute;top:0;width:.5em}.smart-rate__icon--full,.smart-rate__icon--half{color:var(--rate-icon-full-color,#ee0a24)}.smart-rate__icon--disabled{color:var(--rate-icon-disabled-color,#c8c9cc)}
|