@tuya-miniapp/smart-ui 0.0.1-beta-6 → 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 +2 -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 +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 +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 +1 -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 +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 +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/lib/icon/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
var component_1 = require("../common/component");
|
4
|
-
(0, component_1.
|
4
|
+
(0, component_1.SmartComponent)({
|
5
5
|
classes: ['info-class'],
|
6
6
|
props: {
|
7
7
|
dot: Boolean,
|
@@ -11,7 +11,7 @@ var component_1 = require("../common/component");
|
|
11
11
|
customStyle: String,
|
12
12
|
classPrefix: {
|
13
13
|
type: String,
|
14
|
-
value: '
|
14
|
+
value: 'smart-icon',
|
15
15
|
},
|
16
16
|
name: String,
|
17
17
|
},
|
package/lib/icon/index.json
CHANGED
package/lib/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/lib/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/lib/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/lib/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/lib/image/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 button_1 = require("../mixins/button");
|
5
|
-
(0, component_1.
|
5
|
+
(0, component_1.SmartComponent)({
|
6
6
|
mixins: [button_1.button],
|
7
7
|
classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
|
8
8
|
props: {
|
package/lib/image/index.json
CHANGED
package/lib/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/lib/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}
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var utils_1 = require("../common/utils");
|
4
4
|
var component_1 = require("../common/component");
|
5
5
|
var relation_1 = require("../common/relation");
|
6
|
-
(0, component_1.
|
6
|
+
(0, component_1.SmartComponent)({
|
7
7
|
relation: (0, relation_1.useParent)('index-bar'),
|
8
8
|
props: {
|
9
9
|
useSlot: Boolean,
|
@@ -17,7 +17,7 @@ var relation_1 = require("../common/relation");
|
|
17
17
|
methods: {
|
18
18
|
scrollIntoView: function (scrollTop) {
|
19
19
|
var _this = this;
|
20
|
-
(0, utils_1.getRect)(this, '.
|
20
|
+
(0, utils_1.getRect)(this, '.smart-index-anchor-wrapper').then(function (rect) {
|
21
21
|
wx.pageScrollTo({
|
22
22
|
duration: 0,
|
23
23
|
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/lib/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/lib/index-bar/index.js
CHANGED
@@ -13,7 +13,7 @@ var indexList = function () {
|
|
13
13
|
}
|
14
14
|
return indexList;
|
15
15
|
};
|
16
|
-
(0, component_1.
|
16
|
+
(0, component_1.SmartComponent)({
|
17
17
|
relation: (0, relation_1.useChildren)('index-anchor', function () {
|
18
18
|
this.updateData();
|
19
19
|
}),
|
@@ -79,7 +79,7 @@ var indexList = function () {
|
|
79
79
|
setAnchorsRect: function () {
|
80
80
|
var _this = this;
|
81
81
|
return Promise.all(this.children.map(function (anchor) {
|
82
|
-
return (0, utils_1.getRect)(anchor, '.
|
82
|
+
return (0, utils_1.getRect)(anchor, '.smart-index-anchor-wrapper').then(function (rect) {
|
83
83
|
Object.assign(anchor, {
|
84
84
|
height: rect.height,
|
85
85
|
top: rect.top + _this.scrollTop,
|
@@ -89,7 +89,7 @@ var indexList = function () {
|
|
89
89
|
},
|
90
90
|
setListRect: function () {
|
91
91
|
var _this = this;
|
92
|
-
return (0, utils_1.getRect)(this, '.
|
92
|
+
return (0, utils_1.getRect)(this, '.smart-index-bar').then(function (rect) {
|
93
93
|
if (!(0, utils_1.isDef)(rect)) {
|
94
94
|
return;
|
95
95
|
}
|
@@ -101,7 +101,7 @@ var indexList = function () {
|
|
101
101
|
},
|
102
102
|
setSiderbarRect: function () {
|
103
103
|
var _this = this;
|
104
|
-
return (0, utils_1.getRect)(this, '.
|
104
|
+
return (0, utils_1.getRect)(this, '.smart-index-bar__sidebar').then(function (res) {
|
105
105
|
if (!(0, utils_1.isDef)(res)) {
|
106
106
|
return;
|
107
107
|
}
|
@@ -124,7 +124,7 @@ var indexList = function () {
|
|
124
124
|
}
|
125
125
|
},
|
126
126
|
getAnchorRect: function (anchor) {
|
127
|
-
return (0, utils_1.getRect)(anchor, '.
|
127
|
+
return (0, utils_1.getRect)(anchor, '.smart-index-anchor-wrapper').then(function (rect) { return ({
|
128
128
|
height: rect.height,
|
129
129
|
top: rect.top,
|
130
130
|
}); });
|
package/lib/index-bar/index.wxml
CHANGED
@@ -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
|
>
|
package/lib/index-bar/index.wxss
CHANGED
@@ -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/lib/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/lib/info/index.js
CHANGED
package/lib/info/index.wxml
CHANGED
package/lib/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/lib/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/lib/loading/index.js
CHANGED
package/lib/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/lib/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/lib/mixins/basic.js
CHANGED
@@ -10,5 +10,21 @@ exports.basic = Behavior({
|
|
10
10
|
this.setData(data);
|
11
11
|
return new Promise(function (resolve) { return wx.nextTick(resolve); });
|
12
12
|
},
|
13
|
+
// high performance setData
|
14
|
+
setView: function (data, callback) {
|
15
|
+
var _this = this;
|
16
|
+
var target = {};
|
17
|
+
var hasChange = false;
|
18
|
+
Object.keys(data).forEach(function (key) {
|
19
|
+
if (data[key] !== _this.data[key]) {
|
20
|
+
target[key] = data[key];
|
21
|
+
hasChange = true;
|
22
|
+
}
|
23
|
+
});
|
24
|
+
if (hasChange) {
|
25
|
+
return this.setData(target, callback);
|
26
|
+
}
|
27
|
+
return callback && callback();
|
28
|
+
},
|
13
29
|
},
|
14
30
|
});
|
@@ -4,8 +4,8 @@ exports.pageScrollMixin = void 0;
|
|
4
4
|
var validator_1 = require("../common/validator");
|
5
5
|
var utils_1 = require("../common/utils");
|
6
6
|
function onPageScroll(event) {
|
7
|
-
var _a = (0, utils_1.getCurrentPage)().
|
8
|
-
|
7
|
+
var _a = (0, utils_1.getCurrentPage)().smartPageScroller, smartPageScroller = _a === void 0 ? [] : _a;
|
8
|
+
smartPageScroller.forEach(function (scroller) {
|
9
9
|
if (typeof scroller === 'function') {
|
10
10
|
// @ts-ignore
|
11
11
|
scroller(event);
|
@@ -20,25 +20,25 @@ function pageScrollMixin(scroller) {
|
|
20
20
|
return;
|
21
21
|
}
|
22
22
|
var _scroller = scroller.bind(this);
|
23
|
-
var _a = page.
|
23
|
+
var _a = page.smartPageScroller, smartPageScroller = _a === void 0 ? [] : _a;
|
24
24
|
if ((0, validator_1.isFunction)(page.onPageScroll) && page.onPageScroll !== onPageScroll) {
|
25
|
-
|
25
|
+
smartPageScroller.push(page.onPageScroll.bind(page));
|
26
26
|
}
|
27
|
-
|
28
|
-
page.
|
27
|
+
smartPageScroller.push(_scroller);
|
28
|
+
page.smartPageScroller = smartPageScroller;
|
29
29
|
page.onPageScroll = onPageScroll;
|
30
30
|
this._scroller = _scroller;
|
31
31
|
},
|
32
32
|
detached: function () {
|
33
33
|
var _this = this;
|
34
34
|
var page = (0, utils_1.getCurrentPage)();
|
35
|
-
if (!(0, utils_1.isDef)(page) || !(0, utils_1.isDef)(page.
|
35
|
+
if (!(0, utils_1.isDef)(page) || !(0, utils_1.isDef)(page.smartPageScroller)) {
|
36
36
|
return;
|
37
37
|
}
|
38
|
-
var
|
39
|
-
var index =
|
38
|
+
var smartPageScroller = page.smartPageScroller;
|
39
|
+
var index = smartPageScroller.findIndex(function (v) { return v === _this._scroller; });
|
40
40
|
if (index > -1) {
|
41
|
-
page.
|
41
|
+
page.smartPageScroller.splice(index, 1);
|
42
42
|
}
|
43
43
|
this._scroller = undefined;
|
44
44
|
},
|
package/lib/mixins/transition.js
CHANGED
@@ -5,10 +5,10 @@ exports.transition = void 0;
|
|
5
5
|
var utils_1 = require("../common/utils");
|
6
6
|
var validator_1 = require("../common/validator");
|
7
7
|
var getClassNames = function (name) { return ({
|
8
|
-
enter: "
|
9
|
-
'enter-to': "
|
10
|
-
leave: "
|
11
|
-
'leave-to': "
|
8
|
+
enter: "smart-".concat(name, "-enter smart-").concat(name, "-enter-active enter-class enter-active-class"),
|
9
|
+
'enter-to': "smart-".concat(name, "-enter-to smart-").concat(name, "-enter-active enter-to-class enter-active-class"),
|
10
|
+
leave: "smart-".concat(name, "-leave smart-").concat(name, "-leave-active leave-class leave-active-class"),
|
11
|
+
'leave-to': "smart-".concat(name, "-leave-to smart-").concat(name, "-leave-active leave-to-class leave-active-class"),
|
12
12
|
}); };
|
13
13
|
function transition(showDefaultValue) {
|
14
14
|
return Behavior({
|
package/lib/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/lib/nav-bar/index.js
CHANGED
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var Left_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Left"));
|
6
7
|
var component_1 = require("../common/component");
|
7
8
|
var utils_1 = require("../common/utils");
|
8
|
-
|
9
|
-
(0, component_1.VantComponent)({
|
9
|
+
(0, component_1.SmartComponent)({
|
10
10
|
classes: ['title-class'],
|
11
11
|
props: {
|
12
12
|
title: String,
|
@@ -62,7 +62,7 @@ var Left_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Left"));
|
|
62
62
|
return;
|
63
63
|
}
|
64
64
|
wx.nextTick(function () {
|
65
|
-
(0, utils_1.getRect)(_this, '.
|
65
|
+
(0, utils_1.getRect)(_this, '.smart-nav-bar').then(function (res) {
|
66
66
|
if (res && 'height' in res) {
|
67
67
|
_this.setData({ height: res.height });
|
68
68
|
}
|
package/lib/nav-bar/index.json
CHANGED
package/lib/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/lib/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)}
|
package/lib/notice-bar/index.css
CHANGED
@@ -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/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;
|