@tuya-miniapp/smart-ui 2.6.4-beta-6 → 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/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/field/index.js
DELETED
@@ -1,158 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
3
|
-
__assign = Object.assign || function(t) {
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
-
s = arguments[i];
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
-
t[p] = s[p];
|
8
|
-
}
|
9
|
-
return t;
|
10
|
-
};
|
11
|
-
return __assign.apply(this, arguments);
|
12
|
-
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
var utils_1 = require("../common/utils");
|
18
|
-
var component_1 = require("../common/component");
|
19
|
-
var props_1 = require("./props");
|
20
|
-
var Xmark_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Xmark"));
|
21
|
-
(0, component_1.SmartComponent)({
|
22
|
-
field: true,
|
23
|
-
classes: ['input-class', 'right-icon-class', 'label-class'],
|
24
|
-
props: __assign(__assign(__assign(__assign({}, props_1.commonProps), props_1.inputProps), props_1.textareaProps), { size: String, icon: String, label: String, error: Boolean, center: Boolean, isLink: Boolean, leftIcon: String, rightIcon: String, autosize: null, required: Boolean, interError: Boolean, inputAlign: {
|
25
|
-
type: String,
|
26
|
-
}, subLabel: String, cardMode: Boolean, iconClass: String, clickable: Boolean, customStyle: String, errorMessage: String, arrowDirection: String, showWordLimit: Boolean, errorMessageAlign: String, hiddenLabel: Boolean, readonly: {
|
27
|
-
type: Boolean,
|
28
|
-
observer: 'setShowClear',
|
29
|
-
}, clearable: {
|
30
|
-
type: Boolean,
|
31
|
-
observer: 'setShowClear',
|
32
|
-
}, clearTrigger: {
|
33
|
-
type: String,
|
34
|
-
value: 'focus',
|
35
|
-
}, border: {
|
36
|
-
type: Boolean,
|
37
|
-
value: false,
|
38
|
-
}, titleWidth: {
|
39
|
-
type: String,
|
40
|
-
value: '6.2em',
|
41
|
-
}, clearIcon: {
|
42
|
-
type: String,
|
43
|
-
value: Xmark_1.default,
|
44
|
-
}, extraEventParams: {
|
45
|
-
type: Boolean,
|
46
|
-
value: false,
|
47
|
-
} }),
|
48
|
-
data: {
|
49
|
-
focused: false,
|
50
|
-
innerValue: '',
|
51
|
-
showClear: false,
|
52
|
-
},
|
53
|
-
watch: {
|
54
|
-
value: function (value) {
|
55
|
-
if (value !== this.value) {
|
56
|
-
this.setData({ innerValue: value });
|
57
|
-
this.value = value;
|
58
|
-
this.setShowClear();
|
59
|
-
}
|
60
|
-
},
|
61
|
-
clearTrigger: function () {
|
62
|
-
this.setShowClear();
|
63
|
-
},
|
64
|
-
},
|
65
|
-
created: function () {
|
66
|
-
this.value = this.data.value;
|
67
|
-
this.setData({ innerValue: this.value });
|
68
|
-
},
|
69
|
-
methods: {
|
70
|
-
formatValue: function (value) {
|
71
|
-
var maxlength = this.data.maxlength;
|
72
|
-
if (maxlength !== -1 && value.length > maxlength) {
|
73
|
-
return value.slice(0, maxlength);
|
74
|
-
}
|
75
|
-
return value;
|
76
|
-
},
|
77
|
-
onInput: function (event) {
|
78
|
-
var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
|
79
|
-
var formatValue = this.formatValue(value);
|
80
|
-
this.value = formatValue;
|
81
|
-
this.setShowClear();
|
82
|
-
return this.emitChange(__assign(__assign({}, event.detail), { value: formatValue }));
|
83
|
-
},
|
84
|
-
onFocus: function (event) {
|
85
|
-
this.focused = true;
|
86
|
-
this.setShowClear();
|
87
|
-
this.$emit('focus', event.detail);
|
88
|
-
},
|
89
|
-
onBlur: function (event) {
|
90
|
-
this.focused = false;
|
91
|
-
this.setShowClear();
|
92
|
-
this.$emit('blur', event.detail);
|
93
|
-
},
|
94
|
-
onClickIcon: function () {
|
95
|
-
this.$emit('click-icon');
|
96
|
-
},
|
97
|
-
onClickInput: function (event) {
|
98
|
-
this.$emit('click-input', event.detail);
|
99
|
-
},
|
100
|
-
onClear: function () {
|
101
|
-
var _this = this;
|
102
|
-
this.setData({ innerValue: '' });
|
103
|
-
this.value = '';
|
104
|
-
this.setShowClear();
|
105
|
-
(0, utils_1.nextTick)(function () {
|
106
|
-
_this.emitChange({ value: '' });
|
107
|
-
_this.$emit('clear', '');
|
108
|
-
});
|
109
|
-
},
|
110
|
-
onConfirm: function (event) {
|
111
|
-
var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
|
112
|
-
this.value = value;
|
113
|
-
this.setShowClear();
|
114
|
-
this.$emit('confirm', value);
|
115
|
-
},
|
116
|
-
setValue: function (value) {
|
117
|
-
this.value = value;
|
118
|
-
this.setShowClear();
|
119
|
-
if (value === '') {
|
120
|
-
this.setData({ innerValue: '' });
|
121
|
-
}
|
122
|
-
this.emitChange({ value: value });
|
123
|
-
},
|
124
|
-
onLineChange: function (event) {
|
125
|
-
this.$emit('linechange', event.detail);
|
126
|
-
},
|
127
|
-
onKeyboardHeightChange: function (event) {
|
128
|
-
this.$emit('keyboardheightchange', event.detail);
|
129
|
-
},
|
130
|
-
onBindNicknameReview: function (event) {
|
131
|
-
this.$emit('nicknamereview', event.detail);
|
132
|
-
},
|
133
|
-
emitChange: function (detail) {
|
134
|
-
var extraEventParams = this.data.extraEventParams;
|
135
|
-
this.setData({ value: detail.value });
|
136
|
-
var result;
|
137
|
-
var data = extraEventParams
|
138
|
-
? __assign(__assign({}, detail), { callback: function (data) {
|
139
|
-
result = data;
|
140
|
-
} }) : detail.value;
|
141
|
-
this.$emit('input', data);
|
142
|
-
this.$emit('change', data);
|
143
|
-
return result;
|
144
|
-
},
|
145
|
-
setShowClear: function () {
|
146
|
-
var _a = this.data, clearable = _a.clearable, readonly = _a.readonly, clearTrigger = _a.clearTrigger;
|
147
|
-
var _b = this, focused = _b.focused, value = _b.value;
|
148
|
-
var showClear = false;
|
149
|
-
if (clearable && !readonly) {
|
150
|
-
var hasValue = !!value;
|
151
|
-
var trigger = clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
|
152
|
-
showClear = hasValue && trigger;
|
153
|
-
}
|
154
|
-
this.setView({ showClear: showClear });
|
155
|
-
},
|
156
|
-
noop: function () { },
|
157
|
-
},
|
158
|
-
});
|
package/lib/field/index.json
DELETED
package/lib/field/index.wxml
DELETED
package/lib/field/index.wxs
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
/* eslint-disable */
|
2
|
-
var style = require('../wxs/style.wxs');
|
3
|
-
var addUnit = require('../wxs/add-unit.wxs');
|
4
|
-
|
5
|
-
function inputStyle(autosize) {
|
6
|
-
if (autosize && autosize.constructor === 'Object') {
|
7
|
-
return style({
|
8
|
-
'min-height': addUnit(autosize.minHeight),
|
9
|
-
'max-height': addUnit(autosize.maxHeight),
|
10
|
-
overflow: 'auto',
|
11
|
-
});
|
12
|
-
}
|
13
|
-
|
14
|
-
return '';
|
15
|
-
}
|
16
|
-
|
17
|
-
module.exports = {
|
18
|
-
inputStyle: inputStyle,
|
19
|
-
};
|
package/lib/field/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-field{--cell-icon-size:var(--field-icon-size,16px)}.smart-field__left__body{align-items:center;display:flex;padding-right:var(--field-left-body-padding-right,16px);text-align:left}.smart-field__left__body--disabled{opacity:var(--field-disabled-opacity,.7)}.smart-field__label{color:var(--field-label-color,var(--app-B6-N1,#000));font-size:var(--field-label-font-size,16px);line-height:var(--field-label-line-height,18px);text-align:left}.smart-field__label--required{color:var(--field-input-error-text-color,var(--app-M2,#f04c4c))}.smart-field__label:empty{display:none}.smart-field__left__icon{display:flex;margin-right:var(--field-left-icon-margin-right,10px)}.smart-field__left__icon:empty{display:none}.smart-field__label__card__subtitle{color:var(--field-subtitle-text-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--field-sub-label-font-size,14px);line-height:var(--field-sub-label-line-height,16px);margin-top:4px}.smart-field__label__card__subtitle--error{color:var(--field-error-message-color,var(--app-M2,#f04c4c))}.smart-field__body__box{flex:1}.smart-field__body__box--disabled{opacity:var(--field-disabled-opacity,.7)}.smart-field__body{align-items:center;display:flex;justify-content:flex-end}.smart-field__body--textarea{background-color:var(--field-textarea-background,var(--app-B3,#fff));border-radius:var(--field-textarea-border-radius,8px);padding:var(--field-textarea-padding,12px 8px)}.smart-field__body--limit{padding-bottom:var(--field-textarea-limit-padding-bottom,20px)}.smart-field__control:empty+.smart-field__control{display:block}.smart-field__control{background-color:initial;border:0;box-sizing:border-box;color:var(--field-input-text-color,var(--app-B6-N1,#000));display:none;font-size:var(--field-input-text-font-size,16px);height:var(--cell-line-height,24px);line-height:inherit;margin:0;min-height:var(--cell-line-height,24px);padding:0;position:relative;resize:none;text-align:right;width:100%}.smart-field__control:empty{display:none}.smart-field__control--textarea{height:var(--field-textarea-min-height,130px);min-height:var(--field-textarea-min-height,130px);text-align:left}.smart-field__control--card{background:var(--field-card-background,var(--app-B6-N7,rgba(0,0,0,.1)));border-radius:var(--field-card-border-radius,8px);height:var(--field-card-height,38px);padding:var(--field-card-padding,0 10px);text-align:center;width:var(--field-card-width,105px)}.smart-field__control--center{text-align:center}.smart-field__control--right{text-align:right}.smart-field__control--left{text-align:left}.smart-field__control--custom{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.smart-field__control--readonly{position:relative}.smart-field__control--readonly:after{content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:10}.smart-field__icon-root{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.smart-field__clear-root,.smart-field__icon-container{line-height:inherit;margin-right:calc(var(--padding-xs, 8px)*-1);padding:0 var(--padding-xs,8px);vertical-align:middle}.smart-field__button,.smart-field__clear-root,.smart-field__icon-container{flex-shrink:0}.smart-field__clear-root{--icon-color:var(--field-clear-icon-color,var(--app-B6-N4,rgba(0,0,0,.4)));font-size:var(--field-clear-icon-size,16px)}.smart-field__icon-container{--icon-color:var(--field-icon-container-color,#969799);font-size:var(--field-icon-size,16px)}.smart-field__icon-container:empty{display:none}.smart-field__button{padding-left:var(--padding-xs,8px)}.smart-field__button:empty{display:none}.smart-field__error-message{word-wrap:break-word;color:var(--field-error-message-color,var(--app-M2,#f04c4c));display:block;font-size:var(--field-error-message-text-font-size,14px);font-weight:400;line-height:var(--field-error-message-text-line-height,18px);text-align:right;white-space:normal}.smart-field__error-message--center{text-align:center}.smart-field__error-message--right{text-align:right}.smart-field--textarea{padding:0 16px}.smart-field--textarea .smart-field__left__body{margin-bottom:8px;width:100%}.smart-field--textarea .smart-field__body__box{position:relative}.smart-field__word-limit{bottom:8px;color:var(--field-word-limit-color,var(--app-B6-N4,rgba(0,0,0,.4)));font-size:var(--field-word-limit-font-size,10px);line-height:var(--field-word-limit-line-height,14px);margin-top:var(--padding-base,4px);position:absolute;right:8px;text-align:right}.smart-field__word-num{display:inline}.smart-field__word-num--full{color:var(--field-word-num-full-color,var(--app-M2,#f04c4c))}
|
package/lib/field/input.wxml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
|
-
<input
|
3
|
-
id="{{ name }}"
|
4
|
-
class="{{ utils.bem('field__control', [inputAlign, type, { card: cardMode, readonly }]) }} input-class"
|
5
|
-
type="{{ type }}"
|
6
|
-
focus="{{ focus }}"
|
7
|
-
cursor="{{ cursor }}"
|
8
|
-
value="{{ innerValue }}"
|
9
|
-
auto-focus="{{ autoFocus }}"
|
10
|
-
disabled="{{ disabled }}"
|
11
|
-
maxlength="{{ maxlength }}"
|
12
|
-
placeholder="{{ !interError ? placeholder : errorMessage || placeholder }}"
|
13
|
-
placeholder-style="{{ interError ? 'color: var(--field-input-error-text-color, var(--app-M2, #f04c4c));' : 'color: var(--field-placeholder-text-color, var(--app-B6-N4, rgba(0, 0, 0, 0.4)));'}}{{ placeholderStyle }}"
|
14
|
-
confirm-type="{{ confirmType }}"
|
15
|
-
confirm-hold="{{ confirmHold }}"
|
16
|
-
hold-keyboard="{{ holdKeyboard }}"
|
17
|
-
cursor-spacing="{{ cursorSpacing }}"
|
18
|
-
adjust-position="{{ adjustPosition }}"
|
19
|
-
selection-end="{{ selectionEnd }}"
|
20
|
-
selection-start="{{ selectionStart }}"
|
21
|
-
always-embed="{{ alwaysEmbed }}"
|
22
|
-
password="{{ password || type === 'password' }}"
|
23
|
-
bindinput="onInput"
|
24
|
-
bindtap="onClickInput"
|
25
|
-
bindblur="onBlur"
|
26
|
-
bindfocus="onFocus"
|
27
|
-
bindconfirm="onConfirm"
|
28
|
-
bindkeyboardheightchange="onKeyboardHeightChange"
|
29
|
-
bindnicknamereview="onBindNicknameReview"
|
30
|
-
/>
|
package/lib/field/props.d.ts
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/// <reference types="miniprogram-api-typings" />
|
2
|
-
export declare const commonProps: WechatMiniprogram.Component.PropertyOption;
|
3
|
-
export declare const inputProps: WechatMiniprogram.Component.PropertyOption;
|
4
|
-
export declare const textareaProps: WechatMiniprogram.Component.PropertyOption;
|
package/lib/field/props.js
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
|
4
|
-
exports.commonProps = {
|
5
|
-
value: String,
|
6
|
-
placeholder: String,
|
7
|
-
placeholderStyle: String,
|
8
|
-
placeholderClass: String,
|
9
|
-
disabled: Boolean,
|
10
|
-
maxlength: {
|
11
|
-
type: Number,
|
12
|
-
value: -1,
|
13
|
-
},
|
14
|
-
cursorSpacing: {
|
15
|
-
type: Number,
|
16
|
-
value: 50,
|
17
|
-
},
|
18
|
-
autoFocus: Boolean,
|
19
|
-
focus: Boolean,
|
20
|
-
cursor: {
|
21
|
-
type: Number,
|
22
|
-
value: -1,
|
23
|
-
},
|
24
|
-
selectionStart: {
|
25
|
-
type: Number,
|
26
|
-
value: -1,
|
27
|
-
},
|
28
|
-
selectionEnd: {
|
29
|
-
type: Number,
|
30
|
-
value: -1,
|
31
|
-
},
|
32
|
-
adjustPosition: {
|
33
|
-
type: Boolean,
|
34
|
-
value: true,
|
35
|
-
},
|
36
|
-
holdKeyboard: Boolean,
|
37
|
-
};
|
38
|
-
exports.inputProps = {
|
39
|
-
type: {
|
40
|
-
type: String,
|
41
|
-
value: 'text',
|
42
|
-
},
|
43
|
-
password: Boolean,
|
44
|
-
confirmType: String,
|
45
|
-
confirmHold: Boolean,
|
46
|
-
alwaysEmbed: Boolean,
|
47
|
-
};
|
48
|
-
exports.textareaProps = {
|
49
|
-
autoHeight: Boolean,
|
50
|
-
fixed: Boolean,
|
51
|
-
showConfirmBar: {
|
52
|
-
type: Boolean,
|
53
|
-
value: true,
|
54
|
-
},
|
55
|
-
disableDefaultPadding: {
|
56
|
-
type: Boolean,
|
57
|
-
value: true,
|
58
|
-
},
|
59
|
-
};
|
package/lib/field/textarea.wxml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
|
-
<wxs src="./index.wxs" module="computed" />
|
3
|
-
|
4
|
-
<textarea
|
5
|
-
id="{{ name }}"
|
6
|
-
class="{{ utils.bem('field__control', [inputAlign, type, { textarea: true, limit: showWordLimit && maxlength, readonly }]) }} input-class"
|
7
|
-
fixed="{{ fixed }}"
|
8
|
-
focus="{{ focus }}"
|
9
|
-
cursor="{{ cursor }}"
|
10
|
-
value="{{ innerValue }}"
|
11
|
-
auto-focus="{{ autoFocus }}"
|
12
|
-
disabled="{{ disabled }}"
|
13
|
-
maxlength="{{ maxlength }}"
|
14
|
-
placeholder="{{ !interError ? placeholder : errorMessage || placeholder }}"
|
15
|
-
placeholder-style="{{ interError ? 'color: var(--field-input-error-text-color, var(--app-M2, #f04c4c));' : 'color: var(--field-placeholder-text-color, var(--app-B6-N4, rgba(0, 0, 0, 0.4)));'}}{{ placeholderStyle }}"
|
16
|
-
auto-height="{{ !!autosize }}"
|
17
|
-
style="{{ computed.inputStyle(autosize) }}"
|
18
|
-
cursor-spacing="{{ cursorSpacing }}"
|
19
|
-
adjust-position="{{ adjustPosition }}"
|
20
|
-
show-confirm-bar="{{ showConfirmBar }}"
|
21
|
-
hold-keyboard="{{ holdKeyboard }}"
|
22
|
-
selection-end="{{ selectionEnd }}"
|
23
|
-
selection-start="{{ selectionStart }}"
|
24
|
-
disable-default-padding="{{ disableDefaultPadding }}"
|
25
|
-
bindinput="onInput"
|
26
|
-
bindtap="onClickInput"
|
27
|
-
bindblur="onBlur"
|
28
|
-
bindfocus="onFocus"
|
29
|
-
bindconfirm="onConfirm"
|
30
|
-
bindlinechange="onLineChange"
|
31
|
-
bindkeyboardheightchange="onKeyboardHeightChange"
|
32
|
-
/>
|
package/lib/field/types.d.ts
DELETED
package/lib/field/types.js
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-goods-action{align-items:center;background-color:var(--goods-action-background-color,var(--app-B4,#fff));bottom:0;box-sizing:initial;display:flex;height:var(--goods-action-height,50px);left:0;position:fixed;right:0}.smart-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,17 +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)('goods-action-button', function () {
|
7
|
-
this.children.forEach(function (item) {
|
8
|
-
item.updateStyle();
|
9
|
-
});
|
10
|
-
}),
|
11
|
-
props: {
|
12
|
-
safeAreaInsetBottom: {
|
13
|
-
type: Boolean,
|
14
|
-
value: true,
|
15
|
-
},
|
16
|
-
},
|
17
|
-
});
|
@@ -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-goods-action{align-items:center;background-color:var(--goods-action-background-color,var(--app-B4,#fff));bottom:0;box-sizing:initial;display:flex;height:var(--goods-action-height,50px);left:0;position:fixed;right:0}.smart-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
|
@@ -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))}:host{flex:1}.smart-goods-action-button{--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(to right,#ffd01e,#ff8917));--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(to right,#ff6034,#ee0a24));--button-default-height:var(--goods-action-button-height,40px);--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:var(--goods-action-button-plain-color,var(--app-B4,#fff));--button-border-width:0;display:block}.smart-goods-action-button--first{--button-border-radius:var(--goods-action-button-border-radius,999px) 0 0 var(--goods-action-button-border-radius,999px);margin-left:5px}.smart-goods-action-button--last{--button-border-radius:0 var(--goods-action-button-border-radius,999px) var(--goods-action-button-border-radius,999px) 0;margin-right:5px}.smart-goods-action-button--first.smart-goods-action-button--last{--button-border-radius:var(--goods-action-button-border-radius,999px)}.smart-goods-action-button--plain{--button-border-width:1px}.smart-goods-action-button__inner{font-weight:var(--font-weight-bold,500)!important;width:100%}@media (max-width:321px){.smart-goods-action-button{font-size:13px}}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,46 +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
|
-
var button_1 = require("../mixins/button");
|
6
|
-
var link_1 = require("../mixins/link");
|
7
|
-
(0, component_1.SmartComponent)({
|
8
|
-
mixins: [link_1.link, button_1.button],
|
9
|
-
relation: (0, relation_1.useParent)('goods-action'),
|
10
|
-
props: {
|
11
|
-
text: String,
|
12
|
-
color: String,
|
13
|
-
size: {
|
14
|
-
type: String,
|
15
|
-
value: 'normal',
|
16
|
-
},
|
17
|
-
loading: Boolean,
|
18
|
-
disabled: Boolean,
|
19
|
-
plain: Boolean,
|
20
|
-
type: {
|
21
|
-
type: String,
|
22
|
-
value: 'danger',
|
23
|
-
},
|
24
|
-
customStyle: {
|
25
|
-
type: String,
|
26
|
-
value: '',
|
27
|
-
},
|
28
|
-
},
|
29
|
-
methods: {
|
30
|
-
onClick: function (event) {
|
31
|
-
this.$emit('click', event.detail);
|
32
|
-
this.jumpLink();
|
33
|
-
},
|
34
|
-
updateStyle: function () {
|
35
|
-
if (this.parent == null) {
|
36
|
-
return;
|
37
|
-
}
|
38
|
-
var index = this.index;
|
39
|
-
var _a = this.parent.children, children = _a === void 0 ? [] : _a;
|
40
|
-
this.setData({
|
41
|
-
isFirst: index === 0,
|
42
|
-
isLast: index === children.length - 1,
|
43
|
-
});
|
44
|
-
},
|
45
|
-
},
|
46
|
-
});
|
@@ -1,35 +0,0 @@
|
|
1
|
-
<wxs src="../wxs/utils.wxs" module="utils" />
|
2
|
-
<smart-button
|
3
|
-
id="{{ id }}"
|
4
|
-
button-id="{{ buttonId }}"
|
5
|
-
lang="{{ lang }}"
|
6
|
-
type="{{ type }}"
|
7
|
-
size="{{ size }}"
|
8
|
-
color="{{ color }}"
|
9
|
-
plain="{{ plain }}"
|
10
|
-
loading="{{ loading }}"
|
11
|
-
disabled="{{ disabled }}"
|
12
|
-
open-type="{{ openType }}"
|
13
|
-
class="{{ utils.bem('goods-action-button', [type, { first: isFirst, last: isLast, plain: plain }])}}"
|
14
|
-
custom-class="smart-goods-action-button__inner custom-class"
|
15
|
-
custom-style="{{customStyle}}"
|
16
|
-
business-id="{{ businessId }}"
|
17
|
-
session-from="{{ sessionFrom }}"
|
18
|
-
app-parameter="{{ appParameter }}"
|
19
|
-
send-message-img="{{ sendMessageImg }}"
|
20
|
-
send-message-path="{{ sendMessagePath }}"
|
21
|
-
show-message-card="{{ showMessageCard }}"
|
22
|
-
send-message-title="{{ sendMessageTitle }}"
|
23
|
-
bind:click="onClick"
|
24
|
-
binderror="onError"
|
25
|
-
bindcontact="onContact"
|
26
|
-
bindopensetting="onOpenSetting"
|
27
|
-
bindgetuserinfo="onGetUserInfo"
|
28
|
-
bindagreeprivacyauthorization="onAgreePrivacyAuthorization"
|
29
|
-
bindgetRealTimePhoneNumber="onGetRealTimePhoneNumber"
|
30
|
-
bindgetphonenumber="onGetPhoneNumber"
|
31
|
-
bindlaunchapp="onLaunchApp"
|
32
|
-
>
|
33
|
-
{{ text }}
|
34
|
-
<slot></slot>
|
35
|
-
</smart-button>
|
@@ -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))}:host{flex:1}.smart-goods-action-button{--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(to right,#ffd01e,#ff8917));--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(to right,#ff6034,#ee0a24));--button-default-height:var(--goods-action-button-height,40px);--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:var(--goods-action-button-plain-color,var(--app-B4,#fff));--button-border-width:0;display:block}.smart-goods-action-button--first{--button-border-radius:var(--goods-action-button-border-radius,999px) 0 0 var(--goods-action-button-border-radius,999px);margin-left:5px}.smart-goods-action-button--last{--button-border-radius:0 var(--goods-action-button-border-radius,999px) var(--goods-action-button-border-radius,999px) 0;margin-right:5px}.smart-goods-action-button--first.smart-goods-action-button--last{--button-border-radius:var(--goods-action-button-border-radius,999px)}.smart-goods-action-button--plain{--button-border-width:1px}.smart-goods-action-button__inner{font-weight:var(--font-weight-bold,500)!important;width:100%}@media (max-width:321px){.smart-goods-action-button{font-size:13px}}
|
@@ -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-goods-action-icon{border:none!important;color:var(--goods-action-icon-text-color,#646566)!important;display:flex!important;flex-direction:column;font-size:var(--goods-action-icon-font-size,10px)!important;height:var(--goods-action-icon-height,50px)!important;justify-content:center!important;line-height:1!important;min-width:var(--goods-action-icon-width,48px)}.smart-goods-action-icon__icon{color:var(--goods-action-icon-color,#323233);display:flex;font-size:var(--goods-action-icon-size,18px);margin:0 auto 5px}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var component_1 = require("../common/component");
|
4
|
-
var button_1 = require("../mixins/button");
|
5
|
-
var link_1 = require("../mixins/link");
|
6
|
-
(0, component_1.SmartComponent)({
|
7
|
-
classes: ['icon-class', 'text-class', 'info-class'],
|
8
|
-
mixins: [link_1.link, button_1.button],
|
9
|
-
props: {
|
10
|
-
text: String,
|
11
|
-
dot: Boolean,
|
12
|
-
info: String,
|
13
|
-
icon: String,
|
14
|
-
size: String,
|
15
|
-
color: String,
|
16
|
-
classPrefix: {
|
17
|
-
type: String,
|
18
|
-
value: 'smart-icon',
|
19
|
-
},
|
20
|
-
disabled: Boolean,
|
21
|
-
loading: Boolean,
|
22
|
-
},
|
23
|
-
methods: {
|
24
|
-
onClick: function (event) {
|
25
|
-
this.$emit('click', event.detail);
|
26
|
-
this.jumpLink();
|
27
|
-
},
|
28
|
-
},
|
29
|
-
});
|
@@ -1,41 +0,0 @@
|
|
1
|
-
<smart-button
|
2
|
-
square
|
3
|
-
id="{{ id }}"
|
4
|
-
size="large"
|
5
|
-
lang="{{ lang }}"
|
6
|
-
loading="{{ loading }}"
|
7
|
-
disabled="{{ disabled }}"
|
8
|
-
open-type="{{ openType }}"
|
9
|
-
business-id="{{ businessId }}"
|
10
|
-
custom-class="smart-goods-action-icon"
|
11
|
-
session-from="{{ sessionFrom }}"
|
12
|
-
app-parameter="{{ appParameter }}"
|
13
|
-
send-message-img="{{ sendMessageImg }}"
|
14
|
-
send-message-path="{{ sendMessagePath }}"
|
15
|
-
show-message-card="{{ showMessageCard }}"
|
16
|
-
send-message-title="{{ sendMessageTitle }}"
|
17
|
-
bind:click="onClick"
|
18
|
-
binderror="onError"
|
19
|
-
bindcontact="onContact"
|
20
|
-
bindopensetting="onOpenSetting"
|
21
|
-
bindgetuserinfo="onGetUserInfo"
|
22
|
-
bindgetphonenumber="onGetPhoneNumber"
|
23
|
-
bindlaunchapp="onLaunchApp"
|
24
|
-
>
|
25
|
-
<smart-icon
|
26
|
-
wx:if="{{ icon }}"
|
27
|
-
name="{{ icon }}"
|
28
|
-
dot="{{ dot }}"
|
29
|
-
info="{{ info }}"
|
30
|
-
size="{{ size }}"
|
31
|
-
color="{{ color }}"
|
32
|
-
class-prefix="{{ classPrefix }}"
|
33
|
-
class="smart-goods-action-icon__icon"
|
34
|
-
custom-class="icon-class"
|
35
|
-
info-class="info-class"
|
36
|
-
/>
|
37
|
-
<view wx:else>
|
38
|
-
<slot name="icon" />
|
39
|
-
</view>
|
40
|
-
<text class="text-class">{{ text }}</text>
|
41
|
-
</smart-button>
|
@@ -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-goods-action-icon{border:none!important;color:var(--goods-action-icon-text-color,#646566)!important;display:flex!important;flex-direction:column;font-size:var(--goods-action-icon-font-size,10px)!important;height:var(--goods-action-icon-height,50px)!important;justify-content:center!important;line-height:1!important;min-width:var(--goods-action-icon-width,48px)}.smart-goods-action-icon__icon{color:var(--goods-action-icon-color,#323233);display:flex;font-size:var(--goods-action-icon-size,18px);margin:0 auto 5px}
|
package/lib/grid/index.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@import '../common/index.css';.smart-grid{box-sizing:border-box;overflow:hidden;position:relative}
|
package/lib/grid/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/lib/grid/index.js
DELETED
@@ -1,57 +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)('grid-item'),
|
7
|
-
props: {
|
8
|
-
square: {
|
9
|
-
type: Boolean,
|
10
|
-
observer: 'updateChildren',
|
11
|
-
},
|
12
|
-
gutter: {
|
13
|
-
type: null,
|
14
|
-
value: 0,
|
15
|
-
observer: 'updateChildren',
|
16
|
-
},
|
17
|
-
clickable: {
|
18
|
-
type: Boolean,
|
19
|
-
observer: 'updateChildren',
|
20
|
-
},
|
21
|
-
columnNum: {
|
22
|
-
type: Number,
|
23
|
-
value: 4,
|
24
|
-
observer: 'updateChildren',
|
25
|
-
},
|
26
|
-
center: {
|
27
|
-
type: Boolean,
|
28
|
-
value: true,
|
29
|
-
observer: 'updateChildren',
|
30
|
-
},
|
31
|
-
border: {
|
32
|
-
type: Boolean,
|
33
|
-
value: true,
|
34
|
-
observer: 'updateChildren',
|
35
|
-
},
|
36
|
-
direction: {
|
37
|
-
type: String,
|
38
|
-
observer: 'updateChildren',
|
39
|
-
},
|
40
|
-
iconSize: {
|
41
|
-
type: String,
|
42
|
-
observer: 'updateChildren',
|
43
|
-
},
|
44
|
-
reverse: {
|
45
|
-
type: Boolean,
|
46
|
-
value: false,
|
47
|
-
observer: 'updateChildren',
|
48
|
-
},
|
49
|
-
},
|
50
|
-
methods: {
|
51
|
-
updateChildren: function () {
|
52
|
-
this.children.forEach(function (child) {
|
53
|
-
child.updateStyle();
|
54
|
-
});
|
55
|
-
},
|
56
|
-
},
|
57
|
-
});
|
package/lib/grid/index.json
DELETED