@tuya-miniapp/smart-ui 0.0.1-beta-5 → 1.0.0-beta-1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/dist/action-sheet/index.css +1 -1
- package/dist/action-sheet/index.js +11 -2
- package/dist/action-sheet/index.json +3 -3
- package/dist/action-sheet/index.wxml +15 -15
- package/dist/action-sheet/index.wxss +1 -1
- package/dist/area/index.js +3 -3
- package/dist/area/index.json +1 -1
- package/dist/area/index.wxml +2 -2
- package/dist/battery/index.js +2 -2
- package/dist/button/index.css +1 -1
- package/dist/button/index.js +3 -3
- package/dist/button/index.json +2 -2
- package/dist/button/index.wxml +9 -9
- package/dist/button/index.wxss +1 -1
- package/dist/calendar/calendar.wxml +5 -5
- package/dist/calendar/components/header/index.css +1 -1
- package/dist/calendar/components/header/index.js +2 -2
- package/dist/calendar/components/header/index.wxml +6 -6
- package/dist/calendar/components/header/index.wxss +1 -1
- package/dist/calendar/components/month/index.css +1 -1
- package/dist/calendar/components/month/index.js +2 -2
- package/dist/calendar/components/month/index.wxml +9 -9
- package/dist/calendar/components/month/index.wxss +1 -1
- package/dist/calendar/index.css +1 -1
- package/dist/calendar/index.js +3 -3
- package/dist/calendar/index.json +3 -3
- package/dist/calendar/index.wxml +5 -5
- package/dist/calendar/index.wxss +1 -1
- package/dist/cascader/index.css +1 -1
- package/dist/cascader/index.js +3 -2
- package/dist/cascader/index.json +3 -3
- package/dist/cascader/index.wxml +13 -13
- package/dist/cascader/index.wxss +1 -1
- package/dist/cell/index.css +1 -1
- package/dist/cell/index.js +2 -2
- package/dist/cell/index.json +1 -1
- package/dist/cell/index.wxml +10 -10
- package/dist/cell/index.wxss +1 -1
- package/dist/cell-group/index.css +1 -1
- package/dist/cell-group/index.js +2 -2
- package/dist/cell-group/index.wxml +1 -1
- package/dist/cell-group/index.wxss +1 -1
- package/dist/checkbox/index.css +1 -1
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox/index.json +1 -1
- package/dist/checkbox/index.wxml +2 -2
- package/dist/checkbox/index.wxss +1 -1
- package/dist/checkbox-group/index.css +1 -1
- package/dist/checkbox-group/index.js +2 -2
- package/dist/checkbox-group/index.wxss +1 -1
- package/dist/circle/index.css +1 -1
- package/dist/circle/index.js +2 -2
- package/dist/circle/index.wxml +6 -6
- package/dist/circle/index.wxss +1 -1
- package/dist/col/index.css +1 -1
- package/dist/col/index.js +2 -2
- package/dist/col/index.wxml +1 -1
- package/dist/col/index.wxss +1 -1
- package/dist/collapse/index.js +2 -2
- package/dist/collapse/index.wxml +1 -1
- package/dist/collapse-item/animate.js +1 -1
- package/dist/collapse-item/index.css +1 -1
- package/dist/collapse-item/index.js +2 -2
- package/dist/collapse-item/index.json +1 -1
- package/dist/collapse-item/index.wxml +7 -7
- package/dist/collapse-item/index.wxss +1 -1
- package/dist/common/component.d.ts +3 -3
- package/dist/common/component.js +5 -5
- package/dist/common/index.css +1 -1
- package/dist/common/index.wxss +1 -1
- package/dist/common/style/clearfix.css +1 -1
- package/dist/common/style/clearfix.wxss +1 -1
- package/dist/common/style/ellipsis.css +1 -1
- package/dist/common/style/ellipsis.wxss +1 -1
- package/dist/common/style/hairline.css +1 -1
- package/dist/common/style/hairline.wxss +1 -1
- package/dist/config-provider/index.js +2 -2
- package/dist/config-provider/index.wxml +1 -1
- package/dist/count-down/index.css +1 -1
- package/dist/count-down/index.js +2 -2
- package/dist/count-down/index.wxml +1 -1
- package/dist/count-down/index.wxss +1 -1
- package/dist/custom-keyboard/index.js +2 -2
- package/dist/custom-keyboard/index.json +4 -4
- package/dist/custom-keyboard/index.wxml +2 -2
- package/dist/datetime-picker/index.js +3 -3
- package/dist/datetime-picker/index.json +1 -1
- package/dist/datetime-picker/index.wxml +2 -2
- package/dist/definitions/index.d.ts +4 -3
- package/dist/dialog/index.css +1 -1
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/index.json +5 -5
- package/dist/dialog/index.wxml +25 -25
- package/dist/dialog/index.wxss +1 -1
- package/dist/divider/index.css +1 -1
- package/dist/divider/index.js +2 -2
- package/dist/divider/index.wxss +1 -1
- package/dist/dropdown-item/index.css +1 -1
- package/dist/dropdown-item/index.js +2 -2
- package/dist/dropdown-item/index.json +3 -3
- package/dist/dropdown-item/index.wxml +7 -7
- package/dist/dropdown-item/index.wxss +1 -1
- package/dist/dropdown-menu/index.css +1 -1
- package/dist/dropdown-menu/index.js +3 -3
- package/dist/dropdown-menu/index.wxml +2 -2
- package/dist/dropdown-menu/index.wxss +1 -1
- package/dist/empty/index.css +1 -1
- package/dist/empty/index.js +2 -2
- package/dist/empty/index.wxml +7 -7
- package/dist/empty/index.wxs +7 -6
- package/dist/empty/index.wxss +1 -1
- package/dist/field/index.css +1 -1
- package/dist/field/index.js +15 -3
- package/dist/field/index.json +2 -2
- package/dist/field/index.wxml +10 -10
- package/dist/field/index.wxss +1 -1
- package/dist/field/props.js +1 -9
- package/dist/goods-action/index.css +1 -1
- package/dist/goods-action/index.js +2 -2
- package/dist/goods-action/index.wxss +1 -1
- package/dist/goods-action-button/index.css +1 -1
- package/dist/goods-action-button/index.js +2 -2
- package/dist/goods-action-button/index.json +1 -1
- package/dist/goods-action-button/index.wxml +3 -3
- package/dist/goods-action-button/index.wxss +1 -1
- package/dist/goods-action-icon/index.css +1 -1
- package/dist/goods-action-icon/index.js +3 -3
- package/dist/goods-action-icon/index.json +2 -2
- package/dist/goods-action-icon/index.wxml +5 -5
- package/dist/goods-action-icon/index.wxss +1 -1
- package/dist/grid/index.css +1 -1
- package/dist/grid/index.js +2 -2
- package/dist/grid/index.wxml +1 -1
- package/dist/grid/index.wxss +1 -1
- package/dist/grid-item/index.css +1 -1
- package/dist/grid-item/index.js +3 -3
- package/dist/grid-item/index.json +1 -1
- package/dist/grid-item/index.wxml +4 -4
- package/dist/grid-item/index.wxss +1 -1
- package/dist/icon/index.css +1 -1
- package/dist/icon/index.js +3 -3
- package/dist/icon/index.json +1 -1
- package/dist/icon/index.wxml +4 -4
- package/dist/icon/index.wxs +6 -7
- package/dist/icon/index.wxss +1 -1
- package/dist/image/index.css +1 -1
- package/dist/image/index.js +2 -2
- package/dist/image/index.json +2 -2
- package/dist/image/index.wxml +5 -5
- package/dist/image/index.wxss +1 -1
- package/dist/index-anchor/index.css +1 -1
- package/dist/index-anchor/index.js +3 -3
- package/dist/index-anchor/index.wxml +2 -2
- package/dist/index-anchor/index.wxss +1 -1
- package/dist/index-bar/index.css +1 -1
- package/dist/index-bar/index.js +6 -6
- package/dist/index-bar/index.wxml +3 -3
- package/dist/index-bar/index.wxss +1 -1
- package/dist/info/index.css +1 -1
- package/dist/info/index.js +2 -2
- package/dist/info/index.wxml +1 -1
- package/dist/info/index.wxss +1 -1
- package/dist/loading/index.css +1 -1
- package/dist/loading/index.js +2 -2
- package/dist/loading/index.wxml +3 -3
- package/dist/loading/index.wxss +1 -1
- package/dist/mixins/basic.js +15 -0
- package/dist/mixins/page-scroll.js +10 -10
- package/dist/mixins/transition.js +4 -4
- package/dist/nav-bar/index.css +1 -1
- package/dist/nav-bar/index.js +4 -4
- package/dist/nav-bar/index.json +1 -1
- package/dist/nav-bar/index.wxml +11 -11
- package/dist/nav-bar/index.wxss +1 -1
- package/dist/normal-slider/index.js +2 -2
- package/dist/notice-bar/index.css +1 -1
- package/dist/notice-bar/index.js +4 -4
- package/dist/notice-bar/index.json +1 -1
- package/dist/notice-bar/index.wxml +7 -7
- package/dist/notice-bar/index.wxss +1 -1
- package/dist/notify/index.css +1 -1
- package/dist/notify/index.js +2 -2
- package/dist/notify/index.json +1 -1
- package/dist/notify/index.wxml +4 -4
- package/dist/notify/index.wxss +1 -1
- package/dist/notify/notify.js +2 -2
- package/dist/overlay/index.css +1 -1
- package/dist/overlay/index.js +2 -2
- package/dist/overlay/index.json +1 -1
- package/dist/overlay/index.wxss +1 -1
- package/dist/overlay/overlay.wxml +3 -3
- package/dist/picker/index.css +1 -1
- package/dist/picker/index.js +3 -3
- package/dist/picker/index.wxml +7 -7
- package/dist/picker/index.wxss +1 -1
- package/dist/picker/toolbar.wxml +6 -6
- package/dist/picker-column/index.css +1 -1
- package/dist/picker-column/index.js +2 -2
- package/dist/picker-column/index.wxml +6 -6
- package/dist/picker-column/index.wxss +1 -1
- package/dist/popup/index.css +1 -1
- package/dist/popup/index.js +2 -2
- package/dist/popup/index.json +2 -2
- package/dist/popup/index.wxml +1 -1
- package/dist/popup/index.wxss +1 -1
- package/dist/popup/popup.wxml +2 -2
- package/dist/progress/index.css +1 -1
- package/dist/progress/index.js +4 -4
- package/dist/progress/index.wxml +3 -3
- package/dist/progress/index.wxss +1 -1
- package/dist/radio/index.css +1 -1
- package/dist/radio/index.js +2 -2
- package/dist/radio/index.json +1 -1
- package/dist/radio/index.wxml +2 -2
- package/dist/radio/index.wxss +1 -1
- package/dist/radio-group/index.css +1 -1
- package/dist/radio-group/index.js +2 -2
- package/dist/radio-group/index.wxss +1 -1
- package/dist/rate/index.css +1 -1
- package/dist/rate/index.js +7 -7
- package/dist/rate/index.json +1 -1
- package/dist/rate/index.wxml +2 -2
- package/dist/rate/index.wxss +1 -1
- package/dist/row/index.css +1 -1
- package/dist/row/index.js +2 -2
- package/dist/row/index.wxml +1 -1
- package/dist/row/index.wxss +1 -1
- package/dist/search/index.css +1 -1
- package/dist/search/index.js +2 -2
- package/dist/search/index.json +1 -1
- package/dist/search/index.wxml +7 -7
- package/dist/search/index.wxss +1 -1
- package/dist/sidebar/index.css +1 -1
- package/dist/sidebar/index.js +2 -2
- package/dist/sidebar/index.wxml +1 -1
- package/dist/sidebar/index.wxss +1 -1
- package/dist/sidebar-item/index.css +1 -1
- package/dist/sidebar-item/index.js +2 -2
- package/dist/sidebar-item/index.json +1 -1
- package/dist/sidebar-item/index.wxml +3 -3
- package/dist/sidebar-item/index.wxss +1 -1
- package/dist/skeleton/index.css +1 -1
- package/dist/skeleton/index.js +2 -2
- package/dist/skeleton/index.wxss +1 -1
- package/dist/slider/index.css +1 -1
- package/dist/slider/index.js +4 -4
- package/dist/slider/index.wxss +1 -1
- package/dist/stepper/index.css +1 -1
- package/dist/stepper/index.js +2 -2
- package/dist/stepper/index.wxml +4 -4
- package/dist/stepper/index.wxss +1 -1
- package/dist/steps/index.css +1 -1
- package/dist/steps/index.js +2 -2
- package/dist/steps/index.json +1 -1
- package/dist/steps/index.wxml +9 -9
- package/dist/steps/index.wxss +1 -1
- package/dist/sticky/index.css +1 -1
- package/dist/sticky/index.js +3 -3
- package/dist/sticky/index.wxml +1 -1
- package/dist/sticky/index.wxss +1 -1
- package/dist/swipe-cell/index.css +1 -1
- package/dist/swipe-cell/index.js +2 -2
- package/dist/swipe-cell/index.wxml +3 -3
- package/dist/swipe-cell/index.wxss +1 -1
- package/dist/switch/index.css +1 -1
- package/dist/switch/index.js +2 -2
- package/dist/switch/index.json +1 -1
- package/dist/switch/index.wxml +3 -3
- package/dist/switch/index.wxss +1 -1
- package/dist/tab/index.css +1 -1
- package/dist/tab/index.js +2 -2
- package/dist/tab/index.wxss +1 -1
- package/dist/tabbar/index.css +1 -1
- package/dist/tabbar/index.js +3 -3
- package/dist/tabbar/index.wxss +1 -1
- package/dist/tabbar-item/index.css +1 -1
- package/dist/tabbar-item/index.js +3 -3
- package/dist/tabbar-item/index.json +2 -2
- package/dist/tabbar-item/index.wxml +6 -6
- package/dist/tabbar-item/index.wxss +1 -1
- package/dist/tabs/index.css +1 -1
- package/dist/tabs/index.js +7 -7
- package/dist/tabs/index.json +2 -2
- package/dist/tabs/index.wxml +9 -9
- package/dist/tabs/index.wxs +1 -1
- package/dist/tabs/index.wxss +1 -1
- package/dist/tag/index.css +1 -1
- package/dist/tag/index.js +2 -2
- package/dist/tag/index.json +1 -1
- package/dist/tag/index.wxml +2 -2
- package/dist/tag/index.wxss +1 -1
- package/dist/toast/index.css +1 -1
- package/dist/toast/index.js +2 -2
- package/dist/toast/index.json +4 -4
- package/dist/toast/index.wxml +9 -9
- package/dist/toast/index.wxss +1 -1
- package/dist/toast/toast.js +2 -2
- package/dist/transition/index.css +1 -1
- package/dist/transition/index.js +2 -2
- package/dist/transition/index.wxml +1 -1
- package/dist/transition/index.wxss +1 -1
- package/dist/tree-select/index.css +1 -1
- package/dist/tree-select/index.js +4 -4
- package/dist/tree-select/index.json +3 -3
- package/dist/tree-select/index.wxml +9 -9
- package/dist/tree-select/index.wxss +1 -1
- package/dist/wxs/bem.wxs +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.js +10 -1
- package/lib/action-sheet/index.json +3 -3
- package/lib/action-sheet/index.wxml +15 -15
- package/lib/action-sheet/index.wxss +1 -1
- package/lib/area/index.js +2 -2
- package/lib/area/index.json +1 -1
- package/lib/area/index.wxml +2 -2
- package/lib/battery/index.js +1 -1
- package/lib/button/index.css +1 -1
- package/lib/button/index.js +2 -2
- package/lib/button/index.json +2 -2
- package/lib/button/index.wxml +9 -9
- package/lib/button/index.wxss +1 -1
- package/lib/calendar/calendar.wxml +5 -5
- package/lib/calendar/components/header/index.css +1 -1
- package/lib/calendar/components/header/index.js +1 -1
- package/lib/calendar/components/header/index.wxml +6 -6
- package/lib/calendar/components/header/index.wxss +1 -1
- package/lib/calendar/components/month/index.css +1 -1
- package/lib/calendar/components/month/index.js +1 -1
- package/lib/calendar/components/month/index.wxml +9 -9
- package/lib/calendar/components/month/index.wxss +1 -1
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.js +2 -2
- package/lib/calendar/index.json +3 -3
- package/lib/calendar/index.wxml +5 -5
- package/lib/calendar/index.wxss +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/index.json +3 -3
- package/lib/cascader/index.wxml +13 -13
- package/lib/cascader/index.wxss +1 -1
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.js +1 -1
- package/lib/cell/index.json +1 -1
- package/lib/cell/index.wxml +10 -10
- package/lib/cell/index.wxss +1 -1
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.js +1 -1
- package/lib/cell-group/index.wxml +1 -1
- package/lib/cell-group/index.wxss +1 -1
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/index.json +1 -1
- package/lib/checkbox/index.wxml +2 -2
- package/lib/checkbox/index.wxss +1 -1
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.js +1 -1
- package/lib/checkbox-group/index.wxss +1 -1
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.js +1 -1
- package/lib/circle/index.wxml +6 -6
- package/lib/circle/index.wxss +1 -1
- package/lib/col/index.css +1 -1
- package/lib/col/index.js +1 -1
- package/lib/col/index.wxml +1 -1
- package/lib/col/index.wxss +1 -1
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/index.wxml +1 -1
- package/lib/collapse-item/animate.js +1 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.js +1 -1
- package/lib/collapse-item/index.json +1 -1
- package/lib/collapse-item/index.wxml +7 -7
- package/lib/collapse-item/index.wxss +1 -1
- package/lib/common/component.d.ts +3 -3
- package/lib/common/component.js +6 -6
- package/lib/common/index.css +1 -1
- package/lib/common/index.wxss +1 -1
- package/lib/common/style/clearfix.css +1 -1
- package/lib/common/style/clearfix.wxss +1 -1
- package/lib/common/style/ellipsis.css +1 -1
- package/lib/common/style/ellipsis.wxss +1 -1
- package/lib/common/style/hairline.css +1 -1
- package/lib/common/style/hairline.wxss +1 -1
- package/lib/config-provider/index.js +1 -1
- package/lib/config-provider/index.wxml +1 -1
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.js +1 -1
- package/lib/count-down/index.wxml +1 -1
- package/lib/count-down/index.wxss +1 -1
- package/lib/custom-keyboard/index.js +1 -1
- package/lib/custom-keyboard/index.json +4 -4
- package/lib/custom-keyboard/index.wxml +2 -2
- package/lib/datetime-picker/index.js +2 -2
- package/lib/datetime-picker/index.json +1 -1
- package/lib/datetime-picker/index.wxml +2 -2
- package/lib/definitions/index.d.ts +4 -3
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/index.json +5 -5
- package/lib/dialog/index.wxml +25 -25
- package/lib/dialog/index.wxss +1 -1
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.js +1 -1
- package/lib/divider/index.wxss +1 -1
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.js +1 -1
- package/lib/dropdown-item/index.json +3 -3
- package/lib/dropdown-item/index.wxml +7 -7
- package/lib/dropdown-item/index.wxss +1 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.js +2 -2
- package/lib/dropdown-menu/index.wxml +2 -2
- package/lib/dropdown-menu/index.wxss +1 -1
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.js +1 -1
- package/lib/empty/index.wxml +7 -7
- package/lib/empty/index.wxs +7 -6
- package/lib/empty/index.wxss +1 -1
- package/lib/field/index.css +1 -1
- package/lib/field/index.js +14 -2
- package/lib/field/index.json +2 -2
- package/lib/field/index.wxml +10 -10
- package/lib/field/index.wxss +1 -1
- package/lib/field/props.js +1 -9
- package/lib/goods-action/index.css +1 -1
- package/lib/goods-action/index.js +1 -1
- package/lib/goods-action/index.wxss +1 -1
- package/lib/goods-action-button/index.css +1 -1
- package/lib/goods-action-button/index.js +1 -1
- package/lib/goods-action-button/index.json +1 -1
- package/lib/goods-action-button/index.wxml +3 -3
- package/lib/goods-action-button/index.wxss +1 -1
- package/lib/goods-action-icon/index.css +1 -1
- package/lib/goods-action-icon/index.js +2 -2
- package/lib/goods-action-icon/index.json +2 -2
- package/lib/goods-action-icon/index.wxml +5 -5
- package/lib/goods-action-icon/index.wxss +1 -1
- package/lib/grid/index.css +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/grid/index.wxml +1 -1
- package/lib/grid/index.wxss +1 -1
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.js +2 -2
- package/lib/grid-item/index.json +1 -1
- package/lib/grid-item/index.wxml +4 -4
- package/lib/grid-item/index.wxss +1 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +2 -2
- package/lib/icon/index.json +1 -1
- package/lib/icon/index.wxml +4 -4
- package/lib/icon/index.wxs +6 -7
- package/lib/icon/index.wxss +1 -1
- package/lib/image/index.css +1 -1
- package/lib/image/index.js +1 -1
- package/lib/image/index.json +2 -2
- package/lib/image/index.wxml +5 -5
- package/lib/image/index.wxss +1 -1
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.js +2 -2
- package/lib/index-anchor/index.wxml +2 -2
- package/lib/index-anchor/index.wxss +1 -1
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.js +5 -5
- package/lib/index-bar/index.wxml +3 -3
- package/lib/index-bar/index.wxss +1 -1
- package/lib/info/index.css +1 -1
- package/lib/info/index.js +1 -1
- package/lib/info/index.wxml +1 -1
- package/lib/info/index.wxss +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/loading/index.wxml +3 -3
- package/lib/loading/index.wxss +1 -1
- package/lib/mixins/basic.js +16 -0
- package/lib/mixins/page-scroll.js +10 -10
- package/lib/mixins/transition.js +4 -4
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.js +3 -3
- package/lib/nav-bar/index.json +1 -1
- package/lib/nav-bar/index.wxml +11 -11
- package/lib/nav-bar/index.wxss +1 -1
- package/lib/normal-slider/index.js +1 -1
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.js +3 -3
- package/lib/notice-bar/index.json +1 -1
- package/lib/notice-bar/index.wxml +7 -7
- package/lib/notice-bar/index.wxss +1 -1
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.js +1 -1
- package/lib/notify/index.json +1 -1
- package/lib/notify/index.wxml +4 -4
- package/lib/notify/index.wxss +1 -1
- package/lib/notify/notify.js +2 -2
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.js +1 -1
- package/lib/overlay/index.json +1 -1
- package/lib/overlay/index.wxss +1 -1
- package/lib/overlay/overlay.wxml +3 -3
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.js +2 -2
- package/lib/picker/index.wxml +7 -7
- package/lib/picker/index.wxss +1 -1
- package/lib/picker/toolbar.wxml +6 -6
- package/lib/picker-column/index.css +1 -1
- package/lib/picker-column/index.js +1 -1
- package/lib/picker-column/index.wxml +6 -6
- package/lib/picker-column/index.wxss +1 -1
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +1 -1
- package/lib/popup/index.json +2 -2
- package/lib/popup/index.wxml +1 -1
- package/lib/popup/index.wxss +1 -1
- package/lib/popup/popup.wxml +2 -2
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.js +3 -3
- package/lib/progress/index.wxml +3 -3
- package/lib/progress/index.wxss +1 -1
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/radio/index.json +1 -1
- package/lib/radio/index.wxml +2 -2
- package/lib/radio/index.wxss +1 -1
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.js +1 -1
- package/lib/radio-group/index.wxss +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +6 -6
- package/lib/rate/index.json +1 -1
- package/lib/rate/index.wxml +2 -2
- package/lib/rate/index.wxss +1 -1
- package/lib/row/index.css +1 -1
- package/lib/row/index.js +1 -1
- package/lib/row/index.wxml +1 -1
- package/lib/row/index.wxss +1 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.js +1 -1
- package/lib/search/index.json +1 -1
- package/lib/search/index.wxml +7 -7
- package/lib/search/index.wxss +1 -1
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.js +1 -1
- package/lib/sidebar/index.wxml +1 -1
- package/lib/sidebar/index.wxss +1 -1
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.js +1 -1
- package/lib/sidebar-item/index.json +1 -1
- package/lib/sidebar-item/index.wxml +3 -3
- package/lib/sidebar-item/index.wxss +1 -1
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.js +1 -1
- package/lib/skeleton/index.wxss +1 -1
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.js +3 -3
- package/lib/slider/index.wxss +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.js +1 -1
- package/lib/stepper/index.wxml +4 -4
- package/lib/stepper/index.wxss +1 -1
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.js +1 -1
- package/lib/steps/index.json +1 -1
- package/lib/steps/index.wxml +9 -9
- package/lib/steps/index.wxss +1 -1
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.js +2 -2
- package/lib/sticky/index.wxml +1 -1
- package/lib/sticky/index.wxss +1 -1
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.js +1 -1
- package/lib/swipe-cell/index.wxml +3 -3
- package/lib/swipe-cell/index.wxss +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.js +1 -1
- package/lib/switch/index.json +1 -1
- package/lib/switch/index.wxml +3 -3
- package/lib/switch/index.wxss +1 -1
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.js +1 -1
- package/lib/tab/index.wxss +1 -1
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.js +2 -2
- package/lib/tabbar/index.wxss +1 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.js +2 -2
- package/lib/tabbar-item/index.json +2 -2
- package/lib/tabbar-item/index.wxml +6 -6
- package/lib/tabbar-item/index.wxss +1 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.js +6 -6
- package/lib/tabs/index.json +2 -2
- package/lib/tabs/index.wxml +9 -9
- package/lib/tabs/index.wxs +1 -1
- package/lib/tabs/index.wxss +1 -1
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.js +2 -2
- package/lib/tag/index.json +1 -1
- package/lib/tag/index.wxml +2 -2
- package/lib/tag/index.wxss +1 -1
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.js +2 -2
- package/lib/toast/index.json +4 -4
- package/lib/toast/index.wxml +9 -9
- package/lib/toast/index.wxss +1 -1
- package/lib/toast/toast.js +2 -2
- package/lib/transition/index.css +1 -1
- package/lib/transition/index.js +1 -1
- package/lib/transition/index.wxml +1 -1
- package/lib/transition/index.wxss +1 -1
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.js +2 -2
- package/lib/tree-select/index.json +3 -3
- package/lib/tree-select/index.wxml +9 -9
- package/lib/tree-select/index.wxss +1 -1
- package/lib/wxs/bem.wxs +1 -1
- package/package.json +3 -4
package/dist/icon/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { SmartComponent } from '../common/component';
|
2
|
+
SmartComponent({
|
3
3
|
classes: ['info-class'],
|
4
4
|
props: {
|
5
5
|
dot: Boolean,
|
@@ -9,7 +9,7 @@ VantComponent({
|
|
9
9
|
customStyle: String,
|
10
10
|
classPrefix: {
|
11
11
|
type: String,
|
12
|
-
value: '
|
12
|
+
value: 'smart-icon',
|
13
13
|
},
|
14
14
|
name: String,
|
15
15
|
},
|
package/dist/icon/index.json
CHANGED
package/dist/icon/index.wxml
CHANGED
@@ -5,21 +5,21 @@
|
|
5
5
|
style="{{ computed.rootStyle({ customStyle, color, size }) }}"
|
6
6
|
bindtap="onClick"
|
7
7
|
>
|
8
|
-
<
|
8
|
+
<smart-info
|
9
9
|
wx:if="{{ info !== null || dot }}"
|
10
10
|
dot="{{ dot }}"
|
11
11
|
info="{{ info }}"
|
12
|
-
custom-class="
|
12
|
+
custom-class="smart-icon__info info-class"
|
13
13
|
/>
|
14
14
|
<view
|
15
15
|
wx:if="{{ computed.isSvg(name) }}"
|
16
16
|
style="{{ computed.svgStyle({ customStyle, name, color }) }}"
|
17
|
-
class="
|
17
|
+
class="smart-icon__svg"
|
18
18
|
/>
|
19
19
|
<image
|
20
20
|
wx:elif="{{ computed.isImage(name) }}"
|
21
21
|
src="{{ computed.getImageSrc({ name, color }) }}"
|
22
22
|
mode="aspectFit"
|
23
|
-
class="
|
23
|
+
class="smart-icon__image"
|
24
24
|
/>
|
25
25
|
</view>
|
package/dist/icon/index.wxs
CHANGED
@@ -13,8 +13,8 @@ function isSvg(name) {
|
|
13
13
|
function rootClass(data) {
|
14
14
|
var classes = ['custom-class'];
|
15
15
|
|
16
|
-
if (data.classPrefix !== '
|
17
|
-
classes.push('
|
16
|
+
if (data.classPrefix !== 'smart-icon') {
|
17
|
+
classes.push('smart-icon--custom')
|
18
18
|
}
|
19
19
|
|
20
20
|
if (data.classPrefix != null) {
|
@@ -22,8 +22,8 @@ function rootClass(data) {
|
|
22
22
|
}
|
23
23
|
|
24
24
|
if (isImage(data.name)) {
|
25
|
-
classes.push('
|
26
|
-
if (isSvg(data.name)) classes.push('
|
25
|
+
classes.push('smart-icon--image');
|
26
|
+
if (isSvg(data.name)) classes.push('smart-icon--svg');
|
27
27
|
} else if (data.classPrefix != null) {
|
28
28
|
classes.push(data.classPrefix + '-' + data.name);
|
29
29
|
}
|
@@ -49,9 +49,8 @@ function getImageSrc(data) {
|
|
49
49
|
}
|
50
50
|
|
51
51
|
function svgStyle(data) {
|
52
|
-
|
53
|
-
|
54
|
-
const ret = style([
|
52
|
+
var imageBase64Src = 'url(' + getImageSrc(data) + ')';
|
53
|
+
var ret = style([
|
55
54
|
{
|
56
55
|
'-webkit-mask-image': imageBase64Src,
|
57
56
|
'-webkit-mask-size': 'contain',
|
package/dist/icon/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';:host{align-items:center;display:inline-flex;justify-content:center}.
|
1
|
+
@import '../common/index.wxss';:host{align-items:center;display:inline-flex;justify-content:center}.smart-icon{text-rendering:auto;-webkit-font-smoothing:antialiased;font:normal normal normal 14px/1 var(--smart-icon-font-family,"smart-icon");font-size:inherit;position:relative}.smart-icon,.smart-icon:before{display:inline-block}.smart-icon--custom{position:relative}.smart-icon--image{height:1em;width:1em}.smart-icon__image,.smart-icon__svg{height:100%;width:100%}.smart-icon__svg{background:var(--icon-color,var(--app-B4-N2,rgba(0,0,0,.7)))}.smart-icon__info{z-index:1}
|
package/dist/image/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-image{display:inline-block;position:relative}.smart-image--round{border-radius:50%;overflow:hidden}.smart-image--round .smart-image__img{border-radius:inherit}.smart-image__error,.smart-image__img,.smart-image__loading{display:block;height:100%;width:100%}.smart-image__error,.smart-image__loading{align-items:center;background-color:var(--image-placeholder-background-color,#f7f8fa);color:var(--image-placeholder-text-color,#969799);display:flex;flex-direction:column;font-size:var(--image-placeholder-font-size,14px);justify-content:center;left:0;position:absolute;top:0}.smart-image__loading-icon{color:var(--image-loading-icon-color,#dcdee0);font-size:var(--image-loading-icon-size,32px)!important}.smart-image__error-icon{color:var(--image-error-icon-color,#dcdee0);font-size:var(--image-error-icon-size,32px)!important}
|
package/dist/image/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { SmartComponent } from '../common/component';
|
2
2
|
import { button } from '../mixins/button';
|
3
|
-
|
3
|
+
SmartComponent({
|
4
4
|
mixins: [button],
|
5
5
|
classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
|
6
6
|
props: {
|
package/dist/image/index.json
CHANGED
package/dist/image/index.wxml
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
mode="{{ computed.mode(fit) }}"
|
13
13
|
lazy-load="{{ lazyLoad }}"
|
14
14
|
webp="{{ webp }}"
|
15
|
-
class="image-class
|
15
|
+
class="image-class smart-image__img"
|
16
16
|
show-menu-by-longpress="{{ showMenuByLongpress }}"
|
17
17
|
bind:load="onLoad"
|
18
18
|
bind:error="onError"
|
@@ -20,16 +20,16 @@
|
|
20
20
|
|
21
21
|
<view
|
22
22
|
wx:if="{{ loading && showLoading }}"
|
23
|
-
class="loading-class
|
23
|
+
class="loading-class smart-image__loading"
|
24
24
|
>
|
25
25
|
<slot wx:if="{{ useLoadingSlot }}" name="loading" />
|
26
|
-
<
|
26
|
+
<smart-icon wx:else name="photo" custom-class="smart-image__loading-icon" />
|
27
27
|
</view>
|
28
28
|
<view
|
29
29
|
wx:if="{{ error && showError }}"
|
30
|
-
class="error-class
|
30
|
+
class="error-class smart-image__error"
|
31
31
|
>
|
32
32
|
<slot wx:if="{{ useErrorSlot }}" name="error" />
|
33
|
-
<
|
33
|
+
<smart-icon wx:else name="photo-fail" custom-class="smart-image__error-icon" />
|
34
34
|
</view>
|
35
35
|
</view>
|
package/dist/image/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-image{display:inline-block;position:relative}.smart-image--round{border-radius:50%;overflow:hidden}.smart-image--round .smart-image__img{border-radius:inherit}.smart-image__error,.smart-image__img,.smart-image__loading{display:block;height:100%;width:100%}.smart-image__error,.smart-image__loading{align-items:center;background-color:var(--image-placeholder-background-color,#f7f8fa);color:var(--image-placeholder-text-color,#969799);display:flex;flex-direction:column;font-size:var(--image-placeholder-font-size,14px);justify-content:center;left:0;position:absolute;top:0}.smart-image__loading-icon{color:var(--image-loading-icon-color,#dcdee0);font-size:var(--image-loading-icon-size,32px)!important}.smart-image__error-icon{color:var(--image-error-icon-color,#dcdee0);font-size:var(--image-error-icon-size,32px)!important}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-index-anchor{background-color:var(--index-anchor-background-color,transparent);color:var(--index-anchor-text-color,var(--app-B6-N1,#000));font-size:var(--index-anchor-font-size,14px);font-weight:var(--index-anchor-font-weight,500);line-height:var(--index-anchor-line-height,32px);padding:var(--index-anchor-padding,0 16px)}.smart-index-anchor--active{background-color:var(--index-anchor-active-background-color,var(--app-B3,#fff));color:var(--index-anchor-active-text-color,var(--app-M1,#3678e3));left:0;right:0}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { getRect } from '../common/utils';
|
2
|
-
import {
|
2
|
+
import { SmartComponent } from '../common/component';
|
3
3
|
import { useParent } from '../common/relation';
|
4
|
-
|
4
|
+
SmartComponent({
|
5
5
|
relation: useParent('index-bar'),
|
6
6
|
props: {
|
7
7
|
useSlot: Boolean,
|
@@ -14,7 +14,7 @@ VantComponent({
|
|
14
14
|
},
|
15
15
|
methods: {
|
16
16
|
scrollIntoView(scrollTop) {
|
17
|
-
getRect(this, '.
|
17
|
+
getRect(this, '.smart-index-anchor-wrapper').then((rect) => {
|
18
18
|
wx.pageScrollTo({
|
19
19
|
duration: 0,
|
20
20
|
scrollTop: scrollTop + rect.top - this.parent.data.stickyOffsetTop,
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<view
|
2
|
-
class="
|
2
|
+
class="smart-index-anchor-wrapper"
|
3
3
|
style="{{ wrapperStyle }}"
|
4
4
|
>
|
5
5
|
<view
|
6
|
-
class="
|
6
|
+
class="smart-index-anchor {{ active ? 'smart-index-anchor--active smart-hairline--bottom' : '' }}"
|
7
7
|
style="{{ anchorStyle }}"
|
8
8
|
>
|
9
9
|
<slot wx:if="{{ useSlot }}"/>
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-index-anchor{background-color:var(--index-anchor-background-color,transparent);color:var(--index-anchor-text-color,var(--app-B6-N1,#000));font-size:var(--index-anchor-font-size,14px);font-weight:var(--index-anchor-font-weight,500);line-height:var(--index-anchor-line-height,32px);padding:var(--index-anchor-padding,0 16px)}.smart-index-anchor--active{background-color:var(--index-anchor-active-background-color,var(--app-B3,#fff));color:var(--index-anchor-active-text-color,var(--app-M1,#3678e3));left:0;right:0}
|
package/dist/index-bar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-index-bar{position:relative}.smart-index-bar__sidebar{display:flex;flex-direction:column;position:fixed;right:0;text-align:center;top:50%;transform:translateY(-50%);-webkit-user-select:none;user-select:none}.smart-index-bar__index{font-size:var(--index-bar-index-font-size,10px);font-weight:500;line-height:var(--index-bar-index-line-height,14px);padding:0 var(--padding-base,4px) 0 var(--padding-md,16px)}
|
package/dist/index-bar/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { GREEN } from '../common/color';
|
2
|
-
import {
|
2
|
+
import { SmartComponent } from '../common/component';
|
3
3
|
import { useChildren } from '../common/relation';
|
4
4
|
import { getRect, isDef } from '../common/utils';
|
5
5
|
import { pageScrollMixin } from '../mixins/page-scroll';
|
@@ -11,7 +11,7 @@ const indexList = () => {
|
|
11
11
|
}
|
12
12
|
return indexList;
|
13
13
|
};
|
14
|
-
|
14
|
+
SmartComponent({
|
15
15
|
relation: useChildren('index-anchor', function () {
|
16
16
|
this.updateData();
|
17
17
|
}),
|
@@ -74,7 +74,7 @@ VantComponent({
|
|
74
74
|
]);
|
75
75
|
},
|
76
76
|
setAnchorsRect() {
|
77
|
-
return Promise.all(this.children.map((anchor) => getRect(anchor, '.
|
77
|
+
return Promise.all(this.children.map((anchor) => getRect(anchor, '.smart-index-anchor-wrapper').then((rect) => {
|
78
78
|
Object.assign(anchor, {
|
79
79
|
height: rect.height,
|
80
80
|
top: rect.top + this.scrollTop,
|
@@ -82,7 +82,7 @@ VantComponent({
|
|
82
82
|
})));
|
83
83
|
},
|
84
84
|
setListRect() {
|
85
|
-
return getRect(this, '.
|
85
|
+
return getRect(this, '.smart-index-bar').then((rect) => {
|
86
86
|
if (!isDef(rect)) {
|
87
87
|
return;
|
88
88
|
}
|
@@ -93,7 +93,7 @@ VantComponent({
|
|
93
93
|
});
|
94
94
|
},
|
95
95
|
setSiderbarRect() {
|
96
|
-
return getRect(this, '.
|
96
|
+
return getRect(this, '.smart-index-bar__sidebar').then((res) => {
|
97
97
|
if (!isDef(res)) {
|
98
98
|
return;
|
99
99
|
}
|
@@ -115,7 +115,7 @@ VantComponent({
|
|
115
115
|
}
|
116
116
|
},
|
117
117
|
getAnchorRect(anchor) {
|
118
|
-
return getRect(anchor, '.
|
118
|
+
return getRect(anchor, '.smart-index-anchor-wrapper').then((rect) => ({
|
119
119
|
height: rect.height,
|
120
120
|
top: rect.top,
|
121
121
|
}));
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<view class="
|
1
|
+
<view class="smart-index-bar">
|
2
2
|
<slot />
|
3
3
|
|
4
4
|
<view
|
5
5
|
wx:if="{{ showSidebar }}"
|
6
|
-
class="
|
6
|
+
class="smart-index-bar__sidebar"
|
7
7
|
catch:tap="onClick"
|
8
8
|
catch:touchmove="onTouchMove"
|
9
9
|
catch:touchend="onTouchStop"
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<view
|
13
13
|
wx:for="{{ indexList }}"
|
14
14
|
wx:key="index"
|
15
|
-
class="
|
15
|
+
class="smart-index-bar__index"
|
16
16
|
style="z-index: {{ zIndex + 1 }}; color: {{ activeAnchorIndex === index ? highlightColor : '' }}"
|
17
17
|
data-index="{{ index }}"
|
18
18
|
>
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-index-bar{position:relative}.smart-index-bar__sidebar{display:flex;flex-direction:column;position:fixed;right:0;text-align:center;top:50%;transform:translateY(-50%);-webkit-user-select:none;user-select:none}.smart-index-bar__index{font-size:var(--index-bar-index-font-size,10px);font-weight:500;line-height:var(--index-bar-index-line-height,14px);padding:0 var(--padding-base,4px) 0 var(--padding-md,16px)}
|
package/dist/info/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-info{align-items:center;background-color:var(--info-background-color,var(--app-M2,#f04c4c));border:var(--info-border-width,0) solid #fff;border-radius:var(--info-size,12px);box-sizing:border-box;color:var(--info-color,#fff);display:inline-flex;font-family:var(--info-font-family,-apple-system-font,PingFang SC,Helvetica Neue,Arial,sans-serif);font-size:var(--info-font-size,11px);font-weight:var(--info-font-weight,600);height:var(--info-size,12px);justify-content:center;min-width:var(--info-size,12px);padding:var(--info-padding,0 4px);position:absolute;right:0;top:0;transform:translate(50%,-50%);transform-origin:100%;white-space:nowrap}.smart-info--dot{background-color:var(--info-dot-color,var(--app-M2,#f04c4c));border-radius:100%;height:var(--info-dot-size,8px);min-width:0;width:var(--info-dot-size,8px)}
|
package/dist/info/index.js
CHANGED
package/dist/info/index.wxml
CHANGED
package/dist/info/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-info{align-items:center;background-color:var(--info-background-color,var(--app-M2,#f04c4c));border:var(--info-border-width,0) solid #fff;border-radius:var(--info-size,12px);box-sizing:border-box;color:var(--info-color,#fff);display:inline-flex;font-family:var(--info-font-family,-apple-system-font,PingFang SC,Helvetica Neue,Arial,sans-serif);font-size:var(--info-font-size,11px);font-weight:var(--info-font-weight,600);height:var(--info-size,12px);justify-content:center;min-width:var(--info-size,12px);padding:var(--info-padding,0 4px);position:absolute;right:0;top:0;transform:translate(50%,-50%);transform-origin:100%;white-space:nowrap}.smart-info--dot{background-color:var(--info-dot-color,var(--app-M2,#f04c4c));border-radius:100%;height:var(--info-dot-size,8px);min-width:0;width:var(--info-dot-size,8px)}
|
package/dist/loading/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';:host{font-size:0;line-height:1}.
|
1
|
+
@import '../common/index.css';:host{font-size:0;line-height:1}.smart-loading{align-items:center;color:var(--loading-spinner-color,#c8c9cc);display:inline-flex;justify-content:center}.smart-loading__spinner{animation:smart-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;box-sizing:border-box;height:var(--loading-spinner-size,30px);max-height:100%;max-width:100%;position:relative;width:var(--loading-spinner-size,30px)}.smart-loading__spinner--spinner{animation-timing-function:steps(12)}.smart-loading__spinner--circular{border:1px solid transparent;border-radius:100%;border-top-color:initial}.smart-loading__text{color:var(--loading-text-color,#969799);font-size:var(--loading-text-font-size,14px);line-height:var(--loading-text-line-height,20px);margin-left:var(--padding-xs,8px)}.smart-loading__text:empty{display:none}.smart-loading--vertical{flex-direction:column}.smart-loading--vertical .smart-loading__text{margin:var(--padding-xs,8px) 0 0}.smart-loading__dot{height:100%;left:0;position:absolute;top:0;width:100%}.smart-loading__dot:before{background-color:currentColor;border-radius:40%;content:" ";display:block;height:25%;margin:0 auto;width:2px}.smart-loading__dot:first-of-type{opacity:1;transform:rotate(30deg)}.smart-loading__dot:nth-of-type(2){opacity:.9375;transform:rotate(60deg)}.smart-loading__dot:nth-of-type(3){opacity:.875;transform:rotate(90deg)}.smart-loading__dot:nth-of-type(4){opacity:.8125;transform:rotate(120deg)}.smart-loading__dot:nth-of-type(5){opacity:.75;transform:rotate(150deg)}.smart-loading__dot:nth-of-type(6){opacity:.6875;transform:rotate(180deg)}.smart-loading__dot:nth-of-type(7){opacity:.625;transform:rotate(210deg)}.smart-loading__dot:nth-of-type(8){opacity:.5625;transform:rotate(240deg)}.smart-loading__dot:nth-of-type(9){opacity:.5;transform:rotate(270deg)}.smart-loading__dot:nth-of-type(10){opacity:.4375;transform:rotate(300deg)}.smart-loading__dot:nth-of-type(11){opacity:.375;transform:rotate(330deg)}.smart-loading__dot:nth-of-type(12){opacity:.3125;transform:rotate(1turn)}@keyframes smart-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
package/dist/loading/index.js
CHANGED
package/dist/loading/index.wxml
CHANGED
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
<view class="custom-class {{ utils.bem('loading', { vertical }) }}">
|
5
5
|
<view
|
6
|
-
class="
|
6
|
+
class="smart-loading__spinner smart-loading__spinner--{{ type }}"
|
7
7
|
style="{{ computed.spinnerStyle({ color, size }) }}"
|
8
8
|
>
|
9
9
|
<view
|
10
10
|
wx:if="{{ type === 'spinner' }}"
|
11
11
|
wx:for="{{ array12 }}"
|
12
12
|
wx:key="index"
|
13
|
-
class="
|
13
|
+
class="smart-loading__dot"
|
14
14
|
/>
|
15
15
|
</view>
|
16
|
-
<view class="
|
16
|
+
<view class="smart-loading__text" style="{{ computed.textStyle({ textSize }) }}">
|
17
17
|
<slot />
|
18
18
|
</view>
|
19
19
|
</view>
|
package/dist/loading/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';:host{font-size:0;line-height:1}.
|
1
|
+
@import '../common/index.wxss';:host{font-size:0;line-height:1}.smart-loading{align-items:center;color:var(--loading-spinner-color,#c8c9cc);display:inline-flex;justify-content:center}.smart-loading__spinner{animation:smart-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;box-sizing:border-box;height:var(--loading-spinner-size,30px);max-height:100%;max-width:100%;position:relative;width:var(--loading-spinner-size,30px)}.smart-loading__spinner--spinner{animation-timing-function:steps(12)}.smart-loading__spinner--circular{border:1px solid transparent;border-radius:100%;border-top-color:initial}.smart-loading__text{color:var(--loading-text-color,#969799);font-size:var(--loading-text-font-size,14px);line-height:var(--loading-text-line-height,20px);margin-left:var(--padding-xs,8px)}.smart-loading__text:empty{display:none}.smart-loading--vertical{flex-direction:column}.smart-loading--vertical .smart-loading__text{margin:var(--padding-xs,8px) 0 0}.smart-loading__dot{height:100%;left:0;position:absolute;top:0;width:100%}.smart-loading__dot:before{background-color:currentColor;border-radius:40%;content:" ";display:block;height:25%;margin:0 auto;width:2px}.smart-loading__dot:first-of-type{opacity:1;transform:rotate(30deg)}.smart-loading__dot:nth-of-type(2){opacity:.9375;transform:rotate(60deg)}.smart-loading__dot:nth-of-type(3){opacity:.875;transform:rotate(90deg)}.smart-loading__dot:nth-of-type(4){opacity:.8125;transform:rotate(120deg)}.smart-loading__dot:nth-of-type(5){opacity:.75;transform:rotate(150deg)}.smart-loading__dot:nth-of-type(6){opacity:.6875;transform:rotate(180deg)}.smart-loading__dot:nth-of-type(7){opacity:.625;transform:rotate(210deg)}.smart-loading__dot:nth-of-type(8){opacity:.5625;transform:rotate(240deg)}.smart-loading__dot:nth-of-type(9){opacity:.5;transform:rotate(270deg)}.smart-loading__dot:nth-of-type(10){opacity:.4375;transform:rotate(300deg)}.smart-loading__dot:nth-of-type(11){opacity:.375;transform:rotate(330deg)}.smart-loading__dot:nth-of-type(12){opacity:.3125;transform:rotate(1turn)}@keyframes smart-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
package/dist/mixins/basic.js
CHANGED
@@ -7,5 +7,20 @@ export const basic = Behavior({
|
|
7
7
|
this.setData(data);
|
8
8
|
return new Promise((resolve) => wx.nextTick(resolve));
|
9
9
|
},
|
10
|
+
// high performance setData
|
11
|
+
setView(data, callback) {
|
12
|
+
const target = {};
|
13
|
+
let hasChange = false;
|
14
|
+
Object.keys(data).forEach((key) => {
|
15
|
+
if (data[key] !== this.data[key]) {
|
16
|
+
target[key] = data[key];
|
17
|
+
hasChange = true;
|
18
|
+
}
|
19
|
+
});
|
20
|
+
if (hasChange) {
|
21
|
+
return this.setData(target, callback);
|
22
|
+
}
|
23
|
+
return callback && callback();
|
24
|
+
},
|
10
25
|
},
|
11
26
|
});
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { isFunction } from '../common/validator';
|
2
2
|
import { getCurrentPage, isDef } from '../common/utils';
|
3
3
|
function onPageScroll(event) {
|
4
|
-
const {
|
5
|
-
|
4
|
+
const { smartPageScroller = [] } = getCurrentPage();
|
5
|
+
smartPageScroller.forEach((scroller) => {
|
6
6
|
if (typeof scroller === 'function') {
|
7
7
|
// @ts-ignore
|
8
8
|
scroller(event);
|
@@ -17,24 +17,24 @@ export function pageScrollMixin(scroller) {
|
|
17
17
|
return;
|
18
18
|
}
|
19
19
|
const _scroller = scroller.bind(this);
|
20
|
-
const {
|
20
|
+
const { smartPageScroller = [] } = page;
|
21
21
|
if (isFunction(page.onPageScroll) && page.onPageScroll !== onPageScroll) {
|
22
|
-
|
22
|
+
smartPageScroller.push(page.onPageScroll.bind(page));
|
23
23
|
}
|
24
|
-
|
25
|
-
page.
|
24
|
+
smartPageScroller.push(_scroller);
|
25
|
+
page.smartPageScroller = smartPageScroller;
|
26
26
|
page.onPageScroll = onPageScroll;
|
27
27
|
this._scroller = _scroller;
|
28
28
|
},
|
29
29
|
detached() {
|
30
30
|
const page = getCurrentPage();
|
31
|
-
if (!isDef(page) || !isDef(page.
|
31
|
+
if (!isDef(page) || !isDef(page.smartPageScroller)) {
|
32
32
|
return;
|
33
33
|
}
|
34
|
-
const {
|
35
|
-
const index =
|
34
|
+
const { smartPageScroller } = page;
|
35
|
+
const index = smartPageScroller.findIndex((v) => v === this._scroller);
|
36
36
|
if (index > -1) {
|
37
|
-
page.
|
37
|
+
page.smartPageScroller.splice(index, 1);
|
38
38
|
}
|
39
39
|
this._scroller = undefined;
|
40
40
|
},
|
@@ -2,10 +2,10 @@
|
|
2
2
|
import { requestAnimationFrame } from '../common/utils';
|
3
3
|
import { isObj } from '../common/validator';
|
4
4
|
const getClassNames = (name) => ({
|
5
|
-
enter: `
|
6
|
-
'enter-to': `
|
7
|
-
leave: `
|
8
|
-
'leave-to': `
|
5
|
+
enter: `smart-${name}-enter smart-${name}-enter-active enter-class enter-active-class`,
|
6
|
+
'enter-to': `smart-${name}-enter-to smart-${name}-enter-active enter-to-class enter-active-class`,
|
7
|
+
leave: `smart-${name}-leave smart-${name}-leave-active leave-class leave-active-class`,
|
8
|
+
'leave-to': `smart-${name}-leave-to smart-${name}-leave-active leave-to-class leave-active-class`,
|
9
9
|
});
|
10
10
|
export function transition(showDefaultValue) {
|
11
11
|
return Behavior({
|
package/dist/nav-bar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.smart-nav-bar{background-color:var(--nav-bar-background-color,var(--app-B2,#fff));box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.smart-nav-bar__content{height:100%;position:relative}.smart-nav-bar__text{color:var(--nav-bar-text-color,var(--app-B6-N1,#000));display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.smart-nav-bar__text--hover{background-color:#f2f3f5}.smart-nav-bar__arrow{color:var(--nav-bar-icon-color,var(--app-B6-N1,#000))!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.smart-nav-bar__arrow+.smart-nav-bar__text{margin-left:-20px;padding-left:25px}.smart-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.smart-nav-bar__title{color:var(--nav-bar-title-text-color,var(--app-B6-N1,#000));font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.smart-nav-bar__left,.smart-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.smart-nav-bar__left{left:var(--padding-md,16px)}.smart-nav-bar__right{right:var(--padding-md,16px)}
|
package/dist/nav-bar/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { VantComponent } from '../common/component';
|
2
|
-
import { getRect, getSystemInfoSync } from '../common/utils';
|
3
1
|
import Left from '@tuya-miniapp/icons/dist/svg/Left';
|
4
|
-
|
2
|
+
import { SmartComponent } from '../common/component';
|
3
|
+
import { getRect, getSystemInfoSync } from '../common/utils';
|
4
|
+
SmartComponent({
|
5
5
|
classes: ['title-class'],
|
6
6
|
props: {
|
7
7
|
title: String,
|
@@ -56,7 +56,7 @@ VantComponent({
|
|
56
56
|
return;
|
57
57
|
}
|
58
58
|
wx.nextTick(() => {
|
59
|
-
getRect(this, '.
|
59
|
+
getRect(this, '.smart-nav-bar').then((res) => {
|
60
60
|
if (res && 'height' in res) {
|
61
61
|
this.setData({ height: res.height });
|
62
62
|
}
|
package/dist/nav-bar/index.json
CHANGED
package/dist/nav-bar/index.wxml
CHANGED
@@ -4,37 +4,37 @@
|
|
4
4
|
<view wx:if="{{ fixed && placeholder }}" style="height: {{ height }}px;" />
|
5
5
|
|
6
6
|
<view
|
7
|
-
class="{{ utils.bem('nav-bar', { fixed }) }} custom-class {{ border ? '
|
7
|
+
class="{{ utils.bem('nav-bar', { fixed }) }} custom-class {{ border ? 'smart-hairline--bottom' : '' }}"
|
8
8
|
style="{{ computed.barStyle({ zIndex, statusBarHeight, safeAreaInsetTop }) }}; {{ customStyle }}"
|
9
9
|
>
|
10
|
-
<view class="
|
11
|
-
<view class="
|
10
|
+
<view class="smart-nav-bar__content">
|
11
|
+
<view class="smart-nav-bar__left" bind:tap="onClickLeft">
|
12
12
|
<block wx:if="{{ leftArrow || leftText }}">
|
13
|
-
<
|
13
|
+
<smart-icon
|
14
14
|
wx:if="{{ leftArrow }}"
|
15
15
|
size="16px"
|
16
16
|
name="{{ leftArrowIcon }}"
|
17
|
-
custom-class="
|
17
|
+
custom-class="smart-nav-bar__arrow"
|
18
18
|
/>
|
19
19
|
<view
|
20
20
|
wx:if="{{ leftText }}"
|
21
|
-
class="
|
22
|
-
hover-class="
|
21
|
+
class="smart-nav-bar__text"
|
22
|
+
hover-class="smart-nav-bar__text--hover"
|
23
23
|
hover-stay-time="70"
|
24
24
|
>{{ leftText }}</view>
|
25
25
|
</block>
|
26
26
|
<slot wx:else name="left" />
|
27
27
|
</view>
|
28
|
-
<view class="
|
28
|
+
<view class="smart-nav-bar__title title-class smart-ellipsis">
|
29
29
|
<block wx:if="{{ title }}">{{ title }}</block>
|
30
30
|
|
31
31
|
<slot wx:else name="title" />
|
32
32
|
</view>
|
33
|
-
<view class="
|
33
|
+
<view class="smart-nav-bar__right" bind:tap="onClickRight">
|
34
34
|
<view
|
35
35
|
wx:if="{{ rightText }}"
|
36
|
-
class="
|
37
|
-
hover-class="
|
36
|
+
class="smart-nav-bar__text"
|
37
|
+
hover-class="smart-nav-bar__text--hover"
|
38
38
|
hover-stay-time="70"
|
39
39
|
>{{ rightText }}</view>
|
40
40
|
<slot wx:else name="right" />
|
package/dist/nav-bar/index.wxss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.wxss';.
|
1
|
+
@import '../common/index.wxss';.smart-nav-bar{background-color:var(--nav-bar-background-color,var(--app-B2,#fff));box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.smart-nav-bar__content{height:100%;position:relative}.smart-nav-bar__text{color:var(--nav-bar-text-color,var(--app-B6-N1,#000));display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.smart-nav-bar__text--hover{background-color:#f2f3f5}.smart-nav-bar__arrow{color:var(--nav-bar-icon-color,var(--app-B6-N1,#000))!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.smart-nav-bar__arrow+.smart-nav-bar__text{margin-left:-20px;padding-left:25px}.smart-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.smart-nav-bar__title{color:var(--nav-bar-title-text-color,var(--app-B6-N1,#000));font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.smart-nav-bar__left,.smart-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.smart-nav-bar__left{left:var(--padding-md,16px)}.smart-nav-bar__right{right:var(--padding-md,16px)}
|
@@ -1 +1 @@
|
|
1
|
-
@import '../common/index.css';.
|
1
|
+
@import '../common/index.css';.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/dist/notice-bar/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { SmartComponent } from '../common/component';
|
2
2
|
import { getRect, requestAnimationFrame } from '../common/utils';
|
3
|
-
|
3
|
+
SmartComponent({
|
4
4
|
props: {
|
5
5
|
text: {
|
6
6
|
type: String,
|
@@ -57,8 +57,8 @@ VantComponent({
|
|
57
57
|
init() {
|
58
58
|
requestAnimationFrame(() => {
|
59
59
|
Promise.all([
|
60
|
-
getRect(this, '.
|
61
|
-
getRect(this, '.
|
60
|
+
getRect(this, '.smart-notice-bar__content'),
|
61
|
+
getRect(this, '.smart-notice-bar__wrap'),
|
62
62
|
]).then((rects) => {
|
63
63
|
const [contentRect, wrapRect] = rects;
|
64
64
|
const { speed, scrollable, delay } = this.data;
|