@tuya-miniapp/smart-ui 2.7.1-beta-13 → 2.7.2-beta-0
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/common/style/clearfix.css +1 -0
- package/dist/common/style/clearfix.wxss +1 -0
- package/dist/common/style/ellipsis.css +1 -0
- package/dist/common/style/ellipsis.wxss +1 -0
- package/dist/common/style/hairline.css +1 -0
- package/dist/common/style/hairline.wxss +1 -0
- 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 +1 -0
- package/dist/common/style/mixins/hairline.wxss +1 -0
- package/dist/common/style/var.css +1 -0
- package/dist/common/style/var.wxss +1 -0
- package/dist/toast/index.css +1 -0
- package/dist/toast/index.wxss +1 -0
- package/dist/transition/index.css +1 -0
- package/dist/transition/index.wxss +1 -0
- package/dist/tree-select/index.css +1 -0
- package/dist/tree-select/index.wxss +1 -0
- package/lib/action-sheet/index.css +1 -0
- package/lib/action-sheet/index.d.ts +1 -0
- package/lib/action-sheet/index.js +121 -0
- package/lib/action-sheet/index.json +8 -0
- package/lib/action-sheet/index.wxml +87 -0
- package/lib/action-sheet/index.wxss +1 -0
- package/lib/area/index.css +1 -0
- package/lib/area/index.d.ts +1 -0
- package/lib/area/index.js +234 -0
- package/lib/area/index.json +6 -0
- package/lib/area/index.wxml +20 -0
- package/lib/area/index.wxs +8 -0
- package/lib/area/index.wxss +1 -0
- package/lib/battery/index.d.ts +1 -0
- package/lib/battery/index.js +105 -0
- package/lib/battery/index.json +4 -0
- package/lib/battery/index.wxml +1 -0
- package/lib/bottom-sheet/index.css +1 -0
- package/lib/bottom-sheet/index.d.ts +1 -0
- package/lib/bottom-sheet/index.js +82 -0
- package/lib/bottom-sheet/index.json +8 -0
- package/lib/bottom-sheet/index.wxml +43 -0
- package/lib/bottom-sheet/index.wxs +12 -0
- package/lib/bottom-sheet/index.wxss +1 -0
- package/lib/button/index.css +1 -0
- package/lib/button/index.d.ts +1 -0
- package/lib/button/index.js +64 -0
- package/lib/button/index.json +7 -0
- package/lib/button/index.wxml +64 -0
- package/lib/button/index.wxs +39 -0
- package/lib/button/index.wxss +1 -0
- package/lib/calendar/calendar.wxml +84 -0
- package/lib/calendar/index.css +1 -0
- package/lib/calendar/index.d.ts +1 -0
- package/lib/calendar/index.js +465 -0
- package/lib/calendar/index.json +12 -0
- package/lib/calendar/index.wxml +25 -0
- package/lib/calendar/index.wxs +59 -0
- package/lib/calendar/index.wxss +1 -0
- package/lib/calendar-header/index.css +1 -0
- package/lib/calendar-header/index.d.ts +1 -0
- package/lib/calendar-header/index.js +75 -0
- package/lib/calendar-header/index.json +6 -0
- package/lib/calendar-header/index.wxml +27 -0
- package/lib/calendar-header/index.wxss +1 -0
- package/lib/calendar-month/index.css +1 -0
- package/lib/calendar-month/index.d.ts +1 -0
- package/lib/calendar-month/index.js +179 -0
- package/lib/calendar-month/index.json +3 -0
- package/lib/calendar-month/index.wxml +22 -0
- package/lib/calendar-month/index.wxs +73 -0
- package/lib/calendar-month/index.wxss +1 -0
- package/lib/calendar-month-list/index.css +1 -0
- package/lib/calendar-month-list/index.d.ts +1 -0
- package/lib/calendar-month-list/index.js +105 -0
- package/lib/calendar-month-list/index.json +7 -0
- package/lib/calendar-month-list/index.wxml +15 -0
- package/lib/calendar-month-list/index.wxss +1 -0
- package/lib/calendar-utils/types.d.ts +7 -0
- package/lib/calendar-utils/types.js +2 -0
- package/lib/calendar-utils/utils.d.ts +21 -0
- package/lib/calendar-utils/utils.js +175 -0
- package/lib/calendar-utils/utils.wxs +25 -0
- package/lib/calendar-year-list/index.css +1 -0
- package/lib/calendar-year-list/index.d.ts +1 -0
- package/lib/calendar-year-list/index.js +115 -0
- package/lib/calendar-year-list/index.json +7 -0
- package/lib/calendar-year-list/index.wxml +15 -0
- package/lib/calendar-year-list/index.wxss +1 -0
- package/lib/cascader/index.css +1 -0
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/index.js +207 -0
- package/lib/cascader/index.json +8 -0
- package/lib/cascader/index.wxml +56 -0
- package/lib/cascader/index.wxs +21 -0
- package/lib/cascader/index.wxss +1 -0
- package/lib/cell/index.css +1 -0
- package/lib/cell/index.d.ts +1 -0
- package/lib/cell/index.js +48 -0
- package/lib/cell/index.json +6 -0
- package/lib/cell/index.wxml +47 -0
- package/lib/cell/index.wxs +17 -0
- package/lib/cell/index.wxss +1 -0
- package/lib/cell-group/index.css +1 -0
- package/lib/cell-group/index.d.ts +1 -0
- package/lib/cell-group/index.js +14 -0
- package/lib/cell-group/index.json +3 -0
- package/lib/cell-group/index.wxml +15 -0
- package/lib/cell-group/index.wxs +14 -0
- package/lib/cell-group/index.wxss +1 -0
- package/lib/checkbox/index.css +1 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/checkbox/index.js +84 -0
- package/lib/checkbox/index.json +6 -0
- package/lib/checkbox/index.wxml +32 -0
- package/lib/checkbox/index.wxs +20 -0
- package/lib/checkbox/index.wxss +1 -0
- package/lib/checkbox-group/index.css +1 -0
- package/lib/checkbox-group/index.d.ts +1 -0
- package/lib/checkbox-group/index.js +39 -0
- package/lib/checkbox-group/index.json +3 -0
- package/lib/checkbox-group/index.wxml +5 -0
- package/lib/checkbox-group/index.wxss +1 -0
- package/lib/circle/index.css +1 -0
- package/lib/circle/index.d.ts +1 -0
- package/lib/circle/index.js +134 -0
- package/lib/circle/index.json +3 -0
- package/lib/circle/index.rjs +232 -0
- package/lib/circle/index.wxml +8 -0
- package/lib/circle/index.wxss +1 -0
- package/lib/col/index.css +1 -0
- package/lib/col/index.d.ts +1 -0
- package/lib/col/index.js +11 -0
- package/lib/col/index.json +3 -0
- package/lib/col/index.wxml +9 -0
- package/lib/col/index.wxs +18 -0
- package/lib/col/index.wxss +1 -0
- package/lib/collapse/index.css +1 -0
- package/lib/collapse/index.d.ts +1 -0
- package/lib/collapse/index.js +48 -0
- package/lib/collapse/index.json +3 -0
- package/lib/collapse/index.wxml +3 -0
- package/lib/collapse/index.wxss +1 -0
- package/lib/collapse-item/animate.d.ts +2 -0
- package/lib/collapse-item/animate.js +43 -0
- package/lib/collapse-item/index.css +1 -0
- package/lib/collapse-item/index.d.ts +1 -0
- package/lib/collapse-item/index.js +64 -0
- package/lib/collapse-item/index.json +6 -0
- package/lib/collapse-item/index.wxml +45 -0
- package/lib/collapse-item/index.wxss +1 -0
- package/lib/common/appLog.d.ts +10 -0
- package/lib/common/appLog.js +112 -0
- package/lib/common/color.d.ts +7 -0
- package/lib/common/color.js +10 -0
- package/lib/common/component.d.ts +4 -0
- package/lib/common/component.js +49 -0
- package/lib/common/index.css +1 -0
- package/lib/common/index.wxss +1 -0
- package/lib/common/relation.d.ts +15 -0
- package/lib/common/relation.js +65 -0
- package/lib/common/style/clearfix.css +1 -0
- package/lib/common/style/clearfix.wxss +1 -0
- package/lib/common/style/ellipsis.css +1 -0
- package/lib/common/style/ellipsis.wxss +1 -0
- package/lib/common/style/hairline.css +1 -0
- package/lib/common/style/hairline.wxss +1 -0
- 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 +1 -0
- package/lib/common/style/mixins/hairline.wxss +1 -0
- package/lib/common/style/var.css +1 -0
- package/lib/common/style/var.wxss +1 -0
- package/lib/common/ty.d.ts +7 -0
- package/lib/common/ty.js +35 -0
- package/lib/common/utils.d.ts +24 -0
- package/lib/common/utils.js +140 -0
- package/lib/common/validator.d.ts +9 -0
- package/lib/common/validator.js +43 -0
- package/lib/common/version.d.ts +15 -0
- package/lib/common/version.js +70 -0
- package/lib/config-provider/index.d.ts +1 -0
- package/lib/config-provider/index.js +11 -0
- package/lib/config-provider/index.json +3 -0
- package/lib/config-provider/index.wxml +5 -0
- package/lib/config-provider/index.wxs +29 -0
- package/lib/count-down/index.css +1 -0
- package/lib/count-down/index.d.ts +1 -0
- package/lib/count-down/index.js +104 -0
- package/lib/count-down/index.json +3 -0
- package/lib/count-down/index.wxml +4 -0
- package/lib/count-down/index.wxss +1 -0
- package/lib/count-down/utils.d.ts +10 -0
- package/lib/count-down/utils.js +64 -0
- package/lib/custom-keyboard/index.css +1 -0
- package/lib/custom-keyboard/index.d.ts +1 -0
- package/lib/custom-keyboard/index.js +156 -0
- package/lib/custom-keyboard/index.json +9 -0
- package/lib/custom-keyboard/index.wxml +44 -0
- package/lib/custom-keyboard/index.wxss +1 -0
- package/lib/datetime-picker/index.css +1 -0
- package/lib/datetime-picker/index.d.ts +1 -0
- package/lib/datetime-picker/index.js +512 -0
- package/lib/datetime-picker/index.json +6 -0
- package/lib/datetime-picker/index.wxml +22 -0
- package/lib/datetime-picker/index.wxss +1 -0
- package/lib/definitions/index.d.ts +29 -0
- package/lib/definitions/index.js +2 -0
- package/lib/dialog/dialog.d.ts +75 -0
- package/lib/dialog/dialog.js +137 -0
- package/lib/dialog/index.css +1 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/index.js +223 -0
- package/lib/dialog/index.json +10 -0
- package/lib/dialog/index.wxml +146 -0
- package/lib/dialog/index.wxss +1 -0
- package/lib/divider/index.css +1 -0
- package/lib/divider/index.d.ts +1 -0
- package/lib/divider/index.js +14 -0
- package/lib/divider/index.json +4 -0
- package/lib/divider/index.wxml +9 -0
- package/lib/divider/index.wxs +18 -0
- package/lib/divider/index.wxss +1 -0
- package/lib/dropdown-item/index.css +1 -0
- package/lib/dropdown-item/index.d.ts +1 -0
- package/lib/dropdown-item/index.js +150 -0
- package/lib/dropdown-item/index.json +8 -0
- package/lib/dropdown-item/index.wxml +52 -0
- package/lib/dropdown-item/index.wxss +1 -0
- package/lib/dropdown-item/shared.d.ts +5 -0
- package/lib/dropdown-item/shared.js +2 -0
- package/lib/dropdown-menu/index.css +1 -0
- package/lib/dropdown-menu/index.d.ts +1 -0
- package/lib/dropdown-menu/index.js +137 -0
- package/lib/dropdown-menu/index.json +6 -0
- package/lib/dropdown-menu/index.wxml +24 -0
- package/lib/dropdown-menu/index.wxs +16 -0
- package/lib/dropdown-menu/index.wxss +1 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/index.js +31 -0
- package/lib/empty/index.json +4 -0
- package/lib/empty/index.wxml +22 -0
- package/lib/empty/index.wxs +13 -0
- package/lib/empty/index.wxss +1 -0
- package/lib/field/cell-input.wxml +59 -0
- package/lib/field/cell-textarea.wxml +28 -0
- package/lib/field/index.css +1 -0
- package/lib/field/index.d.ts +1 -0
- package/lib/field/index.js +160 -0
- package/lib/field/index.json +7 -0
- package/lib/field/index.wxml +4 -0
- package/lib/field/index.wxs +19 -0
- package/lib/field/index.wxss +1 -0
- package/lib/field/input.wxml +30 -0
- package/lib/field/props.d.ts +4 -0
- package/lib/field/props.js +59 -0
- package/lib/field/textarea.wxml +32 -0
- package/lib/field/types.d.ts +8 -0
- package/lib/field/types.js +2 -0
- package/lib/goods-action/index.css +1 -0
- package/lib/goods-action/index.d.ts +1 -0
- package/lib/goods-action/index.js +17 -0
- package/lib/goods-action/index.json +3 -0
- package/lib/goods-action/index.wxml +5 -0
- package/lib/goods-action/index.wxss +1 -0
- package/lib/goods-action-button/index.css +1 -0
- package/lib/goods-action-button/index.d.ts +1 -0
- package/lib/goods-action-button/index.js +51 -0
- package/lib/goods-action-button/index.json +6 -0
- package/lib/goods-action-button/index.wxml +35 -0
- package/lib/goods-action-button/index.wxss +1 -0
- package/lib/goods-action-icon/index.css +1 -0
- package/lib/goods-action-icon/index.d.ts +1 -0
- package/lib/goods-action-icon/index.js +29 -0
- package/lib/goods-action-icon/index.json +7 -0
- package/lib/goods-action-icon/index.wxml +41 -0
- package/lib/goods-action-icon/index.wxss +1 -0
- package/lib/grid/index.css +1 -0
- package/lib/grid/index.d.ts +1 -0
- package/lib/grid/index.js +57 -0
- package/lib/grid/index.json +3 -0
- package/lib/grid/index.wxml +8 -0
- package/lib/grid/index.wxs +13 -0
- package/lib/grid/index.wxss +1 -0
- package/lib/grid-item/index.css +1 -0
- package/lib/grid-item/index.d.ts +1 -0
- package/lib/grid-item/index.js +54 -0
- package/lib/grid-item/index.json +6 -0
- package/lib/grid-item/index.wxml +27 -0
- package/lib/grid-item/index.wxs +32 -0
- package/lib/grid-item/index.wxss +1 -0
- package/lib/icon/index.css +1 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +23 -0
- package/lib/icon/index.json +6 -0
- package/lib/icon/index.wxml +30 -0
- package/lib/icon/index.wxs +98 -0
- package/lib/icon/index.wxss +1 -0
- package/lib/image/index.css +1 -0
- package/lib/image/index.d.ts +1 -0
- package/lib/image/index.js +75 -0
- package/lib/image/index.json +7 -0
- package/lib/image/index.wxml +40 -0
- package/lib/image/index.wxs +42 -0
- package/lib/image/index.wxss +1 -0
- package/lib/index-anchor/index.css +1 -0
- package/lib/index-anchor/index.d.ts +1 -0
- package/lib/index-anchor/index.js +28 -0
- package/lib/index-anchor/index.json +3 -0
- package/lib/index-anchor/index.wxml +14 -0
- package/lib/index-anchor/index.wxss +1 -0
- package/lib/index-bar/index.css +1 -0
- package/lib/index-bar/index.d.ts +1 -0
- package/lib/index-bar/index.js +244 -0
- package/lib/index-bar/index.json +3 -0
- package/lib/index-bar/index.wxml +22 -0
- package/lib/index-bar/index.wxss +1 -0
- package/lib/info/index.css +1 -0
- package/lib/info/index.d.ts +1 -0
- package/lib/info/index.js +10 -0
- package/lib/info/index.json +3 -0
- package/lib/info/index.wxml +7 -0
- package/lib/info/index.wxss +1 -0
- package/lib/loading/index.css +1 -0
- package/lib/loading/index.d.ts +1 -0
- package/lib/loading/index.js +44 -0
- package/lib/loading/index.json +3 -0
- package/lib/loading/index.wxml +17 -0
- package/lib/loading/index.wxs +39 -0
- package/lib/loading/index.wxss +1 -0
- package/lib/mixins/basic.d.ts +1 -0
- package/lib/mixins/basic.js +30 -0
- package/lib/mixins/button.d.ts +1 -0
- package/lib/mixins/button.js +54 -0
- package/lib/mixins/link.d.ts +1 -0
- package/lib/mixins/link.js +26 -0
- package/lib/mixins/page-scroll.d.ts +6 -0
- package/lib/mixins/page-scroll.js +47 -0
- package/lib/mixins/touch.d.ts +1 -0
- package/lib/mixins/touch.js +39 -0
- package/lib/mixins/transition.d.ts +1 -0
- package/lib/mixins/transition.js +235 -0
- package/lib/nav-bar/index.css +1 -0
- package/lib/nav-bar/index.d.ts +1 -0
- package/lib/nav-bar/index.js +116 -0
- package/lib/nav-bar/index.json +6 -0
- package/lib/nav-bar/index.wxml +70 -0
- package/lib/nav-bar/index.wxs +14 -0
- package/lib/nav-bar/index.wxss +1 -0
- package/lib/normal-slider/index.css +1 -0
- package/lib/normal-slider/index.d.ts +1 -0
- package/lib/normal-slider/index.js +160 -0
- package/lib/normal-slider/index.json +6 -0
- package/lib/normal-slider/index.wxml +35 -0
- package/lib/normal-slider/index.wxss +1 -0
- package/lib/notice-bar/index.css +1 -0
- package/lib/notice-bar/index.d.ts +1 -0
- package/lib/notice-bar/index.js +178 -0
- package/lib/notice-bar/index.json +6 -0
- package/lib/notice-bar/index.wxml +52 -0
- package/lib/notice-bar/index.wxs +11 -0
- package/lib/notice-bar/index.wxss +1 -0
- package/lib/notify/index.css +1 -0
- package/lib/notify/index.d.ts +1 -0
- package/lib/notify/index.js +80 -0
- package/lib/notify/index.json +6 -0
- package/lib/notify/index.wxml +22 -0
- package/lib/notify/index.wxs +22 -0
- package/lib/notify/index.wxss +1 -0
- package/lib/notify/notify.d.ts +29 -0
- package/lib/notify/notify.js +72 -0
- package/lib/overlay/index.css +1 -0
- package/lib/overlay/index.d.ts +1 -0
- package/lib/overlay/index.js +32 -0
- package/lib/overlay/index.json +6 -0
- package/lib/overlay/index.wxml +7 -0
- package/lib/overlay/index.wxss +1 -0
- package/lib/overlay/overlay.wxml +10 -0
- package/lib/picker/index.css +1 -0
- package/lib/picker/index.d.ts +1 -0
- package/lib/picker/index.js +191 -0
- package/lib/picker/index.json +7 -0
- package/lib/picker/index.wxml +48 -0
- package/lib/picker/index.wxs +44 -0
- package/lib/picker/index.wxss +1 -0
- package/lib/picker/shared.d.ts +44 -0
- package/lib/picker/shared.js +47 -0
- package/lib/picker/toolbar.wxml +23 -0
- package/lib/picker-column/index.css +1 -0
- package/lib/picker-column/index.d.ts +1 -0
- package/lib/picker-column/index.js +339 -0
- package/lib/picker-column/index.json +3 -0
- package/lib/picker-column/index.wxml +60 -0
- package/lib/picker-column/index.wxs +623 -0
- package/lib/picker-column/index.wxss +1 -0
- package/lib/popover/index.css +1 -0
- package/lib/popover/index.d.ts +1 -0
- package/lib/popover/index.js +224 -0
- package/lib/popover/index.json +7 -0
- package/lib/popover/index.wxml +31 -0
- package/lib/popover/index.wxss +1 -0
- package/lib/popup/index.css +1 -0
- package/lib/popup/index.d.ts +1 -0
- package/lib/popup/index.js +122 -0
- package/lib/popup/index.json +7 -0
- package/lib/popup/index.wxml +21 -0
- package/lib/popup/index.wxs +23 -0
- package/lib/popup/index.wxss +1 -0
- package/lib/popup/popup.wxml +16 -0
- package/lib/progress/index.css +1 -0
- package/lib/progress/index.d.ts +1 -0
- package/lib/progress/index.js +52 -0
- package/lib/progress/index.json +3 -0
- package/lib/progress/index.wxml +20 -0
- package/lib/progress/index.wxs +36 -0
- package/lib/progress/index.wxss +1 -0
- package/lib/radio/index.css +1 -0
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/index.js +75 -0
- package/lib/radio/index.json +6 -0
- package/lib/radio/index.wxml +32 -0
- package/lib/radio/index.wxs +33 -0
- package/lib/radio/index.wxss +1 -0
- package/lib/radio-group/index.css +1 -0
- package/lib/radio-group/index.d.ts +1 -0
- package/lib/radio-group/index.js +29 -0
- package/lib/radio-group/index.json +3 -0
- package/lib/radio-group/index.wxml +5 -0
- package/lib/radio-group/index.wxss +1 -0
- package/lib/rate/index.css +1 -0
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/index.js +107 -0
- package/lib/rate/index.json +6 -0
- package/lib/rate/index.wxml +35 -0
- package/lib/rate/index.wxss +1 -0
- package/lib/row/index.css +1 -0
- package/lib/row/index.d.ts +1 -0
- package/lib/row/index.js +26 -0
- package/lib/row/index.json +3 -0
- package/lib/row/index.wxml +5 -0
- package/lib/row/index.wxs +18 -0
- package/lib/row/index.wxss +1 -0
- package/lib/search/index.css +1 -0
- package/lib/search/index.d.ts +1 -0
- package/lib/search/index.js +106 -0
- package/lib/search/index.json +7 -0
- package/lib/search/index.wxml +57 -0
- package/lib/search/index.wxss +1 -0
- package/lib/sidebar/index.css +1 -0
- package/lib/sidebar/index.d.ts +1 -0
- package/lib/sidebar/index.js +36 -0
- package/lib/sidebar/index.json +3 -0
- package/lib/sidebar/index.wxml +3 -0
- package/lib/sidebar/index.wxss +1 -0
- package/lib/sidebar-item/index.css +1 -0
- package/lib/sidebar-item/index.d.ts +1 -0
- package/lib/sidebar-item/index.js +32 -0
- package/lib/sidebar-item/index.json +6 -0
- package/lib/sidebar-item/index.wxml +18 -0
- package/lib/sidebar-item/index.wxss +1 -0
- package/lib/skeleton/index.css +1 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/index.js +48 -0
- package/lib/skeleton/index.json +4 -0
- package/lib/skeleton/index.wxml +29 -0
- package/lib/skeleton/index.wxss +1 -0
- package/lib/slider/index.css +1 -0
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/index.js +208 -0
- package/lib/slider/index.json +3 -0
- package/lib/slider/index.wxml +68 -0
- package/lib/slider/index.wxs +14 -0
- package/lib/slider/index.wxss +1 -0
- package/lib/stepper/index.css +1 -0
- package/lib/stepper/index.d.ts +1 -0
- package/lib/stepper/index.js +225 -0
- package/lib/stepper/index.json +6 -0
- package/lib/stepper/index.wxml +45 -0
- package/lib/stepper/index.wxs +32 -0
- package/lib/stepper/index.wxss +1 -0
- package/lib/steps/index.css +1 -0
- package/lib/steps/index.d.ts +1 -0
- package/lib/steps/index.js +39 -0
- package/lib/steps/index.json +6 -0
- package/lib/steps/index.wxml +54 -0
- package/lib/steps/index.wxss +1 -0
- package/lib/sticky/index.css +1 -0
- package/lib/sticky/index.d.ts +1 -0
- package/lib/sticky/index.js +128 -0
- package/lib/sticky/index.json +3 -0
- package/lib/sticky/index.wxml +8 -0
- package/lib/sticky/index.wxs +25 -0
- package/lib/sticky/index.wxss +1 -0
- package/lib/swipe-cell/index.css +1 -0
- package/lib/swipe-cell/index.d.ts +1 -0
- package/lib/swipe-cell/index.js +142 -0
- package/lib/swipe-cell/index.json +3 -0
- package/lib/swipe-cell/index.wxml +21 -0
- package/lib/swipe-cell/index.wxss +1 -0
- package/lib/switch/index.css +1 -0
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/index.js +44 -0
- package/lib/switch/index.json +6 -0
- package/lib/switch/index.wxml +51 -0
- package/lib/switch/index.wxs +26 -0
- package/lib/switch/index.wxss +1 -0
- package/lib/tab/index.css +1 -0
- package/lib/tab/index.d.ts +1 -0
- package/lib/tab/index.js +66 -0
- package/lib/tab/index.json +3 -0
- package/lib/tab/index.wxml +8 -0
- package/lib/tab/index.wxss +1 -0
- package/lib/tabbar/index.css +1 -0
- package/lib/tabbar/index.d.ts +1 -0
- package/lib/tabbar/index.js +73 -0
- package/lib/tabbar/index.json +3 -0
- package/lib/tabbar/index.wxml +12 -0
- package/lib/tabbar/index.wxss +1 -0
- package/lib/tabbar-item/index.css +1 -0
- package/lib/tabbar-item/index.d.ts +1 -0
- package/lib/tabbar-item/index.js +79 -0
- package/lib/tabbar-item/index.json +7 -0
- package/lib/tabbar-item/index.wxml +32 -0
- package/lib/tabbar-item/index.wxss +1 -0
- package/lib/tabs/index.css +1 -0
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/index.js +329 -0
- package/lib/tabs/index.json +7 -0
- package/lib/tabs/index.wxml +67 -0
- package/lib/tabs/index.wxs +99 -0
- package/lib/tabs/index.wxss +1 -0
- package/lib/tag/index.css +1 -0
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/index.js +34 -0
- package/lib/tag/index.json +6 -0
- package/lib/tag/index.wxml +17 -0
- package/lib/tag/index.wxs +13 -0
- package/lib/tag/index.wxss +1 -0
- package/lib/toast/icons.d.ts +3 -0
- package/lib/toast/icons.js +12 -0
- package/lib/toast/index.css +1 -0
- package/lib/toast/index.d.ts +1 -0
- package/lib/toast/index.js +63 -0
- package/lib/toast/index.json +9 -0
- package/lib/toast/index.wxml +33 -0
- package/lib/toast/index.wxss +1 -0
- package/lib/toast/toast.d.ts +35 -0
- package/lib/toast/toast.js +116 -0
- package/lib/transition/index.css +1 -0
- package/lib/transition/index.d.ts +1 -0
- package/lib/transition/index.js +15 -0
- package/lib/transition/index.json +3 -0
- package/lib/transition/index.wxml +9 -0
- package/lib/transition/index.wxs +17 -0
- package/lib/transition/index.wxss +1 -0
- package/lib/tree-select/index.css +1 -0
- package/lib/tree-select/index.d.ts +1 -0
- package/lib/tree-select/index.js +74 -0
- package/lib/tree-select/index.json +8 -0
- package/lib/tree-select/index.wxml +41 -0
- package/lib/tree-select/index.wxs +12 -0
- package/lib/tree-select/index.wxss +1 -0
- package/lib/wxs/add-unit.wxs +12 -0
- package/lib/wxs/array.wxs +5 -0
- package/lib/wxs/bem.wxs +39 -0
- package/lib/wxs/memoize.wxs +55 -0
- package/lib/wxs/object.wxs +13 -0
- package/lib/wxs/style.wxs +46 -0
- package/lib/wxs/utils.wxs +51 -0
- package/package.json +1 -1
|
@@ -0,0 +1,160 @@
|
|
|
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 _this = this;
|
|
135
|
+
var extraEventParams = this.data.extraEventParams;
|
|
136
|
+
this.setData({ value: detail.value });
|
|
137
|
+
var result;
|
|
138
|
+
var data = extraEventParams
|
|
139
|
+
? __assign(__assign({}, detail), { callback: function (data) {
|
|
140
|
+
result = data;
|
|
141
|
+
_this.setData({ innerValue: data.value });
|
|
142
|
+
} }) : detail.value;
|
|
143
|
+
this.$emit('input', data);
|
|
144
|
+
this.$emit('change', data);
|
|
145
|
+
return result;
|
|
146
|
+
},
|
|
147
|
+
setShowClear: function () {
|
|
148
|
+
var _a = this.data, clearable = _a.clearable, readonly = _a.readonly, clearTrigger = _a.clearTrigger;
|
|
149
|
+
var _b = this, focused = _b.focused, value = _b.value;
|
|
150
|
+
var showClear = false;
|
|
151
|
+
if (clearable && !readonly) {
|
|
152
|
+
var hasValue = !!value;
|
|
153
|
+
var trigger = clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
|
|
154
|
+
showClear = hasValue && trigger;
|
|
155
|
+
}
|
|
156
|
+
this.setView({ showClear: showClear });
|
|
157
|
+
},
|
|
158
|
+
noop: function () { },
|
|
159
|
+
},
|
|
160
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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))}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
/>
|
|
@@ -0,0 +1,4 @@
|
|
|
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;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/>
|
|
@@ -0,0 +1 @@
|
|
|
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,48px);left:0;position:fixed;right:0}.smart-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
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,48px);left:0;position:fixed;right:0}.smart-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
|
|
@@ -0,0 +1 @@
|
|
|
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(--button-default-height,var(--goods-action-button-height,48px));--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-right:6px}.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-left:6px}.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}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
isFirst: Boolean,
|
|
29
|
+
isLast: Boolean,
|
|
30
|
+
},
|
|
31
|
+
methods: {
|
|
32
|
+
onClick: function (event) {
|
|
33
|
+
this.$emit('click', event.detail);
|
|
34
|
+
this.jumpLink();
|
|
35
|
+
},
|
|
36
|
+
updateStyle: function () {
|
|
37
|
+
if (this.parent == null) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
var index = this.index;
|
|
41
|
+
var _a = this.parent.children, children = _a === void 0 ? [] : _a;
|
|
42
|
+
// this.setData({
|
|
43
|
+
// isFirst: index === 0 && children.length > 1,
|
|
44
|
+
// isLast: index === children.length - 1 && children.length > 1,
|
|
45
|
+
// });
|
|
46
|
+
this.setData({
|
|
47
|
+
length: children.length,
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
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 && length > 1, last: isLast && length > 1, 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>
|
|
@@ -0,0 +1 @@
|
|
|
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(--button-default-height,var(--goods-action-button-height,48px));--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-right:6px}.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-left:6px}.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}}
|
|
@@ -0,0 +1 @@
|
|
|
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,48px)!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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
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>
|
|
@@ -0,0 +1 @@
|
|
|
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,48px)!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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../common/index.css';.smart-grid{box-sizing:border-box;overflow:hidden;position:relative}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
});
|