@tuya-miniapp/smart-ui 2.6.4-beta-5 → 2.6.4-beta-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calendar/calendar.wxml +1 -1
- package/dist/loading/index.css +1 -1
- package/dist/loading/index.js +5 -5
- package/dist/loading/index.wxs +5 -5
- package/dist/loading/index.wxss +1 -1
- package/dist/nav-bar/index.js +1 -1
- package/package.json +1 -1
- package/dist/common/style/clearfix.css +0 -1
- package/dist/common/style/clearfix.wxss +0 -1
- package/dist/common/style/ellipsis.css +0 -1
- package/dist/common/style/ellipsis.wxss +0 -1
- package/dist/common/style/hairline.css +0 -1
- package/dist/common/style/hairline.wxss +0 -1
- package/dist/common/style/mixins/clearfix.css +0 -0
- package/dist/common/style/mixins/clearfix.wxss +0 -0
- package/dist/common/style/mixins/ellipsis.css +0 -0
- package/dist/common/style/mixins/ellipsis.wxss +0 -0
- package/dist/common/style/mixins/hairline.css +0 -1
- package/dist/common/style/mixins/hairline.wxss +0 -1
- package/dist/common/style/var.css +0 -1
- package/dist/common/style/var.wxss +0 -1
- package/dist/popup/index.css +0 -1
- package/dist/popup/index.wxss +0 -1
- package/dist/rate/index.css +0 -1
- package/dist/rate/index.wxss +0 -1
- package/dist/row/index.css +0 -1
- package/dist/row/index.wxss +0 -1
- package/dist/search/index.css +0 -1
- package/dist/search/index.wxss +0 -1
- package/dist/sidebar/index.css +0 -1
- package/dist/sidebar/index.wxss +0 -1
- package/dist/sidebar-item/index.css +0 -1
- package/dist/sidebar-item/index.wxss +0 -1
- package/dist/skeleton/index.css +0 -1
- package/dist/skeleton/index.wxss +0 -1
- package/dist/slider/index.css +0 -1
- package/dist/slider/index.wxss +0 -1
- package/dist/stepper/index.css +0 -1
- package/dist/stepper/index.wxss +0 -1
- package/dist/steps/index.css +0 -1
- package/dist/steps/index.wxss +0 -1
- package/dist/sticky/index.css +0 -1
- package/dist/sticky/index.wxss +0 -1
- package/dist/swipe-cell/index.css +0 -1
- package/dist/swipe-cell/index.wxss +0 -1
- package/dist/switch/index.css +0 -1
- package/dist/switch/index.wxss +0 -1
- package/dist/tab/index.css +0 -1
- package/dist/tab/index.wxss +0 -1
- package/dist/tabbar/index.css +0 -1
- package/dist/tabbar/index.wxss +0 -1
- package/dist/tabbar-item/index.css +0 -1
- package/dist/tabbar-item/index.wxss +0 -1
- package/dist/tabs/index.css +0 -1
- package/dist/tabs/index.wxss +0 -1
- package/dist/tag/index.css +0 -1
- package/dist/tag/index.wxss +0 -1
- package/dist/toast/index.css +0 -1
- package/dist/toast/index.wxss +0 -1
- package/dist/transition/index.css +0 -1
- package/dist/transition/index.wxss +0 -1
- package/dist/tree-select/index.css +0 -1
- package/dist/tree-select/index.wxss +0 -1
- package/lib/action-sheet/index.css +0 -1
- package/lib/action-sheet/index.d.ts +0 -1
- package/lib/action-sheet/index.js +0 -121
- package/lib/action-sheet/index.json +0 -8
- package/lib/action-sheet/index.wxml +0 -87
- package/lib/action-sheet/index.wxss +0 -1
- package/lib/area/index.css +0 -1
- package/lib/area/index.d.ts +0 -1
- package/lib/area/index.js +0 -234
- package/lib/area/index.json +0 -6
- package/lib/area/index.wxml +0 -20
- package/lib/area/index.wxs +0 -8
- package/lib/area/index.wxss +0 -1
- package/lib/battery/index.d.ts +0 -1
- package/lib/battery/index.js +0 -105
- package/lib/battery/index.json +0 -4
- package/lib/battery/index.wxml +0 -1
- package/lib/bottom-sheet/index.css +0 -1
- package/lib/bottom-sheet/index.d.ts +0 -1
- package/lib/bottom-sheet/index.js +0 -82
- package/lib/bottom-sheet/index.json +0 -8
- package/lib/bottom-sheet/index.wxml +0 -43
- package/lib/bottom-sheet/index.wxs +0 -12
- package/lib/bottom-sheet/index.wxss +0 -1
- package/lib/button/index.css +0 -1
- package/lib/button/index.d.ts +0 -1
- package/lib/button/index.js +0 -64
- package/lib/button/index.json +0 -7
- package/lib/button/index.wxml +0 -64
- package/lib/button/index.wxs +0 -39
- package/lib/button/index.wxss +0 -1
- package/lib/calendar/calendar.wxml +0 -84
- package/lib/calendar/index.css +0 -1
- package/lib/calendar/index.d.ts +0 -1
- package/lib/calendar/index.js +0 -465
- package/lib/calendar/index.json +0 -12
- package/lib/calendar/index.wxml +0 -25
- package/lib/calendar/index.wxs +0 -59
- package/lib/calendar/index.wxss +0 -1
- package/lib/calendar-header/index.css +0 -1
- package/lib/calendar-header/index.d.ts +0 -1
- package/lib/calendar-header/index.js +0 -75
- package/lib/calendar-header/index.json +0 -6
- package/lib/calendar-header/index.wxml +0 -27
- package/lib/calendar-header/index.wxss +0 -1
- package/lib/calendar-month/index.css +0 -1
- package/lib/calendar-month/index.d.ts +0 -1
- package/lib/calendar-month/index.js +0 -179
- package/lib/calendar-month/index.json +0 -3
- package/lib/calendar-month/index.wxml +0 -22
- package/lib/calendar-month/index.wxs +0 -73
- package/lib/calendar-month/index.wxss +0 -1
- package/lib/calendar-month-list/index.css +0 -1
- package/lib/calendar-month-list/index.d.ts +0 -1
- package/lib/calendar-month-list/index.js +0 -105
- package/lib/calendar-month-list/index.json +0 -7
- package/lib/calendar-month-list/index.wxml +0 -15
- package/lib/calendar-month-list/index.wxss +0 -1
- package/lib/calendar-utils/types.d.ts +0 -7
- package/lib/calendar-utils/types.js +0 -2
- package/lib/calendar-utils/utils.d.ts +0 -21
- package/lib/calendar-utils/utils.js +0 -175
- package/lib/calendar-utils/utils.wxs +0 -25
- package/lib/calendar-year-list/index.css +0 -1
- package/lib/calendar-year-list/index.d.ts +0 -1
- package/lib/calendar-year-list/index.js +0 -115
- package/lib/calendar-year-list/index.json +0 -7
- package/lib/calendar-year-list/index.wxml +0 -15
- package/lib/calendar-year-list/index.wxss +0 -1
- package/lib/cascader/index.css +0 -1
- package/lib/cascader/index.d.ts +0 -1
- package/lib/cascader/index.js +0 -207
- package/lib/cascader/index.json +0 -8
- package/lib/cascader/index.wxml +0 -56
- package/lib/cascader/index.wxs +0 -21
- package/lib/cascader/index.wxss +0 -1
- package/lib/cell/index.css +0 -1
- package/lib/cell/index.d.ts +0 -1
- package/lib/cell/index.js +0 -48
- package/lib/cell/index.json +0 -6
- package/lib/cell/index.wxml +0 -47
- package/lib/cell/index.wxs +0 -17
- package/lib/cell/index.wxss +0 -1
- package/lib/cell-group/index.css +0 -1
- package/lib/cell-group/index.d.ts +0 -1
- package/lib/cell-group/index.js +0 -14
- package/lib/cell-group/index.json +0 -3
- package/lib/cell-group/index.wxml +0 -15
- package/lib/cell-group/index.wxs +0 -14
- package/lib/cell-group/index.wxss +0 -1
- package/lib/checkbox/index.css +0 -1
- package/lib/checkbox/index.d.ts +0 -1
- package/lib/checkbox/index.js +0 -84
- package/lib/checkbox/index.json +0 -6
- package/lib/checkbox/index.wxml +0 -32
- package/lib/checkbox/index.wxs +0 -20
- package/lib/checkbox/index.wxss +0 -1
- package/lib/checkbox-group/index.css +0 -1
- package/lib/checkbox-group/index.d.ts +0 -1
- package/lib/checkbox-group/index.js +0 -39
- package/lib/checkbox-group/index.json +0 -3
- package/lib/checkbox-group/index.wxml +0 -5
- package/lib/checkbox-group/index.wxss +0 -1
- package/lib/circle/index.css +0 -1
- package/lib/circle/index.d.ts +0 -1
- package/lib/circle/index.js +0 -134
- package/lib/circle/index.json +0 -3
- package/lib/circle/index.rjs +0 -232
- package/lib/circle/index.wxml +0 -8
- package/lib/circle/index.wxss +0 -1
- package/lib/col/index.css +0 -1
- package/lib/col/index.d.ts +0 -1
- package/lib/col/index.js +0 -11
- package/lib/col/index.json +0 -3
- package/lib/col/index.wxml +0 -9
- package/lib/col/index.wxs +0 -18
- package/lib/col/index.wxss +0 -1
- package/lib/collapse/index.css +0 -1
- package/lib/collapse/index.d.ts +0 -1
- package/lib/collapse/index.js +0 -48
- package/lib/collapse/index.json +0 -3
- package/lib/collapse/index.wxml +0 -3
- package/lib/collapse/index.wxss +0 -1
- package/lib/collapse-item/animate.d.ts +0 -2
- package/lib/collapse-item/animate.js +0 -43
- package/lib/collapse-item/index.css +0 -1
- package/lib/collapse-item/index.d.ts +0 -1
- package/lib/collapse-item/index.js +0 -64
- package/lib/collapse-item/index.json +0 -6
- package/lib/collapse-item/index.wxml +0 -45
- package/lib/collapse-item/index.wxss +0 -1
- package/lib/common/appLog.d.ts +0 -10
- package/lib/common/appLog.js +0 -112
- package/lib/common/color.d.ts +0 -7
- package/lib/common/color.js +0 -10
- package/lib/common/component.d.ts +0 -4
- package/lib/common/component.js +0 -49
- package/lib/common/index.css +0 -1
- package/lib/common/index.wxss +0 -1
- package/lib/common/relation.d.ts +0 -15
- package/lib/common/relation.js +0 -65
- package/lib/common/style/clearfix.css +0 -1
- package/lib/common/style/clearfix.wxss +0 -1
- package/lib/common/style/ellipsis.css +0 -1
- package/lib/common/style/ellipsis.wxss +0 -1
- package/lib/common/style/hairline.css +0 -1
- package/lib/common/style/hairline.wxss +0 -1
- package/lib/common/style/mixins/clearfix.css +0 -0
- package/lib/common/style/mixins/clearfix.wxss +0 -0
- package/lib/common/style/mixins/ellipsis.css +0 -0
- package/lib/common/style/mixins/ellipsis.wxss +0 -0
- package/lib/common/style/mixins/hairline.css +0 -1
- package/lib/common/style/mixins/hairline.wxss +0 -1
- package/lib/common/style/var.css +0 -1
- package/lib/common/style/var.wxss +0 -1
- package/lib/common/ty.d.ts +0 -7
- package/lib/common/ty.js +0 -35
- package/lib/common/utils.d.ts +0 -24
- package/lib/common/utils.js +0 -140
- package/lib/common/validator.d.ts +0 -9
- package/lib/common/validator.js +0 -43
- package/lib/common/version.d.ts +0 -15
- package/lib/common/version.js +0 -70
- package/lib/config-provider/index.d.ts +0 -1
- package/lib/config-provider/index.js +0 -11
- package/lib/config-provider/index.json +0 -3
- package/lib/config-provider/index.wxml +0 -5
- package/lib/config-provider/index.wxs +0 -29
- package/lib/count-down/index.css +0 -1
- package/lib/count-down/index.d.ts +0 -1
- package/lib/count-down/index.js +0 -104
- package/lib/count-down/index.json +0 -3
- package/lib/count-down/index.wxml +0 -4
- package/lib/count-down/index.wxss +0 -1
- package/lib/count-down/utils.d.ts +0 -10
- package/lib/count-down/utils.js +0 -64
- package/lib/custom-keyboard/index.css +0 -1
- package/lib/custom-keyboard/index.d.ts +0 -1
- package/lib/custom-keyboard/index.js +0 -156
- package/lib/custom-keyboard/index.json +0 -9
- package/lib/custom-keyboard/index.wxml +0 -44
- package/lib/custom-keyboard/index.wxss +0 -1
- package/lib/datetime-picker/index.css +0 -1
- package/lib/datetime-picker/index.d.ts +0 -1
- package/lib/datetime-picker/index.js +0 -512
- package/lib/datetime-picker/index.json +0 -6
- package/lib/datetime-picker/index.wxml +0 -22
- package/lib/datetime-picker/index.wxss +0 -1
- package/lib/definitions/index.d.ts +0 -29
- package/lib/definitions/index.js +0 -2
- package/lib/dialog/dialog.d.ts +0 -74
- package/lib/dialog/dialog.js +0 -137
- package/lib/dialog/index.css +0 -1
- package/lib/dialog/index.d.ts +0 -1
- package/lib/dialog/index.js +0 -222
- package/lib/dialog/index.json +0 -10
- package/lib/dialog/index.wxml +0 -144
- package/lib/dialog/index.wxss +0 -1
- package/lib/divider/index.css +0 -1
- package/lib/divider/index.d.ts +0 -1
- package/lib/divider/index.js +0 -14
- package/lib/divider/index.json +0 -4
- package/lib/divider/index.wxml +0 -9
- package/lib/divider/index.wxs +0 -18
- package/lib/divider/index.wxss +0 -1
- package/lib/dropdown-item/index.css +0 -1
- package/lib/dropdown-item/index.d.ts +0 -1
- package/lib/dropdown-item/index.js +0 -150
- package/lib/dropdown-item/index.json +0 -8
- package/lib/dropdown-item/index.wxml +0 -52
- package/lib/dropdown-item/index.wxss +0 -1
- package/lib/dropdown-item/shared.d.ts +0 -5
- package/lib/dropdown-item/shared.js +0 -2
- package/lib/dropdown-menu/index.css +0 -1
- package/lib/dropdown-menu/index.d.ts +0 -1
- package/lib/dropdown-menu/index.js +0 -137
- package/lib/dropdown-menu/index.json +0 -6
- package/lib/dropdown-menu/index.wxml +0 -24
- package/lib/dropdown-menu/index.wxs +0 -16
- package/lib/dropdown-menu/index.wxss +0 -1
- package/lib/empty/index.css +0 -1
- package/lib/empty/index.d.ts +0 -1
- package/lib/empty/index.js +0 -31
- package/lib/empty/index.json +0 -4
- package/lib/empty/index.wxml +0 -22
- package/lib/empty/index.wxs +0 -13
- package/lib/empty/index.wxss +0 -1
- package/lib/field/cell-input.wxml +0 -59
- package/lib/field/cell-textarea.wxml +0 -28
- package/lib/field/index.css +0 -1
- package/lib/field/index.d.ts +0 -1
- package/lib/field/index.js +0 -158
- package/lib/field/index.json +0 -7
- package/lib/field/index.wxml +0 -4
- package/lib/field/index.wxs +0 -19
- package/lib/field/index.wxss +0 -1
- package/lib/field/input.wxml +0 -30
- package/lib/field/props.d.ts +0 -4
- package/lib/field/props.js +0 -59
- package/lib/field/textarea.wxml +0 -32
- package/lib/field/types.d.ts +0 -8
- package/lib/field/types.js +0 -2
- package/lib/goods-action/index.css +0 -1
- package/lib/goods-action/index.d.ts +0 -1
- package/lib/goods-action/index.js +0 -17
- package/lib/goods-action/index.json +0 -3
- package/lib/goods-action/index.wxml +0 -5
- package/lib/goods-action/index.wxss +0 -1
- package/lib/goods-action-button/index.css +0 -1
- package/lib/goods-action-button/index.d.ts +0 -1
- package/lib/goods-action-button/index.js +0 -46
- package/lib/goods-action-button/index.json +0 -6
- package/lib/goods-action-button/index.wxml +0 -35
- package/lib/goods-action-button/index.wxss +0 -1
- package/lib/goods-action-icon/index.css +0 -1
- package/lib/goods-action-icon/index.d.ts +0 -1
- package/lib/goods-action-icon/index.js +0 -29
- package/lib/goods-action-icon/index.json +0 -7
- package/lib/goods-action-icon/index.wxml +0 -41
- package/lib/goods-action-icon/index.wxss +0 -1
- package/lib/grid/index.css +0 -1
- package/lib/grid/index.d.ts +0 -1
- package/lib/grid/index.js +0 -57
- package/lib/grid/index.json +0 -3
- package/lib/grid/index.wxml +0 -8
- package/lib/grid/index.wxs +0 -13
- package/lib/grid/index.wxss +0 -1
- package/lib/grid-item/index.css +0 -1
- package/lib/grid-item/index.d.ts +0 -1
- package/lib/grid-item/index.js +0 -54
- package/lib/grid-item/index.json +0 -6
- package/lib/grid-item/index.wxml +0 -27
- package/lib/grid-item/index.wxs +0 -32
- package/lib/grid-item/index.wxss +0 -1
- package/lib/icon/index.css +0 -1
- package/lib/icon/index.d.ts +0 -1
- package/lib/icon/index.js +0 -23
- package/lib/icon/index.json +0 -6
- package/lib/icon/index.wxml +0 -30
- package/lib/icon/index.wxs +0 -98
- package/lib/icon/index.wxss +0 -1
- package/lib/image/index.css +0 -1
- package/lib/image/index.d.ts +0 -1
- package/lib/image/index.js +0 -75
- package/lib/image/index.json +0 -7
- package/lib/image/index.wxml +0 -40
- package/lib/image/index.wxs +0 -42
- package/lib/image/index.wxss +0 -1
- package/lib/index-anchor/index.css +0 -1
- package/lib/index-anchor/index.d.ts +0 -1
- package/lib/index-anchor/index.js +0 -28
- package/lib/index-anchor/index.json +0 -3
- package/lib/index-anchor/index.wxml +0 -14
- package/lib/index-anchor/index.wxss +0 -1
- package/lib/index-bar/index.css +0 -1
- package/lib/index-bar/index.d.ts +0 -1
- package/lib/index-bar/index.js +0 -244
- package/lib/index-bar/index.json +0 -3
- package/lib/index-bar/index.wxml +0 -22
- package/lib/index-bar/index.wxss +0 -1
- package/lib/info/index.css +0 -1
- package/lib/info/index.d.ts +0 -1
- package/lib/info/index.js +0 -10
- package/lib/info/index.json +0 -3
- package/lib/info/index.wxml +0 -7
- package/lib/info/index.wxss +0 -1
- package/lib/loading/index.css +0 -1
- package/lib/loading/index.d.ts +0 -1
- package/lib/loading/index.js +0 -44
- package/lib/loading/index.json +0 -3
- package/lib/loading/index.wxml +0 -17
- package/lib/loading/index.wxs +0 -38
- package/lib/loading/index.wxss +0 -1
- package/lib/mixins/basic.d.ts +0 -1
- package/lib/mixins/basic.js +0 -30
- package/lib/mixins/button.d.ts +0 -1
- package/lib/mixins/button.js +0 -54
- package/lib/mixins/link.d.ts +0 -1
- package/lib/mixins/link.js +0 -26
- package/lib/mixins/page-scroll.d.ts +0 -6
- package/lib/mixins/page-scroll.js +0 -47
- package/lib/mixins/touch.d.ts +0 -1
- package/lib/mixins/touch.js +0 -39
- package/lib/mixins/transition.d.ts +0 -1
- package/lib/mixins/transition.js +0 -235
- package/lib/nav-bar/index.css +0 -1
- package/lib/nav-bar/index.d.ts +0 -1
- package/lib/nav-bar/index.js +0 -116
- package/lib/nav-bar/index.json +0 -6
- package/lib/nav-bar/index.wxml +0 -70
- package/lib/nav-bar/index.wxs +0 -14
- package/lib/nav-bar/index.wxss +0 -1
- package/lib/normal-slider/index.css +0 -1
- package/lib/normal-slider/index.d.ts +0 -1
- package/lib/normal-slider/index.js +0 -160
- package/lib/normal-slider/index.json +0 -6
- package/lib/normal-slider/index.wxml +0 -35
- package/lib/normal-slider/index.wxss +0 -1
- package/lib/notice-bar/index.css +0 -1
- package/lib/notice-bar/index.d.ts +0 -1
- package/lib/notice-bar/index.js +0 -178
- package/lib/notice-bar/index.json +0 -6
- package/lib/notice-bar/index.wxml +0 -52
- package/lib/notice-bar/index.wxs +0 -11
- package/lib/notice-bar/index.wxss +0 -1
- package/lib/notify/index.css +0 -1
- package/lib/notify/index.d.ts +0 -1
- package/lib/notify/index.js +0 -80
- package/lib/notify/index.json +0 -6
- package/lib/notify/index.wxml +0 -22
- package/lib/notify/index.wxs +0 -22
- package/lib/notify/index.wxss +0 -1
- package/lib/notify/notify.d.ts +0 -29
- package/lib/notify/notify.js +0 -72
- package/lib/overlay/index.css +0 -1
- package/lib/overlay/index.d.ts +0 -1
- package/lib/overlay/index.js +0 -32
- package/lib/overlay/index.json +0 -6
- package/lib/overlay/index.wxml +0 -7
- package/lib/overlay/index.wxss +0 -1
- package/lib/overlay/overlay.wxml +0 -10
- package/lib/picker/index.css +0 -1
- package/lib/picker/index.d.ts +0 -1
- package/lib/picker/index.js +0 -184
- package/lib/picker/index.json +0 -7
- package/lib/picker/index.wxml +0 -47
- package/lib/picker/index.wxs +0 -44
- package/lib/picker/index.wxss +0 -1
- package/lib/picker/shared.d.ts +0 -33
- package/lib/picker/shared.js +0 -36
- package/lib/picker/toolbar.wxml +0 -23
- package/lib/picker-column/index.css +0 -1
- package/lib/picker-column/index.d.ts +0 -1
- package/lib/picker-column/index.js +0 -443
- package/lib/picker-column/index.json +0 -3
- package/lib/picker-column/index.wxml +0 -43
- package/lib/picker-column/index.wxs +0 -79
- package/lib/picker-column/index.wxss +0 -1
- package/lib/popover/index.css +0 -1
- package/lib/popover/index.d.ts +0 -1
- package/lib/popover/index.js +0 -220
- package/lib/popover/index.json +0 -7
- package/lib/popover/index.wxml +0 -31
- package/lib/popover/index.wxss +0 -1
- package/lib/popup/index.css +0 -1
- package/lib/popup/index.d.ts +0 -1
- package/lib/popup/index.js +0 -122
- package/lib/popup/index.json +0 -7
- package/lib/popup/index.wxml +0 -21
- package/lib/popup/index.wxs +0 -23
- package/lib/popup/index.wxss +0 -1
- package/lib/popup/popup.wxml +0 -16
- package/lib/progress/index.css +0 -1
- package/lib/progress/index.d.ts +0 -1
- package/lib/progress/index.js +0 -52
- package/lib/progress/index.json +0 -3
- package/lib/progress/index.wxml +0 -20
- package/lib/progress/index.wxs +0 -36
- package/lib/progress/index.wxss +0 -1
- package/lib/radio/index.css +0 -1
- package/lib/radio/index.d.ts +0 -1
- package/lib/radio/index.js +0 -75
- package/lib/radio/index.json +0 -6
- package/lib/radio/index.wxml +0 -32
- package/lib/radio/index.wxs +0 -33
- package/lib/radio/index.wxss +0 -1
- package/lib/radio-group/index.css +0 -1
- package/lib/radio-group/index.d.ts +0 -1
- package/lib/radio-group/index.js +0 -29
- package/lib/radio-group/index.json +0 -3
- package/lib/radio-group/index.wxml +0 -5
- package/lib/radio-group/index.wxss +0 -1
- package/lib/rate/index.css +0 -1
- package/lib/rate/index.d.ts +0 -1
- package/lib/rate/index.js +0 -107
- package/lib/rate/index.json +0 -6
- package/lib/rate/index.wxml +0 -35
- package/lib/rate/index.wxss +0 -1
- package/lib/row/index.css +0 -1
- package/lib/row/index.d.ts +0 -1
- package/lib/row/index.js +0 -26
- package/lib/row/index.json +0 -3
- package/lib/row/index.wxml +0 -5
- package/lib/row/index.wxs +0 -18
- package/lib/row/index.wxss +0 -1
- package/lib/search/index.css +0 -1
- package/lib/search/index.d.ts +0 -1
- package/lib/search/index.js +0 -106
- package/lib/search/index.json +0 -7
- package/lib/search/index.wxml +0 -57
- package/lib/search/index.wxss +0 -1
- package/lib/sidebar/index.css +0 -1
- package/lib/sidebar/index.d.ts +0 -1
- package/lib/sidebar/index.js +0 -36
- package/lib/sidebar/index.json +0 -3
- package/lib/sidebar/index.wxml +0 -3
- package/lib/sidebar/index.wxss +0 -1
- package/lib/sidebar-item/index.css +0 -1
- package/lib/sidebar-item/index.d.ts +0 -1
- package/lib/sidebar-item/index.js +0 -32
- package/lib/sidebar-item/index.json +0 -6
- package/lib/sidebar-item/index.wxml +0 -18
- package/lib/sidebar-item/index.wxss +0 -1
- package/lib/skeleton/index.css +0 -1
- package/lib/skeleton/index.d.ts +0 -1
- package/lib/skeleton/index.js +0 -48
- package/lib/skeleton/index.json +0 -4
- package/lib/skeleton/index.wxml +0 -29
- package/lib/skeleton/index.wxss +0 -1
- package/lib/slider/index.css +0 -1
- package/lib/slider/index.d.ts +0 -1
- package/lib/slider/index.js +0 -208
- package/lib/slider/index.json +0 -3
- package/lib/slider/index.wxml +0 -68
- package/lib/slider/index.wxs +0 -14
- package/lib/slider/index.wxss +0 -1
- package/lib/stepper/index.css +0 -1
- package/lib/stepper/index.d.ts +0 -1
- package/lib/stepper/index.js +0 -225
- package/lib/stepper/index.json +0 -6
- package/lib/stepper/index.wxml +0 -45
- package/lib/stepper/index.wxs +0 -32
- package/lib/stepper/index.wxss +0 -1
- package/lib/steps/index.css +0 -1
- package/lib/steps/index.d.ts +0 -1
- package/lib/steps/index.js +0 -39
- package/lib/steps/index.json +0 -6
- package/lib/steps/index.wxml +0 -54
- package/lib/steps/index.wxss +0 -1
- package/lib/sticky/index.css +0 -1
- package/lib/sticky/index.d.ts +0 -1
- package/lib/sticky/index.js +0 -128
- package/lib/sticky/index.json +0 -3
- package/lib/sticky/index.wxml +0 -8
- package/lib/sticky/index.wxs +0 -25
- package/lib/sticky/index.wxss +0 -1
- package/lib/swipe-cell/index.css +0 -1
- package/lib/swipe-cell/index.d.ts +0 -1
- package/lib/swipe-cell/index.js +0 -142
- package/lib/swipe-cell/index.json +0 -3
- package/lib/swipe-cell/index.wxml +0 -21
- package/lib/swipe-cell/index.wxss +0 -1
- package/lib/switch/index.css +0 -1
- package/lib/switch/index.d.ts +0 -1
- package/lib/switch/index.js +0 -42
- package/lib/switch/index.json +0 -6
- package/lib/switch/index.wxml +0 -39
- package/lib/switch/index.wxs +0 -26
- package/lib/switch/index.wxss +0 -1
- package/lib/tab/index.css +0 -1
- package/lib/tab/index.d.ts +0 -1
- package/lib/tab/index.js +0 -66
- package/lib/tab/index.json +0 -3
- package/lib/tab/index.wxml +0 -8
- package/lib/tab/index.wxss +0 -1
- package/lib/tabbar/index.css +0 -1
- package/lib/tabbar/index.d.ts +0 -1
- package/lib/tabbar/index.js +0 -73
- package/lib/tabbar/index.json +0 -3
- package/lib/tabbar/index.wxml +0 -12
- package/lib/tabbar/index.wxss +0 -1
- package/lib/tabbar-item/index.css +0 -1
- package/lib/tabbar-item/index.d.ts +0 -1
- package/lib/tabbar-item/index.js +0 -79
- package/lib/tabbar-item/index.json +0 -7
- package/lib/tabbar-item/index.wxml +0 -32
- package/lib/tabbar-item/index.wxss +0 -1
- package/lib/tabs/index.css +0 -1
- package/lib/tabs/index.d.ts +0 -1
- package/lib/tabs/index.js +0 -329
- package/lib/tabs/index.json +0 -7
- package/lib/tabs/index.wxml +0 -67
- package/lib/tabs/index.wxs +0 -99
- package/lib/tabs/index.wxss +0 -1
- package/lib/tag/index.css +0 -1
- package/lib/tag/index.d.ts +0 -1
- package/lib/tag/index.js +0 -34
- package/lib/tag/index.json +0 -6
- package/lib/tag/index.wxml +0 -17
- package/lib/tag/index.wxs +0 -13
- package/lib/tag/index.wxss +0 -1
- package/lib/toast/icons.d.ts +0 -3
- package/lib/toast/icons.js +0 -12
- package/lib/toast/index.css +0 -1
- package/lib/toast/index.d.ts +0 -1
- package/lib/toast/index.js +0 -63
- package/lib/toast/index.json +0 -9
- package/lib/toast/index.wxml +0 -33
- package/lib/toast/index.wxss +0 -1
- package/lib/toast/toast.d.ts +0 -35
- package/lib/toast/toast.js +0 -116
- package/lib/transition/index.css +0 -1
- package/lib/transition/index.d.ts +0 -1
- package/lib/transition/index.js +0 -15
- package/lib/transition/index.json +0 -3
- package/lib/transition/index.wxml +0 -9
- package/lib/transition/index.wxs +0 -17
- package/lib/transition/index.wxss +0 -1
- package/lib/tree-select/index.css +0 -1
- package/lib/tree-select/index.d.ts +0 -1
- package/lib/tree-select/index.js +0 -74
- package/lib/tree-select/index.json +0 -8
- package/lib/tree-select/index.wxml +0 -41
- package/lib/tree-select/index.wxs +0 -12
- package/lib/tree-select/index.wxss +0 -1
- package/lib/wxs/add-unit.wxs +0 -12
- package/lib/wxs/array.wxs +0 -5
- package/lib/wxs/bem.wxs +0 -39
- package/lib/wxs/memoize.wxs +0 -55
- package/lib/wxs/object.wxs +0 -13
- package/lib/wxs/style.wxs +0 -46
- package/lib/wxs/utils.wxs +0 -10
package/lib/sidebar/index.js
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var component_1 = require("../common/component");
|
4
|
-
var relation_1 = require("../common/relation");
|
5
|
-
(0, component_1.SmartComponent)({
|
6
|
-
relation: (0, relation_1.useChildren)('sidebar-item', function () {
|
7
|
-
this.setActive(this.data.activeKey);
|
8
|
-
}),
|
9
|
-
props: {
|
10
|
-
activeKey: {
|
11
|
-
type: Number,
|
12
|
-
value: 0,
|
13
|
-
observer: 'setActive',
|
14
|
-
},
|
15
|
-
},
|
16
|
-
beforeCreate: function () {
|
17
|
-
this.currentActive = -1;
|
18
|
-
},
|
19
|
-
methods: {
|
20
|
-
setActive: function (activeKey) {
|
21
|
-
var _a = this, children = _a.children, currentActive = _a.currentActive;
|
22
|
-
if (!children.length) {
|
23
|
-
return Promise.resolve();
|
24
|
-
}
|
25
|
-
this.currentActive = activeKey;
|
26
|
-
var stack = [];
|
27
|
-
if (currentActive !== activeKey && children[currentActive]) {
|
28
|
-
stack.push(children[currentActive].setActive(false));
|
29
|
-
}
|
30
|
-
if (children[activeKey]) {
|
31
|
-
stack.push(children[activeKey].setActive(true));
|
32
|
-
}
|
33
|
-
return Promise.all(stack);
|
34
|
-
},
|
35
|
-
},
|
36
|
-
});
|
package/lib/sidebar/index.json
DELETED
package/lib/sidebar/index.wxml
DELETED
package/lib/sidebar/index.wxss
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-sidebar{width:var(--sidebar-width,80px)}
|
@@ -1 +0,0 @@
|
|
1
|
-
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-sidebar-item{background-color:var(--sidebar-background-color,var(--app-B1,#f6f7fb));border-left:3px solid transparent;box-sizing:border-box;color:var(--sidebar-text-color,var(--app-B6-N1,#000));display:block;font-size:var(--sidebar-font-size,14px);line-height:var(--sidebar-line-height,20px);overflow:hidden;padding:var(--sidebar-padding,20px 12px 20px 8px);-webkit-user-select:none;user-select:none}.smart-sidebar-item__text{display:inline-block;position:relative;word-break:break-all}.smart-sidebar-item--hover:not(.smart-sidebar-item--disabled){background-color:var(--sidebar-active-color,var(--app-B6,#fff))}.smart-sidebar-item:after{border-bottom-width:1px}.smart-sidebar-item--selected{border-color:var(--sidebar-selected-border-color,#ee0a24);color:var(--sidebar-selected-text-color,var(--app-B6-N1,#000));font-weight:var(--sidebar-selected-font-weight,500)}.smart-sidebar-item--selected:after{border-right-width:1px}.smart-sidebar-item--selected,.smart-sidebar-item--selected.smart-sidebar-item--hover{background-color:var(--sidebar-selected-background-color,var(--app-B6,#fff))}.smart-sidebar-item--disabled{color:var(--sidebar-disabled-text-color,var(--app-B6-N5,rgba(0,0,0,.3)))}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,32 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var component_1 = require("../common/component");
|
4
|
-
var relation_1 = require("../common/relation");
|
5
|
-
(0, component_1.SmartComponent)({
|
6
|
-
classes: ['active-class', 'disabled-class'],
|
7
|
-
relation: (0, relation_1.useParent)('sidebar'),
|
8
|
-
props: {
|
9
|
-
dot: Boolean,
|
10
|
-
badge: null,
|
11
|
-
info: null,
|
12
|
-
title: String,
|
13
|
-
disabled: Boolean,
|
14
|
-
},
|
15
|
-
methods: {
|
16
|
-
onClick: function () {
|
17
|
-
var _this = this;
|
18
|
-
var parent = this.parent;
|
19
|
-
if (!parent || this.data.disabled) {
|
20
|
-
return;
|
21
|
-
}
|
22
|
-
var index = parent.children.indexOf(this);
|
23
|
-
parent.setActive(index).then(function () {
|
24
|
-
_this.$emit('click', index);
|
25
|
-
parent.$emit('change', index);
|
26
|
-
});
|
27
|
-
},
|
28
|
-
setActive: function (selected) {
|
29
|
-
return this.setData({ selected: selected });
|
30
|
-
},
|
31
|
-
},
|
32
|
-
});
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
|
-
|
3
|
-
<view
|
4
|
-
class="{{ utils.bem('sidebar-item', { selected, disabled }) }} {{ selected ? 'active-class' : '' }} {{ disabled ? 'disabled-class' : '' }} custom-class"
|
5
|
-
hover-class="smart-sidebar-item--hover"
|
6
|
-
hover-stay-time="70"
|
7
|
-
bind:tap="onClick"
|
8
|
-
>
|
9
|
-
<view class="smart-sidebar-item__text">
|
10
|
-
<smart-info
|
11
|
-
wx:if="{{ badge != null || info !== null || dot }}"
|
12
|
-
dot="{{ dot }}"
|
13
|
-
info="{{ badge != null ? badge : info }}"
|
14
|
-
/>
|
15
|
-
<view wx:if="{{ title }}">{{ title }}</view>
|
16
|
-
<slot wx:else name="title" />
|
17
|
-
</view>
|
18
|
-
</view>
|
@@ -1 +0,0 @@
|
|
1
|
-
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-sidebar-item{background-color:var(--sidebar-background-color,var(--app-B1,#f6f7fb));border-left:3px solid transparent;box-sizing:border-box;color:var(--sidebar-text-color,var(--app-B6-N1,#000));display:block;font-size:var(--sidebar-font-size,14px);line-height:var(--sidebar-line-height,20px);overflow:hidden;padding:var(--sidebar-padding,20px 12px 20px 8px);-webkit-user-select:none;user-select:none}.smart-sidebar-item__text{display:inline-block;position:relative;word-break:break-all}.smart-sidebar-item--hover:not(.smart-sidebar-item--disabled){background-color:var(--sidebar-active-color,var(--app-B6,#fff))}.smart-sidebar-item:after{border-bottom-width:1px}.smart-sidebar-item--selected{border-color:var(--sidebar-selected-border-color,#ee0a24);color:var(--sidebar-selected-text-color,var(--app-B6-N1,#000));font-weight:var(--sidebar-selected-font-weight,500)}.smart-sidebar-item--selected:after{border-right-width:1px}.smart-sidebar-item--selected,.smart-sidebar-item--selected.smart-sidebar-item--hover{background-color:var(--sidebar-selected-background-color,var(--app-B6,#fff))}.smart-sidebar-item--disabled{color:var(--sidebar-disabled-text-color,var(--app-B6-N5,rgba(0,0,0,.3)))}
|
package/lib/skeleton/index.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-skeleton{box-sizing:border-box;display:flex;padding:var(--skeleton-padding,0 16px);width:100%}.smart-skeleton__avatar{background-color:var(--skeleton-avatar-background-color,var(--app-B3,#fff));flex-shrink:0;margin-right:var(--padding-md,16px)}.smart-skeleton__avatar--round{border-radius:100%}.smart-skeleton__content{flex:1}.smart-skeleton__avatar+.smart-skeleton__content{padding-top:var(--padding-xs,8px)}.smart-skeleton__row,.smart-skeleton__title{background-color:var(--skeleton-row-background-color,var(--app-B3,#fff));height:var(--skeleton-row-height,16px)}.smart-skeleton__title{margin:0}.smart-skeleton__row:not(:first-child){margin-top:var(--skeleton-row-margin-top,12px)}.smart-skeleton__title+.smart-skeleton__row{margin-top:20px}.smart-skeleton--animate{animation:smart-skeleton-blink 1.2s ease-in-out infinite}@keyframes smart-skeleton-blink{0%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}
|
package/lib/skeleton/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/lib/skeleton/index.js
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var component_1 = require("../common/component");
|
4
|
-
(0, component_1.SmartComponent)({
|
5
|
-
classes: ['avatar-class', 'title-class', 'row-class'],
|
6
|
-
props: {
|
7
|
-
row: {
|
8
|
-
type: Number,
|
9
|
-
value: 0,
|
10
|
-
observer: function (value) {
|
11
|
-
this.setData({ rowArray: Array.from({ length: value }) });
|
12
|
-
},
|
13
|
-
},
|
14
|
-
title: Boolean,
|
15
|
-
avatar: Boolean,
|
16
|
-
loading: {
|
17
|
-
type: Boolean,
|
18
|
-
value: true,
|
19
|
-
},
|
20
|
-
animate: {
|
21
|
-
type: Boolean,
|
22
|
-
value: true,
|
23
|
-
},
|
24
|
-
avatarSize: {
|
25
|
-
type: String,
|
26
|
-
value: '32px',
|
27
|
-
},
|
28
|
-
avatarShape: {
|
29
|
-
type: String,
|
30
|
-
value: 'round',
|
31
|
-
},
|
32
|
-
titleWidth: {
|
33
|
-
type: String,
|
34
|
-
value: '40%',
|
35
|
-
},
|
36
|
-
rowWidth: {
|
37
|
-
type: null,
|
38
|
-
value: '100%',
|
39
|
-
observer: function (val) {
|
40
|
-
this.setData({ isArray: val instanceof Array });
|
41
|
-
},
|
42
|
-
},
|
43
|
-
},
|
44
|
-
data: {
|
45
|
-
isArray: false,
|
46
|
-
rowArray: [],
|
47
|
-
},
|
48
|
-
});
|
package/lib/skeleton/index.json
DELETED
package/lib/skeleton/index.wxml
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
|
-
|
3
|
-
<view
|
4
|
-
wx:if="{{ loading }}"
|
5
|
-
class="custom-class {{ utils.bem('skeleton', [{animate}]) }}"
|
6
|
-
>
|
7
|
-
<view
|
8
|
-
wx:if="{{ avatar }}"
|
9
|
-
class="avatar-class {{ utils.bem('skeleton__avatar', [avatarShape])}}"
|
10
|
-
style="{{ 'width:' + avatarSize + ';height:' + avatarSize }}"
|
11
|
-
/>
|
12
|
-
<view class="{{ utils.bem('skeleton__content')}}">
|
13
|
-
<view
|
14
|
-
wx:if="{{ title }}"
|
15
|
-
class="title-class {{ utils.bem('skeleton__title') }}"
|
16
|
-
style="{{ 'width:' + titleWidth }}"
|
17
|
-
/>
|
18
|
-
<view
|
19
|
-
wx:for="{{ rowArray }}"
|
20
|
-
wx:key="index"
|
21
|
-
wx:for-index="index"
|
22
|
-
class="row-class {{ utils.bem('skeleton__row') }}"
|
23
|
-
style="{{ 'width:' + (isArray ? rowWidth[index] : rowWidth) }}"
|
24
|
-
/>
|
25
|
-
</view>
|
26
|
-
</view>
|
27
|
-
<view wx:else class="{{ utils.bem('skeleton__content')}}">
|
28
|
-
<slot />
|
29
|
-
</view>
|
package/lib/skeleton/index.wxss
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-skeleton{box-sizing:border-box;display:flex;padding:var(--skeleton-padding,0 16px);width:100%}.smart-skeleton__avatar{background-color:var(--skeleton-avatar-background-color,var(--app-B3,#fff));flex-shrink:0;margin-right:var(--padding-md,16px)}.smart-skeleton__avatar--round{border-radius:100%}.smart-skeleton__content{flex:1}.smart-skeleton__avatar+.smart-skeleton__content{padding-top:var(--padding-xs,8px)}.smart-skeleton__row,.smart-skeleton__title{background-color:var(--skeleton-row-background-color,var(--app-B3,#fff));height:var(--skeleton-row-height,16px)}.smart-skeleton__title{margin:0}.smart-skeleton__row:not(:first-child){margin-top:var(--skeleton-row-margin-top,12px)}.smart-skeleton__title+.smart-skeleton__row{margin-top:20px}.smart-skeleton--animate{animation:smart-skeleton-blink 1.2s ease-in-out infinite}@keyframes smart-skeleton-blink{0%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}
|
package/lib/slider/index.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-slider{background-color:var(--slider-inactive-background-color,#ebedf0);border-radius:999px;height:var(--slider-bar-height,2px);position:relative}.smart-slider:before{bottom:calc(var(--padding-xs, 8px)*-1);content:"";left:0;position:absolute;right:0;top:calc(var(--padding-xs, 8px)*-1)}.smart-slider__bar{background-color:var(--slider-active-background-color,#1989fa);border-radius:inherit;height:100%;position:relative;transition:all .2s;width:100%}.smart-slider__button{background-color:var(--slider-button-background-color,#fff);border-radius:var(--slider-button-border-radius,50%);box-shadow:var(--slider-button-box-shadow,0 1px 2px rgba(0,0,0,.5));height:var(--slider-button-height,24px);width:var(--slider-button-width,24px)}.smart-slider__button-wrapper,.smart-slider__button-wrapper-right{position:absolute;right:0;top:50%;transform:translate3d(50%,-50%,0)}.smart-slider__button-wrapper-left{left:0;position:absolute;top:50%;transform:translate3d(-50%,-50%,0)}.smart-slider--disabled{opacity:var(--slider-disabled-opacity,.3)}.smart-slider--vertical{display:inline-block;height:100%;width:var(--slider-bar-height,2px)}.smart-slider--vertical .smart-slider__button-wrapper,.smart-slider--vertical .smart-slider__button-wrapper-right{bottom:0;right:50%;top:auto;transform:translate3d(50%,50%,0)}.smart-slider--vertical .smart-slider__button-wrapper-left{left:auto;right:50%;top:0;transform:translate3d(50%,-50%,0)}.smart-slider--vertical:before{bottom:0;left:-8px;right:-8px;top:0}
|
package/lib/slider/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/lib/slider/index.js
DELETED
@@ -1,208 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var component_1 = require("../common/component");
|
4
|
-
var touch_1 = require("../mixins/touch");
|
5
|
-
var version_1 = require("../common/version");
|
6
|
-
var utils_1 = require("../common/utils");
|
7
|
-
var DRAG_STATUS = {
|
8
|
-
START: 'start',
|
9
|
-
MOVING: 'moving',
|
10
|
-
END: 'end',
|
11
|
-
};
|
12
|
-
(0, component_1.SmartComponent)({
|
13
|
-
mixins: [touch_1.touch],
|
14
|
-
props: {
|
15
|
-
range: {
|
16
|
-
type: Boolean,
|
17
|
-
value: true,
|
18
|
-
},
|
19
|
-
disabled: Boolean,
|
20
|
-
useButtonSlot: Boolean,
|
21
|
-
activeColor: String,
|
22
|
-
inActiveColor: String,
|
23
|
-
inactiveColor: String,
|
24
|
-
max: {
|
25
|
-
type: Number,
|
26
|
-
value: 100,
|
27
|
-
},
|
28
|
-
min: {
|
29
|
-
type: Number,
|
30
|
-
value: 0,
|
31
|
-
},
|
32
|
-
step: {
|
33
|
-
type: Number,
|
34
|
-
value: 1,
|
35
|
-
},
|
36
|
-
value: {
|
37
|
-
type: null,
|
38
|
-
value: 0,
|
39
|
-
observer: function (val) {
|
40
|
-
if (val !== this.value) {
|
41
|
-
this.updateValue(val);
|
42
|
-
}
|
43
|
-
},
|
44
|
-
},
|
45
|
-
vertical: Boolean,
|
46
|
-
barHeight: null,
|
47
|
-
},
|
48
|
-
created: function () {
|
49
|
-
this.updateValue(this.data.value);
|
50
|
-
},
|
51
|
-
methods: {
|
52
|
-
onTouchStart: function (event) {
|
53
|
-
var _this = this;
|
54
|
-
if (this.data.disabled)
|
55
|
-
return;
|
56
|
-
var index = event.currentTarget.dataset.index;
|
57
|
-
if (typeof index === 'number') {
|
58
|
-
this.buttonIndex = index;
|
59
|
-
}
|
60
|
-
this.touchStart(event);
|
61
|
-
this.startValue = this.format(this.value);
|
62
|
-
this.newValue = this.value;
|
63
|
-
if (this.isRange(this.newValue)) {
|
64
|
-
this.startValue = this.newValue.map(function (val) { return _this.format(val); });
|
65
|
-
}
|
66
|
-
else {
|
67
|
-
this.startValue = this.format(this.newValue);
|
68
|
-
}
|
69
|
-
this.dragStatus = DRAG_STATUS.START;
|
70
|
-
},
|
71
|
-
onTouchMove: function (event) {
|
72
|
-
var _this = this;
|
73
|
-
if (this.data.disabled)
|
74
|
-
return;
|
75
|
-
if (this.dragStatus === DRAG_STATUS.START) {
|
76
|
-
this.$emit('drag-start');
|
77
|
-
}
|
78
|
-
this.touchMove(event);
|
79
|
-
this.dragStatus = DRAG_STATUS.MOVING;
|
80
|
-
(0, utils_1.getRect)(this, '.smart-slider').then(function (rect) {
|
81
|
-
var vertical = _this.data.vertical;
|
82
|
-
var delta = vertical ? _this.deltaY : _this.deltaX;
|
83
|
-
var total = vertical ? rect.height : rect.width;
|
84
|
-
var diff = (delta / total) * _this.getRange();
|
85
|
-
if (_this.isRange(_this.startValue)) {
|
86
|
-
_this.newValue[_this.buttonIndex] =
|
87
|
-
_this.startValue[_this.buttonIndex] + diff;
|
88
|
-
}
|
89
|
-
else {
|
90
|
-
_this.newValue = _this.startValue + diff;
|
91
|
-
}
|
92
|
-
_this.updateValue(_this.newValue, false, true);
|
93
|
-
});
|
94
|
-
},
|
95
|
-
onTouchEnd: function () {
|
96
|
-
var _this = this;
|
97
|
-
if (this.data.disabled)
|
98
|
-
return;
|
99
|
-
if (this.dragStatus === DRAG_STATUS.MOVING) {
|
100
|
-
this.dragStatus = DRAG_STATUS.END;
|
101
|
-
(0, utils_1.nextTick)(function () {
|
102
|
-
_this.updateValue(_this.newValue, true);
|
103
|
-
_this.$emit('drag-end');
|
104
|
-
});
|
105
|
-
}
|
106
|
-
},
|
107
|
-
onClick: function (event) {
|
108
|
-
var _this = this;
|
109
|
-
if (this.data.disabled)
|
110
|
-
return;
|
111
|
-
var min = this.data.min;
|
112
|
-
(0, utils_1.getRect)(this, '.smart-slider').then(function (rect) {
|
113
|
-
var vertical = _this.data.vertical;
|
114
|
-
var touch = event.touches[0];
|
115
|
-
var delta = vertical ? touch.clientY - rect.top : touch.clientX - rect.left;
|
116
|
-
var total = vertical ? rect.height : rect.width;
|
117
|
-
var value = Number(min) + (delta / total) * _this.getRange();
|
118
|
-
if (_this.isRange(_this.value)) {
|
119
|
-
var _a = _this.value, left = _a[0], right = _a[1];
|
120
|
-
var middle = (left + right) / 2;
|
121
|
-
if (value <= middle) {
|
122
|
-
_this.updateValue([value, right], true);
|
123
|
-
}
|
124
|
-
else {
|
125
|
-
_this.updateValue([left, value], true);
|
126
|
-
}
|
127
|
-
}
|
128
|
-
else {
|
129
|
-
_this.updateValue(value, true);
|
130
|
-
}
|
131
|
-
});
|
132
|
-
},
|
133
|
-
isRange: function (val) {
|
134
|
-
var range = this.data.range;
|
135
|
-
return range && Array.isArray(val);
|
136
|
-
},
|
137
|
-
handleOverlap: function (value) {
|
138
|
-
if (value[0] > value[1]) {
|
139
|
-
return value.slice(0).reverse();
|
140
|
-
}
|
141
|
-
return value;
|
142
|
-
},
|
143
|
-
updateValue: function (value, end, drag) {
|
144
|
-
var _this = this;
|
145
|
-
if (this.isRange(value)) {
|
146
|
-
value = this.handleOverlap(value).map(function (val) { return _this.format(val); });
|
147
|
-
}
|
148
|
-
else {
|
149
|
-
value = this.format(value);
|
150
|
-
}
|
151
|
-
this.value = value;
|
152
|
-
var vertical = this.data.vertical;
|
153
|
-
var mainAxis = vertical ? 'height' : 'width';
|
154
|
-
this.setData({
|
155
|
-
wrapperStyle: "\n background: ".concat(this.data.inactiveColor || this.data.inActiveColor || '', ";\n ").concat(vertical ? 'width' : 'height', ": ").concat((0, utils_1.addUnit)(this.data.barHeight) || '', ";\n "),
|
156
|
-
barStyle: "\n ".concat(mainAxis, ": ").concat(this.calcMainAxis(), ";\n left: ").concat(vertical ? 0 : this.calcOffset(), ";\n top: ").concat(vertical ? this.calcOffset() : 0, ";\n ").concat(drag ? 'transition: none;' : '', "\n "),
|
157
|
-
});
|
158
|
-
if (drag) {
|
159
|
-
this.$emit('drag', { value: value });
|
160
|
-
}
|
161
|
-
if (end) {
|
162
|
-
this.$emit('change', value);
|
163
|
-
}
|
164
|
-
if ((drag || end) && (0, version_1.canIUseModel)()) {
|
165
|
-
this.setData({ value: value });
|
166
|
-
}
|
167
|
-
},
|
168
|
-
getScope: function () {
|
169
|
-
return Number(this.data.max) - Number(this.data.min);
|
170
|
-
},
|
171
|
-
getRange: function () {
|
172
|
-
var _a = this.data, max = _a.max, min = _a.min;
|
173
|
-
return max - min;
|
174
|
-
},
|
175
|
-
getOffsetWidth: function (current, min) {
|
176
|
-
var scope = this.getScope();
|
177
|
-
// 避免最小值小于最小step时出现负数情况
|
178
|
-
return "".concat(Math.max(((current - min) * 100) / scope, 0), "%");
|
179
|
-
},
|
180
|
-
// 计算选中条的长度百分比
|
181
|
-
calcMainAxis: function () {
|
182
|
-
var value = this.value;
|
183
|
-
var min = this.data.min;
|
184
|
-
if (this.isRange(value)) {
|
185
|
-
return this.getOffsetWidth(value[1], value[0]);
|
186
|
-
}
|
187
|
-
return this.getOffsetWidth(value, Number(min));
|
188
|
-
},
|
189
|
-
// 计算选中条的开始位置的偏移量
|
190
|
-
calcOffset: function () {
|
191
|
-
var value = this.value;
|
192
|
-
var min = this.data.min;
|
193
|
-
var scope = this.getScope();
|
194
|
-
if (this.isRange(value)) {
|
195
|
-
return "".concat(((value[0] - Number(min)) * 100) / scope, "%");
|
196
|
-
}
|
197
|
-
return '0%';
|
198
|
-
},
|
199
|
-
format: function (value) {
|
200
|
-
var min = +this.data.min;
|
201
|
-
var max = +this.data.max;
|
202
|
-
var step = +this.data.step;
|
203
|
-
value = (0, utils_1.clamp)(value, min, max);
|
204
|
-
var diff = Math.round((value - min) / step) * step;
|
205
|
-
return (0, utils_1.addNumber)(min, diff);
|
206
|
-
},
|
207
|
-
},
|
208
|
-
});
|
package/lib/slider/index.json
DELETED
package/lib/slider/index.wxml
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
|
-
<wxs src="../wxs/style.wxs" module="style" />
|
3
|
-
|
4
|
-
<view
|
5
|
-
class="custom-class {{ utils.bem('slider', { disabled, vertical }) }}"
|
6
|
-
style="{{ wrapperStyle }}"
|
7
|
-
bind:tap="onClick"
|
8
|
-
>
|
9
|
-
<view
|
10
|
-
class="{{ utils.bem('slider__bar') }}"
|
11
|
-
style="{{ barStyle }}; {{ style({ backgroundColor: activeColor }) }}"
|
12
|
-
>
|
13
|
-
<view
|
14
|
-
wx:if="{{ range }}"
|
15
|
-
class="{{ utils.bem('slider__button-wrapper-left') }}"
|
16
|
-
data-index="{{ 0 }}"
|
17
|
-
bind:touchstart="onTouchStart"
|
18
|
-
catch:touchmove="onTouchMove"
|
19
|
-
bind:touchend="onTouchEnd"
|
20
|
-
bind:touchcancel="onTouchEnd"
|
21
|
-
>
|
22
|
-
<slot
|
23
|
-
wx:if="{{ useButtonSlot }}"
|
24
|
-
name="left-button"
|
25
|
-
/>
|
26
|
-
<view
|
27
|
-
wx:else
|
28
|
-
class="{{ utils.bem('slider__button') }}"
|
29
|
-
/>
|
30
|
-
</view>
|
31
|
-
<view
|
32
|
-
wx:if="{{ range }}"
|
33
|
-
class="{{ utils.bem('slider__button-wrapper-right') }}"
|
34
|
-
data-index="{{ 1 }}"
|
35
|
-
bind:touchstart="onTouchStart"
|
36
|
-
catch:touchmove="onTouchMove"
|
37
|
-
bind:touchend="onTouchEnd"
|
38
|
-
bind:touchcancel="onTouchEnd"
|
39
|
-
>
|
40
|
-
<slot
|
41
|
-
wx:if="{{ useButtonSlot }}"
|
42
|
-
name="right-button"
|
43
|
-
/>
|
44
|
-
<view
|
45
|
-
wx:else
|
46
|
-
class="{{ utils.bem('slider__button') }}"
|
47
|
-
/>
|
48
|
-
</view>
|
49
|
-
|
50
|
-
<view
|
51
|
-
wx:if="{{ !range }}"
|
52
|
-
class="{{ utils.bem('slider__button-wrapper') }}"
|
53
|
-
bind:touchstart="onTouchStart"
|
54
|
-
catch:touchmove="onTouchMove"
|
55
|
-
bind:touchend="onTouchEnd"
|
56
|
-
bind:touchcancel="onTouchEnd"
|
57
|
-
>
|
58
|
-
<slot
|
59
|
-
wx:if="{{ useButtonSlot }}"
|
60
|
-
name="button"
|
61
|
-
/>
|
62
|
-
<view
|
63
|
-
wx:else
|
64
|
-
class="{{ utils.bem('slider__button') }}"
|
65
|
-
/>
|
66
|
-
</view>
|
67
|
-
</view>
|
68
|
-
</view>
|
package/lib/slider/index.wxs
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
/* eslint-disable */
|
2
|
-
var style = require('../wxs/style.wxs');
|
3
|
-
var addUnit = require('../wxs/add-unit.wxs');
|
4
|
-
|
5
|
-
function barStyle(barHeight, activeColor) {
|
6
|
-
return style({
|
7
|
-
height: addUnit(barHeight),
|
8
|
-
background: activeColor,
|
9
|
-
});
|
10
|
-
}
|
11
|
-
|
12
|
-
module.exports = {
|
13
|
-
barStyle: barStyle,
|
14
|
-
};
|
package/lib/slider/index.wxss
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-slider{background-color:var(--slider-inactive-background-color,#ebedf0);border-radius:999px;height:var(--slider-bar-height,2px);position:relative}.smart-slider:before{bottom:calc(var(--padding-xs, 8px)*-1);content:"";left:0;position:absolute;right:0;top:calc(var(--padding-xs, 8px)*-1)}.smart-slider__bar{background-color:var(--slider-active-background-color,#1989fa);border-radius:inherit;height:100%;position:relative;transition:all .2s;width:100%}.smart-slider__button{background-color:var(--slider-button-background-color,#fff);border-radius:var(--slider-button-border-radius,50%);box-shadow:var(--slider-button-box-shadow,0 1px 2px rgba(0,0,0,.5));height:var(--slider-button-height,24px);width:var(--slider-button-width,24px)}.smart-slider__button-wrapper,.smart-slider__button-wrapper-right{position:absolute;right:0;top:50%;transform:translate3d(50%,-50%,0)}.smart-slider__button-wrapper-left{left:0;position:absolute;top:50%;transform:translate3d(-50%,-50%,0)}.smart-slider--disabled{opacity:var(--slider-disabled-opacity,.3)}.smart-slider--vertical{display:inline-block;height:100%;width:var(--slider-bar-height,2px)}.smart-slider--vertical .smart-slider__button-wrapper,.smart-slider--vertical .smart-slider__button-wrapper-right{bottom:0;right:50%;top:auto;transform:translate3d(50%,50%,0)}.smart-slider--vertical .smart-slider__button-wrapper-left{left:auto;right:50%;top:0;transform:translate3d(50%,-50%,0)}.smart-slider--vertical:before{bottom:0;left:-8px;right:-8px;top:0}
|
package/lib/stepper/index.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@import '../common/index.css';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-stepper{background:var(--stepper-container-background-color,var(--app-B6-N9,rgba(0,0,0,.05)));border-radius:var(--stepper-background-border-radius,10px);display:inline-block;font-size:0;padding:var(--stepper-padding,2px)}.smart-stepper__minus,.smart-stepper__plus{--icon-color:currentColor;align-items:center;background-color:var(--stepper-background-color,var(--app-B6,#fff));border:var(--stepper-button-border,0);border-radius:var(--stepper-border-radius,8px);box-sizing:border-box;color:var(--stepper-button-icon-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:inline-flex;font-size:var(--stepper-button-icon-font-size,27px);height:var(--stepper-input-height,28px);justify-content:center;padding:var(--padding-base,4px);position:relative;vertical-align:middle;width:var(--stepper-input-height,44px)}.smart-stepper__minus-icon,.smart-stepper__plus-icon{display:none}.smart-stepper__minus>.smart-stepper__minus-icon:first-child,.smart-stepper__minus>.smart-stepper__plus-icon:first-child,.smart-stepper__plus>.smart-stepper__minus-icon:first-child,.smart-stepper__plus>.smart-stepper__plus-icon:first-child{display:inline-flex}.smart-stepper__minus--hover,.smart-stepper__plus--hover{background-color:var(--stepper-active-color,#e8e8e8)}.smart-stepper__minus--disabled,.smart-stepper__plus--disabled{color:var(--stepper-button-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-stepper__minus--disabled,.smart-stepper__minus--disabled.smart-stepper__minus--hover,.smart-stepper__minus--disabled.smart-stepper__plus--hover,.smart-stepper__plus--disabled,.smart-stepper__plus--disabled.smart-stepper__minus--hover,.smart-stepper__plus--disabled.smart-stepper__plus--hover{background-color:var(--stepper-button-disabled-color,var(--app-B6,#fff))}.smart-stepper--round .smart-stepper__input{background-color:initial!important}.smart-stepper--round .smart-stepper__minus,.smart-stepper--round .smart-stepper__plus{border-radius:100%}.smart-stepper--round .smart-stepper__minus:active,.smart-stepper--round .smart-stepper__plus:active{opacity:.7}.smart-stepper--round .smart-stepper__minus--disabled,.smart-stepper--round .smart-stepper__minus--disabled:active,.smart-stepper--round .smart-stepper__plus--disabled,.smart-stepper--round .smart-stepper__plus--disabled:active{opacity:.3}.smart-stepper--round .smart-stepper__plus{background-color:var(--stepper-button-round-theme-color,#ee0a24);color:#fff}.smart-stepper--round .smart-stepper__minus{background-color:#fff;border:1px solid var(--stepper-button-round-theme-color,#ee0a24);color:var(--stepper-button-round-theme-color,#ee0a24)}.smart-stepper__input{-webkit-appearance:none;border:0;border-radius:0;border-width:1px 0;box-sizing:border-box;color:var(--stepper-input-text-color,var(--app-B6-N1,#000));display:inline-block;font-size:var(--stepper-input-font-size,16px);height:var(--stepper-input-height,28px);min-height:0;padding:1px;text-align:center;vertical-align:middle;width:var(--stepper-input-width,50px)}.smart-stepper__input--disabled{color:var(--stepper-input-disabled-text-color,var(--app-B6-N7,rgba(0,0,0,.1)))}
|
package/lib/stepper/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|