persagy-vant 0.0.26 → 0.0.28
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/README.md +9 -7
- package/es/icon/base-iconfont.css +1 -0
- package/es/icon/base-iconfont.less +1144 -0
- package/es/icon/config.d.ts +7 -0
- package/es/icon/config.mjs +268 -0
- package/es/icon/index.less +1 -1
- package/es/icon/latest-iconfont.less +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/label/Label.d.ts +92 -0
- package/es/label/Label.mjs +95 -0
- package/es/label/index.css +1 -0
- package/es/label/index.d.ts +64 -0
- package/es/label/index.less +113 -0
- package/es/label/index.mjs +8 -0
- package/es/label/style/index.mjs +6 -0
- package/es/label/style/less.mjs +6 -0
- package/es/label/var.css +0 -0
- package/es/label/var.less +11 -0
- package/es/material-add/MaterialAdd.d.ts +104 -0
- package/es/material-add/MaterialAdd.mjs +63 -23
- package/es/material-add/index.d.ts +72 -0
- package/es/radio-panel/RadioPanel.d.ts +46 -1
- package/es/radio-panel/RadioPanel.mjs +115 -29
- package/es/radio-panel/index.css +1 -1
- package/es/radio-panel/index.d.ts +35 -1
- package/es/radio-panel/index.less +17 -0
- package/es/radio-panel/style/index.mjs +4 -0
- package/es/radio-panel/style/less.mjs +4 -0
- package/es/tabs/TabsTitle.mjs +1 -0
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.less +11 -0
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.css +1 -1
- package/es/tag/index.less +7 -0
- package/es/tag/var.less +3 -0
- package/lib/icon/base-iconfont.css +1 -0
- package/lib/icon/base-iconfont.less +1144 -0
- package/lib/icon/config.d.ts +7 -0
- package/lib/icon/config.js +287 -0
- package/lib/icon/index.less +1 -1
- package/lib/icon/latest-iconfont.less +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/index.less +2 -1
- package/lib/label/Label.d.ts +92 -0
- package/lib/label/Label.js +114 -0
- package/lib/label/index.css +1 -0
- package/lib/label/index.d.ts +64 -0
- package/lib/label/index.js +37 -0
- package/lib/label/index.less +113 -0
- package/lib/label/style/index.js +6 -0
- package/lib/label/style/less.js +6 -0
- package/lib/label/var.css +0 -0
- package/lib/label/var.less +11 -0
- package/lib/material-add/MaterialAdd.d.ts +104 -0
- package/lib/material-add/MaterialAdd.js +63 -23
- package/lib/material-add/index.d.ts +72 -0
- package/lib/radio-panel/RadioPanel.d.ts +46 -1
- package/lib/radio-panel/RadioPanel.js +114 -28
- package/lib/radio-panel/index.css +1 -1
- package/lib/radio-panel/index.d.ts +35 -1
- package/lib/radio-panel/index.less +17 -0
- package/lib/radio-panel/style/index.js +4 -0
- package/lib/radio-panel/style/less.js +4 -0
- package/lib/tabs/TabsTitle.js +1 -0
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.less +11 -0
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.less +7 -0
- package/lib/tag/var.less +3 -0
- package/lib/vant.cjs.js +998 -785
- package/lib/vant.es.js +998 -785
- package/lib/vant.js +998 -785
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +4 -4
- package/skills/use-persagy-vant/SKILL.md +2 -2
- package/skills/use-persagy-vant/references/business-component-catalog.md +1 -1
- package/skills/use-persagy-vant/references/component-catalog.md +1 -1
- package/es/action-bar/style/index.d.ts +0 -1
- package/es/action-bar/style/less.d.ts +0 -1
- package/es/action-bar-button/style/index.d.ts +0 -1
- package/es/action-bar-button/style/less.d.ts +0 -1
- package/es/action-bar-icon/style/index.d.ts +0 -1
- package/es/action-bar-icon/style/less.d.ts +0 -1
- package/es/action-sheet/style/index.d.ts +0 -1
- package/es/action-sheet/style/less.d.ts +0 -1
- package/es/address-edit/style/index.d.ts +0 -1
- package/es/address-edit/style/less.d.ts +0 -1
- package/es/address-list/style/index.d.ts +0 -1
- package/es/address-list/style/less.d.ts +0 -1
- package/es/area/style/index.d.ts +0 -1
- package/es/area/style/less.d.ts +0 -1
- package/es/background/style/index.d.ts +0 -1
- package/es/background/style/less.d.ts +0 -1
- package/es/badge/style/index.d.ts +0 -1
- package/es/badge/style/less.d.ts +0 -1
- package/es/blue-mark/style/index.d.ts +0 -1
- package/es/blue-mark/style/less.d.ts +0 -1
- package/es/bottom-action-bar/style/index.d.ts +0 -1
- package/es/bottom-action-bar/style/less.d.ts +0 -1
- package/es/button/style/index.d.ts +0 -1
- package/es/button/style/less.d.ts +0 -1
- package/es/calendar/style/index.d.ts +0 -1
- package/es/calendar/style/less.d.ts +0 -1
- package/es/card/style/index.d.ts +0 -1
- package/es/card/style/less.d.ts +0 -1
- package/es/cascader/style/index.d.ts +0 -1
- package/es/cascader/style/less.d.ts +0 -1
- package/es/cell/style/index.d.ts +0 -1
- package/es/cell/style/less.d.ts +0 -1
- package/es/cell-group/style/index.d.ts +0 -1
- package/es/cell-group/style/less.d.ts +0 -1
- package/es/checkbox/style/index.d.ts +0 -1
- package/es/checkbox/style/less.d.ts +0 -1
- package/es/checkbox-group/style/index.d.ts +0 -1
- package/es/checkbox-group/style/less.d.ts +0 -1
- package/es/checkbox-panel/style/index.d.ts +0 -1
- package/es/checkbox-panel/style/less.d.ts +0 -1
- package/es/circle/style/index.d.ts +0 -1
- package/es/circle/style/less.d.ts +0 -1
- package/es/col/style/index.d.ts +0 -1
- package/es/col/style/less.d.ts +0 -1
- package/es/collapse/style/index.d.ts +0 -1
- package/es/collapse/style/less.d.ts +0 -1
- package/es/collapse-item/style/index.d.ts +0 -1
- package/es/collapse-item/style/less.d.ts +0 -1
- package/es/config-provider/style/index.d.ts +0 -1
- package/es/config-provider/style/less.d.ts +0 -1
- package/es/contact-card/style/index.d.ts +0 -1
- package/es/contact-card/style/less.d.ts +0 -1
- package/es/contact-edit/style/index.d.ts +0 -1
- package/es/contact-edit/style/less.d.ts +0 -1
- package/es/contact-list/style/index.d.ts +0 -1
- package/es/contact-list/style/less.d.ts +0 -1
- package/es/count-down/style/index.d.ts +0 -1
- package/es/count-down/style/less.d.ts +0 -1
- package/es/coupon/style/index.d.ts +0 -1
- package/es/coupon/style/less.d.ts +0 -1
- package/es/coupon-cell/style/index.d.ts +0 -1
- package/es/coupon-cell/style/less.d.ts +0 -1
- package/es/coupon-list/style/index.d.ts +0 -1
- package/es/coupon-list/style/less.d.ts +0 -1
- package/es/datetime-picker/style/index.d.ts +0 -1
- package/es/datetime-picker/style/less.d.ts +0 -1
- package/es/dialog/style/index.d.ts +0 -1
- package/es/dialog/style/less.d.ts +0 -1
- package/es/divider/style/index.d.ts +0 -1
- package/es/divider/style/less.d.ts +0 -1
- package/es/dropdown-item/style/index.d.ts +0 -1
- package/es/dropdown-item/style/less.d.ts +0 -1
- package/es/dropdown-menu/style/index.d.ts +0 -1
- package/es/dropdown-menu/style/less.d.ts +0 -1
- package/es/empty/style/index.d.ts +0 -1
- package/es/empty/style/less.d.ts +0 -1
- package/es/field/style/index.d.ts +0 -1
- package/es/field/style/less.d.ts +0 -1
- package/es/filter-tag/style/index.d.ts +0 -1
- package/es/filter-tag/style/less.d.ts +0 -1
- package/es/floor-select/style/index.d.ts +0 -1
- package/es/floor-select/style/less.d.ts +0 -1
- package/es/form/style/index.d.ts +0 -1
- package/es/form/style/less.d.ts +0 -1
- package/es/form-panel/style/index.d.ts +0 -1
- package/es/form-panel/style/less.d.ts +0 -1
- package/es/friendly-tip/style/index.d.ts +0 -1
- package/es/friendly-tip/style/less.d.ts +0 -1
- package/es/grid/style/index.d.ts +0 -1
- package/es/grid/style/less.d.ts +0 -1
- package/es/grid-item/style/index.d.ts +0 -1
- package/es/grid-item/style/less.d.ts +0 -1
- package/es/icon/style/index.d.ts +0 -1
- package/es/icon/style/less.d.ts +0 -1
- package/es/image/style/index.d.ts +0 -1
- package/es/image/style/less.d.ts +0 -1
- package/es/image-preview/style/index.d.ts +0 -1
- package/es/image-preview/style/less.d.ts +0 -1
- package/es/index-anchor/style/index.d.ts +0 -1
- package/es/index-anchor/style/less.d.ts +0 -1
- package/es/index-bar/style/index.d.ts +0 -1
- package/es/index-bar/style/less.d.ts +0 -1
- package/es/lazyload/style/index.d.ts +0 -1
- package/es/lazyload/style/less.d.ts +0 -1
- package/es/list/style/index.d.ts +0 -1
- package/es/list/style/less.d.ts +0 -1
- package/es/loading/style/index.d.ts +0 -1
- package/es/loading/style/less.d.ts +0 -1
- package/es/locale/style/index.d.ts +0 -1
- package/es/locale/style/less.d.ts +0 -1
- package/es/location-select/style/index.d.ts +0 -1
- package/es/location-select/style/less.d.ts +0 -1
- package/es/material-add/style/index.d.ts +0 -1
- package/es/material-add/style/less.d.ts +0 -1
- package/es/multi-person-select/style/index.d.ts +0 -1
- package/es/multi-person-select/style/less.d.ts +0 -1
- package/es/nav-bar/style/index.d.ts +0 -1
- package/es/nav-bar/style/less.d.ts +0 -1
- package/es/notice-bar/style/index.d.ts +0 -1
- package/es/notice-bar/style/less.d.ts +0 -1
- package/es/notify/style/index.d.ts +0 -1
- package/es/notify/style/less.d.ts +0 -1
- package/es/number-keyboard/style/index.d.ts +0 -1
- package/es/number-keyboard/style/less.d.ts +0 -1
- package/es/object-select/style/index.d.ts +0 -1
- package/es/object-select/style/less.d.ts +0 -1
- package/es/overlay/style/index.d.ts +0 -1
- package/es/overlay/style/less.d.ts +0 -1
- package/es/pagination/style/index.d.ts +0 -1
- package/es/pagination/style/less.d.ts +0 -1
- package/es/password-input/style/index.d.ts +0 -1
- package/es/password-input/style/less.d.ts +0 -1
- package/es/picker/style/index.d.ts +0 -1
- package/es/picker/style/less.d.ts +0 -1
- package/es/popover/style/index.d.ts +0 -1
- package/es/popover/style/less.d.ts +0 -1
- package/es/popup/style/index.d.ts +0 -1
- package/es/popup/style/less.d.ts +0 -1
- package/es/progress/style/index.d.ts +0 -1
- package/es/progress/style/less.d.ts +0 -1
- package/es/pull-refresh/style/index.d.ts +0 -1
- package/es/pull-refresh/style/less.d.ts +0 -1
- package/es/quantity-input/style/index.d.ts +0 -1
- package/es/quantity-input/style/less.d.ts +0 -1
- package/es/radio/style/index.d.ts +0 -1
- package/es/radio/style/less.d.ts +0 -1
- package/es/radio-group/style/index.d.ts +0 -1
- package/es/radio-group/style/less.d.ts +0 -1
- package/es/radio-panel/style/index.d.ts +0 -1
- package/es/radio-panel/style/less.d.ts +0 -1
- package/es/rate/style/index.d.ts +0 -1
- package/es/rate/style/less.d.ts +0 -1
- package/es/row/style/index.d.ts +0 -1
- package/es/row/style/less.d.ts +0 -1
- package/es/search/style/index.d.ts +0 -1
- package/es/search/style/less.d.ts +0 -1
- package/es/share-sheet/style/index.d.ts +0 -1
- package/es/share-sheet/style/less.d.ts +0 -1
- package/es/sidebar/style/index.d.ts +0 -1
- package/es/sidebar/style/less.d.ts +0 -1
- package/es/sidebar-item/style/index.d.ts +0 -1
- package/es/sidebar-item/style/less.d.ts +0 -1
- package/es/single-person-select/style/index.d.ts +0 -1
- package/es/single-person-select/style/less.d.ts +0 -1
- package/es/skeleton/style/index.d.ts +0 -1
- package/es/skeleton/style/less.d.ts +0 -1
- package/es/slider/style/index.d.ts +0 -1
- package/es/slider/style/less.d.ts +0 -1
- package/es/space/style/index.d.ts +0 -1
- package/es/space/style/less.d.ts +0 -1
- package/es/step/style/index.d.ts +0 -1
- package/es/step/style/less.d.ts +0 -1
- package/es/stepper/style/index.d.ts +0 -1
- package/es/stepper/style/less.d.ts +0 -1
- package/es/steps/style/index.d.ts +0 -1
- package/es/steps/style/less.d.ts +0 -1
- package/es/sticky/style/index.d.ts +0 -1
- package/es/sticky/style/less.d.ts +0 -1
- package/es/submit-bar/style/index.d.ts +0 -1
- package/es/submit-bar/style/less.d.ts +0 -1
- package/es/swipe/style/index.d.ts +0 -1
- package/es/swipe/style/less.d.ts +0 -1
- package/es/swipe-cell/style/index.d.ts +0 -1
- package/es/swipe-cell/style/less.d.ts +0 -1
- package/es/swipe-item/style/index.d.ts +0 -1
- package/es/swipe-item/style/less.d.ts +0 -1
- package/es/switch/style/index.d.ts +0 -1
- package/es/switch/style/less.d.ts +0 -1
- package/es/tab/style/index.d.ts +0 -1
- package/es/tab/style/less.d.ts +0 -1
- package/es/tabbar/style/index.d.ts +0 -1
- package/es/tabbar/style/less.d.ts +0 -1
- package/es/tabbar-item/style/index.d.ts +0 -1
- package/es/tabbar-item/style/less.d.ts +0 -1
- package/es/tabs/style/index.d.ts +0 -1
- package/es/tabs/style/less.d.ts +0 -1
- package/es/tag/style/index.d.ts +0 -1
- package/es/tag/style/less.d.ts +0 -1
- package/es/toast/style/index.d.ts +0 -1
- package/es/toast/style/less.d.ts +0 -1
- package/es/tree-select/style/index.d.ts +0 -1
- package/es/tree-select/style/less.d.ts +0 -1
- package/es/uploader/style/index.d.ts +0 -1
- package/es/uploader/style/less.d.ts +0 -1
- package/es/video-preview/style/index.d.ts +0 -1
- package/es/video-preview/style/less.d.ts +0 -1
- package/es/work-order-card/style/index.d.ts +0 -1
- package/es/work-order-card/style/less.d.ts +0 -1
- package/es/work-order-filter/style/index.d.ts +0 -1
- package/es/work-order-filter/style/less.d.ts +0 -1
- package/lib/action-bar/style/index.d.ts +0 -1
- package/lib/action-bar/style/less.d.ts +0 -1
- package/lib/action-bar-button/style/index.d.ts +0 -1
- package/lib/action-bar-button/style/less.d.ts +0 -1
- package/lib/action-bar-icon/style/index.d.ts +0 -1
- package/lib/action-bar-icon/style/less.d.ts +0 -1
- package/lib/action-sheet/style/index.d.ts +0 -1
- package/lib/action-sheet/style/less.d.ts +0 -1
- package/lib/address-edit/style/index.d.ts +0 -1
- package/lib/address-edit/style/less.d.ts +0 -1
- package/lib/address-list/style/index.d.ts +0 -1
- package/lib/address-list/style/less.d.ts +0 -1
- package/lib/area/style/index.d.ts +0 -1
- package/lib/area/style/less.d.ts +0 -1
- package/lib/background/style/index.d.ts +0 -1
- package/lib/background/style/less.d.ts +0 -1
- package/lib/badge/style/index.d.ts +0 -1
- package/lib/badge/style/less.d.ts +0 -1
- package/lib/blue-mark/style/index.d.ts +0 -1
- package/lib/blue-mark/style/less.d.ts +0 -1
- package/lib/bottom-action-bar/style/index.d.ts +0 -1
- package/lib/bottom-action-bar/style/less.d.ts +0 -1
- package/lib/button/style/index.d.ts +0 -1
- package/lib/button/style/less.d.ts +0 -1
- package/lib/calendar/style/index.d.ts +0 -1
- package/lib/calendar/style/less.d.ts +0 -1
- package/lib/card/style/index.d.ts +0 -1
- package/lib/card/style/less.d.ts +0 -1
- package/lib/cascader/style/index.d.ts +0 -1
- package/lib/cascader/style/less.d.ts +0 -1
- package/lib/cell/style/index.d.ts +0 -1
- package/lib/cell/style/less.d.ts +0 -1
- package/lib/cell-group/style/index.d.ts +0 -1
- package/lib/cell-group/style/less.d.ts +0 -1
- package/lib/checkbox/style/index.d.ts +0 -1
- package/lib/checkbox/style/less.d.ts +0 -1
- package/lib/checkbox-group/style/index.d.ts +0 -1
- package/lib/checkbox-group/style/less.d.ts +0 -1
- package/lib/checkbox-panel/style/index.d.ts +0 -1
- package/lib/checkbox-panel/style/less.d.ts +0 -1
- package/lib/circle/style/index.d.ts +0 -1
- package/lib/circle/style/less.d.ts +0 -1
- package/lib/col/style/index.d.ts +0 -1
- package/lib/col/style/less.d.ts +0 -1
- package/lib/collapse/style/index.d.ts +0 -1
- package/lib/collapse/style/less.d.ts +0 -1
- package/lib/collapse-item/style/index.d.ts +0 -1
- package/lib/collapse-item/style/less.d.ts +0 -1
- package/lib/config-provider/style/index.d.ts +0 -1
- package/lib/config-provider/style/less.d.ts +0 -1
- package/lib/contact-card/style/index.d.ts +0 -1
- package/lib/contact-card/style/less.d.ts +0 -1
- package/lib/contact-edit/style/index.d.ts +0 -1
- package/lib/contact-edit/style/less.d.ts +0 -1
- package/lib/contact-list/style/index.d.ts +0 -1
- package/lib/contact-list/style/less.d.ts +0 -1
- package/lib/count-down/style/index.d.ts +0 -1
- package/lib/count-down/style/less.d.ts +0 -1
- package/lib/coupon/style/index.d.ts +0 -1
- package/lib/coupon/style/less.d.ts +0 -1
- package/lib/coupon-cell/style/index.d.ts +0 -1
- package/lib/coupon-cell/style/less.d.ts +0 -1
- package/lib/coupon-list/style/index.d.ts +0 -1
- package/lib/coupon-list/style/less.d.ts +0 -1
- package/lib/datetime-picker/style/index.d.ts +0 -1
- package/lib/datetime-picker/style/less.d.ts +0 -1
- package/lib/dialog/style/index.d.ts +0 -1
- package/lib/dialog/style/less.d.ts +0 -1
- package/lib/divider/style/index.d.ts +0 -1
- package/lib/divider/style/less.d.ts +0 -1
- package/lib/dropdown-item/style/index.d.ts +0 -1
- package/lib/dropdown-item/style/less.d.ts +0 -1
- package/lib/dropdown-menu/style/index.d.ts +0 -1
- package/lib/dropdown-menu/style/less.d.ts +0 -1
- package/lib/empty/style/index.d.ts +0 -1
- package/lib/empty/style/less.d.ts +0 -1
- package/lib/field/style/index.d.ts +0 -1
- package/lib/field/style/less.d.ts +0 -1
- package/lib/filter-tag/style/index.d.ts +0 -1
- package/lib/filter-tag/style/less.d.ts +0 -1
- package/lib/floor-select/style/index.d.ts +0 -1
- package/lib/floor-select/style/less.d.ts +0 -1
- package/lib/form/style/index.d.ts +0 -1
- package/lib/form/style/less.d.ts +0 -1
- package/lib/form-panel/style/index.d.ts +0 -1
- package/lib/form-panel/style/less.d.ts +0 -1
- package/lib/friendly-tip/style/index.d.ts +0 -1
- package/lib/friendly-tip/style/less.d.ts +0 -1
- package/lib/grid/style/index.d.ts +0 -1
- package/lib/grid/style/less.d.ts +0 -1
- package/lib/grid-item/style/index.d.ts +0 -1
- package/lib/grid-item/style/less.d.ts +0 -1
- package/lib/icon/style/index.d.ts +0 -1
- package/lib/icon/style/less.d.ts +0 -1
- package/lib/image/style/index.d.ts +0 -1
- package/lib/image/style/less.d.ts +0 -1
- package/lib/image-preview/style/index.d.ts +0 -1
- package/lib/image-preview/style/less.d.ts +0 -1
- package/lib/index-anchor/style/index.d.ts +0 -1
- package/lib/index-anchor/style/less.d.ts +0 -1
- package/lib/index-bar/style/index.d.ts +0 -1
- package/lib/index-bar/style/less.d.ts +0 -1
- package/lib/lazyload/style/index.d.ts +0 -1
- package/lib/lazyload/style/less.d.ts +0 -1
- package/lib/list/style/index.d.ts +0 -1
- package/lib/list/style/less.d.ts +0 -1
- package/lib/loading/style/index.d.ts +0 -1
- package/lib/loading/style/less.d.ts +0 -1
- package/lib/locale/style/index.d.ts +0 -1
- package/lib/locale/style/less.d.ts +0 -1
- package/lib/location-select/style/index.d.ts +0 -1
- package/lib/location-select/style/less.d.ts +0 -1
- package/lib/material-add/style/index.d.ts +0 -1
- package/lib/material-add/style/less.d.ts +0 -1
- package/lib/multi-person-select/style/index.d.ts +0 -1
- package/lib/multi-person-select/style/less.d.ts +0 -1
- package/lib/nav-bar/style/index.d.ts +0 -1
- package/lib/nav-bar/style/less.d.ts +0 -1
- package/lib/notice-bar/style/index.d.ts +0 -1
- package/lib/notice-bar/style/less.d.ts +0 -1
- package/lib/notify/style/index.d.ts +0 -1
- package/lib/notify/style/less.d.ts +0 -1
- package/lib/number-keyboard/style/index.d.ts +0 -1
- package/lib/number-keyboard/style/less.d.ts +0 -1
- package/lib/object-select/style/index.d.ts +0 -1
- package/lib/object-select/style/less.d.ts +0 -1
- package/lib/overlay/style/index.d.ts +0 -1
- package/lib/overlay/style/less.d.ts +0 -1
- package/lib/pagination/style/index.d.ts +0 -1
- package/lib/pagination/style/less.d.ts +0 -1
- package/lib/password-input/style/index.d.ts +0 -1
- package/lib/password-input/style/less.d.ts +0 -1
- package/lib/picker/style/index.d.ts +0 -1
- package/lib/picker/style/less.d.ts +0 -1
- package/lib/popover/style/index.d.ts +0 -1
- package/lib/popover/style/less.d.ts +0 -1
- package/lib/popup/style/index.d.ts +0 -1
- package/lib/popup/style/less.d.ts +0 -1
- package/lib/progress/style/index.d.ts +0 -1
- package/lib/progress/style/less.d.ts +0 -1
- package/lib/pull-refresh/style/index.d.ts +0 -1
- package/lib/pull-refresh/style/less.d.ts +0 -1
- package/lib/quantity-input/style/index.d.ts +0 -1
- package/lib/quantity-input/style/less.d.ts +0 -1
- package/lib/radio/style/index.d.ts +0 -1
- package/lib/radio/style/less.d.ts +0 -1
- package/lib/radio-group/style/index.d.ts +0 -1
- package/lib/radio-group/style/less.d.ts +0 -1
- package/lib/radio-panel/style/index.d.ts +0 -1
- package/lib/radio-panel/style/less.d.ts +0 -1
- package/lib/rate/style/index.d.ts +0 -1
- package/lib/rate/style/less.d.ts +0 -1
- package/lib/row/style/index.d.ts +0 -1
- package/lib/row/style/less.d.ts +0 -1
- package/lib/search/style/index.d.ts +0 -1
- package/lib/search/style/less.d.ts +0 -1
- package/lib/share-sheet/style/index.d.ts +0 -1
- package/lib/share-sheet/style/less.d.ts +0 -1
- package/lib/sidebar/style/index.d.ts +0 -1
- package/lib/sidebar/style/less.d.ts +0 -1
- package/lib/sidebar-item/style/index.d.ts +0 -1
- package/lib/sidebar-item/style/less.d.ts +0 -1
- package/lib/single-person-select/style/index.d.ts +0 -1
- package/lib/single-person-select/style/less.d.ts +0 -1
- package/lib/skeleton/style/index.d.ts +0 -1
- package/lib/skeleton/style/less.d.ts +0 -1
- package/lib/slider/style/index.d.ts +0 -1
- package/lib/slider/style/less.d.ts +0 -1
- package/lib/space/style/index.d.ts +0 -1
- package/lib/space/style/less.d.ts +0 -1
- package/lib/step/style/index.d.ts +0 -1
- package/lib/step/style/less.d.ts +0 -1
- package/lib/stepper/style/index.d.ts +0 -1
- package/lib/stepper/style/less.d.ts +0 -1
- package/lib/steps/style/index.d.ts +0 -1
- package/lib/steps/style/less.d.ts +0 -1
- package/lib/sticky/style/index.d.ts +0 -1
- package/lib/sticky/style/less.d.ts +0 -1
- package/lib/submit-bar/style/index.d.ts +0 -1
- package/lib/submit-bar/style/less.d.ts +0 -1
- package/lib/swipe/style/index.d.ts +0 -1
- package/lib/swipe/style/less.d.ts +0 -1
- package/lib/swipe-cell/style/index.d.ts +0 -1
- package/lib/swipe-cell/style/less.d.ts +0 -1
- package/lib/swipe-item/style/index.d.ts +0 -1
- package/lib/swipe-item/style/less.d.ts +0 -1
- package/lib/switch/style/index.d.ts +0 -1
- package/lib/switch/style/less.d.ts +0 -1
- package/lib/tab/style/index.d.ts +0 -1
- package/lib/tab/style/less.d.ts +0 -1
- package/lib/tabbar/style/index.d.ts +0 -1
- package/lib/tabbar/style/less.d.ts +0 -1
- package/lib/tabbar-item/style/index.d.ts +0 -1
- package/lib/tabbar-item/style/less.d.ts +0 -1
- package/lib/tabs/style/index.d.ts +0 -1
- package/lib/tabs/style/less.d.ts +0 -1
- package/lib/tag/style/index.d.ts +0 -1
- package/lib/tag/style/less.d.ts +0 -1
- package/lib/toast/style/index.d.ts +0 -1
- package/lib/toast/style/less.d.ts +0 -1
- package/lib/tree-select/style/index.d.ts +0 -1
- package/lib/tree-select/style/less.d.ts +0 -1
- package/lib/uploader/style/index.d.ts +0 -1
- package/lib/uploader/style/less.d.ts +0 -1
- package/lib/video-preview/style/index.d.ts +0 -1
- package/lib/video-preview/style/less.d.ts +0 -1
- package/lib/work-order-card/style/index.d.ts +0 -1
- package/lib/work-order-card/style/less.d.ts +0 -1
- package/lib/work-order-filter/style/index.d.ts +0 -1
- package/lib/work-order-filter/style/less.d.ts +0 -1
package/lib/vant.js
CHANGED
|
@@ -592,7 +592,7 @@
|
|
|
592
592
|
});
|
|
593
593
|
return to;
|
|
594
594
|
}
|
|
595
|
-
var stdin_default$
|
|
595
|
+
var stdin_default$21 = {
|
|
596
596
|
name: "姓名",
|
|
597
597
|
tel: "电话",
|
|
598
598
|
save: "保存",
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
};
|
|
658
658
|
const lang = vue.ref("zh-CN");
|
|
659
659
|
const messages = vue.reactive({
|
|
660
|
-
"zh-CN": stdin_default$
|
|
660
|
+
"zh-CN": stdin_default$21
|
|
661
661
|
});
|
|
662
662
|
const Locale = {
|
|
663
663
|
messages() {
|
|
@@ -671,11 +671,11 @@
|
|
|
671
671
|
deepAssign(messages, newMessages);
|
|
672
672
|
}
|
|
673
673
|
};
|
|
674
|
-
var stdin_default$
|
|
674
|
+
var stdin_default$20 = Locale;
|
|
675
675
|
function createTranslate(name2) {
|
|
676
676
|
const prefix = camelize(name2) + ".";
|
|
677
677
|
return (path, ...args) => {
|
|
678
|
-
const messages2 = stdin_default$
|
|
678
|
+
const messages2 = stdin_default$20.messages();
|
|
679
679
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
680
680
|
return isFunction$2(message) ? message(...args) : message;
|
|
681
681
|
};
|
|
@@ -795,20 +795,20 @@
|
|
|
795
795
|
}
|
|
796
796
|
}, [renderContent()]);
|
|
797
797
|
}
|
|
798
|
-
const [name$
|
|
799
|
-
const ACTION_BAR_KEY = Symbol(name$
|
|
798
|
+
const [name$1S, bem$1O] = createNamespace("action-bar");
|
|
799
|
+
const ACTION_BAR_KEY = Symbol(name$1S);
|
|
800
800
|
const actionBarProps = {
|
|
801
801
|
placeholder: Boolean,
|
|
802
802
|
safeAreaInsetBottom: truthProp
|
|
803
803
|
};
|
|
804
|
-
var stdin_default$
|
|
805
|
-
name: name$
|
|
804
|
+
var stdin_default$1$ = vue.defineComponent({
|
|
805
|
+
name: name$1S,
|
|
806
806
|
props: actionBarProps,
|
|
807
807
|
setup(props2, {
|
|
808
808
|
slots
|
|
809
809
|
}) {
|
|
810
810
|
const root = vue.ref();
|
|
811
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
|
811
|
+
const renderPlaceholder = usePlaceholder(root, bem$1O);
|
|
812
812
|
const {
|
|
813
813
|
linkChildren
|
|
814
814
|
} = useChildren(ACTION_BAR_KEY);
|
|
@@ -817,7 +817,7 @@
|
|
|
817
817
|
var _a;
|
|
818
818
|
return vue.createVNode("div", {
|
|
819
819
|
"ref": root,
|
|
820
|
-
"class": [bem$
|
|
820
|
+
"class": [bem$1O(), {
|
|
821
821
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
822
822
|
}]
|
|
823
823
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
@@ -830,7 +830,7 @@
|
|
|
830
830
|
};
|
|
831
831
|
}
|
|
832
832
|
});
|
|
833
|
-
const ActionBar = withInstall(stdin_default$
|
|
833
|
+
const ActionBar = withInstall(stdin_default$1$);
|
|
834
834
|
function useExpose(apis) {
|
|
835
835
|
const instance2 = vue.getCurrentInstance();
|
|
836
836
|
if (instance2) {
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
const vm = vue.getCurrentInstance().proxy;
|
|
859
859
|
return () => route(vm);
|
|
860
860
|
}
|
|
861
|
-
const [name$
|
|
861
|
+
const [name$1R, bem$1N] = createNamespace("badge");
|
|
862
862
|
const badgeProps = {
|
|
863
863
|
dot: Boolean,
|
|
864
864
|
max: numericProp,
|
|
@@ -869,8 +869,8 @@
|
|
|
869
869
|
showZero: truthProp,
|
|
870
870
|
position: makeStringProp("top-right")
|
|
871
871
|
};
|
|
872
|
-
var stdin_default$
|
|
873
|
-
name: name$
|
|
872
|
+
var stdin_default$1_ = vue.defineComponent({
|
|
873
|
+
name: name$1R,
|
|
874
874
|
props: badgeProps,
|
|
875
875
|
setup(props2, {
|
|
876
876
|
slots
|
|
@@ -924,7 +924,7 @@
|
|
|
924
924
|
const renderBadge = () => {
|
|
925
925
|
if (hasContent() || props2.dot) {
|
|
926
926
|
return vue.createVNode("div", {
|
|
927
|
-
"class": bem$
|
|
927
|
+
"class": bem$1N([props2.position, {
|
|
928
928
|
dot: props2.dot,
|
|
929
929
|
fixed: !!slots.default
|
|
930
930
|
}]),
|
|
@@ -938,7 +938,7 @@
|
|
|
938
938
|
tag
|
|
939
939
|
} = props2;
|
|
940
940
|
return vue.createVNode(tag, {
|
|
941
|
-
"class": bem$
|
|
941
|
+
"class": bem$1N("wrapper")
|
|
942
942
|
}, {
|
|
943
943
|
default: () => [slots.default(), renderBadge()]
|
|
944
944
|
});
|
|
@@ -947,14 +947,14 @@
|
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
949
|
});
|
|
950
|
-
const Badge = withInstall(stdin_default$
|
|
950
|
+
const Badge = withInstall(stdin_default$1_);
|
|
951
951
|
let globalZIndex = 2e3;
|
|
952
952
|
const useGlobalZIndex = () => ++globalZIndex;
|
|
953
953
|
const setGlobalZIndex = (val) => {
|
|
954
954
|
globalZIndex = val;
|
|
955
955
|
};
|
|
956
|
-
const [name$
|
|
957
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
|
956
|
+
const [name$1Q, bem$1M] = createNamespace("config-provider");
|
|
957
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1Q);
|
|
958
958
|
const configProviderProps = {
|
|
959
959
|
tag: makeStringProp("div"),
|
|
960
960
|
zIndex: Number,
|
|
@@ -969,8 +969,8 @@
|
|
|
969
969
|
});
|
|
970
970
|
return cssVars;
|
|
971
971
|
}
|
|
972
|
-
var stdin_default$
|
|
973
|
-
name: name$
|
|
972
|
+
var stdin_default$1Z = vue.defineComponent({
|
|
973
|
+
name: name$1Q,
|
|
974
974
|
props: configProviderProps,
|
|
975
975
|
setup(props2, {
|
|
976
976
|
slots
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
}
|
|
988
988
|
});
|
|
989
989
|
return () => vue.createVNode(props2.tag, {
|
|
990
|
-
"class": bem$
|
|
990
|
+
"class": bem$1M(),
|
|
991
991
|
"style": style.value
|
|
992
992
|
}, {
|
|
993
993
|
default: () => {
|
|
@@ -997,7 +997,7 @@
|
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
999
|
});
|
|
1000
|
-
const [name$
|
|
1000
|
+
const [name$1P, bem$1L] = createNamespace("icon");
|
|
1001
1001
|
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
|
1002
1002
|
const iconProps = {
|
|
1003
1003
|
dot: Boolean,
|
|
@@ -1009,14 +1009,14 @@
|
|
|
1009
1009
|
badgeProps: Object,
|
|
1010
1010
|
classPrefix: String
|
|
1011
1011
|
};
|
|
1012
|
-
var stdin_default$
|
|
1013
|
-
name: name$
|
|
1012
|
+
var stdin_default$1Y = vue.defineComponent({
|
|
1013
|
+
name: name$1P,
|
|
1014
1014
|
props: iconProps,
|
|
1015
1015
|
setup(props2, {
|
|
1016
1016
|
slots
|
|
1017
1017
|
}) {
|
|
1018
1018
|
const config = vue.inject(CONFIG_PROVIDER_KEY, null);
|
|
1019
|
-
const classPrefix = vue.computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
|
1019
|
+
const classPrefix = vue.computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1L());
|
|
1020
1020
|
return () => {
|
|
1021
1021
|
const {
|
|
1022
1022
|
tag,
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
default: () => {
|
|
1041
1041
|
var _a;
|
|
1042
1042
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
|
|
1043
|
-
"class": bem$
|
|
1043
|
+
"class": bem$1L("image"),
|
|
1044
1044
|
"src": name2
|
|
1045
1045
|
}, null)];
|
|
1046
1046
|
}
|
|
@@ -1048,14 +1048,14 @@
|
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
1050
|
});
|
|
1051
|
-
const Icon = withInstall(stdin_default$
|
|
1052
|
-
var stdin_default$
|
|
1053
|
-
const [name$
|
|
1051
|
+
const Icon = withInstall(stdin_default$1Y);
|
|
1052
|
+
var stdin_default$1X = Icon;
|
|
1053
|
+
const [name$1O, bem$1K] = createNamespace("loading");
|
|
1054
1054
|
const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
|
|
1055
|
-
"class": bem$
|
|
1055
|
+
"class": bem$1K("line", String(index + 1))
|
|
1056
1056
|
}, null));
|
|
1057
1057
|
const CircularIcon = vue.createVNode("svg", {
|
|
1058
|
-
"class": bem$
|
|
1058
|
+
"class": bem$1K("circular"),
|
|
1059
1059
|
"viewBox": "25 25 50 50"
|
|
1060
1060
|
}, [vue.createVNode("circle", {
|
|
1061
1061
|
"cx": "50",
|
|
@@ -1071,8 +1071,8 @@
|
|
|
1071
1071
|
textSize: numericProp,
|
|
1072
1072
|
textColor: String
|
|
1073
1073
|
};
|
|
1074
|
-
var stdin_default$
|
|
1075
|
-
name: name$
|
|
1074
|
+
var stdin_default$1W = vue.defineComponent({
|
|
1075
|
+
name: name$1O,
|
|
1076
1076
|
props: loadingProps,
|
|
1077
1077
|
setup(props2, {
|
|
1078
1078
|
slots
|
|
@@ -1084,7 +1084,7 @@
|
|
|
1084
1084
|
var _a;
|
|
1085
1085
|
if (slots.default) {
|
|
1086
1086
|
return vue.createVNode("span", {
|
|
1087
|
-
"class": bem$
|
|
1087
|
+
"class": bem$1K("text"),
|
|
1088
1088
|
"style": {
|
|
1089
1089
|
fontSize: addUnit(props2.textSize),
|
|
1090
1090
|
color: (_a = props2.textColor) != null ? _a : props2.color
|
|
@@ -1098,20 +1098,20 @@
|
|
|
1098
1098
|
vertical
|
|
1099
1099
|
} = props2;
|
|
1100
1100
|
return vue.createVNode("div", {
|
|
1101
|
-
"class": bem$
|
|
1101
|
+
"class": bem$1K([type, {
|
|
1102
1102
|
vertical
|
|
1103
1103
|
}]),
|
|
1104
1104
|
"aria-live": "polite",
|
|
1105
1105
|
"aria-busy": true
|
|
1106
1106
|
}, [vue.createVNode("span", {
|
|
1107
|
-
"class": bem$
|
|
1107
|
+
"class": bem$1K("spinner", type),
|
|
1108
1108
|
"style": spinnerStyle.value
|
|
1109
1109
|
}, [type === "spinner" ? SpinIcon : CircularIcon]), renderText()]);
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
1113
|
-
const Loading = withInstall(stdin_default$
|
|
1114
|
-
const [name$
|
|
1113
|
+
const Loading = withInstall(stdin_default$1W);
|
|
1114
|
+
const [name$1N, bem$1J] = createNamespace("button");
|
|
1115
1115
|
const buttonIconSizes = {
|
|
1116
1116
|
large: "var(--van-font-size-xl)",
|
|
1117
1117
|
normal: "var(--van-font-size-lg)",
|
|
@@ -1140,8 +1140,8 @@
|
|
|
1140
1140
|
loadingType: String,
|
|
1141
1141
|
iconPosition: makeStringProp("left")
|
|
1142
1142
|
});
|
|
1143
|
-
var stdin_default$
|
|
1144
|
-
name: name$
|
|
1143
|
+
var stdin_default$1V = vue.defineComponent({
|
|
1144
|
+
name: name$1N,
|
|
1145
1145
|
props: buttonProps,
|
|
1146
1146
|
emits: ["click"],
|
|
1147
1147
|
setup(props2, {
|
|
@@ -1156,7 +1156,7 @@
|
|
|
1156
1156
|
return vue.createVNode(Loading, {
|
|
1157
1157
|
"size": props2.loadingSize,
|
|
1158
1158
|
"type": props2.loadingType,
|
|
1159
|
-
"class": bem$
|
|
1159
|
+
"class": bem$1J("loading")
|
|
1160
1160
|
}, null);
|
|
1161
1161
|
};
|
|
1162
1162
|
const renderIcon = () => {
|
|
@@ -1166,14 +1166,14 @@
|
|
|
1166
1166
|
}
|
|
1167
1167
|
if (slots.icon) {
|
|
1168
1168
|
return vue.createVNode("div", {
|
|
1169
|
-
"class": bem$
|
|
1169
|
+
"class": bem$1J("icon")
|
|
1170
1170
|
}, [slots.icon()]);
|
|
1171
1171
|
}
|
|
1172
1172
|
if (props2.icon) {
|
|
1173
1173
|
return vue.createVNode(Icon, {
|
|
1174
1174
|
"size": (_a = props2.iconSize) != null ? _a : buttonIconSizes[props2.size],
|
|
1175
1175
|
"name": props2.icon,
|
|
1176
|
-
"class": bem$
|
|
1176
|
+
"class": bem$1J("icon"),
|
|
1177
1177
|
"classPrefix": props2.iconPrefix
|
|
1178
1178
|
}, null);
|
|
1179
1179
|
}
|
|
@@ -1187,7 +1187,7 @@
|
|
|
1187
1187
|
}
|
|
1188
1188
|
if (text) {
|
|
1189
1189
|
return vue.createVNode("span", {
|
|
1190
|
-
"class": bem$
|
|
1190
|
+
"class": bem$1J("text")
|
|
1191
1191
|
}, [text]);
|
|
1192
1192
|
}
|
|
1193
1193
|
};
|
|
@@ -1234,7 +1234,7 @@
|
|
|
1234
1234
|
nativeType,
|
|
1235
1235
|
iconPosition
|
|
1236
1236
|
} = props2;
|
|
1237
|
-
const classes = [bem$
|
|
1237
|
+
const classes = [bem$1J([type, size, {
|
|
1238
1238
|
plain,
|
|
1239
1239
|
block,
|
|
1240
1240
|
round: round2,
|
|
@@ -1253,14 +1253,14 @@
|
|
|
1253
1253
|
"onClick": onClick
|
|
1254
1254
|
}, {
|
|
1255
1255
|
default: () => [vue.createVNode("div", {
|
|
1256
|
-
"class": bem$
|
|
1256
|
+
"class": bem$1J("content")
|
|
1257
1257
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
|
1258
1258
|
});
|
|
1259
1259
|
};
|
|
1260
1260
|
}
|
|
1261
1261
|
});
|
|
1262
|
-
const Button = withInstall(stdin_default$
|
|
1263
|
-
const [name$
|
|
1262
|
+
const Button = withInstall(stdin_default$1V);
|
|
1263
|
+
const [name$1M, bem$1I] = createNamespace("action-bar-button");
|
|
1264
1264
|
const actionBarButtonProps = extend$1({}, routeProps, {
|
|
1265
1265
|
type: String,
|
|
1266
1266
|
text: String,
|
|
@@ -1269,8 +1269,8 @@
|
|
|
1269
1269
|
loading: Boolean,
|
|
1270
1270
|
disabled: Boolean
|
|
1271
1271
|
});
|
|
1272
|
-
var stdin_default$
|
|
1273
|
-
name: name$
|
|
1272
|
+
var stdin_default$1U = vue.defineComponent({
|
|
1273
|
+
name: name$1M,
|
|
1274
1274
|
props: actionBarButtonProps,
|
|
1275
1275
|
setup(props2, {
|
|
1276
1276
|
slots
|
|
@@ -1305,7 +1305,7 @@
|
|
|
1305
1305
|
disabled
|
|
1306
1306
|
} = props2;
|
|
1307
1307
|
return vue.createVNode(Button, {
|
|
1308
|
-
"class": bem$
|
|
1308
|
+
"class": bem$1I([type, {
|
|
1309
1309
|
last: isLast.value,
|
|
1310
1310
|
first: isFirst.value
|
|
1311
1311
|
}]),
|
|
@@ -1322,8 +1322,8 @@
|
|
|
1322
1322
|
};
|
|
1323
1323
|
}
|
|
1324
1324
|
});
|
|
1325
|
-
const ActionBarButton = withInstall(stdin_default$
|
|
1326
|
-
const [name$
|
|
1325
|
+
const ActionBarButton = withInstall(stdin_default$1U);
|
|
1326
|
+
const [name$1L, bem$1H] = createNamespace("action-bar-icon");
|
|
1327
1327
|
const actionBarIconProps = extend$1({}, routeProps, {
|
|
1328
1328
|
dot: Boolean,
|
|
1329
1329
|
text: String,
|
|
@@ -1334,8 +1334,8 @@
|
|
|
1334
1334
|
badgeProps: Object,
|
|
1335
1335
|
iconPrefix: String
|
|
1336
1336
|
});
|
|
1337
|
-
var stdin_default$
|
|
1338
|
-
name: name$
|
|
1337
|
+
var stdin_default$1T = vue.defineComponent({
|
|
1338
|
+
name: name$1L,
|
|
1339
1339
|
props: actionBarIconProps,
|
|
1340
1340
|
setup(props2, {
|
|
1341
1341
|
slots
|
|
@@ -1355,7 +1355,7 @@
|
|
|
1355
1355
|
if (slots.icon) {
|
|
1356
1356
|
return vue.createVNode(Badge, vue.mergeProps({
|
|
1357
1357
|
"dot": dot,
|
|
1358
|
-
"class": bem$
|
|
1358
|
+
"class": bem$1H("icon"),
|
|
1359
1359
|
"content": badge
|
|
1360
1360
|
}, badgeProps2), {
|
|
1361
1361
|
default: slots.icon
|
|
@@ -1367,20 +1367,20 @@
|
|
|
1367
1367
|
"name": icon,
|
|
1368
1368
|
"badge": badge,
|
|
1369
1369
|
"color": color,
|
|
1370
|
-
"class": [bem$
|
|
1370
|
+
"class": [bem$1H("icon"), iconClass],
|
|
1371
1371
|
"badgeProps": badgeProps2,
|
|
1372
1372
|
"classPrefix": iconPrefix
|
|
1373
1373
|
}, null);
|
|
1374
1374
|
};
|
|
1375
1375
|
return () => vue.createVNode("div", {
|
|
1376
1376
|
"role": "button",
|
|
1377
|
-
"class": bem$
|
|
1377
|
+
"class": bem$1H(),
|
|
1378
1378
|
"tabindex": 0,
|
|
1379
1379
|
"onClick": route2
|
|
1380
1380
|
}, [renderIcon(), slots.default ? slots.default() : props2.text]);
|
|
1381
1381
|
}
|
|
1382
1382
|
});
|
|
1383
|
-
const ActionBarIcon = withInstall(stdin_default$
|
|
1383
|
+
const ActionBarIcon = withInstall(stdin_default$1T);
|
|
1384
1384
|
const popupSharedProps = {
|
|
1385
1385
|
// whether to show popup
|
|
1386
1386
|
show: Boolean,
|
|
@@ -1531,7 +1531,7 @@
|
|
|
1531
1531
|
);
|
|
1532
1532
|
return (render) => () => inited.value ? render() : null;
|
|
1533
1533
|
}
|
|
1534
|
-
const [name$
|
|
1534
|
+
const [name$1K, bem$1G] = createNamespace("overlay");
|
|
1535
1535
|
const overlayProps = {
|
|
1536
1536
|
show: Boolean,
|
|
1537
1537
|
zIndex: numericProp,
|
|
@@ -1541,8 +1541,8 @@
|
|
|
1541
1541
|
lazyRender: truthProp,
|
|
1542
1542
|
customStyle: Object
|
|
1543
1543
|
};
|
|
1544
|
-
var stdin_default$
|
|
1545
|
-
name: name$
|
|
1544
|
+
var stdin_default$1S = vue.defineComponent({
|
|
1545
|
+
name: name$1K,
|
|
1546
1546
|
props: overlayProps,
|
|
1547
1547
|
setup(props2, {
|
|
1548
1548
|
slots
|
|
@@ -1563,7 +1563,7 @@
|
|
|
1563
1563
|
return vue.withDirectives(vue.createVNode("div", {
|
|
1564
1564
|
"ref": root,
|
|
1565
1565
|
"style": style,
|
|
1566
|
-
"class": [bem$
|
|
1566
|
+
"class": [bem$1G(), props2.className]
|
|
1567
1567
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props2.show]]);
|
|
1568
1568
|
});
|
|
1569
1569
|
useEventListener("touchmove", onTouchMove, {
|
|
@@ -1577,7 +1577,7 @@
|
|
|
1577
1577
|
});
|
|
1578
1578
|
}
|
|
1579
1579
|
});
|
|
1580
|
-
const Overlay = withInstall(stdin_default$
|
|
1580
|
+
const Overlay = withInstall(stdin_default$1S);
|
|
1581
1581
|
const popupProps$3 = extend$1({}, popupSharedProps, {
|
|
1582
1582
|
round: Boolean,
|
|
1583
1583
|
position: makeStringProp("center"),
|
|
@@ -1590,9 +1590,9 @@
|
|
|
1590
1590
|
safeAreaInsetTop: Boolean,
|
|
1591
1591
|
safeAreaInsetBottom: Boolean
|
|
1592
1592
|
});
|
|
1593
|
-
const [name$
|
|
1594
|
-
var stdin_default$
|
|
1595
|
-
name: name$
|
|
1593
|
+
const [name$1J, bem$1F] = createNamespace("popup");
|
|
1594
|
+
var stdin_default$1R = vue.defineComponent({
|
|
1595
|
+
name: name$1J,
|
|
1596
1596
|
inheritAttrs: false,
|
|
1597
1597
|
props: popupProps$3,
|
|
1598
1598
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "click-overlay", "click-close-icon"],
|
|
@@ -1666,7 +1666,7 @@
|
|
|
1666
1666
|
"role": "button",
|
|
1667
1667
|
"tabindex": 0,
|
|
1668
1668
|
"name": props2.closeIcon,
|
|
1669
|
-
"class": [bem$
|
|
1669
|
+
"class": [bem$1F("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
|
|
1670
1670
|
"classPrefix": props2.iconPrefix,
|
|
1671
1671
|
"onClick": onClickCloseIcon
|
|
1672
1672
|
}, null);
|
|
@@ -1688,7 +1688,7 @@
|
|
|
1688
1688
|
"style": style.value,
|
|
1689
1689
|
"role": "dialog",
|
|
1690
1690
|
"tabindex": 0,
|
|
1691
|
-
"class": [bem$
|
|
1691
|
+
"class": [bem$1F({
|
|
1692
1692
|
round: round2,
|
|
1693
1693
|
[position]: position
|
|
1694
1694
|
}), {
|
|
@@ -1769,8 +1769,8 @@
|
|
|
1769
1769
|
};
|
|
1770
1770
|
}
|
|
1771
1771
|
});
|
|
1772
|
-
const Popup = withInstall(stdin_default$
|
|
1773
|
-
const [name$
|
|
1772
|
+
const Popup = withInstall(stdin_default$1R);
|
|
1773
|
+
const [name$1I, bem$1E] = createNamespace("action-sheet");
|
|
1774
1774
|
const actionSheetProps = extend$1({}, popupSharedProps, {
|
|
1775
1775
|
title: String,
|
|
1776
1776
|
round: truthProp,
|
|
@@ -1784,8 +1784,8 @@
|
|
|
1784
1784
|
safeAreaInsetBottom: truthProp
|
|
1785
1785
|
});
|
|
1786
1786
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
1787
|
-
var stdin_default$
|
|
1788
|
-
name: name$
|
|
1787
|
+
var stdin_default$1Q = vue.defineComponent({
|
|
1788
|
+
name: name$1I,
|
|
1789
1789
|
props: actionSheetProps,
|
|
1790
1790
|
emits: ["select", "cancel", "update:show"],
|
|
1791
1791
|
setup(props2, {
|
|
@@ -1800,10 +1800,10 @@
|
|
|
1800
1800
|
const renderHeader = () => {
|
|
1801
1801
|
if (props2.title) {
|
|
1802
1802
|
return vue.createVNode("div", {
|
|
1803
|
-
"class": bem$
|
|
1803
|
+
"class": bem$1E("header")
|
|
1804
1804
|
}, [props2.title, props2.closeable && vue.createVNode(Icon, {
|
|
1805
1805
|
"name": props2.closeIcon,
|
|
1806
|
-
"class": [bem$
|
|
1806
|
+
"class": [bem$1E("close"), HAPTICS_FEEDBACK],
|
|
1807
1807
|
"onClick": onCancel
|
|
1808
1808
|
}, null)]);
|
|
1809
1809
|
}
|
|
@@ -1811,10 +1811,10 @@
|
|
|
1811
1811
|
const renderCancel = () => {
|
|
1812
1812
|
if (slots.cancel || props2.cancelText) {
|
|
1813
1813
|
return [vue.createVNode("div", {
|
|
1814
|
-
"class": bem$
|
|
1814
|
+
"class": bem$1E("gap")
|
|
1815
1815
|
}, null), vue.createVNode("button", {
|
|
1816
1816
|
"type": "button",
|
|
1817
|
-
"class": bem$
|
|
1817
|
+
"class": bem$1E("cancel"),
|
|
1818
1818
|
"onClick": onCancel
|
|
1819
1819
|
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
|
1820
1820
|
}
|
|
@@ -1822,7 +1822,7 @@
|
|
|
1822
1822
|
const renderActionContent = (action, index) => {
|
|
1823
1823
|
if (action.loading) {
|
|
1824
1824
|
return vue.createVNode(Loading, {
|
|
1825
|
-
"class": bem$
|
|
1825
|
+
"class": bem$1E("loading-icon")
|
|
1826
1826
|
}, null);
|
|
1827
1827
|
}
|
|
1828
1828
|
if (slots.action) {
|
|
@@ -1832,9 +1832,9 @@
|
|
|
1832
1832
|
});
|
|
1833
1833
|
}
|
|
1834
1834
|
return [vue.createVNode("span", {
|
|
1835
|
-
"class": bem$
|
|
1835
|
+
"class": bem$1E("name")
|
|
1836
1836
|
}, [action.name]), action.subname && vue.createVNode("div", {
|
|
1837
|
-
"class": bem$
|
|
1837
|
+
"class": bem$1E("subname")
|
|
1838
1838
|
}, [action.subname])];
|
|
1839
1839
|
};
|
|
1840
1840
|
const renderAction = (action, index) => {
|
|
@@ -1862,7 +1862,7 @@
|
|
|
1862
1862
|
"style": {
|
|
1863
1863
|
color
|
|
1864
1864
|
},
|
|
1865
|
-
"class": [bem$
|
|
1865
|
+
"class": [bem$1E("item", {
|
|
1866
1866
|
loading,
|
|
1867
1867
|
disabled
|
|
1868
1868
|
}), className],
|
|
@@ -1873,25 +1873,25 @@
|
|
|
1873
1873
|
if (props2.description || slots.description) {
|
|
1874
1874
|
const content = slots.description ? slots.description() : props2.description;
|
|
1875
1875
|
return vue.createVNode("div", {
|
|
1876
|
-
"class": bem$
|
|
1876
|
+
"class": bem$1E("description")
|
|
1877
1877
|
}, [content]);
|
|
1878
1878
|
}
|
|
1879
1879
|
};
|
|
1880
1880
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
1881
|
-
"class": bem$
|
|
1881
|
+
"class": bem$1E(),
|
|
1882
1882
|
"position": "bottom",
|
|
1883
1883
|
"onUpdate:show": updateShow
|
|
1884
1884
|
}, pick(props2, popupInheritKeys$2)), {
|
|
1885
1885
|
default: () => {
|
|
1886
1886
|
var _a;
|
|
1887
1887
|
return [renderHeader(), renderDescription(), vue.createVNode("div", {
|
|
1888
|
-
"class": bem$
|
|
1888
|
+
"class": bem$1E("content")
|
|
1889
1889
|
}, [props2.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
|
1890
1890
|
}
|
|
1891
1891
|
});
|
|
1892
1892
|
}
|
|
1893
1893
|
});
|
|
1894
|
-
const ActionSheet = withInstall(stdin_default$
|
|
1894
|
+
const ActionSheet = withInstall(stdin_default$1Q);
|
|
1895
1895
|
function deepClone(obj) {
|
|
1896
1896
|
if (!isDef(obj)) {
|
|
1897
1897
|
return obj;
|
|
@@ -1911,7 +1911,7 @@
|
|
|
1911
1911
|
const DEFAULT_DURATION = 200;
|
|
1912
1912
|
const MOMENTUM_LIMIT_TIME = 300;
|
|
1913
1913
|
const MOMENTUM_LIMIT_DISTANCE = 15;
|
|
1914
|
-
const [name$
|
|
1914
|
+
const [name$1H, bem$1D] = createNamespace("picker-column");
|
|
1915
1915
|
function getElementTranslateY(element) {
|
|
1916
1916
|
const {
|
|
1917
1917
|
transform
|
|
@@ -1919,10 +1919,10 @@
|
|
|
1919
1919
|
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
|
1920
1920
|
return Number(translateY);
|
|
1921
1921
|
}
|
|
1922
|
-
const PICKER_KEY = Symbol(name$
|
|
1922
|
+
const PICKER_KEY = Symbol(name$1H);
|
|
1923
1923
|
const isOptionDisabled = (option) => isObject$2(option) && option.disabled;
|
|
1924
|
-
var stdin_default$
|
|
1925
|
-
name: name$
|
|
1924
|
+
var stdin_default$1P = vue.defineComponent({
|
|
1925
|
+
name: name$1H,
|
|
1926
1926
|
props: {
|
|
1927
1927
|
textKey: makeRequiredProp(String),
|
|
1928
1928
|
readonly: Boolean,
|
|
@@ -2097,7 +2097,7 @@
|
|
|
2097
2097
|
role: "button",
|
|
2098
2098
|
style: optionStyle,
|
|
2099
2099
|
tabindex: disabled ? -1 : 0,
|
|
2100
|
-
class: bem$
|
|
2100
|
+
class: bem$1D("item", {
|
|
2101
2101
|
disabled,
|
|
2102
2102
|
selected: index === state.index
|
|
2103
2103
|
}),
|
|
@@ -2140,7 +2140,7 @@
|
|
|
2140
2140
|
});
|
|
2141
2141
|
return () => vue.createVNode("div", {
|
|
2142
2142
|
"ref": root,
|
|
2143
|
-
"class": [bem$
|
|
2143
|
+
"class": [bem$1D(), props2.className],
|
|
2144
2144
|
"onTouchstartPassive": onTouchStart,
|
|
2145
2145
|
"onTouchend": onTouchEnd,
|
|
2146
2146
|
"onTouchcancel": onTouchEnd
|
|
@@ -2151,12 +2151,12 @@
|
|
|
2151
2151
|
transitionDuration: `${state.duration}ms`,
|
|
2152
2152
|
transitionProperty: state.duration ? "all" : "none"
|
|
2153
2153
|
},
|
|
2154
|
-
"class": bem$
|
|
2154
|
+
"class": bem$1D("wrapper"),
|
|
2155
2155
|
"onTransitionend": stopMomentum
|
|
2156
2156
|
}, [renderOptions()])]);
|
|
2157
2157
|
}
|
|
2158
2158
|
});
|
|
2159
|
-
const [name$
|
|
2159
|
+
const [name$1G, bem$1C, t$j] = createNamespace("picker");
|
|
2160
2160
|
const pickerSharedProps = {
|
|
2161
2161
|
title: String,
|
|
2162
2162
|
loading: Boolean,
|
|
@@ -2179,8 +2179,8 @@
|
|
|
2179
2179
|
toolbarPosition: makeStringProp("top"),
|
|
2180
2180
|
columnsFieldNames: Object
|
|
2181
2181
|
});
|
|
2182
|
-
var stdin_default$
|
|
2183
|
-
name: name$
|
|
2182
|
+
var stdin_default$1O = vue.defineComponent({
|
|
2183
|
+
name: name$1G,
|
|
2184
2184
|
props: pickerProps,
|
|
2185
2185
|
emits: ["confirm", "cancel", "change"],
|
|
2186
2186
|
setup(props2, {
|
|
@@ -2357,7 +2357,7 @@
|
|
|
2357
2357
|
}
|
|
2358
2358
|
if (props2.title) {
|
|
2359
2359
|
return vue.createVNode("div", {
|
|
2360
|
-
"class": [bem$
|
|
2360
|
+
"class": [bem$1C("title"), "van-ellipsis"]
|
|
2361
2361
|
}, [props2.title]);
|
|
2362
2362
|
}
|
|
2363
2363
|
};
|
|
@@ -2365,7 +2365,7 @@
|
|
|
2365
2365
|
const text = props2.cancelButtonText || t$j("cancel");
|
|
2366
2366
|
return vue.createVNode("button", {
|
|
2367
2367
|
"type": "button",
|
|
2368
|
-
"class": [bem$
|
|
2368
|
+
"class": [bem$1C("cancel"), HAPTICS_FEEDBACK],
|
|
2369
2369
|
"onClick": cancel
|
|
2370
2370
|
}, [slots.cancel ? slots.cancel() : text]);
|
|
2371
2371
|
};
|
|
@@ -2373,7 +2373,7 @@
|
|
|
2373
2373
|
const text = props2.confirmButtonText || t$j("confirm");
|
|
2374
2374
|
return vue.createVNode("button", {
|
|
2375
2375
|
"type": "button",
|
|
2376
|
-
"class": [bem$
|
|
2376
|
+
"class": [bem$1C("confirm"), HAPTICS_FEEDBACK],
|
|
2377
2377
|
"onClick": confirm
|
|
2378
2378
|
}, [slots.confirm ? slots.confirm() : text]);
|
|
2379
2379
|
};
|
|
@@ -2381,13 +2381,13 @@
|
|
|
2381
2381
|
if (props2.showToolbar) {
|
|
2382
2382
|
const slot = slots.toolbar || slots.default;
|
|
2383
2383
|
return vue.createVNode("div", {
|
|
2384
|
-
"class": bem$
|
|
2384
|
+
"class": bem$1C("toolbar")
|
|
2385
2385
|
}, [slot ? slot() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
|
2386
2386
|
}
|
|
2387
2387
|
};
|
|
2388
2388
|
const renderColumnItems = () => formattedColumns.value.map((item, columnIndex) => {
|
|
2389
2389
|
var _a;
|
|
2390
|
-
return vue.createVNode(stdin_default$
|
|
2390
|
+
return vue.createVNode(stdin_default$1P, {
|
|
2391
2391
|
"textKey": columnsFieldNames.value.text,
|
|
2392
2392
|
"readonly": props2.readonly,
|
|
2393
2393
|
"allowHtml": props2.allowHtml,
|
|
@@ -2412,10 +2412,10 @@
|
|
|
2412
2412
|
backgroundSize: `100% ${(wrapHeight - itemHeight.value) / 2}px`
|
|
2413
2413
|
};
|
|
2414
2414
|
return [vue.createVNode("div", {
|
|
2415
|
-
"class": bem$
|
|
2415
|
+
"class": bem$1C("mask"),
|
|
2416
2416
|
"style": maskStyle
|
|
2417
2417
|
}, null), vue.createVNode("div", {
|
|
2418
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
|
2418
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1C("frame")],
|
|
2419
2419
|
"style": frameStyle
|
|
2420
2420
|
}, null)];
|
|
2421
2421
|
}
|
|
@@ -2427,7 +2427,7 @@
|
|
|
2427
2427
|
};
|
|
2428
2428
|
return vue.createVNode("div", {
|
|
2429
2429
|
"ref": columnsRef,
|
|
2430
|
-
"class": bem$
|
|
2430
|
+
"class": bem$1C("columns"),
|
|
2431
2431
|
"style": columnsStyle
|
|
2432
2432
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
|
2433
2433
|
};
|
|
@@ -2453,15 +2453,15 @@
|
|
|
2453
2453
|
return () => {
|
|
2454
2454
|
var _a, _b;
|
|
2455
2455
|
return vue.createVNode("div", {
|
|
2456
|
-
"class": bem$
|
|
2456
|
+
"class": bem$1C()
|
|
2457
2457
|
}, [props2.toolbarPosition === "top" ? renderToolbar() : null, props2.loading ? vue.createVNode(Loading, {
|
|
2458
|
-
"class": bem$
|
|
2458
|
+
"class": bem$1C("loading")
|
|
2459
2459
|
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props2.toolbarPosition === "bottom" ? renderToolbar() : null]);
|
|
2460
2460
|
};
|
|
2461
2461
|
}
|
|
2462
2462
|
});
|
|
2463
|
-
const Picker = withInstall(stdin_default$
|
|
2464
|
-
const [name$
|
|
2463
|
+
const Picker = withInstall(stdin_default$1O);
|
|
2464
|
+
const [name$1F, bem$1B] = createNamespace("area");
|
|
2465
2465
|
const EMPTY_CODE = "000000";
|
|
2466
2466
|
const INHERIT_SLOTS = ["title", "cancel", "confirm", "toolbar", "columns-top", "columns-bottom"];
|
|
2467
2467
|
const INHERIT_PROPS = ["title", "loading", "readonly", "itemHeight", "swipeDuration", "visibleItemCount", "cancelButtonText", "confirmButtonText"];
|
|
@@ -2479,8 +2479,8 @@
|
|
|
2479
2479
|
default: isOverseaCode
|
|
2480
2480
|
}
|
|
2481
2481
|
});
|
|
2482
|
-
var stdin_default$
|
|
2483
|
-
name: name$
|
|
2482
|
+
var stdin_default$1N = vue.defineComponent({
|
|
2483
|
+
name: name$1F,
|
|
2484
2484
|
props: areaProps,
|
|
2485
2485
|
emits: ["change", "confirm", "cancel"],
|
|
2486
2486
|
setup(props2, {
|
|
@@ -2680,7 +2680,7 @@
|
|
|
2680
2680
|
const columns = state.columns.slice(0, +props2.columnsNum);
|
|
2681
2681
|
return vue.createVNode(Picker, vue.mergeProps({
|
|
2682
2682
|
"ref": pickerRef,
|
|
2683
|
-
"class": bem$
|
|
2683
|
+
"class": bem$1B(),
|
|
2684
2684
|
"columns": columns,
|
|
2685
2685
|
"columnsFieldNames": {
|
|
2686
2686
|
text: "name"
|
|
@@ -2692,8 +2692,8 @@
|
|
|
2692
2692
|
};
|
|
2693
2693
|
}
|
|
2694
2694
|
});
|
|
2695
|
-
const Area = withInstall(stdin_default$
|
|
2696
|
-
const [name$
|
|
2695
|
+
const Area = withInstall(stdin_default$1N);
|
|
2696
|
+
const [name$1E, bem$1A] = createNamespace("checkbox-group");
|
|
2697
2697
|
const checkboxGroupProps = {
|
|
2698
2698
|
max: numericProp,
|
|
2699
2699
|
disabled: Boolean,
|
|
@@ -2704,9 +2704,9 @@
|
|
|
2704
2704
|
modelValue: makeArrayProp(),
|
|
2705
2705
|
checkedColor: String
|
|
2706
2706
|
};
|
|
2707
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
|
2708
|
-
var stdin_default$
|
|
2709
|
-
name: name$
|
|
2707
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$1E);
|
|
2708
|
+
var stdin_default$1M = vue.defineComponent({
|
|
2709
|
+
name: name$1E,
|
|
2710
2710
|
props: checkboxGroupProps,
|
|
2711
2711
|
emits: ["change", "update:modelValue"],
|
|
2712
2712
|
setup(props2, {
|
|
@@ -2752,7 +2752,7 @@
|
|
|
2752
2752
|
return () => {
|
|
2753
2753
|
var _a;
|
|
2754
2754
|
return vue.createVNode("div", {
|
|
2755
|
-
"class": bem$
|
|
2755
|
+
"class": bem$1A([props2.direction])
|
|
2756
2756
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
2757
2757
|
};
|
|
2758
2758
|
}
|
|
@@ -2770,7 +2770,7 @@
|
|
|
2770
2770
|
labelDisabled: Boolean,
|
|
2771
2771
|
allowUncheck: Boolean
|
|
2772
2772
|
};
|
|
2773
|
-
var stdin_default$
|
|
2773
|
+
var stdin_default$1L = vue.defineComponent({
|
|
2774
2774
|
props: extend$1({}, checkerProps, {
|
|
2775
2775
|
bem: makeRequiredProp(Function),
|
|
2776
2776
|
role: String,
|
|
@@ -2876,12 +2876,12 @@
|
|
|
2876
2876
|
};
|
|
2877
2877
|
}
|
|
2878
2878
|
});
|
|
2879
|
-
const [name$
|
|
2879
|
+
const [name$1D, bem$1z] = createNamespace("checkbox");
|
|
2880
2880
|
const checkboxProps = extend$1({}, checkerProps, {
|
|
2881
2881
|
bindGroup: truthProp
|
|
2882
2882
|
});
|
|
2883
|
-
var stdin_default$
|
|
2884
|
-
name: name$
|
|
2883
|
+
var stdin_default$1K = vue.defineComponent({
|
|
2884
|
+
name: name$1D,
|
|
2885
2885
|
props: checkboxProps,
|
|
2886
2886
|
emits: ["change", "update:modelValue"],
|
|
2887
2887
|
setup(props2, {
|
|
@@ -2938,8 +2938,8 @@
|
|
|
2938
2938
|
checked
|
|
2939
2939
|
});
|
|
2940
2940
|
useCustomFieldValue(() => props2.modelValue);
|
|
2941
|
-
return () => vue.createVNode(stdin_default$
|
|
2942
|
-
"bem": bem$
|
|
2941
|
+
return () => vue.createVNode(stdin_default$1L, vue.mergeProps({
|
|
2942
|
+
"bem": bem$1z,
|
|
2943
2943
|
"role": "checkbox",
|
|
2944
2944
|
"parent": parent,
|
|
2945
2945
|
"checked": checked.value,
|
|
@@ -2947,8 +2947,8 @@
|
|
|
2947
2947
|
}, props2), pick(slots, ["default", "icon"]));
|
|
2948
2948
|
}
|
|
2949
2949
|
});
|
|
2950
|
-
const Checkbox = withInstall(stdin_default$
|
|
2951
|
-
const [name$
|
|
2950
|
+
const Checkbox = withInstall(stdin_default$1K);
|
|
2951
|
+
const [name$1C, bem$1y] = createNamespace("radio-group");
|
|
2952
2952
|
const radioGroupProps = {
|
|
2953
2953
|
disabled: Boolean,
|
|
2954
2954
|
iconSize: numericProp,
|
|
@@ -2959,9 +2959,9 @@
|
|
|
2959
2959
|
checkedColor: String,
|
|
2960
2960
|
allowUncheck: Boolean
|
|
2961
2961
|
};
|
|
2962
|
-
const RADIO_KEY = Symbol(name$
|
|
2963
|
-
var stdin_default$
|
|
2964
|
-
name: name$
|
|
2962
|
+
const RADIO_KEY = Symbol(name$1C);
|
|
2963
|
+
var stdin_default$1J = vue.defineComponent({
|
|
2964
|
+
name: name$1C,
|
|
2965
2965
|
props: radioGroupProps,
|
|
2966
2966
|
emits: ["change", "update:modelValue"],
|
|
2967
2967
|
setup(props2, {
|
|
@@ -2981,15 +2981,15 @@
|
|
|
2981
2981
|
return () => {
|
|
2982
2982
|
var _a;
|
|
2983
2983
|
return vue.createVNode("div", {
|
|
2984
|
-
"class": bem$
|
|
2984
|
+
"class": bem$1y([props2.direction]),
|
|
2985
2985
|
"role": "radiogroup"
|
|
2986
2986
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
2987
2987
|
};
|
|
2988
2988
|
}
|
|
2989
2989
|
});
|
|
2990
|
-
const [name$
|
|
2991
|
-
var stdin_default$
|
|
2992
|
-
name: name$
|
|
2990
|
+
const [name$1B, bem$1x] = createNamespace("radio");
|
|
2991
|
+
var stdin_default$1I = vue.defineComponent({
|
|
2992
|
+
name: name$1B,
|
|
2993
2993
|
props: checkerProps,
|
|
2994
2994
|
emits: ["update:modelValue"],
|
|
2995
2995
|
setup(props2, {
|
|
@@ -3018,8 +3018,8 @@
|
|
|
3018
3018
|
emit("update:modelValue", val);
|
|
3019
3019
|
}
|
|
3020
3020
|
};
|
|
3021
|
-
return () => vue.createVNode(stdin_default$
|
|
3022
|
-
"bem": bem$
|
|
3021
|
+
return () => vue.createVNode(stdin_default$1L, vue.mergeProps({
|
|
3022
|
+
"bem": bem$1x,
|
|
3023
3023
|
"role": "radio",
|
|
3024
3024
|
"parent": parent,
|
|
3025
3025
|
"checked": checked(),
|
|
@@ -3029,8 +3029,8 @@
|
|
|
3029
3029
|
}, props2), pick(slots, ["default", "icon"]));
|
|
3030
3030
|
}
|
|
3031
3031
|
});
|
|
3032
|
-
const Radio = withInstall(stdin_default$
|
|
3033
|
-
const [name$
|
|
3032
|
+
const Radio = withInstall(stdin_default$1I);
|
|
3033
|
+
const [name$1A, bem$1w] = createNamespace("cell");
|
|
3034
3034
|
const cellSharedProps = {
|
|
3035
3035
|
icon: String,
|
|
3036
3036
|
size: String,
|
|
@@ -3074,8 +3074,8 @@
|
|
|
3074
3074
|
}
|
|
3075
3075
|
};
|
|
3076
3076
|
const cellProps = extend$1({}, cellSharedProps, routeProps);
|
|
3077
|
-
var stdin_default$
|
|
3078
|
-
name: name$
|
|
3077
|
+
var stdin_default$1H = vue.defineComponent({
|
|
3078
|
+
name: name$1A,
|
|
3079
3079
|
props: cellProps,
|
|
3080
3080
|
emits: ["click", "update:leftSelect", "update:rightSelect"],
|
|
3081
3081
|
setup(props2, {
|
|
@@ -3121,17 +3121,17 @@
|
|
|
3121
3121
|
const showLabel = slots.label || isDef(props2.label);
|
|
3122
3122
|
if (showLabel) {
|
|
3123
3123
|
return vue.createVNode("div", {
|
|
3124
|
-
"class": [bem$
|
|
3124
|
+
"class": [bem$1w("label"), props2.labelClass]
|
|
3125
3125
|
}, [slots.label ? slots.label() : props2.label]);
|
|
3126
3126
|
}
|
|
3127
3127
|
};
|
|
3128
3128
|
const renderTitle = () => {
|
|
3129
3129
|
if (slots.title || isDef(props2.title)) {
|
|
3130
3130
|
return vue.createVNode("div", {
|
|
3131
|
-
"class": [bem$
|
|
3131
|
+
"class": [bem$1w("title"), props2.titleClass],
|
|
3132
3132
|
"style": props2.titleStyle
|
|
3133
3133
|
}, [vue.createVNode("div", {
|
|
3134
|
-
"class": bem$
|
|
3134
|
+
"class": bem$1w("title-row")
|
|
3135
3135
|
}, [slots.title ? slots.title() : vue.createVNode("span", null, [props2.title]), renderTags(), renderTitleIcon()]), renderLabel()]);
|
|
3136
3136
|
}
|
|
3137
3137
|
};
|
|
@@ -3141,7 +3141,7 @@
|
|
|
3141
3141
|
if (hasValue) {
|
|
3142
3142
|
const hasTitle = slots.title || isDef(props2.title);
|
|
3143
3143
|
return vue.createVNode("div", {
|
|
3144
|
-
"class": [bem$
|
|
3144
|
+
"class": [bem$1w("value", {
|
|
3145
3145
|
alone: !hasTitle
|
|
3146
3146
|
}), props2.valueClass]
|
|
3147
3147
|
}, [slot ? slot() : vue.createVNode("span", null, [props2.value])]);
|
|
@@ -3154,7 +3154,7 @@
|
|
|
3154
3154
|
if (props2.icon) {
|
|
3155
3155
|
return vue.createVNode(Icon, {
|
|
3156
3156
|
"name": props2.icon,
|
|
3157
|
-
"class": bem$
|
|
3157
|
+
"class": bem$1w("left-icon"),
|
|
3158
3158
|
"classPrefix": props2.iconPrefix
|
|
3159
3159
|
}, null);
|
|
3160
3160
|
}
|
|
@@ -3165,13 +3165,13 @@
|
|
|
3165
3165
|
const selected = getSelectState(position);
|
|
3166
3166
|
if (slot) {
|
|
3167
3167
|
return vue.createVNode("div", {
|
|
3168
|
-
"class": bem$
|
|
3168
|
+
"class": bem$1w(`${position}-select`)
|
|
3169
3169
|
}, [slot()]);
|
|
3170
3170
|
}
|
|
3171
3171
|
if (hasSelect(position)) {
|
|
3172
3172
|
const checkboxSize = (_b2 = (_a2 = props2.size) != null ? _a2 : config == null ? void 0 : config.cellSize) != null ? _b2 : "normal";
|
|
3173
3173
|
return vue.createVNode("div", {
|
|
3174
|
-
"class": bem$
|
|
3174
|
+
"class": bem$1w(`${position}-select`),
|
|
3175
3175
|
"onClick": (event) => event.stopPropagation()
|
|
3176
3176
|
}, [props2.selectType === "radio" ? vue.createVNode(Radio, {
|
|
3177
3177
|
"modelValue": selected ? "selected" : "",
|
|
@@ -3192,12 +3192,12 @@
|
|
|
3192
3192
|
const avatar = position === "left" ? props2.avatar : props2.rightAvatar;
|
|
3193
3193
|
if (slot) {
|
|
3194
3194
|
return vue.createVNode("div", {
|
|
3195
|
-
"class": bem$
|
|
3195
|
+
"class": bem$1w(`${position}-avatar`)
|
|
3196
3196
|
}, [slot()]);
|
|
3197
3197
|
}
|
|
3198
3198
|
if (avatar) {
|
|
3199
3199
|
return vue.createVNode("img", {
|
|
3200
|
-
"class": bem$
|
|
3200
|
+
"class": bem$1w(`${position}-avatar`),
|
|
3201
3201
|
"src": avatar,
|
|
3202
3202
|
"alt": ""
|
|
3203
3203
|
}, null);
|
|
@@ -3206,12 +3206,12 @@
|
|
|
3206
3206
|
const renderBlueMark = () => {
|
|
3207
3207
|
if (slots["blue-mark"]) {
|
|
3208
3208
|
return vue.createVNode("div", {
|
|
3209
|
-
"class": bem$
|
|
3209
|
+
"class": bem$1w("blue-mark")
|
|
3210
3210
|
}, [slots["blue-mark"]()]);
|
|
3211
3211
|
}
|
|
3212
3212
|
if (props2.blueMark) {
|
|
3213
3213
|
return vue.createVNode("span", {
|
|
3214
|
-
"class": bem$
|
|
3214
|
+
"class": bem$1w("blue-mark")
|
|
3215
3215
|
}, null);
|
|
3216
3216
|
}
|
|
3217
3217
|
};
|
|
@@ -3219,52 +3219,52 @@
|
|
|
3219
3219
|
var _a2;
|
|
3220
3220
|
if (slots.tags) {
|
|
3221
3221
|
return vue.createVNode("div", {
|
|
3222
|
-
"class": bem$
|
|
3222
|
+
"class": bem$1w("tags")
|
|
3223
3223
|
}, [slots.tags()]);
|
|
3224
3224
|
}
|
|
3225
3225
|
if ((_a2 = props2.tags) == null ? void 0 : _a2.length) {
|
|
3226
3226
|
return vue.createVNode("div", {
|
|
3227
|
-
"class": bem$
|
|
3227
|
+
"class": bem$1w("tags")
|
|
3228
3228
|
}, [props2.tags.map((tag, index) => vue.createVNode("span", {
|
|
3229
3229
|
"key": `${tag}-${index}`,
|
|
3230
|
-
"class": bem$
|
|
3230
|
+
"class": bem$1w("tag")
|
|
3231
3231
|
}, [tag]))]);
|
|
3232
3232
|
}
|
|
3233
3233
|
};
|
|
3234
3234
|
const renderTitleIcon = () => {
|
|
3235
3235
|
if (slots["title-icon"]) {
|
|
3236
3236
|
return vue.createVNode("div", {
|
|
3237
|
-
"class": bem$
|
|
3237
|
+
"class": bem$1w("title-icon")
|
|
3238
3238
|
}, [slots["title-icon"]()]);
|
|
3239
3239
|
}
|
|
3240
3240
|
if (props2.titleIcon) {
|
|
3241
3241
|
return vue.createVNode(Icon, {
|
|
3242
3242
|
"name": props2.titleIcon,
|
|
3243
|
-
"class": bem$
|
|
3243
|
+
"class": bem$1w("title-icon")
|
|
3244
3244
|
}, null);
|
|
3245
3245
|
}
|
|
3246
3246
|
};
|
|
3247
3247
|
const renderNote = () => {
|
|
3248
3248
|
if (slots.note) {
|
|
3249
3249
|
return vue.createVNode("div", {
|
|
3250
|
-
"class": bem$
|
|
3250
|
+
"class": bem$1w("note")
|
|
3251
3251
|
}, [slots.note()]);
|
|
3252
3252
|
}
|
|
3253
3253
|
if (isDef(props2.note)) {
|
|
3254
3254
|
return vue.createVNode("div", {
|
|
3255
|
-
"class": bem$
|
|
3255
|
+
"class": bem$1w("note")
|
|
3256
3256
|
}, [props2.note]);
|
|
3257
3257
|
}
|
|
3258
3258
|
};
|
|
3259
3259
|
const renderBadge = () => {
|
|
3260
3260
|
if (slots.badge) {
|
|
3261
3261
|
return vue.createVNode("div", {
|
|
3262
|
-
"class": bem$
|
|
3262
|
+
"class": bem$1w("badge")
|
|
3263
3263
|
}, [slots.badge()]);
|
|
3264
3264
|
}
|
|
3265
3265
|
if (isDef(props2.badge)) {
|
|
3266
3266
|
return vue.createVNode("div", {
|
|
3267
|
-
"class": bem$
|
|
3267
|
+
"class": bem$1w("badge")
|
|
3268
3268
|
}, [vue.createVNode(Badge, {
|
|
3269
3269
|
"content": props2.badge,
|
|
3270
3270
|
"showZero": true
|
|
@@ -3278,14 +3278,14 @@
|
|
|
3278
3278
|
if (props2.rightIcon) {
|
|
3279
3279
|
return vue.createVNode(Icon, {
|
|
3280
3280
|
"name": props2.rightIcon,
|
|
3281
|
-
"class": bem$
|
|
3281
|
+
"class": bem$1w("right-icon")
|
|
3282
3282
|
}, null);
|
|
3283
3283
|
}
|
|
3284
3284
|
if (props2.isLink) {
|
|
3285
3285
|
const name2 = props2.arrowDirection && props2.arrowDirection !== "right" ? `arrow-${props2.arrowDirection}` : "arrow";
|
|
3286
3286
|
return vue.createVNode(Icon, {
|
|
3287
3287
|
"name": name2,
|
|
3288
|
-
"class": bem$
|
|
3288
|
+
"class": bem$1w("right-icon")
|
|
3289
3289
|
}, null);
|
|
3290
3290
|
}
|
|
3291
3291
|
};
|
|
@@ -3317,7 +3317,7 @@
|
|
|
3317
3317
|
}
|
|
3318
3318
|
};
|
|
3319
3319
|
return vue.createVNode("div", {
|
|
3320
|
-
"class": [bem$
|
|
3320
|
+
"class": [bem$1w(classes), props2.errorBorder ? "van-cell-error-border" : ""],
|
|
3321
3321
|
"role": clickable ? "button" : void 0,
|
|
3322
3322
|
"tabindex": clickable ? 0 : void 0,
|
|
3323
3323
|
"onClick": onClick
|
|
@@ -3325,8 +3325,8 @@
|
|
|
3325
3325
|
};
|
|
3326
3326
|
}
|
|
3327
3327
|
});
|
|
3328
|
-
const Cell = withInstall(stdin_default$
|
|
3329
|
-
const [name$
|
|
3328
|
+
const Cell = withInstall(stdin_default$1H);
|
|
3329
|
+
const [name$1z, bem$1v] = createNamespace("form");
|
|
3330
3330
|
const formProps = {
|
|
3331
3331
|
colon: Boolean,
|
|
3332
3332
|
disabled: Boolean,
|
|
@@ -3345,8 +3345,8 @@
|
|
|
3345
3345
|
default: "onBlur"
|
|
3346
3346
|
}
|
|
3347
3347
|
};
|
|
3348
|
-
var stdin_default$
|
|
3349
|
-
name: name$
|
|
3348
|
+
var stdin_default$1G = vue.defineComponent({
|
|
3349
|
+
name: name$1z,
|
|
3350
3350
|
props: formProps,
|
|
3351
3351
|
emits: ["submit", "failed"],
|
|
3352
3352
|
setup(props2, {
|
|
@@ -3470,13 +3470,13 @@
|
|
|
3470
3470
|
return () => {
|
|
3471
3471
|
var _a;
|
|
3472
3472
|
return vue.createVNode("form", {
|
|
3473
|
-
"class": bem$
|
|
3473
|
+
"class": bem$1v(),
|
|
3474
3474
|
"onSubmit": onSubmit
|
|
3475
3475
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
3478
|
});
|
|
3479
|
-
const Form = withInstall(stdin_default$
|
|
3479
|
+
const Form = withInstall(stdin_default$1G);
|
|
3480
3480
|
function isEmptyValue(value) {
|
|
3481
3481
|
if (Array.isArray(value)) {
|
|
3482
3482
|
return !value.length;
|
|
@@ -3571,7 +3571,7 @@
|
|
|
3571
3571
|
const { name: name2 = "unknown" } = (vm == null ? void 0 : vm.type) || {};
|
|
3572
3572
|
return `${name2}-${++current}`;
|
|
3573
3573
|
}
|
|
3574
|
-
const [name$
|
|
3574
|
+
const [name$1y, bem$1u] = createNamespace("field");
|
|
3575
3575
|
const fieldSharedProps = {
|
|
3576
3576
|
id: String,
|
|
3577
3577
|
name: String,
|
|
@@ -3624,8 +3624,8 @@
|
|
|
3624
3624
|
default: false
|
|
3625
3625
|
}
|
|
3626
3626
|
});
|
|
3627
|
-
var stdin_default$
|
|
3628
|
-
name: name$
|
|
3627
|
+
var stdin_default$1F = vue.defineComponent({
|
|
3628
|
+
name: name$1y,
|
|
3629
3629
|
props: fieldProps,
|
|
3630
3630
|
emits: ["blur", "focus", "clear", "keypress", "click-input", "end-validate", "start-validate", "click-left-icon", "click-right-icon", "update:modelValue"],
|
|
3631
3631
|
setup(props2, {
|
|
@@ -3897,7 +3897,7 @@
|
|
|
3897
3897
|
const getInputId = () => props2.id || `${id}-input`;
|
|
3898
3898
|
const getValidationStatus = () => state.status;
|
|
3899
3899
|
const renderInput = () => {
|
|
3900
|
-
const controlClass = bem$
|
|
3900
|
+
const controlClass = bem$1u("control", [getProp("inputAlign"), {
|
|
3901
3901
|
error: showError.value,
|
|
3902
3902
|
custom: !!slots.input,
|
|
3903
3903
|
"min-height": props2.type === "textarea" && !props2.autosize
|
|
@@ -3939,7 +3939,7 @@
|
|
|
3939
3939
|
const leftIconSlot = slots["left-icon"];
|
|
3940
3940
|
if (props2.leftIcon || leftIconSlot) {
|
|
3941
3941
|
return vue.createVNode("div", {
|
|
3942
|
-
"class": bem$
|
|
3942
|
+
"class": bem$1u("left-icon"),
|
|
3943
3943
|
"onClick": onClickLeftIcon
|
|
3944
3944
|
}, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
|
|
3945
3945
|
"name": props2.leftIcon,
|
|
@@ -3951,7 +3951,7 @@
|
|
|
3951
3951
|
const rightIconSlot = slots["right-icon"];
|
|
3952
3952
|
if (props2.rightIcon || rightIconSlot) {
|
|
3953
3953
|
return vue.createVNode("div", {
|
|
3954
|
-
"class": bem$
|
|
3954
|
+
"class": bem$1u("right-icon"),
|
|
3955
3955
|
"onClick": onClickRightIcon
|
|
3956
3956
|
}, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
|
|
3957
3957
|
"name": props2.rightIcon,
|
|
@@ -3963,9 +3963,9 @@
|
|
|
3963
3963
|
if (props2.showWordLimit && props2.maxlength) {
|
|
3964
3964
|
const count = getStringLength(getModelValue());
|
|
3965
3965
|
return vue.createVNode("div", {
|
|
3966
|
-
"class": bem$
|
|
3966
|
+
"class": bem$1u("word-limit")
|
|
3967
3967
|
}, [vue.createVNode("span", {
|
|
3968
|
-
"class": bem$
|
|
3968
|
+
"class": bem$1u("word-num")
|
|
3969
3969
|
}, [count]), vue.createTextVNode("/"), props2.maxlength]);
|
|
3970
3970
|
}
|
|
3971
3971
|
};
|
|
@@ -3978,7 +3978,7 @@
|
|
|
3978
3978
|
const slot = slots["error-message"];
|
|
3979
3979
|
const errorMessageAlign = getProp("errorMessageAlign");
|
|
3980
3980
|
return vue.createVNode("div", {
|
|
3981
|
-
"class": bem$
|
|
3981
|
+
"class": bem$1u("error-message", errorMessageAlign)
|
|
3982
3982
|
}, [slot ? slot({
|
|
3983
3983
|
message
|
|
3984
3984
|
}) : message]);
|
|
@@ -3997,13 +3997,13 @@
|
|
|
3997
3997
|
}
|
|
3998
3998
|
};
|
|
3999
3999
|
const renderFieldBody = () => [vue.createVNode("div", {
|
|
4000
|
-
"class": bem$
|
|
4000
|
+
"class": bem$1u("body")
|
|
4001
4001
|
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
|
4002
4002
|
"ref": clearIconRef,
|
|
4003
4003
|
"name": props2.clearIcon,
|
|
4004
|
-
"class": bem$
|
|
4004
|
+
"class": bem$1u("clear")
|
|
4005
4005
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
|
4006
|
-
"class": bem$
|
|
4006
|
+
"class": bem$1u("button")
|
|
4007
4007
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
|
4008
4008
|
useExpose({
|
|
4009
4009
|
blur,
|
|
@@ -4037,12 +4037,12 @@
|
|
|
4037
4037
|
return () => {
|
|
4038
4038
|
const disabled = getProp("disabled");
|
|
4039
4039
|
const labelAlign = getProp("labelAlign");
|
|
4040
|
-
const
|
|
4040
|
+
const Label2 = renderLabel();
|
|
4041
4041
|
const LeftIcon = renderLeftIcon();
|
|
4042
4042
|
return vue.createVNode(Cell, {
|
|
4043
4043
|
"size": props2.size,
|
|
4044
4044
|
"icon": props2.leftIcon,
|
|
4045
|
-
"class": bem$
|
|
4045
|
+
"class": bem$1u({
|
|
4046
4046
|
error: showError.value,
|
|
4047
4047
|
disabled,
|
|
4048
4048
|
[`label-${labelAlign}`]: labelAlign,
|
|
@@ -4054,21 +4054,21 @@
|
|
|
4054
4054
|
"isLink": props2.isLink,
|
|
4055
4055
|
"clickable": props2.clickable,
|
|
4056
4056
|
"titleStyle": labelStyle.value,
|
|
4057
|
-
"valueClass": bem$
|
|
4058
|
-
"titleClass": [bem$
|
|
4057
|
+
"valueClass": bem$1u("value"),
|
|
4058
|
+
"titleClass": [bem$1u("label", [labelAlign, {
|
|
4059
4059
|
required: props2.required
|
|
4060
4060
|
}]), props2.labelClass],
|
|
4061
4061
|
"arrowDirection": props2.arrowDirection
|
|
4062
4062
|
}, {
|
|
4063
4063
|
icon: LeftIcon ? () => LeftIcon : null,
|
|
4064
|
-
title:
|
|
4064
|
+
title: Label2 ? () => Label2 : null,
|
|
4065
4065
|
value: renderFieldBody,
|
|
4066
4066
|
extra: slots.extra
|
|
4067
4067
|
});
|
|
4068
4068
|
};
|
|
4069
4069
|
}
|
|
4070
4070
|
});
|
|
4071
|
-
const Field = withInstall(stdin_default$
|
|
4071
|
+
const Field = withInstall(stdin_default$1F);
|
|
4072
4072
|
function usePopupState() {
|
|
4073
4073
|
const state = vue.reactive({
|
|
4074
4074
|
show: false
|
|
@@ -4115,7 +4115,7 @@
|
|
|
4115
4115
|
}
|
|
4116
4116
|
}
|
|
4117
4117
|
}
|
|
4118
|
-
const [name$
|
|
4118
|
+
const [name$1x, bem$1t] = createNamespace("toast");
|
|
4119
4119
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
|
4120
4120
|
const toastProps = {
|
|
4121
4121
|
icon: String,
|
|
@@ -4137,8 +4137,8 @@
|
|
|
4137
4137
|
closeOnClick: Boolean,
|
|
4138
4138
|
closeOnClickOverlay: Boolean
|
|
4139
4139
|
};
|
|
4140
|
-
var stdin_default$
|
|
4141
|
-
name: name$
|
|
4140
|
+
var stdin_default$1E = vue.defineComponent({
|
|
4141
|
+
name: name$1x,
|
|
4142
4142
|
props: toastProps,
|
|
4143
4143
|
emits: ["update:show"],
|
|
4144
4144
|
setup(props2, {
|
|
@@ -4173,13 +4173,13 @@
|
|
|
4173
4173
|
return vue.createVNode(Icon, {
|
|
4174
4174
|
"name": icon || type,
|
|
4175
4175
|
"size": iconSize,
|
|
4176
|
-
"class": bem$
|
|
4176
|
+
"class": bem$1t("icon"),
|
|
4177
4177
|
"classPrefix": iconPrefix
|
|
4178
4178
|
}, null);
|
|
4179
4179
|
}
|
|
4180
4180
|
if (type === "loading") {
|
|
4181
4181
|
return vue.createVNode(Loading, {
|
|
4182
|
-
"class": bem$
|
|
4182
|
+
"class": bem$1t("loading"),
|
|
4183
4183
|
"size": iconSize,
|
|
4184
4184
|
"type": loadingType
|
|
4185
4185
|
}, null);
|
|
@@ -4193,10 +4193,10 @@
|
|
|
4193
4193
|
if (isDef(message) && message !== "") {
|
|
4194
4194
|
return type === "html" ? vue.createVNode("div", {
|
|
4195
4195
|
"key": 0,
|
|
4196
|
-
"class": bem$
|
|
4196
|
+
"class": bem$1t("text"),
|
|
4197
4197
|
"innerHTML": String(message)
|
|
4198
4198
|
}, null) : vue.createVNode("div", {
|
|
4199
|
-
"class": bem$
|
|
4199
|
+
"class": bem$1t("text")
|
|
4200
4200
|
}, [message]);
|
|
4201
4201
|
}
|
|
4202
4202
|
};
|
|
@@ -4212,7 +4212,7 @@
|
|
|
4212
4212
|
vue.onMounted(toggleClickable);
|
|
4213
4213
|
vue.onUnmounted(toggleClickable);
|
|
4214
4214
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
4215
|
-
"class": [bem$
|
|
4215
|
+
"class": [bem$1t([props2.position, {
|
|
4216
4216
|
[props2.type]: !props2.icon
|
|
4217
4217
|
}]), props2.className],
|
|
4218
4218
|
"lockScroll": false,
|
|
@@ -4281,7 +4281,7 @@
|
|
|
4281
4281
|
onClosed,
|
|
4282
4282
|
"onUpdate:show": toggle
|
|
4283
4283
|
};
|
|
4284
|
-
return vue.createVNode(stdin_default$
|
|
4284
|
+
return vue.createVNode(stdin_default$1E, vue.mergeProps(state, attrs), null);
|
|
4285
4285
|
};
|
|
4286
4286
|
vue.watch(message, (val) => {
|
|
4287
4287
|
state.message = val;
|
|
@@ -4353,10 +4353,10 @@
|
|
|
4353
4353
|
allowMultiple = value;
|
|
4354
4354
|
};
|
|
4355
4355
|
Toast.install = (app) => {
|
|
4356
|
-
app.use(withInstall(stdin_default$
|
|
4356
|
+
app.use(withInstall(stdin_default$1E));
|
|
4357
4357
|
app.config.globalProperties.$toast = Toast;
|
|
4358
4358
|
};
|
|
4359
|
-
const [name$
|
|
4359
|
+
const [name$1w, bem$1s] = createNamespace("switch");
|
|
4360
4360
|
const switchProps = {
|
|
4361
4361
|
size: numericProp,
|
|
4362
4362
|
loading: Boolean,
|
|
@@ -4373,8 +4373,8 @@
|
|
|
4373
4373
|
default: false
|
|
4374
4374
|
}
|
|
4375
4375
|
};
|
|
4376
|
-
var stdin_default$
|
|
4377
|
-
name: name$
|
|
4376
|
+
var stdin_default$1D = vue.defineComponent({
|
|
4377
|
+
name: name$1w,
|
|
4378
4378
|
props: switchProps,
|
|
4379
4379
|
emits: ["change", "update:modelValue"],
|
|
4380
4380
|
setup(props2, {
|
|
@@ -4393,7 +4393,7 @@
|
|
|
4393
4393
|
if (props2.loading) {
|
|
4394
4394
|
const color = isChecked() ? props2.activeColor : props2.inactiveColor;
|
|
4395
4395
|
return vue.createVNode(Loading, {
|
|
4396
|
-
"class": bem$
|
|
4396
|
+
"class": bem$1s("loading"),
|
|
4397
4397
|
"color": color
|
|
4398
4398
|
}, null);
|
|
4399
4399
|
}
|
|
@@ -4418,7 +4418,7 @@
|
|
|
4418
4418
|
};
|
|
4419
4419
|
return vue.createVNode("div", {
|
|
4420
4420
|
"role": "switch",
|
|
4421
|
-
"class": bem$
|
|
4421
|
+
"class": bem$1s({
|
|
4422
4422
|
on: checked,
|
|
4423
4423
|
loading,
|
|
4424
4424
|
disabled
|
|
@@ -4428,16 +4428,16 @@
|
|
|
4428
4428
|
"aria-checked": checked,
|
|
4429
4429
|
"onClick": onClick
|
|
4430
4430
|
}, [vue.createVNode("div", {
|
|
4431
|
-
"class": bem$
|
|
4431
|
+
"class": bem$1s("node")
|
|
4432
4432
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
4433
4433
|
};
|
|
4434
4434
|
}
|
|
4435
4435
|
});
|
|
4436
|
-
const Switch = withInstall(stdin_default$
|
|
4437
|
-
const [name$
|
|
4436
|
+
const Switch = withInstall(stdin_default$1D);
|
|
4437
|
+
const [name$1v, bem$1r] = createNamespace("address-edit-detail");
|
|
4438
4438
|
const t$i = createNamespace("address-edit")[2];
|
|
4439
|
-
var stdin_default$
|
|
4440
|
-
name: name$
|
|
4439
|
+
var stdin_default$1C = vue.defineComponent({
|
|
4440
|
+
name: name$1v,
|
|
4441
4441
|
props: {
|
|
4442
4442
|
show: Boolean,
|
|
4443
4443
|
rows: numericProp,
|
|
@@ -4460,7 +4460,7 @@
|
|
|
4460
4460
|
};
|
|
4461
4461
|
const renderSearchTitle = (express) => {
|
|
4462
4462
|
if (express.name) {
|
|
4463
|
-
const text = express.name.replace(props2.value, `<span class=${bem$
|
|
4463
|
+
const text = express.name.replace(props2.value, `<span class=${bem$1r("keyword")}>${props2.value}</span>`);
|
|
4464
4464
|
return vue.createVNode("div", {
|
|
4465
4465
|
"innerHTML": text
|
|
4466
4466
|
}, null);
|
|
@@ -4478,7 +4478,7 @@
|
|
|
4478
4478
|
"key": express.name + express.address,
|
|
4479
4479
|
"icon": "location-o",
|
|
4480
4480
|
"label": express.address,
|
|
4481
|
-
"class": bem$
|
|
4481
|
+
"class": bem$1r("search-item"),
|
|
4482
4482
|
"border": false,
|
|
4483
4483
|
"onClick": () => onSelect(express)
|
|
4484
4484
|
}, {
|
|
@@ -4494,7 +4494,7 @@
|
|
|
4494
4494
|
"autosize": true,
|
|
4495
4495
|
"clearable": true,
|
|
4496
4496
|
"ref": field,
|
|
4497
|
-
"class": bem$
|
|
4497
|
+
"class": bem$1r(),
|
|
4498
4498
|
"rows": props2.rows,
|
|
4499
4499
|
"type": "textarea",
|
|
4500
4500
|
"rules": props2.rules,
|
|
@@ -4511,7 +4511,7 @@
|
|
|
4511
4511
|
};
|
|
4512
4512
|
}
|
|
4513
4513
|
});
|
|
4514
|
-
const [name$
|
|
4514
|
+
const [name$1u, bem$1q, t$h] = createNamespace("address-edit");
|
|
4515
4515
|
const DEFAULT_DATA = {
|
|
4516
4516
|
name: "",
|
|
4517
4517
|
tel: "",
|
|
@@ -4558,8 +4558,8 @@
|
|
|
4558
4558
|
default: isPostal
|
|
4559
4559
|
}
|
|
4560
4560
|
};
|
|
4561
|
-
var stdin_default$
|
|
4562
|
-
name: name$
|
|
4561
|
+
var stdin_default$1B = vue.defineComponent({
|
|
4562
|
+
name: name$1u,
|
|
4563
4563
|
props: addressEditProps,
|
|
4564
4564
|
emits: ["save", "focus", "delete", "click-area", "change-area", "change-detail", "select-search", "change-default"],
|
|
4565
4565
|
setup(props2, {
|
|
@@ -4685,7 +4685,7 @@
|
|
|
4685
4685
|
return vue.withDirectives(vue.createVNode(Cell, {
|
|
4686
4686
|
"center": true,
|
|
4687
4687
|
"title": t$h("defaultAddress"),
|
|
4688
|
-
"class": bem$
|
|
4688
|
+
"class": bem$1q("default")
|
|
4689
4689
|
}, slots2), [[vue.vShow, !hideBottomFields.value]]);
|
|
4690
4690
|
}
|
|
4691
4691
|
};
|
|
@@ -4707,13 +4707,13 @@
|
|
|
4707
4707
|
disableArea
|
|
4708
4708
|
} = props2;
|
|
4709
4709
|
return vue.createVNode(Form, {
|
|
4710
|
-
"class": bem$
|
|
4710
|
+
"class": bem$1q(),
|
|
4711
4711
|
"onSubmit": onSave
|
|
4712
4712
|
}, {
|
|
4713
4713
|
default: () => {
|
|
4714
4714
|
var _a;
|
|
4715
4715
|
return [vue.createVNode("div", {
|
|
4716
|
-
"class": bem$
|
|
4716
|
+
"class": bem$1q("fields")
|
|
4717
4717
|
}, [vue.createVNode(Field, {
|
|
4718
4718
|
"modelValue": data.name,
|
|
4719
4719
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
|
@@ -4744,7 +4744,7 @@
|
|
|
4744
4744
|
emit("click-area");
|
|
4745
4745
|
showAreaPopup.value = !disableArea;
|
|
4746
4746
|
}
|
|
4747
|
-
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$
|
|
4747
|
+
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$1C, {
|
|
4748
4748
|
"show": props2.showDetail,
|
|
4749
4749
|
"rows": props2.detailRows,
|
|
4750
4750
|
"rules": rules.value.addressDetail,
|
|
@@ -4767,19 +4767,19 @@
|
|
|
4767
4767
|
"placeholder": t$h("postal"),
|
|
4768
4768
|
"onFocus": () => onFocus("postalCode")
|
|
4769
4769
|
}, null), [[vue.vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
|
4770
|
-
"class": bem$
|
|
4770
|
+
"class": bem$1q("buttons")
|
|
4771
4771
|
}, [vue.createVNode(Button, {
|
|
4772
4772
|
"block": true,
|
|
4773
4773
|
"round": true,
|
|
4774
4774
|
"type": "primary",
|
|
4775
4775
|
"text": props2.saveButtonText || t$h("save"),
|
|
4776
|
-
"class": bem$
|
|
4776
|
+
"class": bem$1q("button"),
|
|
4777
4777
|
"loading": props2.isSaving,
|
|
4778
4778
|
"nativeType": "submit"
|
|
4779
4779
|
}, null), props2.showDelete && vue.createVNode(Button, {
|
|
4780
4780
|
"block": true,
|
|
4781
4781
|
"round": true,
|
|
4782
|
-
"class": bem$
|
|
4782
|
+
"class": bem$1q("button"),
|
|
4783
4783
|
"loading": props2.isDeleting,
|
|
4784
4784
|
"text": props2.deleteButtonText || t$h("delete"),
|
|
4785
4785
|
"onClick": onDelete
|
|
@@ -4808,9 +4808,9 @@
|
|
|
4808
4808
|
};
|
|
4809
4809
|
}
|
|
4810
4810
|
});
|
|
4811
|
-
const AddressEdit = withInstall(stdin_default$
|
|
4812
|
-
const RadioGroup = withInstall(stdin_default$
|
|
4813
|
-
const [name$
|
|
4811
|
+
const AddressEdit = withInstall(stdin_default$1B);
|
|
4812
|
+
const RadioGroup = withInstall(stdin_default$1J);
|
|
4813
|
+
const [name$1t, bem$1p] = createNamespace("tag");
|
|
4814
4814
|
const tagProps = {
|
|
4815
4815
|
size: makeStringProp("medium"),
|
|
4816
4816
|
mark: Boolean,
|
|
@@ -4822,8 +4822,8 @@
|
|
|
4822
4822
|
textColor: String,
|
|
4823
4823
|
closeable: Boolean
|
|
4824
4824
|
};
|
|
4825
|
-
var stdin_default$
|
|
4826
|
-
name: name$
|
|
4825
|
+
var stdin_default$1A = vue.defineComponent({
|
|
4826
|
+
name: name$1t,
|
|
4827
4827
|
props: tagProps,
|
|
4828
4828
|
emits: ["close"],
|
|
4829
4829
|
setup(props2, {
|
|
@@ -4866,12 +4866,12 @@
|
|
|
4866
4866
|
}
|
|
4867
4867
|
const CloseIcon = closeable && vue.createVNode(Icon, {
|
|
4868
4868
|
"name": "cross",
|
|
4869
|
-
"class": [bem$
|
|
4869
|
+
"class": [bem$1p("close"), HAPTICS_FEEDBACK],
|
|
4870
4870
|
"onClick": onClose
|
|
4871
4871
|
}, null);
|
|
4872
4872
|
return vue.createVNode("span", {
|
|
4873
4873
|
"style": getStyle(),
|
|
4874
|
-
"class": bem$
|
|
4874
|
+
"class": bem$1p([classes, type])
|
|
4875
4875
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
|
4876
4876
|
};
|
|
4877
4877
|
return () => vue.createVNode(vue.Transition, {
|
|
@@ -4881,10 +4881,10 @@
|
|
|
4881
4881
|
});
|
|
4882
4882
|
}
|
|
4883
4883
|
});
|
|
4884
|
-
const Tag = withInstall(stdin_default$
|
|
4885
|
-
const [name$
|
|
4886
|
-
var stdin_default$
|
|
4887
|
-
name: name$
|
|
4884
|
+
const Tag = withInstall(stdin_default$1A);
|
|
4885
|
+
const [name$1s, bem$1o] = createNamespace("address-item");
|
|
4886
|
+
var stdin_default$1z = vue.defineComponent({
|
|
4887
|
+
name: name$1s,
|
|
4888
4888
|
props: {
|
|
4889
4889
|
address: makeRequiredProp(Object),
|
|
4890
4890
|
disabled: Boolean,
|
|
@@ -4904,7 +4904,7 @@
|
|
|
4904
4904
|
};
|
|
4905
4905
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
|
4906
4906
|
"name": "edit",
|
|
4907
|
-
"class": bem$
|
|
4907
|
+
"class": bem$1o("edit"),
|
|
4908
4908
|
"onClick": (event) => {
|
|
4909
4909
|
event.stopPropagation();
|
|
4910
4910
|
emit("edit");
|
|
@@ -4919,7 +4919,7 @@
|
|
|
4919
4919
|
return vue.createVNode(Tag, {
|
|
4920
4920
|
"type": "danger",
|
|
4921
4921
|
"round": true,
|
|
4922
|
-
"class": bem$
|
|
4922
|
+
"class": bem$1o("tag")
|
|
4923
4923
|
}, {
|
|
4924
4924
|
default: () => [props2.defaultTagText]
|
|
4925
4925
|
});
|
|
@@ -4932,9 +4932,9 @@
|
|
|
4932
4932
|
switchable
|
|
4933
4933
|
} = props2;
|
|
4934
4934
|
const Info = [vue.createVNode("div", {
|
|
4935
|
-
"class": bem$
|
|
4935
|
+
"class": bem$1o("name")
|
|
4936
4936
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
|
4937
|
-
"class": bem$
|
|
4937
|
+
"class": bem$1o("address")
|
|
4938
4938
|
}, [address.address])];
|
|
4939
4939
|
if (switchable && !disabled) {
|
|
4940
4940
|
return vue.createVNode(Radio, {
|
|
@@ -4952,13 +4952,13 @@
|
|
|
4952
4952
|
disabled
|
|
4953
4953
|
} = props2;
|
|
4954
4954
|
return vue.createVNode("div", {
|
|
4955
|
-
"class": bem$
|
|
4955
|
+
"class": bem$1o({
|
|
4956
4956
|
disabled
|
|
4957
4957
|
}),
|
|
4958
4958
|
"onClick": onClick
|
|
4959
4959
|
}, [vue.createVNode(Cell, {
|
|
4960
4960
|
"border": false,
|
|
4961
|
-
"valueClass": bem$
|
|
4961
|
+
"valueClass": bem$1o("value")
|
|
4962
4962
|
}, {
|
|
4963
4963
|
value: renderContent,
|
|
4964
4964
|
"right-icon": renderRightIcon
|
|
@@ -4968,7 +4968,7 @@
|
|
|
4968
4968
|
};
|
|
4969
4969
|
}
|
|
4970
4970
|
});
|
|
4971
|
-
const [name$
|
|
4971
|
+
const [name$1r, bem$1n, t$g] = createNamespace("address-list");
|
|
4972
4972
|
const addressListProps = {
|
|
4973
4973
|
list: makeArrayProp(),
|
|
4974
4974
|
modelValue: numericProp,
|
|
@@ -4978,8 +4978,8 @@
|
|
|
4978
4978
|
addButtonText: String,
|
|
4979
4979
|
defaultTagText: String
|
|
4980
4980
|
};
|
|
4981
|
-
var stdin_default$
|
|
4982
|
-
name: name$
|
|
4981
|
+
var stdin_default$1y = vue.defineComponent({
|
|
4982
|
+
name: name$1r,
|
|
4983
4983
|
props: addressListProps,
|
|
4984
4984
|
emits: ["add", "edit", "select", "click-item", "edit-disabled", "select-disabled", "update:modelValue"],
|
|
4985
4985
|
setup(props2, {
|
|
@@ -4995,7 +4995,7 @@
|
|
|
4995
4995
|
emit("update:modelValue", item.id);
|
|
4996
4996
|
}
|
|
4997
4997
|
};
|
|
4998
|
-
return vue.createVNode(stdin_default$
|
|
4998
|
+
return vue.createVNode(stdin_default$1z, {
|
|
4999
4999
|
"key": item.id,
|
|
5000
5000
|
"address": item,
|
|
5001
5001
|
"disabled": disabled,
|
|
@@ -5015,13 +5015,13 @@
|
|
|
5015
5015
|
}
|
|
5016
5016
|
};
|
|
5017
5017
|
const renderBottom = () => vue.createVNode("div", {
|
|
5018
|
-
"class": [bem$
|
|
5018
|
+
"class": [bem$1n("bottom"), "van-safe-area-bottom"]
|
|
5019
5019
|
}, [vue.createVNode(Button, {
|
|
5020
5020
|
"round": true,
|
|
5021
5021
|
"block": true,
|
|
5022
5022
|
"type": "primary",
|
|
5023
5023
|
"text": props2.addButtonText || t$g("add"),
|
|
5024
|
-
"class": bem$
|
|
5024
|
+
"class": bem$1n("add"),
|
|
5025
5025
|
"onClick": () => emit("add")
|
|
5026
5026
|
}, null)]);
|
|
5027
5027
|
return () => {
|
|
@@ -5029,10 +5029,10 @@
|
|
|
5029
5029
|
const List2 = renderList(props2.list);
|
|
5030
5030
|
const DisabledList = renderList(props2.disabledList, true);
|
|
5031
5031
|
const DisabledText = props2.disabledText && vue.createVNode("div", {
|
|
5032
|
-
"class": bem$
|
|
5032
|
+
"class": bem$1n("disabled-text")
|
|
5033
5033
|
}, [props2.disabledText]);
|
|
5034
5034
|
return vue.createVNode("div", {
|
|
5035
|
-
"class": bem$
|
|
5035
|
+
"class": bem$1n()
|
|
5036
5036
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
|
|
5037
5037
|
"modelValue": props2.modelValue
|
|
5038
5038
|
}, {
|
|
@@ -5041,13 +5041,13 @@
|
|
|
5041
5041
|
};
|
|
5042
5042
|
}
|
|
5043
5043
|
});
|
|
5044
|
-
const AddressList = withInstall(stdin_default$
|
|
5045
|
-
const [name$
|
|
5044
|
+
const AddressList = withInstall(stdin_default$1y);
|
|
5045
|
+
const [name$1q, bem$1m] = createNamespace("background");
|
|
5046
5046
|
const backgroundProps = {
|
|
5047
5047
|
theme: makeStringProp("default")
|
|
5048
5048
|
};
|
|
5049
|
-
var stdin_default$
|
|
5050
|
-
name: name$
|
|
5049
|
+
var stdin_default$1x = vue.defineComponent({
|
|
5050
|
+
name: name$1q,
|
|
5051
5051
|
props: backgroundProps,
|
|
5052
5052
|
setup(props2, {
|
|
5053
5053
|
slots
|
|
@@ -5055,13 +5055,13 @@
|
|
|
5055
5055
|
return () => {
|
|
5056
5056
|
var _a;
|
|
5057
5057
|
return vue.createVNode("div", {
|
|
5058
|
-
"class": bem$
|
|
5058
|
+
"class": bem$1m([props2.theme])
|
|
5059
5059
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
5060
5060
|
};
|
|
5061
5061
|
}
|
|
5062
5062
|
});
|
|
5063
|
-
const Background = withInstall(stdin_default$
|
|
5064
|
-
const [name$
|
|
5063
|
+
const Background = withInstall(stdin_default$1x);
|
|
5064
|
+
const [name$1p, bem$1l] = createNamespace("blue-mark");
|
|
5065
5065
|
const blueMarkProps = {
|
|
5066
5066
|
size: {
|
|
5067
5067
|
type: String,
|
|
@@ -5075,8 +5075,8 @@
|
|
|
5075
5075
|
gap: numericProp,
|
|
5076
5076
|
isLink: Boolean
|
|
5077
5077
|
};
|
|
5078
|
-
var stdin_default$
|
|
5079
|
-
name: name$
|
|
5078
|
+
var stdin_default$1w = vue.defineComponent({
|
|
5079
|
+
name: name$1p,
|
|
5080
5080
|
props: blueMarkProps,
|
|
5081
5081
|
emits: ["click"],
|
|
5082
5082
|
setup(props2, {
|
|
@@ -5094,30 +5094,30 @@
|
|
|
5094
5094
|
return () => {
|
|
5095
5095
|
var _a;
|
|
5096
5096
|
return vue.createVNode("span", {
|
|
5097
|
-
"class": [name$
|
|
5097
|
+
"class": [name$1p, props2.size === "normal" ? "" : `${name$1p}--${props2.size}`, props2.isLink ? `${name$1p}--link` : ""],
|
|
5098
5098
|
"style": style.value,
|
|
5099
5099
|
"onClick": props2.isLink ? (event) => emit("click", event) : void 0
|
|
5100
5100
|
}, [vue.createVNode("span", {
|
|
5101
|
-
"class": bem$
|
|
5101
|
+
"class": bem$1l("main")
|
|
5102
5102
|
}, [vue.createVNode("span", {
|
|
5103
|
-
"class": bem$
|
|
5103
|
+
"class": bem$1l("mark")
|
|
5104
5104
|
}, null), vue.createVNode("span", {
|
|
5105
|
-
"class": bem$
|
|
5106
|
-
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), props2.isLink && vue.createVNode(stdin_default$
|
|
5105
|
+
"class": bem$1l("content")
|
|
5106
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), props2.isLink && vue.createVNode(stdin_default$1X, {
|
|
5107
5107
|
"name": "arrow",
|
|
5108
|
-
"class": bem$
|
|
5108
|
+
"class": bem$1l("arrow")
|
|
5109
5109
|
}, null)]);
|
|
5110
5110
|
};
|
|
5111
5111
|
}
|
|
5112
5112
|
});
|
|
5113
|
-
const [name$
|
|
5113
|
+
const [name$1o, bem$1k] = createNamespace("collapse-toggle");
|
|
5114
5114
|
const collapseToggleProps = {
|
|
5115
5115
|
modelValue: Boolean,
|
|
5116
5116
|
expandText: makeStringProp("展开"),
|
|
5117
5117
|
collapseText: makeStringProp("收起")
|
|
5118
5118
|
};
|
|
5119
|
-
var stdin_default$
|
|
5120
|
-
name: name$
|
|
5119
|
+
var stdin_default$1v = vue.defineComponent({
|
|
5120
|
+
name: name$1o,
|
|
5121
5121
|
props: collapseToggleProps,
|
|
5122
5122
|
emits: ["update:modelValue", "change"],
|
|
5123
5123
|
setup(props2, {
|
|
@@ -5136,7 +5136,7 @@
|
|
|
5136
5136
|
const text = expanded ? props2.collapseText : props2.expandText;
|
|
5137
5137
|
return vue.createVNode("button", {
|
|
5138
5138
|
"type": "button",
|
|
5139
|
-
"class": bem$
|
|
5139
|
+
"class": bem$1k({
|
|
5140
5140
|
expanded
|
|
5141
5141
|
}),
|
|
5142
5142
|
"aria-expanded": expanded,
|
|
@@ -5146,12 +5146,12 @@
|
|
|
5146
5146
|
text
|
|
5147
5147
|
})) || text]), vue.createVNode(Icon, {
|
|
5148
5148
|
"name": "arrow-down",
|
|
5149
|
-
"class": bem$
|
|
5149
|
+
"class": bem$1k("icon")
|
|
5150
5150
|
}, null)]);
|
|
5151
5151
|
};
|
|
5152
5152
|
}
|
|
5153
5153
|
});
|
|
5154
|
-
const [name$
|
|
5154
|
+
const [name$1n, bem$1j] = createNamespace("blue-mark-header");
|
|
5155
5155
|
const blueMarkHeaderProps = {
|
|
5156
5156
|
title: numericProp,
|
|
5157
5157
|
size: {
|
|
@@ -5165,8 +5165,8 @@
|
|
|
5165
5165
|
expandText: String,
|
|
5166
5166
|
collapseText: String
|
|
5167
5167
|
};
|
|
5168
|
-
var stdin_default$
|
|
5169
|
-
name: name$
|
|
5168
|
+
var stdin_default$1u = vue.defineComponent({
|
|
5169
|
+
name: name$1n,
|
|
5170
5170
|
props: blueMarkHeaderProps,
|
|
5171
5171
|
emits: ["click-action", "update:modelValue", "change"],
|
|
5172
5172
|
setup(props2, {
|
|
@@ -5191,7 +5191,7 @@
|
|
|
5191
5191
|
return () => {
|
|
5192
5192
|
var _a;
|
|
5193
5193
|
return vue.createVNode("div", {
|
|
5194
|
-
"class": bem$
|
|
5194
|
+
"class": bem$1j({
|
|
5195
5195
|
expandable: props2.expandable
|
|
5196
5196
|
}),
|
|
5197
5197
|
"role": props2.expandable ? "button" : void 0,
|
|
@@ -5200,25 +5200,25 @@
|
|
|
5200
5200
|
"onClick": onHeaderClick,
|
|
5201
5201
|
"onKeydown": onHeaderKeydown
|
|
5202
5202
|
}, [vue.createVNode("div", {
|
|
5203
|
-
"class": bem$
|
|
5204
|
-
}, [vue.createVNode(stdin_default$
|
|
5203
|
+
"class": bem$1j("main")
|
|
5204
|
+
}, [vue.createVNode(stdin_default$1w, {
|
|
5205
5205
|
"size": props2.size,
|
|
5206
|
-
"class": bem$
|
|
5206
|
+
"class": bem$1j("title")
|
|
5207
5207
|
}, {
|
|
5208
5208
|
default: () => [slots.title ? slots.title() : slots.default ? slots.default() : props2.title]
|
|
5209
5209
|
}), props2.required && vue.createVNode("span", {
|
|
5210
|
-
"class": bem$
|
|
5210
|
+
"class": bem$1j("required")
|
|
5211
5211
|
}, [vue.createTextVNode("*")]), slots.action ? vue.createVNode("span", {
|
|
5212
|
-
"class": bem$
|
|
5212
|
+
"class": bem$1j("action"),
|
|
5213
5213
|
"onClick": (event) => event.stopPropagation()
|
|
5214
5214
|
}, [slots.action()]) : props2.actionText ? vue.createVNode("button", {
|
|
5215
5215
|
"type": "button",
|
|
5216
|
-
"class": bem$
|
|
5216
|
+
"class": bem$1j("action"),
|
|
5217
5217
|
"onClick": (event) => {
|
|
5218
5218
|
event.stopPropagation();
|
|
5219
5219
|
emit("click-action");
|
|
5220
5220
|
}
|
|
5221
|
-
}, [props2.actionText]) : null]), (_a = slots.extra) == null ? void 0 : _a.call(slots), props2.expandable && vue.createVNode(stdin_default$
|
|
5221
|
+
}, [props2.actionText]) : null]), (_a = slots.extra) == null ? void 0 : _a.call(slots), props2.expandable && vue.createVNode(stdin_default$1v, {
|
|
5222
5222
|
"modelValue": props2.modelValue,
|
|
5223
5223
|
"expandText": props2.expandText,
|
|
5224
5224
|
"collapseText": props2.collapseText,
|
|
@@ -5227,9 +5227,9 @@
|
|
|
5227
5227
|
};
|
|
5228
5228
|
}
|
|
5229
5229
|
});
|
|
5230
|
-
const BlueMark = withInstall(stdin_default$
|
|
5231
|
-
const BlueMarkHeader = withInstall(stdin_default$
|
|
5232
|
-
const CollapseToggle = withInstall(stdin_default$
|
|
5230
|
+
const BlueMark = withInstall(stdin_default$1w);
|
|
5231
|
+
const BlueMarkHeader = withInstall(stdin_default$1u);
|
|
5232
|
+
const CollapseToggle = withInstall(stdin_default$1v);
|
|
5233
5233
|
function getWindow(node) {
|
|
5234
5234
|
if (node == null) {
|
|
5235
5235
|
return window;
|
|
@@ -6124,7 +6124,7 @@
|
|
|
6124
6124
|
requires: ["popperOffsets"],
|
|
6125
6125
|
fn: offset
|
|
6126
6126
|
};
|
|
6127
|
-
const [name$
|
|
6127
|
+
const [name$1m, bem$1i] = createNamespace("popover");
|
|
6128
6128
|
const popupProps$2 = ["show", "overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
|
6129
6129
|
const popoverProps = {
|
|
6130
6130
|
show: Boolean,
|
|
@@ -6150,8 +6150,8 @@
|
|
|
6150
6150
|
default: "body"
|
|
6151
6151
|
}
|
|
6152
6152
|
};
|
|
6153
|
-
var stdin_default$
|
|
6154
|
-
name: name$
|
|
6153
|
+
var stdin_default$1t = vue.defineComponent({
|
|
6154
|
+
name: name$1m,
|
|
6155
6155
|
props: popoverProps,
|
|
6156
6156
|
emits: ["select", "touchstart", "update:show"],
|
|
6157
6157
|
setup(props2, {
|
|
@@ -6223,12 +6223,12 @@
|
|
|
6223
6223
|
});
|
|
6224
6224
|
}
|
|
6225
6225
|
return [action.icon && vue.createVNode("div", {
|
|
6226
|
-
"class": bem$
|
|
6226
|
+
"class": bem$1i("action-icon")
|
|
6227
6227
|
}, [vue.createVNode(Icon, {
|
|
6228
6228
|
"name": action.icon,
|
|
6229
6229
|
"classPrefix": props2.iconPrefix
|
|
6230
6230
|
}, null)]), vue.createVNode("div", {
|
|
6231
|
-
"class": [bem$
|
|
6231
|
+
"class": [bem$1i("action-text"), BORDER_BOTTOM]
|
|
6232
6232
|
}, [action.text])];
|
|
6233
6233
|
};
|
|
6234
6234
|
const renderAction = (action, index) => {
|
|
@@ -6240,7 +6240,7 @@
|
|
|
6240
6240
|
} = action;
|
|
6241
6241
|
return vue.createVNode("div", {
|
|
6242
6242
|
"role": "menuitem",
|
|
6243
|
-
"class": [bem$
|
|
6243
|
+
"class": [bem$1i("action", {
|
|
6244
6244
|
disabled,
|
|
6245
6245
|
"with-icon": icon
|
|
6246
6246
|
}), className],
|
|
@@ -6273,28 +6273,28 @@
|
|
|
6273
6273
|
var _a;
|
|
6274
6274
|
return vue.createVNode(vue.Fragment, null, [vue.createVNode("span", {
|
|
6275
6275
|
"ref": wrapperRef,
|
|
6276
|
-
"class": bem$
|
|
6276
|
+
"class": bem$1i("wrapper"),
|
|
6277
6277
|
"onClick": onClickWrapper
|
|
6278
6278
|
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), vue.createVNode(Popup, vue.mergeProps({
|
|
6279
6279
|
"ref": popoverRef,
|
|
6280
|
-
"class": bem$
|
|
6280
|
+
"class": bem$1i([props2.theme]),
|
|
6281
6281
|
"position": "",
|
|
6282
6282
|
"transition": "van-popover-zoom",
|
|
6283
6283
|
"lockScroll": false,
|
|
6284
6284
|
"onUpdate:show": updateShow
|
|
6285
6285
|
}, attrs, pick(props2, popupProps$2)), {
|
|
6286
6286
|
default: () => [props2.showArrow && vue.createVNode("div", {
|
|
6287
|
-
"class": bem$
|
|
6287
|
+
"class": bem$1i("arrow")
|
|
6288
6288
|
}, null), vue.createVNode("div", {
|
|
6289
6289
|
"role": "menu",
|
|
6290
|
-
"class": bem$
|
|
6290
|
+
"class": bem$1i("content")
|
|
6291
6291
|
}, [slots.default ? slots.default() : props2.actions.map(renderAction)])]
|
|
6292
6292
|
})]);
|
|
6293
6293
|
};
|
|
6294
6294
|
}
|
|
6295
6295
|
});
|
|
6296
|
-
const Popover = withInstall(stdin_default$
|
|
6297
|
-
const [name$
|
|
6296
|
+
const Popover = withInstall(stdin_default$1t);
|
|
6297
|
+
const [name$1l, bem$1h] = createNamespace("bottom-action-bar");
|
|
6298
6298
|
const bottomActionBarProps = {
|
|
6299
6299
|
confirmText: makeStringProp("确定"),
|
|
6300
6300
|
confirmType: makeStringProp("primary"),
|
|
@@ -6321,8 +6321,8 @@
|
|
|
6321
6321
|
checkboxActionDisabled: Boolean,
|
|
6322
6322
|
checkboxActionText: makeStringProp("保存为我的默认筛选")
|
|
6323
6323
|
};
|
|
6324
|
-
var stdin_default$
|
|
6325
|
-
name: name$
|
|
6324
|
+
var stdin_default$1s = vue.defineComponent({
|
|
6325
|
+
name: name$1l,
|
|
6326
6326
|
props: bottomActionBarProps,
|
|
6327
6327
|
emits: ["confirm", "secondary", "icon", "more", "select-more-popover", "update:checkboxActionChecked", "checkbox-action-change"],
|
|
6328
6328
|
setup(props2, {
|
|
@@ -6331,18 +6331,18 @@
|
|
|
6331
6331
|
}) {
|
|
6332
6332
|
const root = vue.ref();
|
|
6333
6333
|
const morePopoverShow = vue.ref(false);
|
|
6334
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
|
6334
|
+
const renderPlaceholder = usePlaceholder(root, bem$1h);
|
|
6335
6335
|
const renderIconAction = () => {
|
|
6336
6336
|
if (slots.icon) {
|
|
6337
6337
|
return vue.createVNode("div", {
|
|
6338
|
-
"class": bem$
|
|
6338
|
+
"class": bem$1h("icon-action")
|
|
6339
6339
|
}, [slots.icon()]);
|
|
6340
6340
|
}
|
|
6341
6341
|
if (!props2.icon) {
|
|
6342
6342
|
return;
|
|
6343
6343
|
}
|
|
6344
6344
|
return vue.createVNode(Button, {
|
|
6345
|
-
"class": bem$
|
|
6345
|
+
"class": bem$1h("icon-button"),
|
|
6346
6346
|
"icon": props2.icon,
|
|
6347
6347
|
"iconPrefix": props2.iconPrefix,
|
|
6348
6348
|
"disabled": props2.iconDisabled,
|
|
@@ -6358,7 +6358,7 @@
|
|
|
6358
6358
|
};
|
|
6359
6359
|
const renderMoreButton = (popoverEnabled = false) => vue.createVNode("button", {
|
|
6360
6360
|
"type": "button",
|
|
6361
|
-
"class": bem$
|
|
6361
|
+
"class": bem$1h("more-action"),
|
|
6362
6362
|
"disabled": props2.moreDisabled,
|
|
6363
6363
|
"onClick": popoverEnabled ? void 0 : () => emit("more")
|
|
6364
6364
|
}, [vue.createVNode(Badge, {
|
|
@@ -6368,30 +6368,30 @@
|
|
|
6368
6368
|
}, {
|
|
6369
6369
|
default: () => [vue.createVNode(Icon, {
|
|
6370
6370
|
"name": props2.moreIcon || "more-o",
|
|
6371
|
-
"class": bem$
|
|
6371
|
+
"class": bem$1h("more-icon"),
|
|
6372
6372
|
"classPrefix": props2.iconPrefix
|
|
6373
6373
|
}, null)]
|
|
6374
6374
|
}), vue.createVNode("span", {
|
|
6375
|
-
"class": bem$
|
|
6375
|
+
"class": bem$1h("more-text")
|
|
6376
6376
|
}, [props2.moreText])]);
|
|
6377
6377
|
const renderMorePopoverAction = (action, index) => vue.createVNode("button", {
|
|
6378
6378
|
"type": "button",
|
|
6379
|
-
"class": bem$
|
|
6379
|
+
"class": bem$1h("more-popover-action", {
|
|
6380
6380
|
disabled: action.disabled
|
|
6381
6381
|
}),
|
|
6382
6382
|
"disabled": action.disabled,
|
|
6383
6383
|
"onClick": () => onSelectMorePopover(action, index)
|
|
6384
6384
|
}, [action.icon && vue.createVNode(Icon, {
|
|
6385
6385
|
"name": action.icon,
|
|
6386
|
-
"class": bem$
|
|
6386
|
+
"class": bem$1h("more-popover-icon"),
|
|
6387
6387
|
"classPrefix": props2.iconPrefix
|
|
6388
6388
|
}, null), vue.createVNode("span", {
|
|
6389
|
-
"class": bem$
|
|
6389
|
+
"class": bem$1h("more-popover-text")
|
|
6390
6390
|
}, [action.text])]);
|
|
6391
6391
|
const renderMoreAction = () => {
|
|
6392
6392
|
if (slots.more) {
|
|
6393
6393
|
return vue.createVNode("div", {
|
|
6394
|
-
"class": bem$
|
|
6394
|
+
"class": bem$1h("more-action")
|
|
6395
6395
|
}, [slots.more()]);
|
|
6396
6396
|
}
|
|
6397
6397
|
if (!props2.moreText) {
|
|
@@ -6402,7 +6402,7 @@
|
|
|
6402
6402
|
}
|
|
6403
6403
|
return vue.createVNode(Popover, {
|
|
6404
6404
|
"show": morePopoverShow.value,
|
|
6405
|
-
"class": bem$
|
|
6405
|
+
"class": bem$1h("more-popover"),
|
|
6406
6406
|
"placement": "top-start",
|
|
6407
6407
|
"showArrow": false,
|
|
6408
6408
|
"offset": [-5, 8],
|
|
@@ -6422,7 +6422,7 @@
|
|
|
6422
6422
|
return;
|
|
6423
6423
|
}
|
|
6424
6424
|
return vue.createVNode(Button, {
|
|
6425
|
-
"class": bem$
|
|
6425
|
+
"class": bem$1h("secondary"),
|
|
6426
6426
|
"type": props2.secondaryType,
|
|
6427
6427
|
"text": props2.secondaryText,
|
|
6428
6428
|
"loading": props2.secondaryLoading,
|
|
@@ -6435,7 +6435,7 @@
|
|
|
6435
6435
|
return slots.confirm();
|
|
6436
6436
|
}
|
|
6437
6437
|
return vue.createVNode(Button, {
|
|
6438
|
-
"class": bem$
|
|
6438
|
+
"class": bem$1h("confirm"),
|
|
6439
6439
|
"type": props2.confirmType,
|
|
6440
6440
|
"text": props2.confirmText,
|
|
6441
6441
|
"loading": props2.confirmLoading,
|
|
@@ -6448,9 +6448,9 @@
|
|
|
6448
6448
|
return;
|
|
6449
6449
|
}
|
|
6450
6450
|
return vue.createVNode("div", {
|
|
6451
|
-
"class": bem$
|
|
6451
|
+
"class": bem$1h("checkbox-action")
|
|
6452
6452
|
}, [vue.createVNode("div", {
|
|
6453
|
-
"class": bem$
|
|
6453
|
+
"class": bem$1h("checkbox-action-content")
|
|
6454
6454
|
}, [vue.createVNode(Checkbox, {
|
|
6455
6455
|
"modelValue": props2.checkboxActionChecked,
|
|
6456
6456
|
"disabled": props2.checkboxActionDisabled,
|
|
@@ -6465,19 +6465,19 @@
|
|
|
6465
6465
|
};
|
|
6466
6466
|
const renderBar = () => vue.createVNode("div", {
|
|
6467
6467
|
"ref": root,
|
|
6468
|
-
"class": [bem$
|
|
6468
|
+
"class": [bem$1h({
|
|
6469
6469
|
fixed: props2.fixed
|
|
6470
6470
|
}), {
|
|
6471
6471
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
6472
6472
|
}]
|
|
6473
6473
|
}, [renderCheckboxAction(), vue.createVNode("div", {
|
|
6474
|
-
"class": bem$
|
|
6474
|
+
"class": bem$1h("actions")
|
|
6475
6475
|
}, [renderIconAction(), renderMoreAction(), renderSecondaryButton(), renderConfirmButton()])]);
|
|
6476
6476
|
return () => props2.placeholder && props2.fixed ? renderPlaceholder(renderBar) : renderBar();
|
|
6477
6477
|
}
|
|
6478
6478
|
});
|
|
6479
|
-
const BottomActionBar = withInstall(stdin_default$
|
|
6480
|
-
const [name$
|
|
6479
|
+
const BottomActionBar = withInstall(stdin_default$1s);
|
|
6480
|
+
const [name$1k, bem$1g, t$f] = createNamespace("calendar");
|
|
6481
6481
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
|
6482
6482
|
function compareMonth(date1, date2) {
|
|
6483
6483
|
const year1 = date1.getFullYear();
|
|
@@ -6586,9 +6586,9 @@
|
|
|
6586
6586
|
}
|
|
6587
6587
|
});
|
|
6588
6588
|
};
|
|
6589
|
-
const [name$
|
|
6590
|
-
var stdin_default$
|
|
6591
|
-
name: name$
|
|
6589
|
+
const [name$1j] = createNamespace("calendar-day");
|
|
6590
|
+
var stdin_default$1r = vue.defineComponent({
|
|
6591
|
+
name: name$1j,
|
|
6592
6592
|
props: {
|
|
6593
6593
|
item: makeRequiredProp(Object),
|
|
6594
6594
|
color: String,
|
|
@@ -6650,7 +6650,7 @@
|
|
|
6650
6650
|
} = props2.item;
|
|
6651
6651
|
if (topInfo || slots["top-info"]) {
|
|
6652
6652
|
return vue.createVNode("div", {
|
|
6653
|
-
"class": bem$
|
|
6653
|
+
"class": bem$1g("top-info")
|
|
6654
6654
|
}, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
|
|
6655
6655
|
}
|
|
6656
6656
|
};
|
|
@@ -6660,7 +6660,7 @@
|
|
|
6660
6660
|
} = props2.item;
|
|
6661
6661
|
if (bottomInfo || slots["bottom-info"]) {
|
|
6662
6662
|
return vue.createVNode("div", {
|
|
6663
|
-
"class": bem$
|
|
6663
|
+
"class": bem$1g("bottom-info")
|
|
6664
6664
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
|
6665
6665
|
}
|
|
6666
6666
|
};
|
|
@@ -6677,7 +6677,7 @@
|
|
|
6677
6677
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
|
6678
6678
|
if (type === "selected") {
|
|
6679
6679
|
return vue.createVNode("div", {
|
|
6680
|
-
"class": bem$
|
|
6680
|
+
"class": bem$1g("selected-day"),
|
|
6681
6681
|
"style": {
|
|
6682
6682
|
width: rowHeight,
|
|
6683
6683
|
height: rowHeight,
|
|
@@ -6694,21 +6694,21 @@
|
|
|
6694
6694
|
} = props2.item;
|
|
6695
6695
|
if (type === "placeholder") {
|
|
6696
6696
|
return vue.createVNode("div", {
|
|
6697
|
-
"class": bem$
|
|
6697
|
+
"class": bem$1g("day"),
|
|
6698
6698
|
"style": style.value
|
|
6699
6699
|
}, null);
|
|
6700
6700
|
}
|
|
6701
6701
|
return vue.createVNode("div", {
|
|
6702
6702
|
"role": "gridcell",
|
|
6703
6703
|
"style": style.value,
|
|
6704
|
-
"class": [bem$
|
|
6704
|
+
"class": [bem$1g("day", type), className],
|
|
6705
6705
|
"tabindex": type === "disabled" ? void 0 : -1,
|
|
6706
6706
|
"onClick": onClick
|
|
6707
6707
|
}, [renderContent()]);
|
|
6708
6708
|
};
|
|
6709
6709
|
}
|
|
6710
6710
|
});
|
|
6711
|
-
const [name$
|
|
6711
|
+
const [name$1i] = createNamespace("calendar-month");
|
|
6712
6712
|
const calendarMonthProps = {
|
|
6713
6713
|
date: makeRequiredProp(Date),
|
|
6714
6714
|
type: String,
|
|
@@ -6725,8 +6725,8 @@
|
|
|
6725
6725
|
showMonthTitle: Boolean,
|
|
6726
6726
|
firstDayOfWeek: Number
|
|
6727
6727
|
};
|
|
6728
|
-
var stdin_default$
|
|
6729
|
-
name: name$
|
|
6728
|
+
var stdin_default$1q = vue.defineComponent({
|
|
6729
|
+
name: name$1i,
|
|
6730
6730
|
props: calendarMonthProps,
|
|
6731
6731
|
emits: ["click", "update-height"],
|
|
6732
6732
|
setup(props2, {
|
|
@@ -6831,14 +6831,14 @@
|
|
|
6831
6831
|
const renderTitle = () => {
|
|
6832
6832
|
if (props2.showMonthTitle) {
|
|
6833
6833
|
return vue.createVNode("div", {
|
|
6834
|
-
"class": bem$
|
|
6834
|
+
"class": bem$1g("month-title")
|
|
6835
6835
|
}, [title.value]);
|
|
6836
6836
|
}
|
|
6837
6837
|
};
|
|
6838
6838
|
const renderMark = () => {
|
|
6839
6839
|
if (props2.showMark && shouldRender.value) {
|
|
6840
6840
|
return vue.createVNode("div", {
|
|
6841
|
-
"class": bem$
|
|
6841
|
+
"class": bem$1g("month-mark")
|
|
6842
6842
|
}, [props2.date.getMonth() + 1]);
|
|
6843
6843
|
}
|
|
6844
6844
|
};
|
|
@@ -6878,7 +6878,7 @@
|
|
|
6878
6878
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
|
6879
6879
|
}
|
|
6880
6880
|
};
|
|
6881
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
|
6881
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1r, {
|
|
6882
6882
|
"item": item,
|
|
6883
6883
|
"index": index,
|
|
6884
6884
|
"color": props2.color,
|
|
@@ -6889,7 +6889,7 @@
|
|
|
6889
6889
|
const renderDays = () => vue.createVNode("div", {
|
|
6890
6890
|
"ref": daysRef,
|
|
6891
6891
|
"role": "grid",
|
|
6892
|
-
"class": bem$
|
|
6892
|
+
"class": bem$1g("days")
|
|
6893
6893
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
|
6894
6894
|
useExpose({
|
|
6895
6895
|
getTitle,
|
|
@@ -6899,14 +6899,14 @@
|
|
|
6899
6899
|
disabledDays
|
|
6900
6900
|
});
|
|
6901
6901
|
return () => vue.createVNode("div", {
|
|
6902
|
-
"class": bem$
|
|
6902
|
+
"class": bem$1g("month"),
|
|
6903
6903
|
"ref": monthRef
|
|
6904
6904
|
}, [renderTitle(), renderDays()]);
|
|
6905
6905
|
}
|
|
6906
6906
|
});
|
|
6907
|
-
const [name$
|
|
6908
|
-
var stdin_default$
|
|
6909
|
-
name: name$
|
|
6907
|
+
const [name$1h] = createNamespace("calendar-header");
|
|
6908
|
+
var stdin_default$1p = vue.defineComponent({
|
|
6909
|
+
name: name$1h,
|
|
6910
6910
|
props: {
|
|
6911
6911
|
title: String,
|
|
6912
6912
|
subtitle: String,
|
|
@@ -6924,7 +6924,7 @@
|
|
|
6924
6924
|
const text = props2.title || t$f("title");
|
|
6925
6925
|
const title = slots.title ? slots.title() : text;
|
|
6926
6926
|
return vue.createVNode("div", {
|
|
6927
|
-
"class": bem$
|
|
6927
|
+
"class": bem$1g("header-title")
|
|
6928
6928
|
}, [title]);
|
|
6929
6929
|
}
|
|
6930
6930
|
};
|
|
@@ -6933,7 +6933,7 @@
|
|
|
6933
6933
|
if (props2.showSubtitle) {
|
|
6934
6934
|
const title = slots.subtitle ? slots.subtitle() : props2.subtitle;
|
|
6935
6935
|
return vue.createVNode("div", {
|
|
6936
|
-
"class": bem$
|
|
6936
|
+
"class": bem$1g("header-subtitle"),
|
|
6937
6937
|
"onClick": onClickSubtitle
|
|
6938
6938
|
}, [title]);
|
|
6939
6939
|
}
|
|
@@ -6945,13 +6945,13 @@
|
|
|
6945
6945
|
const weekdays = t$f("weekdays");
|
|
6946
6946
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
|
6947
6947
|
return vue.createVNode("div", {
|
|
6948
|
-
"class": bem$
|
|
6948
|
+
"class": bem$1g("weekdays")
|
|
6949
6949
|
}, [renderWeekDays2.map((text) => vue.createVNode("span", {
|
|
6950
|
-
"class": bem$
|
|
6950
|
+
"class": bem$1g("weekday")
|
|
6951
6951
|
}, [text]))]);
|
|
6952
6952
|
};
|
|
6953
6953
|
return () => vue.createVNode("div", {
|
|
6954
|
-
"class": bem$
|
|
6954
|
+
"class": bem$1g("header")
|
|
6955
6955
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
|
6956
6956
|
}
|
|
6957
6957
|
});
|
|
@@ -7002,8 +7002,8 @@
|
|
|
7002
7002
|
validator: (val) => val >= 0 && val <= 6
|
|
7003
7003
|
}
|
|
7004
7004
|
};
|
|
7005
|
-
var stdin_default$
|
|
7006
|
-
name: name$
|
|
7005
|
+
var stdin_default$1o = vue.defineComponent({
|
|
7006
|
+
name: name$1k,
|
|
7007
7007
|
props: calendarProps,
|
|
7008
7008
|
emits: ["select", "confirm", "unselect", "month-show", "over-range", "update:show", "click-subtitle"],
|
|
7009
7009
|
setup(props2, {
|
|
@@ -7260,7 +7260,7 @@
|
|
|
7260
7260
|
const updateShow = (value) => emit("update:show", value);
|
|
7261
7261
|
const renderMonth = (date, index) => {
|
|
7262
7262
|
const showMonthTitle = index !== 0 || !props2.showSubtitle;
|
|
7263
|
-
return vue.createVNode(stdin_default$
|
|
7263
|
+
return vue.createVNode(stdin_default$1q, vue.mergeProps({
|
|
7264
7264
|
"ref": setMonthRefs(index),
|
|
7265
7265
|
"date": date,
|
|
7266
7266
|
"currentDate": currentDate.value,
|
|
@@ -7283,7 +7283,7 @@
|
|
|
7283
7283
|
"block": true,
|
|
7284
7284
|
"type": "primary",
|
|
7285
7285
|
"color": props2.color,
|
|
7286
|
-
"class": bem$
|
|
7286
|
+
"class": bem$1g("confirm"),
|
|
7287
7287
|
"disabled": disabled,
|
|
7288
7288
|
"nativeType": "button",
|
|
7289
7289
|
"onClick": onConfirm
|
|
@@ -7295,13 +7295,13 @@
|
|
|
7295
7295
|
}
|
|
7296
7296
|
};
|
|
7297
7297
|
const renderFooter = () => vue.createVNode("div", {
|
|
7298
|
-
"class": [bem$
|
|
7298
|
+
"class": [bem$1g("footer"), {
|
|
7299
7299
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
7300
7300
|
}]
|
|
7301
7301
|
}, [renderFooterButton()]);
|
|
7302
7302
|
const renderCalendar = () => vue.createVNode("div", {
|
|
7303
|
-
"class": bem$
|
|
7304
|
-
}, [vue.createVNode(stdin_default$
|
|
7303
|
+
"class": bem$1g()
|
|
7304
|
+
}, [vue.createVNode(stdin_default$1p, {
|
|
7305
7305
|
"title": props2.title,
|
|
7306
7306
|
"subtitle": subtitle.value,
|
|
7307
7307
|
"showTitle": props2.showTitle,
|
|
@@ -7310,7 +7310,7 @@
|
|
|
7310
7310
|
"onClick-subtitle": (event) => emit("click-subtitle", event)
|
|
7311
7311
|
}, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
|
|
7312
7312
|
"ref": bodyRef,
|
|
7313
|
-
"class": bem$
|
|
7313
|
+
"class": bem$1g("body"),
|
|
7314
7314
|
"onScroll": onScroll
|
|
7315
7315
|
}, [months.value.map(renderMonth)]), renderFooter()]);
|
|
7316
7316
|
vue.watch(() => props2.show, init);
|
|
@@ -7329,7 +7329,7 @@
|
|
|
7329
7329
|
if (props2.poppable) {
|
|
7330
7330
|
return vue.createVNode(Popup, {
|
|
7331
7331
|
"show": props2.show,
|
|
7332
|
-
"class": bem$
|
|
7332
|
+
"class": bem$1g("popup"),
|
|
7333
7333
|
"round": props2.round,
|
|
7334
7334
|
"position": props2.position,
|
|
7335
7335
|
"closeable": props2.showTitle || props2.showSubtitle,
|
|
@@ -7346,8 +7346,8 @@
|
|
|
7346
7346
|
};
|
|
7347
7347
|
}
|
|
7348
7348
|
});
|
|
7349
|
-
const Calendar = withInstall(stdin_default$
|
|
7350
|
-
const [name$
|
|
7349
|
+
const Calendar = withInstall(stdin_default$1o);
|
|
7350
|
+
const [name$1g, bem$1f] = createNamespace("image");
|
|
7351
7351
|
const imageProps = {
|
|
7352
7352
|
src: String,
|
|
7353
7353
|
alt: String,
|
|
@@ -7366,8 +7366,8 @@
|
|
|
7366
7366
|
showLoading: truthProp,
|
|
7367
7367
|
loadingIcon: makeStringProp("photo")
|
|
7368
7368
|
};
|
|
7369
|
-
var stdin_default$
|
|
7370
|
-
name: name$
|
|
7369
|
+
var stdin_default$1n = vue.defineComponent({
|
|
7370
|
+
name: name$1g,
|
|
7371
7371
|
props: imageProps,
|
|
7372
7372
|
emits: ["load", "error"],
|
|
7373
7373
|
setup(props2, {
|
|
@@ -7418,13 +7418,13 @@
|
|
|
7418
7418
|
const renderPlaceholder = () => {
|
|
7419
7419
|
if (loading.value && props2.showLoading) {
|
|
7420
7420
|
return vue.createVNode("div", {
|
|
7421
|
-
"class": bem$
|
|
7422
|
-
}, [renderIcon(props2.loadingIcon, bem$
|
|
7421
|
+
"class": bem$1f("loading")
|
|
7422
|
+
}, [renderIcon(props2.loadingIcon, bem$1f("loading-icon"), slots.loading)]);
|
|
7423
7423
|
}
|
|
7424
7424
|
if (error.value && props2.showError) {
|
|
7425
7425
|
return vue.createVNode("div", {
|
|
7426
|
-
"class": bem$
|
|
7427
|
-
}, [renderIcon(props2.errorIcon, bem$
|
|
7426
|
+
"class": bem$1f("error")
|
|
7427
|
+
}, [renderIcon(props2.errorIcon, bem$1f("error-icon"), slots.error)]);
|
|
7428
7428
|
}
|
|
7429
7429
|
};
|
|
7430
7430
|
const renderImage = () => {
|
|
@@ -7433,7 +7433,7 @@
|
|
|
7433
7433
|
}
|
|
7434
7434
|
const attrs = {
|
|
7435
7435
|
alt: props2.alt,
|
|
7436
|
-
class: bem$
|
|
7436
|
+
class: bem$1f("img"),
|
|
7437
7437
|
style: {
|
|
7438
7438
|
objectFit: props2.fit,
|
|
7439
7439
|
objectPosition: props2.position
|
|
@@ -7482,7 +7482,7 @@
|
|
|
7482
7482
|
return () => {
|
|
7483
7483
|
var _a;
|
|
7484
7484
|
return vue.createVNode("div", {
|
|
7485
|
-
"class": bem$
|
|
7485
|
+
"class": bem$1f({
|
|
7486
7486
|
round: props2.round,
|
|
7487
7487
|
block: props2.block
|
|
7488
7488
|
}),
|
|
@@ -7491,8 +7491,8 @@
|
|
|
7491
7491
|
};
|
|
7492
7492
|
}
|
|
7493
7493
|
});
|
|
7494
|
-
const Image$1 = withInstall(stdin_default$
|
|
7495
|
-
const [name$
|
|
7494
|
+
const Image$1 = withInstall(stdin_default$1n);
|
|
7495
|
+
const [name$1f, bem$1e] = createNamespace("card");
|
|
7496
7496
|
const cardProps = {
|
|
7497
7497
|
tag: String,
|
|
7498
7498
|
num: numericProp,
|
|
@@ -7506,8 +7506,8 @@
|
|
|
7506
7506
|
thumbLink: String,
|
|
7507
7507
|
originPrice: numericProp
|
|
7508
7508
|
};
|
|
7509
|
-
var stdin_default$
|
|
7510
|
-
name: name$
|
|
7509
|
+
var stdin_default$1m = vue.defineComponent({
|
|
7510
|
+
name: name$1f,
|
|
7511
7511
|
props: cardProps,
|
|
7512
7512
|
emits: ["click-thumb"],
|
|
7513
7513
|
setup(props2, {
|
|
@@ -7520,14 +7520,14 @@
|
|
|
7520
7520
|
}
|
|
7521
7521
|
if (props2.title) {
|
|
7522
7522
|
return vue.createVNode("div", {
|
|
7523
|
-
"class": [bem$
|
|
7523
|
+
"class": [bem$1e("title"), "van-multi-ellipsis--l2"]
|
|
7524
7524
|
}, [props2.title]);
|
|
7525
7525
|
}
|
|
7526
7526
|
};
|
|
7527
7527
|
const renderThumbTag = () => {
|
|
7528
7528
|
if (slots.tag || props2.tag) {
|
|
7529
7529
|
return vue.createVNode("div", {
|
|
7530
|
-
"class": bem$
|
|
7530
|
+
"class": bem$1e("tag")
|
|
7531
7531
|
}, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
|
|
7532
7532
|
"mark": true,
|
|
7533
7533
|
"type": "danger"
|
|
@@ -7552,7 +7552,7 @@
|
|
|
7552
7552
|
if (slots.thumb || props2.thumb) {
|
|
7553
7553
|
return vue.createVNode("a", {
|
|
7554
7554
|
"href": props2.thumbLink,
|
|
7555
|
-
"class": bem$
|
|
7555
|
+
"class": bem$1e("thumb"),
|
|
7556
7556
|
"onClick": (event) => emit("click-thumb", event)
|
|
7557
7557
|
}, [renderThumbImage(), renderThumbTag()]);
|
|
7558
7558
|
}
|
|
@@ -7563,18 +7563,18 @@
|
|
|
7563
7563
|
}
|
|
7564
7564
|
if (props2.desc) {
|
|
7565
7565
|
return vue.createVNode("div", {
|
|
7566
|
-
"class": [bem$
|
|
7566
|
+
"class": [bem$1e("desc"), "van-ellipsis"]
|
|
7567
7567
|
}, [props2.desc]);
|
|
7568
7568
|
}
|
|
7569
7569
|
};
|
|
7570
7570
|
const renderPriceText = () => {
|
|
7571
7571
|
const priceArr = props2.price.toString().split(".");
|
|
7572
7572
|
return vue.createVNode("div", null, [vue.createVNode("span", {
|
|
7573
|
-
"class": bem$
|
|
7573
|
+
"class": bem$1e("price-currency")
|
|
7574
7574
|
}, [props2.currency]), vue.createVNode("span", {
|
|
7575
|
-
"class": bem$
|
|
7575
|
+
"class": bem$1e("price-integer")
|
|
7576
7576
|
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
|
7577
|
-
"class": bem$
|
|
7577
|
+
"class": bem$1e("price-decimal")
|
|
7578
7578
|
}, [priceArr[1]])]);
|
|
7579
7579
|
};
|
|
7580
7580
|
return () => {
|
|
@@ -7584,33 +7584,33 @@
|
|
|
7584
7584
|
const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
|
|
7585
7585
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
|
7586
7586
|
const Price = showPrice && vue.createVNode("div", {
|
|
7587
|
-
"class": bem$
|
|
7587
|
+
"class": bem$1e("price")
|
|
7588
7588
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
|
7589
7589
|
const OriginPrice = showOriginPrice && vue.createVNode("div", {
|
|
7590
|
-
"class": bem$
|
|
7590
|
+
"class": bem$1e("origin-price")
|
|
7591
7591
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
|
|
7592
7592
|
const Num = showNum && vue.createVNode("div", {
|
|
7593
|
-
"class": bem$
|
|
7593
|
+
"class": bem$1e("num")
|
|
7594
7594
|
}, [slots.num ? slots.num() : `x${props2.num}`]);
|
|
7595
7595
|
const Footer = slots.footer && vue.createVNode("div", {
|
|
7596
|
-
"class": bem$
|
|
7596
|
+
"class": bem$1e("footer")
|
|
7597
7597
|
}, [slots.footer()]);
|
|
7598
7598
|
const Bottom = showBottom && vue.createVNode("div", {
|
|
7599
|
-
"class": bem$
|
|
7599
|
+
"class": bem$1e("bottom")
|
|
7600
7600
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
|
7601
7601
|
return vue.createVNode("div", {
|
|
7602
|
-
"class": bem$
|
|
7602
|
+
"class": bem$1e()
|
|
7603
7603
|
}, [vue.createVNode("div", {
|
|
7604
|
-
"class": bem$
|
|
7604
|
+
"class": bem$1e("header")
|
|
7605
7605
|
}, [renderThumb(), vue.createVNode("div", {
|
|
7606
|
-
"class": bem$
|
|
7606
|
+
"class": bem$1e("content", {
|
|
7607
7607
|
centered: props2.centered
|
|
7608
7608
|
})
|
|
7609
7609
|
}, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
|
7610
7610
|
};
|
|
7611
7611
|
}
|
|
7612
7612
|
});
|
|
7613
|
-
const Card = withInstall(stdin_default$
|
|
7613
|
+
const Card = withInstall(stdin_default$1m);
|
|
7614
7614
|
function scrollLeftTo(scroller, to, duration) {
|
|
7615
7615
|
let count = 0;
|
|
7616
7616
|
const from = scroller.scrollLeft;
|
|
@@ -7666,7 +7666,7 @@
|
|
|
7666
7666
|
vue.onBeforeUnmount(unobserve);
|
|
7667
7667
|
onMountedOrActivated(observe);
|
|
7668
7668
|
}
|
|
7669
|
-
const [name$
|
|
7669
|
+
const [name$1e, bem$1d] = createNamespace("sticky");
|
|
7670
7670
|
const stickyProps = {
|
|
7671
7671
|
zIndex: numericProp,
|
|
7672
7672
|
position: makeStringProp("top"),
|
|
@@ -7674,8 +7674,8 @@
|
|
|
7674
7674
|
offsetTop: makeNumericProp(0),
|
|
7675
7675
|
offsetBottom: makeNumericProp(0)
|
|
7676
7676
|
};
|
|
7677
|
-
var stdin_default$
|
|
7678
|
-
name: name$
|
|
7677
|
+
var stdin_default$1l = vue.defineComponent({
|
|
7678
|
+
name: name$1e,
|
|
7679
7679
|
props: stickyProps,
|
|
7680
7680
|
emits: ["scroll", "change"],
|
|
7681
7681
|
setup(props2, {
|
|
@@ -7772,7 +7772,7 @@
|
|
|
7772
7772
|
"ref": root,
|
|
7773
7773
|
"style": rootStyle.value
|
|
7774
7774
|
}, [vue.createVNode("div", {
|
|
7775
|
-
"class": bem$
|
|
7775
|
+
"class": bem$1d({
|
|
7776
7776
|
fixed: state.fixed
|
|
7777
7777
|
}),
|
|
7778
7778
|
"style": stickyStyle.value
|
|
@@ -7780,10 +7780,10 @@
|
|
|
7780
7780
|
};
|
|
7781
7781
|
}
|
|
7782
7782
|
});
|
|
7783
|
-
const Sticky = withInstall(stdin_default$
|
|
7784
|
-
const [name$
|
|
7785
|
-
var stdin_default$
|
|
7786
|
-
name: name$
|
|
7783
|
+
const Sticky = withInstall(stdin_default$1l);
|
|
7784
|
+
const [name$1d, bem$1c] = createNamespace("tab");
|
|
7785
|
+
var stdin_default$1k = vue.defineComponent({
|
|
7786
|
+
name: name$1d,
|
|
7787
7787
|
props: {
|
|
7788
7788
|
id: String,
|
|
7789
7789
|
dot: Boolean,
|
|
@@ -7833,18 +7833,19 @@
|
|
|
7833
7833
|
});
|
|
7834
7834
|
const renderText = () => {
|
|
7835
7835
|
const Text2 = vue.createVNode("span", {
|
|
7836
|
-
"class": bem$
|
|
7836
|
+
"class": bem$1c("text", {
|
|
7837
7837
|
ellipsis: !props2.scrollable
|
|
7838
7838
|
})
|
|
7839
7839
|
}, [slots.title ? slots.title() : props2.title]);
|
|
7840
7840
|
const Content = vue.createVNode("span", {
|
|
7841
|
-
"class": bem$
|
|
7841
|
+
"class": bem$1c("title")
|
|
7842
7842
|
}, [props2.icon && vue.createVNode(Icon, {
|
|
7843
7843
|
"name": props2.icon,
|
|
7844
|
-
"class": bem$
|
|
7844
|
+
"class": bem$1c("icon")
|
|
7845
7845
|
}, null), Text2]);
|
|
7846
7846
|
if (props2.dot || isDef(props2.badge) && props2.badge !== "") {
|
|
7847
7847
|
return vue.createVNode(Badge, {
|
|
7848
|
+
"class": bem$1c("badge"),
|
|
7848
7849
|
"dot": props2.dot,
|
|
7849
7850
|
"content": props2.badge,
|
|
7850
7851
|
"showZero": props2.showZeroBadge
|
|
@@ -7857,7 +7858,7 @@
|
|
|
7857
7858
|
return () => vue.createVNode("div", {
|
|
7858
7859
|
"id": props2.id,
|
|
7859
7860
|
"role": "tab",
|
|
7860
|
-
"class": [bem$
|
|
7861
|
+
"class": [bem$1c([props2.type, {
|
|
7861
7862
|
grow: props2.scrollable && !props2.shrink,
|
|
7862
7863
|
shrink: props2.shrink,
|
|
7863
7864
|
active: props2.isActive,
|
|
@@ -7871,7 +7872,7 @@
|
|
|
7871
7872
|
}, [renderText()]);
|
|
7872
7873
|
}
|
|
7873
7874
|
});
|
|
7874
|
-
const [name$
|
|
7875
|
+
const [name$1c, bem$1b] = createNamespace("swipe");
|
|
7875
7876
|
const swipeProps = {
|
|
7876
7877
|
loop: truthProp,
|
|
7877
7878
|
width: numericProp,
|
|
@@ -7886,9 +7887,9 @@
|
|
|
7886
7887
|
showIndicators: truthProp,
|
|
7887
7888
|
stopPropagation: truthProp
|
|
7888
7889
|
};
|
|
7889
|
-
const SWIPE_KEY = Symbol(name$
|
|
7890
|
-
var stdin_default$
|
|
7891
|
-
name: name$
|
|
7890
|
+
const SWIPE_KEY = Symbol(name$1c);
|
|
7891
|
+
var stdin_default$1j = vue.defineComponent({
|
|
7892
|
+
name: name$1c,
|
|
7892
7893
|
props: swipeProps,
|
|
7893
7894
|
emits: ["change"],
|
|
7894
7895
|
setup(props2, {
|
|
@@ -8150,7 +8151,7 @@
|
|
|
8150
8151
|
} : void 0;
|
|
8151
8152
|
return vue.createVNode("i", {
|
|
8152
8153
|
"style": style,
|
|
8153
|
-
"class": bem$
|
|
8154
|
+
"class": bem$1b("indicator", {
|
|
8154
8155
|
active
|
|
8155
8156
|
})
|
|
8156
8157
|
}, null);
|
|
@@ -8164,7 +8165,7 @@
|
|
|
8164
8165
|
}
|
|
8165
8166
|
if (props2.showIndicators && count.value > 1) {
|
|
8166
8167
|
return vue.createVNode("div", {
|
|
8167
|
-
"class": bem$
|
|
8168
|
+
"class": bem$1b("indicators", {
|
|
8168
8169
|
vertical: props2.vertical
|
|
8169
8170
|
})
|
|
8170
8171
|
}, [Array(count.value).fill("").map(renderDot)]);
|
|
@@ -8206,11 +8207,11 @@
|
|
|
8206
8207
|
var _a;
|
|
8207
8208
|
return vue.createVNode("div", {
|
|
8208
8209
|
"ref": root,
|
|
8209
|
-
"class": bem$
|
|
8210
|
+
"class": bem$1b()
|
|
8210
8211
|
}, [vue.createVNode("div", {
|
|
8211
8212
|
"ref": track,
|
|
8212
8213
|
"style": trackStyle.value,
|
|
8213
|
-
"class": bem$
|
|
8214
|
+
"class": bem$1b("track", {
|
|
8214
8215
|
vertical: props2.vertical
|
|
8215
8216
|
}),
|
|
8216
8217
|
"onTouchstartPassive": onTouchStart,
|
|
@@ -8220,10 +8221,10 @@
|
|
|
8220
8221
|
};
|
|
8221
8222
|
}
|
|
8222
8223
|
});
|
|
8223
|
-
const Swipe = withInstall(stdin_default$
|
|
8224
|
-
const [name$
|
|
8225
|
-
var stdin_default$
|
|
8226
|
-
name: name$
|
|
8224
|
+
const Swipe = withInstall(stdin_default$1j);
|
|
8225
|
+
const [name$1b, bem$1a] = createNamespace("tabs");
|
|
8226
|
+
var stdin_default$1i = vue.defineComponent({
|
|
8227
|
+
name: name$1b,
|
|
8227
8228
|
props: {
|
|
8228
8229
|
count: makeRequiredProp(Number),
|
|
8229
8230
|
inited: Boolean,
|
|
@@ -8247,7 +8248,7 @@
|
|
|
8247
8248
|
return vue.createVNode(Swipe, {
|
|
8248
8249
|
"ref": swipeRef,
|
|
8249
8250
|
"loop": false,
|
|
8250
|
-
"class": bem$
|
|
8251
|
+
"class": bem$1a("track"),
|
|
8251
8252
|
"duration": +props2.duration * 1e3,
|
|
8252
8253
|
"touchable": props2.swipeable,
|
|
8253
8254
|
"lazyRender": props2.lazyRender,
|
|
@@ -8275,7 +8276,7 @@
|
|
|
8275
8276
|
swipeRef
|
|
8276
8277
|
});
|
|
8277
8278
|
return () => vue.createVNode("div", {
|
|
8278
|
-
"class": bem$
|
|
8279
|
+
"class": bem$1a("content", {
|
|
8279
8280
|
animated: props2.animated || props2.swipeable
|
|
8280
8281
|
})
|
|
8281
8282
|
}, [renderChildren()]);
|
|
@@ -8300,7 +8301,7 @@
|
|
|
8300
8301
|
return a;
|
|
8301
8302
|
};
|
|
8302
8303
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
8303
|
-
const [name$
|
|
8304
|
+
const [name$1a, bem$19] = createNamespace("tabs");
|
|
8304
8305
|
const tabsProps = {
|
|
8305
8306
|
type: makeStringProp("line"),
|
|
8306
8307
|
color: String,
|
|
@@ -8327,9 +8328,9 @@
|
|
|
8327
8328
|
moreTitle: String,
|
|
8328
8329
|
moreOptions: makeArrayProp()
|
|
8329
8330
|
};
|
|
8330
|
-
const TABS_KEY = Symbol(name$
|
|
8331
|
-
var stdin_default$
|
|
8332
|
-
name: name$
|
|
8331
|
+
const TABS_KEY = Symbol(name$1a);
|
|
8332
|
+
var stdin_default$1h = vue.defineComponent({
|
|
8333
|
+
name: name$1a,
|
|
8333
8334
|
props: tabsProps,
|
|
8334
8335
|
emits: ["click", "change", "scroll", "disabled", "rendered", "click-tab", "update:active", "click-more", "select-more", "update:showMore"],
|
|
8335
8336
|
setup(props2, {
|
|
@@ -8543,12 +8544,12 @@
|
|
|
8543
8544
|
}));
|
|
8544
8545
|
return actions.map((action, index) => __spreadProps(__spreadValues$1({}, action), {
|
|
8545
8546
|
color: index === state.currentIndex ? "var(--van-primary-color)" : action.color,
|
|
8546
|
-
className: [action.className, bem$
|
|
8547
|
+
className: [action.className, bem$19("more-option", {
|
|
8547
8548
|
active: index === state.currentIndex
|
|
8548
8549
|
})]
|
|
8549
8550
|
}));
|
|
8550
8551
|
});
|
|
8551
|
-
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$
|
|
8552
|
+
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1k, vue.mergeProps({
|
|
8552
8553
|
"key": item.id,
|
|
8553
8554
|
"id": `${id}-${index}`,
|
|
8554
8555
|
"ref": setTitleRefs(index),
|
|
@@ -8569,7 +8570,7 @@
|
|
|
8569
8570
|
const renderLine = () => {
|
|
8570
8571
|
if (props2.type === "line" && children.length) {
|
|
8571
8572
|
return vue.createVNode("div", {
|
|
8572
|
-
"class": bem$
|
|
8573
|
+
"class": bem$19("line"),
|
|
8573
8574
|
"style": state.lineStyle
|
|
8574
8575
|
}, null);
|
|
8575
8576
|
}
|
|
@@ -8583,13 +8584,13 @@
|
|
|
8583
8584
|
} = props2;
|
|
8584
8585
|
const Header = [vue.createVNode("div", {
|
|
8585
8586
|
"ref": sticky ? void 0 : wrapRef,
|
|
8586
|
-
"class": [bem$
|
|
8587
|
+
"class": [bem$19("wrap"), {
|
|
8587
8588
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
|
8588
8589
|
}]
|
|
8589
8590
|
}, [vue.createVNode("div", {
|
|
8590
8591
|
"ref": navRef,
|
|
8591
8592
|
"role": "tablist",
|
|
8592
|
-
"class": bem$
|
|
8593
|
+
"class": bem$19("nav", [type, {
|
|
8593
8594
|
shrink: props2.shrink,
|
|
8594
8595
|
complete: scrollable.value,
|
|
8595
8596
|
more: props2.more
|
|
@@ -8599,7 +8600,7 @@
|
|
|
8599
8600
|
}, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)]), props2.more && vue.createVNode("button", {
|
|
8600
8601
|
"ref": moreRef,
|
|
8601
8602
|
"type": "button",
|
|
8602
|
-
"class": bem$
|
|
8603
|
+
"class": bem$19("more"),
|
|
8603
8604
|
"aria-label": "More tabs",
|
|
8604
8605
|
"onClick": onClickMore
|
|
8605
8606
|
}, [vue.createVNode(Icon, {
|
|
@@ -8673,14 +8674,14 @@
|
|
|
8673
8674
|
});
|
|
8674
8675
|
return () => vue.createVNode("div", {
|
|
8675
8676
|
"ref": root,
|
|
8676
|
-
"class": bem$
|
|
8677
|
+
"class": bem$19([props2.type])
|
|
8677
8678
|
}, [props2.sticky ? vue.createVNode(Sticky, {
|
|
8678
8679
|
"container": root.value,
|
|
8679
8680
|
"offsetTop": offsetTopPx.value,
|
|
8680
8681
|
"onScroll": onStickyScroll
|
|
8681
8682
|
}, {
|
|
8682
8683
|
default: () => [renderHeader()]
|
|
8683
|
-
}) : renderHeader(), vue.createVNode(stdin_default$
|
|
8684
|
+
}) : renderHeader(), vue.createVNode(stdin_default$1i, {
|
|
8684
8685
|
"ref": contentRef,
|
|
8685
8686
|
"count": children.length,
|
|
8686
8687
|
"inited": state.inited,
|
|
@@ -8700,9 +8701,9 @@
|
|
|
8700
8701
|
});
|
|
8701
8702
|
const TAB_STATUS_KEY = Symbol();
|
|
8702
8703
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
|
8703
|
-
const [name$
|
|
8704
|
-
var stdin_default$
|
|
8705
|
-
name: name$
|
|
8704
|
+
const [name$19, bem$18] = createNamespace("swipe-item");
|
|
8705
|
+
var stdin_default$1g = vue.defineComponent({
|
|
8706
|
+
name: name$19,
|
|
8706
8707
|
setup(props2, {
|
|
8707
8708
|
slots
|
|
8708
8709
|
}) {
|
|
@@ -8764,14 +8765,14 @@
|
|
|
8764
8765
|
return () => {
|
|
8765
8766
|
var _a;
|
|
8766
8767
|
return vue.createVNode("div", {
|
|
8767
|
-
"class": bem$
|
|
8768
|
+
"class": bem$18(),
|
|
8768
8769
|
"style": style.value
|
|
8769
8770
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
|
8770
8771
|
};
|
|
8771
8772
|
}
|
|
8772
8773
|
});
|
|
8773
|
-
const SwipeItem = withInstall(stdin_default$
|
|
8774
|
-
const [name$
|
|
8774
|
+
const SwipeItem = withInstall(stdin_default$1g);
|
|
8775
|
+
const [name$18, bem$17] = createNamespace("tab");
|
|
8775
8776
|
const tabProps = extend$1({}, routeProps, {
|
|
8776
8777
|
dot: Boolean,
|
|
8777
8778
|
name: numericProp,
|
|
@@ -8783,8 +8784,8 @@
|
|
|
8783
8784
|
titleStyle: [String, Object],
|
|
8784
8785
|
showZeroBadge: truthProp
|
|
8785
8786
|
});
|
|
8786
|
-
var stdin_default$
|
|
8787
|
-
name: name$
|
|
8787
|
+
var stdin_default$1f = vue.defineComponent({
|
|
8788
|
+
name: name$18,
|
|
8788
8789
|
props: tabProps,
|
|
8789
8790
|
setup(props2, {
|
|
8790
8791
|
slots
|
|
@@ -8849,7 +8850,7 @@
|
|
|
8849
8850
|
return vue.createVNode(SwipeItem, {
|
|
8850
8851
|
"id": id,
|
|
8851
8852
|
"role": "tabpanel",
|
|
8852
|
-
"class": bem$
|
|
8853
|
+
"class": bem$17("panel-wrapper", {
|
|
8853
8854
|
inactive: hasInactiveClass.value
|
|
8854
8855
|
}),
|
|
8855
8856
|
"tabindex": active.value ? 0 : -1,
|
|
@@ -8859,7 +8860,7 @@
|
|
|
8859
8860
|
default: () => {
|
|
8860
8861
|
var _a2;
|
|
8861
8862
|
return [vue.createVNode("div", {
|
|
8862
|
-
"class": bem$
|
|
8863
|
+
"class": bem$17("panel")
|
|
8863
8864
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
|
8864
8865
|
}
|
|
8865
8866
|
});
|
|
@@ -8872,16 +8873,16 @@
|
|
|
8872
8873
|
return vue.withDirectives(vue.createVNode("div", {
|
|
8873
8874
|
"id": id,
|
|
8874
8875
|
"role": "tabpanel",
|
|
8875
|
-
"class": bem$
|
|
8876
|
+
"class": bem$17("panel"),
|
|
8876
8877
|
"tabindex": show ? 0 : -1,
|
|
8877
8878
|
"aria-labelledby": label
|
|
8878
8879
|
}, [Content]), [[vue.vShow, show]]);
|
|
8879
8880
|
};
|
|
8880
8881
|
}
|
|
8881
8882
|
});
|
|
8882
|
-
const Tab = withInstall(stdin_default$
|
|
8883
|
-
const Tabs = withInstall(stdin_default$
|
|
8884
|
-
const [name$
|
|
8883
|
+
const Tab = withInstall(stdin_default$1f);
|
|
8884
|
+
const Tabs = withInstall(stdin_default$1h);
|
|
8885
|
+
const [name$17, bem$16, t$e] = createNamespace("cascader");
|
|
8885
8886
|
const cascaderProps = {
|
|
8886
8887
|
title: String,
|
|
8887
8888
|
options: makeArrayProp(),
|
|
@@ -8894,8 +8895,8 @@
|
|
|
8894
8895
|
placeholder: String,
|
|
8895
8896
|
activeColor: String
|
|
8896
8897
|
};
|
|
8897
|
-
var stdin_default$
|
|
8898
|
-
name: name$
|
|
8898
|
+
var stdin_default$1e = vue.defineComponent({
|
|
8899
|
+
name: name$17,
|
|
8899
8900
|
props: cascaderProps,
|
|
8900
8901
|
emits: ["close", "change", "finish", "click-tab", "update:modelValue"],
|
|
8901
8902
|
setup(props2, {
|
|
@@ -9003,12 +9004,12 @@
|
|
|
9003
9004
|
title
|
|
9004
9005
|
}) => emit("click-tab", name2, title);
|
|
9005
9006
|
const renderHeader = () => props2.showHeader ? vue.createVNode("div", {
|
|
9006
|
-
"class": bem$
|
|
9007
|
+
"class": bem$16("header")
|
|
9007
9008
|
}, [vue.createVNode("h2", {
|
|
9008
|
-
"class": bem$
|
|
9009
|
+
"class": bem$16("title")
|
|
9009
9010
|
}, [slots.title ? slots.title() : props2.title]), props2.closeable ? vue.createVNode(Icon, {
|
|
9010
9011
|
"name": props2.closeIcon,
|
|
9011
|
-
"class": [bem$
|
|
9012
|
+
"class": [bem$16("close-icon"), HAPTICS_FEEDBACK],
|
|
9012
9013
|
"onClick": onClose
|
|
9013
9014
|
}, null) : null]) : null;
|
|
9014
9015
|
const renderOption = (option, selectedOption, tabIndex) => {
|
|
@@ -9023,7 +9024,7 @@
|
|
|
9023
9024
|
}) : vue.createVNode("span", null, [option[textKey]]);
|
|
9024
9025
|
return vue.createVNode("li", {
|
|
9025
9026
|
"role": "menuitemradio",
|
|
9026
|
-
"class": [bem$
|
|
9027
|
+
"class": [bem$16("option", {
|
|
9027
9028
|
selected,
|
|
9028
9029
|
disabled
|
|
9029
9030
|
}), option.className],
|
|
@@ -9036,12 +9037,12 @@
|
|
|
9036
9037
|
"onClick": () => onSelect(option, tabIndex)
|
|
9037
9038
|
}, [Text2, selected ? vue.createVNode(Icon, {
|
|
9038
9039
|
"name": "success",
|
|
9039
|
-
"class": bem$
|
|
9040
|
+
"class": bem$16("selected-icon")
|
|
9040
9041
|
}, null) : null]);
|
|
9041
9042
|
};
|
|
9042
9043
|
const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
|
|
9043
9044
|
"role": "menu",
|
|
9044
|
-
"class": bem$
|
|
9045
|
+
"class": bem$16("options")
|
|
9045
9046
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
|
9046
9047
|
const renderTab = (tab, tabIndex) => {
|
|
9047
9048
|
const {
|
|
@@ -9052,7 +9053,7 @@
|
|
|
9052
9053
|
const title = selected ? selected[textKey] : placeholder;
|
|
9053
9054
|
return vue.createVNode(Tab, {
|
|
9054
9055
|
"title": title,
|
|
9055
|
-
"titleClass": bem$
|
|
9056
|
+
"titleClass": bem$16("tab", {
|
|
9056
9057
|
unselected: !selected
|
|
9057
9058
|
})
|
|
9058
9059
|
}, {
|
|
@@ -9071,7 +9072,7 @@
|
|
|
9071
9072
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
9072
9073
|
"shrink": true,
|
|
9073
9074
|
"animated": true,
|
|
9074
|
-
"class": bem$
|
|
9075
|
+
"class": bem$16("tabs"),
|
|
9075
9076
|
"color": props2.activeColor,
|
|
9076
9077
|
"swipeable": props2.swipeable,
|
|
9077
9078
|
"onClick-tab": onClickTab
|
|
@@ -9095,19 +9096,19 @@
|
|
|
9095
9096
|
updateTabs();
|
|
9096
9097
|
});
|
|
9097
9098
|
return () => vue.createVNode("div", {
|
|
9098
|
-
"class": bem$
|
|
9099
|
+
"class": bem$16()
|
|
9099
9100
|
}, [renderHeader(), renderTabs()]);
|
|
9100
9101
|
}
|
|
9101
9102
|
});
|
|
9102
|
-
const Cascader = withInstall(stdin_default$
|
|
9103
|
-
const [name$
|
|
9103
|
+
const Cascader = withInstall(stdin_default$1e);
|
|
9104
|
+
const [name$16, bem$15] = createNamespace("cell-group");
|
|
9104
9105
|
const cellGroupProps = {
|
|
9105
9106
|
title: String,
|
|
9106
9107
|
inset: Boolean,
|
|
9107
9108
|
border: truthProp
|
|
9108
9109
|
};
|
|
9109
|
-
var stdin_default$
|
|
9110
|
-
name: name$
|
|
9110
|
+
var stdin_default$1d = vue.defineComponent({
|
|
9111
|
+
name: name$16,
|
|
9111
9112
|
inheritAttrs: false,
|
|
9112
9113
|
props: cellGroupProps,
|
|
9113
9114
|
setup(props2, {
|
|
@@ -9117,7 +9118,7 @@
|
|
|
9117
9118
|
const renderGroup = () => {
|
|
9118
9119
|
var _a;
|
|
9119
9120
|
return vue.createVNode("div", vue.mergeProps({
|
|
9120
|
-
"class": [bem$
|
|
9121
|
+
"class": [bem$15({
|
|
9121
9122
|
inset: props2.inset
|
|
9122
9123
|
}), {
|
|
9123
9124
|
[BORDER_TOP_BOTTOM]: props2.border && !props2.inset
|
|
@@ -9125,7 +9126,7 @@
|
|
|
9125
9126
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
9126
9127
|
};
|
|
9127
9128
|
const renderTitle = () => vue.createVNode("div", {
|
|
9128
|
-
"class": bem$
|
|
9129
|
+
"class": bem$15("title", {
|
|
9129
9130
|
inset: props2.inset
|
|
9130
9131
|
})
|
|
9131
9132
|
}, [slots.title ? slots.title() : props2.title]);
|
|
@@ -9137,9 +9138,9 @@
|
|
|
9137
9138
|
};
|
|
9138
9139
|
}
|
|
9139
9140
|
});
|
|
9140
|
-
const CellGroup = withInstall(stdin_default$
|
|
9141
|
-
const CheckboxGroup = withInstall(stdin_default$
|
|
9142
|
-
const [name$
|
|
9141
|
+
const CellGroup = withInstall(stdin_default$1d);
|
|
9142
|
+
const CheckboxGroup = withInstall(stdin_default$1M);
|
|
9143
|
+
const [name$15, bem$14] = createNamespace("nav-bar");
|
|
9143
9144
|
const navBarProps = {
|
|
9144
9145
|
title: String,
|
|
9145
9146
|
fixed: Boolean,
|
|
@@ -9156,8 +9157,8 @@
|
|
|
9156
9157
|
placeholder: Boolean,
|
|
9157
9158
|
safeAreaInsetTop: Boolean
|
|
9158
9159
|
};
|
|
9159
|
-
var stdin_default$
|
|
9160
|
-
name: name$
|
|
9160
|
+
var stdin_default$1c = vue.defineComponent({
|
|
9161
|
+
name: name$15,
|
|
9161
9162
|
props: navBarProps,
|
|
9162
9163
|
emits: ["click-left", "click-right", "click-title", "select-right-popover", "update:titleDropdownActive"],
|
|
9163
9164
|
setup(props2, {
|
|
@@ -9166,7 +9167,7 @@
|
|
|
9166
9167
|
}) {
|
|
9167
9168
|
const navBarRef = vue.ref();
|
|
9168
9169
|
const rightPopoverShow = vue.ref(false);
|
|
9169
|
-
const renderPlaceholder = usePlaceholder(navBarRef, bem$
|
|
9170
|
+
const renderPlaceholder = usePlaceholder(navBarRef, bem$14);
|
|
9170
9171
|
const onClickLeft = (event) => emit("click-left", event);
|
|
9171
9172
|
const onClickRight = (event) => emit("click-right", event);
|
|
9172
9173
|
const onUpdateRightPopoverShow = (show) => {
|
|
@@ -9187,10 +9188,10 @@
|
|
|
9187
9188
|
return slots.left();
|
|
9188
9189
|
}
|
|
9189
9190
|
return [props2.leftArrow && vue.createVNode(Icon, {
|
|
9190
|
-
"class": bem$
|
|
9191
|
+
"class": bem$14("arrow"),
|
|
9191
9192
|
"name": "arrow-left"
|
|
9192
9193
|
}, null), props2.leftText && vue.createVNode("span", {
|
|
9193
|
-
"class": bem$
|
|
9194
|
+
"class": bem$14("text")
|
|
9194
9195
|
}, [props2.leftText])];
|
|
9195
9196
|
};
|
|
9196
9197
|
const renderRight = () => {
|
|
@@ -9208,12 +9209,12 @@
|
|
|
9208
9209
|
}, {
|
|
9209
9210
|
reference: () => vue.createVNode(Icon, {
|
|
9210
9211
|
"name": props2.rightPopoverIcon,
|
|
9211
|
-
"class": bem$
|
|
9212
|
+
"class": bem$14("right-popover-icon")
|
|
9212
9213
|
}, null)
|
|
9213
9214
|
});
|
|
9214
9215
|
}
|
|
9215
9216
|
return vue.createVNode("span", {
|
|
9216
|
-
"class": bem$
|
|
9217
|
+
"class": bem$14("text")
|
|
9217
9218
|
}, [props2.rightText]);
|
|
9218
9219
|
};
|
|
9219
9220
|
const renderNavBar = () => {
|
|
@@ -9232,23 +9233,23 @@
|
|
|
9232
9233
|
return vue.createVNode("div", {
|
|
9233
9234
|
"ref": navBarRef,
|
|
9234
9235
|
"style": style,
|
|
9235
|
-
"class": [bem$
|
|
9236
|
+
"class": [bem$14({
|
|
9236
9237
|
fixed
|
|
9237
9238
|
}), {
|
|
9238
9239
|
[BORDER_BOTTOM]: border,
|
|
9239
9240
|
"van-safe-area-top": props2.safeAreaInsetTop
|
|
9240
9241
|
}]
|
|
9241
9242
|
}, [vue.createVNode("div", {
|
|
9242
|
-
"class": bem$
|
|
9243
|
+
"class": bem$14("content")
|
|
9243
9244
|
}, [hasLeft && vue.createVNode("div", {
|
|
9244
|
-
"class": [bem$
|
|
9245
|
+
"class": [bem$14("left", {
|
|
9245
9246
|
slot: !!slots.left
|
|
9246
9247
|
}), {
|
|
9247
9248
|
[HAPTICS_FEEDBACK]: !slots.left
|
|
9248
9249
|
}],
|
|
9249
9250
|
"onClick": slots.left ? void 0 : onClickLeft
|
|
9250
9251
|
}, [renderLeft()]), vue.createVNode("div", {
|
|
9251
|
-
"class": [bem$
|
|
9252
|
+
"class": [bem$14("title", {
|
|
9252
9253
|
dropdown: titleDropdown
|
|
9253
9254
|
}), {
|
|
9254
9255
|
[HAPTICS_FEEDBACK]: titleDropdown
|
|
@@ -9263,16 +9264,16 @@
|
|
|
9263
9264
|
}
|
|
9264
9265
|
}
|
|
9265
9266
|
}, [vue.createVNode("div", {
|
|
9266
|
-
"class": [bem$
|
|
9267
|
+
"class": [bem$14("title-content"), "van-ellipsis"]
|
|
9267
9268
|
}, [slots.title ? slots.title() : title, titleDropdown && vue.createVNode(Icon, {
|
|
9268
9269
|
"name": "trangle-down",
|
|
9269
|
-
"class": bem$
|
|
9270
|
+
"class": bem$14("title-arrow", {
|
|
9270
9271
|
active: props2.titleDropdownActive
|
|
9271
9272
|
})
|
|
9272
9273
|
}, null)]), subtitle && vue.createVNode("div", {
|
|
9273
|
-
"class": [bem$
|
|
9274
|
+
"class": [bem$14("subtitle"), "van-ellipsis"]
|
|
9274
9275
|
}, [subtitle])]), hasRight && vue.createVNode("div", {
|
|
9275
|
-
"class": [bem$
|
|
9276
|
+
"class": [bem$14("right", {
|
|
9276
9277
|
slot: !!slots.right
|
|
9277
9278
|
}), {
|
|
9278
9279
|
[HAPTICS_FEEDBACK]: !slots.right && !hasRightPopover
|
|
@@ -9288,8 +9289,8 @@
|
|
|
9288
9289
|
};
|
|
9289
9290
|
}
|
|
9290
9291
|
});
|
|
9291
|
-
const NavBar = withInstall(stdin_default$
|
|
9292
|
-
const [name$
|
|
9292
|
+
const NavBar = withInstall(stdin_default$1c);
|
|
9293
|
+
const [name$14, bem$13] = createNamespace("checkbox-panel");
|
|
9293
9294
|
const checkboxPanelProps = {
|
|
9294
9295
|
show: Boolean,
|
|
9295
9296
|
title: String,
|
|
@@ -9299,8 +9300,8 @@
|
|
|
9299
9300
|
selectAllText: makeStringProp("全选"),
|
|
9300
9301
|
cancelSelectAllText: makeStringProp("取消全选")
|
|
9301
9302
|
};
|
|
9302
|
-
var stdin_default$
|
|
9303
|
-
name: name$
|
|
9303
|
+
var stdin_default$1b = vue.defineComponent({
|
|
9304
|
+
name: name$14,
|
|
9304
9305
|
props: checkboxPanelProps,
|
|
9305
9306
|
emits: ["update:show", "update:modelValue", "confirm"],
|
|
9306
9307
|
setup(props2, {
|
|
@@ -9325,17 +9326,17 @@
|
|
|
9325
9326
|
};
|
|
9326
9327
|
return () => vue.createVNode(ActionSheet, {
|
|
9327
9328
|
"show": props2.show,
|
|
9328
|
-
"class": bem$
|
|
9329
|
+
"class": bem$13(),
|
|
9329
9330
|
"onUpdate:show": (show) => emit("update:show", show)
|
|
9330
9331
|
}, {
|
|
9331
9332
|
default: () => [vue.createVNode("div", {
|
|
9332
|
-
"class": bem$
|
|
9333
|
+
"class": bem$13("content")
|
|
9333
9334
|
}, [vue.createVNode("div", {
|
|
9334
|
-
"class": bem$
|
|
9335
|
+
"class": bem$13("nav-wrapper")
|
|
9335
9336
|
}, [vue.createVNode(NavBar, {
|
|
9336
9337
|
"title": props2.title,
|
|
9337
9338
|
"border": false,
|
|
9338
|
-
"class": bem$
|
|
9339
|
+
"class": bem$13("nav")
|
|
9339
9340
|
}, {
|
|
9340
9341
|
left: () => vue.createVNode(Icon, {
|
|
9341
9342
|
"name": "cross",
|
|
@@ -9343,14 +9344,14 @@
|
|
|
9343
9344
|
"onClick": close
|
|
9344
9345
|
}, null),
|
|
9345
9346
|
right: () => vue.createVNode("span", {
|
|
9346
|
-
"class": bem$
|
|
9347
|
+
"class": bem$13("select-all"),
|
|
9347
9348
|
"onClick": toggleAll
|
|
9348
9349
|
}, [isAllSelected.value ? props2.cancelSelectAllText : props2.selectAllText])
|
|
9349
9350
|
})]), vue.createVNode("div", {
|
|
9350
|
-
"class": bem$
|
|
9351
|
+
"class": bem$13("body")
|
|
9351
9352
|
}, [vue.createVNode(CheckboxGroup, {
|
|
9352
9353
|
"modelValue": selectedValues.value,
|
|
9353
|
-
"class": bem$
|
|
9354
|
+
"class": bem$13("card"),
|
|
9354
9355
|
"onUpdate:modelValue": (value) => emit("update:modelValue", value)
|
|
9355
9356
|
}, {
|
|
9356
9357
|
default: () => [props2.options.map((option) => vue.createVNode(Cell, {
|
|
@@ -9366,7 +9367,7 @@
|
|
|
9366
9367
|
}, null)
|
|
9367
9368
|
}))]
|
|
9368
9369
|
})]), vue.createVNode("div", {
|
|
9369
|
-
"class": bem$
|
|
9370
|
+
"class": bem$13("footer")
|
|
9370
9371
|
}, [vue.createVNode(Button, {
|
|
9371
9372
|
"block": true,
|
|
9372
9373
|
"type": "primary",
|
|
@@ -9377,8 +9378,8 @@
|
|
|
9377
9378
|
});
|
|
9378
9379
|
}
|
|
9379
9380
|
});
|
|
9380
|
-
const CheckboxPanel = withInstall(stdin_default$
|
|
9381
|
-
const [name$
|
|
9381
|
+
const CheckboxPanel = withInstall(stdin_default$1b);
|
|
9382
|
+
const [name$13, bem$12] = createNamespace("circle");
|
|
9382
9383
|
let uid = 0;
|
|
9383
9384
|
const format$1 = (rate) => Math.min(Math.max(+rate, 0), 100);
|
|
9384
9385
|
function getPath(clockwise, viewBoxSize) {
|
|
@@ -9399,8 +9400,8 @@
|
|
|
9399
9400
|
strokeLinecap: String,
|
|
9400
9401
|
startPosition: makeStringProp("top")
|
|
9401
9402
|
};
|
|
9402
|
-
var stdin_default$
|
|
9403
|
-
name: name$
|
|
9403
|
+
var stdin_default$1a = vue.defineComponent({
|
|
9404
|
+
name: name$13,
|
|
9404
9405
|
props: circleProps,
|
|
9405
9406
|
emits: ["update:currentRate"],
|
|
9406
9407
|
setup(props2, {
|
|
@@ -9468,7 +9469,7 @@
|
|
|
9468
9469
|
return vue.createVNode("path", {
|
|
9469
9470
|
"d": path.value,
|
|
9470
9471
|
"style": style,
|
|
9471
|
-
"class": bem$
|
|
9472
|
+
"class": bem$12("hover"),
|
|
9472
9473
|
"stroke": color
|
|
9473
9474
|
}, null);
|
|
9474
9475
|
};
|
|
@@ -9479,7 +9480,7 @@
|
|
|
9479
9480
|
strokeWidth: `${props2.strokeWidth}px`
|
|
9480
9481
|
};
|
|
9481
9482
|
return vue.createVNode("path", {
|
|
9482
|
-
"class": bem$
|
|
9483
|
+
"class": bem$12("layer"),
|
|
9483
9484
|
"style": style,
|
|
9484
9485
|
"d": path.value
|
|
9485
9486
|
}, null);
|
|
@@ -9510,12 +9511,12 @@
|
|
|
9510
9511
|
}
|
|
9511
9512
|
if (props2.text) {
|
|
9512
9513
|
return vue.createVNode("div", {
|
|
9513
|
-
"class": bem$
|
|
9514
|
+
"class": bem$12("text")
|
|
9514
9515
|
}, [props2.text]);
|
|
9515
9516
|
}
|
|
9516
9517
|
};
|
|
9517
9518
|
return () => vue.createVNode("div", {
|
|
9518
|
-
"class": bem$
|
|
9519
|
+
"class": bem$12(),
|
|
9519
9520
|
"style": getSizeStyle(props2.size)
|
|
9520
9521
|
}, [vue.createVNode("svg", {
|
|
9521
9522
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
|
@@ -9523,9 +9524,9 @@
|
|
|
9523
9524
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
|
9524
9525
|
}
|
|
9525
9526
|
});
|
|
9526
|
-
const Circle = withInstall(stdin_default$
|
|
9527
|
-
const [name$
|
|
9528
|
-
const ROW_KEY = Symbol(name$
|
|
9527
|
+
const Circle = withInstall(stdin_default$1a);
|
|
9528
|
+
const [name$12, bem$11] = createNamespace("row");
|
|
9529
|
+
const ROW_KEY = Symbol(name$12);
|
|
9529
9530
|
const rowProps = {
|
|
9530
9531
|
tag: makeStringProp("div"),
|
|
9531
9532
|
wrap: truthProp,
|
|
@@ -9533,8 +9534,8 @@
|
|
|
9533
9534
|
gutter: makeNumericProp(0),
|
|
9534
9535
|
justify: String
|
|
9535
9536
|
};
|
|
9536
|
-
var stdin_default$
|
|
9537
|
-
name: name$
|
|
9537
|
+
var stdin_default$19 = vue.defineComponent({
|
|
9538
|
+
name: name$12,
|
|
9538
9539
|
props: rowProps,
|
|
9539
9540
|
setup(props2, {
|
|
9540
9541
|
slots
|
|
@@ -9593,7 +9594,7 @@
|
|
|
9593
9594
|
justify
|
|
9594
9595
|
} = props2;
|
|
9595
9596
|
return vue.createVNode(tag, {
|
|
9596
|
-
"class": bem$
|
|
9597
|
+
"class": bem$11({
|
|
9597
9598
|
[`align-${align}`]: align,
|
|
9598
9599
|
[`justify-${justify}`]: justify,
|
|
9599
9600
|
nowrap: !wrap2
|
|
@@ -9607,14 +9608,14 @@
|
|
|
9607
9608
|
};
|
|
9608
9609
|
}
|
|
9609
9610
|
});
|
|
9610
|
-
const [name$
|
|
9611
|
+
const [name$11, bem$10] = createNamespace("col");
|
|
9611
9612
|
const colProps = {
|
|
9612
9613
|
tag: makeStringProp("div"),
|
|
9613
9614
|
span: makeNumericProp(0),
|
|
9614
9615
|
offset: numericProp
|
|
9615
9616
|
};
|
|
9616
|
-
var stdin_default$
|
|
9617
|
-
name: name$
|
|
9617
|
+
var stdin_default$18 = vue.defineComponent({
|
|
9618
|
+
name: name$11,
|
|
9618
9619
|
props: colProps,
|
|
9619
9620
|
setup(props2, {
|
|
9620
9621
|
slots
|
|
@@ -9649,7 +9650,7 @@
|
|
|
9649
9650
|
} = props2;
|
|
9650
9651
|
return vue.createVNode(tag, {
|
|
9651
9652
|
"style": style.value,
|
|
9652
|
-
"class": bem
|
|
9653
|
+
"class": bem$10({
|
|
9653
9654
|
[span]: span,
|
|
9654
9655
|
[`offset-${offset2}`]: offset2
|
|
9655
9656
|
})
|
|
@@ -9662,9 +9663,9 @@
|
|
|
9662
9663
|
};
|
|
9663
9664
|
}
|
|
9664
9665
|
});
|
|
9665
|
-
const Col = withInstall(stdin_default$
|
|
9666
|
-
const [name
|
|
9667
|
-
const COLLAPSE_KEY = Symbol(name
|
|
9666
|
+
const Col = withInstall(stdin_default$18);
|
|
9667
|
+
const [name$10, bem$$] = createNamespace("collapse");
|
|
9668
|
+
const COLLAPSE_KEY = Symbol(name$10);
|
|
9668
9669
|
const collapseProps = {
|
|
9669
9670
|
border: truthProp,
|
|
9670
9671
|
accordion: Boolean,
|
|
@@ -9673,8 +9674,8 @@
|
|
|
9673
9674
|
default: ""
|
|
9674
9675
|
}
|
|
9675
9676
|
};
|
|
9676
|
-
var stdin_default$
|
|
9677
|
-
name: name
|
|
9677
|
+
var stdin_default$17 = vue.defineComponent({
|
|
9678
|
+
name: name$10,
|
|
9678
9679
|
props: collapseProps,
|
|
9679
9680
|
emits: ["change", "update:modelValue"],
|
|
9680
9681
|
setup(props2, {
|
|
@@ -9741,15 +9742,15 @@
|
|
|
9741
9742
|
return () => {
|
|
9742
9743
|
var _a;
|
|
9743
9744
|
return vue.createVNode("div", {
|
|
9744
|
-
"class": [bem
|
|
9745
|
+
"class": [bem$$(), {
|
|
9745
9746
|
[BORDER_TOP_BOTTOM]: props2.border
|
|
9746
9747
|
}]
|
|
9747
9748
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
9748
9749
|
};
|
|
9749
9750
|
}
|
|
9750
9751
|
});
|
|
9751
|
-
const Collapse = withInstall(stdin_default$
|
|
9752
|
-
const [name
|
|
9752
|
+
const Collapse = withInstall(stdin_default$17);
|
|
9753
|
+
const [name$$, bem$_] = createNamespace("collapse-item");
|
|
9753
9754
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
|
9754
9755
|
const collapseItemProps = extend$1({}, cellSharedProps, {
|
|
9755
9756
|
name: numericProp,
|
|
@@ -9758,8 +9759,8 @@
|
|
|
9758
9759
|
readonly: Boolean,
|
|
9759
9760
|
lazyRender: truthProp
|
|
9760
9761
|
});
|
|
9761
|
-
var stdin_default$
|
|
9762
|
-
name: name
|
|
9762
|
+
var stdin_default$16 = vue.defineComponent({
|
|
9763
|
+
name: name$$,
|
|
9763
9764
|
props: collapseItemProps,
|
|
9764
9765
|
setup(props2, {
|
|
9765
9766
|
slots
|
|
@@ -9838,7 +9839,7 @@
|
|
|
9838
9839
|
}
|
|
9839
9840
|
return vue.createVNode(Cell, vue.mergeProps({
|
|
9840
9841
|
"role": "button",
|
|
9841
|
-
"class": bem$
|
|
9842
|
+
"class": bem$_("title", {
|
|
9842
9843
|
disabled,
|
|
9843
9844
|
expanded: expanded.value,
|
|
9844
9845
|
borderless: !border
|
|
@@ -9851,11 +9852,11 @@
|
|
|
9851
9852
|
var _a;
|
|
9852
9853
|
return vue.withDirectives(vue.createVNode("div", {
|
|
9853
9854
|
"ref": wrapperRef,
|
|
9854
|
-
"class": bem$
|
|
9855
|
+
"class": bem$_("wrapper"),
|
|
9855
9856
|
"onTransitionend": onTransitionEnd
|
|
9856
9857
|
}, [vue.createVNode("div", {
|
|
9857
9858
|
"ref": contentRef,
|
|
9858
|
-
"class": bem$
|
|
9859
|
+
"class": bem$_("content")
|
|
9859
9860
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
|
|
9860
9861
|
});
|
|
9861
9862
|
useExpose({
|
|
@@ -9864,15 +9865,15 @@
|
|
|
9864
9865
|
itemName: name2
|
|
9865
9866
|
});
|
|
9866
9867
|
return () => vue.createVNode("div", {
|
|
9867
|
-
"class": [bem$
|
|
9868
|
+
"class": [bem$_({
|
|
9868
9869
|
border: index.value && props2.border
|
|
9869
9870
|
})]
|
|
9870
9871
|
}, [renderTitle(), renderContent()]);
|
|
9871
9872
|
}
|
|
9872
9873
|
});
|
|
9873
|
-
const CollapseItem = withInstall(stdin_default$
|
|
9874
|
-
const ConfigProvider = withInstall(stdin_default$
|
|
9875
|
-
const [name$
|
|
9874
|
+
const CollapseItem = withInstall(stdin_default$16);
|
|
9875
|
+
const ConfigProvider = withInstall(stdin_default$1Z);
|
|
9876
|
+
const [name$_, bem$Z, t$d] = createNamespace("contact-card");
|
|
9876
9877
|
const contactCardProps = {
|
|
9877
9878
|
tel: String,
|
|
9878
9879
|
name: String,
|
|
@@ -9880,8 +9881,8 @@
|
|
|
9880
9881
|
addText: String,
|
|
9881
9882
|
editable: truthProp
|
|
9882
9883
|
};
|
|
9883
|
-
var stdin_default$
|
|
9884
|
-
name: name$
|
|
9884
|
+
var stdin_default$15 = vue.defineComponent({
|
|
9885
|
+
name: name$_,
|
|
9885
9886
|
props: contactCardProps,
|
|
9886
9887
|
emits: ["click"],
|
|
9887
9888
|
setup(props2, {
|
|
@@ -9901,18 +9902,18 @@
|
|
|
9901
9902
|
return () => vue.createVNode(Cell, {
|
|
9902
9903
|
"center": true,
|
|
9903
9904
|
"icon": props2.type === "edit" ? "contact" : "add-square",
|
|
9904
|
-
"class": bem$
|
|
9905
|
+
"class": bem$Z([props2.type]),
|
|
9905
9906
|
"border": false,
|
|
9906
9907
|
"isLink": props2.editable,
|
|
9907
|
-
"valueClass": bem$
|
|
9908
|
+
"valueClass": bem$Z("value"),
|
|
9908
9909
|
"onClick": onClick
|
|
9909
9910
|
}, {
|
|
9910
9911
|
value: renderContent
|
|
9911
9912
|
});
|
|
9912
9913
|
}
|
|
9913
9914
|
});
|
|
9914
|
-
const ContactCard = withInstall(stdin_default$
|
|
9915
|
-
const [name$
|
|
9915
|
+
const ContactCard = withInstall(stdin_default$15);
|
|
9916
|
+
const [name$Z, bem$Y, t$c] = createNamespace("contact-edit");
|
|
9916
9917
|
const DEFAULT_CONTACT = {
|
|
9917
9918
|
tel: "",
|
|
9918
9919
|
name: ""
|
|
@@ -9932,8 +9933,8 @@
|
|
|
9932
9933
|
default: isMobile
|
|
9933
9934
|
}
|
|
9934
9935
|
};
|
|
9935
|
-
var stdin_default$
|
|
9936
|
-
name: name$
|
|
9936
|
+
var stdin_default$14 = vue.defineComponent({
|
|
9937
|
+
name: name$Z,
|
|
9937
9938
|
props: contactEditProps,
|
|
9938
9939
|
emits: ["save", "delete", "change-default"],
|
|
9939
9940
|
setup(props2, {
|
|
@@ -9947,20 +9948,20 @@
|
|
|
9947
9948
|
};
|
|
9948
9949
|
const onDelete = () => emit("delete", contact);
|
|
9949
9950
|
const renderButtons = () => vue.createVNode("div", {
|
|
9950
|
-
"class": bem$
|
|
9951
|
+
"class": bem$Y("buttons")
|
|
9951
9952
|
}, [vue.createVNode(Button, {
|
|
9952
9953
|
"block": true,
|
|
9953
9954
|
"round": true,
|
|
9954
9955
|
"type": "primary",
|
|
9955
9956
|
"text": t$c("save"),
|
|
9956
|
-
"class": bem$
|
|
9957
|
+
"class": bem$Y("button"),
|
|
9957
9958
|
"loading": props2.isSaving,
|
|
9958
9959
|
"nativeType": "submit"
|
|
9959
9960
|
}, null), props2.isEdit && vue.createVNode(Button, {
|
|
9960
9961
|
"block": true,
|
|
9961
9962
|
"round": true,
|
|
9962
9963
|
"text": t$c("delete"),
|
|
9963
|
-
"class": bem$
|
|
9964
|
+
"class": bem$Y("button"),
|
|
9964
9965
|
"loading": props2.isDeleting,
|
|
9965
9966
|
"onClick": onDelete
|
|
9966
9967
|
}, null)]);
|
|
@@ -9974,7 +9975,7 @@
|
|
|
9974
9975
|
if (props2.showSetDefault) {
|
|
9975
9976
|
return vue.createVNode(Cell, {
|
|
9976
9977
|
"title": props2.setDefaultLabel,
|
|
9977
|
-
"class": bem$
|
|
9978
|
+
"class": bem$Y("switch-cell"),
|
|
9978
9979
|
"border": false
|
|
9979
9980
|
}, {
|
|
9980
9981
|
"right-icon": renderSwitch
|
|
@@ -9983,11 +9984,11 @@
|
|
|
9983
9984
|
};
|
|
9984
9985
|
vue.watch(() => props2.contactInfo, (value) => extend$1(contact, DEFAULT_CONTACT, value));
|
|
9985
9986
|
return () => vue.createVNode(Form, {
|
|
9986
|
-
"class": bem$
|
|
9987
|
+
"class": bem$Y(),
|
|
9987
9988
|
"onSubmit": onSave
|
|
9988
9989
|
}, {
|
|
9989
9990
|
default: () => [vue.createVNode("div", {
|
|
9990
|
-
"class": bem$
|
|
9991
|
+
"class": bem$Y("fields")
|
|
9991
9992
|
}, [vue.createVNode(Field, {
|
|
9992
9993
|
"modelValue": contact.name,
|
|
9993
9994
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
|
@@ -10014,16 +10015,16 @@
|
|
|
10014
10015
|
});
|
|
10015
10016
|
}
|
|
10016
10017
|
});
|
|
10017
|
-
const ContactEdit = withInstall(stdin_default$
|
|
10018
|
-
const [name$
|
|
10018
|
+
const ContactEdit = withInstall(stdin_default$14);
|
|
10019
|
+
const [name$Y, bem$X, t$b] = createNamespace("contact-list");
|
|
10019
10020
|
const contactListProps = {
|
|
10020
10021
|
list: Array,
|
|
10021
10022
|
addText: String,
|
|
10022
10023
|
modelValue: unknownProp,
|
|
10023
10024
|
defaultTagText: String
|
|
10024
10025
|
};
|
|
10025
|
-
var stdin_default$
|
|
10026
|
-
name: name$
|
|
10026
|
+
var stdin_default$13 = vue.defineComponent({
|
|
10027
|
+
name: name$Y,
|
|
10027
10028
|
props: contactListProps,
|
|
10028
10029
|
emits: ["add", "edit", "select", "update:modelValue"],
|
|
10029
10030
|
setup(props2, {
|
|
@@ -10035,13 +10036,13 @@
|
|
|
10035
10036
|
emit("select", item, index);
|
|
10036
10037
|
};
|
|
10037
10038
|
const renderRightIcon = () => vue.createVNode(Radio, {
|
|
10038
|
-
"class": bem$
|
|
10039
|
+
"class": bem$X("radio"),
|
|
10039
10040
|
"name": item.id,
|
|
10040
10041
|
"size": "large"
|
|
10041
10042
|
}, null);
|
|
10042
10043
|
const renderEditIcon = () => vue.createVNode(Icon, {
|
|
10043
10044
|
"name": "edit",
|
|
10044
|
-
"class": bem$
|
|
10045
|
+
"class": bem$X("edit"),
|
|
10045
10046
|
"onClick": (event) => {
|
|
10046
10047
|
event.stopPropagation();
|
|
10047
10048
|
emit("edit", item, index);
|
|
@@ -10053,7 +10054,7 @@
|
|
|
10053
10054
|
nodes.push(vue.createVNode(Tag, {
|
|
10054
10055
|
"type": "primary",
|
|
10055
10056
|
"round": true,
|
|
10056
|
-
"class": bem$
|
|
10057
|
+
"class": bem$X("item-tag")
|
|
10057
10058
|
}, {
|
|
10058
10059
|
default: () => [props2.defaultTagText]
|
|
10059
10060
|
}));
|
|
@@ -10064,8 +10065,8 @@
|
|
|
10064
10065
|
"key": item.id,
|
|
10065
10066
|
"isLink": true,
|
|
10066
10067
|
"center": true,
|
|
10067
|
-
"class": bem$
|
|
10068
|
-
"valueClass": bem$
|
|
10068
|
+
"class": bem$X("item"),
|
|
10069
|
+
"valueClass": bem$X("item-value"),
|
|
10069
10070
|
"onClick": onClick
|
|
10070
10071
|
}, {
|
|
10071
10072
|
icon: renderEditIcon,
|
|
@@ -10074,25 +10075,25 @@
|
|
|
10074
10075
|
});
|
|
10075
10076
|
};
|
|
10076
10077
|
return () => vue.createVNode("div", {
|
|
10077
|
-
"class": bem$
|
|
10078
|
+
"class": bem$X()
|
|
10078
10079
|
}, [vue.createVNode(RadioGroup, {
|
|
10079
10080
|
"modelValue": props2.modelValue,
|
|
10080
|
-
"class": bem$
|
|
10081
|
+
"class": bem$X("group")
|
|
10081
10082
|
}, {
|
|
10082
10083
|
default: () => [props2.list && props2.list.map(renderItem)]
|
|
10083
10084
|
}), vue.createVNode("div", {
|
|
10084
|
-
"class": [bem$
|
|
10085
|
+
"class": [bem$X("bottom"), "van-safe-area-bottom"]
|
|
10085
10086
|
}, [vue.createVNode(Button, {
|
|
10086
10087
|
"round": true,
|
|
10087
10088
|
"block": true,
|
|
10088
10089
|
"type": "primary",
|
|
10089
|
-
"class": bem$
|
|
10090
|
+
"class": bem$X("add"),
|
|
10090
10091
|
"text": props2.addText || t$b("addContact"),
|
|
10091
10092
|
"onClick": () => emit("add")
|
|
10092
10093
|
}, null)])]);
|
|
10093
10094
|
}
|
|
10094
10095
|
});
|
|
10095
|
-
const ContactList = withInstall(stdin_default$
|
|
10096
|
+
const ContactList = withInstall(stdin_default$13);
|
|
10096
10097
|
function parseFormat(format2, currentTime) {
|
|
10097
10098
|
const { days } = currentTime;
|
|
10098
10099
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
|
@@ -10128,15 +10129,15 @@
|
|
|
10128
10129
|
}
|
|
10129
10130
|
return format2;
|
|
10130
10131
|
}
|
|
10131
|
-
const [name$
|
|
10132
|
+
const [name$X, bem$W] = createNamespace("count-down");
|
|
10132
10133
|
const countDownProps = {
|
|
10133
10134
|
time: makeNumericProp(0),
|
|
10134
10135
|
format: makeStringProp("HH:mm:ss"),
|
|
10135
10136
|
autoStart: truthProp,
|
|
10136
10137
|
millisecond: Boolean
|
|
10137
10138
|
};
|
|
10138
|
-
var stdin_default$
|
|
10139
|
-
name: name$
|
|
10139
|
+
var stdin_default$12 = vue.defineComponent({
|
|
10140
|
+
name: name$X,
|
|
10140
10141
|
props: countDownProps,
|
|
10141
10142
|
emits: ["change", "finish"],
|
|
10142
10143
|
setup(props2, {
|
|
@@ -10171,11 +10172,11 @@
|
|
|
10171
10172
|
});
|
|
10172
10173
|
return () => vue.createVNode("div", {
|
|
10173
10174
|
"role": "timer",
|
|
10174
|
-
"class": bem$
|
|
10175
|
+
"class": bem$W()
|
|
10175
10176
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
|
10176
10177
|
}
|
|
10177
10178
|
});
|
|
10178
|
-
const CountDown = withInstall(stdin_default$
|
|
10179
|
+
const CountDown = withInstall(stdin_default$12);
|
|
10179
10180
|
function getDate(timeStamp) {
|
|
10180
10181
|
const date = new Date(timeStamp * 1e3);
|
|
10181
10182
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
|
@@ -10184,9 +10185,9 @@
|
|
|
10184
10185
|
}
|
|
10185
10186
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
|
10186
10187
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
|
10187
|
-
const [name$
|
|
10188
|
-
var stdin_default$
|
|
10189
|
-
name: name$
|
|
10188
|
+
const [name$W, bem$V, t$a] = createNamespace("coupon");
|
|
10189
|
+
var stdin_default$11 = vue.defineComponent({
|
|
10190
|
+
name: name$W,
|
|
10190
10191
|
props: {
|
|
10191
10192
|
chosen: Boolean,
|
|
10192
10193
|
coupon: makeRequiredProp(Object),
|
|
@@ -10230,34 +10231,34 @@
|
|
|
10230
10231
|
} = props2;
|
|
10231
10232
|
const description = disabled && coupon.reason || coupon.description;
|
|
10232
10233
|
return vue.createVNode("div", {
|
|
10233
|
-
"class": bem$
|
|
10234
|
+
"class": bem$V({
|
|
10234
10235
|
disabled
|
|
10235
10236
|
})
|
|
10236
10237
|
}, [vue.createVNode("div", {
|
|
10237
|
-
"class": bem$
|
|
10238
|
+
"class": bem$V("content")
|
|
10238
10239
|
}, [vue.createVNode("div", {
|
|
10239
|
-
"class": bem$
|
|
10240
|
+
"class": bem$V("head")
|
|
10240
10241
|
}, [vue.createVNode("h2", {
|
|
10241
|
-
"class": bem$
|
|
10242
|
+
"class": bem$V("amount")
|
|
10242
10243
|
}, [faceAmount.value]), vue.createVNode("p", {
|
|
10243
|
-
"class": bem$
|
|
10244
|
+
"class": bem$V("condition")
|
|
10244
10245
|
}, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
|
|
10245
|
-
"class": bem$
|
|
10246
|
+
"class": bem$V("body")
|
|
10246
10247
|
}, [vue.createVNode("p", {
|
|
10247
|
-
"class": bem$
|
|
10248
|
+
"class": bem$V("name")
|
|
10248
10249
|
}, [coupon.name]), vue.createVNode("p", {
|
|
10249
|
-
"class": bem$
|
|
10250
|
+
"class": bem$V("valid")
|
|
10250
10251
|
}, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
|
|
10251
|
-
"class": bem$
|
|
10252
|
+
"class": bem$V("corner"),
|
|
10252
10253
|
"modelValue": chosen
|
|
10253
10254
|
}, null)])]), description && vue.createVNode("p", {
|
|
10254
|
-
"class": bem$
|
|
10255
|
+
"class": bem$V("description")
|
|
10255
10256
|
}, [description])]);
|
|
10256
10257
|
};
|
|
10257
10258
|
}
|
|
10258
10259
|
});
|
|
10259
|
-
const Coupon = withInstall(stdin_default$
|
|
10260
|
-
const [name$
|
|
10260
|
+
const Coupon = withInstall(stdin_default$11);
|
|
10261
|
+
const [name$V, bem$U, t$9] = createNamespace("coupon-cell");
|
|
10261
10262
|
const couponCellProps = {
|
|
10262
10263
|
title: String,
|
|
10263
10264
|
border: truthProp,
|
|
@@ -10285,34 +10286,34 @@
|
|
|
10285
10286
|
}
|
|
10286
10287
|
return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
|
|
10287
10288
|
}
|
|
10288
|
-
var stdin_default
|
|
10289
|
-
name: name$
|
|
10289
|
+
var stdin_default$10 = vue.defineComponent({
|
|
10290
|
+
name: name$V,
|
|
10290
10291
|
props: couponCellProps,
|
|
10291
10292
|
setup(props2) {
|
|
10292
10293
|
return () => {
|
|
10293
10294
|
const selected = props2.coupons[+props2.chosenCoupon];
|
|
10294
10295
|
return vue.createVNode(Cell, {
|
|
10295
|
-
"class": bem$
|
|
10296
|
+
"class": bem$U(),
|
|
10296
10297
|
"value": formatValue(props2),
|
|
10297
10298
|
"title": props2.title || t$9("title"),
|
|
10298
10299
|
"border": props2.border,
|
|
10299
10300
|
"isLink": props2.editable,
|
|
10300
|
-
"valueClass": bem$
|
|
10301
|
+
"valueClass": bem$U("value", {
|
|
10301
10302
|
selected
|
|
10302
10303
|
})
|
|
10303
10304
|
}, null);
|
|
10304
10305
|
};
|
|
10305
10306
|
}
|
|
10306
10307
|
});
|
|
10307
|
-
const CouponCell = withInstall(stdin_default
|
|
10308
|
-
const [name$
|
|
10308
|
+
const CouponCell = withInstall(stdin_default$10);
|
|
10309
|
+
const [name$U, bem$T] = createNamespace("empty");
|
|
10309
10310
|
const emptyProps = {
|
|
10310
10311
|
image: makeStringProp("default"),
|
|
10311
10312
|
imageSize: [Number, String, Array],
|
|
10312
10313
|
description: String
|
|
10313
10314
|
};
|
|
10314
|
-
var stdin_default
|
|
10315
|
-
name: name$
|
|
10315
|
+
var stdin_default$$ = vue.defineComponent({
|
|
10316
|
+
name: name$U,
|
|
10316
10317
|
props: emptyProps,
|
|
10317
10318
|
setup(props2, {
|
|
10318
10319
|
slots
|
|
@@ -10321,14 +10322,14 @@
|
|
|
10321
10322
|
const description = slots.description ? slots.description() : props2.description;
|
|
10322
10323
|
if (description) {
|
|
10323
10324
|
return vue.createVNode("p", {
|
|
10324
|
-
"class": bem$
|
|
10325
|
+
"class": bem$T("description")
|
|
10325
10326
|
}, [description]);
|
|
10326
10327
|
}
|
|
10327
10328
|
};
|
|
10328
10329
|
const renderBottom = () => {
|
|
10329
10330
|
if (slots.default) {
|
|
10330
10331
|
return vue.createVNode("div", {
|
|
10331
|
-
"class": bem$
|
|
10332
|
+
"class": bem$T("bottom")
|
|
10332
10333
|
}, [slots.default()]);
|
|
10333
10334
|
}
|
|
10334
10335
|
};
|
|
@@ -10338,7 +10339,7 @@
|
|
|
10338
10339
|
}
|
|
10339
10340
|
if (props2.image === "default" || props2.image === "network") {
|
|
10340
10341
|
return vue.createVNode("div", {
|
|
10341
|
-
"class": bem$
|
|
10342
|
+
"class": bem$T("image-preset", props2.image)
|
|
10342
10343
|
}, null);
|
|
10343
10344
|
}
|
|
10344
10345
|
return vue.createVNode("img", {
|
|
@@ -10346,15 +10347,15 @@
|
|
|
10346
10347
|
}, null);
|
|
10347
10348
|
};
|
|
10348
10349
|
return () => vue.createVNode("div", {
|
|
10349
|
-
"class": bem$
|
|
10350
|
+
"class": bem$T()
|
|
10350
10351
|
}, [vue.createVNode("div", {
|
|
10351
|
-
"class": bem$
|
|
10352
|
+
"class": bem$T("image"),
|
|
10352
10353
|
"style": getSizeStyle(props2.imageSize)
|
|
10353
10354
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
|
10354
10355
|
}
|
|
10355
10356
|
});
|
|
10356
|
-
const Empty = withInstall(stdin_default
|
|
10357
|
-
const [name$
|
|
10357
|
+
const Empty = withInstall(stdin_default$$);
|
|
10358
|
+
const [name$T, bem$S, t$8] = createNamespace("coupon-list");
|
|
10358
10359
|
const couponListProps = {
|
|
10359
10360
|
code: makeStringProp(""),
|
|
10360
10361
|
coupons: makeArrayProp(),
|
|
@@ -10375,8 +10376,8 @@
|
|
|
10375
10376
|
exchangeButtonLoading: Boolean,
|
|
10376
10377
|
exchangeButtonDisabled: Boolean
|
|
10377
10378
|
};
|
|
10378
|
-
var stdin_default$
|
|
10379
|
-
name: name$
|
|
10379
|
+
var stdin_default$_ = vue.defineComponent({
|
|
10380
|
+
name: name$T,
|
|
10380
10381
|
props: couponListProps,
|
|
10381
10382
|
emits: ["change", "exchange", "update:code"],
|
|
10382
10383
|
setup(props2, {
|
|
@@ -10412,26 +10413,26 @@
|
|
|
10412
10413
|
"image": props2.emptyImage
|
|
10413
10414
|
}, {
|
|
10414
10415
|
default: () => [vue.createVNode("p", {
|
|
10415
|
-
"class": bem$
|
|
10416
|
+
"class": bem$S("empty-tip")
|
|
10416
10417
|
}, [t$8("noCoupon")])]
|
|
10417
10418
|
});
|
|
10418
10419
|
const renderExchangeBar = () => {
|
|
10419
10420
|
if (props2.showExchangeBar) {
|
|
10420
10421
|
return vue.createVNode("div", {
|
|
10421
10422
|
"ref": barRef,
|
|
10422
|
-
"class": bem$
|
|
10423
|
+
"class": bem$S("exchange-bar")
|
|
10423
10424
|
}, [vue.createVNode(Field, {
|
|
10424
10425
|
"modelValue": currentCode.value,
|
|
10425
10426
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
|
10426
10427
|
"clearable": true,
|
|
10427
10428
|
"border": false,
|
|
10428
|
-
"class": bem$
|
|
10429
|
+
"class": bem$S("field"),
|
|
10429
10430
|
"placeholder": props2.inputPlaceholder || t$8("placeholder"),
|
|
10430
10431
|
"maxlength": "20"
|
|
10431
10432
|
}, null), vue.createVNode(Button, {
|
|
10432
10433
|
"plain": true,
|
|
10433
10434
|
"type": "primary",
|
|
10434
|
-
"class": bem$
|
|
10435
|
+
"class": bem$S("exchange"),
|
|
10435
10436
|
"text": props2.exchangeButtonText || t$8("exchange"),
|
|
10436
10437
|
"loading": props2.exchangeButtonLoading,
|
|
10437
10438
|
"disabled": buttonDisabled.value,
|
|
@@ -10451,7 +10452,7 @@
|
|
|
10451
10452
|
default: () => {
|
|
10452
10453
|
var _a;
|
|
10453
10454
|
return [vue.createVNode("div", {
|
|
10454
|
-
"class": bem$
|
|
10455
|
+
"class": bem$S("list", {
|
|
10455
10456
|
"with-bottom": props2.showCloseButton
|
|
10456
10457
|
}),
|
|
10457
10458
|
"style": {
|
|
@@ -10480,7 +10481,7 @@
|
|
|
10480
10481
|
default: () => {
|
|
10481
10482
|
var _a;
|
|
10482
10483
|
return [vue.createVNode("div", {
|
|
10483
|
-
"class": bem$
|
|
10484
|
+
"class": bem$S("list", {
|
|
10484
10485
|
"with-bottom": props2.showCloseButton
|
|
10485
10486
|
}),
|
|
10486
10487
|
"style": {
|
|
@@ -10507,27 +10508,27 @@
|
|
|
10507
10508
|
});
|
|
10508
10509
|
return () => vue.createVNode("div", {
|
|
10509
10510
|
"ref": root,
|
|
10510
|
-
"class": bem$
|
|
10511
|
+
"class": bem$S()
|
|
10511
10512
|
}, [renderExchangeBar(), vue.createVNode(Tabs, {
|
|
10512
10513
|
"active": activeTab.value,
|
|
10513
10514
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
10514
|
-
"class": bem$
|
|
10515
|
+
"class": bem$S("tab")
|
|
10515
10516
|
}, {
|
|
10516
10517
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
|
10517
10518
|
}), vue.createVNode("div", {
|
|
10518
|
-
"class": bem$
|
|
10519
|
+
"class": bem$S("bottom")
|
|
10519
10520
|
}, [vue.withDirectives(vue.createVNode(Button, {
|
|
10520
10521
|
"round": true,
|
|
10521
10522
|
"block": true,
|
|
10522
10523
|
"type": "primary",
|
|
10523
|
-
"class": bem$
|
|
10524
|
+
"class": bem$S("close"),
|
|
10524
10525
|
"text": props2.closeButtonText || t$8("close"),
|
|
10525
10526
|
"onClick": () => emit("change", -1)
|
|
10526
10527
|
}, null), [[vue.vShow, props2.showCloseButton]])])]);
|
|
10527
10528
|
}
|
|
10528
10529
|
});
|
|
10529
|
-
const CouponList = withInstall(stdin_default$
|
|
10530
|
-
const [name$
|
|
10530
|
+
const CouponList = withInstall(stdin_default$_);
|
|
10531
|
+
const [name$S, bem$R] = createNamespace("filter-tag");
|
|
10531
10532
|
const filterTagProps = {
|
|
10532
10533
|
selected: Boolean,
|
|
10533
10534
|
disabled: Boolean,
|
|
@@ -10544,8 +10545,8 @@
|
|
|
10544
10545
|
dot: Boolean,
|
|
10545
10546
|
badge: numericProp
|
|
10546
10547
|
};
|
|
10547
|
-
var stdin_default$
|
|
10548
|
-
name: name$
|
|
10548
|
+
var stdin_default$Z = vue.defineComponent({
|
|
10549
|
+
name: name$S,
|
|
10549
10550
|
props: filterTagProps,
|
|
10550
10551
|
emits: ["click"],
|
|
10551
10552
|
setup(props2, {
|
|
@@ -10554,7 +10555,7 @@
|
|
|
10554
10555
|
}) {
|
|
10555
10556
|
const renderIcon = () => props2.icon && vue.createVNode(Icon, {
|
|
10556
10557
|
"name": props2.icon,
|
|
10557
|
-
"class": bem$
|
|
10558
|
+
"class": bem$R("icon"),
|
|
10558
10559
|
"classPrefix": props2.iconPrefix
|
|
10559
10560
|
}, null);
|
|
10560
10561
|
const renderBadge = () => {
|
|
@@ -10575,7 +10576,7 @@
|
|
|
10575
10576
|
const content = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
10576
10577
|
return vue.createVNode("button", {
|
|
10577
10578
|
"type": "button",
|
|
10578
|
-
"class": bem$
|
|
10579
|
+
"class": bem$R({
|
|
10579
10580
|
selected: props2.selected,
|
|
10580
10581
|
disabled: props2.disabled,
|
|
10581
10582
|
large: props2.size === "large"
|
|
@@ -10583,15 +10584,15 @@
|
|
|
10583
10584
|
"disabled": props2.disabled,
|
|
10584
10585
|
"onClick": (event) => emit("click", event)
|
|
10585
10586
|
}, [props2.iconPosition === "left" && icon, vue.createVNode("span", {
|
|
10586
|
-
"class": bem$
|
|
10587
|
+
"class": bem$R("text")
|
|
10587
10588
|
}, [content]), props2.iconPosition === "right" && icon, renderBadge()]);
|
|
10588
10589
|
};
|
|
10589
10590
|
}
|
|
10590
10591
|
});
|
|
10591
|
-
const FilterTag = withInstall(stdin_default$
|
|
10592
|
-
const [name$
|
|
10593
|
-
var stdin_default$
|
|
10594
|
-
name: name$
|
|
10592
|
+
const FilterTag = withInstall(stdin_default$Z);
|
|
10593
|
+
const [name$R] = createNamespace("time-picker");
|
|
10594
|
+
var stdin_default$Y = vue.defineComponent({
|
|
10595
|
+
name: name$R,
|
|
10595
10596
|
props: extend$1({}, sharedProps, {
|
|
10596
10597
|
minHour: makeNumericProp(0),
|
|
10597
10598
|
maxHour: makeNumericProp(23),
|
|
@@ -10698,9 +10699,9 @@
|
|
|
10698
10699
|
}
|
|
10699
10700
|
});
|
|
10700
10701
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
10701
|
-
const [name$
|
|
10702
|
-
var stdin_default$
|
|
10703
|
-
name: name$
|
|
10702
|
+
const [name$Q] = createNamespace("date-picker");
|
|
10703
|
+
var stdin_default$X = vue.defineComponent({
|
|
10704
|
+
name: name$Q,
|
|
10704
10705
|
props: extend$1({}, sharedProps, {
|
|
10705
10706
|
type: makeStringProp("datetime"),
|
|
10706
10707
|
modelValue: Date,
|
|
@@ -10938,10 +10939,10 @@
|
|
|
10938
10939
|
}, pick(props2, pickerInheritKeys)), slots);
|
|
10939
10940
|
}
|
|
10940
10941
|
});
|
|
10941
|
-
const [name$
|
|
10942
|
-
const timePickerPropKeys = Object.keys(stdin_default$
|
|
10943
|
-
const datePickerPropKeys = Object.keys(stdin_default$
|
|
10944
|
-
const datetimePickerProps = extend$1({}, stdin_default$
|
|
10942
|
+
const [name$P, bem$Q] = createNamespace("datetime-picker");
|
|
10943
|
+
const timePickerPropKeys = Object.keys(stdin_default$Y.props);
|
|
10944
|
+
const datePickerPropKeys = Object.keys(stdin_default$X.props);
|
|
10945
|
+
const datetimePickerProps = extend$1({}, stdin_default$Y.props, stdin_default$X.props, {
|
|
10945
10946
|
modelValue: [String, Date],
|
|
10946
10947
|
showTimeRange: Boolean,
|
|
10947
10948
|
startTimeFromCurrent: {
|
|
@@ -10959,8 +10960,8 @@
|
|
|
10959
10960
|
default: "结束时间"
|
|
10960
10961
|
}
|
|
10961
10962
|
});
|
|
10962
|
-
var stdin_default$
|
|
10963
|
-
name: name$
|
|
10963
|
+
var stdin_default$W = vue.defineComponent({
|
|
10964
|
+
name: name$P,
|
|
10964
10965
|
props: datetimePickerProps,
|
|
10965
10966
|
emits: ["update:startTime", "update:endTime", "time-range-change"],
|
|
10966
10967
|
setup(props2, {
|
|
@@ -11029,7 +11030,7 @@
|
|
|
11029
11030
|
});
|
|
11030
11031
|
return () => {
|
|
11031
11032
|
const isTimePicker = props2.type === "time";
|
|
11032
|
-
const Component = isTimePicker ? stdin_default$
|
|
11033
|
+
const Component = isTimePicker ? stdin_default$Y : stdin_default$X;
|
|
11033
11034
|
const inheritProps = pick(props2, isTimePicker ? timePickerPropKeys : datePickerPropKeys);
|
|
11034
11035
|
const showTimeRange = props2.showTimeRange && props2.type === "datetime";
|
|
11035
11036
|
const timeRangeSlots = showTimeRange ? {
|
|
@@ -11042,7 +11043,7 @@
|
|
|
11042
11043
|
"columns-top": () => {
|
|
11043
11044
|
var _a;
|
|
11044
11045
|
return [vue.createVNode("div", {
|
|
11045
|
-
"class": bem$
|
|
11046
|
+
"class": bem$Q("time-range")
|
|
11046
11047
|
}, [vue.createVNode(FilterTag, {
|
|
11047
11048
|
"selected": activeTimeRange.value === "start",
|
|
11048
11049
|
"onClick": () => onTimeRangeClick("start")
|
|
@@ -11058,14 +11059,14 @@
|
|
|
11058
11059
|
"columns-bottom": () => {
|
|
11059
11060
|
var _a;
|
|
11060
11061
|
return [vue.createVNode("div", {
|
|
11061
|
-
"class": bem$
|
|
11062
|
+
"class": bem$Q("time-range-bottom")
|
|
11062
11063
|
}, null), (_a = slots["columns-bottom"]) == null ? void 0 : _a.call(slots)];
|
|
11063
11064
|
}
|
|
11064
11065
|
} : slots;
|
|
11065
11066
|
if (showTimeRange) {
|
|
11066
|
-
return vue.createVNode(stdin_default$
|
|
11067
|
+
return vue.createVNode(stdin_default$X, vue.mergeProps({
|
|
11067
11068
|
"ref": root,
|
|
11068
|
-
"class": bem$
|
|
11069
|
+
"class": bem$Q()
|
|
11069
11070
|
}, pick(props2, datePickerPropKeys), attrs, {
|
|
11070
11071
|
"modelValue": rangeModelValue.value,
|
|
11071
11072
|
"minDate": rangeMinDate.value,
|
|
@@ -11076,13 +11077,13 @@
|
|
|
11076
11077
|
}
|
|
11077
11078
|
return vue.createVNode(Component, vue.mergeProps({
|
|
11078
11079
|
"ref": root,
|
|
11079
|
-
"class": bem$
|
|
11080
|
+
"class": bem$Q()
|
|
11080
11081
|
}, inheritProps, attrs), timeRangeSlots);
|
|
11081
11082
|
};
|
|
11082
11083
|
}
|
|
11083
11084
|
});
|
|
11084
|
-
const DatetimePicker = withInstall(stdin_default$
|
|
11085
|
-
const [name$
|
|
11085
|
+
const DatetimePicker = withInstall(stdin_default$W);
|
|
11086
|
+
const [name$O, bem$P, t$7] = createNamespace("dialog");
|
|
11086
11087
|
const dialogProps = extend$1({}, popupSharedProps, {
|
|
11087
11088
|
title: String,
|
|
11088
11089
|
theme: String,
|
|
@@ -11113,8 +11114,8 @@
|
|
|
11113
11114
|
closeOnClickOverlay: Boolean
|
|
11114
11115
|
});
|
|
11115
11116
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
|
11116
|
-
var stdin_default$
|
|
11117
|
-
name: name$
|
|
11117
|
+
var stdin_default$V = vue.defineComponent({
|
|
11118
|
+
name: name$O,
|
|
11118
11119
|
props: dialogProps,
|
|
11119
11120
|
emits: ["confirm", "cancel", "third", "keydown", "input", "update:show", "update:inputValue"],
|
|
11120
11121
|
setup(props2, {
|
|
@@ -11173,7 +11174,7 @@
|
|
|
11173
11174
|
const title = slots.title ? slots.title() : props2.title;
|
|
11174
11175
|
if (title) {
|
|
11175
11176
|
return vue.createVNode("div", {
|
|
11176
|
-
"class": bem$
|
|
11177
|
+
"class": bem$P("header", {
|
|
11177
11178
|
isolated: !props2.message && !props2.showInput && !slots.default
|
|
11178
11179
|
})
|
|
11179
11180
|
}, [title]);
|
|
@@ -11185,7 +11186,7 @@
|
|
|
11185
11186
|
allowHtml,
|
|
11186
11187
|
messageAlign
|
|
11187
11188
|
} = props2;
|
|
11188
|
-
const classNames = bem$
|
|
11189
|
+
const classNames = bem$P("message", {
|
|
11189
11190
|
"has-title": hasTitle,
|
|
11190
11191
|
[messageAlign]: messageAlign
|
|
11191
11192
|
});
|
|
@@ -11211,7 +11212,7 @@
|
|
|
11211
11212
|
return vue.createVNode(Field, {
|
|
11212
11213
|
"size": "normal",
|
|
11213
11214
|
"border": false,
|
|
11214
|
-
"class": bem$
|
|
11215
|
+
"class": bem$P("input"),
|
|
11215
11216
|
"modelValue": props2.inputValue,
|
|
11216
11217
|
"placeholder": props2.inputPlaceholder,
|
|
11217
11218
|
"autofocus": props2.inputAutofocus,
|
|
@@ -11229,7 +11230,7 @@
|
|
|
11229
11230
|
const hasTitle = !!(title || slots.title);
|
|
11230
11231
|
return vue.createVNode("div", {
|
|
11231
11232
|
"key": allowHtml ? 1 : 0,
|
|
11232
|
-
"class": bem$
|
|
11233
|
+
"class": bem$P("content", {
|
|
11233
11234
|
isolated: !hasTitle,
|
|
11234
11235
|
"with-input": showInput
|
|
11235
11236
|
})
|
|
@@ -11237,13 +11238,13 @@
|
|
|
11237
11238
|
}
|
|
11238
11239
|
};
|
|
11239
11240
|
const renderButtons = () => vue.createVNode("div", {
|
|
11240
|
-
"class": [BORDER_TOP, bem$
|
|
11241
|
+
"class": [BORDER_TOP, bem$P("footer", {
|
|
11241
11242
|
vertical: props2.showThirdButton
|
|
11242
11243
|
})]
|
|
11243
11244
|
}, [props2.showCancelButton && vue.createVNode(Button, {
|
|
11244
11245
|
"size": "large",
|
|
11245
11246
|
"text": props2.cancelButtonText || t$7("cancel"),
|
|
11246
|
-
"class": bem$
|
|
11247
|
+
"class": bem$P("cancel"),
|
|
11247
11248
|
"style": {
|
|
11248
11249
|
color: props2.cancelButtonColor
|
|
11249
11250
|
},
|
|
@@ -11253,7 +11254,7 @@
|
|
|
11253
11254
|
}, null), props2.showConfirmButton && vue.createVNode(Button, {
|
|
11254
11255
|
"size": "large",
|
|
11255
11256
|
"text": props2.confirmButtonText || t$7("confirm"),
|
|
11256
|
-
"class": [bem$
|
|
11257
|
+
"class": [bem$P("confirm"), {
|
|
11257
11258
|
[BORDER_LEFT]: props2.showCancelButton && !props2.showThirdButton
|
|
11258
11259
|
}],
|
|
11259
11260
|
"style": {
|
|
@@ -11265,7 +11266,7 @@
|
|
|
11265
11266
|
}, null), props2.showThirdButton && vue.createVNode(Button, {
|
|
11266
11267
|
"size": "large",
|
|
11267
11268
|
"text": props2.thirdButtonText,
|
|
11268
|
-
"class": bem$
|
|
11269
|
+
"class": bem$P("third"),
|
|
11269
11270
|
"style": {
|
|
11270
11271
|
color: props2.thirdButtonColor
|
|
11271
11272
|
},
|
|
@@ -11274,12 +11275,12 @@
|
|
|
11274
11275
|
"onClick": onThird
|
|
11275
11276
|
}, null)]);
|
|
11276
11277
|
const renderRoundButtons = () => vue.createVNode(ActionBar, {
|
|
11277
|
-
"class": bem$
|
|
11278
|
+
"class": bem$P("footer")
|
|
11278
11279
|
}, {
|
|
11279
11280
|
default: () => [props2.showCancelButton && vue.createVNode(ActionBarButton, {
|
|
11280
11281
|
"type": "warning",
|
|
11281
11282
|
"text": props2.cancelButtonText || t$7("cancel"),
|
|
11282
|
-
"class": bem$
|
|
11283
|
+
"class": bem$P("cancel"),
|
|
11283
11284
|
"color": props2.cancelButtonColor,
|
|
11284
11285
|
"loading": loading.cancel,
|
|
11285
11286
|
"disabled": props2.cancelButtonDisabled,
|
|
@@ -11287,7 +11288,7 @@
|
|
|
11287
11288
|
}, null), props2.showConfirmButton && vue.createVNode(ActionBarButton, {
|
|
11288
11289
|
"type": "primary",
|
|
11289
11290
|
"text": props2.confirmButtonText || t$7("confirm"),
|
|
11290
|
-
"class": bem$
|
|
11291
|
+
"class": bem$P("confirm"),
|
|
11291
11292
|
"color": props2.confirmButtonColor,
|
|
11292
11293
|
"loading": loading.confirm,
|
|
11293
11294
|
"disabled": props2.confirmButtonDisabled,
|
|
@@ -11311,7 +11312,7 @@
|
|
|
11311
11312
|
return vue.createVNode(Popup, vue.mergeProps({
|
|
11312
11313
|
"ref": root,
|
|
11313
11314
|
"role": "dialog",
|
|
11314
|
-
"class": [bem$
|
|
11315
|
+
"class": [bem$P([theme]), className],
|
|
11315
11316
|
"style": {
|
|
11316
11317
|
width: addUnit(width2)
|
|
11317
11318
|
},
|
|
@@ -11333,7 +11334,7 @@
|
|
|
11333
11334
|
state,
|
|
11334
11335
|
toggle
|
|
11335
11336
|
} = usePopupState();
|
|
11336
|
-
return () => vue.createVNode(stdin_default$
|
|
11337
|
+
return () => vue.createVNode(stdin_default$V, vue.mergeProps(state, {
|
|
11337
11338
|
"onUpdate:show": toggle
|
|
11338
11339
|
}), null);
|
|
11339
11340
|
}
|
|
@@ -11400,19 +11401,19 @@
|
|
|
11400
11401
|
Dialog.resetDefaultOptions = () => {
|
|
11401
11402
|
Dialog.currentOptions = extend$1({}, Dialog.defaultOptions);
|
|
11402
11403
|
};
|
|
11403
|
-
Dialog.Component = withInstall(stdin_default$
|
|
11404
|
+
Dialog.Component = withInstall(stdin_default$V);
|
|
11404
11405
|
Dialog.install = (app) => {
|
|
11405
11406
|
app.use(Dialog.Component);
|
|
11406
11407
|
app.config.globalProperties.$dialog = Dialog;
|
|
11407
11408
|
};
|
|
11408
|
-
const [name$
|
|
11409
|
+
const [name$N, bem$O] = createNamespace("divider");
|
|
11409
11410
|
const dividerProps = {
|
|
11410
11411
|
dashed: Boolean,
|
|
11411
11412
|
hairline: truthProp,
|
|
11412
11413
|
contentPosition: makeStringProp("center")
|
|
11413
11414
|
};
|
|
11414
|
-
var stdin_default$
|
|
11415
|
-
name: name$
|
|
11415
|
+
var stdin_default$U = vue.defineComponent({
|
|
11416
|
+
name: name$N,
|
|
11416
11417
|
props: dividerProps,
|
|
11417
11418
|
setup(props2, {
|
|
11418
11419
|
slots
|
|
@@ -11421,7 +11422,7 @@
|
|
|
11421
11422
|
var _a;
|
|
11422
11423
|
return vue.createVNode("div", {
|
|
11423
11424
|
"role": "separator",
|
|
11424
|
-
"class": bem$
|
|
11425
|
+
"class": bem$O({
|
|
11425
11426
|
dashed: props2.dashed,
|
|
11426
11427
|
hairline: props2.hairline,
|
|
11427
11428
|
[`content-${props2.contentPosition}`]: !!slots.default
|
|
@@ -11430,8 +11431,8 @@
|
|
|
11430
11431
|
};
|
|
11431
11432
|
}
|
|
11432
11433
|
});
|
|
11433
|
-
const Divider = withInstall(stdin_default$
|
|
11434
|
-
const [name$
|
|
11434
|
+
const Divider = withInstall(stdin_default$U);
|
|
11435
|
+
const [name$M, bem$N] = createNamespace("dropdown-menu");
|
|
11435
11436
|
const dropdownMenuProps = {
|
|
11436
11437
|
overlay: truthProp,
|
|
11437
11438
|
zIndex: numericProp,
|
|
@@ -11443,9 +11444,9 @@
|
|
|
11443
11444
|
closeOnClickOutside: truthProp,
|
|
11444
11445
|
closeOnClickOverlay: truthProp
|
|
11445
11446
|
};
|
|
11446
|
-
const DROPDOWN_KEY = Symbol(name$
|
|
11447
|
-
var stdin_default$
|
|
11448
|
-
name: name$
|
|
11447
|
+
const DROPDOWN_KEY = Symbol(name$M);
|
|
11448
|
+
var stdin_default$T = vue.defineComponent({
|
|
11449
|
+
name: name$M,
|
|
11449
11450
|
props: dropdownMenuProps,
|
|
11450
11451
|
setup(props2, {
|
|
11451
11452
|
slots
|
|
@@ -11517,7 +11518,7 @@
|
|
|
11517
11518
|
"id": `${id}-${index}`,
|
|
11518
11519
|
"role": "button",
|
|
11519
11520
|
"tabindex": disabled ? void 0 : 0,
|
|
11520
|
-
"class": [bem$
|
|
11521
|
+
"class": [bem$N("item", {
|
|
11521
11522
|
disabled
|
|
11522
11523
|
}), {
|
|
11523
11524
|
[HAPTICS_FEEDBACK]: !disabled
|
|
@@ -11528,7 +11529,7 @@
|
|
|
11528
11529
|
}
|
|
11529
11530
|
}
|
|
11530
11531
|
}, [vue.createVNode("span", {
|
|
11531
|
-
"class": [bem$
|
|
11532
|
+
"class": [bem$N("title", {
|
|
11532
11533
|
down: showPopup === (props2.direction === "down"),
|
|
11533
11534
|
active: showPopup
|
|
11534
11535
|
}), titleClass],
|
|
@@ -11553,18 +11554,18 @@
|
|
|
11553
11554
|
var _a;
|
|
11554
11555
|
return vue.createVNode("div", {
|
|
11555
11556
|
"ref": root,
|
|
11556
|
-
"class": bem$
|
|
11557
|
+
"class": bem$N()
|
|
11557
11558
|
}, [props2.showBar && vue.createVNode("div", {
|
|
11558
11559
|
"ref": barRef,
|
|
11559
11560
|
"style": barStyle.value,
|
|
11560
|
-
"class": bem$
|
|
11561
|
+
"class": bem$N("bar", {
|
|
11561
11562
|
opened: opened.value
|
|
11562
11563
|
})
|
|
11563
11564
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
11564
11565
|
};
|
|
11565
11566
|
}
|
|
11566
11567
|
});
|
|
11567
|
-
const [name$
|
|
11568
|
+
const [name$L, bem$M] = createNamespace("dropdown-item");
|
|
11568
11569
|
const dropdownItemProps = {
|
|
11569
11570
|
title: String,
|
|
11570
11571
|
options: makeArrayProp(),
|
|
@@ -11574,8 +11575,8 @@
|
|
|
11574
11575
|
modelValue: unknownProp,
|
|
11575
11576
|
titleClass: unknownProp
|
|
11576
11577
|
};
|
|
11577
|
-
var stdin_default$
|
|
11578
|
-
name: name$
|
|
11578
|
+
var stdin_default$S = vue.defineComponent({
|
|
11579
|
+
name: name$L,
|
|
11579
11580
|
props: dropdownItemProps,
|
|
11580
11581
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
|
11581
11582
|
setup(props2, {
|
|
@@ -11642,7 +11643,7 @@
|
|
|
11642
11643
|
const renderIcon = () => {
|
|
11643
11644
|
if (active) {
|
|
11644
11645
|
return vue.createVNode(Icon, {
|
|
11645
|
-
"class": bem$
|
|
11646
|
+
"class": bem$M("icon"),
|
|
11646
11647
|
"color": activeColor,
|
|
11647
11648
|
"name": "success"
|
|
11648
11649
|
}, null);
|
|
@@ -11653,7 +11654,7 @@
|
|
|
11653
11654
|
"key": option.value,
|
|
11654
11655
|
"icon": option.icon,
|
|
11655
11656
|
"title": option.text,
|
|
11656
|
-
"class": bem$
|
|
11657
|
+
"class": bem$M("option", {
|
|
11657
11658
|
active
|
|
11658
11659
|
}),
|
|
11659
11660
|
"style": {
|
|
@@ -11685,13 +11686,13 @@
|
|
|
11685
11686
|
}
|
|
11686
11687
|
return vue.withDirectives(vue.createVNode("div", {
|
|
11687
11688
|
"style": style,
|
|
11688
|
-
"class": bem$
|
|
11689
|
+
"class": bem$M([direction]),
|
|
11689
11690
|
"onClick": onClickWrapper
|
|
11690
11691
|
}, [vue.createVNode(Popup, {
|
|
11691
11692
|
"show": state.showPopup,
|
|
11692
11693
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
|
11693
11694
|
"role": "menu",
|
|
11694
|
-
"class": bem$
|
|
11695
|
+
"class": bem$M("content"),
|
|
11695
11696
|
"overlay": overlay,
|
|
11696
11697
|
"position": direction === "down" ? "top" : "bottom",
|
|
11697
11698
|
"duration": state.transition ? duration : 0,
|
|
@@ -11729,15 +11730,15 @@
|
|
|
11729
11730
|
};
|
|
11730
11731
|
}
|
|
11731
11732
|
});
|
|
11732
|
-
const DropdownItem = withInstall(stdin_default$
|
|
11733
|
-
const DropdownMenu = withInstall(stdin_default$
|
|
11734
|
-
const [name$
|
|
11735
|
-
const SIDEBAR_KEY = Symbol(name$
|
|
11733
|
+
const DropdownItem = withInstall(stdin_default$S);
|
|
11734
|
+
const DropdownMenu = withInstall(stdin_default$T);
|
|
11735
|
+
const [name$K, bem$L] = createNamespace("sidebar");
|
|
11736
|
+
const SIDEBAR_KEY = Symbol(name$K);
|
|
11736
11737
|
const sidebarProps = {
|
|
11737
11738
|
modelValue: makeNumericProp(0)
|
|
11738
11739
|
};
|
|
11739
|
-
var stdin_default$
|
|
11740
|
-
name: name$
|
|
11740
|
+
var stdin_default$R = vue.defineComponent({
|
|
11741
|
+
name: name$K,
|
|
11741
11742
|
props: sidebarProps,
|
|
11742
11743
|
emits: ["change", "update:modelValue"],
|
|
11743
11744
|
setup(props2, {
|
|
@@ -11762,13 +11763,13 @@
|
|
|
11762
11763
|
var _a;
|
|
11763
11764
|
return vue.createVNode("div", {
|
|
11764
11765
|
"role": "tablist",
|
|
11765
|
-
"class": bem$
|
|
11766
|
+
"class": bem$L()
|
|
11766
11767
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
11767
11768
|
};
|
|
11768
11769
|
}
|
|
11769
11770
|
});
|
|
11770
|
-
const Sidebar = withInstall(stdin_default$
|
|
11771
|
-
const [name$
|
|
11771
|
+
const Sidebar = withInstall(stdin_default$R);
|
|
11772
|
+
const [name$J, bem$K] = createNamespace("sidebar-item");
|
|
11772
11773
|
const sidebarItemProps = extend$1({}, routeProps, {
|
|
11773
11774
|
dot: Boolean,
|
|
11774
11775
|
title: String,
|
|
@@ -11776,8 +11777,8 @@
|
|
|
11776
11777
|
disabled: Boolean,
|
|
11777
11778
|
badgeProps: Object
|
|
11778
11779
|
});
|
|
11779
|
-
var stdin_default$
|
|
11780
|
-
name: name$
|
|
11780
|
+
var stdin_default$Q = vue.defineComponent({
|
|
11781
|
+
name: name$J,
|
|
11781
11782
|
props: sidebarItemProps,
|
|
11782
11783
|
emits: ["click"],
|
|
11783
11784
|
setup(props2, {
|
|
@@ -11810,7 +11811,7 @@
|
|
|
11810
11811
|
const selected = index.value === parent.getActive();
|
|
11811
11812
|
return vue.createVNode("div", {
|
|
11812
11813
|
"role": "tab",
|
|
11813
|
-
"class": bem$
|
|
11814
|
+
"class": bem$K({
|
|
11814
11815
|
select: selected,
|
|
11815
11816
|
disabled
|
|
11816
11817
|
}),
|
|
@@ -11819,7 +11820,7 @@
|
|
|
11819
11820
|
"onClick": onClick
|
|
11820
11821
|
}, [vue.createVNode(Badge, vue.mergeProps({
|
|
11821
11822
|
"dot": dot,
|
|
11822
|
-
"class": bem$
|
|
11823
|
+
"class": bem$K("text"),
|
|
11823
11824
|
"content": badge
|
|
11824
11825
|
}, props2.badgeProps), {
|
|
11825
11826
|
default: () => [slots.title ? slots.title() : title]
|
|
@@ -11827,8 +11828,8 @@
|
|
|
11827
11828
|
};
|
|
11828
11829
|
}
|
|
11829
11830
|
});
|
|
11830
|
-
const SidebarItem = withInstall(stdin_default$
|
|
11831
|
-
const [name$
|
|
11831
|
+
const SidebarItem = withInstall(stdin_default$Q);
|
|
11832
|
+
const [name$I, bem$J] = createNamespace("floor-select");
|
|
11832
11833
|
const defaultBuildings = [{
|
|
11833
11834
|
id: "building-a",
|
|
11834
11835
|
text: "建筑A座",
|
|
@@ -11943,8 +11944,8 @@
|
|
|
11943
11944
|
},
|
|
11944
11945
|
more: Boolean
|
|
11945
11946
|
};
|
|
11946
|
-
var stdin_default$
|
|
11947
|
-
name: name$
|
|
11947
|
+
var stdin_default$P = vue.defineComponent({
|
|
11948
|
+
name: name$I,
|
|
11948
11949
|
props: floorSelectProps,
|
|
11949
11950
|
emits: ["change", "update:activeBuilding", "update:modelValue"],
|
|
11950
11951
|
setup(props2, {
|
|
@@ -12002,7 +12003,7 @@
|
|
|
12002
12003
|
});
|
|
12003
12004
|
return vue.createVNode("div", {
|
|
12004
12005
|
"key": item.id,
|
|
12005
|
-
"class": bem$
|
|
12006
|
+
"class": bem$J("cell")
|
|
12006
12007
|
}, [cell || vue.createVNode(Cell, {
|
|
12007
12008
|
"title": item.text,
|
|
12008
12009
|
"border": index < spaces.value.length - 1,
|
|
@@ -12014,14 +12015,14 @@
|
|
|
12014
12015
|
}, null)]);
|
|
12015
12016
|
};
|
|
12016
12017
|
return () => vue.createVNode("div", {
|
|
12017
|
-
"class": bem$
|
|
12018
|
+
"class": bem$J()
|
|
12018
12019
|
}, [vue.createVNode(Tabs, {
|
|
12019
12020
|
"active": activeBuilding.value,
|
|
12020
12021
|
"type": "filter",
|
|
12021
12022
|
"shrink": true,
|
|
12022
12023
|
"more": props2.more,
|
|
12023
12024
|
"showMore": showMore.value,
|
|
12024
|
-
"class": bem$
|
|
12025
|
+
"class": bem$J("tabs"),
|
|
12025
12026
|
"onUpdate:active": selectBuilding,
|
|
12026
12027
|
"onUpdate:showMore": (value) => {
|
|
12027
12028
|
showMore.value = value;
|
|
@@ -12033,10 +12034,10 @@
|
|
|
12033
12034
|
"title": building.text
|
|
12034
12035
|
}, null))]
|
|
12035
12036
|
}), vue.createVNode("div", {
|
|
12036
|
-
"class": bem$
|
|
12037
|
+
"class": bem$J("content")
|
|
12037
12038
|
}, [vue.createVNode(Sidebar, {
|
|
12038
12039
|
"modelValue": activeFloor.value,
|
|
12039
|
-
"class": bem$
|
|
12040
|
+
"class": bem$J("sidebar"),
|
|
12040
12041
|
"onUpdate:modelValue": (value) => {
|
|
12041
12042
|
activeFloor.value = +value;
|
|
12042
12043
|
}
|
|
@@ -12051,19 +12052,19 @@
|
|
|
12051
12052
|
"disabled": floor.disabled
|
|
12052
12053
|
}, null))]
|
|
12053
12054
|
}), vue.createVNode("div", {
|
|
12054
|
-
"class": bem$
|
|
12055
|
+
"class": bem$J("cells")
|
|
12055
12056
|
}, [spaces.value.map(renderCell)])])]);
|
|
12056
12057
|
}
|
|
12057
12058
|
});
|
|
12058
|
-
const FloorSelect = withInstall(stdin_default$
|
|
12059
|
-
const [name$
|
|
12059
|
+
const FloorSelect = withInstall(stdin_default$P);
|
|
12060
|
+
const [name$H, bem$I] = createNamespace("form-panel");
|
|
12060
12061
|
const formPanelProps = {
|
|
12061
12062
|
show: Boolean,
|
|
12062
12063
|
title: String,
|
|
12063
12064
|
confirmText: makeStringProp("确定")
|
|
12064
12065
|
};
|
|
12065
|
-
var stdin_default$
|
|
12066
|
-
name: name$
|
|
12066
|
+
var stdin_default$O = vue.defineComponent({
|
|
12067
|
+
name: name$H,
|
|
12067
12068
|
props: formPanelProps,
|
|
12068
12069
|
emits: ["update:show", "confirm"],
|
|
12069
12070
|
setup(props2, {
|
|
@@ -12077,19 +12078,19 @@
|
|
|
12077
12078
|
};
|
|
12078
12079
|
return () => vue.createVNode(ActionSheet, {
|
|
12079
12080
|
"show": props2.show,
|
|
12080
|
-
"class": bem$
|
|
12081
|
+
"class": bem$I(),
|
|
12081
12082
|
"onUpdate:show": (show) => emit("update:show", show)
|
|
12082
12083
|
}, {
|
|
12083
12084
|
default: () => {
|
|
12084
12085
|
var _a;
|
|
12085
12086
|
return [vue.createVNode("div", {
|
|
12086
|
-
"class": bem$
|
|
12087
|
+
"class": bem$I("content")
|
|
12087
12088
|
}, [vue.createVNode("div", {
|
|
12088
|
-
"class": bem$
|
|
12089
|
+
"class": bem$I("nav-wrapper")
|
|
12089
12090
|
}, [vue.createVNode(NavBar, {
|
|
12090
12091
|
"title": props2.title,
|
|
12091
12092
|
"border": false,
|
|
12092
|
-
"class": bem$
|
|
12093
|
+
"class": bem$I("nav")
|
|
12093
12094
|
}, {
|
|
12094
12095
|
left: () => vue.createVNode(Icon, {
|
|
12095
12096
|
"name": "cross",
|
|
@@ -12097,9 +12098,9 @@
|
|
|
12097
12098
|
"onClick": close
|
|
12098
12099
|
}, null)
|
|
12099
12100
|
})]), vue.createVNode("div", {
|
|
12100
|
-
"class": bem$
|
|
12101
|
+
"class": bem$I("body")
|
|
12101
12102
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), vue.createVNode("div", {
|
|
12102
|
-
"class": bem$
|
|
12103
|
+
"class": bem$I("footer")
|
|
12103
12104
|
}, [vue.createVNode(Button, {
|
|
12104
12105
|
"block": true,
|
|
12105
12106
|
"type": "primary",
|
|
@@ -12111,8 +12112,8 @@
|
|
|
12111
12112
|
});
|
|
12112
12113
|
}
|
|
12113
12114
|
});
|
|
12114
|
-
const FormPanel = withInstall(stdin_default$
|
|
12115
|
-
const [name$
|
|
12115
|
+
const FormPanel = withInstall(stdin_default$O);
|
|
12116
|
+
const [name$G, bem$H] = createNamespace("friendly-tip");
|
|
12116
12117
|
const friendlyTipProps = {
|
|
12117
12118
|
show: truthProp,
|
|
12118
12119
|
message: String,
|
|
@@ -12129,8 +12130,8 @@
|
|
|
12129
12130
|
default: "body"
|
|
12130
12131
|
}
|
|
12131
12132
|
};
|
|
12132
|
-
var stdin_default$
|
|
12133
|
-
name: name$
|
|
12133
|
+
var stdin_default$N = vue.defineComponent({
|
|
12134
|
+
name: name$G,
|
|
12134
12135
|
props: friendlyTipProps,
|
|
12135
12136
|
emits: ["update:show"],
|
|
12136
12137
|
setup(props2, {
|
|
@@ -12141,7 +12142,7 @@
|
|
|
12141
12142
|
return () => vue.createVNode(Popover, {
|
|
12142
12143
|
"show": props2.show,
|
|
12143
12144
|
"trigger": "manual",
|
|
12144
|
-
"class": bem$
|
|
12145
|
+
"class": bem$H("popover"),
|
|
12145
12146
|
"placement": props2.placement,
|
|
12146
12147
|
"showArrow": props2.showArrow,
|
|
12147
12148
|
"iconPrefix": props2.iconPrefix,
|
|
@@ -12154,19 +12155,19 @@
|
|
|
12154
12155
|
return (_a = slots.reference) == null ? void 0 : _a.call(slots);
|
|
12155
12156
|
},
|
|
12156
12157
|
default: () => vue.createVNode("div", {
|
|
12157
|
-
"class": bem$
|
|
12158
|
+
"class": bem$H()
|
|
12158
12159
|
}, [props2.icon && vue.createVNode(Icon, {
|
|
12159
12160
|
"name": props2.icon,
|
|
12160
|
-
"class": bem$
|
|
12161
|
+
"class": bem$H("icon"),
|
|
12161
12162
|
"classPrefix": props2.iconPrefix
|
|
12162
12163
|
}, null), vue.createVNode("span", {
|
|
12163
|
-
"class": bem$
|
|
12164
|
+
"class": bem$H("message")
|
|
12164
12165
|
}, [slots.default ? slots.default() : props2.message])])
|
|
12165
12166
|
});
|
|
12166
12167
|
}
|
|
12167
12168
|
});
|
|
12168
|
-
const FriendlyTip = withInstall(stdin_default$
|
|
12169
|
-
const [name$
|
|
12169
|
+
const FriendlyTip = withInstall(stdin_default$N);
|
|
12170
|
+
const [name$F, bem$G] = createNamespace("grid");
|
|
12170
12171
|
const gridProps = {
|
|
12171
12172
|
square: Boolean,
|
|
12172
12173
|
center: truthProp,
|
|
@@ -12178,9 +12179,9 @@
|
|
|
12178
12179
|
clickable: Boolean,
|
|
12179
12180
|
columnNum: makeNumericProp(4)
|
|
12180
12181
|
};
|
|
12181
|
-
const GRID_KEY = Symbol(name$
|
|
12182
|
-
var stdin_default$
|
|
12183
|
-
name: name$
|
|
12182
|
+
const GRID_KEY = Symbol(name$F);
|
|
12183
|
+
var stdin_default$M = vue.defineComponent({
|
|
12184
|
+
name: name$F,
|
|
12184
12185
|
props: gridProps,
|
|
12185
12186
|
setup(props2, {
|
|
12186
12187
|
slots
|
|
@@ -12197,15 +12198,15 @@
|
|
|
12197
12198
|
"style": {
|
|
12198
12199
|
paddingLeft: addUnit(props2.gutter)
|
|
12199
12200
|
},
|
|
12200
|
-
"class": [bem$
|
|
12201
|
+
"class": [bem$G(), {
|
|
12201
12202
|
[BORDER_TOP]: props2.border && !props2.gutter
|
|
12202
12203
|
}]
|
|
12203
12204
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
12204
12205
|
};
|
|
12205
12206
|
}
|
|
12206
12207
|
});
|
|
12207
|
-
const Grid = withInstall(stdin_default$
|
|
12208
|
-
const [name$
|
|
12208
|
+
const Grid = withInstall(stdin_default$M);
|
|
12209
|
+
const [name$E, bem$F] = createNamespace("grid-item");
|
|
12209
12210
|
const gridItemProps = extend$1({}, routeProps, {
|
|
12210
12211
|
dot: Boolean,
|
|
12211
12212
|
text: String,
|
|
@@ -12215,8 +12216,8 @@
|
|
|
12215
12216
|
iconPrefix: String,
|
|
12216
12217
|
badgeProps: Object
|
|
12217
12218
|
});
|
|
12218
|
-
var stdin_default$
|
|
12219
|
-
name: name$
|
|
12219
|
+
var stdin_default$L = vue.defineComponent({
|
|
12220
|
+
name: name$E,
|
|
12220
12221
|
props: gridItemProps,
|
|
12221
12222
|
setup(props2, {
|
|
12222
12223
|
slots
|
|
@@ -12279,7 +12280,7 @@
|
|
|
12279
12280
|
"name": props2.icon,
|
|
12280
12281
|
"size": parent.props.iconSize,
|
|
12281
12282
|
"badge": props2.badge,
|
|
12282
|
-
"class": bem$
|
|
12283
|
+
"class": bem$F("icon"),
|
|
12283
12284
|
"color": props2.iconColor,
|
|
12284
12285
|
"badgeProps": props2.badgeProps,
|
|
12285
12286
|
"classPrefix": props2.iconPrefix
|
|
@@ -12292,7 +12293,7 @@
|
|
|
12292
12293
|
}
|
|
12293
12294
|
if (props2.text) {
|
|
12294
12295
|
return vue.createVNode("span", {
|
|
12295
|
-
"class": bem$
|
|
12296
|
+
"class": bem$F("text")
|
|
12296
12297
|
}, [props2.text]);
|
|
12297
12298
|
}
|
|
12298
12299
|
};
|
|
@@ -12312,7 +12313,7 @@
|
|
|
12312
12313
|
direction,
|
|
12313
12314
|
clickable
|
|
12314
12315
|
} = parent.props;
|
|
12315
|
-
const classes = [bem$
|
|
12316
|
+
const classes = [bem$F("content", [direction, {
|
|
12316
12317
|
center,
|
|
12317
12318
|
square,
|
|
12318
12319
|
reverse,
|
|
@@ -12322,7 +12323,7 @@
|
|
|
12322
12323
|
[BORDER]: border
|
|
12323
12324
|
}];
|
|
12324
12325
|
return vue.createVNode("div", {
|
|
12325
|
-
"class": [bem$
|
|
12326
|
+
"class": [bem$F({
|
|
12326
12327
|
square
|
|
12327
12328
|
})],
|
|
12328
12329
|
"style": rootStyle.value
|
|
@@ -12336,10 +12337,10 @@
|
|
|
12336
12337
|
};
|
|
12337
12338
|
}
|
|
12338
12339
|
});
|
|
12339
|
-
const GridItem = withInstall(stdin_default$
|
|
12340
|
+
const GridItem = withInstall(stdin_default$L);
|
|
12340
12341
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
|
12341
|
-
const bem$
|
|
12342
|
-
var stdin_default$
|
|
12342
|
+
const bem$E = createNamespace("image-preview")[1];
|
|
12343
|
+
var stdin_default$K = vue.defineComponent({
|
|
12343
12344
|
props: {
|
|
12344
12345
|
src: String,
|
|
12345
12346
|
show: Boolean,
|
|
@@ -12565,19 +12566,19 @@
|
|
|
12565
12566
|
};
|
|
12566
12567
|
return vue.createVNode(SwipeItem, {
|
|
12567
12568
|
"ref": swipeItem,
|
|
12568
|
-
"class": bem$
|
|
12569
|
+
"class": bem$E("swipe-item"),
|
|
12569
12570
|
"onTouchstartPassive": onTouchStart,
|
|
12570
12571
|
"onTouchend": onTouchEnd,
|
|
12571
12572
|
"onTouchcancel": onTouchEnd
|
|
12572
12573
|
}, {
|
|
12573
12574
|
default: () => [slots.image ? vue.createVNode("div", {
|
|
12574
|
-
"class": bem$
|
|
12575
|
+
"class": bem$E("image-wrap")
|
|
12575
12576
|
}, [slots.image({
|
|
12576
12577
|
src: props2.src
|
|
12577
12578
|
})]) : vue.createVNode(Image$1, {
|
|
12578
12579
|
"src": props2.src,
|
|
12579
12580
|
"fit": "contain",
|
|
12580
|
-
"class": bem$
|
|
12581
|
+
"class": bem$E("image", {
|
|
12581
12582
|
vertical: vertical.value
|
|
12582
12583
|
}),
|
|
12583
12584
|
"style": imageStyle.value,
|
|
@@ -12587,7 +12588,7 @@
|
|
|
12587
12588
|
};
|
|
12588
12589
|
}
|
|
12589
12590
|
});
|
|
12590
|
-
const [name$
|
|
12591
|
+
const [name$D, bem$D] = createNamespace("image-preview");
|
|
12591
12592
|
const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
|
|
12592
12593
|
const imagePreviewProps = {
|
|
12593
12594
|
show: Boolean,
|
|
@@ -12610,8 +12611,8 @@
|
|
|
12610
12611
|
closeOnPopstate: truthProp,
|
|
12611
12612
|
closeIconPosition: makeStringProp("top-right")
|
|
12612
12613
|
};
|
|
12613
|
-
var stdin_default$
|
|
12614
|
-
name: name$
|
|
12614
|
+
var stdin_default$J = vue.defineComponent({
|
|
12615
|
+
name: name$D,
|
|
12615
12616
|
props: imagePreviewProps,
|
|
12616
12617
|
emits: ["scale", "close", "closed", "change", "update:show"],
|
|
12617
12618
|
setup(props2, {
|
|
@@ -12649,7 +12650,7 @@
|
|
|
12649
12650
|
const renderIndex = () => {
|
|
12650
12651
|
if (props2.showIndex) {
|
|
12651
12652
|
return vue.createVNode("div", {
|
|
12652
|
-
"class": bem$
|
|
12653
|
+
"class": bem$D("index")
|
|
12653
12654
|
}, [slots.index ? slots.index({
|
|
12654
12655
|
index: state.active
|
|
12655
12656
|
}) : `${state.active + 1} / ${props2.images.length}`]);
|
|
@@ -12658,7 +12659,7 @@
|
|
|
12658
12659
|
const renderCover = () => {
|
|
12659
12660
|
if (slots.cover) {
|
|
12660
12661
|
return vue.createVNode("div", {
|
|
12661
|
-
"class": bem$
|
|
12662
|
+
"class": bem$D("cover")
|
|
12662
12663
|
}, [slots.cover()]);
|
|
12663
12664
|
}
|
|
12664
12665
|
};
|
|
@@ -12666,14 +12667,14 @@
|
|
|
12666
12667
|
"ref": swipeRef,
|
|
12667
12668
|
"lazyRender": true,
|
|
12668
12669
|
"loop": props2.loop,
|
|
12669
|
-
"class": bem$
|
|
12670
|
+
"class": bem$D("swipe"),
|
|
12670
12671
|
"duration": props2.swipeDuration,
|
|
12671
12672
|
"initialSwipe": props2.startPosition,
|
|
12672
12673
|
"showIndicators": props2.showIndicators,
|
|
12673
12674
|
"indicatorColor": "white",
|
|
12674
12675
|
"onChange": setActive
|
|
12675
12676
|
}, {
|
|
12676
|
-
default: () => [props2.images.map((image) => vue.createVNode(stdin_default$
|
|
12677
|
+
default: () => [props2.images.map((image) => vue.createVNode(stdin_default$K, {
|
|
12677
12678
|
"src": image,
|
|
12678
12679
|
"show": props2.show,
|
|
12679
12680
|
"active": state.active,
|
|
@@ -12692,7 +12693,7 @@
|
|
|
12692
12693
|
return vue.createVNode(Icon, {
|
|
12693
12694
|
"role": "button",
|
|
12694
12695
|
"name": props2.closeIcon,
|
|
12695
|
-
"class": [bem$
|
|
12696
|
+
"class": [bem$D("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
|
|
12696
12697
|
"onClick": emitClose
|
|
12697
12698
|
}, null);
|
|
12698
12699
|
}
|
|
@@ -12729,8 +12730,8 @@
|
|
|
12729
12730
|
}
|
|
12730
12731
|
});
|
|
12731
12732
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
12732
|
-
"class": [bem$
|
|
12733
|
-
"overlayClass": [bem$
|
|
12733
|
+
"class": [bem$D(), props2.className],
|
|
12734
|
+
"overlayClass": [bem$D("overlay"), props2.overlayClass],
|
|
12734
12735
|
"onClosed": onClosed,
|
|
12735
12736
|
"onUpdate:show": updateShow
|
|
12736
12737
|
}, pick(props2, popupProps$1)), {
|
|
@@ -12774,7 +12775,7 @@
|
|
|
12774
12775
|
const onClosed = () => {
|
|
12775
12776
|
state.images = [];
|
|
12776
12777
|
};
|
|
12777
|
-
return () => vue.createVNode(stdin_default$
|
|
12778
|
+
return () => vue.createVNode(stdin_default$J, vue.mergeProps(state, {
|
|
12778
12779
|
"onClosed": onClosed,
|
|
12779
12780
|
"onUpdate:show": toggle
|
|
12780
12781
|
}), null);
|
|
@@ -12795,7 +12796,7 @@
|
|
|
12795
12796
|
instance$2.open(extend$1({}, defaultConfig$1, options));
|
|
12796
12797
|
return instance$2;
|
|
12797
12798
|
};
|
|
12798
|
-
ImagePreview.Component = withInstall(stdin_default$
|
|
12799
|
+
ImagePreview.Component = withInstall(stdin_default$J);
|
|
12799
12800
|
ImagePreview.install = (app) => {
|
|
12800
12801
|
app.use(ImagePreview.Component);
|
|
12801
12802
|
};
|
|
@@ -12804,7 +12805,7 @@
|
|
|
12804
12805
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
|
12805
12806
|
return indexList;
|
|
12806
12807
|
}
|
|
12807
|
-
const [name$
|
|
12808
|
+
const [name$C, bem$C] = createNamespace("index-bar");
|
|
12808
12809
|
const indexBarProps = {
|
|
12809
12810
|
sticky: truthProp,
|
|
12810
12811
|
zIndex: numericProp,
|
|
@@ -12816,9 +12817,9 @@
|
|
|
12816
12817
|
default: genAlphabet
|
|
12817
12818
|
}
|
|
12818
12819
|
};
|
|
12819
|
-
const INDEX_BAR_KEY = Symbol(name$
|
|
12820
|
-
var stdin_default$
|
|
12821
|
-
name: name$
|
|
12820
|
+
const INDEX_BAR_KEY = Symbol(name$C);
|
|
12821
|
+
var stdin_default$I = vue.defineComponent({
|
|
12822
|
+
name: name$C,
|
|
12822
12823
|
props: indexBarProps,
|
|
12823
12824
|
emits: ["select", "change"],
|
|
12824
12825
|
setup(props2, {
|
|
@@ -12930,7 +12931,7 @@
|
|
|
12930
12931
|
const renderIndexes = () => props2.indexList.map((index) => {
|
|
12931
12932
|
const active = index === activeAnchor.value;
|
|
12932
12933
|
return vue.createVNode("span", {
|
|
12933
|
-
"class": bem$
|
|
12934
|
+
"class": bem$C("index", {
|
|
12934
12935
|
active
|
|
12935
12936
|
}),
|
|
12936
12937
|
"style": active ? highlightStyle.value : void 0,
|
|
@@ -12991,7 +12992,7 @@
|
|
|
12991
12992
|
};
|
|
12992
12993
|
const renderSidebar = () => vue.createVNode("div", {
|
|
12993
12994
|
"ref": sidebar,
|
|
12994
|
-
"class": bem$
|
|
12995
|
+
"class": bem$C("sidebar"),
|
|
12995
12996
|
"style": sidebarStyle.value,
|
|
12996
12997
|
"onClick": onClickSidebar,
|
|
12997
12998
|
"onTouchstartPassive": touch.start
|
|
@@ -13007,7 +13008,7 @@
|
|
|
13007
13008
|
var _a;
|
|
13008
13009
|
return vue.createVNode("div", {
|
|
13009
13010
|
"ref": root,
|
|
13010
|
-
"class": bem$
|
|
13011
|
+
"class": bem$C()
|
|
13011
13012
|
}, [props2.teleport ? vue.createVNode(vue.Teleport, {
|
|
13012
13013
|
"to": props2.teleport
|
|
13013
13014
|
}, {
|
|
@@ -13016,12 +13017,12 @@
|
|
|
13016
13017
|
};
|
|
13017
13018
|
}
|
|
13018
13019
|
});
|
|
13019
|
-
const [name$
|
|
13020
|
+
const [name$B, bem$B] = createNamespace("index-anchor");
|
|
13020
13021
|
const indexAnchorProps = {
|
|
13021
13022
|
index: numericProp
|
|
13022
13023
|
};
|
|
13023
|
-
var stdin_default$
|
|
13024
|
-
name: name$
|
|
13024
|
+
var stdin_default$H = vue.defineComponent({
|
|
13025
|
+
name: name$B,
|
|
13025
13026
|
props: indexAnchorProps,
|
|
13026
13027
|
setup(props2, {
|
|
13027
13028
|
slots
|
|
@@ -13081,7 +13082,7 @@
|
|
|
13081
13082
|
}
|
|
13082
13083
|
}, [vue.createVNode("div", {
|
|
13083
13084
|
"style": anchorStyle.value,
|
|
13084
|
-
"class": [bem$
|
|
13085
|
+
"class": [bem$B({
|
|
13085
13086
|
sticky
|
|
13086
13087
|
}), {
|
|
13087
13088
|
[BORDER_BOTTOM]: sticky
|
|
@@ -13090,8 +13091,96 @@
|
|
|
13090
13091
|
};
|
|
13091
13092
|
}
|
|
13092
13093
|
});
|
|
13093
|
-
const IndexAnchor = withInstall(stdin_default$
|
|
13094
|
-
const IndexBar = withInstall(stdin_default$
|
|
13094
|
+
const IndexAnchor = withInstall(stdin_default$H);
|
|
13095
|
+
const IndexBar = withInstall(stdin_default$I);
|
|
13096
|
+
const [name$A, bem$A] = createNamespace("label");
|
|
13097
|
+
const labelProps = {
|
|
13098
|
+
label: makeStringProp(""),
|
|
13099
|
+
content: makeStringProp(""),
|
|
13100
|
+
type: makeStringProp("default"),
|
|
13101
|
+
vertical: Boolean,
|
|
13102
|
+
href: String,
|
|
13103
|
+
tags: {
|
|
13104
|
+
type: Array,
|
|
13105
|
+
default: () => []
|
|
13106
|
+
},
|
|
13107
|
+
media: {
|
|
13108
|
+
type: Array,
|
|
13109
|
+
default: () => []
|
|
13110
|
+
}
|
|
13111
|
+
};
|
|
13112
|
+
var stdin_default$G = vue.defineComponent({
|
|
13113
|
+
name: name$A,
|
|
13114
|
+
props: labelProps,
|
|
13115
|
+
emits: ["click", "click-media"],
|
|
13116
|
+
setup(props2, {
|
|
13117
|
+
slots,
|
|
13118
|
+
emit
|
|
13119
|
+
}) {
|
|
13120
|
+
const vertical = vue.computed(() => props2.vertical || props2.type === "media");
|
|
13121
|
+
const renderText = () => {
|
|
13122
|
+
var _a;
|
|
13123
|
+
const content = ((_a = slots.default) == null ? void 0 : _a.call(slots)) || props2.content;
|
|
13124
|
+
if (props2.type === "link") {
|
|
13125
|
+
return props2.href ? vue.createVNode("a", {
|
|
13126
|
+
"class": bem$A("link"),
|
|
13127
|
+
"href": props2.href,
|
|
13128
|
+
"onClick": (event) => emit("click", event)
|
|
13129
|
+
}, [content]) : vue.createVNode("button", {
|
|
13130
|
+
"class": bem$A("link"),
|
|
13131
|
+
"type": "button",
|
|
13132
|
+
"onClick": (event) => emit("click", event)
|
|
13133
|
+
}, [content]);
|
|
13134
|
+
}
|
|
13135
|
+
return vue.createVNode("span", {
|
|
13136
|
+
"class": bem$A("text")
|
|
13137
|
+
}, [content]);
|
|
13138
|
+
};
|
|
13139
|
+
const renderTags = () => vue.createVNode("div", {
|
|
13140
|
+
"class": bem$A("tags")
|
|
13141
|
+
}, [props2.tags.map((tag) => vue.createVNode(Tag, {
|
|
13142
|
+
"key": tag,
|
|
13143
|
+
"type": "gray"
|
|
13144
|
+
}, {
|
|
13145
|
+
default: () => [tag]
|
|
13146
|
+
}))]);
|
|
13147
|
+
const renderMedia = () => vue.createVNode("div", {
|
|
13148
|
+
"class": bem$A("media")
|
|
13149
|
+
}, [props2.media.map((item, index) => vue.createVNode("button", {
|
|
13150
|
+
"key": `${item.url}-${index}`,
|
|
13151
|
+
"class": bem$A("media-item"),
|
|
13152
|
+
"type": "button",
|
|
13153
|
+
"onClick": (event) => emit("click-media", item, index, event)
|
|
13154
|
+
}, [vue.createVNode(Image$1, {
|
|
13155
|
+
"src": item.type === "video" ? item.poster || item.url : item.url,
|
|
13156
|
+
"alt": item.alt,
|
|
13157
|
+
"width": "64",
|
|
13158
|
+
"height": "64",
|
|
13159
|
+
"radius": "4",
|
|
13160
|
+
"fit": "cover"
|
|
13161
|
+
}, null), item.type === "video" && vue.createVNode(Icon, {
|
|
13162
|
+
"name": "play-circle-o",
|
|
13163
|
+
"class": bem$A("play")
|
|
13164
|
+
}, null)]))]);
|
|
13165
|
+
const renderContent = () => {
|
|
13166
|
+
if (props2.type === "tag")
|
|
13167
|
+
return renderTags();
|
|
13168
|
+
if (props2.type === "media")
|
|
13169
|
+
return renderMedia();
|
|
13170
|
+
return renderText();
|
|
13171
|
+
};
|
|
13172
|
+
return () => vue.createVNode("div", {
|
|
13173
|
+
"class": bem$A([props2.type, {
|
|
13174
|
+
vertical: vertical.value
|
|
13175
|
+
}])
|
|
13176
|
+
}, [vue.createVNode("span", {
|
|
13177
|
+
"class": bem$A("label")
|
|
13178
|
+
}, [props2.label]), vue.createVNode("div", {
|
|
13179
|
+
"class": bem$A("value")
|
|
13180
|
+
}, [renderContent()])]);
|
|
13181
|
+
}
|
|
13182
|
+
});
|
|
13183
|
+
const Label = withInstall(stdin_default$G);
|
|
13095
13184
|
const [name$z, bem$z, t$6] = createNamespace("list");
|
|
13096
13185
|
const listProps = {
|
|
13097
13186
|
error: Boolean,
|
|
@@ -14354,7 +14443,27 @@
|
|
|
14354
14443
|
default: () => defaultCategories
|
|
14355
14444
|
},
|
|
14356
14445
|
title: makeStringProp("添加物料"),
|
|
14357
|
-
confirmText: makeStringProp("确定")
|
|
14446
|
+
confirmText: makeStringProp("确定"),
|
|
14447
|
+
showCommonTab: {
|
|
14448
|
+
type: Boolean,
|
|
14449
|
+
default: true
|
|
14450
|
+
},
|
|
14451
|
+
showAllTab: {
|
|
14452
|
+
type: Boolean,
|
|
14453
|
+
default: true
|
|
14454
|
+
},
|
|
14455
|
+
showMaterialTab: {
|
|
14456
|
+
type: Boolean,
|
|
14457
|
+
default: true
|
|
14458
|
+
},
|
|
14459
|
+
showToolTab: {
|
|
14460
|
+
type: Boolean,
|
|
14461
|
+
default: true
|
|
14462
|
+
},
|
|
14463
|
+
commonTabText: makeStringProp("常用物料"),
|
|
14464
|
+
allTabText: makeStringProp("全部物料"),
|
|
14465
|
+
materialTabText: makeStringProp("物资"),
|
|
14466
|
+
toolTabText: makeStringProp("工具")
|
|
14358
14467
|
};
|
|
14359
14468
|
var stdin_default$y = vue.defineComponent({
|
|
14360
14469
|
name: name$t,
|
|
@@ -14363,8 +14472,16 @@
|
|
|
14363
14472
|
setup(props2, {
|
|
14364
14473
|
emit
|
|
14365
14474
|
}) {
|
|
14366
|
-
const
|
|
14367
|
-
const
|
|
14475
|
+
const getDefaultTab = () => props2.showCommonTab || !props2.showAllTab ? "common" : "all";
|
|
14476
|
+
const getDefaultKind = () => {
|
|
14477
|
+
if (props2.showMaterialTab || !props2.showToolTab)
|
|
14478
|
+
return "material";
|
|
14479
|
+
if (props2.showToolTab)
|
|
14480
|
+
return "tool";
|
|
14481
|
+
return void 0;
|
|
14482
|
+
};
|
|
14483
|
+
const activeTab = vue.ref(getDefaultTab());
|
|
14484
|
+
const activeKind = vue.ref(getDefaultKind());
|
|
14368
14485
|
const keyword = vue.ref("");
|
|
14369
14486
|
const searching = vue.ref(false);
|
|
14370
14487
|
const expandedKeys = vue.ref(["material-root", "tool-root"]);
|
|
@@ -14376,8 +14493,8 @@
|
|
|
14376
14493
|
const detailBannerIndex = vue.ref(0);
|
|
14377
14494
|
vue.watch(() => props2.show, (show) => {
|
|
14378
14495
|
if (show) {
|
|
14379
|
-
activeTab.value =
|
|
14380
|
-
activeKind.value =
|
|
14496
|
+
activeTab.value = getDefaultTab();
|
|
14497
|
+
activeKind.value = getDefaultKind();
|
|
14381
14498
|
keyword.value = "";
|
|
14382
14499
|
searching.value = false;
|
|
14383
14500
|
expandedKeys.value = ["material-root", "tool-root"];
|
|
@@ -14391,6 +14508,16 @@
|
|
|
14391
14508
|
}, {
|
|
14392
14509
|
immediate: true
|
|
14393
14510
|
});
|
|
14511
|
+
vue.watch(() => [props2.showCommonTab, props2.showAllTab], () => {
|
|
14512
|
+
if (activeTab.value === "common" && !props2.showCommonTab || activeTab.value === "all" && !props2.showAllTab) {
|
|
14513
|
+
activeTab.value = getDefaultTab();
|
|
14514
|
+
}
|
|
14515
|
+
});
|
|
14516
|
+
vue.watch(() => [props2.showMaterialTab, props2.showToolTab], () => {
|
|
14517
|
+
if (activeKind.value === "material" && !props2.showMaterialTab || activeKind.value === "tool" && !props2.showToolTab) {
|
|
14518
|
+
activeKind.value = getDefaultKind();
|
|
14519
|
+
}
|
|
14520
|
+
});
|
|
14394
14521
|
const quantities = vue.computed(() => props2.items.map((_, index) => Math.max(Number(props2.modelValue[index] || 0), 0)));
|
|
14395
14522
|
const total = vue.computed(() => quantities.value.reduce((sum, value) => sum + value, 0));
|
|
14396
14523
|
const selectedItems = vue.computed(() => props2.items.map((item, index) => ({
|
|
@@ -14403,8 +14530,8 @@
|
|
|
14403
14530
|
const visibleItems = vue.computed(() => {
|
|
14404
14531
|
const query = keyword.value.trim().toLowerCase();
|
|
14405
14532
|
return props2.items.filter((item) => {
|
|
14406
|
-
const matchesKind = searching.value || item.kind === activeKind.value;
|
|
14407
|
-
const matchesCategory = searching.value || activeTab.value ===
|
|
14533
|
+
const matchesKind = searching.value || !activeKind.value || item.kind === activeKind.value;
|
|
14534
|
+
const matchesCategory = searching.value || activeTab.value === "common";
|
|
14408
14535
|
const matchesSearch = !query || `${item.name}${item.detail}`.toLowerCase().includes(query);
|
|
14409
14536
|
return matchesKind && matchesCategory && matchesSearch;
|
|
14410
14537
|
});
|
|
@@ -14445,13 +14572,13 @@
|
|
|
14445
14572
|
"class": bem$t("empty")
|
|
14446
14573
|
}, [vue.createTextVNode("暂无匹配物料")])]);
|
|
14447
14574
|
const renderCatalog = () => {
|
|
14448
|
-
const rootGroups = props2.categories.filter((category) => category.kind === activeKind.value);
|
|
14575
|
+
const rootGroups = props2.categories.filter((category) => !activeKind.value || category.kind === activeKind.value);
|
|
14449
14576
|
const configuredValues = new Set(rootGroups.flatMap((group) => group.categories.map((category) => category.value)));
|
|
14450
|
-
const ungroupedCategories = [...new Set(props2.items.filter((item) => item.kind === activeKind.value && !configuredValues.has(item.category)).map((item) => item.category))];
|
|
14577
|
+
const ungroupedCategories = [...new Set(props2.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && !configuredValues.has(item.category)).map((item) => item.category))];
|
|
14451
14578
|
const groups = ungroupedCategories.length ? [...rootGroups, {
|
|
14452
|
-
id: `${activeKind.value}-other`,
|
|
14579
|
+
id: `${activeKind.value || "all"}-other`,
|
|
14453
14580
|
text: "未分类",
|
|
14454
|
-
kind: activeKind.value,
|
|
14581
|
+
kind: activeKind.value || "material",
|
|
14455
14582
|
categories: ungroupedCategories.map((value) => ({
|
|
14456
14583
|
value,
|
|
14457
14584
|
text: value
|
|
@@ -14461,7 +14588,7 @@
|
|
|
14461
14588
|
id: root.id,
|
|
14462
14589
|
text: root.text,
|
|
14463
14590
|
selectable: false,
|
|
14464
|
-
children: props2.items.filter((item) => item.kind === activeKind.value && root.categories.some((category) => category.value === item.category)).map((material) => ({
|
|
14591
|
+
children: props2.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && root.categories.some((category) => category.value === item.category)).map((material) => ({
|
|
14465
14592
|
id: material.id,
|
|
14466
14593
|
text: material.name,
|
|
14467
14594
|
selectable: false,
|
|
@@ -14652,36 +14779,38 @@
|
|
|
14652
14779
|
searching.value = true;
|
|
14653
14780
|
}
|
|
14654
14781
|
}, null)
|
|
14655
|
-
}), vue.createVNode(Tabs, {
|
|
14782
|
+
}), (props2.showCommonTab || props2.showAllTab) && vue.createVNode(Tabs, {
|
|
14656
14783
|
"active": activeTab.value,
|
|
14657
14784
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
14658
14785
|
"class": bem$t("tabs"),
|
|
14659
14786
|
"shrink": true
|
|
14660
14787
|
}, {
|
|
14661
|
-
default: () => [vue.createVNode(Tab, {
|
|
14662
|
-
"
|
|
14663
|
-
|
|
14664
|
-
|
|
14788
|
+
default: () => [props2.showCommonTab && vue.createVNode(Tab, {
|
|
14789
|
+
"name": "common",
|
|
14790
|
+
"title": props2.commonTabText
|
|
14791
|
+
}, null), props2.showAllTab && vue.createVNode(Tab, {
|
|
14792
|
+
"name": "all",
|
|
14793
|
+
"title": props2.allTabText
|
|
14665
14794
|
}, null)]
|
|
14666
|
-
}), vue.createVNode("div", {
|
|
14795
|
+
}), (props2.showMaterialTab || props2.showToolTab) && vue.createVNode("div", {
|
|
14667
14796
|
"class": bem$t("filter-tags")
|
|
14668
|
-
}, [vue.createVNode(FilterTag, {
|
|
14797
|
+
}, [props2.showMaterialTab && vue.createVNode(FilterTag, {
|
|
14669
14798
|
"selected": activeKind.value === "material",
|
|
14670
14799
|
"onClick": () => {
|
|
14671
14800
|
activeKind.value = "material";
|
|
14672
14801
|
}
|
|
14673
14802
|
}, {
|
|
14674
|
-
default: () => [
|
|
14675
|
-
}), vue.createVNode(FilterTag, {
|
|
14803
|
+
default: () => [props2.materialTabText]
|
|
14804
|
+
}), props2.showToolTab && vue.createVNode(FilterTag, {
|
|
14676
14805
|
"selected": activeKind.value === "tool",
|
|
14677
14806
|
"onClick": () => {
|
|
14678
14807
|
activeKind.value = "tool";
|
|
14679
14808
|
}
|
|
14680
14809
|
}, {
|
|
14681
|
-
default: () => [
|
|
14810
|
+
default: () => [props2.toolTabText]
|
|
14682
14811
|
})])]), vue.createVNode("div", {
|
|
14683
14812
|
"class": bem$t("body")
|
|
14684
|
-
}, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value ===
|
|
14813
|
+
}, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value === "common" ? renderList() : renderCatalog()]), vue.createVNode("div", {
|
|
14685
14814
|
"class": bem$t("footer")
|
|
14686
14815
|
}, [renderSelectPanel(), vue.createVNode(BottomActionBar, {
|
|
14687
14816
|
"fixed": false,
|
|
@@ -16737,19 +16866,39 @@
|
|
|
16737
16866
|
const QuantityInput = withInstall(stdin_default$n);
|
|
16738
16867
|
const BatchMultiSelect = QuantityInput;
|
|
16739
16868
|
const [name$h, bem$h] = createNamespace("radio-panel");
|
|
16869
|
+
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
16740
16870
|
const radioPanelProps = {
|
|
16741
16871
|
show: Boolean,
|
|
16742
16872
|
title: String,
|
|
16743
16873
|
options: makeArrayProp(),
|
|
16744
|
-
modelValue: String
|
|
16874
|
+
modelValue: String,
|
|
16875
|
+
searchable: Boolean,
|
|
16876
|
+
searchPlaceholder: String,
|
|
16877
|
+
filterable: Boolean,
|
|
16878
|
+
filterActive: Boolean,
|
|
16879
|
+
loading: Boolean,
|
|
16880
|
+
finished: Boolean,
|
|
16881
|
+
error: Boolean,
|
|
16882
|
+
lazy: Boolean,
|
|
16883
|
+
loadingText: String,
|
|
16884
|
+
finishedText: String,
|
|
16885
|
+
errorText: String
|
|
16745
16886
|
};
|
|
16746
16887
|
var stdin_default$m = vue.defineComponent({
|
|
16747
16888
|
name: name$h,
|
|
16748
16889
|
props: radioPanelProps,
|
|
16749
|
-
emits: ["update:show", "update:modelValue", "select"],
|
|
16890
|
+
emits: ["update:show", "update:modelValue", "update:loading", "update:error", "select", "search", "filter", "load"],
|
|
16750
16891
|
setup(props2, {
|
|
16751
|
-
emit
|
|
16892
|
+
emit,
|
|
16893
|
+
slots
|
|
16752
16894
|
}) {
|
|
16895
|
+
const keyword = vue.ref("");
|
|
16896
|
+
const filteredOptions = vue.computed(() => {
|
|
16897
|
+
const query = keyword.value.trim().toLocaleLowerCase();
|
|
16898
|
+
if (!query)
|
|
16899
|
+
return props2.options;
|
|
16900
|
+
return props2.options.filter((option) => option.label.toLocaleLowerCase().includes(query));
|
|
16901
|
+
});
|
|
16753
16902
|
const close = () => emit("update:show", false);
|
|
16754
16903
|
const select = (option) => {
|
|
16755
16904
|
if (option.disabled)
|
|
@@ -16758,6 +16907,48 @@
|
|
|
16758
16907
|
emit("select", option.value);
|
|
16759
16908
|
close();
|
|
16760
16909
|
};
|
|
16910
|
+
const renderOptionLabel = (label) => {
|
|
16911
|
+
const query = keyword.value.trim();
|
|
16912
|
+
if (!query)
|
|
16913
|
+
return label;
|
|
16914
|
+
const normalizedQuery = query.toLocaleLowerCase();
|
|
16915
|
+
return label.split(new RegExp(`(${escapeRegExp(query)})`, "ig")).map((part) => part.toLocaleLowerCase() === normalizedQuery ? vue.createVNode("span", {
|
|
16916
|
+
"class": bem$h("match")
|
|
16917
|
+
}, [part]) : part);
|
|
16918
|
+
};
|
|
16919
|
+
const renderOptions = () => {
|
|
16920
|
+
if (!filteredOptions.value.length) {
|
|
16921
|
+
return vue.createVNode(Empty, {
|
|
16922
|
+
"imageSize": 60,
|
|
16923
|
+
"description": "暂无匹配选项"
|
|
16924
|
+
}, null);
|
|
16925
|
+
}
|
|
16926
|
+
return vue.createVNode(RadioGroup, {
|
|
16927
|
+
"modelValue": props2.modelValue,
|
|
16928
|
+
"onUpdate:modelValue": (value) => {
|
|
16929
|
+
const option = props2.options.find((item) => item.value === value);
|
|
16930
|
+
if (option)
|
|
16931
|
+
select(option);
|
|
16932
|
+
}
|
|
16933
|
+
}, {
|
|
16934
|
+
default: () => [filteredOptions.value.map((option) => vue.createVNode(Cell, {
|
|
16935
|
+
"key": option.value,
|
|
16936
|
+
"clickable": !option.disabled,
|
|
16937
|
+
"title": option.label,
|
|
16938
|
+
"titleStyle": {
|
|
16939
|
+
color: props2.modelValue === option.value ? "var(--van-primary-color)" : void 0
|
|
16940
|
+
},
|
|
16941
|
+
"onClick": () => select(option)
|
|
16942
|
+
}, {
|
|
16943
|
+
title: () => renderOptionLabel(option.label),
|
|
16944
|
+
"right-icon": () => vue.createVNode(Radio, {
|
|
16945
|
+
"name": option.value,
|
|
16946
|
+
"disabled": option.disabled,
|
|
16947
|
+
"onClick": (event) => event.stopPropagation()
|
|
16948
|
+
}, null)
|
|
16949
|
+
}))]
|
|
16950
|
+
});
|
|
16951
|
+
};
|
|
16761
16952
|
return () => vue.createVNode(ActionSheet, {
|
|
16762
16953
|
"show": props2.show,
|
|
16763
16954
|
"class": bem$h(),
|
|
@@ -16776,35 +16967,55 @@
|
|
|
16776
16967
|
"name": "cross",
|
|
16777
16968
|
"size": "22",
|
|
16778
16969
|
"onClick": close
|
|
16779
|
-
}, null)
|
|
16780
|
-
|
|
16970
|
+
}, null),
|
|
16971
|
+
right: () => {
|
|
16972
|
+
if (slots.filter)
|
|
16973
|
+
return slots.filter();
|
|
16974
|
+
if (!props2.filterable)
|
|
16975
|
+
return;
|
|
16976
|
+
return vue.createVNode("button", {
|
|
16977
|
+
"type": "button",
|
|
16978
|
+
"class": bem$h("filter"),
|
|
16979
|
+
"aria-label": "筛选",
|
|
16980
|
+
"onClick": () => emit("filter")
|
|
16981
|
+
}, [vue.createVNode(Badge, {
|
|
16982
|
+
"dot": props2.filterActive
|
|
16983
|
+
}, {
|
|
16984
|
+
default: () => [vue.createVNode(Icon, {
|
|
16985
|
+
"name": "filter-o",
|
|
16986
|
+
"size": "22"
|
|
16987
|
+
}, null)]
|
|
16988
|
+
})]);
|
|
16989
|
+
}
|
|
16990
|
+
})]), props2.searchable && vue.createVNode(Search, {
|
|
16991
|
+
"modelValue": keyword.value,
|
|
16992
|
+
"class": bem$h("search"),
|
|
16993
|
+
"shape": "round",
|
|
16994
|
+
"inputAlign": "left",
|
|
16995
|
+
"placeholder": props2.searchPlaceholder || "请输入搜索关键词",
|
|
16996
|
+
"maxlength": 200,
|
|
16997
|
+
"onUpdate:modelValue": (value) => {
|
|
16998
|
+
keyword.value = value;
|
|
16999
|
+
emit("search", value);
|
|
17000
|
+
},
|
|
17001
|
+
"onSearch": (value) => emit("search", value)
|
|
17002
|
+
}, null), vue.createVNode("div", {
|
|
16781
17003
|
"class": bem$h("body")
|
|
16782
17004
|
}, [vue.createVNode("div", {
|
|
16783
17005
|
"class": bem$h("card")
|
|
16784
|
-
}, [vue.createVNode(
|
|
16785
|
-
"
|
|
16786
|
-
"
|
|
16787
|
-
|
|
16788
|
-
|
|
16789
|
-
|
|
16790
|
-
|
|
17006
|
+
}, [props2.lazy ? vue.createVNode(List, {
|
|
17007
|
+
"loading": props2.loading,
|
|
17008
|
+
"finished": props2.finished,
|
|
17009
|
+
"error": props2.error,
|
|
17010
|
+
"loadingText": props2.loadingText,
|
|
17011
|
+
"finishedText": props2.finishedText,
|
|
17012
|
+
"errorText": props2.errorText,
|
|
17013
|
+
"onUpdate:loading": (value) => emit("update:loading", value),
|
|
17014
|
+
"onUpdate:error": (value) => emit("update:error", value),
|
|
17015
|
+
"onLoad": () => emit("load")
|
|
16791
17016
|
}, {
|
|
16792
|
-
default: () => [
|
|
16793
|
-
|
|
16794
|
-
"clickable": !option.disabled,
|
|
16795
|
-
"title": option.label,
|
|
16796
|
-
"titleStyle": {
|
|
16797
|
-
color: props2.modelValue === option.value ? "var(--van-primary-color)" : void 0
|
|
16798
|
-
},
|
|
16799
|
-
"onClick": () => select(option)
|
|
16800
|
-
}, {
|
|
16801
|
-
"right-icon": () => vue.createVNode(Radio, {
|
|
16802
|
-
"name": option.value,
|
|
16803
|
-
"disabled": option.disabled,
|
|
16804
|
-
"onClick": (event) => event.stopPropagation()
|
|
16805
|
-
}, null)
|
|
16806
|
-
}))]
|
|
16807
|
-
})])])])]
|
|
17017
|
+
default: () => [renderOptions()]
|
|
17018
|
+
}) : renderOptions()])])])]
|
|
16808
17019
|
});
|
|
16809
17020
|
}
|
|
16810
17021
|
});
|
|
@@ -17078,7 +17289,7 @@
|
|
|
17078
17289
|
installRate(app);
|
|
17079
17290
|
app.use(RateCell);
|
|
17080
17291
|
};
|
|
17081
|
-
const Row = withInstall(stdin_default$
|
|
17292
|
+
const Row = withInstall(stdin_default$19);
|
|
17082
17293
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
17083
17294
|
const iconMap = {
|
|
17084
17295
|
qq: "qq",
|
|
@@ -23048,7 +23259,7 @@
|
|
|
23048
23259
|
});
|
|
23049
23260
|
}
|
|
23050
23261
|
};
|
|
23051
|
-
const version = "0.0.
|
|
23262
|
+
const version = "0.0.28";
|
|
23052
23263
|
function install(app) {
|
|
23053
23264
|
const components = [
|
|
23054
23265
|
ActionBar,
|
|
@@ -23102,6 +23313,7 @@
|
|
|
23102
23313
|
ImagePreview,
|
|
23103
23314
|
IndexAnchor,
|
|
23104
23315
|
IndexBar,
|
|
23316
|
+
Label,
|
|
23105
23317
|
List,
|
|
23106
23318
|
Loading,
|
|
23107
23319
|
Locale,
|
|
@@ -23222,6 +23434,7 @@
|
|
|
23222
23434
|
exports2.ImagePreview = ImagePreview;
|
|
23223
23435
|
exports2.IndexAnchor = IndexAnchor;
|
|
23224
23436
|
exports2.IndexBar = IndexBar;
|
|
23437
|
+
exports2.Label = Label;
|
|
23225
23438
|
exports2.Lazyload = Lazyload;
|
|
23226
23439
|
exports2.List = List;
|
|
23227
23440
|
exports2.Loading = Loading;
|