@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,29 @@
|
|
|
1
|
+
/// <reference types="miniprogram-api-typings" />
|
|
2
|
+
interface MeeComponentInstance {
|
|
3
|
+
parent: WechatMiniprogram.Component.TrivialInstance;
|
|
4
|
+
children: WechatMiniprogram.Component.TrivialInstance[];
|
|
5
|
+
index: number;
|
|
6
|
+
$emit: (name: string, detail?: unknown, options?: WechatMiniprogram.Component.TriggerEventOption) => void;
|
|
7
|
+
setView: (value: Record<string, any>, callback?: () => void) => void;
|
|
8
|
+
}
|
|
9
|
+
export type MeeComponentOptions<Data extends WechatMiniprogram.Component.DataOption, Props extends WechatMiniprogram.Component.PropertyOption, Methods extends WechatMiniprogram.Component.MethodOption> = {
|
|
10
|
+
data?: Data;
|
|
11
|
+
field?: boolean;
|
|
12
|
+
classes?: string[];
|
|
13
|
+
mixins?: string[];
|
|
14
|
+
props?: Props;
|
|
15
|
+
relation?: {
|
|
16
|
+
relations: Record<string, WechatMiniprogram.Component.RelationOption>;
|
|
17
|
+
mixin: string;
|
|
18
|
+
};
|
|
19
|
+
watch?: Record<string, (...args: any[]) => any>;
|
|
20
|
+
methods?: Methods;
|
|
21
|
+
beforeCreate?: () => void;
|
|
22
|
+
created?: () => void;
|
|
23
|
+
mounted?: () => void;
|
|
24
|
+
destroyed?: () => void;
|
|
25
|
+
} & ThisType<MeeComponentInstance & WechatMiniprogram.Component.Instance<Data & {
|
|
26
|
+
name: string;
|
|
27
|
+
value: any;
|
|
28
|
+
} & Record<string, any>, Props, Methods> & Record<string, any>>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="miniprogram-api-typings" />
|
|
2
|
+
/// <reference types="miniprogram-api-typings" />
|
|
3
|
+
export type Action = 'confirm' | 'cancel' | 'overlay';
|
|
4
|
+
type DialogContext = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
|
|
5
|
+
interface DialogOptions {
|
|
6
|
+
lang?: string;
|
|
7
|
+
show?: boolean;
|
|
8
|
+
title?: string;
|
|
9
|
+
width?: string | number | null;
|
|
10
|
+
zIndex?: number;
|
|
11
|
+
theme?: string;
|
|
12
|
+
context?: (() => DialogContext) | DialogContext;
|
|
13
|
+
message?: string;
|
|
14
|
+
overlay?: boolean;
|
|
15
|
+
selector?: string;
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated use custom-class instead
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
customStyle?: string;
|
|
22
|
+
transition?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated use beforeClose instead
|
|
25
|
+
*/
|
|
26
|
+
asyncClose?: boolean;
|
|
27
|
+
beforeClose?: null | ((action: Action) => Promise<void | boolean> | void);
|
|
28
|
+
businessId?: number;
|
|
29
|
+
sessionFrom?: string;
|
|
30
|
+
overlayStyle?: string;
|
|
31
|
+
appParameter?: string;
|
|
32
|
+
messageAlign?: string;
|
|
33
|
+
sendMessageImg?: string;
|
|
34
|
+
showMessageCard?: boolean;
|
|
35
|
+
sendMessagePath?: string;
|
|
36
|
+
sendMessageTitle?: string;
|
|
37
|
+
confirmButtonText?: string;
|
|
38
|
+
cancelButtonText?: string;
|
|
39
|
+
showConfirmButton?: boolean;
|
|
40
|
+
showCancelButton?: boolean;
|
|
41
|
+
closeOnClickOverlay?: boolean;
|
|
42
|
+
confirmButtonOpenType?: string;
|
|
43
|
+
}
|
|
44
|
+
declare const Dialog: {
|
|
45
|
+
(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
|
|
46
|
+
alert(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
|
|
47
|
+
confirm(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
|
|
48
|
+
close(): void;
|
|
49
|
+
stopLoading(): void;
|
|
50
|
+
currentOptions: DialogOptions;
|
|
51
|
+
defaultOptions: DialogOptions;
|
|
52
|
+
setDefaultOptions(options: DialogOptions): void;
|
|
53
|
+
resetDefaultOptions(): void;
|
|
54
|
+
};
|
|
55
|
+
export default Dialog;
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var queue = [];
|
|
15
|
+
var defaultOptions = {
|
|
16
|
+
show: false,
|
|
17
|
+
title: '',
|
|
18
|
+
width: null,
|
|
19
|
+
theme: 'default',
|
|
20
|
+
message: '',
|
|
21
|
+
zIndex: 100,
|
|
22
|
+
overlay: true,
|
|
23
|
+
selector: '#mee-dialog',
|
|
24
|
+
className: '',
|
|
25
|
+
asyncClose: false,
|
|
26
|
+
beforeClose: null,
|
|
27
|
+
transition: 'scale',
|
|
28
|
+
customStyle: '',
|
|
29
|
+
messageAlign: '',
|
|
30
|
+
overlayStyle: '',
|
|
31
|
+
confirmButtonText: '确认',
|
|
32
|
+
cancelButtonText: '取消',
|
|
33
|
+
showConfirmButton: true,
|
|
34
|
+
showCancelButton: false,
|
|
35
|
+
closeOnClickOverlay: false,
|
|
36
|
+
confirmButtonOpenType: '',
|
|
37
|
+
};
|
|
38
|
+
var currentOptions = __assign({}, defaultOptions);
|
|
39
|
+
function getContext() {
|
|
40
|
+
var pages = getCurrentPages();
|
|
41
|
+
return pages[pages.length - 1];
|
|
42
|
+
}
|
|
43
|
+
var Dialog = function (options) {
|
|
44
|
+
options = __assign(__assign({}, currentOptions), options);
|
|
45
|
+
return new Promise(function (resolve, reject) {
|
|
46
|
+
var context = (typeof options.context === 'function'
|
|
47
|
+
? options.context()
|
|
48
|
+
: options.context) || getContext();
|
|
49
|
+
var dialog = context.selectComponent(options.selector);
|
|
50
|
+
delete options.context;
|
|
51
|
+
delete options.selector;
|
|
52
|
+
if (dialog) {
|
|
53
|
+
dialog.setData(__assign({ callback: function (action, instance) {
|
|
54
|
+
action === 'confirm' ? resolve(instance) : reject(instance);
|
|
55
|
+
} }, options));
|
|
56
|
+
wx.nextTick(function () {
|
|
57
|
+
dialog.setData({ show: true });
|
|
58
|
+
});
|
|
59
|
+
queue.push(dialog);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
console.warn('未找到 mee-dialog 节点,请确认 selector 及 context 是否正确');
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
Dialog.alert = function (options) { return Dialog(options); };
|
|
67
|
+
Dialog.confirm = function (options) {
|
|
68
|
+
return Dialog(__assign({ showCancelButton: true }, options));
|
|
69
|
+
};
|
|
70
|
+
Dialog.close = function () {
|
|
71
|
+
queue.forEach(function (dialog) {
|
|
72
|
+
dialog.close();
|
|
73
|
+
});
|
|
74
|
+
queue = [];
|
|
75
|
+
};
|
|
76
|
+
Dialog.stopLoading = function () {
|
|
77
|
+
queue.forEach(function (dialog) {
|
|
78
|
+
dialog.stopLoading();
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
Dialog.currentOptions = currentOptions;
|
|
82
|
+
Dialog.defaultOptions = defaultOptions;
|
|
83
|
+
Dialog.setDefaultOptions = function (options) {
|
|
84
|
+
currentOptions = __assign(__assign({}, currentOptions), options);
|
|
85
|
+
Dialog.currentOptions = currentOptions;
|
|
86
|
+
};
|
|
87
|
+
Dialog.resetDefaultOptions = function () {
|
|
88
|
+
currentOptions = __assign({}, defaultOptions);
|
|
89
|
+
Dialog.currentOptions = currentOptions;
|
|
90
|
+
};
|
|
91
|
+
Dialog.resetDefaultOptions();
|
|
92
|
+
exports.default = Dialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,136 @@
|
|
|
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 color_1 = require("../common/color");
|
|
6
|
+
var utils_1 = require("../common/utils");
|
|
7
|
+
(0, component_1.MeeComponent)({
|
|
8
|
+
mixins: [button_1.button],
|
|
9
|
+
classes: ['cancle-button-class', 'confirm-button-class'],
|
|
10
|
+
props: {
|
|
11
|
+
show: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
observer: function (show) {
|
|
14
|
+
!show && this.stopLoading();
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
title: String,
|
|
18
|
+
message: String,
|
|
19
|
+
theme: {
|
|
20
|
+
type: String,
|
|
21
|
+
value: 'default',
|
|
22
|
+
},
|
|
23
|
+
confirmButtonId: String,
|
|
24
|
+
className: String,
|
|
25
|
+
customStyle: String,
|
|
26
|
+
asyncClose: Boolean,
|
|
27
|
+
messageAlign: String,
|
|
28
|
+
beforeClose: null,
|
|
29
|
+
overlayStyle: String,
|
|
30
|
+
useSlot: Boolean,
|
|
31
|
+
useTitleSlot: Boolean,
|
|
32
|
+
useConfirmButtonSlot: Boolean,
|
|
33
|
+
useCancelButtonSlot: Boolean,
|
|
34
|
+
showCancelButton: Boolean,
|
|
35
|
+
closeOnClickOverlay: Boolean,
|
|
36
|
+
confirmButtonOpenType: String,
|
|
37
|
+
width: null,
|
|
38
|
+
zIndex: {
|
|
39
|
+
type: Number,
|
|
40
|
+
value: 2000,
|
|
41
|
+
},
|
|
42
|
+
confirmButtonText: {
|
|
43
|
+
type: String,
|
|
44
|
+
value: '确认',
|
|
45
|
+
},
|
|
46
|
+
cancelButtonText: {
|
|
47
|
+
type: String,
|
|
48
|
+
value: '取消',
|
|
49
|
+
},
|
|
50
|
+
confirmButtonColor: {
|
|
51
|
+
type: String,
|
|
52
|
+
value: color_1.RED,
|
|
53
|
+
},
|
|
54
|
+
cancelButtonColor: {
|
|
55
|
+
type: String,
|
|
56
|
+
value: color_1.GRAY,
|
|
57
|
+
},
|
|
58
|
+
showConfirmButton: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
value: true,
|
|
61
|
+
},
|
|
62
|
+
overlay: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
value: true,
|
|
65
|
+
},
|
|
66
|
+
transition: {
|
|
67
|
+
type: String,
|
|
68
|
+
value: 'scale',
|
|
69
|
+
},
|
|
70
|
+
rootPortal: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
value: false,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
data: {
|
|
76
|
+
loading: {
|
|
77
|
+
confirm: false,
|
|
78
|
+
cancel: false,
|
|
79
|
+
},
|
|
80
|
+
callback: (function () { }),
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
onConfirm: function () {
|
|
84
|
+
this.handleAction('confirm');
|
|
85
|
+
},
|
|
86
|
+
onCancel: function () {
|
|
87
|
+
this.handleAction('cancel');
|
|
88
|
+
},
|
|
89
|
+
onClickOverlay: function () {
|
|
90
|
+
this.close('overlay');
|
|
91
|
+
},
|
|
92
|
+
close: function (action) {
|
|
93
|
+
this.setData({ show: false });
|
|
94
|
+
this.closeAction = action;
|
|
95
|
+
},
|
|
96
|
+
onAfterLeave: function () {
|
|
97
|
+
var action = this.closeAction;
|
|
98
|
+
this.$emit('close', action);
|
|
99
|
+
var callback = this.data.callback;
|
|
100
|
+
if (callback) {
|
|
101
|
+
callback(action, this);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
stopLoading: function () {
|
|
105
|
+
this.setData({
|
|
106
|
+
loading: {
|
|
107
|
+
confirm: false,
|
|
108
|
+
cancel: false,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
handleAction: function (action) {
|
|
113
|
+
var _a;
|
|
114
|
+
var _this = this;
|
|
115
|
+
this.$emit(action, { dialog: this });
|
|
116
|
+
var _b = this.data, asyncClose = _b.asyncClose, beforeClose = _b.beforeClose;
|
|
117
|
+
if (!asyncClose && !beforeClose) {
|
|
118
|
+
this.close(action);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
this.setData((_a = {},
|
|
122
|
+
_a["loading.".concat(action)] = true,
|
|
123
|
+
_a));
|
|
124
|
+
if (beforeClose) {
|
|
125
|
+
(0, utils_1.toPromise)(beforeClose(action)).then(function (value) {
|
|
126
|
+
if (value) {
|
|
127
|
+
_this.close(action);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
_this.stopLoading();
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
});
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
2
|
+
|
|
3
|
+
<mee-popup
|
|
4
|
+
show="{{ show }}"
|
|
5
|
+
z-index="{{ zIndex }}"
|
|
6
|
+
overlay="{{ overlay }}"
|
|
7
|
+
transition="{{ transition }}"
|
|
8
|
+
custom-class="mee-dialog mee-dialog--{{ theme }}{{ className }} custom-class"
|
|
9
|
+
custom-style="width: {{ utils.addUnit(width) }};{{ customStyle }}"
|
|
10
|
+
overlay-style="{{ overlayStyle }}"
|
|
11
|
+
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
|
12
|
+
root-portal="{{ rootPortal }}"
|
|
13
|
+
bind:close="onClickOverlay"
|
|
14
|
+
bind:after-leave="onAfterLeave"
|
|
15
|
+
>
|
|
16
|
+
<view
|
|
17
|
+
wx:if="{{ title || useTitleSlot }}"
|
|
18
|
+
class="{{ utils.bem('dialog__header', { isolated: !(message || useSlot) }) }}"
|
|
19
|
+
>
|
|
20
|
+
<slot wx:if="{{ useTitleSlot }}" name="title" />
|
|
21
|
+
<block wx:elif="{{ title }}">{{ title }}</block>
|
|
22
|
+
</view>
|
|
23
|
+
|
|
24
|
+
<slot wx:if="{{ useSlot }}" />
|
|
25
|
+
<view
|
|
26
|
+
wx:elif="{{ message }}"
|
|
27
|
+
class="{{ utils.bem('dialog__message', [theme, messageAlign, { hasTitle: title }]) }}"
|
|
28
|
+
>
|
|
29
|
+
<text class="mee-dialog__message-text">{{ message }}</text>
|
|
30
|
+
</view>
|
|
31
|
+
|
|
32
|
+
<mee-goods-action wx:if="{{ theme === 'round-button' }}" custom-class="mee-dialog__footer--round-button">
|
|
33
|
+
<mee-goods-action-button
|
|
34
|
+
wx:if="{{ showCancelButton }}"
|
|
35
|
+
size="large"
|
|
36
|
+
loading="{{ loading.cancel }}"
|
|
37
|
+
class="mee-dialog__button mee-hairline--right"
|
|
38
|
+
custom-class="mee-dialog__cancel cancle-button-class"
|
|
39
|
+
custom-style="color: {{ cancelButtonColor }}"
|
|
40
|
+
bind:click="onCancel"
|
|
41
|
+
>
|
|
42
|
+
{{ cancelButtonText }}
|
|
43
|
+
</mee-goods-action-button>
|
|
44
|
+
<mee-goods-action-button
|
|
45
|
+
wx:if="{{ showConfirmButton }}"
|
|
46
|
+
size="large"
|
|
47
|
+
class="mee-dialog__button"
|
|
48
|
+
loading="{{ loading.confirm }}"
|
|
49
|
+
custom-class="mee-dialog__confirm confirm-button-class"
|
|
50
|
+
custom-style="color: {{ confirmButtonColor }}"
|
|
51
|
+
button-id="{{ confirmButtonId }}"
|
|
52
|
+
open-type="{{ confirmButtonOpenType }}"
|
|
53
|
+
lang="{{ lang }}"
|
|
54
|
+
business-id="{{ businessId }}"
|
|
55
|
+
session-from="{{ sessionFrom }}"
|
|
56
|
+
send-message-title="{{ sendMessageTitle }}"
|
|
57
|
+
send-message-path="{{ sendMessagePath }}"
|
|
58
|
+
send-message-img="{{ sendMessageImg }}"
|
|
59
|
+
show-message-card="{{ showMessageCard }}"
|
|
60
|
+
app-parameter="{{ appParameter }}"
|
|
61
|
+
bindagreeprivacyauthorization="onAgreePrivacyAuthorization"
|
|
62
|
+
bindgetRealTimePhoneNumber="onGetRealTimePhoneNumber"
|
|
63
|
+
bind:click="onConfirm"
|
|
64
|
+
bindgetuserinfo="onGetUserInfo"
|
|
65
|
+
bindcontact="onContact"
|
|
66
|
+
bindgetphonenumber="onGetPhoneNumber"
|
|
67
|
+
binderror="onError"
|
|
68
|
+
bindlaunchapp="onLaunchApp"
|
|
69
|
+
bindopensetting="onOpenSetting"
|
|
70
|
+
>
|
|
71
|
+
{{ confirmButtonText }}
|
|
72
|
+
</mee-goods-action-button>
|
|
73
|
+
</mee-goods-action>
|
|
74
|
+
|
|
75
|
+
<view wx:elif="{{ showCancelButton || showConfirmButton }}" class="mee-hairline--top mee-dialog__footer">
|
|
76
|
+
<block wx:if="{{ showCancelButton }}">
|
|
77
|
+
<slot wx:if="{{ useCancelButtonSlot }}" name="cancel-button" />
|
|
78
|
+
|
|
79
|
+
<mee-button
|
|
80
|
+
wx:else
|
|
81
|
+
size="large"
|
|
82
|
+
loading="{{ loading.cancel }}"
|
|
83
|
+
class="mee-dialog__button mee-hairline--right"
|
|
84
|
+
custom-class="mee-dialog__cancel cancle-button-class"
|
|
85
|
+
custom-style="color: {{ cancelButtonColor }}"
|
|
86
|
+
bind:click="onCancel"
|
|
87
|
+
>
|
|
88
|
+
{{ cancelButtonText }}
|
|
89
|
+
</mee-button>
|
|
90
|
+
</block>
|
|
91
|
+
|
|
92
|
+
<block wx:if="{{ showConfirmButton }}">
|
|
93
|
+
<slot wx:if="{{ useConfirmButtonSlot }}" name="confirm-button" />
|
|
94
|
+
|
|
95
|
+
<mee-button
|
|
96
|
+
wx:else
|
|
97
|
+
size="large"
|
|
98
|
+
class="mee-dialog__button"
|
|
99
|
+
loading="{{ loading.confirm }}"
|
|
100
|
+
custom-class="mee-dialog__confirm confirm-button-class"
|
|
101
|
+
custom-style="color: {{ confirmButtonColor }}"
|
|
102
|
+
button-id="{{ confirmButtonId }}"
|
|
103
|
+
open-type="{{ confirmButtonOpenType }}"
|
|
104
|
+
lang="{{ lang }}"
|
|
105
|
+
business-id="{{ businessId }}"
|
|
106
|
+
session-from="{{ sessionFrom }}"
|
|
107
|
+
send-message-title="{{ sendMessageTitle }}"
|
|
108
|
+
send-message-path="{{ sendMessagePath }}"
|
|
109
|
+
send-message-img="{{ sendMessageImg }}"
|
|
110
|
+
show-message-card="{{ showMessageCard }}"
|
|
111
|
+
app-parameter="{{ appParameter }}"
|
|
112
|
+
bindagreeprivacyauthorization="onAgreePrivacyAuthorization"
|
|
113
|
+
bindgetRealTimePhoneNumber="onGetRealTimePhoneNumber"
|
|
114
|
+
bind:click="onConfirm"
|
|
115
|
+
bindgetuserinfo="onGetUserInfo"
|
|
116
|
+
bindcontact="onContact"
|
|
117
|
+
bindgetphonenumber="onGetPhoneNumber"
|
|
118
|
+
binderror="onError"
|
|
119
|
+
bindlaunchapp="onLaunchApp"
|
|
120
|
+
bindopensetting="onOpenSetting"
|
|
121
|
+
>
|
|
122
|
+
{{ confirmButtonText }}
|
|
123
|
+
</mee-button>
|
|
124
|
+
</block>
|
|
125
|
+
</view>
|
|
126
|
+
</mee-popup>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../common/index.wxss';.mee-dialog{background-color:var(--dialog-background-color,#fff);border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,320px)}@media (max-width:321px){.mee-dialog{width:var(--dialog-small-screen-width,90%)}}.mee-dialog__header{font-weight:var(--dialog-header-font-weight,500);line-height:var(--dialog-header-line-height,24px);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.mee-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.mee-dialog__message{-webkit-overflow-scrolling:touch;font-size:var(--dialog-message-font-size,14px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.mee-dialog__message-text{word-wrap:break-word}.mee-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,#646566);padding-top:var(--dialog-has-title-message-padding-top,8px)}.mee-dialog__message--round-button{color:#323233;padding-bottom:16px}.mee-dialog__message--left{text-align:left}.mee-dialog__message--right{text-align:right}.mee-dialog__message--justify{text-align:justify}.mee-dialog__footer{display:flex}.mee-dialog__footer--round-button{padding:8px 24px 16px!important;position:relative!important}.mee-dialog__button{flex:1}.mee-dialog__cancel,.mee-dialog__confirm{border:0!important}.mee-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.mee-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var component_1 = require("../common/component");
|
|
4
|
+
(0, component_1.MeeComponent)({
|
|
5
|
+
props: {
|
|
6
|
+
dashed: Boolean,
|
|
7
|
+
hairline: Boolean,
|
|
8
|
+
contentPosition: String,
|
|
9
|
+
fontSize: String,
|
|
10
|
+
borderColor: String,
|
|
11
|
+
textColor: String,
|
|
12
|
+
customStyle: String,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
2
|
+
<wxs src="./index.wxs" module="computed" />
|
|
3
|
+
|
|
4
|
+
<view
|
|
5
|
+
class="custom-class {{ utils.bem('divider', [{ dashed, hairline }, contentPosition]) }}"
|
|
6
|
+
style="{{ computed.rootStyle({ borderColor, textColor, fontSize, customStyle }) }}"
|
|
7
|
+
>
|
|
8
|
+
<slot />
|
|
9
|
+
</view>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var style = require('../wxs/style.wxs');
|
|
3
|
+
var addUnit = require('../wxs/add-unit.wxs');
|
|
4
|
+
|
|
5
|
+
function rootStyle(data) {
|
|
6
|
+
return style([
|
|
7
|
+
{
|
|
8
|
+
'border-color': data.borderColor,
|
|
9
|
+
color: data.textColor,
|
|
10
|
+
'font-size': addUnit(data.fontSize),
|
|
11
|
+
},
|
|
12
|
+
data.customStyle,
|
|
13
|
+
]);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = {
|
|
17
|
+
rootStyle: rootStyle,
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../common/index.wxss';.mee-divider{align-items:center;border:0 solid var(--divider-border-color,#ebedf0);color:var(--divider-text-color,#969799);display:flex;font-size:var(--divider-font-size,14px);line-height:var(--divider-line-height,24px);margin:var(--divider-margin,16px 0)}.mee-divider:after,.mee-divider:before{border-color:inherit;border-style:inherit;border-width:1px 0 0;box-sizing:border-box;display:block;flex:1;height:1px}.mee-divider:before{content:""}.mee-divider--hairline:after,.mee-divider--hairline:before{transform:scaleY(.5)}.mee-divider--dashed{border-style:dashed}.mee-divider--center:before,.mee-divider--left:before,.mee-divider--right:before{margin-right:var(--divider-content-padding,16px)}.mee-divider--center:after,.mee-divider--left:after,.mee-divider--right:after{content:"";margin-left:var(--divider-content-padding,16px)}.mee-divider--left:before{max-width:var(--divider-content-left-width,10%)}.mee-divider--right:after{max-width:var(--divider-content-right-width,10%)}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
2
|
+
|
|
3
|
+
<view
|
|
4
|
+
wx:if="{{ showWrapper }}"
|
|
5
|
+
class="{{ utils.bem('dropdown-item', direction) }} custom-class"
|
|
6
|
+
style="{{ wrapperStyle }}"
|
|
7
|
+
>
|
|
8
|
+
<mee-popup
|
|
9
|
+
show="{{ showPopup }}"
|
|
10
|
+
custom-style="position: absolute; {{ popupStyle }}"
|
|
11
|
+
overlay-style="position: absolute;"
|
|
12
|
+
overlay="{{ overlay }}"
|
|
13
|
+
position="{{ direction === 'down' ? 'top' : 'bottom' }}"
|
|
14
|
+
duration="{{ transition ? duration : 0 }}"
|
|
15
|
+
safe-area-tab-bar="{{ safeAreaTabBar }}"
|
|
16
|
+
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
|
17
|
+
bind:enter="onOpen"
|
|
18
|
+
bind:leave="onClose"
|
|
19
|
+
bind:close="toggle"
|
|
20
|
+
bind:after-enter="onOpened"
|
|
21
|
+
bind:after-leave="onClosed"
|
|
22
|
+
>
|
|
23
|
+
<mee-cell
|
|
24
|
+
wx:for="{{ options }}"
|
|
25
|
+
wx:key="value"
|
|
26
|
+
data-option="{{ item }}"
|
|
27
|
+
class="{{ utils.bem('dropdown-item__option', { active: item.value === value } ) }}"
|
|
28
|
+
clickable
|
|
29
|
+
icon="{{ item.icon }}"
|
|
30
|
+
bind:tap="onOptionTap"
|
|
31
|
+
>
|
|
32
|
+
<view
|
|
33
|
+
slot="title"
|
|
34
|
+
class="mee-dropdown-item__title item-title-class"
|
|
35
|
+
style="{{ item.value === value ? 'color:' + activeColor : '' }}"
|
|
36
|
+
>
|
|
37
|
+
{{ item.text }}
|
|
38
|
+
</view>
|
|
39
|
+
<mee-icon
|
|
40
|
+
wx:if="{{ item.value === value }}"
|
|
41
|
+
name="success"
|
|
42
|
+
class="mee-dropdown-item__icon"
|
|
43
|
+
color="{{ activeColor }}"
|
|
44
|
+
/>
|
|
45
|
+
</mee-cell>
|
|
46
|
+
|
|
47
|
+
<slot />
|
|
48
|
+
</mee-popup>
|
|
49
|
+
</view>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|