@emhome/meeui-mp 1.11.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/LICENSE +7 -0
- package/README.en.md +36 -0
- package/README.md +27 -0
- package/dist/action-sheet/index.d.ts +1 -0
- package/dist/action-sheet/index.js +75 -0
- package/dist/action-sheet/index.json +8 -0
- package/dist/action-sheet/index.wxml +70 -0
- package/dist/action-sheet/index.wxss +1 -0
- package/dist/area/index.d.ts +1 -0
- package/dist/area/index.js +220 -0
- package/dist/area/index.json +6 -0
- package/dist/area/index.wxml +20 -0
- package/dist/area/index.wxs +8 -0
- package/dist/area/index.wxss +1 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/button/index.js +64 -0
- package/dist/button/index.json +7 -0
- package/dist/button/index.wxml +56 -0
- package/dist/button/index.wxs +39 -0
- package/dist/button/index.wxss +1 -0
- package/dist/calendar/calendar.wxml +70 -0
- package/dist/calendar/components/header/index.d.ts +1 -0
- package/dist/calendar/components/header/index.js +37 -0
- package/dist/calendar/components/header/index.json +3 -0
- package/dist/calendar/components/header/index.wxml +16 -0
- package/dist/calendar/components/header/index.wxss +1 -0
- package/dist/calendar/components/month/index.d.ts +6 -0
- package/dist/calendar/components/month/index.js +154 -0
- package/dist/calendar/components/month/index.json +3 -0
- package/dist/calendar/components/month/index.wxml +39 -0
- package/dist/calendar/components/month/index.wxs +71 -0
- package/dist/calendar/components/month/index.wxss +1 -0
- package/dist/calendar/index.d.ts +1 -0
- package/dist/calendar/index.js +360 -0
- package/dist/calendar/index.json +10 -0
- package/dist/calendar/index.wxml +27 -0
- package/dist/calendar/index.wxs +37 -0
- package/dist/calendar/index.wxss +1 -0
- package/dist/calendar/utils.d.ts +12 -0
- package/dist/calendar/utils.js +83 -0
- package/dist/calendar/utils.wxs +25 -0
- package/dist/card/index.d.ts +1 -0
- package/dist/card/index.js +49 -0
- package/dist/card/index.json +6 -0
- package/dist/card/index.wxml +56 -0
- package/dist/card/index.wxss +1 -0
- package/dist/cascader/index.d.ts +1 -0
- package/dist/cascader/index.js +214 -0
- package/dist/cascader/index.json +8 -0
- package/dist/cascader/index.wxml +55 -0
- package/dist/cascader/index.wxs +24 -0
- package/dist/cascader/index.wxss +1 -0
- package/dist/cell/index.d.ts +1 -0
- package/dist/cell/index.js +38 -0
- package/dist/cell/index.json +6 -0
- package/dist/cell/index.wxml +47 -0
- package/dist/cell/index.wxs +17 -0
- package/dist/cell/index.wxss +1 -0
- package/dist/cell-group/index.d.ts +1 -0
- package/dist/cell-group/index.js +11 -0
- package/dist/cell-group/index.json +3 -0
- package/dist/cell-group/index.wxml +11 -0
- package/dist/cell-group/index.wxss +1 -0
- package/dist/checkbox/index.d.ts +1 -0
- package/dist/checkbox/index.js +77 -0
- package/dist/checkbox/index.json +6 -0
- package/dist/checkbox/index.wxml +31 -0
- package/dist/checkbox/index.wxs +20 -0
- package/dist/checkbox/index.wxss +1 -0
- package/dist/checkbox-group/index.d.ts +1 -0
- package/dist/checkbox-group/index.js +36 -0
- package/dist/checkbox-group/index.json +3 -0
- package/dist/checkbox-group/index.wxml +5 -0
- package/dist/checkbox-group/index.wxss +1 -0
- package/dist/circle/canvas.d.ts +4 -0
- package/dist/circle/canvas.js +43 -0
- package/dist/circle/index.d.ts +1 -0
- package/dist/circle/index.js +197 -0
- package/dist/circle/index.json +3 -0
- package/dist/circle/index.wxml +9 -0
- package/dist/circle/index.wxss +1 -0
- package/dist/col/index.d.ts +1 -0
- package/dist/col/index.js +9 -0
- package/dist/col/index.json +3 -0
- package/dist/col/index.wxml +9 -0
- package/dist/col/index.wxs +18 -0
- package/dist/col/index.wxss +1 -0
- package/dist/collapse/index.d.ts +1 -0
- package/dist/collapse/index.js +46 -0
- package/dist/collapse/index.json +3 -0
- package/dist/collapse/index.wxml +3 -0
- package/dist/collapse/index.wxss +1 -0
- package/dist/collapse-item/animate.d.ts +2 -0
- package/dist/collapse-item/animate.js +39 -0
- package/dist/collapse-item/index.d.ts +1 -0
- package/dist/collapse-item/index.js +61 -0
- package/dist/collapse-item/index.json +6 -0
- package/dist/collapse-item/index.wxml +45 -0
- package/dist/collapse-item/index.wxss +1 -0
- package/dist/common/color.d.ts +7 -0
- package/dist/common/color.js +7 -0
- package/dist/common/component.d.ts +4 -0
- package/dist/common/component.js +46 -0
- package/dist/common/index.wxss +1 -0
- package/dist/common/relation.d.ts +15 -0
- package/dist/common/relation.js +56 -0
- package/dist/common/style/clearfix.wxss +1 -0
- package/dist/common/style/ellipsis.wxss +1 -0
- package/dist/common/style/hairline.wxss +1 -0
- package/dist/common/style/mixins/clearfix.wxss +0 -0
- package/dist/common/style/mixins/ellipsis.wxss +0 -0
- package/dist/common/style/mixins/hairline.wxss +0 -0
- package/dist/common/style/var.wxss +0 -0
- package/dist/common/utils.d.ts +21 -0
- package/dist/common/utils.js +86 -0
- package/dist/common/validator.d.ts +9 -0
- package/dist/common/validator.js +31 -0
- package/dist/common/version.d.ts +15 -0
- package/dist/common/version.js +59 -0
- package/dist/config-provider/index.d.ts +1 -0
- package/dist/config-provider/index.js +9 -0
- package/dist/config-provider/index.json +3 -0
- package/dist/config-provider/index.wxml +5 -0
- package/dist/config-provider/index.wxs +29 -0
- package/dist/count-down/index.d.ts +1 -0
- package/dist/count-down/index.js +100 -0
- package/dist/count-down/index.json +3 -0
- package/dist/count-down/index.wxml +4 -0
- package/dist/count-down/index.wxss +1 -0
- package/dist/count-down/utils.d.ts +10 -0
- package/dist/count-down/utils.js +57 -0
- package/dist/datetime-picker/index.d.ts +1 -0
- package/dist/datetime-picker/index.js +295 -0
- package/dist/datetime-picker/index.json +6 -0
- package/dist/datetime-picker/index.wxml +16 -0
- package/dist/datetime-picker/index.wxss +1 -0
- package/dist/definitions/index.d.ts +29 -0
- package/dist/definitions/index.js +1 -0
- package/dist/dialog/dialog.d.ts +55 -0
- package/dist/dialog/dialog.js +77 -0
- package/dist/dialog/index.d.ts +1 -0
- package/dist/dialog/index.js +132 -0
- package/dist/dialog/index.json +9 -0
- package/dist/dialog/index.wxml +126 -0
- package/dist/dialog/index.wxss +1 -0
- package/dist/divider/index.d.ts +1 -0
- package/dist/divider/index.js +12 -0
- package/dist/divider/index.json +4 -0
- package/dist/divider/index.wxml +9 -0
- package/dist/divider/index.wxs +18 -0
- package/dist/divider/index.wxss +1 -0
- package/dist/dropdown-item/dropdown-item.wxml +49 -0
- package/dist/dropdown-item/index.d.ts +1 -0
- package/dist/dropdown-item/index.js +130 -0
- package/dist/dropdown-item/index.json +8 -0
- package/dist/dropdown-item/index.wxml +8 -0
- package/dist/dropdown-item/index.wxss +1 -0
- package/dist/dropdown-item/shared.d.ts +5 -0
- package/dist/dropdown-item/shared.js +1 -0
- package/dist/dropdown-menu/index.d.ts +1 -0
- package/dist/dropdown-menu/index.js +117 -0
- package/dist/dropdown-menu/index.json +3 -0
- package/dist/dropdown-menu/index.wxml +23 -0
- package/dist/dropdown-menu/index.wxs +16 -0
- package/dist/dropdown-menu/index.wxss +1 -0
- package/dist/empty/index.d.ts +1 -0
- package/dist/empty/index.js +10 -0
- package/dist/empty/index.json +4 -0
- package/dist/empty/index.wxml +22 -0
- package/dist/empty/index.wxs +15 -0
- package/dist/empty/index.wxss +1 -0
- package/dist/field/index.d.ts +1 -0
- package/dist/field/index.js +138 -0
- package/dist/field/index.json +7 -0
- package/dist/field/index.wxml +56 -0
- package/dist/field/index.wxs +18 -0
- package/dist/field/index.wxss +1 -0
- package/dist/field/input.wxml +31 -0
- package/dist/field/props.d.ts +4 -0
- package/dist/field/props.js +56 -0
- package/dist/field/textarea.wxml +32 -0
- package/dist/field/types.d.ts +8 -0
- package/dist/field/types.js +1 -0
- package/dist/goods-action/index.d.ts +1 -0
- package/dist/goods-action/index.js +15 -0
- package/dist/goods-action/index.json +3 -0
- package/dist/goods-action/index.wxml +5 -0
- package/dist/goods-action/index.wxss +1 -0
- package/dist/goods-action-button/index.d.ts +1 -0
- package/dist/goods-action-button/index.js +44 -0
- package/dist/goods-action-button/index.json +6 -0
- package/dist/goods-action-button/index.wxml +35 -0
- package/dist/goods-action-button/index.wxss +1 -0
- package/dist/goods-action-icon/index.d.ts +1 -0
- package/dist/goods-action-icon/index.js +27 -0
- package/dist/goods-action-icon/index.json +7 -0
- package/dist/goods-action-icon/index.wxml +41 -0
- package/dist/goods-action-icon/index.wxss +1 -0
- package/dist/grid/index.d.ts +1 -0
- package/dist/grid/index.js +55 -0
- package/dist/grid/index.json +3 -0
- package/dist/grid/index.wxml +8 -0
- package/dist/grid/index.wxs +13 -0
- package/dist/grid/index.wxss +1 -0
- package/dist/grid-item/index.d.ts +1 -0
- package/dist/grid-item/index.js +52 -0
- package/dist/grid-item/index.json +6 -0
- package/dist/grid-item/index.wxml +27 -0
- package/dist/grid-item/index.wxs +32 -0
- package/dist/grid-item/index.wxss +1 -0
- package/dist/icon/index.d.ts +1 -0
- package/dist/icon/index.js +21 -0
- package/dist/icon/index.json +6 -0
- package/dist/icon/index.wxml +20 -0
- package/dist/icon/index.wxs +43 -0
- package/dist/icon/index.wxss +1 -0
- package/dist/image/index.d.ts +1 -0
- package/dist/image/index.js +64 -0
- package/dist/image/index.json +7 -0
- package/dist/image/index.wxml +35 -0
- package/dist/image/index.wxs +32 -0
- package/dist/image/index.wxss +1 -0
- package/dist/index-anchor/index.d.ts +1 -0
- package/dist/index-anchor/index.js +25 -0
- package/dist/index-anchor/index.json +3 -0
- package/dist/index-anchor/index.wxml +14 -0
- package/dist/index-anchor/index.wxss +1 -0
- package/dist/index-bar/index.d.ts +1 -0
- package/dist/index-bar/index.js +246 -0
- package/dist/index-bar/index.json +3 -0
- package/dist/index-bar/index.wxml +22 -0
- package/dist/index-bar/index.wxss +1 -0
- package/dist/info/index.d.ts +1 -0
- package/dist/info/index.js +8 -0
- package/dist/info/index.json +3 -0
- package/dist/info/index.wxml +7 -0
- package/dist/info/index.wxss +1 -0
- package/dist/loading/index.d.ts +1 -0
- package/dist/loading/index.js +16 -0
- package/dist/loading/index.json +3 -0
- package/dist/loading/index.wxml +19 -0
- package/dist/loading/index.wxs +22 -0
- package/dist/loading/index.wxss +1 -0
- package/dist/mixins/basic.d.ts +1 -0
- package/dist/mixins/basic.js +26 -0
- package/dist/mixins/button.d.ts +1 -0
- package/dist/mixins/button.js +51 -0
- package/dist/mixins/link.d.ts +1 -0
- package/dist/mixins/link.js +23 -0
- package/dist/mixins/page-scroll.d.ts +6 -0
- package/dist/mixins/page-scroll.js +42 -0
- package/dist/mixins/touch.d.ts +1 -0
- package/dist/mixins/touch.js +37 -0
- package/dist/mixins/transition.d.ts +1 -0
- package/dist/mixins/transition.js +136 -0
- package/dist/nav-bar/index.d.ts +1 -0
- package/dist/nav-bar/index.js +65 -0
- package/dist/nav-bar/index.json +6 -0
- package/dist/nav-bar/index.wxml +42 -0
- package/dist/nav-bar/index.wxs +13 -0
- package/dist/nav-bar/index.wxss +1 -0
- package/dist/notice-bar/index.d.ts +1 -0
- package/dist/notice-bar/index.js +132 -0
- package/dist/notice-bar/index.json +6 -0
- package/dist/notice-bar/index.wxml +38 -0
- package/dist/notice-bar/index.wxs +15 -0
- package/dist/notice-bar/index.wxss +1 -0
- package/dist/notify/index.d.ts +1 -0
- package/dist/notify/index.js +65 -0
- package/dist/notify/index.json +6 -0
- package/dist/notify/index.wxml +21 -0
- package/dist/notify/index.wxs +22 -0
- package/dist/notify/index.wxss +1 -0
- package/dist/notify/notify.d.ts +22 -0
- package/dist/notify/notify.js +53 -0
- package/dist/overlay/index.d.ts +1 -0
- package/dist/overlay/index.js +30 -0
- package/dist/overlay/index.json +6 -0
- package/dist/overlay/index.wxml +7 -0
- package/dist/overlay/index.wxss +1 -0
- package/dist/overlay/overlay.wxml +10 -0
- package/dist/panel/index.d.ts +1 -0
- package/dist/panel/index.js +9 -0
- package/dist/panel/index.json +6 -0
- package/dist/panel/index.wxml +19 -0
- package/dist/panel/index.wxss +1 -0
- package/dist/picker/index.d.ts +1 -0
- package/dist/picker/index.js +136 -0
- package/dist/picker/index.json +7 -0
- package/dist/picker/index.wxml +37 -0
- package/dist/picker/index.wxs +42 -0
- package/dist/picker/index.wxss +1 -0
- package/dist/picker/shared.d.ts +21 -0
- package/dist/picker/shared.js +21 -0
- package/dist/picker/toolbar.wxml +23 -0
- package/dist/picker-column/index.d.ts +1 -0
- package/dist/picker-column/index.js +118 -0
- package/dist/picker-column/index.json +3 -0
- package/dist/picker-column/index.wxml +23 -0
- package/dist/picker-column/index.wxs +36 -0
- package/dist/picker-column/index.wxss +1 -0
- package/dist/popup/index.d.ts +1 -0
- package/dist/popup/index.js +97 -0
- package/dist/popup/index.json +7 -0
- package/dist/popup/index.wxml +21 -0
- package/dist/popup/index.wxs +18 -0
- package/dist/popup/index.wxss +1 -0
- package/dist/popup/popup.wxml +16 -0
- package/dist/progress/index.d.ts +1 -0
- package/dist/progress/index.js +51 -0
- package/dist/progress/index.json +3 -0
- package/dist/progress/index.wxml +20 -0
- package/dist/progress/index.wxs +36 -0
- package/dist/progress/index.wxss +1 -0
- package/dist/radio/index.d.ts +1 -0
- package/dist/radio/index.js +66 -0
- package/dist/radio/index.json +6 -0
- package/dist/radio/index.wxml +30 -0
- package/dist/radio/index.wxs +33 -0
- package/dist/radio/index.wxss +1 -0
- package/dist/radio-group/index.d.ts +1 -0
- package/dist/radio-group/index.js +22 -0
- package/dist/radio-group/index.json +3 -0
- package/dist/radio-group/index.wxml +5 -0
- package/dist/radio-group/index.wxss +1 -0
- package/dist/rate/index.d.ts +1 -0
- package/dist/rate/index.js +78 -0
- package/dist/rate/index.json +6 -0
- package/dist/rate/index.wxml +35 -0
- package/dist/rate/index.wxss +1 -0
- package/dist/row/index.d.ts +1 -0
- package/dist/row/index.js +23 -0
- package/dist/row/index.json +3 -0
- package/dist/row/index.wxml +5 -0
- package/dist/row/index.wxs +18 -0
- package/dist/row/index.wxss +1 -0
- package/dist/search/index.d.ts +1 -0
- package/dist/search/index.js +97 -0
- package/dist/search/index.json +6 -0
- package/dist/search/index.wxml +54 -0
- package/dist/search/index.wxss +1 -0
- package/dist/share-sheet/index.d.ts +1 -0
- package/dist/share-sheet/index.js +59 -0
- package/dist/share-sheet/index.json +7 -0
- package/dist/share-sheet/index.wxml +47 -0
- package/dist/share-sheet/index.wxs +12 -0
- package/dist/share-sheet/index.wxss +1 -0
- package/dist/share-sheet/options.d.ts +1 -0
- package/dist/share-sheet/options.js +14 -0
- package/dist/share-sheet/options.json +3 -0
- package/dist/share-sheet/options.wxml +20 -0
- package/dist/share-sheet/options.wxs +14 -0
- package/dist/share-sheet/options.wxss +1 -0
- package/dist/sidebar/index.d.ts +1 -0
- package/dist/sidebar/index.js +34 -0
- package/dist/sidebar/index.json +3 -0
- package/dist/sidebar/index.wxml +3 -0
- package/dist/sidebar/index.wxss +1 -0
- package/dist/sidebar-item/index.d.ts +1 -0
- package/dist/sidebar-item/index.js +29 -0
- package/dist/sidebar-item/index.json +6 -0
- package/dist/sidebar-item/index.wxml +18 -0
- package/dist/sidebar-item/index.wxss +1 -0
- package/dist/skeleton/index.d.ts +1 -0
- package/dist/skeleton/index.js +46 -0
- package/dist/skeleton/index.json +4 -0
- package/dist/skeleton/index.wxml +29 -0
- package/dist/skeleton/index.wxss +1 -0
- package/dist/slider/index.d.ts +1 -0
- package/dist/slider/index.js +207 -0
- package/dist/slider/index.json +3 -0
- package/dist/slider/index.wxml +68 -0
- package/dist/slider/index.wxs +14 -0
- package/dist/slider/index.wxss +1 -0
- package/dist/stepper/index.d.ts +1 -0
- package/dist/stepper/index.js +184 -0
- package/dist/stepper/index.json +3 -0
- package/dist/stepper/index.wxml +43 -0
- package/dist/stepper/index.wxs +22 -0
- package/dist/stepper/index.wxss +1 -0
- package/dist/steps/index.d.ts +1 -0
- package/dist/steps/index.js +33 -0
- package/dist/steps/index.json +6 -0
- package/dist/steps/index.wxml +54 -0
- package/dist/steps/index.wxss +1 -0
- package/dist/sticky/index.d.ts +1 -0
- package/dist/sticky/index.js +120 -0
- package/dist/sticky/index.json +3 -0
- package/dist/sticky/index.wxml +8 -0
- package/dist/sticky/index.wxs +25 -0
- package/dist/sticky/index.wxss +1 -0
- package/dist/submit-bar/index.d.ts +1 -0
- package/dist/submit-bar/index.js +56 -0
- package/dist/submit-bar/index.json +7 -0
- package/dist/submit-bar/index.wxml +44 -0
- package/dist/submit-bar/index.wxss +1 -0
- package/dist/swipe-cell/index.d.ts +1 -0
- package/dist/swipe-cell/index.js +133 -0
- package/dist/swipe-cell/index.json +3 -0
- package/dist/swipe-cell/index.wxml +20 -0
- package/dist/swipe-cell/index.wxss +1 -0
- package/dist/switch/index.d.ts +1 -0
- package/dist/switch/index.js +36 -0
- package/dist/switch/index.json +6 -0
- package/dist/switch/index.wxml +16 -0
- package/dist/switch/index.wxs +26 -0
- package/dist/switch/index.wxss +1 -0
- package/dist/tab/index.d.ts +1 -0
- package/dist/tab/index.js +56 -0
- package/dist/tab/index.json +3 -0
- package/dist/tab/index.wxml +8 -0
- package/dist/tab/index.wxss +1 -0
- package/dist/tabbar/index.d.ts +1 -0
- package/dist/tabbar/index.js +65 -0
- package/dist/tabbar/index.json +3 -0
- package/dist/tabbar/index.wxml +10 -0
- package/dist/tabbar/index.wxss +1 -0
- package/dist/tabbar-item/index.d.ts +1 -0
- package/dist/tabbar-item/index.js +68 -0
- package/dist/tabbar-item/index.json +7 -0
- package/dist/tabbar-item/index.wxml +28 -0
- package/dist/tabbar-item/index.wxss +1 -0
- package/dist/tabs/index.d.ts +1 -0
- package/dist/tabs/index.js +302 -0
- package/dist/tabs/index.json +7 -0
- package/dist/tabs/index.wxml +63 -0
- package/dist/tabs/index.wxs +83 -0
- package/dist/tabs/index.wxss +1 -0
- package/dist/tag/index.d.ts +1 -0
- package/dist/tag/index.js +21 -0
- package/dist/tag/index.json +6 -0
- package/dist/tag/index.wxml +15 -0
- package/dist/tag/index.wxs +13 -0
- package/dist/tag/index.wxss +1 -0
- package/dist/toast/index.d.ts +1 -0
- package/dist/toast/index.js +29 -0
- package/dist/toast/index.json +9 -0
- package/dist/toast/index.wxml +36 -0
- package/dist/toast/index.wxss +1 -0
- package/dist/toast/toast.d.ts +28 -0
- package/dist/toast/toast.js +68 -0
- package/dist/transition/index.d.ts +1 -0
- package/dist/transition/index.js +13 -0
- package/dist/transition/index.json +3 -0
- package/dist/transition/index.wxml +10 -0
- package/dist/transition/index.wxs +17 -0
- package/dist/transition/index.wxss +1 -0
- package/dist/tree-select/index.d.ts +1 -0
- package/dist/tree-select/index.js +68 -0
- package/dist/tree-select/index.json +8 -0
- package/dist/tree-select/index.wxml +41 -0
- package/dist/tree-select/index.wxs +12 -0
- package/dist/tree-select/index.wxss +1 -0
- package/dist/uploader/index.d.ts +1 -0
- package/dist/uploader/index.js +170 -0
- package/dist/uploader/index.json +7 -0
- package/dist/uploader/index.wxml +85 -0
- package/dist/uploader/index.wxs +17 -0
- package/dist/uploader/index.wxss +1 -0
- package/dist/uploader/shared.d.ts +61 -0
- package/dist/uploader/shared.js +65 -0
- package/dist/uploader/utils.d.ts +24 -0
- package/dist/uploader/utils.js +94 -0
- package/dist/wxs/add-unit.wxs +12 -0
- package/dist/wxs/array.wxs +5 -0
- package/dist/wxs/bem.wxs +39 -0
- package/dist/wxs/memoize.wxs +55 -0
- package/dist/wxs/object.wxs +13 -0
- package/dist/wxs/style.wxs +42 -0
- package/dist/wxs/utils.wxs +10 -0
- package/lib/action-sheet/index.d.ts +1 -0
- package/lib/action-sheet/index.js +78 -0
- package/lib/action-sheet/index.json +8 -0
- package/lib/action-sheet/index.wxml +70 -0
- package/lib/action-sheet/index.wxss +1 -0
- package/lib/area/index.d.ts +1 -0
- package/lib/area/index.js +235 -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/button/index.d.ts +1 -0
- package/lib/button/index.js +67 -0
- package/lib/button/index.json +7 -0
- package/lib/button/index.wxml +56 -0
- package/lib/button/index.wxs +39 -0
- package/lib/button/index.wxss +1 -0
- package/lib/calendar/calendar.wxml +70 -0
- package/lib/calendar/components/header/index.d.ts +1 -0
- package/lib/calendar/components/header/index.js +45 -0
- package/lib/calendar/components/header/index.json +3 -0
- package/lib/calendar/components/header/index.wxml +16 -0
- package/lib/calendar/components/header/index.wxss +1 -0
- package/lib/calendar/components/month/index.d.ts +6 -0
- package/lib/calendar/components/month/index.js +158 -0
- package/lib/calendar/components/month/index.json +3 -0
- package/lib/calendar/components/month/index.wxml +39 -0
- package/lib/calendar/components/month/index.wxs +71 -0
- package/lib/calendar/components/month/index.wxss +1 -0
- package/lib/calendar/index.d.ts +1 -0
- package/lib/calendar/index.js +383 -0
- package/lib/calendar/index.json +10 -0
- package/lib/calendar/index.wxml +27 -0
- package/lib/calendar/index.wxs +37 -0
- package/lib/calendar/index.wxss +1 -0
- package/lib/calendar/utils.d.ts +12 -0
- package/lib/calendar/utils.js +97 -0
- package/lib/calendar/utils.wxs +25 -0
- package/lib/card/index.d.ts +1 -0
- package/lib/card/index.js +51 -0
- package/lib/card/index.json +6 -0
- package/lib/card/index.wxml +56 -0
- package/lib/card/index.wxss +1 -0
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/index.js +228 -0
- package/lib/cascader/index.json +8 -0
- package/lib/cascader/index.wxml +55 -0
- package/lib/cascader/index.wxs +24 -0
- package/lib/cascader/index.wxss +1 -0
- package/lib/cell/index.d.ts +1 -0
- package/lib/cell/index.js +40 -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.d.ts +1 -0
- package/lib/cell-group/index.js +13 -0
- package/lib/cell-group/index.json +3 -0
- package/lib/cell-group/index.wxml +11 -0
- package/lib/cell-group/index.wxss +1 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/checkbox/index.js +79 -0
- package/lib/checkbox/index.json +6 -0
- package/lib/checkbox/index.wxml +31 -0
- package/lib/checkbox/index.wxs +20 -0
- package/lib/checkbox/index.wxss +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/canvas.d.ts +4 -0
- package/lib/circle/canvas.js +47 -0
- package/lib/circle/index.d.ts +1 -0
- package/lib/circle/index.js +207 -0
- package/lib/circle/index.json +3 -0
- package/lib/circle/index.wxml +9 -0
- package/lib/circle/index.wxss +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.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.d.ts +1 -0
- package/lib/collapse-item/index.js +63 -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/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.wxss +1 -0
- package/lib/common/relation.d.ts +15 -0
- package/lib/common/relation.js +65 -0
- package/lib/common/style/clearfix.wxss +1 -0
- package/lib/common/style/ellipsis.wxss +1 -0
- package/lib/common/style/hairline.wxss +1 -0
- package/lib/common/style/mixins/clearfix.wxss +0 -0
- package/lib/common/style/mixins/ellipsis.wxss +0 -0
- package/lib/common/style/mixins/hairline.wxss +0 -0
- package/lib/common/style/var.wxss +0 -0
- package/lib/common/utils.d.ts +21 -0
- package/lib/common/utils.js +109 -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.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/datetime-picker/index.d.ts +1 -0
- package/lib/datetime-picker/index.js +329 -0
- package/lib/datetime-picker/index.json +6 -0
- package/lib/datetime-picker/index.wxml +16 -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 +55 -0
- package/lib/dialog/dialog.js +92 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/index.js +136 -0
- package/lib/dialog/index.json +9 -0
- package/lib/dialog/index.wxml +126 -0
- package/lib/dialog/index.wxss +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/dropdown-item.wxml +49 -0
- package/lib/dropdown-item/index.d.ts +1 -0
- package/lib/dropdown-item/index.js +136 -0
- package/lib/dropdown-item/index.json +8 -0
- package/lib/dropdown-item/index.wxml +8 -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.d.ts +1 -0
- package/lib/dropdown-menu/index.js +122 -0
- package/lib/dropdown-menu/index.json +3 -0
- package/lib/dropdown-menu/index.wxml +23 -0
- package/lib/dropdown-menu/index.wxs +16 -0
- package/lib/dropdown-menu/index.wxss +1 -0
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/index.js +12 -0
- package/lib/empty/index.json +4 -0
- package/lib/empty/index.wxml +22 -0
- package/lib/empty/index.wxs +15 -0
- package/lib/empty/index.wxss +1 -0
- package/lib/field/index.d.ts +1 -0
- package/lib/field/index.js +152 -0
- package/lib/field/index.json +7 -0
- package/lib/field/index.wxml +56 -0
- package/lib/field/index.wxs +18 -0
- package/lib/field/index.wxss +1 -0
- package/lib/field/input.wxml +31 -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.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.d.ts +1 -0
- package/lib/goods-action-button/index.js +46 -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.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.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.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.d.ts +1 -0
- package/lib/icon/index.js +23 -0
- package/lib/icon/index.json +6 -0
- package/lib/icon/index.wxml +20 -0
- package/lib/icon/index.wxs +43 -0
- package/lib/icon/index.wxss +1 -0
- package/lib/image/index.d.ts +1 -0
- package/lib/image/index.js +66 -0
- package/lib/image/index.json +7 -0
- package/lib/image/index.wxml +35 -0
- package/lib/image/index.wxs +32 -0
- package/lib/image/index.wxss +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.d.ts +1 -0
- package/lib/index-bar/index.js +243 -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.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.d.ts +1 -0
- package/lib/loading/index.js +18 -0
- package/lib/loading/index.json +3 -0
- package/lib/loading/index.wxml +19 -0
- package/lib/loading/index.wxs +22 -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 +27 -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 +40 -0
- package/lib/mixins/transition.d.ts +1 -0
- package/lib/mixins/transition.js +144 -0
- package/lib/nav-bar/index.d.ts +1 -0
- package/lib/nav-bar/index.js +68 -0
- package/lib/nav-bar/index.json +6 -0
- package/lib/nav-bar/index.wxml +42 -0
- package/lib/nav-bar/index.wxs +13 -0
- package/lib/nav-bar/index.wxss +1 -0
- package/lib/notice-bar/index.d.ts +1 -0
- package/lib/notice-bar/index.js +138 -0
- package/lib/notice-bar/index.json +6 -0
- package/lib/notice-bar/index.wxml +38 -0
- package/lib/notice-bar/index.wxs +15 -0
- package/lib/notice-bar/index.wxss +1 -0
- package/lib/notify/index.d.ts +1 -0
- package/lib/notify/index.js +68 -0
- package/lib/notify/index.json +6 -0
- package/lib/notify/index.wxml +21 -0
- package/lib/notify/index.wxs +22 -0
- package/lib/notify/index.wxss +1 -0
- package/lib/notify/notify.d.ts +22 -0
- package/lib/notify/notify.js +67 -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/panel/index.d.ts +1 -0
- package/lib/panel/index.js +11 -0
- package/lib/panel/index.json +6 -0
- package/lib/panel/index.wxml +19 -0
- package/lib/panel/index.wxss +1 -0
- package/lib/picker/index.d.ts +1 -0
- package/lib/picker/index.js +161 -0
- package/lib/picker/index.json +7 -0
- package/lib/picker/index.wxml +37 -0
- package/lib/picker/index.wxs +42 -0
- package/lib/picker/index.wxss +1 -0
- package/lib/picker/shared.d.ts +21 -0
- package/lib/picker/shared.js +24 -0
- package/lib/picker/toolbar.wxml +23 -0
- package/lib/picker-column/index.d.ts +1 -0
- package/lib/picker-column/index.js +122 -0
- package/lib/picker-column/index.json +3 -0
- package/lib/picker-column/index.wxml +23 -0
- package/lib/picker-column/index.wxs +36 -0
- package/lib/picker-column/index.wxss +1 -0
- package/lib/popup/index.d.ts +1 -0
- package/lib/popup/index.js +99 -0
- package/lib/popup/index.json +7 -0
- package/lib/popup/index.wxml +21 -0
- package/lib/popup/index.wxs +18 -0
- package/lib/popup/index.wxss +1 -0
- package/lib/popup/popup.wxml +16 -0
- package/lib/progress/index.d.ts +1 -0
- package/lib/progress/index.js +55 -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.d.ts +1 -0
- package/lib/radio/index.js +68 -0
- package/lib/radio/index.json +6 -0
- package/lib/radio/index.wxml +30 -0
- package/lib/radio/index.wxs +33 -0
- package/lib/radio/index.wxss +1 -0
- package/lib/radio-group/index.d.ts +1 -0
- package/lib/radio-group/index.js +24 -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.d.ts +1 -0
- package/lib/rate/index.js +93 -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.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.d.ts +1 -0
- package/lib/search/index.js +100 -0
- package/lib/search/index.json +6 -0
- package/lib/search/index.wxml +54 -0
- package/lib/search/index.wxss +1 -0
- package/lib/share-sheet/index.d.ts +1 -0
- package/lib/share-sheet/index.js +61 -0
- package/lib/share-sheet/index.json +7 -0
- package/lib/share-sheet/index.wxml +47 -0
- package/lib/share-sheet/index.wxs +12 -0
- package/lib/share-sheet/index.wxss +1 -0
- package/lib/share-sheet/options.d.ts +1 -0
- package/lib/share-sheet/options.js +27 -0
- package/lib/share-sheet/options.json +3 -0
- package/lib/share-sheet/options.wxml +20 -0
- package/lib/share-sheet/options.wxs +14 -0
- package/lib/share-sheet/options.wxss +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.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.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.d.ts +1 -0
- package/lib/slider/index.js +206 -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.d.ts +1 -0
- package/lib/stepper/index.js +199 -0
- package/lib/stepper/index.json +3 -0
- package/lib/stepper/index.wxml +43 -0
- package/lib/stepper/index.wxs +22 -0
- package/lib/stepper/index.wxss +1 -0
- package/lib/steps/index.d.ts +1 -0
- package/lib/steps/index.js +35 -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.d.ts +1 -0
- package/lib/sticky/index.js +126 -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/submit-bar/index.d.ts +1 -0
- package/lib/submit-bar/index.js +58 -0
- package/lib/submit-bar/index.json +7 -0
- package/lib/submit-bar/index.wxml +44 -0
- package/lib/submit-bar/index.wxss +1 -0
- package/lib/swipe-cell/index.d.ts +1 -0
- package/lib/swipe-cell/index.js +135 -0
- package/lib/swipe-cell/index.json +3 -0
- package/lib/swipe-cell/index.wxml +20 -0
- package/lib/swipe-cell/index.wxss +1 -0
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/index.js +38 -0
- package/lib/switch/index.json +6 -0
- package/lib/switch/index.wxml +16 -0
- package/lib/switch/index.wxs +26 -0
- package/lib/switch/index.wxss +1 -0
- package/lib/tab/index.d.ts +1 -0
- package/lib/tab/index.js +58 -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.d.ts +1 -0
- package/lib/tabbar/index.js +68 -0
- package/lib/tabbar/index.json +3 -0
- package/lib/tabbar/index.wxml +10 -0
- package/lib/tabbar/index.wxss +1 -0
- package/lib/tabbar-item/index.d.ts +1 -0
- package/lib/tabbar-item/index.js +70 -0
- package/lib/tabbar-item/index.json +7 -0
- package/lib/tabbar-item/index.wxml +28 -0
- package/lib/tabbar-item/index.wxss +1 -0
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/index.js +327 -0
- package/lib/tabs/index.json +7 -0
- package/lib/tabs/index.wxml +63 -0
- package/lib/tabs/index.wxs +83 -0
- package/lib/tabs/index.wxss +1 -0
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/index.js +23 -0
- package/lib/tag/index.json +6 -0
- package/lib/tag/index.wxml +15 -0
- package/lib/tag/index.wxs +13 -0
- package/lib/tag/index.wxss +1 -0
- package/lib/toast/index.d.ts +1 -0
- package/lib/toast/index.js +31 -0
- package/lib/toast/index.json +9 -0
- package/lib/toast/index.wxml +36 -0
- package/lib/toast/index.wxss +1 -0
- package/lib/toast/toast.d.ts +28 -0
- package/lib/toast/toast.js +83 -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 +10 -0
- package/lib/transition/index.wxs +17 -0
- package/lib/transition/index.wxss +1 -0
- package/lib/tree-select/index.d.ts +1 -0
- package/lib/tree-select/index.js +70 -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/uploader/index.d.ts +1 -0
- package/lib/uploader/index.js +185 -0
- package/lib/uploader/index.json +7 -0
- package/lib/uploader/index.wxml +85 -0
- package/lib/uploader/index.wxs +17 -0
- package/lib/uploader/index.wxss +1 -0
- package/lib/uploader/shared.d.ts +61 -0
- package/lib/uploader/shared.js +68 -0
- package/lib/uploader/utils.d.ts +24 -0
- package/lib/uploader/utils.js +112 -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 +42 -0
- package/lib/wxs/utils.wxs +10 -0
- package/package.json +75 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const pickerProps: {
|
|
2
|
+
title: StringConstructor;
|
|
3
|
+
loading: BooleanConstructor;
|
|
4
|
+
showToolbar: BooleanConstructor;
|
|
5
|
+
cancelButtonText: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
confirmButtonText: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
visibleItemCount: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
itemHeight: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
value: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pickerProps = void 0;
|
|
4
|
+
exports.pickerProps = {
|
|
5
|
+
title: String,
|
|
6
|
+
loading: Boolean,
|
|
7
|
+
showToolbar: Boolean,
|
|
8
|
+
cancelButtonText: {
|
|
9
|
+
type: String,
|
|
10
|
+
value: '取消',
|
|
11
|
+
},
|
|
12
|
+
confirmButtonText: {
|
|
13
|
+
type: String,
|
|
14
|
+
value: '确认',
|
|
15
|
+
},
|
|
16
|
+
visibleItemCount: {
|
|
17
|
+
type: Number,
|
|
18
|
+
value: 6,
|
|
19
|
+
},
|
|
20
|
+
itemHeight: {
|
|
21
|
+
type: Number,
|
|
22
|
+
value: 44,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<view wx:if="{{ showToolbar }}" class="mee-picker__toolbar toolbar-class">
|
|
2
|
+
<view
|
|
3
|
+
class="mee-picker__cancel"
|
|
4
|
+
hover-class="mee-picker__cancel--hover"
|
|
5
|
+
hover-stay-time="70"
|
|
6
|
+
data-type="cancel"
|
|
7
|
+
bindtap="emit"
|
|
8
|
+
>
|
|
9
|
+
{{ cancelButtonText }}
|
|
10
|
+
</view>
|
|
11
|
+
<view wx:if="{{ title }}" class="mee-picker__title mee-ellipsis">{{
|
|
12
|
+
title
|
|
13
|
+
}}</view>
|
|
14
|
+
<view
|
|
15
|
+
class="mee-picker__confirm"
|
|
16
|
+
hover-class="mee-picker__confirm--hover"
|
|
17
|
+
hover-stay-time="70"
|
|
18
|
+
data-type="confirm"
|
|
19
|
+
bindtap="emit"
|
|
20
|
+
>
|
|
21
|
+
{{ confirmButtonText }}
|
|
22
|
+
</view>
|
|
23
|
+
</view>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var component_1 = require("../common/component");
|
|
4
|
+
var utils_1 = require("../common/utils");
|
|
5
|
+
var validator_1 = require("../common/validator");
|
|
6
|
+
var DEFAULT_DURATION = 200;
|
|
7
|
+
(0, component_1.MeeComponent)({
|
|
8
|
+
classes: ['active-class'],
|
|
9
|
+
props: {
|
|
10
|
+
valueKey: String,
|
|
11
|
+
className: String,
|
|
12
|
+
itemHeight: Number,
|
|
13
|
+
visibleItemCount: Number,
|
|
14
|
+
initialOptions: {
|
|
15
|
+
type: Array,
|
|
16
|
+
value: [],
|
|
17
|
+
},
|
|
18
|
+
defaultIndex: {
|
|
19
|
+
type: Number,
|
|
20
|
+
value: 0,
|
|
21
|
+
observer: function (value) {
|
|
22
|
+
this.setIndex(value);
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
data: {
|
|
27
|
+
startY: 0,
|
|
28
|
+
offset: 0,
|
|
29
|
+
duration: 0,
|
|
30
|
+
startOffset: 0,
|
|
31
|
+
options: [],
|
|
32
|
+
currentIndex: 0,
|
|
33
|
+
},
|
|
34
|
+
created: function () {
|
|
35
|
+
var _this = this;
|
|
36
|
+
var _a = this.data, defaultIndex = _a.defaultIndex, initialOptions = _a.initialOptions;
|
|
37
|
+
this.set({
|
|
38
|
+
currentIndex: defaultIndex,
|
|
39
|
+
options: initialOptions,
|
|
40
|
+
}).then(function () {
|
|
41
|
+
_this.setIndex(defaultIndex);
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
getCount: function () {
|
|
46
|
+
return this.data.options.length;
|
|
47
|
+
},
|
|
48
|
+
onTouchStart: function (event) {
|
|
49
|
+
this.setData({
|
|
50
|
+
startY: event.touches[0].clientY,
|
|
51
|
+
startOffset: this.data.offset,
|
|
52
|
+
duration: 0,
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
onTouchMove: function (event) {
|
|
56
|
+
var data = this.data;
|
|
57
|
+
var deltaY = event.touches[0].clientY - data.startY;
|
|
58
|
+
this.setData({
|
|
59
|
+
offset: (0, utils_1.range)(data.startOffset + deltaY, -(this.getCount() * data.itemHeight), data.itemHeight),
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
onTouchEnd: function () {
|
|
63
|
+
var data = this.data;
|
|
64
|
+
if (data.offset !== data.startOffset) {
|
|
65
|
+
this.setData({ duration: DEFAULT_DURATION });
|
|
66
|
+
var index = (0, utils_1.range)(Math.round(-data.offset / data.itemHeight), 0, this.getCount() - 1);
|
|
67
|
+
this.setIndex(index, true);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
onClickItem: function (event) {
|
|
71
|
+
var index = event.currentTarget.dataset.index;
|
|
72
|
+
this.setIndex(index, true);
|
|
73
|
+
},
|
|
74
|
+
adjustIndex: function (index) {
|
|
75
|
+
var data = this.data;
|
|
76
|
+
var count = this.getCount();
|
|
77
|
+
index = (0, utils_1.range)(index, 0, count);
|
|
78
|
+
for (var i = index; i < count; i++) {
|
|
79
|
+
if (!this.isDisabled(data.options[i]))
|
|
80
|
+
return i;
|
|
81
|
+
}
|
|
82
|
+
for (var i = index - 1; i >= 0; i--) {
|
|
83
|
+
if (!this.isDisabled(data.options[i]))
|
|
84
|
+
return i;
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
isDisabled: function (option) {
|
|
88
|
+
return (0, validator_1.isObj)(option) && option.disabled;
|
|
89
|
+
},
|
|
90
|
+
getOptionText: function (option) {
|
|
91
|
+
var data = this.data;
|
|
92
|
+
return (0, validator_1.isObj)(option) && data.valueKey in option
|
|
93
|
+
? option[data.valueKey]
|
|
94
|
+
: option;
|
|
95
|
+
},
|
|
96
|
+
setIndex: function (index, userAction) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
var data = this.data;
|
|
99
|
+
index = this.adjustIndex(index) || 0;
|
|
100
|
+
var offset = -index * data.itemHeight;
|
|
101
|
+
if (index !== data.currentIndex) {
|
|
102
|
+
return this.set({ offset: offset, currentIndex: index }).then(function () {
|
|
103
|
+
userAction && _this.$emit('change', index);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return this.set({ offset: offset });
|
|
107
|
+
},
|
|
108
|
+
setValue: function (value) {
|
|
109
|
+
var options = this.data.options;
|
|
110
|
+
for (var i = 0; i < options.length; i++) {
|
|
111
|
+
if (this.getOptionText(options[i]) === value) {
|
|
112
|
+
return this.setIndex(i);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return Promise.resolve();
|
|
116
|
+
},
|
|
117
|
+
getValue: function () {
|
|
118
|
+
var data = this.data;
|
|
119
|
+
return data.options[data.currentIndex];
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
2
|
+
<wxs src="./index.wxs" module="computed" />
|
|
3
|
+
|
|
4
|
+
<view
|
|
5
|
+
class="mee-picker-column custom-class"
|
|
6
|
+
style="{{ computed.rootStyle({ itemHeight, visibleItemCount }) }}"
|
|
7
|
+
bind:touchstart="onTouchStart"
|
|
8
|
+
catch:touchmove="onTouchMove"
|
|
9
|
+
bind:touchend="onTouchEnd"
|
|
10
|
+
bind:touchcancel="onTouchEnd"
|
|
11
|
+
>
|
|
12
|
+
<view style="{{ computed.wrapperStyle({ offset, itemHeight, visibleItemCount, duration }) }}">
|
|
13
|
+
<view
|
|
14
|
+
wx:for="{{ options }}"
|
|
15
|
+
wx:for-item="option"
|
|
16
|
+
wx:key="index"
|
|
17
|
+
data-index="{{ index }}"
|
|
18
|
+
style="height: {{ itemHeight }}px"
|
|
19
|
+
class="mee-ellipsis {{ utils.bem('picker-column__item', { disabled: option && option.disabled, selected: index === currentIndex }) }} {{ index === currentIndex ? 'active-class' : '' }}"
|
|
20
|
+
bindtap="onClickItem"
|
|
21
|
+
>{{ computed.optionText(option, valueKey) }}</view>
|
|
22
|
+
</view>
|
|
23
|
+
</view>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var style = require('../wxs/style.wxs');
|
|
3
|
+
var addUnit = require('../wxs/add-unit.wxs');
|
|
4
|
+
|
|
5
|
+
function isObj(x) {
|
|
6
|
+
var type = typeof x;
|
|
7
|
+
return x !== null && (type === 'object' || type === 'function');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function optionText(option, valueKey) {
|
|
11
|
+
return isObj(option) && option[valueKey] != null ? option[valueKey] : option;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function rootStyle(data) {
|
|
15
|
+
return style({
|
|
16
|
+
height: addUnit(data.itemHeight * data.visibleItemCount),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function wrapperStyle(data) {
|
|
21
|
+
var offset = addUnit(
|
|
22
|
+
data.offset + (data.itemHeight * (data.visibleItemCount - 1)) / 2
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
return style({
|
|
26
|
+
transition: 'transform ' + data.duration + 'ms',
|
|
27
|
+
'line-height': addUnit(data.itemHeight),
|
|
28
|
+
transform: 'translate3d(0, ' + offset + ', 0)',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
module.exports = {
|
|
33
|
+
optionText: optionText,
|
|
34
|
+
rootStyle: rootStyle,
|
|
35
|
+
wrapperStyle: wrapperStyle,
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../common/index.wxss';.mee-picker-column{color:var(--picker-option-text-color,#000);font-size:var(--picker-option-font-size,16px);overflow:hidden;text-align:center}.mee-picker-column__item{padding:0 5px}.mee-picker-column__item--selected{color:var(--picker-option-selected-text-color,#323233);font-weight:var(--font-weight-bold,500)}.mee-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var component_1 = require("../common/component");
|
|
4
|
+
var transition_1 = require("../mixins/transition");
|
|
5
|
+
(0, component_1.MeeComponent)({
|
|
6
|
+
classes: [
|
|
7
|
+
'enter-class',
|
|
8
|
+
'enter-active-class',
|
|
9
|
+
'enter-to-class',
|
|
10
|
+
'leave-class',
|
|
11
|
+
'leave-active-class',
|
|
12
|
+
'leave-to-class',
|
|
13
|
+
'close-icon-class',
|
|
14
|
+
],
|
|
15
|
+
mixins: [(0, transition_1.transition)(false)],
|
|
16
|
+
props: {
|
|
17
|
+
round: Boolean,
|
|
18
|
+
closeable: Boolean,
|
|
19
|
+
customStyle: String,
|
|
20
|
+
overlayStyle: String,
|
|
21
|
+
transition: {
|
|
22
|
+
type: String,
|
|
23
|
+
observer: 'observeClass',
|
|
24
|
+
},
|
|
25
|
+
zIndex: {
|
|
26
|
+
type: Number,
|
|
27
|
+
value: 100,
|
|
28
|
+
},
|
|
29
|
+
overlay: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
value: true,
|
|
32
|
+
},
|
|
33
|
+
closeIcon: {
|
|
34
|
+
type: String,
|
|
35
|
+
value: 'cross',
|
|
36
|
+
},
|
|
37
|
+
closeIconPosition: {
|
|
38
|
+
type: String,
|
|
39
|
+
value: 'top-right',
|
|
40
|
+
},
|
|
41
|
+
closeOnClickOverlay: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
value: true,
|
|
44
|
+
},
|
|
45
|
+
position: {
|
|
46
|
+
type: String,
|
|
47
|
+
value: 'center',
|
|
48
|
+
observer: 'observeClass',
|
|
49
|
+
},
|
|
50
|
+
safeAreaInsetBottom: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
value: true,
|
|
53
|
+
},
|
|
54
|
+
safeAreaInsetTop: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
value: false,
|
|
57
|
+
},
|
|
58
|
+
safeAreaTabBar: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
value: false,
|
|
61
|
+
},
|
|
62
|
+
lockScroll: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
value: true,
|
|
65
|
+
},
|
|
66
|
+
rootPortal: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
value: false,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
created: function () {
|
|
72
|
+
this.observeClass();
|
|
73
|
+
},
|
|
74
|
+
methods: {
|
|
75
|
+
onClickCloseIcon: function () {
|
|
76
|
+
this.$emit('close');
|
|
77
|
+
},
|
|
78
|
+
onClickOverlay: function () {
|
|
79
|
+
this.$emit('click-overlay');
|
|
80
|
+
if (this.data.closeOnClickOverlay) {
|
|
81
|
+
this.$emit('close');
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
observeClass: function () {
|
|
85
|
+
var _a = this.data, transition = _a.transition, position = _a.position, duration = _a.duration;
|
|
86
|
+
var updateData = {
|
|
87
|
+
name: transition || position,
|
|
88
|
+
};
|
|
89
|
+
if (transition === 'none') {
|
|
90
|
+
updateData.duration = 0;
|
|
91
|
+
this.originDuration = duration;
|
|
92
|
+
}
|
|
93
|
+
else if (this.originDuration != null) {
|
|
94
|
+
updateData.duration = this.originDuration;
|
|
95
|
+
}
|
|
96
|
+
this.setData(updateData);
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
2
|
+
<wxs src="./index.wxs" module="computed" />
|
|
3
|
+
|
|
4
|
+
<import src="./popup.wxml" />
|
|
5
|
+
|
|
6
|
+
<mee-overlay
|
|
7
|
+
wx:if="{{ overlay }}"
|
|
8
|
+
show="{{ show }}"
|
|
9
|
+
z-index="{{ zIndex }}"
|
|
10
|
+
custom-style="{{ overlayStyle }}"
|
|
11
|
+
duration="{{ duration }}"
|
|
12
|
+
bind:click="onClickOverlay"
|
|
13
|
+
lock-scroll="{{ lockScroll }}"
|
|
14
|
+
root-portal="{{ rootPortal }}"
|
|
15
|
+
/>
|
|
16
|
+
|
|
17
|
+
<root-portal wx:if="{{ rootPortal }}">
|
|
18
|
+
<include src="./popup.wxml" />
|
|
19
|
+
</root-portal>
|
|
20
|
+
|
|
21
|
+
<include wx:else src="./popup.wxml" />
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var style = require('../wxs/style.wxs');
|
|
3
|
+
|
|
4
|
+
function popupStyle(data) {
|
|
5
|
+
return style([
|
|
6
|
+
{
|
|
7
|
+
'z-index': data.zIndex,
|
|
8
|
+
'-webkit-transition-duration': data.currentDuration + 'ms',
|
|
9
|
+
'transition-duration': data.currentDuration + 'ms',
|
|
10
|
+
},
|
|
11
|
+
data.display ? null : 'display: none',
|
|
12
|
+
data.customStyle,
|
|
13
|
+
]);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = {
|
|
17
|
+
popupStyle: popupStyle,
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../common/index.wxss';.mee-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,#fff);box-sizing:border-box;max-height:100%;overflow-y:auto;position:fixed;transition-timing-function:ease}.mee-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.mee-popup--center.mee-popup--round{border-radius:var(--popup-round-border-radius,16px)}.mee-popup--top{left:0;top:0;width:100%}.mee-popup--top.mee-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.mee-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.mee-popup--right.mee-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.mee-popup--bottom{bottom:0;left:0;width:100%}.mee-popup--bottom.mee-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0}.mee-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.mee-popup--left.mee-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0}.mee-popup--bottom.mee-popup--safe{padding-bottom:env(safe-area-inset-bottom)}.mee-popup--bottom.mee-popup--safeTabBar,.mee-popup--top.mee-popup--safeTabBar{bottom:var(--tabbar-height,50px)}.mee-popup--safeTop{padding-top:env(safe-area-inset-top)}.mee-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,18px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.mee-popup__close-icon--top-left{left:var(--popup-close-icon-margin,16px);top:var(--popup-close-icon-margin,16px)}.mee-popup__close-icon--top-right{right:var(--popup-close-icon-margin,16px);top:var(--popup-close-icon-margin,16px)}.mee-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,16px);left:var(--popup-close-icon-margin,16px)}.mee-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,16px);right:var(--popup-close-icon-margin,16px)}.mee-popup__close-icon:active{opacity:.6}.mee-scale-enter-active,.mee-scale-leave-active{transition-property:opacity,transform}.mee-scale-enter,.mee-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.mee-fade-enter-active,.mee-fade-leave-active{transition-property:opacity}.mee-fade-enter,.mee-fade-leave-to{opacity:0}.mee-center-enter-active,.mee-center-leave-active{transition-property:opacity}.mee-center-enter,.mee-center-leave-to{opacity:0}.mee-bottom-enter-active,.mee-bottom-leave-active,.mee-left-enter-active,.mee-left-leave-active,.mee-right-enter-active,.mee-right-leave-active,.mee-top-enter-active,.mee-top-leave-active{transition-property:transform}.mee-bottom-enter,.mee-bottom-leave-to{transform:translate3d(0,100%,0)}.mee-top-enter,.mee-top-leave-to{transform:translate3d(0,-100%,0)}.mee-left-enter,.mee-left-leave-to{transform:translate3d(-100%,-50%,0)}.mee-right-enter,.mee-right-leave-to{transform:translate3d(100%,-50%,0)}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
2
|
+
<wxs src="./index.wxs" module="computed" />
|
|
3
|
+
<view
|
|
4
|
+
wx:if="{{ inited }}"
|
|
5
|
+
class="custom-class {{ classes }} {{ utils.bem('popup', [position, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop, safeTabBar: safeAreaTabBar }]) }}"
|
|
6
|
+
style="{{ computed.popupStyle({ zIndex, currentDuration, display, customStyle }) }}"
|
|
7
|
+
bind:transitionend="onTransitionEnd"
|
|
8
|
+
>
|
|
9
|
+
<slot />
|
|
10
|
+
<mee-icon
|
|
11
|
+
wx:if="{{ closeable }}"
|
|
12
|
+
name="{{ closeIcon }}"
|
|
13
|
+
class="close-icon-class mee-popup__close-icon mee-popup__close-icon--{{ closeIconPosition }}"
|
|
14
|
+
bind:tap="onClickCloseIcon"
|
|
15
|
+
/>
|
|
16
|
+
</view>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var component_1 = require("../common/component");
|
|
4
|
+
var color_1 = require("../common/color");
|
|
5
|
+
var utils_1 = require("../common/utils");
|
|
6
|
+
(0, component_1.MeeComponent)({
|
|
7
|
+
props: {
|
|
8
|
+
inactive: Boolean,
|
|
9
|
+
percentage: {
|
|
10
|
+
type: Number,
|
|
11
|
+
observer: 'setLeft',
|
|
12
|
+
},
|
|
13
|
+
pivotText: String,
|
|
14
|
+
pivotColor: String,
|
|
15
|
+
trackColor: String,
|
|
16
|
+
showPivot: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
value: true,
|
|
19
|
+
},
|
|
20
|
+
color: {
|
|
21
|
+
type: String,
|
|
22
|
+
value: color_1.BLUE,
|
|
23
|
+
},
|
|
24
|
+
textColor: {
|
|
25
|
+
type: String,
|
|
26
|
+
value: '#fff',
|
|
27
|
+
},
|
|
28
|
+
strokeWidth: {
|
|
29
|
+
type: null,
|
|
30
|
+
value: 4,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
data: {
|
|
34
|
+
right: 0,
|
|
35
|
+
},
|
|
36
|
+
mounted: function () {
|
|
37
|
+
this.setLeft();
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
setLeft: function () {
|
|
41
|
+
var _this = this;
|
|
42
|
+
Promise.all([
|
|
43
|
+
(0, utils_1.getRect)(this, '.mee-progress'),
|
|
44
|
+
(0, utils_1.getRect)(this, '.mee-progress__pivot'),
|
|
45
|
+
]).then(function (_a) {
|
|
46
|
+
var portion = _a[0], pivot = _a[1];
|
|
47
|
+
if (portion && pivot) {
|
|
48
|
+
_this.setData({
|
|
49
|
+
right: (pivot.width * (_this.data.percentage - 100)) / 100,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
2
|
+
<wxs src="./index.wxs" module="computed" />
|
|
3
|
+
|
|
4
|
+
<view
|
|
5
|
+
class="mee-progress custom-class"
|
|
6
|
+
style="{{ computed.rootStyle({ strokeWidth, trackColor }) }}"
|
|
7
|
+
>
|
|
8
|
+
<view
|
|
9
|
+
class="mee-progress__portion"
|
|
10
|
+
style="{{ computed.portionStyle({ percentage, inactive, color }) }}"
|
|
11
|
+
>
|
|
12
|
+
<view
|
|
13
|
+
wx:if="{{ showPivot && computed.pivotText(pivotText, percentage) }}"
|
|
14
|
+
style="{{ computed.pivotStyle({ textColor, pivotColor, inactive, color, right }) }}"
|
|
15
|
+
class="mee-progress__pivot"
|
|
16
|
+
>
|
|
17
|
+
{{ computed.pivotText(pivotText, percentage) }}
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
20
|
+
</view>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var utils = require('../wxs/utils.wxs');
|
|
3
|
+
var style = require('../wxs/style.wxs');
|
|
4
|
+
|
|
5
|
+
function pivotText(pivotText, percentage) {
|
|
6
|
+
return pivotText || percentage + '%';
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function rootStyle(data) {
|
|
10
|
+
return style({
|
|
11
|
+
'height': data.strokeWidth ? utils.addUnit(data.strokeWidth) : '',
|
|
12
|
+
'background': data.trackColor,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function portionStyle(data) {
|
|
17
|
+
return style({
|
|
18
|
+
background: data.inactive ? '#cacaca' : data.color,
|
|
19
|
+
width: data.percentage ? data.percentage + '%' : '',
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function pivotStyle(data) {
|
|
24
|
+
return style({
|
|
25
|
+
color: data.textColor,
|
|
26
|
+
right: data.right + 'px',
|
|
27
|
+
background: data.pivotColor ? data.pivotColor : data.inactive ? '#cacaca' : data.color,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
module.exports = {
|
|
32
|
+
pivotText: pivotText,
|
|
33
|
+
rootStyle: rootStyle,
|
|
34
|
+
portionStyle: portionStyle,
|
|
35
|
+
pivotStyle: pivotStyle,
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../common/index.wxss';.mee-progress{background:var(--progress-background-color,#ebedf0);border-radius:var(--progress-height,4px);height:var(--progress-height,4px);position:relative}.mee-progress__portion{background:var(--progress-color,#1989fa);border-radius:inherit;height:100%;left:0;position:absolute}.mee-progress__pivot{background-color:var(--progress-pivot-background-color,#1989fa);border-radius:1em;box-sizing:border-box;color:var(--progress-pivot-text-color,#fff);font-size:var(--progress-pivot-font-size,10px);line-height:var(--progress-pivot-line-height,1.6);min-width:3.6em;padding:var(--progress-pivot-padding,0 5px);position:absolute;text-align:center;top:50%;transform:translateY(-50%);word-break:keep-all}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var version_1 = require("../common/version");
|
|
4
|
+
var component_1 = require("../common/component");
|
|
5
|
+
var relation_1 = require("../common/relation");
|
|
6
|
+
(0, component_1.MeeComponent)({
|
|
7
|
+
field: true,
|
|
8
|
+
relation: (0, relation_1.useParent)('radio-group', function () {
|
|
9
|
+
this.updateFromParent();
|
|
10
|
+
}),
|
|
11
|
+
classes: ['icon-class', 'label-class'],
|
|
12
|
+
props: {
|
|
13
|
+
name: null,
|
|
14
|
+
value: null,
|
|
15
|
+
disabled: Boolean,
|
|
16
|
+
useIconSlot: Boolean,
|
|
17
|
+
checkedColor: String,
|
|
18
|
+
labelPosition: {
|
|
19
|
+
type: String,
|
|
20
|
+
value: 'right',
|
|
21
|
+
},
|
|
22
|
+
labelDisabled: Boolean,
|
|
23
|
+
shape: {
|
|
24
|
+
type: String,
|
|
25
|
+
value: 'round',
|
|
26
|
+
},
|
|
27
|
+
iconSize: {
|
|
28
|
+
type: null,
|
|
29
|
+
value: 20,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
data: {
|
|
33
|
+
direction: '',
|
|
34
|
+
parentDisabled: false,
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
updateFromParent: function () {
|
|
38
|
+
if (!this.parent) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
var _a = this.parent.data, value = _a.value, parentDisabled = _a.disabled, direction = _a.direction;
|
|
42
|
+
this.setData({
|
|
43
|
+
value: value,
|
|
44
|
+
direction: direction,
|
|
45
|
+
parentDisabled: parentDisabled,
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
emitChange: function (value) {
|
|
49
|
+
var instance = this.parent || this;
|
|
50
|
+
instance.$emit('input', value);
|
|
51
|
+
instance.$emit('change', value);
|
|
52
|
+
if ((0, version_1.canIUseModel)()) {
|
|
53
|
+
instance.setData({ value: value });
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
onChange: function () {
|
|
57
|
+
if (!this.data.disabled && !this.data.parentDisabled) {
|
|
58
|
+
this.emitChange(this.data.name);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
onClickLabel: function () {
|
|
62
|
+
var _a = this.data, disabled = _a.disabled, parentDisabled = _a.parentDisabled, labelDisabled = _a.labelDisabled, name = _a.name;
|
|
63
|
+
if (!(disabled || parentDisabled) && !labelDisabled) {
|
|
64
|
+
this.emitChange(name);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
});
|