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.cjs.js
CHANGED
|
@@ -237,7 +237,7 @@ function deepAssign(to, from) {
|
|
|
237
237
|
});
|
|
238
238
|
return to;
|
|
239
239
|
}
|
|
240
|
-
var stdin_default$
|
|
240
|
+
var stdin_default$21 = {
|
|
241
241
|
name: "姓名",
|
|
242
242
|
tel: "电话",
|
|
243
243
|
save: "保存",
|
|
@@ -302,7 +302,7 @@ var stdin_default$20 = {
|
|
|
302
302
|
};
|
|
303
303
|
const lang = vue.ref("zh-CN");
|
|
304
304
|
const messages = vue.reactive({
|
|
305
|
-
"zh-CN": stdin_default$
|
|
305
|
+
"zh-CN": stdin_default$21
|
|
306
306
|
});
|
|
307
307
|
const Locale = {
|
|
308
308
|
messages() {
|
|
@@ -316,11 +316,11 @@ const Locale = {
|
|
|
316
316
|
deepAssign(messages, newMessages);
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
|
-
var stdin_default$
|
|
319
|
+
var stdin_default$20 = Locale;
|
|
320
320
|
function createTranslate(name2) {
|
|
321
321
|
const prefix = camelize(name2) + ".";
|
|
322
322
|
return (path, ...args) => {
|
|
323
|
-
const messages2 = stdin_default$
|
|
323
|
+
const messages2 = stdin_default$20.messages();
|
|
324
324
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
325
325
|
return isFunction(message) ? message(...args) : message;
|
|
326
326
|
};
|
|
@@ -440,20 +440,20 @@ function usePlaceholder(contentRef, bem2) {
|
|
|
440
440
|
}
|
|
441
441
|
}, [renderContent()]);
|
|
442
442
|
}
|
|
443
|
-
const [name$
|
|
444
|
-
const ACTION_BAR_KEY = Symbol(name$
|
|
443
|
+
const [name$1S, bem$1O] = createNamespace("action-bar");
|
|
444
|
+
const ACTION_BAR_KEY = Symbol(name$1S);
|
|
445
445
|
const actionBarProps = {
|
|
446
446
|
placeholder: Boolean,
|
|
447
447
|
safeAreaInsetBottom: truthProp
|
|
448
448
|
};
|
|
449
|
-
var stdin_default$
|
|
450
|
-
name: name$
|
|
449
|
+
var stdin_default$1$ = vue.defineComponent({
|
|
450
|
+
name: name$1S,
|
|
451
451
|
props: actionBarProps,
|
|
452
452
|
setup(props2, {
|
|
453
453
|
slots
|
|
454
454
|
}) {
|
|
455
455
|
const root = vue.ref();
|
|
456
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
|
456
|
+
const renderPlaceholder = usePlaceholder(root, bem$1O);
|
|
457
457
|
const {
|
|
458
458
|
linkChildren
|
|
459
459
|
} = use.useChildren(ACTION_BAR_KEY);
|
|
@@ -462,7 +462,7 @@ var stdin_default$1_ = vue.defineComponent({
|
|
|
462
462
|
var _a;
|
|
463
463
|
return vue.createVNode("div", {
|
|
464
464
|
"ref": root,
|
|
465
|
-
"class": [bem$
|
|
465
|
+
"class": [bem$1O(), {
|
|
466
466
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
467
467
|
}]
|
|
468
468
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
@@ -475,7 +475,7 @@ var stdin_default$1_ = vue.defineComponent({
|
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
|
-
const ActionBar = withInstall(stdin_default$
|
|
478
|
+
const ActionBar = withInstall(stdin_default$1$);
|
|
479
479
|
function useExpose(apis) {
|
|
480
480
|
const instance2 = vue.getCurrentInstance();
|
|
481
481
|
if (instance2) {
|
|
@@ -503,7 +503,7 @@ function useRoute() {
|
|
|
503
503
|
const vm = vue.getCurrentInstance().proxy;
|
|
504
504
|
return () => route(vm);
|
|
505
505
|
}
|
|
506
|
-
const [name$
|
|
506
|
+
const [name$1R, bem$1N] = createNamespace("badge");
|
|
507
507
|
const badgeProps = {
|
|
508
508
|
dot: Boolean,
|
|
509
509
|
max: numericProp,
|
|
@@ -514,8 +514,8 @@ const badgeProps = {
|
|
|
514
514
|
showZero: truthProp,
|
|
515
515
|
position: makeStringProp("top-right")
|
|
516
516
|
};
|
|
517
|
-
var stdin_default$
|
|
518
|
-
name: name$
|
|
517
|
+
var stdin_default$1_ = vue.defineComponent({
|
|
518
|
+
name: name$1R,
|
|
519
519
|
props: badgeProps,
|
|
520
520
|
setup(props2, {
|
|
521
521
|
slots
|
|
@@ -569,7 +569,7 @@ var stdin_default$1Z = vue.defineComponent({
|
|
|
569
569
|
const renderBadge = () => {
|
|
570
570
|
if (hasContent() || props2.dot) {
|
|
571
571
|
return vue.createVNode("div", {
|
|
572
|
-
"class": bem$
|
|
572
|
+
"class": bem$1N([props2.position, {
|
|
573
573
|
dot: props2.dot,
|
|
574
574
|
fixed: !!slots.default
|
|
575
575
|
}]),
|
|
@@ -583,7 +583,7 @@ var stdin_default$1Z = vue.defineComponent({
|
|
|
583
583
|
tag
|
|
584
584
|
} = props2;
|
|
585
585
|
return vue.createVNode(tag, {
|
|
586
|
-
"class": bem$
|
|
586
|
+
"class": bem$1N("wrapper")
|
|
587
587
|
}, {
|
|
588
588
|
default: () => [slots.default(), renderBadge()]
|
|
589
589
|
});
|
|
@@ -592,14 +592,14 @@ var stdin_default$1Z = vue.defineComponent({
|
|
|
592
592
|
};
|
|
593
593
|
}
|
|
594
594
|
});
|
|
595
|
-
const Badge = withInstall(stdin_default$
|
|
595
|
+
const Badge = withInstall(stdin_default$1_);
|
|
596
596
|
let globalZIndex = 2e3;
|
|
597
597
|
const useGlobalZIndex = () => ++globalZIndex;
|
|
598
598
|
const setGlobalZIndex = (val) => {
|
|
599
599
|
globalZIndex = val;
|
|
600
600
|
};
|
|
601
|
-
const [name$
|
|
602
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
|
601
|
+
const [name$1Q, bem$1M] = createNamespace("config-provider");
|
|
602
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1Q);
|
|
603
603
|
const configProviderProps = {
|
|
604
604
|
tag: makeStringProp("div"),
|
|
605
605
|
zIndex: Number,
|
|
@@ -614,8 +614,8 @@ function mapThemeVarsToCSSVars(themeVars) {
|
|
|
614
614
|
});
|
|
615
615
|
return cssVars;
|
|
616
616
|
}
|
|
617
|
-
var stdin_default$
|
|
618
|
-
name: name$
|
|
617
|
+
var stdin_default$1Z = vue.defineComponent({
|
|
618
|
+
name: name$1Q,
|
|
619
619
|
props: configProviderProps,
|
|
620
620
|
setup(props2, {
|
|
621
621
|
slots
|
|
@@ -632,7 +632,7 @@ var stdin_default$1Y = vue.defineComponent({
|
|
|
632
632
|
}
|
|
633
633
|
});
|
|
634
634
|
return () => vue.createVNode(props2.tag, {
|
|
635
|
-
"class": bem$
|
|
635
|
+
"class": bem$1M(),
|
|
636
636
|
"style": style.value
|
|
637
637
|
}, {
|
|
638
638
|
default: () => {
|
|
@@ -642,7 +642,7 @@ var stdin_default$1Y = vue.defineComponent({
|
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
644
|
});
|
|
645
|
-
const [name$
|
|
645
|
+
const [name$1P, bem$1L] = createNamespace("icon");
|
|
646
646
|
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
|
647
647
|
const iconProps = {
|
|
648
648
|
dot: Boolean,
|
|
@@ -654,14 +654,14 @@ const iconProps = {
|
|
|
654
654
|
badgeProps: Object,
|
|
655
655
|
classPrefix: String
|
|
656
656
|
};
|
|
657
|
-
var stdin_default$
|
|
658
|
-
name: name$
|
|
657
|
+
var stdin_default$1Y = vue.defineComponent({
|
|
658
|
+
name: name$1P,
|
|
659
659
|
props: iconProps,
|
|
660
660
|
setup(props2, {
|
|
661
661
|
slots
|
|
662
662
|
}) {
|
|
663
663
|
const config = vue.inject(CONFIG_PROVIDER_KEY, null);
|
|
664
|
-
const classPrefix = vue.computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
|
664
|
+
const classPrefix = vue.computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1L());
|
|
665
665
|
return () => {
|
|
666
666
|
const {
|
|
667
667
|
tag,
|
|
@@ -685,7 +685,7 @@ var stdin_default$1X = vue.defineComponent({
|
|
|
685
685
|
default: () => {
|
|
686
686
|
var _a;
|
|
687
687
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
|
|
688
|
-
"class": bem$
|
|
688
|
+
"class": bem$1L("image"),
|
|
689
689
|
"src": name2
|
|
690
690
|
}, null)];
|
|
691
691
|
}
|
|
@@ -693,14 +693,14 @@ var stdin_default$1X = vue.defineComponent({
|
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
695
|
});
|
|
696
|
-
const Icon = withInstall(stdin_default$
|
|
697
|
-
var stdin_default$
|
|
698
|
-
const [name$
|
|
696
|
+
const Icon = withInstall(stdin_default$1Y);
|
|
697
|
+
var stdin_default$1X = Icon;
|
|
698
|
+
const [name$1O, bem$1K] = createNamespace("loading");
|
|
699
699
|
const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
|
|
700
|
-
"class": bem$
|
|
700
|
+
"class": bem$1K("line", String(index + 1))
|
|
701
701
|
}, null));
|
|
702
702
|
const CircularIcon = vue.createVNode("svg", {
|
|
703
|
-
"class": bem$
|
|
703
|
+
"class": bem$1K("circular"),
|
|
704
704
|
"viewBox": "25 25 50 50"
|
|
705
705
|
}, [vue.createVNode("circle", {
|
|
706
706
|
"cx": "50",
|
|
@@ -716,8 +716,8 @@ const loadingProps = {
|
|
|
716
716
|
textSize: numericProp,
|
|
717
717
|
textColor: String
|
|
718
718
|
};
|
|
719
|
-
var stdin_default$
|
|
720
|
-
name: name$
|
|
719
|
+
var stdin_default$1W = vue.defineComponent({
|
|
720
|
+
name: name$1O,
|
|
721
721
|
props: loadingProps,
|
|
722
722
|
setup(props2, {
|
|
723
723
|
slots
|
|
@@ -729,7 +729,7 @@ var stdin_default$1V = vue.defineComponent({
|
|
|
729
729
|
var _a;
|
|
730
730
|
if (slots.default) {
|
|
731
731
|
return vue.createVNode("span", {
|
|
732
|
-
"class": bem$
|
|
732
|
+
"class": bem$1K("text"),
|
|
733
733
|
"style": {
|
|
734
734
|
fontSize: addUnit(props2.textSize),
|
|
735
735
|
color: (_a = props2.textColor) != null ? _a : props2.color
|
|
@@ -743,20 +743,20 @@ var stdin_default$1V = vue.defineComponent({
|
|
|
743
743
|
vertical
|
|
744
744
|
} = props2;
|
|
745
745
|
return vue.createVNode("div", {
|
|
746
|
-
"class": bem$
|
|
746
|
+
"class": bem$1K([type, {
|
|
747
747
|
vertical
|
|
748
748
|
}]),
|
|
749
749
|
"aria-live": "polite",
|
|
750
750
|
"aria-busy": true
|
|
751
751
|
}, [vue.createVNode("span", {
|
|
752
|
-
"class": bem$
|
|
752
|
+
"class": bem$1K("spinner", type),
|
|
753
753
|
"style": spinnerStyle.value
|
|
754
754
|
}, [type === "spinner" ? SpinIcon : CircularIcon]), renderText()]);
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
757
|
});
|
|
758
|
-
const Loading = withInstall(stdin_default$
|
|
759
|
-
const [name$
|
|
758
|
+
const Loading = withInstall(stdin_default$1W);
|
|
759
|
+
const [name$1N, bem$1J] = createNamespace("button");
|
|
760
760
|
const buttonIconSizes = {
|
|
761
761
|
large: "var(--van-font-size-xl)",
|
|
762
762
|
normal: "var(--van-font-size-lg)",
|
|
@@ -785,8 +785,8 @@ const buttonProps = extend({}, routeProps, {
|
|
|
785
785
|
loadingType: String,
|
|
786
786
|
iconPosition: makeStringProp("left")
|
|
787
787
|
});
|
|
788
|
-
var stdin_default$
|
|
789
|
-
name: name$
|
|
788
|
+
var stdin_default$1V = vue.defineComponent({
|
|
789
|
+
name: name$1N,
|
|
790
790
|
props: buttonProps,
|
|
791
791
|
emits: ["click"],
|
|
792
792
|
setup(props2, {
|
|
@@ -801,7 +801,7 @@ var stdin_default$1U = vue.defineComponent({
|
|
|
801
801
|
return vue.createVNode(Loading, {
|
|
802
802
|
"size": props2.loadingSize,
|
|
803
803
|
"type": props2.loadingType,
|
|
804
|
-
"class": bem$
|
|
804
|
+
"class": bem$1J("loading")
|
|
805
805
|
}, null);
|
|
806
806
|
};
|
|
807
807
|
const renderIcon = () => {
|
|
@@ -811,14 +811,14 @@ var stdin_default$1U = vue.defineComponent({
|
|
|
811
811
|
}
|
|
812
812
|
if (slots.icon) {
|
|
813
813
|
return vue.createVNode("div", {
|
|
814
|
-
"class": bem$
|
|
814
|
+
"class": bem$1J("icon")
|
|
815
815
|
}, [slots.icon()]);
|
|
816
816
|
}
|
|
817
817
|
if (props2.icon) {
|
|
818
818
|
return vue.createVNode(Icon, {
|
|
819
819
|
"size": (_a = props2.iconSize) != null ? _a : buttonIconSizes[props2.size],
|
|
820
820
|
"name": props2.icon,
|
|
821
|
-
"class": bem$
|
|
821
|
+
"class": bem$1J("icon"),
|
|
822
822
|
"classPrefix": props2.iconPrefix
|
|
823
823
|
}, null);
|
|
824
824
|
}
|
|
@@ -832,7 +832,7 @@ var stdin_default$1U = vue.defineComponent({
|
|
|
832
832
|
}
|
|
833
833
|
if (text) {
|
|
834
834
|
return vue.createVNode("span", {
|
|
835
|
-
"class": bem$
|
|
835
|
+
"class": bem$1J("text")
|
|
836
836
|
}, [text]);
|
|
837
837
|
}
|
|
838
838
|
};
|
|
@@ -879,7 +879,7 @@ var stdin_default$1U = vue.defineComponent({
|
|
|
879
879
|
nativeType,
|
|
880
880
|
iconPosition
|
|
881
881
|
} = props2;
|
|
882
|
-
const classes = [bem$
|
|
882
|
+
const classes = [bem$1J([type, size, {
|
|
883
883
|
plain,
|
|
884
884
|
block,
|
|
885
885
|
round,
|
|
@@ -898,14 +898,14 @@ var stdin_default$1U = vue.defineComponent({
|
|
|
898
898
|
"onClick": onClick
|
|
899
899
|
}, {
|
|
900
900
|
default: () => [vue.createVNode("div", {
|
|
901
|
-
"class": bem$
|
|
901
|
+
"class": bem$1J("content")
|
|
902
902
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
|
903
903
|
});
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
906
|
});
|
|
907
|
-
const Button = withInstall(stdin_default$
|
|
908
|
-
const [name$
|
|
907
|
+
const Button = withInstall(stdin_default$1V);
|
|
908
|
+
const [name$1M, bem$1I] = createNamespace("action-bar-button");
|
|
909
909
|
const actionBarButtonProps = extend({}, routeProps, {
|
|
910
910
|
type: String,
|
|
911
911
|
text: String,
|
|
@@ -914,8 +914,8 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
|
914
914
|
loading: Boolean,
|
|
915
915
|
disabled: Boolean
|
|
916
916
|
});
|
|
917
|
-
var stdin_default$
|
|
918
|
-
name: name$
|
|
917
|
+
var stdin_default$1U = vue.defineComponent({
|
|
918
|
+
name: name$1M,
|
|
919
919
|
props: actionBarButtonProps,
|
|
920
920
|
setup(props2, {
|
|
921
921
|
slots
|
|
@@ -950,7 +950,7 @@ var stdin_default$1T = vue.defineComponent({
|
|
|
950
950
|
disabled
|
|
951
951
|
} = props2;
|
|
952
952
|
return vue.createVNode(Button, {
|
|
953
|
-
"class": bem$
|
|
953
|
+
"class": bem$1I([type, {
|
|
954
954
|
last: isLast.value,
|
|
955
955
|
first: isFirst.value
|
|
956
956
|
}]),
|
|
@@ -967,8 +967,8 @@ var stdin_default$1T = vue.defineComponent({
|
|
|
967
967
|
};
|
|
968
968
|
}
|
|
969
969
|
});
|
|
970
|
-
const ActionBarButton = withInstall(stdin_default$
|
|
971
|
-
const [name$
|
|
970
|
+
const ActionBarButton = withInstall(stdin_default$1U);
|
|
971
|
+
const [name$1L, bem$1H] = createNamespace("action-bar-icon");
|
|
972
972
|
const actionBarIconProps = extend({}, routeProps, {
|
|
973
973
|
dot: Boolean,
|
|
974
974
|
text: String,
|
|
@@ -979,8 +979,8 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
|
979
979
|
badgeProps: Object,
|
|
980
980
|
iconPrefix: String
|
|
981
981
|
});
|
|
982
|
-
var stdin_default$
|
|
983
|
-
name: name$
|
|
982
|
+
var stdin_default$1T = vue.defineComponent({
|
|
983
|
+
name: name$1L,
|
|
984
984
|
props: actionBarIconProps,
|
|
985
985
|
setup(props2, {
|
|
986
986
|
slots
|
|
@@ -1000,7 +1000,7 @@ var stdin_default$1S = vue.defineComponent({
|
|
|
1000
1000
|
if (slots.icon) {
|
|
1001
1001
|
return vue.createVNode(Badge, vue.mergeProps({
|
|
1002
1002
|
"dot": dot,
|
|
1003
|
-
"class": bem$
|
|
1003
|
+
"class": bem$1H("icon"),
|
|
1004
1004
|
"content": badge
|
|
1005
1005
|
}, badgeProps2), {
|
|
1006
1006
|
default: slots.icon
|
|
@@ -1012,20 +1012,20 @@ var stdin_default$1S = vue.defineComponent({
|
|
|
1012
1012
|
"name": icon,
|
|
1013
1013
|
"badge": badge,
|
|
1014
1014
|
"color": color,
|
|
1015
|
-
"class": [bem$
|
|
1015
|
+
"class": [bem$1H("icon"), iconClass],
|
|
1016
1016
|
"badgeProps": badgeProps2,
|
|
1017
1017
|
"classPrefix": iconPrefix
|
|
1018
1018
|
}, null);
|
|
1019
1019
|
};
|
|
1020
1020
|
return () => vue.createVNode("div", {
|
|
1021
1021
|
"role": "button",
|
|
1022
|
-
"class": bem$
|
|
1022
|
+
"class": bem$1H(),
|
|
1023
1023
|
"tabindex": 0,
|
|
1024
1024
|
"onClick": route2
|
|
1025
1025
|
}, [renderIcon(), slots.default ? slots.default() : props2.text]);
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
|
-
const ActionBarIcon = withInstall(stdin_default$
|
|
1028
|
+
const ActionBarIcon = withInstall(stdin_default$1T);
|
|
1029
1029
|
const popupSharedProps = {
|
|
1030
1030
|
// whether to show popup
|
|
1031
1031
|
show: Boolean,
|
|
@@ -1176,7 +1176,7 @@ function useLazyRender(show) {
|
|
|
1176
1176
|
);
|
|
1177
1177
|
return (render) => () => inited.value ? render() : null;
|
|
1178
1178
|
}
|
|
1179
|
-
const [name$
|
|
1179
|
+
const [name$1K, bem$1G] = createNamespace("overlay");
|
|
1180
1180
|
const overlayProps = {
|
|
1181
1181
|
show: Boolean,
|
|
1182
1182
|
zIndex: numericProp,
|
|
@@ -1186,8 +1186,8 @@ const overlayProps = {
|
|
|
1186
1186
|
lazyRender: truthProp,
|
|
1187
1187
|
customStyle: Object
|
|
1188
1188
|
};
|
|
1189
|
-
var stdin_default$
|
|
1190
|
-
name: name$
|
|
1189
|
+
var stdin_default$1S = vue.defineComponent({
|
|
1190
|
+
name: name$1K,
|
|
1191
1191
|
props: overlayProps,
|
|
1192
1192
|
setup(props2, {
|
|
1193
1193
|
slots
|
|
@@ -1208,7 +1208,7 @@ var stdin_default$1R = vue.defineComponent({
|
|
|
1208
1208
|
return vue.withDirectives(vue.createVNode("div", {
|
|
1209
1209
|
"ref": root,
|
|
1210
1210
|
"style": style,
|
|
1211
|
-
"class": [bem$
|
|
1211
|
+
"class": [bem$1G(), props2.className]
|
|
1212
1212
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props2.show]]);
|
|
1213
1213
|
});
|
|
1214
1214
|
use.useEventListener("touchmove", onTouchMove, {
|
|
@@ -1222,7 +1222,7 @@ var stdin_default$1R = vue.defineComponent({
|
|
|
1222
1222
|
});
|
|
1223
1223
|
}
|
|
1224
1224
|
});
|
|
1225
|
-
const Overlay = withInstall(stdin_default$
|
|
1225
|
+
const Overlay = withInstall(stdin_default$1S);
|
|
1226
1226
|
const popupProps$3 = extend({}, popupSharedProps, {
|
|
1227
1227
|
round: Boolean,
|
|
1228
1228
|
position: makeStringProp("center"),
|
|
@@ -1235,9 +1235,9 @@ const popupProps$3 = extend({}, popupSharedProps, {
|
|
|
1235
1235
|
safeAreaInsetTop: Boolean,
|
|
1236
1236
|
safeAreaInsetBottom: Boolean
|
|
1237
1237
|
});
|
|
1238
|
-
const [name$
|
|
1239
|
-
var stdin_default$
|
|
1240
|
-
name: name$
|
|
1238
|
+
const [name$1J, bem$1F] = createNamespace("popup");
|
|
1239
|
+
var stdin_default$1R = vue.defineComponent({
|
|
1240
|
+
name: name$1J,
|
|
1241
1241
|
inheritAttrs: false,
|
|
1242
1242
|
props: popupProps$3,
|
|
1243
1243
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "click-overlay", "click-close-icon"],
|
|
@@ -1311,7 +1311,7 @@ var stdin_default$1Q = vue.defineComponent({
|
|
|
1311
1311
|
"role": "button",
|
|
1312
1312
|
"tabindex": 0,
|
|
1313
1313
|
"name": props2.closeIcon,
|
|
1314
|
-
"class": [bem$
|
|
1314
|
+
"class": [bem$1F("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
|
|
1315
1315
|
"classPrefix": props2.iconPrefix,
|
|
1316
1316
|
"onClick": onClickCloseIcon
|
|
1317
1317
|
}, null);
|
|
@@ -1333,7 +1333,7 @@ var stdin_default$1Q = vue.defineComponent({
|
|
|
1333
1333
|
"style": style.value,
|
|
1334
1334
|
"role": "dialog",
|
|
1335
1335
|
"tabindex": 0,
|
|
1336
|
-
"class": [bem$
|
|
1336
|
+
"class": [bem$1F({
|
|
1337
1337
|
round,
|
|
1338
1338
|
[position]: position
|
|
1339
1339
|
}), {
|
|
@@ -1414,8 +1414,8 @@ var stdin_default$1Q = vue.defineComponent({
|
|
|
1414
1414
|
};
|
|
1415
1415
|
}
|
|
1416
1416
|
});
|
|
1417
|
-
const Popup = withInstall(stdin_default$
|
|
1418
|
-
const [name$
|
|
1417
|
+
const Popup = withInstall(stdin_default$1R);
|
|
1418
|
+
const [name$1I, bem$1E] = createNamespace("action-sheet");
|
|
1419
1419
|
const actionSheetProps = extend({}, popupSharedProps, {
|
|
1420
1420
|
title: String,
|
|
1421
1421
|
round: truthProp,
|
|
@@ -1429,8 +1429,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
|
1429
1429
|
safeAreaInsetBottom: truthProp
|
|
1430
1430
|
});
|
|
1431
1431
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
1432
|
-
var stdin_default$
|
|
1433
|
-
name: name$
|
|
1432
|
+
var stdin_default$1Q = vue.defineComponent({
|
|
1433
|
+
name: name$1I,
|
|
1434
1434
|
props: actionSheetProps,
|
|
1435
1435
|
emits: ["select", "cancel", "update:show"],
|
|
1436
1436
|
setup(props2, {
|
|
@@ -1445,10 +1445,10 @@ var stdin_default$1P = vue.defineComponent({
|
|
|
1445
1445
|
const renderHeader = () => {
|
|
1446
1446
|
if (props2.title) {
|
|
1447
1447
|
return vue.createVNode("div", {
|
|
1448
|
-
"class": bem$
|
|
1448
|
+
"class": bem$1E("header")
|
|
1449
1449
|
}, [props2.title, props2.closeable && vue.createVNode(Icon, {
|
|
1450
1450
|
"name": props2.closeIcon,
|
|
1451
|
-
"class": [bem$
|
|
1451
|
+
"class": [bem$1E("close"), HAPTICS_FEEDBACK],
|
|
1452
1452
|
"onClick": onCancel
|
|
1453
1453
|
}, null)]);
|
|
1454
1454
|
}
|
|
@@ -1456,10 +1456,10 @@ var stdin_default$1P = vue.defineComponent({
|
|
|
1456
1456
|
const renderCancel = () => {
|
|
1457
1457
|
if (slots.cancel || props2.cancelText) {
|
|
1458
1458
|
return [vue.createVNode("div", {
|
|
1459
|
-
"class": bem$
|
|
1459
|
+
"class": bem$1E("gap")
|
|
1460
1460
|
}, null), vue.createVNode("button", {
|
|
1461
1461
|
"type": "button",
|
|
1462
|
-
"class": bem$
|
|
1462
|
+
"class": bem$1E("cancel"),
|
|
1463
1463
|
"onClick": onCancel
|
|
1464
1464
|
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
|
1465
1465
|
}
|
|
@@ -1467,7 +1467,7 @@ var stdin_default$1P = vue.defineComponent({
|
|
|
1467
1467
|
const renderActionContent = (action, index) => {
|
|
1468
1468
|
if (action.loading) {
|
|
1469
1469
|
return vue.createVNode(Loading, {
|
|
1470
|
-
"class": bem$
|
|
1470
|
+
"class": bem$1E("loading-icon")
|
|
1471
1471
|
}, null);
|
|
1472
1472
|
}
|
|
1473
1473
|
if (slots.action) {
|
|
@@ -1477,9 +1477,9 @@ var stdin_default$1P = vue.defineComponent({
|
|
|
1477
1477
|
});
|
|
1478
1478
|
}
|
|
1479
1479
|
return [vue.createVNode("span", {
|
|
1480
|
-
"class": bem$
|
|
1480
|
+
"class": bem$1E("name")
|
|
1481
1481
|
}, [action.name]), action.subname && vue.createVNode("div", {
|
|
1482
|
-
"class": bem$
|
|
1482
|
+
"class": bem$1E("subname")
|
|
1483
1483
|
}, [action.subname])];
|
|
1484
1484
|
};
|
|
1485
1485
|
const renderAction = (action, index) => {
|
|
@@ -1507,7 +1507,7 @@ var stdin_default$1P = vue.defineComponent({
|
|
|
1507
1507
|
"style": {
|
|
1508
1508
|
color
|
|
1509
1509
|
},
|
|
1510
|
-
"class": [bem$
|
|
1510
|
+
"class": [bem$1E("item", {
|
|
1511
1511
|
loading,
|
|
1512
1512
|
disabled
|
|
1513
1513
|
}), className],
|
|
@@ -1518,25 +1518,25 @@ var stdin_default$1P = vue.defineComponent({
|
|
|
1518
1518
|
if (props2.description || slots.description) {
|
|
1519
1519
|
const content = slots.description ? slots.description() : props2.description;
|
|
1520
1520
|
return vue.createVNode("div", {
|
|
1521
|
-
"class": bem$
|
|
1521
|
+
"class": bem$1E("description")
|
|
1522
1522
|
}, [content]);
|
|
1523
1523
|
}
|
|
1524
1524
|
};
|
|
1525
1525
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
1526
|
-
"class": bem$
|
|
1526
|
+
"class": bem$1E(),
|
|
1527
1527
|
"position": "bottom",
|
|
1528
1528
|
"onUpdate:show": updateShow
|
|
1529
1529
|
}, pick(props2, popupInheritKeys$2)), {
|
|
1530
1530
|
default: () => {
|
|
1531
1531
|
var _a;
|
|
1532
1532
|
return [renderHeader(), renderDescription(), vue.createVNode("div", {
|
|
1533
|
-
"class": bem$
|
|
1533
|
+
"class": bem$1E("content")
|
|
1534
1534
|
}, [props2.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
|
1535
1535
|
}
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
1538
|
});
|
|
1539
|
-
const ActionSheet = withInstall(stdin_default$
|
|
1539
|
+
const ActionSheet = withInstall(stdin_default$1Q);
|
|
1540
1540
|
function deepClone(obj) {
|
|
1541
1541
|
if (!isDef(obj)) {
|
|
1542
1542
|
return obj;
|
|
@@ -1556,7 +1556,7 @@ function deepClone(obj) {
|
|
|
1556
1556
|
const DEFAULT_DURATION = 200;
|
|
1557
1557
|
const MOMENTUM_LIMIT_TIME = 300;
|
|
1558
1558
|
const MOMENTUM_LIMIT_DISTANCE = 15;
|
|
1559
|
-
const [name$
|
|
1559
|
+
const [name$1H, bem$1D] = createNamespace("picker-column");
|
|
1560
1560
|
function getElementTranslateY(element) {
|
|
1561
1561
|
const {
|
|
1562
1562
|
transform
|
|
@@ -1564,10 +1564,10 @@ function getElementTranslateY(element) {
|
|
|
1564
1564
|
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
|
1565
1565
|
return Number(translateY);
|
|
1566
1566
|
}
|
|
1567
|
-
const PICKER_KEY = Symbol(name$
|
|
1567
|
+
const PICKER_KEY = Symbol(name$1H);
|
|
1568
1568
|
const isOptionDisabled = (option) => isObject(option) && option.disabled;
|
|
1569
|
-
var stdin_default$
|
|
1570
|
-
name: name$
|
|
1569
|
+
var stdin_default$1P = vue.defineComponent({
|
|
1570
|
+
name: name$1H,
|
|
1571
1571
|
props: {
|
|
1572
1572
|
textKey: makeRequiredProp(String),
|
|
1573
1573
|
readonly: Boolean,
|
|
@@ -1742,7 +1742,7 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
1742
1742
|
role: "button",
|
|
1743
1743
|
style: optionStyle,
|
|
1744
1744
|
tabindex: disabled ? -1 : 0,
|
|
1745
|
-
class: bem$
|
|
1745
|
+
class: bem$1D("item", {
|
|
1746
1746
|
disabled,
|
|
1747
1747
|
selected: index === state.index
|
|
1748
1748
|
}),
|
|
@@ -1785,7 +1785,7 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
1785
1785
|
});
|
|
1786
1786
|
return () => vue.createVNode("div", {
|
|
1787
1787
|
"ref": root,
|
|
1788
|
-
"class": [bem$
|
|
1788
|
+
"class": [bem$1D(), props2.className],
|
|
1789
1789
|
"onTouchstartPassive": onTouchStart,
|
|
1790
1790
|
"onTouchend": onTouchEnd,
|
|
1791
1791
|
"onTouchcancel": onTouchEnd
|
|
@@ -1796,12 +1796,12 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
1796
1796
|
transitionDuration: `${state.duration}ms`,
|
|
1797
1797
|
transitionProperty: state.duration ? "all" : "none"
|
|
1798
1798
|
},
|
|
1799
|
-
"class": bem$
|
|
1799
|
+
"class": bem$1D("wrapper"),
|
|
1800
1800
|
"onTransitionend": stopMomentum
|
|
1801
1801
|
}, [renderOptions()])]);
|
|
1802
1802
|
}
|
|
1803
1803
|
});
|
|
1804
|
-
const [name$
|
|
1804
|
+
const [name$1G, bem$1C, t$j] = createNamespace("picker");
|
|
1805
1805
|
const pickerSharedProps = {
|
|
1806
1806
|
title: String,
|
|
1807
1807
|
loading: Boolean,
|
|
@@ -1824,8 +1824,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
|
1824
1824
|
toolbarPosition: makeStringProp("top"),
|
|
1825
1825
|
columnsFieldNames: Object
|
|
1826
1826
|
});
|
|
1827
|
-
var stdin_default$
|
|
1828
|
-
name: name$
|
|
1827
|
+
var stdin_default$1O = vue.defineComponent({
|
|
1828
|
+
name: name$1G,
|
|
1829
1829
|
props: pickerProps,
|
|
1830
1830
|
emits: ["confirm", "cancel", "change"],
|
|
1831
1831
|
setup(props2, {
|
|
@@ -2010,7 +2010,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
|
2010
2010
|
}
|
|
2011
2011
|
if (props2.title) {
|
|
2012
2012
|
return vue.createVNode("div", {
|
|
2013
|
-
"class": [bem$
|
|
2013
|
+
"class": [bem$1C("title"), "van-ellipsis"]
|
|
2014
2014
|
}, [props2.title]);
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
@@ -2018,7 +2018,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
|
2018
2018
|
const text = props2.cancelButtonText || t$j("cancel");
|
|
2019
2019
|
return vue.createVNode("button", {
|
|
2020
2020
|
"type": "button",
|
|
2021
|
-
"class": [bem$
|
|
2021
|
+
"class": [bem$1C("cancel"), HAPTICS_FEEDBACK],
|
|
2022
2022
|
"onClick": cancel
|
|
2023
2023
|
}, [slots.cancel ? slots.cancel() : text]);
|
|
2024
2024
|
};
|
|
@@ -2026,7 +2026,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
|
2026
2026
|
const text = props2.confirmButtonText || t$j("confirm");
|
|
2027
2027
|
return vue.createVNode("button", {
|
|
2028
2028
|
"type": "button",
|
|
2029
|
-
"class": [bem$
|
|
2029
|
+
"class": [bem$1C("confirm"), HAPTICS_FEEDBACK],
|
|
2030
2030
|
"onClick": confirm
|
|
2031
2031
|
}, [slots.confirm ? slots.confirm() : text]);
|
|
2032
2032
|
};
|
|
@@ -2034,13 +2034,13 @@ var stdin_default$1N = vue.defineComponent({
|
|
|
2034
2034
|
if (props2.showToolbar) {
|
|
2035
2035
|
const slot = slots.toolbar || slots.default;
|
|
2036
2036
|
return vue.createVNode("div", {
|
|
2037
|
-
"class": bem$
|
|
2037
|
+
"class": bem$1C("toolbar")
|
|
2038
2038
|
}, [slot ? slot() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
2041
2041
|
const renderColumnItems = () => formattedColumns.value.map((item, columnIndex) => {
|
|
2042
2042
|
var _a;
|
|
2043
|
-
return vue.createVNode(stdin_default$
|
|
2043
|
+
return vue.createVNode(stdin_default$1P, {
|
|
2044
2044
|
"textKey": columnsFieldNames.value.text,
|
|
2045
2045
|
"readonly": props2.readonly,
|
|
2046
2046
|
"allowHtml": props2.allowHtml,
|
|
@@ -2065,10 +2065,10 @@ var stdin_default$1N = vue.defineComponent({
|
|
|
2065
2065
|
backgroundSize: `100% ${(wrapHeight - itemHeight.value) / 2}px`
|
|
2066
2066
|
};
|
|
2067
2067
|
return [vue.createVNode("div", {
|
|
2068
|
-
"class": bem$
|
|
2068
|
+
"class": bem$1C("mask"),
|
|
2069
2069
|
"style": maskStyle
|
|
2070
2070
|
}, null), vue.createVNode("div", {
|
|
2071
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
|
2071
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1C("frame")],
|
|
2072
2072
|
"style": frameStyle
|
|
2073
2073
|
}, null)];
|
|
2074
2074
|
}
|
|
@@ -2080,7 +2080,7 @@ var stdin_default$1N = vue.defineComponent({
|
|
|
2080
2080
|
};
|
|
2081
2081
|
return vue.createVNode("div", {
|
|
2082
2082
|
"ref": columnsRef,
|
|
2083
|
-
"class": bem$
|
|
2083
|
+
"class": bem$1C("columns"),
|
|
2084
2084
|
"style": columnsStyle
|
|
2085
2085
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
|
2086
2086
|
};
|
|
@@ -2106,15 +2106,15 @@ var stdin_default$1N = vue.defineComponent({
|
|
|
2106
2106
|
return () => {
|
|
2107
2107
|
var _a, _b;
|
|
2108
2108
|
return vue.createVNode("div", {
|
|
2109
|
-
"class": bem$
|
|
2109
|
+
"class": bem$1C()
|
|
2110
2110
|
}, [props2.toolbarPosition === "top" ? renderToolbar() : null, props2.loading ? vue.createVNode(Loading, {
|
|
2111
|
-
"class": bem$
|
|
2111
|
+
"class": bem$1C("loading")
|
|
2112
2112
|
}, 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]);
|
|
2113
2113
|
};
|
|
2114
2114
|
}
|
|
2115
2115
|
});
|
|
2116
|
-
const Picker = withInstall(stdin_default$
|
|
2117
|
-
const [name$
|
|
2116
|
+
const Picker = withInstall(stdin_default$1O);
|
|
2117
|
+
const [name$1F, bem$1B] = createNamespace("area");
|
|
2118
2118
|
const EMPTY_CODE = "000000";
|
|
2119
2119
|
const INHERIT_SLOTS = ["title", "cancel", "confirm", "toolbar", "columns-top", "columns-bottom"];
|
|
2120
2120
|
const INHERIT_PROPS = ["title", "loading", "readonly", "itemHeight", "swipeDuration", "visibleItemCount", "cancelButtonText", "confirmButtonText"];
|
|
@@ -2132,8 +2132,8 @@ const areaProps = extend({}, pickerSharedProps, {
|
|
|
2132
2132
|
default: isOverseaCode
|
|
2133
2133
|
}
|
|
2134
2134
|
});
|
|
2135
|
-
var stdin_default$
|
|
2136
|
-
name: name$
|
|
2135
|
+
var stdin_default$1N = vue.defineComponent({
|
|
2136
|
+
name: name$1F,
|
|
2137
2137
|
props: areaProps,
|
|
2138
2138
|
emits: ["change", "confirm", "cancel"],
|
|
2139
2139
|
setup(props2, {
|
|
@@ -2333,7 +2333,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
2333
2333
|
const columns = state.columns.slice(0, +props2.columnsNum);
|
|
2334
2334
|
return vue.createVNode(Picker, vue.mergeProps({
|
|
2335
2335
|
"ref": pickerRef,
|
|
2336
|
-
"class": bem$
|
|
2336
|
+
"class": bem$1B(),
|
|
2337
2337
|
"columns": columns,
|
|
2338
2338
|
"columnsFieldNames": {
|
|
2339
2339
|
text: "name"
|
|
@@ -2345,8 +2345,8 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
2345
2345
|
};
|
|
2346
2346
|
}
|
|
2347
2347
|
});
|
|
2348
|
-
const Area = withInstall(stdin_default$
|
|
2349
|
-
const [name$
|
|
2348
|
+
const Area = withInstall(stdin_default$1N);
|
|
2349
|
+
const [name$1E, bem$1A] = createNamespace("checkbox-group");
|
|
2350
2350
|
const checkboxGroupProps = {
|
|
2351
2351
|
max: numericProp,
|
|
2352
2352
|
disabled: Boolean,
|
|
@@ -2357,9 +2357,9 @@ const checkboxGroupProps = {
|
|
|
2357
2357
|
modelValue: makeArrayProp(),
|
|
2358
2358
|
checkedColor: String
|
|
2359
2359
|
};
|
|
2360
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
|
2361
|
-
var stdin_default$
|
|
2362
|
-
name: name$
|
|
2360
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$1E);
|
|
2361
|
+
var stdin_default$1M = vue.defineComponent({
|
|
2362
|
+
name: name$1E,
|
|
2363
2363
|
props: checkboxGroupProps,
|
|
2364
2364
|
emits: ["change", "update:modelValue"],
|
|
2365
2365
|
setup(props2, {
|
|
@@ -2405,7 +2405,7 @@ var stdin_default$1L = vue.defineComponent({
|
|
|
2405
2405
|
return () => {
|
|
2406
2406
|
var _a;
|
|
2407
2407
|
return vue.createVNode("div", {
|
|
2408
|
-
"class": bem$
|
|
2408
|
+
"class": bem$1A([props2.direction])
|
|
2409
2409
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
2410
2410
|
};
|
|
2411
2411
|
}
|
|
@@ -2423,7 +2423,7 @@ const checkerProps = {
|
|
|
2423
2423
|
labelDisabled: Boolean,
|
|
2424
2424
|
allowUncheck: Boolean
|
|
2425
2425
|
};
|
|
2426
|
-
var stdin_default$
|
|
2426
|
+
var stdin_default$1L = vue.defineComponent({
|
|
2427
2427
|
props: extend({}, checkerProps, {
|
|
2428
2428
|
bem: makeRequiredProp(Function),
|
|
2429
2429
|
role: String,
|
|
@@ -2529,12 +2529,12 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
2531
|
});
|
|
2532
|
-
const [name$
|
|
2532
|
+
const [name$1D, bem$1z] = createNamespace("checkbox");
|
|
2533
2533
|
const checkboxProps = extend({}, checkerProps, {
|
|
2534
2534
|
bindGroup: truthProp
|
|
2535
2535
|
});
|
|
2536
|
-
var stdin_default$
|
|
2537
|
-
name: name$
|
|
2536
|
+
var stdin_default$1K = vue.defineComponent({
|
|
2537
|
+
name: name$1D,
|
|
2538
2538
|
props: checkboxProps,
|
|
2539
2539
|
emits: ["change", "update:modelValue"],
|
|
2540
2540
|
setup(props2, {
|
|
@@ -2591,8 +2591,8 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
2591
2591
|
checked
|
|
2592
2592
|
});
|
|
2593
2593
|
use.useCustomFieldValue(() => props2.modelValue);
|
|
2594
|
-
return () => vue.createVNode(stdin_default$
|
|
2595
|
-
"bem": bem$
|
|
2594
|
+
return () => vue.createVNode(stdin_default$1L, vue.mergeProps({
|
|
2595
|
+
"bem": bem$1z,
|
|
2596
2596
|
"role": "checkbox",
|
|
2597
2597
|
"parent": parent,
|
|
2598
2598
|
"checked": checked.value,
|
|
@@ -2600,8 +2600,8 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
2600
2600
|
}, props2), pick(slots, ["default", "icon"]));
|
|
2601
2601
|
}
|
|
2602
2602
|
});
|
|
2603
|
-
const Checkbox = withInstall(stdin_default$
|
|
2604
|
-
const [name$
|
|
2603
|
+
const Checkbox = withInstall(stdin_default$1K);
|
|
2604
|
+
const [name$1C, bem$1y] = createNamespace("radio-group");
|
|
2605
2605
|
const radioGroupProps = {
|
|
2606
2606
|
disabled: Boolean,
|
|
2607
2607
|
iconSize: numericProp,
|
|
@@ -2612,9 +2612,9 @@ const radioGroupProps = {
|
|
|
2612
2612
|
checkedColor: String,
|
|
2613
2613
|
allowUncheck: Boolean
|
|
2614
2614
|
};
|
|
2615
|
-
const RADIO_KEY = Symbol(name$
|
|
2616
|
-
var stdin_default$
|
|
2617
|
-
name: name$
|
|
2615
|
+
const RADIO_KEY = Symbol(name$1C);
|
|
2616
|
+
var stdin_default$1J = vue.defineComponent({
|
|
2617
|
+
name: name$1C,
|
|
2618
2618
|
props: radioGroupProps,
|
|
2619
2619
|
emits: ["change", "update:modelValue"],
|
|
2620
2620
|
setup(props2, {
|
|
@@ -2634,15 +2634,15 @@ var stdin_default$1I = vue.defineComponent({
|
|
|
2634
2634
|
return () => {
|
|
2635
2635
|
var _a;
|
|
2636
2636
|
return vue.createVNode("div", {
|
|
2637
|
-
"class": bem$
|
|
2637
|
+
"class": bem$1y([props2.direction]),
|
|
2638
2638
|
"role": "radiogroup"
|
|
2639
2639
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
2640
2640
|
};
|
|
2641
2641
|
}
|
|
2642
2642
|
});
|
|
2643
|
-
const [name$
|
|
2644
|
-
var stdin_default$
|
|
2645
|
-
name: name$
|
|
2643
|
+
const [name$1B, bem$1x] = createNamespace("radio");
|
|
2644
|
+
var stdin_default$1I = vue.defineComponent({
|
|
2645
|
+
name: name$1B,
|
|
2646
2646
|
props: checkerProps,
|
|
2647
2647
|
emits: ["update:modelValue"],
|
|
2648
2648
|
setup(props2, {
|
|
@@ -2671,8 +2671,8 @@ var stdin_default$1H = vue.defineComponent({
|
|
|
2671
2671
|
emit("update:modelValue", val);
|
|
2672
2672
|
}
|
|
2673
2673
|
};
|
|
2674
|
-
return () => vue.createVNode(stdin_default$
|
|
2675
|
-
"bem": bem$
|
|
2674
|
+
return () => vue.createVNode(stdin_default$1L, vue.mergeProps({
|
|
2675
|
+
"bem": bem$1x,
|
|
2676
2676
|
"role": "radio",
|
|
2677
2677
|
"parent": parent,
|
|
2678
2678
|
"checked": checked(),
|
|
@@ -2682,8 +2682,8 @@ var stdin_default$1H = vue.defineComponent({
|
|
|
2682
2682
|
}, props2), pick(slots, ["default", "icon"]));
|
|
2683
2683
|
}
|
|
2684
2684
|
});
|
|
2685
|
-
const Radio = withInstall(stdin_default$
|
|
2686
|
-
const [name$
|
|
2685
|
+
const Radio = withInstall(stdin_default$1I);
|
|
2686
|
+
const [name$1A, bem$1w] = createNamespace("cell");
|
|
2687
2687
|
const cellSharedProps = {
|
|
2688
2688
|
icon: String,
|
|
2689
2689
|
size: String,
|
|
@@ -2727,8 +2727,8 @@ const cellSharedProps = {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
};
|
|
2729
2729
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
|
2730
|
-
var stdin_default$
|
|
2731
|
-
name: name$
|
|
2730
|
+
var stdin_default$1H = vue.defineComponent({
|
|
2731
|
+
name: name$1A,
|
|
2732
2732
|
props: cellProps,
|
|
2733
2733
|
emits: ["click", "update:leftSelect", "update:rightSelect"],
|
|
2734
2734
|
setup(props2, {
|
|
@@ -2774,17 +2774,17 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2774
2774
|
const showLabel = slots.label || isDef(props2.label);
|
|
2775
2775
|
if (showLabel) {
|
|
2776
2776
|
return vue.createVNode("div", {
|
|
2777
|
-
"class": [bem$
|
|
2777
|
+
"class": [bem$1w("label"), props2.labelClass]
|
|
2778
2778
|
}, [slots.label ? slots.label() : props2.label]);
|
|
2779
2779
|
}
|
|
2780
2780
|
};
|
|
2781
2781
|
const renderTitle = () => {
|
|
2782
2782
|
if (slots.title || isDef(props2.title)) {
|
|
2783
2783
|
return vue.createVNode("div", {
|
|
2784
|
-
"class": [bem$
|
|
2784
|
+
"class": [bem$1w("title"), props2.titleClass],
|
|
2785
2785
|
"style": props2.titleStyle
|
|
2786
2786
|
}, [vue.createVNode("div", {
|
|
2787
|
-
"class": bem$
|
|
2787
|
+
"class": bem$1w("title-row")
|
|
2788
2788
|
}, [slots.title ? slots.title() : vue.createVNode("span", null, [props2.title]), renderTags(), renderTitleIcon()]), renderLabel()]);
|
|
2789
2789
|
}
|
|
2790
2790
|
};
|
|
@@ -2794,7 +2794,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2794
2794
|
if (hasValue) {
|
|
2795
2795
|
const hasTitle = slots.title || isDef(props2.title);
|
|
2796
2796
|
return vue.createVNode("div", {
|
|
2797
|
-
"class": [bem$
|
|
2797
|
+
"class": [bem$1w("value", {
|
|
2798
2798
|
alone: !hasTitle
|
|
2799
2799
|
}), props2.valueClass]
|
|
2800
2800
|
}, [slot ? slot() : vue.createVNode("span", null, [props2.value])]);
|
|
@@ -2807,7 +2807,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2807
2807
|
if (props2.icon) {
|
|
2808
2808
|
return vue.createVNode(Icon, {
|
|
2809
2809
|
"name": props2.icon,
|
|
2810
|
-
"class": bem$
|
|
2810
|
+
"class": bem$1w("left-icon"),
|
|
2811
2811
|
"classPrefix": props2.iconPrefix
|
|
2812
2812
|
}, null);
|
|
2813
2813
|
}
|
|
@@ -2818,13 +2818,13 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2818
2818
|
const selected = getSelectState(position);
|
|
2819
2819
|
if (slot) {
|
|
2820
2820
|
return vue.createVNode("div", {
|
|
2821
|
-
"class": bem$
|
|
2821
|
+
"class": bem$1w(`${position}-select`)
|
|
2822
2822
|
}, [slot()]);
|
|
2823
2823
|
}
|
|
2824
2824
|
if (hasSelect(position)) {
|
|
2825
2825
|
const checkboxSize = (_b2 = (_a2 = props2.size) != null ? _a2 : config == null ? void 0 : config.cellSize) != null ? _b2 : "normal";
|
|
2826
2826
|
return vue.createVNode("div", {
|
|
2827
|
-
"class": bem$
|
|
2827
|
+
"class": bem$1w(`${position}-select`),
|
|
2828
2828
|
"onClick": (event) => event.stopPropagation()
|
|
2829
2829
|
}, [props2.selectType === "radio" ? vue.createVNode(Radio, {
|
|
2830
2830
|
"modelValue": selected ? "selected" : "",
|
|
@@ -2845,12 +2845,12 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2845
2845
|
const avatar = position === "left" ? props2.avatar : props2.rightAvatar;
|
|
2846
2846
|
if (slot) {
|
|
2847
2847
|
return vue.createVNode("div", {
|
|
2848
|
-
"class": bem$
|
|
2848
|
+
"class": bem$1w(`${position}-avatar`)
|
|
2849
2849
|
}, [slot()]);
|
|
2850
2850
|
}
|
|
2851
2851
|
if (avatar) {
|
|
2852
2852
|
return vue.createVNode("img", {
|
|
2853
|
-
"class": bem$
|
|
2853
|
+
"class": bem$1w(`${position}-avatar`),
|
|
2854
2854
|
"src": avatar,
|
|
2855
2855
|
"alt": ""
|
|
2856
2856
|
}, null);
|
|
@@ -2859,12 +2859,12 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2859
2859
|
const renderBlueMark = () => {
|
|
2860
2860
|
if (slots["blue-mark"]) {
|
|
2861
2861
|
return vue.createVNode("div", {
|
|
2862
|
-
"class": bem$
|
|
2862
|
+
"class": bem$1w("blue-mark")
|
|
2863
2863
|
}, [slots["blue-mark"]()]);
|
|
2864
2864
|
}
|
|
2865
2865
|
if (props2.blueMark) {
|
|
2866
2866
|
return vue.createVNode("span", {
|
|
2867
|
-
"class": bem$
|
|
2867
|
+
"class": bem$1w("blue-mark")
|
|
2868
2868
|
}, null);
|
|
2869
2869
|
}
|
|
2870
2870
|
};
|
|
@@ -2872,52 +2872,52 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2872
2872
|
var _a2;
|
|
2873
2873
|
if (slots.tags) {
|
|
2874
2874
|
return vue.createVNode("div", {
|
|
2875
|
-
"class": bem$
|
|
2875
|
+
"class": bem$1w("tags")
|
|
2876
2876
|
}, [slots.tags()]);
|
|
2877
2877
|
}
|
|
2878
2878
|
if ((_a2 = props2.tags) == null ? void 0 : _a2.length) {
|
|
2879
2879
|
return vue.createVNode("div", {
|
|
2880
|
-
"class": bem$
|
|
2880
|
+
"class": bem$1w("tags")
|
|
2881
2881
|
}, [props2.tags.map((tag, index) => vue.createVNode("span", {
|
|
2882
2882
|
"key": `${tag}-${index}`,
|
|
2883
|
-
"class": bem$
|
|
2883
|
+
"class": bem$1w("tag")
|
|
2884
2884
|
}, [tag]))]);
|
|
2885
2885
|
}
|
|
2886
2886
|
};
|
|
2887
2887
|
const renderTitleIcon = () => {
|
|
2888
2888
|
if (slots["title-icon"]) {
|
|
2889
2889
|
return vue.createVNode("div", {
|
|
2890
|
-
"class": bem$
|
|
2890
|
+
"class": bem$1w("title-icon")
|
|
2891
2891
|
}, [slots["title-icon"]()]);
|
|
2892
2892
|
}
|
|
2893
2893
|
if (props2.titleIcon) {
|
|
2894
2894
|
return vue.createVNode(Icon, {
|
|
2895
2895
|
"name": props2.titleIcon,
|
|
2896
|
-
"class": bem$
|
|
2896
|
+
"class": bem$1w("title-icon")
|
|
2897
2897
|
}, null);
|
|
2898
2898
|
}
|
|
2899
2899
|
};
|
|
2900
2900
|
const renderNote = () => {
|
|
2901
2901
|
if (slots.note) {
|
|
2902
2902
|
return vue.createVNode("div", {
|
|
2903
|
-
"class": bem$
|
|
2903
|
+
"class": bem$1w("note")
|
|
2904
2904
|
}, [slots.note()]);
|
|
2905
2905
|
}
|
|
2906
2906
|
if (isDef(props2.note)) {
|
|
2907
2907
|
return vue.createVNode("div", {
|
|
2908
|
-
"class": bem$
|
|
2908
|
+
"class": bem$1w("note")
|
|
2909
2909
|
}, [props2.note]);
|
|
2910
2910
|
}
|
|
2911
2911
|
};
|
|
2912
2912
|
const renderBadge = () => {
|
|
2913
2913
|
if (slots.badge) {
|
|
2914
2914
|
return vue.createVNode("div", {
|
|
2915
|
-
"class": bem$
|
|
2915
|
+
"class": bem$1w("badge")
|
|
2916
2916
|
}, [slots.badge()]);
|
|
2917
2917
|
}
|
|
2918
2918
|
if (isDef(props2.badge)) {
|
|
2919
2919
|
return vue.createVNode("div", {
|
|
2920
|
-
"class": bem$
|
|
2920
|
+
"class": bem$1w("badge")
|
|
2921
2921
|
}, [vue.createVNode(Badge, {
|
|
2922
2922
|
"content": props2.badge,
|
|
2923
2923
|
"showZero": true
|
|
@@ -2931,14 +2931,14 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2931
2931
|
if (props2.rightIcon) {
|
|
2932
2932
|
return vue.createVNode(Icon, {
|
|
2933
2933
|
"name": props2.rightIcon,
|
|
2934
|
-
"class": bem$
|
|
2934
|
+
"class": bem$1w("right-icon")
|
|
2935
2935
|
}, null);
|
|
2936
2936
|
}
|
|
2937
2937
|
if (props2.isLink) {
|
|
2938
2938
|
const name2 = props2.arrowDirection && props2.arrowDirection !== "right" ? `arrow-${props2.arrowDirection}` : "arrow";
|
|
2939
2939
|
return vue.createVNode(Icon, {
|
|
2940
2940
|
"name": name2,
|
|
2941
|
-
"class": bem$
|
|
2941
|
+
"class": bem$1w("right-icon")
|
|
2942
2942
|
}, null);
|
|
2943
2943
|
}
|
|
2944
2944
|
};
|
|
@@ -2970,7 +2970,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2970
2970
|
}
|
|
2971
2971
|
};
|
|
2972
2972
|
return vue.createVNode("div", {
|
|
2973
|
-
"class": [bem$
|
|
2973
|
+
"class": [bem$1w(classes), props2.errorBorder ? "van-cell-error-border" : ""],
|
|
2974
2974
|
"role": clickable ? "button" : void 0,
|
|
2975
2975
|
"tabindex": clickable ? 0 : void 0,
|
|
2976
2976
|
"onClick": onClick
|
|
@@ -2978,8 +2978,8 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
2978
2978
|
};
|
|
2979
2979
|
}
|
|
2980
2980
|
});
|
|
2981
|
-
const Cell = withInstall(stdin_default$
|
|
2982
|
-
const [name$
|
|
2981
|
+
const Cell = withInstall(stdin_default$1H);
|
|
2982
|
+
const [name$1z, bem$1v] = createNamespace("form");
|
|
2983
2983
|
const formProps = {
|
|
2984
2984
|
colon: Boolean,
|
|
2985
2985
|
disabled: Boolean,
|
|
@@ -2998,8 +2998,8 @@ const formProps = {
|
|
|
2998
2998
|
default: "onBlur"
|
|
2999
2999
|
}
|
|
3000
3000
|
};
|
|
3001
|
-
var stdin_default$
|
|
3002
|
-
name: name$
|
|
3001
|
+
var stdin_default$1G = vue.defineComponent({
|
|
3002
|
+
name: name$1z,
|
|
3003
3003
|
props: formProps,
|
|
3004
3004
|
emits: ["submit", "failed"],
|
|
3005
3005
|
setup(props2, {
|
|
@@ -3123,13 +3123,13 @@ var stdin_default$1F = vue.defineComponent({
|
|
|
3123
3123
|
return () => {
|
|
3124
3124
|
var _a;
|
|
3125
3125
|
return vue.createVNode("form", {
|
|
3126
|
-
"class": bem$
|
|
3126
|
+
"class": bem$1v(),
|
|
3127
3127
|
"onSubmit": onSubmit
|
|
3128
3128
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
3129
3129
|
};
|
|
3130
3130
|
}
|
|
3131
3131
|
});
|
|
3132
|
-
const Form = withInstall(stdin_default$
|
|
3132
|
+
const Form = withInstall(stdin_default$1G);
|
|
3133
3133
|
function isEmptyValue(value) {
|
|
3134
3134
|
if (Array.isArray(value)) {
|
|
3135
3135
|
return !value.length;
|
|
@@ -3227,7 +3227,7 @@ function useId() {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
return `${name2}-${++current}`;
|
|
3229
3229
|
}
|
|
3230
|
-
const [name$
|
|
3230
|
+
const [name$1y, bem$1u] = createNamespace("field");
|
|
3231
3231
|
const fieldSharedProps = {
|
|
3232
3232
|
id: String,
|
|
3233
3233
|
name: String,
|
|
@@ -3280,8 +3280,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
|
3280
3280
|
default: false
|
|
3281
3281
|
}
|
|
3282
3282
|
});
|
|
3283
|
-
var stdin_default$
|
|
3284
|
-
name: name$
|
|
3283
|
+
var stdin_default$1F = vue.defineComponent({
|
|
3284
|
+
name: name$1y,
|
|
3285
3285
|
props: fieldProps,
|
|
3286
3286
|
emits: ["blur", "focus", "clear", "keypress", "click-input", "end-validate", "start-validate", "click-left-icon", "click-right-icon", "update:modelValue"],
|
|
3287
3287
|
setup(props2, {
|
|
@@ -3553,7 +3553,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
3553
3553
|
const getInputId = () => props2.id || `${id}-input`;
|
|
3554
3554
|
const getValidationStatus = () => state.status;
|
|
3555
3555
|
const renderInput = () => {
|
|
3556
|
-
const controlClass = bem$
|
|
3556
|
+
const controlClass = bem$1u("control", [getProp("inputAlign"), {
|
|
3557
3557
|
error: showError.value,
|
|
3558
3558
|
custom: !!slots.input,
|
|
3559
3559
|
"min-height": props2.type === "textarea" && !props2.autosize
|
|
@@ -3595,7 +3595,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
3595
3595
|
const leftIconSlot = slots["left-icon"];
|
|
3596
3596
|
if (props2.leftIcon || leftIconSlot) {
|
|
3597
3597
|
return vue.createVNode("div", {
|
|
3598
|
-
"class": bem$
|
|
3598
|
+
"class": bem$1u("left-icon"),
|
|
3599
3599
|
"onClick": onClickLeftIcon
|
|
3600
3600
|
}, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
|
|
3601
3601
|
"name": props2.leftIcon,
|
|
@@ -3607,7 +3607,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
3607
3607
|
const rightIconSlot = slots["right-icon"];
|
|
3608
3608
|
if (props2.rightIcon || rightIconSlot) {
|
|
3609
3609
|
return vue.createVNode("div", {
|
|
3610
|
-
"class": bem$
|
|
3610
|
+
"class": bem$1u("right-icon"),
|
|
3611
3611
|
"onClick": onClickRightIcon
|
|
3612
3612
|
}, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
|
|
3613
3613
|
"name": props2.rightIcon,
|
|
@@ -3619,9 +3619,9 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
3619
3619
|
if (props2.showWordLimit && props2.maxlength) {
|
|
3620
3620
|
const count = getStringLength(getModelValue());
|
|
3621
3621
|
return vue.createVNode("div", {
|
|
3622
|
-
"class": bem$
|
|
3622
|
+
"class": bem$1u("word-limit")
|
|
3623
3623
|
}, [vue.createVNode("span", {
|
|
3624
|
-
"class": bem$
|
|
3624
|
+
"class": bem$1u("word-num")
|
|
3625
3625
|
}, [count]), vue.createTextVNode("/"), props2.maxlength]);
|
|
3626
3626
|
}
|
|
3627
3627
|
};
|
|
@@ -3634,7 +3634,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
3634
3634
|
const slot = slots["error-message"];
|
|
3635
3635
|
const errorMessageAlign = getProp("errorMessageAlign");
|
|
3636
3636
|
return vue.createVNode("div", {
|
|
3637
|
-
"class": bem$
|
|
3637
|
+
"class": bem$1u("error-message", errorMessageAlign)
|
|
3638
3638
|
}, [slot ? slot({
|
|
3639
3639
|
message
|
|
3640
3640
|
}) : message]);
|
|
@@ -3653,13 +3653,13 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
3653
3653
|
}
|
|
3654
3654
|
};
|
|
3655
3655
|
const renderFieldBody = () => [vue.createVNode("div", {
|
|
3656
|
-
"class": bem$
|
|
3656
|
+
"class": bem$1u("body")
|
|
3657
3657
|
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
|
3658
3658
|
"ref": clearIconRef,
|
|
3659
3659
|
"name": props2.clearIcon,
|
|
3660
|
-
"class": bem$
|
|
3660
|
+
"class": bem$1u("clear")
|
|
3661
3661
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
|
3662
|
-
"class": bem$
|
|
3662
|
+
"class": bem$1u("button")
|
|
3663
3663
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
|
3664
3664
|
useExpose({
|
|
3665
3665
|
blur,
|
|
@@ -3693,12 +3693,12 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
3693
3693
|
return () => {
|
|
3694
3694
|
const disabled = getProp("disabled");
|
|
3695
3695
|
const labelAlign = getProp("labelAlign");
|
|
3696
|
-
const
|
|
3696
|
+
const Label2 = renderLabel();
|
|
3697
3697
|
const LeftIcon = renderLeftIcon();
|
|
3698
3698
|
return vue.createVNode(Cell, {
|
|
3699
3699
|
"size": props2.size,
|
|
3700
3700
|
"icon": props2.leftIcon,
|
|
3701
|
-
"class": bem$
|
|
3701
|
+
"class": bem$1u({
|
|
3702
3702
|
error: showError.value,
|
|
3703
3703
|
disabled,
|
|
3704
3704
|
[`label-${labelAlign}`]: labelAlign,
|
|
@@ -3710,21 +3710,21 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
3710
3710
|
"isLink": props2.isLink,
|
|
3711
3711
|
"clickable": props2.clickable,
|
|
3712
3712
|
"titleStyle": labelStyle.value,
|
|
3713
|
-
"valueClass": bem$
|
|
3714
|
-
"titleClass": [bem$
|
|
3713
|
+
"valueClass": bem$1u("value"),
|
|
3714
|
+
"titleClass": [bem$1u("label", [labelAlign, {
|
|
3715
3715
|
required: props2.required
|
|
3716
3716
|
}]), props2.labelClass],
|
|
3717
3717
|
"arrowDirection": props2.arrowDirection
|
|
3718
3718
|
}, {
|
|
3719
3719
|
icon: LeftIcon ? () => LeftIcon : null,
|
|
3720
|
-
title:
|
|
3720
|
+
title: Label2 ? () => Label2 : null,
|
|
3721
3721
|
value: renderFieldBody,
|
|
3722
3722
|
extra: slots.extra
|
|
3723
3723
|
});
|
|
3724
3724
|
};
|
|
3725
3725
|
}
|
|
3726
3726
|
});
|
|
3727
|
-
const Field = withInstall(stdin_default$
|
|
3727
|
+
const Field = withInstall(stdin_default$1F);
|
|
3728
3728
|
function usePopupState() {
|
|
3729
3729
|
const state = vue.reactive({
|
|
3730
3730
|
show: false
|
|
@@ -3771,7 +3771,7 @@ function lockClick(lock) {
|
|
|
3771
3771
|
}
|
|
3772
3772
|
}
|
|
3773
3773
|
}
|
|
3774
|
-
const [name$
|
|
3774
|
+
const [name$1x, bem$1t] = createNamespace("toast");
|
|
3775
3775
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
|
3776
3776
|
const toastProps = {
|
|
3777
3777
|
icon: String,
|
|
@@ -3793,8 +3793,8 @@ const toastProps = {
|
|
|
3793
3793
|
closeOnClick: Boolean,
|
|
3794
3794
|
closeOnClickOverlay: Boolean
|
|
3795
3795
|
};
|
|
3796
|
-
var stdin_default$
|
|
3797
|
-
name: name$
|
|
3796
|
+
var stdin_default$1E = vue.defineComponent({
|
|
3797
|
+
name: name$1x,
|
|
3798
3798
|
props: toastProps,
|
|
3799
3799
|
emits: ["update:show"],
|
|
3800
3800
|
setup(props2, {
|
|
@@ -3829,13 +3829,13 @@ var stdin_default$1D = vue.defineComponent({
|
|
|
3829
3829
|
return vue.createVNode(Icon, {
|
|
3830
3830
|
"name": icon || type,
|
|
3831
3831
|
"size": iconSize,
|
|
3832
|
-
"class": bem$
|
|
3832
|
+
"class": bem$1t("icon"),
|
|
3833
3833
|
"classPrefix": iconPrefix
|
|
3834
3834
|
}, null);
|
|
3835
3835
|
}
|
|
3836
3836
|
if (type === "loading") {
|
|
3837
3837
|
return vue.createVNode(Loading, {
|
|
3838
|
-
"class": bem$
|
|
3838
|
+
"class": bem$1t("loading"),
|
|
3839
3839
|
"size": iconSize,
|
|
3840
3840
|
"type": loadingType
|
|
3841
3841
|
}, null);
|
|
@@ -3849,10 +3849,10 @@ var stdin_default$1D = vue.defineComponent({
|
|
|
3849
3849
|
if (isDef(message) && message !== "") {
|
|
3850
3850
|
return type === "html" ? vue.createVNode("div", {
|
|
3851
3851
|
"key": 0,
|
|
3852
|
-
"class": bem$
|
|
3852
|
+
"class": bem$1t("text"),
|
|
3853
3853
|
"innerHTML": String(message)
|
|
3854
3854
|
}, null) : vue.createVNode("div", {
|
|
3855
|
-
"class": bem$
|
|
3855
|
+
"class": bem$1t("text")
|
|
3856
3856
|
}, [message]);
|
|
3857
3857
|
}
|
|
3858
3858
|
};
|
|
@@ -3868,7 +3868,7 @@ var stdin_default$1D = vue.defineComponent({
|
|
|
3868
3868
|
vue.onMounted(toggleClickable);
|
|
3869
3869
|
vue.onUnmounted(toggleClickable);
|
|
3870
3870
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
3871
|
-
"class": [bem$
|
|
3871
|
+
"class": [bem$1t([props2.position, {
|
|
3872
3872
|
[props2.type]: !props2.icon
|
|
3873
3873
|
}]), props2.className],
|
|
3874
3874
|
"lockScroll": false,
|
|
@@ -3937,7 +3937,7 @@ function createInstance() {
|
|
|
3937
3937
|
onClosed,
|
|
3938
3938
|
"onUpdate:show": toggle
|
|
3939
3939
|
};
|
|
3940
|
-
return vue.createVNode(stdin_default$
|
|
3940
|
+
return vue.createVNode(stdin_default$1E, vue.mergeProps(state, attrs), null);
|
|
3941
3941
|
};
|
|
3942
3942
|
vue.watch(message, (val) => {
|
|
3943
3943
|
state.message = val;
|
|
@@ -4009,10 +4009,10 @@ Toast.allowMultiple = (value = true) => {
|
|
|
4009
4009
|
allowMultiple = value;
|
|
4010
4010
|
};
|
|
4011
4011
|
Toast.install = (app) => {
|
|
4012
|
-
app.use(withInstall(stdin_default$
|
|
4012
|
+
app.use(withInstall(stdin_default$1E));
|
|
4013
4013
|
app.config.globalProperties.$toast = Toast;
|
|
4014
4014
|
};
|
|
4015
|
-
const [name$
|
|
4015
|
+
const [name$1w, bem$1s] = createNamespace("switch");
|
|
4016
4016
|
const switchProps = {
|
|
4017
4017
|
size: numericProp,
|
|
4018
4018
|
loading: Boolean,
|
|
@@ -4029,8 +4029,8 @@ const switchProps = {
|
|
|
4029
4029
|
default: false
|
|
4030
4030
|
}
|
|
4031
4031
|
};
|
|
4032
|
-
var stdin_default$
|
|
4033
|
-
name: name$
|
|
4032
|
+
var stdin_default$1D = vue.defineComponent({
|
|
4033
|
+
name: name$1w,
|
|
4034
4034
|
props: switchProps,
|
|
4035
4035
|
emits: ["change", "update:modelValue"],
|
|
4036
4036
|
setup(props2, {
|
|
@@ -4049,7 +4049,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
|
4049
4049
|
if (props2.loading) {
|
|
4050
4050
|
const color = isChecked() ? props2.activeColor : props2.inactiveColor;
|
|
4051
4051
|
return vue.createVNode(Loading, {
|
|
4052
|
-
"class": bem$
|
|
4052
|
+
"class": bem$1s("loading"),
|
|
4053
4053
|
"color": color
|
|
4054
4054
|
}, null);
|
|
4055
4055
|
}
|
|
@@ -4074,7 +4074,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
|
4074
4074
|
};
|
|
4075
4075
|
return vue.createVNode("div", {
|
|
4076
4076
|
"role": "switch",
|
|
4077
|
-
"class": bem$
|
|
4077
|
+
"class": bem$1s({
|
|
4078
4078
|
on: checked,
|
|
4079
4079
|
loading,
|
|
4080
4080
|
disabled
|
|
@@ -4084,16 +4084,16 @@ var stdin_default$1C = vue.defineComponent({
|
|
|
4084
4084
|
"aria-checked": checked,
|
|
4085
4085
|
"onClick": onClick
|
|
4086
4086
|
}, [vue.createVNode("div", {
|
|
4087
|
-
"class": bem$
|
|
4087
|
+
"class": bem$1s("node")
|
|
4088
4088
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
4089
4089
|
};
|
|
4090
4090
|
}
|
|
4091
4091
|
});
|
|
4092
|
-
const Switch = withInstall(stdin_default$
|
|
4093
|
-
const [name$
|
|
4092
|
+
const Switch = withInstall(stdin_default$1D);
|
|
4093
|
+
const [name$1v, bem$1r] = createNamespace("address-edit-detail");
|
|
4094
4094
|
const t$i = createNamespace("address-edit")[2];
|
|
4095
|
-
var stdin_default$
|
|
4096
|
-
name: name$
|
|
4095
|
+
var stdin_default$1C = vue.defineComponent({
|
|
4096
|
+
name: name$1v,
|
|
4097
4097
|
props: {
|
|
4098
4098
|
show: Boolean,
|
|
4099
4099
|
rows: numericProp,
|
|
@@ -4116,7 +4116,7 @@ var stdin_default$1B = vue.defineComponent({
|
|
|
4116
4116
|
};
|
|
4117
4117
|
const renderSearchTitle = (express) => {
|
|
4118
4118
|
if (express.name) {
|
|
4119
|
-
const text = express.name.replace(props2.value, `<span class=${bem$
|
|
4119
|
+
const text = express.name.replace(props2.value, `<span class=${bem$1r("keyword")}>${props2.value}</span>`);
|
|
4120
4120
|
return vue.createVNode("div", {
|
|
4121
4121
|
"innerHTML": text
|
|
4122
4122
|
}, null);
|
|
@@ -4134,7 +4134,7 @@ var stdin_default$1B = vue.defineComponent({
|
|
|
4134
4134
|
"key": express.name + express.address,
|
|
4135
4135
|
"icon": "location-o",
|
|
4136
4136
|
"label": express.address,
|
|
4137
|
-
"class": bem$
|
|
4137
|
+
"class": bem$1r("search-item"),
|
|
4138
4138
|
"border": false,
|
|
4139
4139
|
"onClick": () => onSelect(express)
|
|
4140
4140
|
}, {
|
|
@@ -4150,7 +4150,7 @@ var stdin_default$1B = vue.defineComponent({
|
|
|
4150
4150
|
"autosize": true,
|
|
4151
4151
|
"clearable": true,
|
|
4152
4152
|
"ref": field,
|
|
4153
|
-
"class": bem$
|
|
4153
|
+
"class": bem$1r(),
|
|
4154
4154
|
"rows": props2.rows,
|
|
4155
4155
|
"type": "textarea",
|
|
4156
4156
|
"rules": props2.rules,
|
|
@@ -4167,7 +4167,7 @@ var stdin_default$1B = vue.defineComponent({
|
|
|
4167
4167
|
};
|
|
4168
4168
|
}
|
|
4169
4169
|
});
|
|
4170
|
-
const [name$
|
|
4170
|
+
const [name$1u, bem$1q, t$h] = createNamespace("address-edit");
|
|
4171
4171
|
const DEFAULT_DATA = {
|
|
4172
4172
|
name: "",
|
|
4173
4173
|
tel: "",
|
|
@@ -4214,8 +4214,8 @@ const addressEditProps = {
|
|
|
4214
4214
|
default: isPostal
|
|
4215
4215
|
}
|
|
4216
4216
|
};
|
|
4217
|
-
var stdin_default$
|
|
4218
|
-
name: name$
|
|
4217
|
+
var stdin_default$1B = vue.defineComponent({
|
|
4218
|
+
name: name$1u,
|
|
4219
4219
|
props: addressEditProps,
|
|
4220
4220
|
emits: ["save", "focus", "delete", "click-area", "change-area", "change-detail", "select-search", "change-default"],
|
|
4221
4221
|
setup(props2, {
|
|
@@ -4341,7 +4341,7 @@ var stdin_default$1A = vue.defineComponent({
|
|
|
4341
4341
|
return vue.withDirectives(vue.createVNode(Cell, {
|
|
4342
4342
|
"center": true,
|
|
4343
4343
|
"title": t$h("defaultAddress"),
|
|
4344
|
-
"class": bem$
|
|
4344
|
+
"class": bem$1q("default")
|
|
4345
4345
|
}, slots2), [[vue.vShow, !hideBottomFields.value]]);
|
|
4346
4346
|
}
|
|
4347
4347
|
};
|
|
@@ -4363,13 +4363,13 @@ var stdin_default$1A = vue.defineComponent({
|
|
|
4363
4363
|
disableArea
|
|
4364
4364
|
} = props2;
|
|
4365
4365
|
return vue.createVNode(Form, {
|
|
4366
|
-
"class": bem$
|
|
4366
|
+
"class": bem$1q(),
|
|
4367
4367
|
"onSubmit": onSave
|
|
4368
4368
|
}, {
|
|
4369
4369
|
default: () => {
|
|
4370
4370
|
var _a;
|
|
4371
4371
|
return [vue.createVNode("div", {
|
|
4372
|
-
"class": bem$
|
|
4372
|
+
"class": bem$1q("fields")
|
|
4373
4373
|
}, [vue.createVNode(Field, {
|
|
4374
4374
|
"modelValue": data.name,
|
|
4375
4375
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
|
@@ -4400,7 +4400,7 @@ var stdin_default$1A = vue.defineComponent({
|
|
|
4400
4400
|
emit("click-area");
|
|
4401
4401
|
showAreaPopup.value = !disableArea;
|
|
4402
4402
|
}
|
|
4403
|
-
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$
|
|
4403
|
+
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$1C, {
|
|
4404
4404
|
"show": props2.showDetail,
|
|
4405
4405
|
"rows": props2.detailRows,
|
|
4406
4406
|
"rules": rules.value.addressDetail,
|
|
@@ -4423,19 +4423,19 @@ var stdin_default$1A = vue.defineComponent({
|
|
|
4423
4423
|
"placeholder": t$h("postal"),
|
|
4424
4424
|
"onFocus": () => onFocus("postalCode")
|
|
4425
4425
|
}, null), [[vue.vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
|
4426
|
-
"class": bem$
|
|
4426
|
+
"class": bem$1q("buttons")
|
|
4427
4427
|
}, [vue.createVNode(Button, {
|
|
4428
4428
|
"block": true,
|
|
4429
4429
|
"round": true,
|
|
4430
4430
|
"type": "primary",
|
|
4431
4431
|
"text": props2.saveButtonText || t$h("save"),
|
|
4432
|
-
"class": bem$
|
|
4432
|
+
"class": bem$1q("button"),
|
|
4433
4433
|
"loading": props2.isSaving,
|
|
4434
4434
|
"nativeType": "submit"
|
|
4435
4435
|
}, null), props2.showDelete && vue.createVNode(Button, {
|
|
4436
4436
|
"block": true,
|
|
4437
4437
|
"round": true,
|
|
4438
|
-
"class": bem$
|
|
4438
|
+
"class": bem$1q("button"),
|
|
4439
4439
|
"loading": props2.isDeleting,
|
|
4440
4440
|
"text": props2.deleteButtonText || t$h("delete"),
|
|
4441
4441
|
"onClick": onDelete
|
|
@@ -4464,9 +4464,9 @@ var stdin_default$1A = vue.defineComponent({
|
|
|
4464
4464
|
};
|
|
4465
4465
|
}
|
|
4466
4466
|
});
|
|
4467
|
-
const AddressEdit = withInstall(stdin_default$
|
|
4468
|
-
const RadioGroup = withInstall(stdin_default$
|
|
4469
|
-
const [name$
|
|
4467
|
+
const AddressEdit = withInstall(stdin_default$1B);
|
|
4468
|
+
const RadioGroup = withInstall(stdin_default$1J);
|
|
4469
|
+
const [name$1t, bem$1p] = createNamespace("tag");
|
|
4470
4470
|
const tagProps = {
|
|
4471
4471
|
size: makeStringProp("medium"),
|
|
4472
4472
|
mark: Boolean,
|
|
@@ -4478,8 +4478,8 @@ const tagProps = {
|
|
|
4478
4478
|
textColor: String,
|
|
4479
4479
|
closeable: Boolean
|
|
4480
4480
|
};
|
|
4481
|
-
var stdin_default$
|
|
4482
|
-
name: name$
|
|
4481
|
+
var stdin_default$1A = vue.defineComponent({
|
|
4482
|
+
name: name$1t,
|
|
4483
4483
|
props: tagProps,
|
|
4484
4484
|
emits: ["close"],
|
|
4485
4485
|
setup(props2, {
|
|
@@ -4522,12 +4522,12 @@ var stdin_default$1z = vue.defineComponent({
|
|
|
4522
4522
|
}
|
|
4523
4523
|
const CloseIcon = closeable && vue.createVNode(Icon, {
|
|
4524
4524
|
"name": "cross",
|
|
4525
|
-
"class": [bem$
|
|
4525
|
+
"class": [bem$1p("close"), HAPTICS_FEEDBACK],
|
|
4526
4526
|
"onClick": onClose
|
|
4527
4527
|
}, null);
|
|
4528
4528
|
return vue.createVNode("span", {
|
|
4529
4529
|
"style": getStyle(),
|
|
4530
|
-
"class": bem$
|
|
4530
|
+
"class": bem$1p([classes, type])
|
|
4531
4531
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
|
4532
4532
|
};
|
|
4533
4533
|
return () => vue.createVNode(vue.Transition, {
|
|
@@ -4537,10 +4537,10 @@ var stdin_default$1z = vue.defineComponent({
|
|
|
4537
4537
|
});
|
|
4538
4538
|
}
|
|
4539
4539
|
});
|
|
4540
|
-
const Tag = withInstall(stdin_default$
|
|
4541
|
-
const [name$
|
|
4542
|
-
var stdin_default$
|
|
4543
|
-
name: name$
|
|
4540
|
+
const Tag = withInstall(stdin_default$1A);
|
|
4541
|
+
const [name$1s, bem$1o] = createNamespace("address-item");
|
|
4542
|
+
var stdin_default$1z = vue.defineComponent({
|
|
4543
|
+
name: name$1s,
|
|
4544
4544
|
props: {
|
|
4545
4545
|
address: makeRequiredProp(Object),
|
|
4546
4546
|
disabled: Boolean,
|
|
@@ -4560,7 +4560,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
4560
4560
|
};
|
|
4561
4561
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
|
4562
4562
|
"name": "edit",
|
|
4563
|
-
"class": bem$
|
|
4563
|
+
"class": bem$1o("edit"),
|
|
4564
4564
|
"onClick": (event) => {
|
|
4565
4565
|
event.stopPropagation();
|
|
4566
4566
|
emit("edit");
|
|
@@ -4575,7 +4575,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
4575
4575
|
return vue.createVNode(Tag, {
|
|
4576
4576
|
"type": "danger",
|
|
4577
4577
|
"round": true,
|
|
4578
|
-
"class": bem$
|
|
4578
|
+
"class": bem$1o("tag")
|
|
4579
4579
|
}, {
|
|
4580
4580
|
default: () => [props2.defaultTagText]
|
|
4581
4581
|
});
|
|
@@ -4588,9 +4588,9 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
4588
4588
|
switchable
|
|
4589
4589
|
} = props2;
|
|
4590
4590
|
const Info = [vue.createVNode("div", {
|
|
4591
|
-
"class": bem$
|
|
4591
|
+
"class": bem$1o("name")
|
|
4592
4592
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
|
4593
|
-
"class": bem$
|
|
4593
|
+
"class": bem$1o("address")
|
|
4594
4594
|
}, [address.address])];
|
|
4595
4595
|
if (switchable && !disabled) {
|
|
4596
4596
|
return vue.createVNode(Radio, {
|
|
@@ -4608,13 +4608,13 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
4608
4608
|
disabled
|
|
4609
4609
|
} = props2;
|
|
4610
4610
|
return vue.createVNode("div", {
|
|
4611
|
-
"class": bem$
|
|
4611
|
+
"class": bem$1o({
|
|
4612
4612
|
disabled
|
|
4613
4613
|
}),
|
|
4614
4614
|
"onClick": onClick
|
|
4615
4615
|
}, [vue.createVNode(Cell, {
|
|
4616
4616
|
"border": false,
|
|
4617
|
-
"valueClass": bem$
|
|
4617
|
+
"valueClass": bem$1o("value")
|
|
4618
4618
|
}, {
|
|
4619
4619
|
value: renderContent,
|
|
4620
4620
|
"right-icon": renderRightIcon
|
|
@@ -4624,7 +4624,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
4624
4624
|
};
|
|
4625
4625
|
}
|
|
4626
4626
|
});
|
|
4627
|
-
const [name$
|
|
4627
|
+
const [name$1r, bem$1n, t$g] = createNamespace("address-list");
|
|
4628
4628
|
const addressListProps = {
|
|
4629
4629
|
list: makeArrayProp(),
|
|
4630
4630
|
modelValue: numericProp,
|
|
@@ -4634,8 +4634,8 @@ const addressListProps = {
|
|
|
4634
4634
|
addButtonText: String,
|
|
4635
4635
|
defaultTagText: String
|
|
4636
4636
|
};
|
|
4637
|
-
var stdin_default$
|
|
4638
|
-
name: name$
|
|
4637
|
+
var stdin_default$1y = vue.defineComponent({
|
|
4638
|
+
name: name$1r,
|
|
4639
4639
|
props: addressListProps,
|
|
4640
4640
|
emits: ["add", "edit", "select", "click-item", "edit-disabled", "select-disabled", "update:modelValue"],
|
|
4641
4641
|
setup(props2, {
|
|
@@ -4651,7 +4651,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
4651
4651
|
emit("update:modelValue", item.id);
|
|
4652
4652
|
}
|
|
4653
4653
|
};
|
|
4654
|
-
return vue.createVNode(stdin_default$
|
|
4654
|
+
return vue.createVNode(stdin_default$1z, {
|
|
4655
4655
|
"key": item.id,
|
|
4656
4656
|
"address": item,
|
|
4657
4657
|
"disabled": disabled,
|
|
@@ -4671,13 +4671,13 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
4671
4671
|
}
|
|
4672
4672
|
};
|
|
4673
4673
|
const renderBottom = () => vue.createVNode("div", {
|
|
4674
|
-
"class": [bem$
|
|
4674
|
+
"class": [bem$1n("bottom"), "van-safe-area-bottom"]
|
|
4675
4675
|
}, [vue.createVNode(Button, {
|
|
4676
4676
|
"round": true,
|
|
4677
4677
|
"block": true,
|
|
4678
4678
|
"type": "primary",
|
|
4679
4679
|
"text": props2.addButtonText || t$g("add"),
|
|
4680
|
-
"class": bem$
|
|
4680
|
+
"class": bem$1n("add"),
|
|
4681
4681
|
"onClick": () => emit("add")
|
|
4682
4682
|
}, null)]);
|
|
4683
4683
|
return () => {
|
|
@@ -4685,10 +4685,10 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
4685
4685
|
const List2 = renderList(props2.list);
|
|
4686
4686
|
const DisabledList = renderList(props2.disabledList, true);
|
|
4687
4687
|
const DisabledText = props2.disabledText && vue.createVNode("div", {
|
|
4688
|
-
"class": bem$
|
|
4688
|
+
"class": bem$1n("disabled-text")
|
|
4689
4689
|
}, [props2.disabledText]);
|
|
4690
4690
|
return vue.createVNode("div", {
|
|
4691
|
-
"class": bem$
|
|
4691
|
+
"class": bem$1n()
|
|
4692
4692
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
|
|
4693
4693
|
"modelValue": props2.modelValue
|
|
4694
4694
|
}, {
|
|
@@ -4697,13 +4697,13 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
4697
4697
|
};
|
|
4698
4698
|
}
|
|
4699
4699
|
});
|
|
4700
|
-
const AddressList = withInstall(stdin_default$
|
|
4701
|
-
const [name$
|
|
4700
|
+
const AddressList = withInstall(stdin_default$1y);
|
|
4701
|
+
const [name$1q, bem$1m] = createNamespace("background");
|
|
4702
4702
|
const backgroundProps = {
|
|
4703
4703
|
theme: makeStringProp("default")
|
|
4704
4704
|
};
|
|
4705
|
-
var stdin_default$
|
|
4706
|
-
name: name$
|
|
4705
|
+
var stdin_default$1x = vue.defineComponent({
|
|
4706
|
+
name: name$1q,
|
|
4707
4707
|
props: backgroundProps,
|
|
4708
4708
|
setup(props2, {
|
|
4709
4709
|
slots
|
|
@@ -4711,13 +4711,13 @@ var stdin_default$1w = vue.defineComponent({
|
|
|
4711
4711
|
return () => {
|
|
4712
4712
|
var _a;
|
|
4713
4713
|
return vue.createVNode("div", {
|
|
4714
|
-
"class": bem$
|
|
4714
|
+
"class": bem$1m([props2.theme])
|
|
4715
4715
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
4716
4716
|
};
|
|
4717
4717
|
}
|
|
4718
4718
|
});
|
|
4719
|
-
const Background = withInstall(stdin_default$
|
|
4720
|
-
const [name$
|
|
4719
|
+
const Background = withInstall(stdin_default$1x);
|
|
4720
|
+
const [name$1p, bem$1l] = createNamespace("blue-mark");
|
|
4721
4721
|
const blueMarkProps = {
|
|
4722
4722
|
size: {
|
|
4723
4723
|
type: String,
|
|
@@ -4731,8 +4731,8 @@ const blueMarkProps = {
|
|
|
4731
4731
|
gap: numericProp,
|
|
4732
4732
|
isLink: Boolean
|
|
4733
4733
|
};
|
|
4734
|
-
var stdin_default$
|
|
4735
|
-
name: name$
|
|
4734
|
+
var stdin_default$1w = vue.defineComponent({
|
|
4735
|
+
name: name$1p,
|
|
4736
4736
|
props: blueMarkProps,
|
|
4737
4737
|
emits: ["click"],
|
|
4738
4738
|
setup(props2, {
|
|
@@ -4750,30 +4750,30 @@ var stdin_default$1v = vue.defineComponent({
|
|
|
4750
4750
|
return () => {
|
|
4751
4751
|
var _a;
|
|
4752
4752
|
return vue.createVNode("span", {
|
|
4753
|
-
"class": [name$
|
|
4753
|
+
"class": [name$1p, props2.size === "normal" ? "" : `${name$1p}--${props2.size}`, props2.isLink ? `${name$1p}--link` : ""],
|
|
4754
4754
|
"style": style.value,
|
|
4755
4755
|
"onClick": props2.isLink ? (event) => emit("click", event) : void 0
|
|
4756
4756
|
}, [vue.createVNode("span", {
|
|
4757
|
-
"class": bem$
|
|
4757
|
+
"class": bem$1l("main")
|
|
4758
4758
|
}, [vue.createVNode("span", {
|
|
4759
|
-
"class": bem$
|
|
4759
|
+
"class": bem$1l("mark")
|
|
4760
4760
|
}, null), vue.createVNode("span", {
|
|
4761
|
-
"class": bem$
|
|
4762
|
-
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), props2.isLink && vue.createVNode(stdin_default$
|
|
4761
|
+
"class": bem$1l("content")
|
|
4762
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), props2.isLink && vue.createVNode(stdin_default$1X, {
|
|
4763
4763
|
"name": "arrow",
|
|
4764
|
-
"class": bem$
|
|
4764
|
+
"class": bem$1l("arrow")
|
|
4765
4765
|
}, null)]);
|
|
4766
4766
|
};
|
|
4767
4767
|
}
|
|
4768
4768
|
});
|
|
4769
|
-
const [name$
|
|
4769
|
+
const [name$1o, bem$1k] = createNamespace("collapse-toggle");
|
|
4770
4770
|
const collapseToggleProps = {
|
|
4771
4771
|
modelValue: Boolean,
|
|
4772
4772
|
expandText: makeStringProp("展开"),
|
|
4773
4773
|
collapseText: makeStringProp("收起")
|
|
4774
4774
|
};
|
|
4775
|
-
var stdin_default$
|
|
4776
|
-
name: name$
|
|
4775
|
+
var stdin_default$1v = vue.defineComponent({
|
|
4776
|
+
name: name$1o,
|
|
4777
4777
|
props: collapseToggleProps,
|
|
4778
4778
|
emits: ["update:modelValue", "change"],
|
|
4779
4779
|
setup(props2, {
|
|
@@ -4792,7 +4792,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
4792
4792
|
const text = expanded ? props2.collapseText : props2.expandText;
|
|
4793
4793
|
return vue.createVNode("button", {
|
|
4794
4794
|
"type": "button",
|
|
4795
|
-
"class": bem$
|
|
4795
|
+
"class": bem$1k({
|
|
4796
4796
|
expanded
|
|
4797
4797
|
}),
|
|
4798
4798
|
"aria-expanded": expanded,
|
|
@@ -4802,12 +4802,12 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
4802
4802
|
text
|
|
4803
4803
|
})) || text]), vue.createVNode(Icon, {
|
|
4804
4804
|
"name": "arrow-down",
|
|
4805
|
-
"class": bem$
|
|
4805
|
+
"class": bem$1k("icon")
|
|
4806
4806
|
}, null)]);
|
|
4807
4807
|
};
|
|
4808
4808
|
}
|
|
4809
4809
|
});
|
|
4810
|
-
const [name$
|
|
4810
|
+
const [name$1n, bem$1j] = createNamespace("blue-mark-header");
|
|
4811
4811
|
const blueMarkHeaderProps = {
|
|
4812
4812
|
title: numericProp,
|
|
4813
4813
|
size: {
|
|
@@ -4821,8 +4821,8 @@ const blueMarkHeaderProps = {
|
|
|
4821
4821
|
expandText: String,
|
|
4822
4822
|
collapseText: String
|
|
4823
4823
|
};
|
|
4824
|
-
var stdin_default$
|
|
4825
|
-
name: name$
|
|
4824
|
+
var stdin_default$1u = vue.defineComponent({
|
|
4825
|
+
name: name$1n,
|
|
4826
4826
|
props: blueMarkHeaderProps,
|
|
4827
4827
|
emits: ["click-action", "update:modelValue", "change"],
|
|
4828
4828
|
setup(props2, {
|
|
@@ -4847,7 +4847,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
4847
4847
|
return () => {
|
|
4848
4848
|
var _a;
|
|
4849
4849
|
return vue.createVNode("div", {
|
|
4850
|
-
"class": bem$
|
|
4850
|
+
"class": bem$1j({
|
|
4851
4851
|
expandable: props2.expandable
|
|
4852
4852
|
}),
|
|
4853
4853
|
"role": props2.expandable ? "button" : void 0,
|
|
@@ -4856,25 +4856,25 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
4856
4856
|
"onClick": onHeaderClick,
|
|
4857
4857
|
"onKeydown": onHeaderKeydown
|
|
4858
4858
|
}, [vue.createVNode("div", {
|
|
4859
|
-
"class": bem$
|
|
4860
|
-
}, [vue.createVNode(stdin_default$
|
|
4859
|
+
"class": bem$1j("main")
|
|
4860
|
+
}, [vue.createVNode(stdin_default$1w, {
|
|
4861
4861
|
"size": props2.size,
|
|
4862
|
-
"class": bem$
|
|
4862
|
+
"class": bem$1j("title")
|
|
4863
4863
|
}, {
|
|
4864
4864
|
default: () => [slots.title ? slots.title() : slots.default ? slots.default() : props2.title]
|
|
4865
4865
|
}), props2.required && vue.createVNode("span", {
|
|
4866
|
-
"class": bem$
|
|
4866
|
+
"class": bem$1j("required")
|
|
4867
4867
|
}, [vue.createTextVNode("*")]), slots.action ? vue.createVNode("span", {
|
|
4868
|
-
"class": bem$
|
|
4868
|
+
"class": bem$1j("action"),
|
|
4869
4869
|
"onClick": (event) => event.stopPropagation()
|
|
4870
4870
|
}, [slots.action()]) : props2.actionText ? vue.createVNode("button", {
|
|
4871
4871
|
"type": "button",
|
|
4872
|
-
"class": bem$
|
|
4872
|
+
"class": bem$1j("action"),
|
|
4873
4873
|
"onClick": (event) => {
|
|
4874
4874
|
event.stopPropagation();
|
|
4875
4875
|
emit("click-action");
|
|
4876
4876
|
}
|
|
4877
|
-
}, [props2.actionText]) : null]), (_a = slots.extra) == null ? void 0 : _a.call(slots), props2.expandable && vue.createVNode(stdin_default$
|
|
4877
|
+
}, [props2.actionText]) : null]), (_a = slots.extra) == null ? void 0 : _a.call(slots), props2.expandable && vue.createVNode(stdin_default$1v, {
|
|
4878
4878
|
"modelValue": props2.modelValue,
|
|
4879
4879
|
"expandText": props2.expandText,
|
|
4880
4880
|
"collapseText": props2.collapseText,
|
|
@@ -4883,10 +4883,10 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
4883
4883
|
};
|
|
4884
4884
|
}
|
|
4885
4885
|
});
|
|
4886
|
-
const BlueMark = withInstall(stdin_default$
|
|
4887
|
-
const BlueMarkHeader = withInstall(stdin_default$
|
|
4888
|
-
const CollapseToggle = withInstall(stdin_default$
|
|
4889
|
-
const [name$
|
|
4886
|
+
const BlueMark = withInstall(stdin_default$1w);
|
|
4887
|
+
const BlueMarkHeader = withInstall(stdin_default$1u);
|
|
4888
|
+
const CollapseToggle = withInstall(stdin_default$1v);
|
|
4889
|
+
const [name$1m, bem$1i] = createNamespace("popover");
|
|
4890
4890
|
const popupProps$2 = ["show", "overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
|
4891
4891
|
const popoverProps = {
|
|
4892
4892
|
show: Boolean,
|
|
@@ -4912,8 +4912,8 @@ const popoverProps = {
|
|
|
4912
4912
|
default: "body"
|
|
4913
4913
|
}
|
|
4914
4914
|
};
|
|
4915
|
-
var stdin_default$
|
|
4916
|
-
name: name$
|
|
4915
|
+
var stdin_default$1t = vue.defineComponent({
|
|
4916
|
+
name: name$1m,
|
|
4917
4917
|
props: popoverProps,
|
|
4918
4918
|
emits: ["select", "touchstart", "update:show"],
|
|
4919
4919
|
setup(props2, {
|
|
@@ -4985,12 +4985,12 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
4985
4985
|
});
|
|
4986
4986
|
}
|
|
4987
4987
|
return [action.icon && vue.createVNode("div", {
|
|
4988
|
-
"class": bem$
|
|
4988
|
+
"class": bem$1i("action-icon")
|
|
4989
4989
|
}, [vue.createVNode(Icon, {
|
|
4990
4990
|
"name": action.icon,
|
|
4991
4991
|
"classPrefix": props2.iconPrefix
|
|
4992
4992
|
}, null)]), vue.createVNode("div", {
|
|
4993
|
-
"class": [bem$
|
|
4993
|
+
"class": [bem$1i("action-text"), BORDER_BOTTOM]
|
|
4994
4994
|
}, [action.text])];
|
|
4995
4995
|
};
|
|
4996
4996
|
const renderAction = (action, index) => {
|
|
@@ -5002,7 +5002,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
5002
5002
|
} = action;
|
|
5003
5003
|
return vue.createVNode("div", {
|
|
5004
5004
|
"role": "menuitem",
|
|
5005
|
-
"class": [bem$
|
|
5005
|
+
"class": [bem$1i("action", {
|
|
5006
5006
|
disabled,
|
|
5007
5007
|
"with-icon": icon
|
|
5008
5008
|
}), className],
|
|
@@ -5035,28 +5035,28 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
5035
5035
|
var _a;
|
|
5036
5036
|
return vue.createVNode(vue.Fragment, null, [vue.createVNode("span", {
|
|
5037
5037
|
"ref": wrapperRef,
|
|
5038
|
-
"class": bem$
|
|
5038
|
+
"class": bem$1i("wrapper"),
|
|
5039
5039
|
"onClick": onClickWrapper
|
|
5040
5040
|
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), vue.createVNode(Popup, vue.mergeProps({
|
|
5041
5041
|
"ref": popoverRef,
|
|
5042
|
-
"class": bem$
|
|
5042
|
+
"class": bem$1i([props2.theme]),
|
|
5043
5043
|
"position": "",
|
|
5044
5044
|
"transition": "van-popover-zoom",
|
|
5045
5045
|
"lockScroll": false,
|
|
5046
5046
|
"onUpdate:show": updateShow
|
|
5047
5047
|
}, attrs, pick(props2, popupProps$2)), {
|
|
5048
5048
|
default: () => [props2.showArrow && vue.createVNode("div", {
|
|
5049
|
-
"class": bem$
|
|
5049
|
+
"class": bem$1i("arrow")
|
|
5050
5050
|
}, null), vue.createVNode("div", {
|
|
5051
5051
|
"role": "menu",
|
|
5052
|
-
"class": bem$
|
|
5052
|
+
"class": bem$1i("content")
|
|
5053
5053
|
}, [slots.default ? slots.default() : props2.actions.map(renderAction)])]
|
|
5054
5054
|
})]);
|
|
5055
5055
|
};
|
|
5056
5056
|
}
|
|
5057
5057
|
});
|
|
5058
|
-
const Popover = withInstall(stdin_default$
|
|
5059
|
-
const [name$
|
|
5058
|
+
const Popover = withInstall(stdin_default$1t);
|
|
5059
|
+
const [name$1l, bem$1h] = createNamespace("bottom-action-bar");
|
|
5060
5060
|
const bottomActionBarProps = {
|
|
5061
5061
|
confirmText: makeStringProp("确定"),
|
|
5062
5062
|
confirmType: makeStringProp("primary"),
|
|
@@ -5083,8 +5083,8 @@ const bottomActionBarProps = {
|
|
|
5083
5083
|
checkboxActionDisabled: Boolean,
|
|
5084
5084
|
checkboxActionText: makeStringProp("保存为我的默认筛选")
|
|
5085
5085
|
};
|
|
5086
|
-
var stdin_default$
|
|
5087
|
-
name: name$
|
|
5086
|
+
var stdin_default$1s = vue.defineComponent({
|
|
5087
|
+
name: name$1l,
|
|
5088
5088
|
props: bottomActionBarProps,
|
|
5089
5089
|
emits: ["confirm", "secondary", "icon", "more", "select-more-popover", "update:checkboxActionChecked", "checkbox-action-change"],
|
|
5090
5090
|
setup(props2, {
|
|
@@ -5093,18 +5093,18 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
5093
5093
|
}) {
|
|
5094
5094
|
const root = vue.ref();
|
|
5095
5095
|
const morePopoverShow = vue.ref(false);
|
|
5096
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
|
5096
|
+
const renderPlaceholder = usePlaceholder(root, bem$1h);
|
|
5097
5097
|
const renderIconAction = () => {
|
|
5098
5098
|
if (slots.icon) {
|
|
5099
5099
|
return vue.createVNode("div", {
|
|
5100
|
-
"class": bem$
|
|
5100
|
+
"class": bem$1h("icon-action")
|
|
5101
5101
|
}, [slots.icon()]);
|
|
5102
5102
|
}
|
|
5103
5103
|
if (!props2.icon) {
|
|
5104
5104
|
return;
|
|
5105
5105
|
}
|
|
5106
5106
|
return vue.createVNode(Button, {
|
|
5107
|
-
"class": bem$
|
|
5107
|
+
"class": bem$1h("icon-button"),
|
|
5108
5108
|
"icon": props2.icon,
|
|
5109
5109
|
"iconPrefix": props2.iconPrefix,
|
|
5110
5110
|
"disabled": props2.iconDisabled,
|
|
@@ -5120,7 +5120,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
5120
5120
|
};
|
|
5121
5121
|
const renderMoreButton = (popoverEnabled = false) => vue.createVNode("button", {
|
|
5122
5122
|
"type": "button",
|
|
5123
|
-
"class": bem$
|
|
5123
|
+
"class": bem$1h("more-action"),
|
|
5124
5124
|
"disabled": props2.moreDisabled,
|
|
5125
5125
|
"onClick": popoverEnabled ? void 0 : () => emit("more")
|
|
5126
5126
|
}, [vue.createVNode(Badge, {
|
|
@@ -5130,30 +5130,30 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
5130
5130
|
}, {
|
|
5131
5131
|
default: () => [vue.createVNode(Icon, {
|
|
5132
5132
|
"name": props2.moreIcon || "more-o",
|
|
5133
|
-
"class": bem$
|
|
5133
|
+
"class": bem$1h("more-icon"),
|
|
5134
5134
|
"classPrefix": props2.iconPrefix
|
|
5135
5135
|
}, null)]
|
|
5136
5136
|
}), vue.createVNode("span", {
|
|
5137
|
-
"class": bem$
|
|
5137
|
+
"class": bem$1h("more-text")
|
|
5138
5138
|
}, [props2.moreText])]);
|
|
5139
5139
|
const renderMorePopoverAction = (action, index) => vue.createVNode("button", {
|
|
5140
5140
|
"type": "button",
|
|
5141
|
-
"class": bem$
|
|
5141
|
+
"class": bem$1h("more-popover-action", {
|
|
5142
5142
|
disabled: action.disabled
|
|
5143
5143
|
}),
|
|
5144
5144
|
"disabled": action.disabled,
|
|
5145
5145
|
"onClick": () => onSelectMorePopover(action, index)
|
|
5146
5146
|
}, [action.icon && vue.createVNode(Icon, {
|
|
5147
5147
|
"name": action.icon,
|
|
5148
|
-
"class": bem$
|
|
5148
|
+
"class": bem$1h("more-popover-icon"),
|
|
5149
5149
|
"classPrefix": props2.iconPrefix
|
|
5150
5150
|
}, null), vue.createVNode("span", {
|
|
5151
|
-
"class": bem$
|
|
5151
|
+
"class": bem$1h("more-popover-text")
|
|
5152
5152
|
}, [action.text])]);
|
|
5153
5153
|
const renderMoreAction = () => {
|
|
5154
5154
|
if (slots.more) {
|
|
5155
5155
|
return vue.createVNode("div", {
|
|
5156
|
-
"class": bem$
|
|
5156
|
+
"class": bem$1h("more-action")
|
|
5157
5157
|
}, [slots.more()]);
|
|
5158
5158
|
}
|
|
5159
5159
|
if (!props2.moreText) {
|
|
@@ -5164,7 +5164,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
5164
5164
|
}
|
|
5165
5165
|
return vue.createVNode(Popover, {
|
|
5166
5166
|
"show": morePopoverShow.value,
|
|
5167
|
-
"class": bem$
|
|
5167
|
+
"class": bem$1h("more-popover"),
|
|
5168
5168
|
"placement": "top-start",
|
|
5169
5169
|
"showArrow": false,
|
|
5170
5170
|
"offset": [-5, 8],
|
|
@@ -5184,7 +5184,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
5184
5184
|
return;
|
|
5185
5185
|
}
|
|
5186
5186
|
return vue.createVNode(Button, {
|
|
5187
|
-
"class": bem$
|
|
5187
|
+
"class": bem$1h("secondary"),
|
|
5188
5188
|
"type": props2.secondaryType,
|
|
5189
5189
|
"text": props2.secondaryText,
|
|
5190
5190
|
"loading": props2.secondaryLoading,
|
|
@@ -5197,7 +5197,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
5197
5197
|
return slots.confirm();
|
|
5198
5198
|
}
|
|
5199
5199
|
return vue.createVNode(Button, {
|
|
5200
|
-
"class": bem$
|
|
5200
|
+
"class": bem$1h("confirm"),
|
|
5201
5201
|
"type": props2.confirmType,
|
|
5202
5202
|
"text": props2.confirmText,
|
|
5203
5203
|
"loading": props2.confirmLoading,
|
|
@@ -5210,9 +5210,9 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
5210
5210
|
return;
|
|
5211
5211
|
}
|
|
5212
5212
|
return vue.createVNode("div", {
|
|
5213
|
-
"class": bem$
|
|
5213
|
+
"class": bem$1h("checkbox-action")
|
|
5214
5214
|
}, [vue.createVNode("div", {
|
|
5215
|
-
"class": bem$
|
|
5215
|
+
"class": bem$1h("checkbox-action-content")
|
|
5216
5216
|
}, [vue.createVNode(Checkbox, {
|
|
5217
5217
|
"modelValue": props2.checkboxActionChecked,
|
|
5218
5218
|
"disabled": props2.checkboxActionDisabled,
|
|
@@ -5227,19 +5227,19 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
5227
5227
|
};
|
|
5228
5228
|
const renderBar = () => vue.createVNode("div", {
|
|
5229
5229
|
"ref": root,
|
|
5230
|
-
"class": [bem$
|
|
5230
|
+
"class": [bem$1h({
|
|
5231
5231
|
fixed: props2.fixed
|
|
5232
5232
|
}), {
|
|
5233
5233
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
5234
5234
|
}]
|
|
5235
5235
|
}, [renderCheckboxAction(), vue.createVNode("div", {
|
|
5236
|
-
"class": bem$
|
|
5236
|
+
"class": bem$1h("actions")
|
|
5237
5237
|
}, [renderIconAction(), renderMoreAction(), renderSecondaryButton(), renderConfirmButton()])]);
|
|
5238
5238
|
return () => props2.placeholder && props2.fixed ? renderPlaceholder(renderBar) : renderBar();
|
|
5239
5239
|
}
|
|
5240
5240
|
});
|
|
5241
|
-
const BottomActionBar = withInstall(stdin_default$
|
|
5242
|
-
const [name$
|
|
5241
|
+
const BottomActionBar = withInstall(stdin_default$1s);
|
|
5242
|
+
const [name$1k, bem$1g, t$f] = createNamespace("calendar");
|
|
5243
5243
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
|
5244
5244
|
function compareMonth(date1, date2) {
|
|
5245
5245
|
const year1 = date1.getFullYear();
|
|
@@ -5348,9 +5348,9 @@ const proxyPickerMethods = (picker, callback) => {
|
|
|
5348
5348
|
}
|
|
5349
5349
|
});
|
|
5350
5350
|
};
|
|
5351
|
-
const [name$
|
|
5352
|
-
var stdin_default$
|
|
5353
|
-
name: name$
|
|
5351
|
+
const [name$1j] = createNamespace("calendar-day");
|
|
5352
|
+
var stdin_default$1r = vue.defineComponent({
|
|
5353
|
+
name: name$1j,
|
|
5354
5354
|
props: {
|
|
5355
5355
|
item: makeRequiredProp(Object),
|
|
5356
5356
|
color: String,
|
|
@@ -5412,7 +5412,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
5412
5412
|
} = props2.item;
|
|
5413
5413
|
if (topInfo || slots["top-info"]) {
|
|
5414
5414
|
return vue.createVNode("div", {
|
|
5415
|
-
"class": bem$
|
|
5415
|
+
"class": bem$1g("top-info")
|
|
5416
5416
|
}, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
|
|
5417
5417
|
}
|
|
5418
5418
|
};
|
|
@@ -5422,7 +5422,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
5422
5422
|
} = props2.item;
|
|
5423
5423
|
if (bottomInfo || slots["bottom-info"]) {
|
|
5424
5424
|
return vue.createVNode("div", {
|
|
5425
|
-
"class": bem$
|
|
5425
|
+
"class": bem$1g("bottom-info")
|
|
5426
5426
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
|
5427
5427
|
}
|
|
5428
5428
|
};
|
|
@@ -5439,7 +5439,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
5439
5439
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
|
5440
5440
|
if (type === "selected") {
|
|
5441
5441
|
return vue.createVNode("div", {
|
|
5442
|
-
"class": bem$
|
|
5442
|
+
"class": bem$1g("selected-day"),
|
|
5443
5443
|
"style": {
|
|
5444
5444
|
width: rowHeight,
|
|
5445
5445
|
height: rowHeight,
|
|
@@ -5456,21 +5456,21 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
5456
5456
|
} = props2.item;
|
|
5457
5457
|
if (type === "placeholder") {
|
|
5458
5458
|
return vue.createVNode("div", {
|
|
5459
|
-
"class": bem$
|
|
5459
|
+
"class": bem$1g("day"),
|
|
5460
5460
|
"style": style.value
|
|
5461
5461
|
}, null);
|
|
5462
5462
|
}
|
|
5463
5463
|
return vue.createVNode("div", {
|
|
5464
5464
|
"role": "gridcell",
|
|
5465
5465
|
"style": style.value,
|
|
5466
|
-
"class": [bem$
|
|
5466
|
+
"class": [bem$1g("day", type), className],
|
|
5467
5467
|
"tabindex": type === "disabled" ? void 0 : -1,
|
|
5468
5468
|
"onClick": onClick
|
|
5469
5469
|
}, [renderContent()]);
|
|
5470
5470
|
};
|
|
5471
5471
|
}
|
|
5472
5472
|
});
|
|
5473
|
-
const [name$
|
|
5473
|
+
const [name$1i] = createNamespace("calendar-month");
|
|
5474
5474
|
const calendarMonthProps = {
|
|
5475
5475
|
date: makeRequiredProp(Date),
|
|
5476
5476
|
type: String,
|
|
@@ -5487,8 +5487,8 @@ const calendarMonthProps = {
|
|
|
5487
5487
|
showMonthTitle: Boolean,
|
|
5488
5488
|
firstDayOfWeek: Number
|
|
5489
5489
|
};
|
|
5490
|
-
var stdin_default$
|
|
5491
|
-
name: name$
|
|
5490
|
+
var stdin_default$1q = vue.defineComponent({
|
|
5491
|
+
name: name$1i,
|
|
5492
5492
|
props: calendarMonthProps,
|
|
5493
5493
|
emits: ["click", "update-height"],
|
|
5494
5494
|
setup(props2, {
|
|
@@ -5593,14 +5593,14 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
5593
5593
|
const renderTitle = () => {
|
|
5594
5594
|
if (props2.showMonthTitle) {
|
|
5595
5595
|
return vue.createVNode("div", {
|
|
5596
|
-
"class": bem$
|
|
5596
|
+
"class": bem$1g("month-title")
|
|
5597
5597
|
}, [title.value]);
|
|
5598
5598
|
}
|
|
5599
5599
|
};
|
|
5600
5600
|
const renderMark = () => {
|
|
5601
5601
|
if (props2.showMark && shouldRender.value) {
|
|
5602
5602
|
return vue.createVNode("div", {
|
|
5603
|
-
"class": bem$
|
|
5603
|
+
"class": bem$1g("month-mark")
|
|
5604
5604
|
}, [props2.date.getMonth() + 1]);
|
|
5605
5605
|
}
|
|
5606
5606
|
};
|
|
@@ -5640,7 +5640,7 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
5640
5640
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
|
|
5641
5641
|
}
|
|
5642
5642
|
};
|
|
5643
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
|
5643
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1r, {
|
|
5644
5644
|
"item": item,
|
|
5645
5645
|
"index": index,
|
|
5646
5646
|
"color": props2.color,
|
|
@@ -5651,7 +5651,7 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
5651
5651
|
const renderDays = () => vue.createVNode("div", {
|
|
5652
5652
|
"ref": daysRef,
|
|
5653
5653
|
"role": "grid",
|
|
5654
|
-
"class": bem$
|
|
5654
|
+
"class": bem$1g("days")
|
|
5655
5655
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
|
5656
5656
|
useExpose({
|
|
5657
5657
|
getTitle,
|
|
@@ -5661,14 +5661,14 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
5661
5661
|
disabledDays
|
|
5662
5662
|
});
|
|
5663
5663
|
return () => vue.createVNode("div", {
|
|
5664
|
-
"class": bem$
|
|
5664
|
+
"class": bem$1g("month"),
|
|
5665
5665
|
"ref": monthRef
|
|
5666
5666
|
}, [renderTitle(), renderDays()]);
|
|
5667
5667
|
}
|
|
5668
5668
|
});
|
|
5669
|
-
const [name$
|
|
5670
|
-
var stdin_default$
|
|
5671
|
-
name: name$
|
|
5669
|
+
const [name$1h] = createNamespace("calendar-header");
|
|
5670
|
+
var stdin_default$1p = vue.defineComponent({
|
|
5671
|
+
name: name$1h,
|
|
5672
5672
|
props: {
|
|
5673
5673
|
title: String,
|
|
5674
5674
|
subtitle: String,
|
|
@@ -5686,7 +5686,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
5686
5686
|
const text = props2.title || t$f("title");
|
|
5687
5687
|
const title = slots.title ? slots.title() : text;
|
|
5688
5688
|
return vue.createVNode("div", {
|
|
5689
|
-
"class": bem$
|
|
5689
|
+
"class": bem$1g("header-title")
|
|
5690
5690
|
}, [title]);
|
|
5691
5691
|
}
|
|
5692
5692
|
};
|
|
@@ -5695,7 +5695,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
5695
5695
|
if (props2.showSubtitle) {
|
|
5696
5696
|
const title = slots.subtitle ? slots.subtitle() : props2.subtitle;
|
|
5697
5697
|
return vue.createVNode("div", {
|
|
5698
|
-
"class": bem$
|
|
5698
|
+
"class": bem$1g("header-subtitle"),
|
|
5699
5699
|
"onClick": onClickSubtitle
|
|
5700
5700
|
}, [title]);
|
|
5701
5701
|
}
|
|
@@ -5707,13 +5707,13 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
5707
5707
|
const weekdays = t$f("weekdays");
|
|
5708
5708
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
|
5709
5709
|
return vue.createVNode("div", {
|
|
5710
|
-
"class": bem$
|
|
5710
|
+
"class": bem$1g("weekdays")
|
|
5711
5711
|
}, [renderWeekDays2.map((text) => vue.createVNode("span", {
|
|
5712
|
-
"class": bem$
|
|
5712
|
+
"class": bem$1g("weekday")
|
|
5713
5713
|
}, [text]))]);
|
|
5714
5714
|
};
|
|
5715
5715
|
return () => vue.createVNode("div", {
|
|
5716
|
-
"class": bem$
|
|
5716
|
+
"class": bem$1g("header")
|
|
5717
5717
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
|
5718
5718
|
}
|
|
5719
5719
|
});
|
|
@@ -5764,8 +5764,8 @@ const calendarProps = {
|
|
|
5764
5764
|
validator: (val) => val >= 0 && val <= 6
|
|
5765
5765
|
}
|
|
5766
5766
|
};
|
|
5767
|
-
var stdin_default$
|
|
5768
|
-
name: name$
|
|
5767
|
+
var stdin_default$1o = vue.defineComponent({
|
|
5768
|
+
name: name$1k,
|
|
5769
5769
|
props: calendarProps,
|
|
5770
5770
|
emits: ["select", "confirm", "unselect", "month-show", "over-range", "update:show", "click-subtitle"],
|
|
5771
5771
|
setup(props2, {
|
|
@@ -6022,7 +6022,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
6022
6022
|
const updateShow = (value) => emit("update:show", value);
|
|
6023
6023
|
const renderMonth = (date, index) => {
|
|
6024
6024
|
const showMonthTitle = index !== 0 || !props2.showSubtitle;
|
|
6025
|
-
return vue.createVNode(stdin_default$
|
|
6025
|
+
return vue.createVNode(stdin_default$1q, vue.mergeProps({
|
|
6026
6026
|
"ref": setMonthRefs(index),
|
|
6027
6027
|
"date": date,
|
|
6028
6028
|
"currentDate": currentDate.value,
|
|
@@ -6045,7 +6045,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
6045
6045
|
"block": true,
|
|
6046
6046
|
"type": "primary",
|
|
6047
6047
|
"color": props2.color,
|
|
6048
|
-
"class": bem$
|
|
6048
|
+
"class": bem$1g("confirm"),
|
|
6049
6049
|
"disabled": disabled,
|
|
6050
6050
|
"nativeType": "button",
|
|
6051
6051
|
"onClick": onConfirm
|
|
@@ -6057,13 +6057,13 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
6057
6057
|
}
|
|
6058
6058
|
};
|
|
6059
6059
|
const renderFooter = () => vue.createVNode("div", {
|
|
6060
|
-
"class": [bem$
|
|
6060
|
+
"class": [bem$1g("footer"), {
|
|
6061
6061
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
6062
6062
|
}]
|
|
6063
6063
|
}, [renderFooterButton()]);
|
|
6064
6064
|
const renderCalendar = () => vue.createVNode("div", {
|
|
6065
|
-
"class": bem$
|
|
6066
|
-
}, [vue.createVNode(stdin_default$
|
|
6065
|
+
"class": bem$1g()
|
|
6066
|
+
}, [vue.createVNode(stdin_default$1p, {
|
|
6067
6067
|
"title": props2.title,
|
|
6068
6068
|
"subtitle": subtitle.value,
|
|
6069
6069
|
"showTitle": props2.showTitle,
|
|
@@ -6072,7 +6072,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
6072
6072
|
"onClick-subtitle": (event) => emit("click-subtitle", event)
|
|
6073
6073
|
}, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
|
|
6074
6074
|
"ref": bodyRef,
|
|
6075
|
-
"class": bem$
|
|
6075
|
+
"class": bem$1g("body"),
|
|
6076
6076
|
"onScroll": onScroll
|
|
6077
6077
|
}, [months.value.map(renderMonth)]), renderFooter()]);
|
|
6078
6078
|
vue.watch(() => props2.show, init);
|
|
@@ -6091,7 +6091,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
6091
6091
|
if (props2.poppable) {
|
|
6092
6092
|
return vue.createVNode(Popup, {
|
|
6093
6093
|
"show": props2.show,
|
|
6094
|
-
"class": bem$
|
|
6094
|
+
"class": bem$1g("popup"),
|
|
6095
6095
|
"round": props2.round,
|
|
6096
6096
|
"position": props2.position,
|
|
6097
6097
|
"closeable": props2.showTitle || props2.showSubtitle,
|
|
@@ -6108,8 +6108,8 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
6108
6108
|
};
|
|
6109
6109
|
}
|
|
6110
6110
|
});
|
|
6111
|
-
const Calendar = withInstall(stdin_default$
|
|
6112
|
-
const [name$
|
|
6111
|
+
const Calendar = withInstall(stdin_default$1o);
|
|
6112
|
+
const [name$1g, bem$1f] = createNamespace("image");
|
|
6113
6113
|
const imageProps = {
|
|
6114
6114
|
src: String,
|
|
6115
6115
|
alt: String,
|
|
@@ -6128,8 +6128,8 @@ const imageProps = {
|
|
|
6128
6128
|
showLoading: truthProp,
|
|
6129
6129
|
loadingIcon: makeStringProp("photo")
|
|
6130
6130
|
};
|
|
6131
|
-
var stdin_default$
|
|
6132
|
-
name: name$
|
|
6131
|
+
var stdin_default$1n = vue.defineComponent({
|
|
6132
|
+
name: name$1g,
|
|
6133
6133
|
props: imageProps,
|
|
6134
6134
|
emits: ["load", "error"],
|
|
6135
6135
|
setup(props2, {
|
|
@@ -6180,13 +6180,13 @@ var stdin_default$1m = vue.defineComponent({
|
|
|
6180
6180
|
const renderPlaceholder = () => {
|
|
6181
6181
|
if (loading.value && props2.showLoading) {
|
|
6182
6182
|
return vue.createVNode("div", {
|
|
6183
|
-
"class": bem$
|
|
6184
|
-
}, [renderIcon(props2.loadingIcon, bem$
|
|
6183
|
+
"class": bem$1f("loading")
|
|
6184
|
+
}, [renderIcon(props2.loadingIcon, bem$1f("loading-icon"), slots.loading)]);
|
|
6185
6185
|
}
|
|
6186
6186
|
if (error.value && props2.showError) {
|
|
6187
6187
|
return vue.createVNode("div", {
|
|
6188
|
-
"class": bem$
|
|
6189
|
-
}, [renderIcon(props2.errorIcon, bem$
|
|
6188
|
+
"class": bem$1f("error")
|
|
6189
|
+
}, [renderIcon(props2.errorIcon, bem$1f("error-icon"), slots.error)]);
|
|
6190
6190
|
}
|
|
6191
6191
|
};
|
|
6192
6192
|
const renderImage = () => {
|
|
@@ -6195,7 +6195,7 @@ var stdin_default$1m = vue.defineComponent({
|
|
|
6195
6195
|
}
|
|
6196
6196
|
const attrs = {
|
|
6197
6197
|
alt: props2.alt,
|
|
6198
|
-
class: bem$
|
|
6198
|
+
class: bem$1f("img"),
|
|
6199
6199
|
style: {
|
|
6200
6200
|
objectFit: props2.fit,
|
|
6201
6201
|
objectPosition: props2.position
|
|
@@ -6244,7 +6244,7 @@ var stdin_default$1m = vue.defineComponent({
|
|
|
6244
6244
|
return () => {
|
|
6245
6245
|
var _a;
|
|
6246
6246
|
return vue.createVNode("div", {
|
|
6247
|
-
"class": bem$
|
|
6247
|
+
"class": bem$1f({
|
|
6248
6248
|
round: props2.round,
|
|
6249
6249
|
block: props2.block
|
|
6250
6250
|
}),
|
|
@@ -6253,8 +6253,8 @@ var stdin_default$1m = vue.defineComponent({
|
|
|
6253
6253
|
};
|
|
6254
6254
|
}
|
|
6255
6255
|
});
|
|
6256
|
-
const Image$1 = withInstall(stdin_default$
|
|
6257
|
-
const [name$
|
|
6256
|
+
const Image$1 = withInstall(stdin_default$1n);
|
|
6257
|
+
const [name$1f, bem$1e] = createNamespace("card");
|
|
6258
6258
|
const cardProps = {
|
|
6259
6259
|
tag: String,
|
|
6260
6260
|
num: numericProp,
|
|
@@ -6268,8 +6268,8 @@ const cardProps = {
|
|
|
6268
6268
|
thumbLink: String,
|
|
6269
6269
|
originPrice: numericProp
|
|
6270
6270
|
};
|
|
6271
|
-
var stdin_default$
|
|
6272
|
-
name: name$
|
|
6271
|
+
var stdin_default$1m = vue.defineComponent({
|
|
6272
|
+
name: name$1f,
|
|
6273
6273
|
props: cardProps,
|
|
6274
6274
|
emits: ["click-thumb"],
|
|
6275
6275
|
setup(props2, {
|
|
@@ -6282,14 +6282,14 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
6282
6282
|
}
|
|
6283
6283
|
if (props2.title) {
|
|
6284
6284
|
return vue.createVNode("div", {
|
|
6285
|
-
"class": [bem$
|
|
6285
|
+
"class": [bem$1e("title"), "van-multi-ellipsis--l2"]
|
|
6286
6286
|
}, [props2.title]);
|
|
6287
6287
|
}
|
|
6288
6288
|
};
|
|
6289
6289
|
const renderThumbTag = () => {
|
|
6290
6290
|
if (slots.tag || props2.tag) {
|
|
6291
6291
|
return vue.createVNode("div", {
|
|
6292
|
-
"class": bem$
|
|
6292
|
+
"class": bem$1e("tag")
|
|
6293
6293
|
}, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
|
|
6294
6294
|
"mark": true,
|
|
6295
6295
|
"type": "danger"
|
|
@@ -6314,7 +6314,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
6314
6314
|
if (slots.thumb || props2.thumb) {
|
|
6315
6315
|
return vue.createVNode("a", {
|
|
6316
6316
|
"href": props2.thumbLink,
|
|
6317
|
-
"class": bem$
|
|
6317
|
+
"class": bem$1e("thumb"),
|
|
6318
6318
|
"onClick": (event) => emit("click-thumb", event)
|
|
6319
6319
|
}, [renderThumbImage(), renderThumbTag()]);
|
|
6320
6320
|
}
|
|
@@ -6325,18 +6325,18 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
6325
6325
|
}
|
|
6326
6326
|
if (props2.desc) {
|
|
6327
6327
|
return vue.createVNode("div", {
|
|
6328
|
-
"class": [bem$
|
|
6328
|
+
"class": [bem$1e("desc"), "van-ellipsis"]
|
|
6329
6329
|
}, [props2.desc]);
|
|
6330
6330
|
}
|
|
6331
6331
|
};
|
|
6332
6332
|
const renderPriceText = () => {
|
|
6333
6333
|
const priceArr = props2.price.toString().split(".");
|
|
6334
6334
|
return vue.createVNode("div", null, [vue.createVNode("span", {
|
|
6335
|
-
"class": bem$
|
|
6335
|
+
"class": bem$1e("price-currency")
|
|
6336
6336
|
}, [props2.currency]), vue.createVNode("span", {
|
|
6337
|
-
"class": bem$
|
|
6337
|
+
"class": bem$1e("price-integer")
|
|
6338
6338
|
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
|
6339
|
-
"class": bem$
|
|
6339
|
+
"class": bem$1e("price-decimal")
|
|
6340
6340
|
}, [priceArr[1]])]);
|
|
6341
6341
|
};
|
|
6342
6342
|
return () => {
|
|
@@ -6346,33 +6346,33 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
6346
6346
|
const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
|
|
6347
6347
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
|
6348
6348
|
const Price = showPrice && vue.createVNode("div", {
|
|
6349
|
-
"class": bem$
|
|
6349
|
+
"class": bem$1e("price")
|
|
6350
6350
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
|
6351
6351
|
const OriginPrice = showOriginPrice && vue.createVNode("div", {
|
|
6352
|
-
"class": bem$
|
|
6352
|
+
"class": bem$1e("origin-price")
|
|
6353
6353
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
|
|
6354
6354
|
const Num = showNum && vue.createVNode("div", {
|
|
6355
|
-
"class": bem$
|
|
6355
|
+
"class": bem$1e("num")
|
|
6356
6356
|
}, [slots.num ? slots.num() : `x${props2.num}`]);
|
|
6357
6357
|
const Footer = slots.footer && vue.createVNode("div", {
|
|
6358
|
-
"class": bem$
|
|
6358
|
+
"class": bem$1e("footer")
|
|
6359
6359
|
}, [slots.footer()]);
|
|
6360
6360
|
const Bottom = showBottom && vue.createVNode("div", {
|
|
6361
|
-
"class": bem$
|
|
6361
|
+
"class": bem$1e("bottom")
|
|
6362
6362
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
|
6363
6363
|
return vue.createVNode("div", {
|
|
6364
|
-
"class": bem$
|
|
6364
|
+
"class": bem$1e()
|
|
6365
6365
|
}, [vue.createVNode("div", {
|
|
6366
|
-
"class": bem$
|
|
6366
|
+
"class": bem$1e("header")
|
|
6367
6367
|
}, [renderThumb(), vue.createVNode("div", {
|
|
6368
|
-
"class": bem$
|
|
6368
|
+
"class": bem$1e("content", {
|
|
6369
6369
|
centered: props2.centered
|
|
6370
6370
|
})
|
|
6371
6371
|
}, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
|
6372
6372
|
};
|
|
6373
6373
|
}
|
|
6374
6374
|
});
|
|
6375
|
-
const Card = withInstall(stdin_default$
|
|
6375
|
+
const Card = withInstall(stdin_default$1m);
|
|
6376
6376
|
function scrollLeftTo(scroller, to, duration) {
|
|
6377
6377
|
let count = 0;
|
|
6378
6378
|
const from = scroller.scrollLeft;
|
|
@@ -6428,7 +6428,7 @@ function useVisibilityChange(target, onChange) {
|
|
|
6428
6428
|
vue.onBeforeUnmount(unobserve);
|
|
6429
6429
|
use.onMountedOrActivated(observe);
|
|
6430
6430
|
}
|
|
6431
|
-
const [name$
|
|
6431
|
+
const [name$1e, bem$1d] = createNamespace("sticky");
|
|
6432
6432
|
const stickyProps = {
|
|
6433
6433
|
zIndex: numericProp,
|
|
6434
6434
|
position: makeStringProp("top"),
|
|
@@ -6436,8 +6436,8 @@ const stickyProps = {
|
|
|
6436
6436
|
offsetTop: makeNumericProp(0),
|
|
6437
6437
|
offsetBottom: makeNumericProp(0)
|
|
6438
6438
|
};
|
|
6439
|
-
var stdin_default$
|
|
6440
|
-
name: name$
|
|
6439
|
+
var stdin_default$1l = vue.defineComponent({
|
|
6440
|
+
name: name$1e,
|
|
6441
6441
|
props: stickyProps,
|
|
6442
6442
|
emits: ["scroll", "change"],
|
|
6443
6443
|
setup(props2, {
|
|
@@ -6534,7 +6534,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
6534
6534
|
"ref": root,
|
|
6535
6535
|
"style": rootStyle.value
|
|
6536
6536
|
}, [vue.createVNode("div", {
|
|
6537
|
-
"class": bem$
|
|
6537
|
+
"class": bem$1d({
|
|
6538
6538
|
fixed: state.fixed
|
|
6539
6539
|
}),
|
|
6540
6540
|
"style": stickyStyle.value
|
|
@@ -6542,10 +6542,10 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
6542
6542
|
};
|
|
6543
6543
|
}
|
|
6544
6544
|
});
|
|
6545
|
-
const Sticky = withInstall(stdin_default$
|
|
6546
|
-
const [name$
|
|
6547
|
-
var stdin_default$
|
|
6548
|
-
name: name$
|
|
6545
|
+
const Sticky = withInstall(stdin_default$1l);
|
|
6546
|
+
const [name$1d, bem$1c] = createNamespace("tab");
|
|
6547
|
+
var stdin_default$1k = vue.defineComponent({
|
|
6548
|
+
name: name$1d,
|
|
6549
6549
|
props: {
|
|
6550
6550
|
id: String,
|
|
6551
6551
|
dot: Boolean,
|
|
@@ -6595,18 +6595,19 @@ var stdin_default$1j = vue.defineComponent({
|
|
|
6595
6595
|
});
|
|
6596
6596
|
const renderText = () => {
|
|
6597
6597
|
const Text2 = vue.createVNode("span", {
|
|
6598
|
-
"class": bem$
|
|
6598
|
+
"class": bem$1c("text", {
|
|
6599
6599
|
ellipsis: !props2.scrollable
|
|
6600
6600
|
})
|
|
6601
6601
|
}, [slots.title ? slots.title() : props2.title]);
|
|
6602
6602
|
const Content = vue.createVNode("span", {
|
|
6603
|
-
"class": bem$
|
|
6603
|
+
"class": bem$1c("title")
|
|
6604
6604
|
}, [props2.icon && vue.createVNode(Icon, {
|
|
6605
6605
|
"name": props2.icon,
|
|
6606
|
-
"class": bem$
|
|
6606
|
+
"class": bem$1c("icon")
|
|
6607
6607
|
}, null), Text2]);
|
|
6608
6608
|
if (props2.dot || isDef(props2.badge) && props2.badge !== "") {
|
|
6609
6609
|
return vue.createVNode(Badge, {
|
|
6610
|
+
"class": bem$1c("badge"),
|
|
6610
6611
|
"dot": props2.dot,
|
|
6611
6612
|
"content": props2.badge,
|
|
6612
6613
|
"showZero": props2.showZeroBadge
|
|
@@ -6619,7 +6620,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
|
6619
6620
|
return () => vue.createVNode("div", {
|
|
6620
6621
|
"id": props2.id,
|
|
6621
6622
|
"role": "tab",
|
|
6622
|
-
"class": [bem$
|
|
6623
|
+
"class": [bem$1c([props2.type, {
|
|
6623
6624
|
grow: props2.scrollable && !props2.shrink,
|
|
6624
6625
|
shrink: props2.shrink,
|
|
6625
6626
|
active: props2.isActive,
|
|
@@ -6633,7 +6634,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
|
6633
6634
|
}, [renderText()]);
|
|
6634
6635
|
}
|
|
6635
6636
|
});
|
|
6636
|
-
const [name$
|
|
6637
|
+
const [name$1c, bem$1b] = createNamespace("swipe");
|
|
6637
6638
|
const swipeProps = {
|
|
6638
6639
|
loop: truthProp,
|
|
6639
6640
|
width: numericProp,
|
|
@@ -6648,9 +6649,9 @@ const swipeProps = {
|
|
|
6648
6649
|
showIndicators: truthProp,
|
|
6649
6650
|
stopPropagation: truthProp
|
|
6650
6651
|
};
|
|
6651
|
-
const SWIPE_KEY = Symbol(name$
|
|
6652
|
-
var stdin_default$
|
|
6653
|
-
name: name$
|
|
6652
|
+
const SWIPE_KEY = Symbol(name$1c);
|
|
6653
|
+
var stdin_default$1j = vue.defineComponent({
|
|
6654
|
+
name: name$1c,
|
|
6654
6655
|
props: swipeProps,
|
|
6655
6656
|
emits: ["change"],
|
|
6656
6657
|
setup(props2, {
|
|
@@ -6912,7 +6913,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
|
6912
6913
|
} : void 0;
|
|
6913
6914
|
return vue.createVNode("i", {
|
|
6914
6915
|
"style": style,
|
|
6915
|
-
"class": bem$
|
|
6916
|
+
"class": bem$1b("indicator", {
|
|
6916
6917
|
active
|
|
6917
6918
|
})
|
|
6918
6919
|
}, null);
|
|
@@ -6926,7 +6927,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
|
6926
6927
|
}
|
|
6927
6928
|
if (props2.showIndicators && count.value > 1) {
|
|
6928
6929
|
return vue.createVNode("div", {
|
|
6929
|
-
"class": bem$
|
|
6930
|
+
"class": bem$1b("indicators", {
|
|
6930
6931
|
vertical: props2.vertical
|
|
6931
6932
|
})
|
|
6932
6933
|
}, [Array(count.value).fill("").map(renderDot)]);
|
|
@@ -6968,11 +6969,11 @@ var stdin_default$1i = vue.defineComponent({
|
|
|
6968
6969
|
var _a;
|
|
6969
6970
|
return vue.createVNode("div", {
|
|
6970
6971
|
"ref": root,
|
|
6971
|
-
"class": bem$
|
|
6972
|
+
"class": bem$1b()
|
|
6972
6973
|
}, [vue.createVNode("div", {
|
|
6973
6974
|
"ref": track,
|
|
6974
6975
|
"style": trackStyle.value,
|
|
6975
|
-
"class": bem$
|
|
6976
|
+
"class": bem$1b("track", {
|
|
6976
6977
|
vertical: props2.vertical
|
|
6977
6978
|
}),
|
|
6978
6979
|
"onTouchstartPassive": onTouchStart,
|
|
@@ -6982,10 +6983,10 @@ var stdin_default$1i = vue.defineComponent({
|
|
|
6982
6983
|
};
|
|
6983
6984
|
}
|
|
6984
6985
|
});
|
|
6985
|
-
const Swipe = withInstall(stdin_default$
|
|
6986
|
-
const [name$
|
|
6987
|
-
var stdin_default$
|
|
6988
|
-
name: name$
|
|
6986
|
+
const Swipe = withInstall(stdin_default$1j);
|
|
6987
|
+
const [name$1b, bem$1a] = createNamespace("tabs");
|
|
6988
|
+
var stdin_default$1i = vue.defineComponent({
|
|
6989
|
+
name: name$1b,
|
|
6989
6990
|
props: {
|
|
6990
6991
|
count: makeRequiredProp(Number),
|
|
6991
6992
|
inited: Boolean,
|
|
@@ -7009,7 +7010,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
|
7009
7010
|
return vue.createVNode(Swipe, {
|
|
7010
7011
|
"ref": swipeRef,
|
|
7011
7012
|
"loop": false,
|
|
7012
|
-
"class": bem$
|
|
7013
|
+
"class": bem$1a("track"),
|
|
7013
7014
|
"duration": +props2.duration * 1e3,
|
|
7014
7015
|
"touchable": props2.swipeable,
|
|
7015
7016
|
"lazyRender": props2.lazyRender,
|
|
@@ -7037,7 +7038,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
|
7037
7038
|
swipeRef
|
|
7038
7039
|
});
|
|
7039
7040
|
return () => vue.createVNode("div", {
|
|
7040
|
-
"class": bem$
|
|
7041
|
+
"class": bem$1a("content", {
|
|
7041
7042
|
animated: props2.animated || props2.swipeable
|
|
7042
7043
|
})
|
|
7043
7044
|
}, [renderChildren()]);
|
|
@@ -7062,7 +7063,7 @@ var __spreadValues$1 = (a, b) => {
|
|
|
7062
7063
|
return a;
|
|
7063
7064
|
};
|
|
7064
7065
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7065
|
-
const [name$
|
|
7066
|
+
const [name$1a, bem$19] = createNamespace("tabs");
|
|
7066
7067
|
const tabsProps = {
|
|
7067
7068
|
type: makeStringProp("line"),
|
|
7068
7069
|
color: String,
|
|
@@ -7089,9 +7090,9 @@ const tabsProps = {
|
|
|
7089
7090
|
moreTitle: String,
|
|
7090
7091
|
moreOptions: makeArrayProp()
|
|
7091
7092
|
};
|
|
7092
|
-
const TABS_KEY = Symbol(name$
|
|
7093
|
-
var stdin_default$
|
|
7094
|
-
name: name$
|
|
7093
|
+
const TABS_KEY = Symbol(name$1a);
|
|
7094
|
+
var stdin_default$1h = vue.defineComponent({
|
|
7095
|
+
name: name$1a,
|
|
7095
7096
|
props: tabsProps,
|
|
7096
7097
|
emits: ["click", "change", "scroll", "disabled", "rendered", "click-tab", "update:active", "click-more", "select-more", "update:showMore"],
|
|
7097
7098
|
setup(props2, {
|
|
@@ -7315,12 +7316,12 @@ var stdin_default$1g = vue.defineComponent({
|
|
|
7315
7316
|
}));
|
|
7316
7317
|
return actions.map((action, index) => __spreadProps(__spreadValues$1({}, action), {
|
|
7317
7318
|
color: index === state.currentIndex ? "var(--van-primary-color)" : action.color,
|
|
7318
|
-
className: [action.className, bem$
|
|
7319
|
+
className: [action.className, bem$19("more-option", {
|
|
7319
7320
|
active: index === state.currentIndex
|
|
7320
7321
|
})]
|
|
7321
7322
|
}));
|
|
7322
7323
|
});
|
|
7323
|
-
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$
|
|
7324
|
+
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1k, vue.mergeProps({
|
|
7324
7325
|
"key": item.id,
|
|
7325
7326
|
"id": `${id}-${index}`,
|
|
7326
7327
|
"ref": setTitleRefs(index),
|
|
@@ -7341,7 +7342,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
|
7341
7342
|
const renderLine = () => {
|
|
7342
7343
|
if (props2.type === "line" && children.length) {
|
|
7343
7344
|
return vue.createVNode("div", {
|
|
7344
|
-
"class": bem$
|
|
7345
|
+
"class": bem$19("line"),
|
|
7345
7346
|
"style": state.lineStyle
|
|
7346
7347
|
}, null);
|
|
7347
7348
|
}
|
|
@@ -7355,13 +7356,13 @@ var stdin_default$1g = vue.defineComponent({
|
|
|
7355
7356
|
} = props2;
|
|
7356
7357
|
const Header = [vue.createVNode("div", {
|
|
7357
7358
|
"ref": sticky ? void 0 : wrapRef,
|
|
7358
|
-
"class": [bem$
|
|
7359
|
+
"class": [bem$19("wrap"), {
|
|
7359
7360
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
|
7360
7361
|
}]
|
|
7361
7362
|
}, [vue.createVNode("div", {
|
|
7362
7363
|
"ref": navRef,
|
|
7363
7364
|
"role": "tablist",
|
|
7364
|
-
"class": bem$
|
|
7365
|
+
"class": bem$19("nav", [type, {
|
|
7365
7366
|
shrink: props2.shrink,
|
|
7366
7367
|
complete: scrollable.value,
|
|
7367
7368
|
more: props2.more
|
|
@@ -7371,7 +7372,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
|
7371
7372
|
}, [(_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", {
|
|
7372
7373
|
"ref": moreRef,
|
|
7373
7374
|
"type": "button",
|
|
7374
|
-
"class": bem$
|
|
7375
|
+
"class": bem$19("more"),
|
|
7375
7376
|
"aria-label": "More tabs",
|
|
7376
7377
|
"onClick": onClickMore
|
|
7377
7378
|
}, [vue.createVNode(Icon, {
|
|
@@ -7445,14 +7446,14 @@ var stdin_default$1g = vue.defineComponent({
|
|
|
7445
7446
|
});
|
|
7446
7447
|
return () => vue.createVNode("div", {
|
|
7447
7448
|
"ref": root,
|
|
7448
|
-
"class": bem$
|
|
7449
|
+
"class": bem$19([props2.type])
|
|
7449
7450
|
}, [props2.sticky ? vue.createVNode(Sticky, {
|
|
7450
7451
|
"container": root.value,
|
|
7451
7452
|
"offsetTop": offsetTopPx.value,
|
|
7452
7453
|
"onScroll": onStickyScroll
|
|
7453
7454
|
}, {
|
|
7454
7455
|
default: () => [renderHeader()]
|
|
7455
|
-
}) : renderHeader(), vue.createVNode(stdin_default$
|
|
7456
|
+
}) : renderHeader(), vue.createVNode(stdin_default$1i, {
|
|
7456
7457
|
"ref": contentRef,
|
|
7457
7458
|
"count": children.length,
|
|
7458
7459
|
"inited": state.inited,
|
|
@@ -7472,9 +7473,9 @@ var stdin_default$1g = vue.defineComponent({
|
|
|
7472
7473
|
});
|
|
7473
7474
|
const TAB_STATUS_KEY = Symbol();
|
|
7474
7475
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
|
7475
|
-
const [name$
|
|
7476
|
-
var stdin_default$
|
|
7477
|
-
name: name$
|
|
7476
|
+
const [name$19, bem$18] = createNamespace("swipe-item");
|
|
7477
|
+
var stdin_default$1g = vue.defineComponent({
|
|
7478
|
+
name: name$19,
|
|
7478
7479
|
setup(props2, {
|
|
7479
7480
|
slots
|
|
7480
7481
|
}) {
|
|
@@ -7539,14 +7540,14 @@ var stdin_default$1f = vue.defineComponent({
|
|
|
7539
7540
|
return () => {
|
|
7540
7541
|
var _a;
|
|
7541
7542
|
return vue.createVNode("div", {
|
|
7542
|
-
"class": bem$
|
|
7543
|
+
"class": bem$18(),
|
|
7543
7544
|
"style": style.value
|
|
7544
7545
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
|
7545
7546
|
};
|
|
7546
7547
|
}
|
|
7547
7548
|
});
|
|
7548
|
-
const SwipeItem = withInstall(stdin_default$
|
|
7549
|
-
const [name$
|
|
7549
|
+
const SwipeItem = withInstall(stdin_default$1g);
|
|
7550
|
+
const [name$18, bem$17] = createNamespace("tab");
|
|
7550
7551
|
const tabProps = extend({}, routeProps, {
|
|
7551
7552
|
dot: Boolean,
|
|
7552
7553
|
name: numericProp,
|
|
@@ -7558,8 +7559,8 @@ const tabProps = extend({}, routeProps, {
|
|
|
7558
7559
|
titleStyle: [String, Object],
|
|
7559
7560
|
showZeroBadge: truthProp
|
|
7560
7561
|
});
|
|
7561
|
-
var stdin_default$
|
|
7562
|
-
name: name$
|
|
7562
|
+
var stdin_default$1f = vue.defineComponent({
|
|
7563
|
+
name: name$18,
|
|
7563
7564
|
props: tabProps,
|
|
7564
7565
|
setup(props2, {
|
|
7565
7566
|
slots
|
|
@@ -7627,7 +7628,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
|
7627
7628
|
return vue.createVNode(SwipeItem, {
|
|
7628
7629
|
"id": id,
|
|
7629
7630
|
"role": "tabpanel",
|
|
7630
|
-
"class": bem$
|
|
7631
|
+
"class": bem$17("panel-wrapper", {
|
|
7631
7632
|
inactive: hasInactiveClass.value
|
|
7632
7633
|
}),
|
|
7633
7634
|
"tabindex": active.value ? 0 : -1,
|
|
@@ -7637,7 +7638,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
|
7637
7638
|
default: () => {
|
|
7638
7639
|
var _a2;
|
|
7639
7640
|
return [vue.createVNode("div", {
|
|
7640
|
-
"class": bem$
|
|
7641
|
+
"class": bem$17("panel")
|
|
7641
7642
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
|
7642
7643
|
}
|
|
7643
7644
|
});
|
|
@@ -7650,16 +7651,16 @@ var stdin_default$1e = vue.defineComponent({
|
|
|
7650
7651
|
return vue.withDirectives(vue.createVNode("div", {
|
|
7651
7652
|
"id": id,
|
|
7652
7653
|
"role": "tabpanel",
|
|
7653
|
-
"class": bem$
|
|
7654
|
+
"class": bem$17("panel"),
|
|
7654
7655
|
"tabindex": show ? 0 : -1,
|
|
7655
7656
|
"aria-labelledby": label
|
|
7656
7657
|
}, [Content]), [[vue.vShow, show]]);
|
|
7657
7658
|
};
|
|
7658
7659
|
}
|
|
7659
7660
|
});
|
|
7660
|
-
const Tab = withInstall(stdin_default$
|
|
7661
|
-
const Tabs = withInstall(stdin_default$
|
|
7662
|
-
const [name$
|
|
7661
|
+
const Tab = withInstall(stdin_default$1f);
|
|
7662
|
+
const Tabs = withInstall(stdin_default$1h);
|
|
7663
|
+
const [name$17, bem$16, t$e] = createNamespace("cascader");
|
|
7663
7664
|
const cascaderProps = {
|
|
7664
7665
|
title: String,
|
|
7665
7666
|
options: makeArrayProp(),
|
|
@@ -7672,8 +7673,8 @@ const cascaderProps = {
|
|
|
7672
7673
|
placeholder: String,
|
|
7673
7674
|
activeColor: String
|
|
7674
7675
|
};
|
|
7675
|
-
var stdin_default$
|
|
7676
|
-
name: name$
|
|
7676
|
+
var stdin_default$1e = vue.defineComponent({
|
|
7677
|
+
name: name$17,
|
|
7677
7678
|
props: cascaderProps,
|
|
7678
7679
|
emits: ["close", "change", "finish", "click-tab", "update:modelValue"],
|
|
7679
7680
|
setup(props2, {
|
|
@@ -7781,12 +7782,12 @@ var stdin_default$1d = vue.defineComponent({
|
|
|
7781
7782
|
title
|
|
7782
7783
|
}) => emit("click-tab", name2, title);
|
|
7783
7784
|
const renderHeader = () => props2.showHeader ? vue.createVNode("div", {
|
|
7784
|
-
"class": bem$
|
|
7785
|
+
"class": bem$16("header")
|
|
7785
7786
|
}, [vue.createVNode("h2", {
|
|
7786
|
-
"class": bem$
|
|
7787
|
+
"class": bem$16("title")
|
|
7787
7788
|
}, [slots.title ? slots.title() : props2.title]), props2.closeable ? vue.createVNode(Icon, {
|
|
7788
7789
|
"name": props2.closeIcon,
|
|
7789
|
-
"class": [bem$
|
|
7790
|
+
"class": [bem$16("close-icon"), HAPTICS_FEEDBACK],
|
|
7790
7791
|
"onClick": onClose
|
|
7791
7792
|
}, null) : null]) : null;
|
|
7792
7793
|
const renderOption = (option, selectedOption, tabIndex) => {
|
|
@@ -7801,7 +7802,7 @@ var stdin_default$1d = vue.defineComponent({
|
|
|
7801
7802
|
}) : vue.createVNode("span", null, [option[textKey]]);
|
|
7802
7803
|
return vue.createVNode("li", {
|
|
7803
7804
|
"role": "menuitemradio",
|
|
7804
|
-
"class": [bem$
|
|
7805
|
+
"class": [bem$16("option", {
|
|
7805
7806
|
selected,
|
|
7806
7807
|
disabled
|
|
7807
7808
|
}), option.className],
|
|
@@ -7814,12 +7815,12 @@ var stdin_default$1d = vue.defineComponent({
|
|
|
7814
7815
|
"onClick": () => onSelect(option, tabIndex)
|
|
7815
7816
|
}, [Text2, selected ? vue.createVNode(Icon, {
|
|
7816
7817
|
"name": "success",
|
|
7817
|
-
"class": bem$
|
|
7818
|
+
"class": bem$16("selected-icon")
|
|
7818
7819
|
}, null) : null]);
|
|
7819
7820
|
};
|
|
7820
7821
|
const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
|
|
7821
7822
|
"role": "menu",
|
|
7822
|
-
"class": bem$
|
|
7823
|
+
"class": bem$16("options")
|
|
7823
7824
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
|
7824
7825
|
const renderTab = (tab, tabIndex) => {
|
|
7825
7826
|
const {
|
|
@@ -7830,7 +7831,7 @@ var stdin_default$1d = vue.defineComponent({
|
|
|
7830
7831
|
const title = selected ? selected[textKey] : placeholder;
|
|
7831
7832
|
return vue.createVNode(Tab, {
|
|
7832
7833
|
"title": title,
|
|
7833
|
-
"titleClass": bem$
|
|
7834
|
+
"titleClass": bem$16("tab", {
|
|
7834
7835
|
unselected: !selected
|
|
7835
7836
|
})
|
|
7836
7837
|
}, {
|
|
@@ -7849,7 +7850,7 @@ var stdin_default$1d = vue.defineComponent({
|
|
|
7849
7850
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
7850
7851
|
"shrink": true,
|
|
7851
7852
|
"animated": true,
|
|
7852
|
-
"class": bem$
|
|
7853
|
+
"class": bem$16("tabs"),
|
|
7853
7854
|
"color": props2.activeColor,
|
|
7854
7855
|
"swipeable": props2.swipeable,
|
|
7855
7856
|
"onClick-tab": onClickTab
|
|
@@ -7873,19 +7874,19 @@ var stdin_default$1d = vue.defineComponent({
|
|
|
7873
7874
|
updateTabs();
|
|
7874
7875
|
});
|
|
7875
7876
|
return () => vue.createVNode("div", {
|
|
7876
|
-
"class": bem$
|
|
7877
|
+
"class": bem$16()
|
|
7877
7878
|
}, [renderHeader(), renderTabs()]);
|
|
7878
7879
|
}
|
|
7879
7880
|
});
|
|
7880
|
-
const Cascader = withInstall(stdin_default$
|
|
7881
|
-
const [name$
|
|
7881
|
+
const Cascader = withInstall(stdin_default$1e);
|
|
7882
|
+
const [name$16, bem$15] = createNamespace("cell-group");
|
|
7882
7883
|
const cellGroupProps = {
|
|
7883
7884
|
title: String,
|
|
7884
7885
|
inset: Boolean,
|
|
7885
7886
|
border: truthProp
|
|
7886
7887
|
};
|
|
7887
|
-
var stdin_default$
|
|
7888
|
-
name: name$
|
|
7888
|
+
var stdin_default$1d = vue.defineComponent({
|
|
7889
|
+
name: name$16,
|
|
7889
7890
|
inheritAttrs: false,
|
|
7890
7891
|
props: cellGroupProps,
|
|
7891
7892
|
setup(props2, {
|
|
@@ -7895,7 +7896,7 @@ var stdin_default$1c = vue.defineComponent({
|
|
|
7895
7896
|
const renderGroup = () => {
|
|
7896
7897
|
var _a;
|
|
7897
7898
|
return vue.createVNode("div", vue.mergeProps({
|
|
7898
|
-
"class": [bem$
|
|
7899
|
+
"class": [bem$15({
|
|
7899
7900
|
inset: props2.inset
|
|
7900
7901
|
}), {
|
|
7901
7902
|
[BORDER_TOP_BOTTOM]: props2.border && !props2.inset
|
|
@@ -7903,7 +7904,7 @@ var stdin_default$1c = vue.defineComponent({
|
|
|
7903
7904
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
7904
7905
|
};
|
|
7905
7906
|
const renderTitle = () => vue.createVNode("div", {
|
|
7906
|
-
"class": bem$
|
|
7907
|
+
"class": bem$15("title", {
|
|
7907
7908
|
inset: props2.inset
|
|
7908
7909
|
})
|
|
7909
7910
|
}, [slots.title ? slots.title() : props2.title]);
|
|
@@ -7915,9 +7916,9 @@ var stdin_default$1c = vue.defineComponent({
|
|
|
7915
7916
|
};
|
|
7916
7917
|
}
|
|
7917
7918
|
});
|
|
7918
|
-
const CellGroup = withInstall(stdin_default$
|
|
7919
|
-
const CheckboxGroup = withInstall(stdin_default$
|
|
7920
|
-
const [name$
|
|
7919
|
+
const CellGroup = withInstall(stdin_default$1d);
|
|
7920
|
+
const CheckboxGroup = withInstall(stdin_default$1M);
|
|
7921
|
+
const [name$15, bem$14] = createNamespace("nav-bar");
|
|
7921
7922
|
const navBarProps = {
|
|
7922
7923
|
title: String,
|
|
7923
7924
|
fixed: Boolean,
|
|
@@ -7934,8 +7935,8 @@ const navBarProps = {
|
|
|
7934
7935
|
placeholder: Boolean,
|
|
7935
7936
|
safeAreaInsetTop: Boolean
|
|
7936
7937
|
};
|
|
7937
|
-
var stdin_default$
|
|
7938
|
-
name: name$
|
|
7938
|
+
var stdin_default$1c = vue.defineComponent({
|
|
7939
|
+
name: name$15,
|
|
7939
7940
|
props: navBarProps,
|
|
7940
7941
|
emits: ["click-left", "click-right", "click-title", "select-right-popover", "update:titleDropdownActive"],
|
|
7941
7942
|
setup(props2, {
|
|
@@ -7944,7 +7945,7 @@ var stdin_default$1b = vue.defineComponent({
|
|
|
7944
7945
|
}) {
|
|
7945
7946
|
const navBarRef = vue.ref();
|
|
7946
7947
|
const rightPopoverShow = vue.ref(false);
|
|
7947
|
-
const renderPlaceholder = usePlaceholder(navBarRef, bem$
|
|
7948
|
+
const renderPlaceholder = usePlaceholder(navBarRef, bem$14);
|
|
7948
7949
|
const onClickLeft = (event) => emit("click-left", event);
|
|
7949
7950
|
const onClickRight = (event) => emit("click-right", event);
|
|
7950
7951
|
const onUpdateRightPopoverShow = (show) => {
|
|
@@ -7965,10 +7966,10 @@ var stdin_default$1b = vue.defineComponent({
|
|
|
7965
7966
|
return slots.left();
|
|
7966
7967
|
}
|
|
7967
7968
|
return [props2.leftArrow && vue.createVNode(Icon, {
|
|
7968
|
-
"class": bem$
|
|
7969
|
+
"class": bem$14("arrow"),
|
|
7969
7970
|
"name": "arrow-left"
|
|
7970
7971
|
}, null), props2.leftText && vue.createVNode("span", {
|
|
7971
|
-
"class": bem$
|
|
7972
|
+
"class": bem$14("text")
|
|
7972
7973
|
}, [props2.leftText])];
|
|
7973
7974
|
};
|
|
7974
7975
|
const renderRight = () => {
|
|
@@ -7986,12 +7987,12 @@ var stdin_default$1b = vue.defineComponent({
|
|
|
7986
7987
|
}, {
|
|
7987
7988
|
reference: () => vue.createVNode(Icon, {
|
|
7988
7989
|
"name": props2.rightPopoverIcon,
|
|
7989
|
-
"class": bem$
|
|
7990
|
+
"class": bem$14("right-popover-icon")
|
|
7990
7991
|
}, null)
|
|
7991
7992
|
});
|
|
7992
7993
|
}
|
|
7993
7994
|
return vue.createVNode("span", {
|
|
7994
|
-
"class": bem$
|
|
7995
|
+
"class": bem$14("text")
|
|
7995
7996
|
}, [props2.rightText]);
|
|
7996
7997
|
};
|
|
7997
7998
|
const renderNavBar = () => {
|
|
@@ -8010,23 +8011,23 @@ var stdin_default$1b = vue.defineComponent({
|
|
|
8010
8011
|
return vue.createVNode("div", {
|
|
8011
8012
|
"ref": navBarRef,
|
|
8012
8013
|
"style": style,
|
|
8013
|
-
"class": [bem$
|
|
8014
|
+
"class": [bem$14({
|
|
8014
8015
|
fixed
|
|
8015
8016
|
}), {
|
|
8016
8017
|
[BORDER_BOTTOM]: border,
|
|
8017
8018
|
"van-safe-area-top": props2.safeAreaInsetTop
|
|
8018
8019
|
}]
|
|
8019
8020
|
}, [vue.createVNode("div", {
|
|
8020
|
-
"class": bem$
|
|
8021
|
+
"class": bem$14("content")
|
|
8021
8022
|
}, [hasLeft && vue.createVNode("div", {
|
|
8022
|
-
"class": [bem$
|
|
8023
|
+
"class": [bem$14("left", {
|
|
8023
8024
|
slot: !!slots.left
|
|
8024
8025
|
}), {
|
|
8025
8026
|
[HAPTICS_FEEDBACK]: !slots.left
|
|
8026
8027
|
}],
|
|
8027
8028
|
"onClick": slots.left ? void 0 : onClickLeft
|
|
8028
8029
|
}, [renderLeft()]), vue.createVNode("div", {
|
|
8029
|
-
"class": [bem$
|
|
8030
|
+
"class": [bem$14("title", {
|
|
8030
8031
|
dropdown: titleDropdown
|
|
8031
8032
|
}), {
|
|
8032
8033
|
[HAPTICS_FEEDBACK]: titleDropdown
|
|
@@ -8041,16 +8042,16 @@ var stdin_default$1b = vue.defineComponent({
|
|
|
8041
8042
|
}
|
|
8042
8043
|
}
|
|
8043
8044
|
}, [vue.createVNode("div", {
|
|
8044
|
-
"class": [bem$
|
|
8045
|
+
"class": [bem$14("title-content"), "van-ellipsis"]
|
|
8045
8046
|
}, [slots.title ? slots.title() : title, titleDropdown && vue.createVNode(Icon, {
|
|
8046
8047
|
"name": "trangle-down",
|
|
8047
|
-
"class": bem$
|
|
8048
|
+
"class": bem$14("title-arrow", {
|
|
8048
8049
|
active: props2.titleDropdownActive
|
|
8049
8050
|
})
|
|
8050
8051
|
}, null)]), subtitle && vue.createVNode("div", {
|
|
8051
|
-
"class": [bem$
|
|
8052
|
+
"class": [bem$14("subtitle"), "van-ellipsis"]
|
|
8052
8053
|
}, [subtitle])]), hasRight && vue.createVNode("div", {
|
|
8053
|
-
"class": [bem$
|
|
8054
|
+
"class": [bem$14("right", {
|
|
8054
8055
|
slot: !!slots.right
|
|
8055
8056
|
}), {
|
|
8056
8057
|
[HAPTICS_FEEDBACK]: !slots.right && !hasRightPopover
|
|
@@ -8066,8 +8067,8 @@ var stdin_default$1b = vue.defineComponent({
|
|
|
8066
8067
|
};
|
|
8067
8068
|
}
|
|
8068
8069
|
});
|
|
8069
|
-
const NavBar = withInstall(stdin_default$
|
|
8070
|
-
const [name$
|
|
8070
|
+
const NavBar = withInstall(stdin_default$1c);
|
|
8071
|
+
const [name$14, bem$13] = createNamespace("checkbox-panel");
|
|
8071
8072
|
const checkboxPanelProps = {
|
|
8072
8073
|
show: Boolean,
|
|
8073
8074
|
title: String,
|
|
@@ -8077,8 +8078,8 @@ const checkboxPanelProps = {
|
|
|
8077
8078
|
selectAllText: makeStringProp("全选"),
|
|
8078
8079
|
cancelSelectAllText: makeStringProp("取消全选")
|
|
8079
8080
|
};
|
|
8080
|
-
var stdin_default$
|
|
8081
|
-
name: name$
|
|
8081
|
+
var stdin_default$1b = vue.defineComponent({
|
|
8082
|
+
name: name$14,
|
|
8082
8083
|
props: checkboxPanelProps,
|
|
8083
8084
|
emits: ["update:show", "update:modelValue", "confirm"],
|
|
8084
8085
|
setup(props2, {
|
|
@@ -8103,17 +8104,17 @@ var stdin_default$1a = vue.defineComponent({
|
|
|
8103
8104
|
};
|
|
8104
8105
|
return () => vue.createVNode(ActionSheet, {
|
|
8105
8106
|
"show": props2.show,
|
|
8106
|
-
"class": bem$
|
|
8107
|
+
"class": bem$13(),
|
|
8107
8108
|
"onUpdate:show": (show) => emit("update:show", show)
|
|
8108
8109
|
}, {
|
|
8109
8110
|
default: () => [vue.createVNode("div", {
|
|
8110
|
-
"class": bem$
|
|
8111
|
+
"class": bem$13("content")
|
|
8111
8112
|
}, [vue.createVNode("div", {
|
|
8112
|
-
"class": bem$
|
|
8113
|
+
"class": bem$13("nav-wrapper")
|
|
8113
8114
|
}, [vue.createVNode(NavBar, {
|
|
8114
8115
|
"title": props2.title,
|
|
8115
8116
|
"border": false,
|
|
8116
|
-
"class": bem$
|
|
8117
|
+
"class": bem$13("nav")
|
|
8117
8118
|
}, {
|
|
8118
8119
|
left: () => vue.createVNode(Icon, {
|
|
8119
8120
|
"name": "cross",
|
|
@@ -8121,14 +8122,14 @@ var stdin_default$1a = vue.defineComponent({
|
|
|
8121
8122
|
"onClick": close
|
|
8122
8123
|
}, null),
|
|
8123
8124
|
right: () => vue.createVNode("span", {
|
|
8124
|
-
"class": bem$
|
|
8125
|
+
"class": bem$13("select-all"),
|
|
8125
8126
|
"onClick": toggleAll
|
|
8126
8127
|
}, [isAllSelected.value ? props2.cancelSelectAllText : props2.selectAllText])
|
|
8127
8128
|
})]), vue.createVNode("div", {
|
|
8128
|
-
"class": bem$
|
|
8129
|
+
"class": bem$13("body")
|
|
8129
8130
|
}, [vue.createVNode(CheckboxGroup, {
|
|
8130
8131
|
"modelValue": selectedValues.value,
|
|
8131
|
-
"class": bem$
|
|
8132
|
+
"class": bem$13("card"),
|
|
8132
8133
|
"onUpdate:modelValue": (value) => emit("update:modelValue", value)
|
|
8133
8134
|
}, {
|
|
8134
8135
|
default: () => [props2.options.map((option) => vue.createVNode(Cell, {
|
|
@@ -8144,7 +8145,7 @@ var stdin_default$1a = vue.defineComponent({
|
|
|
8144
8145
|
}, null)
|
|
8145
8146
|
}))]
|
|
8146
8147
|
})]), vue.createVNode("div", {
|
|
8147
|
-
"class": bem$
|
|
8148
|
+
"class": bem$13("footer")
|
|
8148
8149
|
}, [vue.createVNode(Button, {
|
|
8149
8150
|
"block": true,
|
|
8150
8151
|
"type": "primary",
|
|
@@ -8155,8 +8156,8 @@ var stdin_default$1a = vue.defineComponent({
|
|
|
8155
8156
|
});
|
|
8156
8157
|
}
|
|
8157
8158
|
});
|
|
8158
|
-
const CheckboxPanel = withInstall(stdin_default$
|
|
8159
|
-
const [name$
|
|
8159
|
+
const CheckboxPanel = withInstall(stdin_default$1b);
|
|
8160
|
+
const [name$13, bem$12] = createNamespace("circle");
|
|
8160
8161
|
let uid = 0;
|
|
8161
8162
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
|
8162
8163
|
function getPath(clockwise, viewBoxSize) {
|
|
@@ -8177,8 +8178,8 @@ const circleProps = {
|
|
|
8177
8178
|
strokeLinecap: String,
|
|
8178
8179
|
startPosition: makeStringProp("top")
|
|
8179
8180
|
};
|
|
8180
|
-
var stdin_default$
|
|
8181
|
-
name: name$
|
|
8181
|
+
var stdin_default$1a = vue.defineComponent({
|
|
8182
|
+
name: name$13,
|
|
8182
8183
|
props: circleProps,
|
|
8183
8184
|
emits: ["update:currentRate"],
|
|
8184
8185
|
setup(props2, {
|
|
@@ -8246,7 +8247,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
|
8246
8247
|
return vue.createVNode("path", {
|
|
8247
8248
|
"d": path.value,
|
|
8248
8249
|
"style": style,
|
|
8249
|
-
"class": bem$
|
|
8250
|
+
"class": bem$12("hover"),
|
|
8250
8251
|
"stroke": color
|
|
8251
8252
|
}, null);
|
|
8252
8253
|
};
|
|
@@ -8257,7 +8258,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
|
8257
8258
|
strokeWidth: `${props2.strokeWidth}px`
|
|
8258
8259
|
};
|
|
8259
8260
|
return vue.createVNode("path", {
|
|
8260
|
-
"class": bem$
|
|
8261
|
+
"class": bem$12("layer"),
|
|
8261
8262
|
"style": style,
|
|
8262
8263
|
"d": path.value
|
|
8263
8264
|
}, null);
|
|
@@ -8288,12 +8289,12 @@ var stdin_default$19 = vue.defineComponent({
|
|
|
8288
8289
|
}
|
|
8289
8290
|
if (props2.text) {
|
|
8290
8291
|
return vue.createVNode("div", {
|
|
8291
|
-
"class": bem$
|
|
8292
|
+
"class": bem$12("text")
|
|
8292
8293
|
}, [props2.text]);
|
|
8293
8294
|
}
|
|
8294
8295
|
};
|
|
8295
8296
|
return () => vue.createVNode("div", {
|
|
8296
|
-
"class": bem$
|
|
8297
|
+
"class": bem$12(),
|
|
8297
8298
|
"style": getSizeStyle(props2.size)
|
|
8298
8299
|
}, [vue.createVNode("svg", {
|
|
8299
8300
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
|
@@ -8301,9 +8302,9 @@ var stdin_default$19 = vue.defineComponent({
|
|
|
8301
8302
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
|
8302
8303
|
}
|
|
8303
8304
|
});
|
|
8304
|
-
const Circle = withInstall(stdin_default$
|
|
8305
|
-
const [name$
|
|
8306
|
-
const ROW_KEY = Symbol(name$
|
|
8305
|
+
const Circle = withInstall(stdin_default$1a);
|
|
8306
|
+
const [name$12, bem$11] = createNamespace("row");
|
|
8307
|
+
const ROW_KEY = Symbol(name$12);
|
|
8307
8308
|
const rowProps = {
|
|
8308
8309
|
tag: makeStringProp("div"),
|
|
8309
8310
|
wrap: truthProp,
|
|
@@ -8311,8 +8312,8 @@ const rowProps = {
|
|
|
8311
8312
|
gutter: makeNumericProp(0),
|
|
8312
8313
|
justify: String
|
|
8313
8314
|
};
|
|
8314
|
-
var stdin_default$
|
|
8315
|
-
name: name$
|
|
8315
|
+
var stdin_default$19 = vue.defineComponent({
|
|
8316
|
+
name: name$12,
|
|
8316
8317
|
props: rowProps,
|
|
8317
8318
|
setup(props2, {
|
|
8318
8319
|
slots
|
|
@@ -8371,7 +8372,7 @@ var stdin_default$18 = vue.defineComponent({
|
|
|
8371
8372
|
justify
|
|
8372
8373
|
} = props2;
|
|
8373
8374
|
return vue.createVNode(tag, {
|
|
8374
|
-
"class": bem$
|
|
8375
|
+
"class": bem$11({
|
|
8375
8376
|
[`align-${align}`]: align,
|
|
8376
8377
|
[`justify-${justify}`]: justify,
|
|
8377
8378
|
nowrap: !wrap
|
|
@@ -8385,14 +8386,14 @@ var stdin_default$18 = vue.defineComponent({
|
|
|
8385
8386
|
};
|
|
8386
8387
|
}
|
|
8387
8388
|
});
|
|
8388
|
-
const [name$
|
|
8389
|
+
const [name$11, bem$10] = createNamespace("col");
|
|
8389
8390
|
const colProps = {
|
|
8390
8391
|
tag: makeStringProp("div"),
|
|
8391
8392
|
span: makeNumericProp(0),
|
|
8392
8393
|
offset: numericProp
|
|
8393
8394
|
};
|
|
8394
|
-
var stdin_default$
|
|
8395
|
-
name: name$
|
|
8395
|
+
var stdin_default$18 = vue.defineComponent({
|
|
8396
|
+
name: name$11,
|
|
8396
8397
|
props: colProps,
|
|
8397
8398
|
setup(props2, {
|
|
8398
8399
|
slots
|
|
@@ -8427,7 +8428,7 @@ var stdin_default$17 = vue.defineComponent({
|
|
|
8427
8428
|
} = props2;
|
|
8428
8429
|
return vue.createVNode(tag, {
|
|
8429
8430
|
"style": style.value,
|
|
8430
|
-
"class": bem
|
|
8431
|
+
"class": bem$10({
|
|
8431
8432
|
[span]: span,
|
|
8432
8433
|
[`offset-${offset}`]: offset
|
|
8433
8434
|
})
|
|
@@ -8440,9 +8441,9 @@ var stdin_default$17 = vue.defineComponent({
|
|
|
8440
8441
|
};
|
|
8441
8442
|
}
|
|
8442
8443
|
});
|
|
8443
|
-
const Col = withInstall(stdin_default$
|
|
8444
|
-
const [name
|
|
8445
|
-
const COLLAPSE_KEY = Symbol(name
|
|
8444
|
+
const Col = withInstall(stdin_default$18);
|
|
8445
|
+
const [name$10, bem$$] = createNamespace("collapse");
|
|
8446
|
+
const COLLAPSE_KEY = Symbol(name$10);
|
|
8446
8447
|
const collapseProps = {
|
|
8447
8448
|
border: truthProp,
|
|
8448
8449
|
accordion: Boolean,
|
|
@@ -8462,8 +8463,8 @@ function validateModelValue(modelValue, accordion) {
|
|
|
8462
8463
|
}
|
|
8463
8464
|
return true;
|
|
8464
8465
|
}
|
|
8465
|
-
var stdin_default$
|
|
8466
|
-
name: name
|
|
8466
|
+
var stdin_default$17 = vue.defineComponent({
|
|
8467
|
+
name: name$10,
|
|
8467
8468
|
props: collapseProps,
|
|
8468
8469
|
emits: ["change", "update:modelValue"],
|
|
8469
8470
|
setup(props2, {
|
|
@@ -8533,15 +8534,15 @@ var stdin_default$16 = vue.defineComponent({
|
|
|
8533
8534
|
return () => {
|
|
8534
8535
|
var _a;
|
|
8535
8536
|
return vue.createVNode("div", {
|
|
8536
|
-
"class": [bem
|
|
8537
|
+
"class": [bem$$(), {
|
|
8537
8538
|
[BORDER_TOP_BOTTOM]: props2.border
|
|
8538
8539
|
}]
|
|
8539
8540
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
8540
8541
|
};
|
|
8541
8542
|
}
|
|
8542
8543
|
});
|
|
8543
|
-
const Collapse = withInstall(stdin_default$
|
|
8544
|
-
const [name
|
|
8544
|
+
const Collapse = withInstall(stdin_default$17);
|
|
8545
|
+
const [name$$, bem$_] = createNamespace("collapse-item");
|
|
8545
8546
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
|
8546
8547
|
const collapseItemProps = extend({}, cellSharedProps, {
|
|
8547
8548
|
name: numericProp,
|
|
@@ -8550,8 +8551,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
|
8550
8551
|
readonly: Boolean,
|
|
8551
8552
|
lazyRender: truthProp
|
|
8552
8553
|
});
|
|
8553
|
-
var stdin_default$
|
|
8554
|
-
name: name
|
|
8554
|
+
var stdin_default$16 = vue.defineComponent({
|
|
8555
|
+
name: name$$,
|
|
8555
8556
|
props: collapseItemProps,
|
|
8556
8557
|
setup(props2, {
|
|
8557
8558
|
slots
|
|
@@ -8633,7 +8634,7 @@ var stdin_default$15 = vue.defineComponent({
|
|
|
8633
8634
|
}
|
|
8634
8635
|
return vue.createVNode(Cell, vue.mergeProps({
|
|
8635
8636
|
"role": "button",
|
|
8636
|
-
"class": bem$
|
|
8637
|
+
"class": bem$_("title", {
|
|
8637
8638
|
disabled,
|
|
8638
8639
|
expanded: expanded.value,
|
|
8639
8640
|
borderless: !border
|
|
@@ -8646,11 +8647,11 @@ var stdin_default$15 = vue.defineComponent({
|
|
|
8646
8647
|
var _a;
|
|
8647
8648
|
return vue.withDirectives(vue.createVNode("div", {
|
|
8648
8649
|
"ref": wrapperRef,
|
|
8649
|
-
"class": bem$
|
|
8650
|
+
"class": bem$_("wrapper"),
|
|
8650
8651
|
"onTransitionend": onTransitionEnd
|
|
8651
8652
|
}, [vue.createVNode("div", {
|
|
8652
8653
|
"ref": contentRef,
|
|
8653
|
-
"class": bem$
|
|
8654
|
+
"class": bem$_("content")
|
|
8654
8655
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
|
|
8655
8656
|
});
|
|
8656
8657
|
useExpose({
|
|
@@ -8659,15 +8660,15 @@ var stdin_default$15 = vue.defineComponent({
|
|
|
8659
8660
|
itemName: name2
|
|
8660
8661
|
});
|
|
8661
8662
|
return () => vue.createVNode("div", {
|
|
8662
|
-
"class": [bem$
|
|
8663
|
+
"class": [bem$_({
|
|
8663
8664
|
border: index.value && props2.border
|
|
8664
8665
|
})]
|
|
8665
8666
|
}, [renderTitle(), renderContent()]);
|
|
8666
8667
|
}
|
|
8667
8668
|
});
|
|
8668
|
-
const CollapseItem = withInstall(stdin_default$
|
|
8669
|
-
const ConfigProvider = withInstall(stdin_default$
|
|
8670
|
-
const [name$
|
|
8669
|
+
const CollapseItem = withInstall(stdin_default$16);
|
|
8670
|
+
const ConfigProvider = withInstall(stdin_default$1Z);
|
|
8671
|
+
const [name$_, bem$Z, t$d] = createNamespace("contact-card");
|
|
8671
8672
|
const contactCardProps = {
|
|
8672
8673
|
tel: String,
|
|
8673
8674
|
name: String,
|
|
@@ -8675,8 +8676,8 @@ const contactCardProps = {
|
|
|
8675
8676
|
addText: String,
|
|
8676
8677
|
editable: truthProp
|
|
8677
8678
|
};
|
|
8678
|
-
var stdin_default$
|
|
8679
|
-
name: name$
|
|
8679
|
+
var stdin_default$15 = vue.defineComponent({
|
|
8680
|
+
name: name$_,
|
|
8680
8681
|
props: contactCardProps,
|
|
8681
8682
|
emits: ["click"],
|
|
8682
8683
|
setup(props2, {
|
|
@@ -8696,18 +8697,18 @@ var stdin_default$14 = vue.defineComponent({
|
|
|
8696
8697
|
return () => vue.createVNode(Cell, {
|
|
8697
8698
|
"center": true,
|
|
8698
8699
|
"icon": props2.type === "edit" ? "contact" : "add-square",
|
|
8699
|
-
"class": bem$
|
|
8700
|
+
"class": bem$Z([props2.type]),
|
|
8700
8701
|
"border": false,
|
|
8701
8702
|
"isLink": props2.editable,
|
|
8702
|
-
"valueClass": bem$
|
|
8703
|
+
"valueClass": bem$Z("value"),
|
|
8703
8704
|
"onClick": onClick
|
|
8704
8705
|
}, {
|
|
8705
8706
|
value: renderContent
|
|
8706
8707
|
});
|
|
8707
8708
|
}
|
|
8708
8709
|
});
|
|
8709
|
-
const ContactCard = withInstall(stdin_default$
|
|
8710
|
-
const [name$
|
|
8710
|
+
const ContactCard = withInstall(stdin_default$15);
|
|
8711
|
+
const [name$Z, bem$Y, t$c] = createNamespace("contact-edit");
|
|
8711
8712
|
const DEFAULT_CONTACT = {
|
|
8712
8713
|
tel: "",
|
|
8713
8714
|
name: ""
|
|
@@ -8727,8 +8728,8 @@ const contactEditProps = {
|
|
|
8727
8728
|
default: isMobile
|
|
8728
8729
|
}
|
|
8729
8730
|
};
|
|
8730
|
-
var stdin_default$
|
|
8731
|
-
name: name$
|
|
8731
|
+
var stdin_default$14 = vue.defineComponent({
|
|
8732
|
+
name: name$Z,
|
|
8732
8733
|
props: contactEditProps,
|
|
8733
8734
|
emits: ["save", "delete", "change-default"],
|
|
8734
8735
|
setup(props2, {
|
|
@@ -8742,20 +8743,20 @@ var stdin_default$13 = vue.defineComponent({
|
|
|
8742
8743
|
};
|
|
8743
8744
|
const onDelete = () => emit("delete", contact);
|
|
8744
8745
|
const renderButtons = () => vue.createVNode("div", {
|
|
8745
|
-
"class": bem$
|
|
8746
|
+
"class": bem$Y("buttons")
|
|
8746
8747
|
}, [vue.createVNode(Button, {
|
|
8747
8748
|
"block": true,
|
|
8748
8749
|
"round": true,
|
|
8749
8750
|
"type": "primary",
|
|
8750
8751
|
"text": t$c("save"),
|
|
8751
|
-
"class": bem$
|
|
8752
|
+
"class": bem$Y("button"),
|
|
8752
8753
|
"loading": props2.isSaving,
|
|
8753
8754
|
"nativeType": "submit"
|
|
8754
8755
|
}, null), props2.isEdit && vue.createVNode(Button, {
|
|
8755
8756
|
"block": true,
|
|
8756
8757
|
"round": true,
|
|
8757
8758
|
"text": t$c("delete"),
|
|
8758
|
-
"class": bem$
|
|
8759
|
+
"class": bem$Y("button"),
|
|
8759
8760
|
"loading": props2.isDeleting,
|
|
8760
8761
|
"onClick": onDelete
|
|
8761
8762
|
}, null)]);
|
|
@@ -8769,7 +8770,7 @@ var stdin_default$13 = vue.defineComponent({
|
|
|
8769
8770
|
if (props2.showSetDefault) {
|
|
8770
8771
|
return vue.createVNode(Cell, {
|
|
8771
8772
|
"title": props2.setDefaultLabel,
|
|
8772
|
-
"class": bem$
|
|
8773
|
+
"class": bem$Y("switch-cell"),
|
|
8773
8774
|
"border": false
|
|
8774
8775
|
}, {
|
|
8775
8776
|
"right-icon": renderSwitch
|
|
@@ -8778,11 +8779,11 @@ var stdin_default$13 = vue.defineComponent({
|
|
|
8778
8779
|
};
|
|
8779
8780
|
vue.watch(() => props2.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
|
|
8780
8781
|
return () => vue.createVNode(Form, {
|
|
8781
|
-
"class": bem$
|
|
8782
|
+
"class": bem$Y(),
|
|
8782
8783
|
"onSubmit": onSave
|
|
8783
8784
|
}, {
|
|
8784
8785
|
default: () => [vue.createVNode("div", {
|
|
8785
|
-
"class": bem$
|
|
8786
|
+
"class": bem$Y("fields")
|
|
8786
8787
|
}, [vue.createVNode(Field, {
|
|
8787
8788
|
"modelValue": contact.name,
|
|
8788
8789
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
|
@@ -8809,16 +8810,16 @@ var stdin_default$13 = vue.defineComponent({
|
|
|
8809
8810
|
});
|
|
8810
8811
|
}
|
|
8811
8812
|
});
|
|
8812
|
-
const ContactEdit = withInstall(stdin_default$
|
|
8813
|
-
const [name$
|
|
8813
|
+
const ContactEdit = withInstall(stdin_default$14);
|
|
8814
|
+
const [name$Y, bem$X, t$b] = createNamespace("contact-list");
|
|
8814
8815
|
const contactListProps = {
|
|
8815
8816
|
list: Array,
|
|
8816
8817
|
addText: String,
|
|
8817
8818
|
modelValue: unknownProp,
|
|
8818
8819
|
defaultTagText: String
|
|
8819
8820
|
};
|
|
8820
|
-
var stdin_default$
|
|
8821
|
-
name: name$
|
|
8821
|
+
var stdin_default$13 = vue.defineComponent({
|
|
8822
|
+
name: name$Y,
|
|
8822
8823
|
props: contactListProps,
|
|
8823
8824
|
emits: ["add", "edit", "select", "update:modelValue"],
|
|
8824
8825
|
setup(props2, {
|
|
@@ -8830,13 +8831,13 @@ var stdin_default$12 = vue.defineComponent({
|
|
|
8830
8831
|
emit("select", item, index);
|
|
8831
8832
|
};
|
|
8832
8833
|
const renderRightIcon = () => vue.createVNode(Radio, {
|
|
8833
|
-
"class": bem$
|
|
8834
|
+
"class": bem$X("radio"),
|
|
8834
8835
|
"name": item.id,
|
|
8835
8836
|
"size": "large"
|
|
8836
8837
|
}, null);
|
|
8837
8838
|
const renderEditIcon = () => vue.createVNode(Icon, {
|
|
8838
8839
|
"name": "edit",
|
|
8839
|
-
"class": bem$
|
|
8840
|
+
"class": bem$X("edit"),
|
|
8840
8841
|
"onClick": (event) => {
|
|
8841
8842
|
event.stopPropagation();
|
|
8842
8843
|
emit("edit", item, index);
|
|
@@ -8848,7 +8849,7 @@ var stdin_default$12 = vue.defineComponent({
|
|
|
8848
8849
|
nodes.push(vue.createVNode(Tag, {
|
|
8849
8850
|
"type": "primary",
|
|
8850
8851
|
"round": true,
|
|
8851
|
-
"class": bem$
|
|
8852
|
+
"class": bem$X("item-tag")
|
|
8852
8853
|
}, {
|
|
8853
8854
|
default: () => [props2.defaultTagText]
|
|
8854
8855
|
}));
|
|
@@ -8859,8 +8860,8 @@ var stdin_default$12 = vue.defineComponent({
|
|
|
8859
8860
|
"key": item.id,
|
|
8860
8861
|
"isLink": true,
|
|
8861
8862
|
"center": true,
|
|
8862
|
-
"class": bem$
|
|
8863
|
-
"valueClass": bem$
|
|
8863
|
+
"class": bem$X("item"),
|
|
8864
|
+
"valueClass": bem$X("item-value"),
|
|
8864
8865
|
"onClick": onClick
|
|
8865
8866
|
}, {
|
|
8866
8867
|
icon: renderEditIcon,
|
|
@@ -8869,25 +8870,25 @@ var stdin_default$12 = vue.defineComponent({
|
|
|
8869
8870
|
});
|
|
8870
8871
|
};
|
|
8871
8872
|
return () => vue.createVNode("div", {
|
|
8872
|
-
"class": bem$
|
|
8873
|
+
"class": bem$X()
|
|
8873
8874
|
}, [vue.createVNode(RadioGroup, {
|
|
8874
8875
|
"modelValue": props2.modelValue,
|
|
8875
|
-
"class": bem$
|
|
8876
|
+
"class": bem$X("group")
|
|
8876
8877
|
}, {
|
|
8877
8878
|
default: () => [props2.list && props2.list.map(renderItem)]
|
|
8878
8879
|
}), vue.createVNode("div", {
|
|
8879
|
-
"class": [bem$
|
|
8880
|
+
"class": [bem$X("bottom"), "van-safe-area-bottom"]
|
|
8880
8881
|
}, [vue.createVNode(Button, {
|
|
8881
8882
|
"round": true,
|
|
8882
8883
|
"block": true,
|
|
8883
8884
|
"type": "primary",
|
|
8884
|
-
"class": bem$
|
|
8885
|
+
"class": bem$X("add"),
|
|
8885
8886
|
"text": props2.addText || t$b("addContact"),
|
|
8886
8887
|
"onClick": () => emit("add")
|
|
8887
8888
|
}, null)])]);
|
|
8888
8889
|
}
|
|
8889
8890
|
});
|
|
8890
|
-
const ContactList = withInstall(stdin_default$
|
|
8891
|
+
const ContactList = withInstall(stdin_default$13);
|
|
8891
8892
|
function parseFormat(format2, currentTime) {
|
|
8892
8893
|
const { days } = currentTime;
|
|
8893
8894
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
|
@@ -8923,15 +8924,15 @@ function parseFormat(format2, currentTime) {
|
|
|
8923
8924
|
}
|
|
8924
8925
|
return format2;
|
|
8925
8926
|
}
|
|
8926
|
-
const [name$
|
|
8927
|
+
const [name$X, bem$W] = createNamespace("count-down");
|
|
8927
8928
|
const countDownProps = {
|
|
8928
8929
|
time: makeNumericProp(0),
|
|
8929
8930
|
format: makeStringProp("HH:mm:ss"),
|
|
8930
8931
|
autoStart: truthProp,
|
|
8931
8932
|
millisecond: Boolean
|
|
8932
8933
|
};
|
|
8933
|
-
var stdin_default$
|
|
8934
|
-
name: name$
|
|
8934
|
+
var stdin_default$12 = vue.defineComponent({
|
|
8935
|
+
name: name$X,
|
|
8935
8936
|
props: countDownProps,
|
|
8936
8937
|
emits: ["change", "finish"],
|
|
8937
8938
|
setup(props2, {
|
|
@@ -8966,11 +8967,11 @@ var stdin_default$11 = vue.defineComponent({
|
|
|
8966
8967
|
});
|
|
8967
8968
|
return () => vue.createVNode("div", {
|
|
8968
8969
|
"role": "timer",
|
|
8969
|
-
"class": bem$
|
|
8970
|
+
"class": bem$W()
|
|
8970
8971
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
|
8971
8972
|
}
|
|
8972
8973
|
});
|
|
8973
|
-
const CountDown = withInstall(stdin_default$
|
|
8974
|
+
const CountDown = withInstall(stdin_default$12);
|
|
8974
8975
|
function getDate(timeStamp) {
|
|
8975
8976
|
const date = new Date(timeStamp * 1e3);
|
|
8976
8977
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
|
@@ -8979,9 +8980,9 @@ function getDate(timeStamp) {
|
|
|
8979
8980
|
}
|
|
8980
8981
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
|
8981
8982
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
|
8982
|
-
const [name$
|
|
8983
|
-
var stdin_default$
|
|
8984
|
-
name: name$
|
|
8983
|
+
const [name$W, bem$V, t$a] = createNamespace("coupon");
|
|
8984
|
+
var stdin_default$11 = vue.defineComponent({
|
|
8985
|
+
name: name$W,
|
|
8985
8986
|
props: {
|
|
8986
8987
|
chosen: Boolean,
|
|
8987
8988
|
coupon: makeRequiredProp(Object),
|
|
@@ -9025,34 +9026,34 @@ var stdin_default$10 = vue.defineComponent({
|
|
|
9025
9026
|
} = props2;
|
|
9026
9027
|
const description = disabled && coupon.reason || coupon.description;
|
|
9027
9028
|
return vue.createVNode("div", {
|
|
9028
|
-
"class": bem$
|
|
9029
|
+
"class": bem$V({
|
|
9029
9030
|
disabled
|
|
9030
9031
|
})
|
|
9031
9032
|
}, [vue.createVNode("div", {
|
|
9032
|
-
"class": bem$
|
|
9033
|
+
"class": bem$V("content")
|
|
9033
9034
|
}, [vue.createVNode("div", {
|
|
9034
|
-
"class": bem$
|
|
9035
|
+
"class": bem$V("head")
|
|
9035
9036
|
}, [vue.createVNode("h2", {
|
|
9036
|
-
"class": bem$
|
|
9037
|
+
"class": bem$V("amount")
|
|
9037
9038
|
}, [faceAmount.value]), vue.createVNode("p", {
|
|
9038
|
-
"class": bem$
|
|
9039
|
+
"class": bem$V("condition")
|
|
9039
9040
|
}, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
|
|
9040
|
-
"class": bem$
|
|
9041
|
+
"class": bem$V("body")
|
|
9041
9042
|
}, [vue.createVNode("p", {
|
|
9042
|
-
"class": bem$
|
|
9043
|
+
"class": bem$V("name")
|
|
9043
9044
|
}, [coupon.name]), vue.createVNode("p", {
|
|
9044
|
-
"class": bem$
|
|
9045
|
+
"class": bem$V("valid")
|
|
9045
9046
|
}, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
|
|
9046
|
-
"class": bem$
|
|
9047
|
+
"class": bem$V("corner"),
|
|
9047
9048
|
"modelValue": chosen
|
|
9048
9049
|
}, null)])]), description && vue.createVNode("p", {
|
|
9049
|
-
"class": bem$
|
|
9050
|
+
"class": bem$V("description")
|
|
9050
9051
|
}, [description])]);
|
|
9051
9052
|
};
|
|
9052
9053
|
}
|
|
9053
9054
|
});
|
|
9054
|
-
const Coupon = withInstall(stdin_default$
|
|
9055
|
-
const [name$
|
|
9055
|
+
const Coupon = withInstall(stdin_default$11);
|
|
9056
|
+
const [name$V, bem$U, t$9] = createNamespace("coupon-cell");
|
|
9056
9057
|
const couponCellProps = {
|
|
9057
9058
|
title: String,
|
|
9058
9059
|
border: truthProp,
|
|
@@ -9080,34 +9081,34 @@ function formatValue({
|
|
|
9080
9081
|
}
|
|
9081
9082
|
return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
|
|
9082
9083
|
}
|
|
9083
|
-
var stdin_default
|
|
9084
|
-
name: name$
|
|
9084
|
+
var stdin_default$10 = vue.defineComponent({
|
|
9085
|
+
name: name$V,
|
|
9085
9086
|
props: couponCellProps,
|
|
9086
9087
|
setup(props2) {
|
|
9087
9088
|
return () => {
|
|
9088
9089
|
const selected = props2.coupons[+props2.chosenCoupon];
|
|
9089
9090
|
return vue.createVNode(Cell, {
|
|
9090
|
-
"class": bem$
|
|
9091
|
+
"class": bem$U(),
|
|
9091
9092
|
"value": formatValue(props2),
|
|
9092
9093
|
"title": props2.title || t$9("title"),
|
|
9093
9094
|
"border": props2.border,
|
|
9094
9095
|
"isLink": props2.editable,
|
|
9095
|
-
"valueClass": bem$
|
|
9096
|
+
"valueClass": bem$U("value", {
|
|
9096
9097
|
selected
|
|
9097
9098
|
})
|
|
9098
9099
|
}, null);
|
|
9099
9100
|
};
|
|
9100
9101
|
}
|
|
9101
9102
|
});
|
|
9102
|
-
const CouponCell = withInstall(stdin_default
|
|
9103
|
-
const [name$
|
|
9103
|
+
const CouponCell = withInstall(stdin_default$10);
|
|
9104
|
+
const [name$U, bem$T] = createNamespace("empty");
|
|
9104
9105
|
const emptyProps = {
|
|
9105
9106
|
image: makeStringProp("default"),
|
|
9106
9107
|
imageSize: [Number, String, Array],
|
|
9107
9108
|
description: String
|
|
9108
9109
|
};
|
|
9109
|
-
var stdin_default
|
|
9110
|
-
name: name$
|
|
9110
|
+
var stdin_default$$ = vue.defineComponent({
|
|
9111
|
+
name: name$U,
|
|
9111
9112
|
props: emptyProps,
|
|
9112
9113
|
setup(props2, {
|
|
9113
9114
|
slots
|
|
@@ -9116,14 +9117,14 @@ var stdin_default$_ = vue.defineComponent({
|
|
|
9116
9117
|
const description = slots.description ? slots.description() : props2.description;
|
|
9117
9118
|
if (description) {
|
|
9118
9119
|
return vue.createVNode("p", {
|
|
9119
|
-
"class": bem$
|
|
9120
|
+
"class": bem$T("description")
|
|
9120
9121
|
}, [description]);
|
|
9121
9122
|
}
|
|
9122
9123
|
};
|
|
9123
9124
|
const renderBottom = () => {
|
|
9124
9125
|
if (slots.default) {
|
|
9125
9126
|
return vue.createVNode("div", {
|
|
9126
|
-
"class": bem$
|
|
9127
|
+
"class": bem$T("bottom")
|
|
9127
9128
|
}, [slots.default()]);
|
|
9128
9129
|
}
|
|
9129
9130
|
};
|
|
@@ -9133,7 +9134,7 @@ var stdin_default$_ = vue.defineComponent({
|
|
|
9133
9134
|
}
|
|
9134
9135
|
if (props2.image === "default" || props2.image === "network") {
|
|
9135
9136
|
return vue.createVNode("div", {
|
|
9136
|
-
"class": bem$
|
|
9137
|
+
"class": bem$T("image-preset", props2.image)
|
|
9137
9138
|
}, null);
|
|
9138
9139
|
}
|
|
9139
9140
|
return vue.createVNode("img", {
|
|
@@ -9141,15 +9142,15 @@ var stdin_default$_ = vue.defineComponent({
|
|
|
9141
9142
|
}, null);
|
|
9142
9143
|
};
|
|
9143
9144
|
return () => vue.createVNode("div", {
|
|
9144
|
-
"class": bem$
|
|
9145
|
+
"class": bem$T()
|
|
9145
9146
|
}, [vue.createVNode("div", {
|
|
9146
|
-
"class": bem$
|
|
9147
|
+
"class": bem$T("image"),
|
|
9147
9148
|
"style": getSizeStyle(props2.imageSize)
|
|
9148
9149
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
|
9149
9150
|
}
|
|
9150
9151
|
});
|
|
9151
|
-
const Empty = withInstall(stdin_default
|
|
9152
|
-
const [name$
|
|
9152
|
+
const Empty = withInstall(stdin_default$$);
|
|
9153
|
+
const [name$T, bem$S, t$8] = createNamespace("coupon-list");
|
|
9153
9154
|
const couponListProps = {
|
|
9154
9155
|
code: makeStringProp(""),
|
|
9155
9156
|
coupons: makeArrayProp(),
|
|
@@ -9170,8 +9171,8 @@ const couponListProps = {
|
|
|
9170
9171
|
exchangeButtonLoading: Boolean,
|
|
9171
9172
|
exchangeButtonDisabled: Boolean
|
|
9172
9173
|
};
|
|
9173
|
-
var stdin_default$
|
|
9174
|
-
name: name$
|
|
9174
|
+
var stdin_default$_ = vue.defineComponent({
|
|
9175
|
+
name: name$T,
|
|
9175
9176
|
props: couponListProps,
|
|
9176
9177
|
emits: ["change", "exchange", "update:code"],
|
|
9177
9178
|
setup(props2, {
|
|
@@ -9207,26 +9208,26 @@ var stdin_default$Z = vue.defineComponent({
|
|
|
9207
9208
|
"image": props2.emptyImage
|
|
9208
9209
|
}, {
|
|
9209
9210
|
default: () => [vue.createVNode("p", {
|
|
9210
|
-
"class": bem$
|
|
9211
|
+
"class": bem$S("empty-tip")
|
|
9211
9212
|
}, [t$8("noCoupon")])]
|
|
9212
9213
|
});
|
|
9213
9214
|
const renderExchangeBar = () => {
|
|
9214
9215
|
if (props2.showExchangeBar) {
|
|
9215
9216
|
return vue.createVNode("div", {
|
|
9216
9217
|
"ref": barRef,
|
|
9217
|
-
"class": bem$
|
|
9218
|
+
"class": bem$S("exchange-bar")
|
|
9218
9219
|
}, [vue.createVNode(Field, {
|
|
9219
9220
|
"modelValue": currentCode.value,
|
|
9220
9221
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
|
9221
9222
|
"clearable": true,
|
|
9222
9223
|
"border": false,
|
|
9223
|
-
"class": bem$
|
|
9224
|
+
"class": bem$S("field"),
|
|
9224
9225
|
"placeholder": props2.inputPlaceholder || t$8("placeholder"),
|
|
9225
9226
|
"maxlength": "20"
|
|
9226
9227
|
}, null), vue.createVNode(Button, {
|
|
9227
9228
|
"plain": true,
|
|
9228
9229
|
"type": "primary",
|
|
9229
|
-
"class": bem$
|
|
9230
|
+
"class": bem$S("exchange"),
|
|
9230
9231
|
"text": props2.exchangeButtonText || t$8("exchange"),
|
|
9231
9232
|
"loading": props2.exchangeButtonLoading,
|
|
9232
9233
|
"disabled": buttonDisabled.value,
|
|
@@ -9246,7 +9247,7 @@ var stdin_default$Z = vue.defineComponent({
|
|
|
9246
9247
|
default: () => {
|
|
9247
9248
|
var _a;
|
|
9248
9249
|
return [vue.createVNode("div", {
|
|
9249
|
-
"class": bem$
|
|
9250
|
+
"class": bem$S("list", {
|
|
9250
9251
|
"with-bottom": props2.showCloseButton
|
|
9251
9252
|
}),
|
|
9252
9253
|
"style": {
|
|
@@ -9275,7 +9276,7 @@ var stdin_default$Z = vue.defineComponent({
|
|
|
9275
9276
|
default: () => {
|
|
9276
9277
|
var _a;
|
|
9277
9278
|
return [vue.createVNode("div", {
|
|
9278
|
-
"class": bem$
|
|
9279
|
+
"class": bem$S("list", {
|
|
9279
9280
|
"with-bottom": props2.showCloseButton
|
|
9280
9281
|
}),
|
|
9281
9282
|
"style": {
|
|
@@ -9302,27 +9303,27 @@ var stdin_default$Z = vue.defineComponent({
|
|
|
9302
9303
|
});
|
|
9303
9304
|
return () => vue.createVNode("div", {
|
|
9304
9305
|
"ref": root,
|
|
9305
|
-
"class": bem$
|
|
9306
|
+
"class": bem$S()
|
|
9306
9307
|
}, [renderExchangeBar(), vue.createVNode(Tabs, {
|
|
9307
9308
|
"active": activeTab.value,
|
|
9308
9309
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
9309
|
-
"class": bem$
|
|
9310
|
+
"class": bem$S("tab")
|
|
9310
9311
|
}, {
|
|
9311
9312
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
|
9312
9313
|
}), vue.createVNode("div", {
|
|
9313
|
-
"class": bem$
|
|
9314
|
+
"class": bem$S("bottom")
|
|
9314
9315
|
}, [vue.withDirectives(vue.createVNode(Button, {
|
|
9315
9316
|
"round": true,
|
|
9316
9317
|
"block": true,
|
|
9317
9318
|
"type": "primary",
|
|
9318
|
-
"class": bem$
|
|
9319
|
+
"class": bem$S("close"),
|
|
9319
9320
|
"text": props2.closeButtonText || t$8("close"),
|
|
9320
9321
|
"onClick": () => emit("change", -1)
|
|
9321
9322
|
}, null), [[vue.vShow, props2.showCloseButton]])])]);
|
|
9322
9323
|
}
|
|
9323
9324
|
});
|
|
9324
|
-
const CouponList = withInstall(stdin_default$
|
|
9325
|
-
const [name$
|
|
9325
|
+
const CouponList = withInstall(stdin_default$_);
|
|
9326
|
+
const [name$S, bem$R] = createNamespace("filter-tag");
|
|
9326
9327
|
const filterTagProps = {
|
|
9327
9328
|
selected: Boolean,
|
|
9328
9329
|
disabled: Boolean,
|
|
@@ -9339,8 +9340,8 @@ const filterTagProps = {
|
|
|
9339
9340
|
dot: Boolean,
|
|
9340
9341
|
badge: numericProp
|
|
9341
9342
|
};
|
|
9342
|
-
var stdin_default$
|
|
9343
|
-
name: name$
|
|
9343
|
+
var stdin_default$Z = vue.defineComponent({
|
|
9344
|
+
name: name$S,
|
|
9344
9345
|
props: filterTagProps,
|
|
9345
9346
|
emits: ["click"],
|
|
9346
9347
|
setup(props2, {
|
|
@@ -9349,7 +9350,7 @@ var stdin_default$Y = vue.defineComponent({
|
|
|
9349
9350
|
}) {
|
|
9350
9351
|
const renderIcon = () => props2.icon && vue.createVNode(Icon, {
|
|
9351
9352
|
"name": props2.icon,
|
|
9352
|
-
"class": bem$
|
|
9353
|
+
"class": bem$R("icon"),
|
|
9353
9354
|
"classPrefix": props2.iconPrefix
|
|
9354
9355
|
}, null);
|
|
9355
9356
|
const renderBadge = () => {
|
|
@@ -9370,7 +9371,7 @@ var stdin_default$Y = vue.defineComponent({
|
|
|
9370
9371
|
const content = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
9371
9372
|
return vue.createVNode("button", {
|
|
9372
9373
|
"type": "button",
|
|
9373
|
-
"class": bem$
|
|
9374
|
+
"class": bem$R({
|
|
9374
9375
|
selected: props2.selected,
|
|
9375
9376
|
disabled: props2.disabled,
|
|
9376
9377
|
large: props2.size === "large"
|
|
@@ -9378,15 +9379,15 @@ var stdin_default$Y = vue.defineComponent({
|
|
|
9378
9379
|
"disabled": props2.disabled,
|
|
9379
9380
|
"onClick": (event) => emit("click", event)
|
|
9380
9381
|
}, [props2.iconPosition === "left" && icon, vue.createVNode("span", {
|
|
9381
|
-
"class": bem$
|
|
9382
|
+
"class": bem$R("text")
|
|
9382
9383
|
}, [content]), props2.iconPosition === "right" && icon, renderBadge()]);
|
|
9383
9384
|
};
|
|
9384
9385
|
}
|
|
9385
9386
|
});
|
|
9386
|
-
const FilterTag = withInstall(stdin_default$
|
|
9387
|
-
const [name$
|
|
9388
|
-
var stdin_default$
|
|
9389
|
-
name: name$
|
|
9387
|
+
const FilterTag = withInstall(stdin_default$Z);
|
|
9388
|
+
const [name$R] = createNamespace("time-picker");
|
|
9389
|
+
var stdin_default$Y = vue.defineComponent({
|
|
9390
|
+
name: name$R,
|
|
9390
9391
|
props: extend({}, sharedProps, {
|
|
9391
9392
|
minHour: makeNumericProp(0),
|
|
9392
9393
|
maxHour: makeNumericProp(23),
|
|
@@ -9493,9 +9494,9 @@ var stdin_default$X = vue.defineComponent({
|
|
|
9493
9494
|
}
|
|
9494
9495
|
});
|
|
9495
9496
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
9496
|
-
const [name$
|
|
9497
|
-
var stdin_default$
|
|
9498
|
-
name: name$
|
|
9497
|
+
const [name$Q] = createNamespace("date-picker");
|
|
9498
|
+
var stdin_default$X = vue.defineComponent({
|
|
9499
|
+
name: name$Q,
|
|
9499
9500
|
props: extend({}, sharedProps, {
|
|
9500
9501
|
type: makeStringProp("datetime"),
|
|
9501
9502
|
modelValue: Date,
|
|
@@ -9733,10 +9734,10 @@ var stdin_default$W = vue.defineComponent({
|
|
|
9733
9734
|
}, pick(props2, pickerInheritKeys)), slots);
|
|
9734
9735
|
}
|
|
9735
9736
|
});
|
|
9736
|
-
const [name$
|
|
9737
|
-
const timePickerPropKeys = Object.keys(stdin_default$
|
|
9738
|
-
const datePickerPropKeys = Object.keys(stdin_default$
|
|
9739
|
-
const datetimePickerProps = extend({}, stdin_default$
|
|
9737
|
+
const [name$P, bem$Q] = createNamespace("datetime-picker");
|
|
9738
|
+
const timePickerPropKeys = Object.keys(stdin_default$Y.props);
|
|
9739
|
+
const datePickerPropKeys = Object.keys(stdin_default$X.props);
|
|
9740
|
+
const datetimePickerProps = extend({}, stdin_default$Y.props, stdin_default$X.props, {
|
|
9740
9741
|
modelValue: [String, Date],
|
|
9741
9742
|
showTimeRange: Boolean,
|
|
9742
9743
|
startTimeFromCurrent: {
|
|
@@ -9754,8 +9755,8 @@ const datetimePickerProps = extend({}, stdin_default$X.props, stdin_default$W.pr
|
|
|
9754
9755
|
default: "结束时间"
|
|
9755
9756
|
}
|
|
9756
9757
|
});
|
|
9757
|
-
var stdin_default$
|
|
9758
|
-
name: name$
|
|
9758
|
+
var stdin_default$W = vue.defineComponent({
|
|
9759
|
+
name: name$P,
|
|
9759
9760
|
props: datetimePickerProps,
|
|
9760
9761
|
emits: ["update:startTime", "update:endTime", "time-range-change"],
|
|
9761
9762
|
setup(props2, {
|
|
@@ -9824,7 +9825,7 @@ var stdin_default$V = vue.defineComponent({
|
|
|
9824
9825
|
});
|
|
9825
9826
|
return () => {
|
|
9826
9827
|
const isTimePicker = props2.type === "time";
|
|
9827
|
-
const Component = isTimePicker ? stdin_default$
|
|
9828
|
+
const Component = isTimePicker ? stdin_default$Y : stdin_default$X;
|
|
9828
9829
|
const inheritProps = pick(props2, isTimePicker ? timePickerPropKeys : datePickerPropKeys);
|
|
9829
9830
|
const showTimeRange = props2.showTimeRange && props2.type === "datetime";
|
|
9830
9831
|
const timeRangeSlots = showTimeRange ? {
|
|
@@ -9837,7 +9838,7 @@ var stdin_default$V = vue.defineComponent({
|
|
|
9837
9838
|
"columns-top": () => {
|
|
9838
9839
|
var _a;
|
|
9839
9840
|
return [vue.createVNode("div", {
|
|
9840
|
-
"class": bem$
|
|
9841
|
+
"class": bem$Q("time-range")
|
|
9841
9842
|
}, [vue.createVNode(FilterTag, {
|
|
9842
9843
|
"selected": activeTimeRange.value === "start",
|
|
9843
9844
|
"onClick": () => onTimeRangeClick("start")
|
|
@@ -9853,14 +9854,14 @@ var stdin_default$V = vue.defineComponent({
|
|
|
9853
9854
|
"columns-bottom": () => {
|
|
9854
9855
|
var _a;
|
|
9855
9856
|
return [vue.createVNode("div", {
|
|
9856
|
-
"class": bem$
|
|
9857
|
+
"class": bem$Q("time-range-bottom")
|
|
9857
9858
|
}, null), (_a = slots["columns-bottom"]) == null ? void 0 : _a.call(slots)];
|
|
9858
9859
|
}
|
|
9859
9860
|
} : slots;
|
|
9860
9861
|
if (showTimeRange) {
|
|
9861
|
-
return vue.createVNode(stdin_default$
|
|
9862
|
+
return vue.createVNode(stdin_default$X, vue.mergeProps({
|
|
9862
9863
|
"ref": root,
|
|
9863
|
-
"class": bem$
|
|
9864
|
+
"class": bem$Q()
|
|
9864
9865
|
}, pick(props2, datePickerPropKeys), attrs, {
|
|
9865
9866
|
"modelValue": rangeModelValue.value,
|
|
9866
9867
|
"minDate": rangeMinDate.value,
|
|
@@ -9871,13 +9872,13 @@ var stdin_default$V = vue.defineComponent({
|
|
|
9871
9872
|
}
|
|
9872
9873
|
return vue.createVNode(Component, vue.mergeProps({
|
|
9873
9874
|
"ref": root,
|
|
9874
|
-
"class": bem$
|
|
9875
|
+
"class": bem$Q()
|
|
9875
9876
|
}, inheritProps, attrs), timeRangeSlots);
|
|
9876
9877
|
};
|
|
9877
9878
|
}
|
|
9878
9879
|
});
|
|
9879
|
-
const DatetimePicker = withInstall(stdin_default$
|
|
9880
|
-
const [name$
|
|
9880
|
+
const DatetimePicker = withInstall(stdin_default$W);
|
|
9881
|
+
const [name$O, bem$P, t$7] = createNamespace("dialog");
|
|
9881
9882
|
const dialogProps = extend({}, popupSharedProps, {
|
|
9882
9883
|
title: String,
|
|
9883
9884
|
theme: String,
|
|
@@ -9908,8 +9909,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
|
9908
9909
|
closeOnClickOverlay: Boolean
|
|
9909
9910
|
});
|
|
9910
9911
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
|
9911
|
-
var stdin_default$
|
|
9912
|
-
name: name$
|
|
9912
|
+
var stdin_default$V = vue.defineComponent({
|
|
9913
|
+
name: name$O,
|
|
9913
9914
|
props: dialogProps,
|
|
9914
9915
|
emits: ["confirm", "cancel", "third", "keydown", "input", "update:show", "update:inputValue"],
|
|
9915
9916
|
setup(props2, {
|
|
@@ -9968,7 +9969,7 @@ var stdin_default$U = vue.defineComponent({
|
|
|
9968
9969
|
const title = slots.title ? slots.title() : props2.title;
|
|
9969
9970
|
if (title) {
|
|
9970
9971
|
return vue.createVNode("div", {
|
|
9971
|
-
"class": bem$
|
|
9972
|
+
"class": bem$P("header", {
|
|
9972
9973
|
isolated: !props2.message && !props2.showInput && !slots.default
|
|
9973
9974
|
})
|
|
9974
9975
|
}, [title]);
|
|
@@ -9980,7 +9981,7 @@ var stdin_default$U = vue.defineComponent({
|
|
|
9980
9981
|
allowHtml,
|
|
9981
9982
|
messageAlign
|
|
9982
9983
|
} = props2;
|
|
9983
|
-
const classNames = bem$
|
|
9984
|
+
const classNames = bem$P("message", {
|
|
9984
9985
|
"has-title": hasTitle,
|
|
9985
9986
|
[messageAlign]: messageAlign
|
|
9986
9987
|
});
|
|
@@ -10006,7 +10007,7 @@ var stdin_default$U = vue.defineComponent({
|
|
|
10006
10007
|
return vue.createVNode(Field, {
|
|
10007
10008
|
"size": "normal",
|
|
10008
10009
|
"border": false,
|
|
10009
|
-
"class": bem$
|
|
10010
|
+
"class": bem$P("input"),
|
|
10010
10011
|
"modelValue": props2.inputValue,
|
|
10011
10012
|
"placeholder": props2.inputPlaceholder,
|
|
10012
10013
|
"autofocus": props2.inputAutofocus,
|
|
@@ -10024,7 +10025,7 @@ var stdin_default$U = vue.defineComponent({
|
|
|
10024
10025
|
const hasTitle = !!(title || slots.title);
|
|
10025
10026
|
return vue.createVNode("div", {
|
|
10026
10027
|
"key": allowHtml ? 1 : 0,
|
|
10027
|
-
"class": bem$
|
|
10028
|
+
"class": bem$P("content", {
|
|
10028
10029
|
isolated: !hasTitle,
|
|
10029
10030
|
"with-input": showInput
|
|
10030
10031
|
})
|
|
@@ -10032,13 +10033,13 @@ var stdin_default$U = vue.defineComponent({
|
|
|
10032
10033
|
}
|
|
10033
10034
|
};
|
|
10034
10035
|
const renderButtons = () => vue.createVNode("div", {
|
|
10035
|
-
"class": [BORDER_TOP, bem$
|
|
10036
|
+
"class": [BORDER_TOP, bem$P("footer", {
|
|
10036
10037
|
vertical: props2.showThirdButton
|
|
10037
10038
|
})]
|
|
10038
10039
|
}, [props2.showCancelButton && vue.createVNode(Button, {
|
|
10039
10040
|
"size": "large",
|
|
10040
10041
|
"text": props2.cancelButtonText || t$7("cancel"),
|
|
10041
|
-
"class": bem$
|
|
10042
|
+
"class": bem$P("cancel"),
|
|
10042
10043
|
"style": {
|
|
10043
10044
|
color: props2.cancelButtonColor
|
|
10044
10045
|
},
|
|
@@ -10048,7 +10049,7 @@ var stdin_default$U = vue.defineComponent({
|
|
|
10048
10049
|
}, null), props2.showConfirmButton && vue.createVNode(Button, {
|
|
10049
10050
|
"size": "large",
|
|
10050
10051
|
"text": props2.confirmButtonText || t$7("confirm"),
|
|
10051
|
-
"class": [bem$
|
|
10052
|
+
"class": [bem$P("confirm"), {
|
|
10052
10053
|
[BORDER_LEFT]: props2.showCancelButton && !props2.showThirdButton
|
|
10053
10054
|
}],
|
|
10054
10055
|
"style": {
|
|
@@ -10060,7 +10061,7 @@ var stdin_default$U = vue.defineComponent({
|
|
|
10060
10061
|
}, null), props2.showThirdButton && vue.createVNode(Button, {
|
|
10061
10062
|
"size": "large",
|
|
10062
10063
|
"text": props2.thirdButtonText,
|
|
10063
|
-
"class": bem$
|
|
10064
|
+
"class": bem$P("third"),
|
|
10064
10065
|
"style": {
|
|
10065
10066
|
color: props2.thirdButtonColor
|
|
10066
10067
|
},
|
|
@@ -10069,12 +10070,12 @@ var stdin_default$U = vue.defineComponent({
|
|
|
10069
10070
|
"onClick": onThird
|
|
10070
10071
|
}, null)]);
|
|
10071
10072
|
const renderRoundButtons = () => vue.createVNode(ActionBar, {
|
|
10072
|
-
"class": bem$
|
|
10073
|
+
"class": bem$P("footer")
|
|
10073
10074
|
}, {
|
|
10074
10075
|
default: () => [props2.showCancelButton && vue.createVNode(ActionBarButton, {
|
|
10075
10076
|
"type": "warning",
|
|
10076
10077
|
"text": props2.cancelButtonText || t$7("cancel"),
|
|
10077
|
-
"class": bem$
|
|
10078
|
+
"class": bem$P("cancel"),
|
|
10078
10079
|
"color": props2.cancelButtonColor,
|
|
10079
10080
|
"loading": loading.cancel,
|
|
10080
10081
|
"disabled": props2.cancelButtonDisabled,
|
|
@@ -10082,7 +10083,7 @@ var stdin_default$U = vue.defineComponent({
|
|
|
10082
10083
|
}, null), props2.showConfirmButton && vue.createVNode(ActionBarButton, {
|
|
10083
10084
|
"type": "primary",
|
|
10084
10085
|
"text": props2.confirmButtonText || t$7("confirm"),
|
|
10085
|
-
"class": bem$
|
|
10086
|
+
"class": bem$P("confirm"),
|
|
10086
10087
|
"color": props2.confirmButtonColor,
|
|
10087
10088
|
"loading": loading.confirm,
|
|
10088
10089
|
"disabled": props2.confirmButtonDisabled,
|
|
@@ -10106,7 +10107,7 @@ var stdin_default$U = vue.defineComponent({
|
|
|
10106
10107
|
return vue.createVNode(Popup, vue.mergeProps({
|
|
10107
10108
|
"ref": root,
|
|
10108
10109
|
"role": "dialog",
|
|
10109
|
-
"class": [bem$
|
|
10110
|
+
"class": [bem$P([theme]), className],
|
|
10110
10111
|
"style": {
|
|
10111
10112
|
width: addUnit(width)
|
|
10112
10113
|
},
|
|
@@ -10128,7 +10129,7 @@ function initInstance$3() {
|
|
|
10128
10129
|
state,
|
|
10129
10130
|
toggle
|
|
10130
10131
|
} = usePopupState();
|
|
10131
|
-
return () => vue.createVNode(stdin_default$
|
|
10132
|
+
return () => vue.createVNode(stdin_default$V, vue.mergeProps(state, {
|
|
10132
10133
|
"onUpdate:show": toggle
|
|
10133
10134
|
}), null);
|
|
10134
10135
|
}
|
|
@@ -10195,19 +10196,19 @@ Dialog.setDefaultOptions = (options) => {
|
|
|
10195
10196
|
Dialog.resetDefaultOptions = () => {
|
|
10196
10197
|
Dialog.currentOptions = extend({}, Dialog.defaultOptions);
|
|
10197
10198
|
};
|
|
10198
|
-
Dialog.Component = withInstall(stdin_default$
|
|
10199
|
+
Dialog.Component = withInstall(stdin_default$V);
|
|
10199
10200
|
Dialog.install = (app) => {
|
|
10200
10201
|
app.use(Dialog.Component);
|
|
10201
10202
|
app.config.globalProperties.$dialog = Dialog;
|
|
10202
10203
|
};
|
|
10203
|
-
const [name$
|
|
10204
|
+
const [name$N, bem$O] = createNamespace("divider");
|
|
10204
10205
|
const dividerProps = {
|
|
10205
10206
|
dashed: Boolean,
|
|
10206
10207
|
hairline: truthProp,
|
|
10207
10208
|
contentPosition: makeStringProp("center")
|
|
10208
10209
|
};
|
|
10209
|
-
var stdin_default$
|
|
10210
|
-
name: name$
|
|
10210
|
+
var stdin_default$U = vue.defineComponent({
|
|
10211
|
+
name: name$N,
|
|
10211
10212
|
props: dividerProps,
|
|
10212
10213
|
setup(props2, {
|
|
10213
10214
|
slots
|
|
@@ -10216,7 +10217,7 @@ var stdin_default$T = vue.defineComponent({
|
|
|
10216
10217
|
var _a;
|
|
10217
10218
|
return vue.createVNode("div", {
|
|
10218
10219
|
"role": "separator",
|
|
10219
|
-
"class": bem$
|
|
10220
|
+
"class": bem$O({
|
|
10220
10221
|
dashed: props2.dashed,
|
|
10221
10222
|
hairline: props2.hairline,
|
|
10222
10223
|
[`content-${props2.contentPosition}`]: !!slots.default
|
|
@@ -10225,8 +10226,8 @@ var stdin_default$T = vue.defineComponent({
|
|
|
10225
10226
|
};
|
|
10226
10227
|
}
|
|
10227
10228
|
});
|
|
10228
|
-
const Divider = withInstall(stdin_default$
|
|
10229
|
-
const [name$
|
|
10229
|
+
const Divider = withInstall(stdin_default$U);
|
|
10230
|
+
const [name$M, bem$N] = createNamespace("dropdown-menu");
|
|
10230
10231
|
const dropdownMenuProps = {
|
|
10231
10232
|
overlay: truthProp,
|
|
10232
10233
|
zIndex: numericProp,
|
|
@@ -10238,9 +10239,9 @@ const dropdownMenuProps = {
|
|
|
10238
10239
|
closeOnClickOutside: truthProp,
|
|
10239
10240
|
closeOnClickOverlay: truthProp
|
|
10240
10241
|
};
|
|
10241
|
-
const DROPDOWN_KEY = Symbol(name$
|
|
10242
|
-
var stdin_default$
|
|
10243
|
-
name: name$
|
|
10242
|
+
const DROPDOWN_KEY = Symbol(name$M);
|
|
10243
|
+
var stdin_default$T = vue.defineComponent({
|
|
10244
|
+
name: name$M,
|
|
10244
10245
|
props: dropdownMenuProps,
|
|
10245
10246
|
setup(props2, {
|
|
10246
10247
|
slots
|
|
@@ -10312,7 +10313,7 @@ var stdin_default$S = vue.defineComponent({
|
|
|
10312
10313
|
"id": `${id}-${index}`,
|
|
10313
10314
|
"role": "button",
|
|
10314
10315
|
"tabindex": disabled ? void 0 : 0,
|
|
10315
|
-
"class": [bem$
|
|
10316
|
+
"class": [bem$N("item", {
|
|
10316
10317
|
disabled
|
|
10317
10318
|
}), {
|
|
10318
10319
|
[HAPTICS_FEEDBACK]: !disabled
|
|
@@ -10323,7 +10324,7 @@ var stdin_default$S = vue.defineComponent({
|
|
|
10323
10324
|
}
|
|
10324
10325
|
}
|
|
10325
10326
|
}, [vue.createVNode("span", {
|
|
10326
|
-
"class": [bem$
|
|
10327
|
+
"class": [bem$N("title", {
|
|
10327
10328
|
down: showPopup === (props2.direction === "down"),
|
|
10328
10329
|
active: showPopup
|
|
10329
10330
|
}), titleClass],
|
|
@@ -10348,18 +10349,18 @@ var stdin_default$S = vue.defineComponent({
|
|
|
10348
10349
|
var _a;
|
|
10349
10350
|
return vue.createVNode("div", {
|
|
10350
10351
|
"ref": root,
|
|
10351
|
-
"class": bem$
|
|
10352
|
+
"class": bem$N()
|
|
10352
10353
|
}, [props2.showBar && vue.createVNode("div", {
|
|
10353
10354
|
"ref": barRef,
|
|
10354
10355
|
"style": barStyle.value,
|
|
10355
|
-
"class": bem$
|
|
10356
|
+
"class": bem$N("bar", {
|
|
10356
10357
|
opened: opened.value
|
|
10357
10358
|
})
|
|
10358
10359
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
10359
10360
|
};
|
|
10360
10361
|
}
|
|
10361
10362
|
});
|
|
10362
|
-
const [name$
|
|
10363
|
+
const [name$L, bem$M] = createNamespace("dropdown-item");
|
|
10363
10364
|
const dropdownItemProps = {
|
|
10364
10365
|
title: String,
|
|
10365
10366
|
options: makeArrayProp(),
|
|
@@ -10369,8 +10370,8 @@ const dropdownItemProps = {
|
|
|
10369
10370
|
modelValue: unknownProp,
|
|
10370
10371
|
titleClass: unknownProp
|
|
10371
10372
|
};
|
|
10372
|
-
var stdin_default$
|
|
10373
|
-
name: name$
|
|
10373
|
+
var stdin_default$S = vue.defineComponent({
|
|
10374
|
+
name: name$L,
|
|
10374
10375
|
props: dropdownItemProps,
|
|
10375
10376
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
|
10376
10377
|
setup(props2, {
|
|
@@ -10440,7 +10441,7 @@ var stdin_default$R = vue.defineComponent({
|
|
|
10440
10441
|
const renderIcon = () => {
|
|
10441
10442
|
if (active) {
|
|
10442
10443
|
return vue.createVNode(Icon, {
|
|
10443
|
-
"class": bem$
|
|
10444
|
+
"class": bem$M("icon"),
|
|
10444
10445
|
"color": activeColor,
|
|
10445
10446
|
"name": "success"
|
|
10446
10447
|
}, null);
|
|
@@ -10451,7 +10452,7 @@ var stdin_default$R = vue.defineComponent({
|
|
|
10451
10452
|
"key": option.value,
|
|
10452
10453
|
"icon": option.icon,
|
|
10453
10454
|
"title": option.text,
|
|
10454
|
-
"class": bem$
|
|
10455
|
+
"class": bem$M("option", {
|
|
10455
10456
|
active
|
|
10456
10457
|
}),
|
|
10457
10458
|
"style": {
|
|
@@ -10483,13 +10484,13 @@ var stdin_default$R = vue.defineComponent({
|
|
|
10483
10484
|
}
|
|
10484
10485
|
return vue.withDirectives(vue.createVNode("div", {
|
|
10485
10486
|
"style": style,
|
|
10486
|
-
"class": bem$
|
|
10487
|
+
"class": bem$M([direction]),
|
|
10487
10488
|
"onClick": onClickWrapper
|
|
10488
10489
|
}, [vue.createVNode(Popup, {
|
|
10489
10490
|
"show": state.showPopup,
|
|
10490
10491
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
|
10491
10492
|
"role": "menu",
|
|
10492
|
-
"class": bem$
|
|
10493
|
+
"class": bem$M("content"),
|
|
10493
10494
|
"overlay": overlay,
|
|
10494
10495
|
"position": direction === "down" ? "top" : "bottom",
|
|
10495
10496
|
"duration": state.transition ? duration : 0,
|
|
@@ -10527,15 +10528,15 @@ var stdin_default$R = vue.defineComponent({
|
|
|
10527
10528
|
};
|
|
10528
10529
|
}
|
|
10529
10530
|
});
|
|
10530
|
-
const DropdownItem = withInstall(stdin_default$
|
|
10531
|
-
const DropdownMenu = withInstall(stdin_default$
|
|
10532
|
-
const [name$
|
|
10533
|
-
const SIDEBAR_KEY = Symbol(name$
|
|
10531
|
+
const DropdownItem = withInstall(stdin_default$S);
|
|
10532
|
+
const DropdownMenu = withInstall(stdin_default$T);
|
|
10533
|
+
const [name$K, bem$L] = createNamespace("sidebar");
|
|
10534
|
+
const SIDEBAR_KEY = Symbol(name$K);
|
|
10534
10535
|
const sidebarProps = {
|
|
10535
10536
|
modelValue: makeNumericProp(0)
|
|
10536
10537
|
};
|
|
10537
|
-
var stdin_default$
|
|
10538
|
-
name: name$
|
|
10538
|
+
var stdin_default$R = vue.defineComponent({
|
|
10539
|
+
name: name$K,
|
|
10539
10540
|
props: sidebarProps,
|
|
10540
10541
|
emits: ["change", "update:modelValue"],
|
|
10541
10542
|
setup(props2, {
|
|
@@ -10560,13 +10561,13 @@ var stdin_default$Q = vue.defineComponent({
|
|
|
10560
10561
|
var _a;
|
|
10561
10562
|
return vue.createVNode("div", {
|
|
10562
10563
|
"role": "tablist",
|
|
10563
|
-
"class": bem$
|
|
10564
|
+
"class": bem$L()
|
|
10564
10565
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
10565
10566
|
};
|
|
10566
10567
|
}
|
|
10567
10568
|
});
|
|
10568
|
-
const Sidebar = withInstall(stdin_default$
|
|
10569
|
-
const [name$
|
|
10569
|
+
const Sidebar = withInstall(stdin_default$R);
|
|
10570
|
+
const [name$J, bem$K] = createNamespace("sidebar-item");
|
|
10570
10571
|
const sidebarItemProps = extend({}, routeProps, {
|
|
10571
10572
|
dot: Boolean,
|
|
10572
10573
|
title: String,
|
|
@@ -10574,8 +10575,8 @@ const sidebarItemProps = extend({}, routeProps, {
|
|
|
10574
10575
|
disabled: Boolean,
|
|
10575
10576
|
badgeProps: Object
|
|
10576
10577
|
});
|
|
10577
|
-
var stdin_default$
|
|
10578
|
-
name: name$
|
|
10578
|
+
var stdin_default$Q = vue.defineComponent({
|
|
10579
|
+
name: name$J,
|
|
10579
10580
|
props: sidebarItemProps,
|
|
10580
10581
|
emits: ["click"],
|
|
10581
10582
|
setup(props2, {
|
|
@@ -10611,7 +10612,7 @@ var stdin_default$P = vue.defineComponent({
|
|
|
10611
10612
|
const selected = index.value === parent.getActive();
|
|
10612
10613
|
return vue.createVNode("div", {
|
|
10613
10614
|
"role": "tab",
|
|
10614
|
-
"class": bem$
|
|
10615
|
+
"class": bem$K({
|
|
10615
10616
|
select: selected,
|
|
10616
10617
|
disabled
|
|
10617
10618
|
}),
|
|
@@ -10620,7 +10621,7 @@ var stdin_default$P = vue.defineComponent({
|
|
|
10620
10621
|
"onClick": onClick
|
|
10621
10622
|
}, [vue.createVNode(Badge, vue.mergeProps({
|
|
10622
10623
|
"dot": dot,
|
|
10623
|
-
"class": bem$
|
|
10624
|
+
"class": bem$K("text"),
|
|
10624
10625
|
"content": badge
|
|
10625
10626
|
}, props2.badgeProps), {
|
|
10626
10627
|
default: () => [slots.title ? slots.title() : title]
|
|
@@ -10628,8 +10629,8 @@ var stdin_default$P = vue.defineComponent({
|
|
|
10628
10629
|
};
|
|
10629
10630
|
}
|
|
10630
10631
|
});
|
|
10631
|
-
const SidebarItem = withInstall(stdin_default$
|
|
10632
|
-
const [name$
|
|
10632
|
+
const SidebarItem = withInstall(stdin_default$Q);
|
|
10633
|
+
const [name$I, bem$J] = createNamespace("floor-select");
|
|
10633
10634
|
const defaultBuildings = [{
|
|
10634
10635
|
id: "building-a",
|
|
10635
10636
|
text: "建筑A座",
|
|
@@ -10744,8 +10745,8 @@ const floorSelectProps = {
|
|
|
10744
10745
|
},
|
|
10745
10746
|
more: Boolean
|
|
10746
10747
|
};
|
|
10747
|
-
var stdin_default$
|
|
10748
|
-
name: name$
|
|
10748
|
+
var stdin_default$P = vue.defineComponent({
|
|
10749
|
+
name: name$I,
|
|
10749
10750
|
props: floorSelectProps,
|
|
10750
10751
|
emits: ["change", "update:activeBuilding", "update:modelValue"],
|
|
10751
10752
|
setup(props2, {
|
|
@@ -10803,7 +10804,7 @@ var stdin_default$O = vue.defineComponent({
|
|
|
10803
10804
|
});
|
|
10804
10805
|
return vue.createVNode("div", {
|
|
10805
10806
|
"key": item.id,
|
|
10806
|
-
"class": bem$
|
|
10807
|
+
"class": bem$J("cell")
|
|
10807
10808
|
}, [cell || vue.createVNode(Cell, {
|
|
10808
10809
|
"title": item.text,
|
|
10809
10810
|
"border": index < spaces.value.length - 1,
|
|
@@ -10815,14 +10816,14 @@ var stdin_default$O = vue.defineComponent({
|
|
|
10815
10816
|
}, null)]);
|
|
10816
10817
|
};
|
|
10817
10818
|
return () => vue.createVNode("div", {
|
|
10818
|
-
"class": bem$
|
|
10819
|
+
"class": bem$J()
|
|
10819
10820
|
}, [vue.createVNode(Tabs, {
|
|
10820
10821
|
"active": activeBuilding.value,
|
|
10821
10822
|
"type": "filter",
|
|
10822
10823
|
"shrink": true,
|
|
10823
10824
|
"more": props2.more,
|
|
10824
10825
|
"showMore": showMore.value,
|
|
10825
|
-
"class": bem$
|
|
10826
|
+
"class": bem$J("tabs"),
|
|
10826
10827
|
"onUpdate:active": selectBuilding,
|
|
10827
10828
|
"onUpdate:showMore": (value) => {
|
|
10828
10829
|
showMore.value = value;
|
|
@@ -10834,10 +10835,10 @@ var stdin_default$O = vue.defineComponent({
|
|
|
10834
10835
|
"title": building.text
|
|
10835
10836
|
}, null))]
|
|
10836
10837
|
}), vue.createVNode("div", {
|
|
10837
|
-
"class": bem$
|
|
10838
|
+
"class": bem$J("content")
|
|
10838
10839
|
}, [vue.createVNode(Sidebar, {
|
|
10839
10840
|
"modelValue": activeFloor.value,
|
|
10840
|
-
"class": bem$
|
|
10841
|
+
"class": bem$J("sidebar"),
|
|
10841
10842
|
"onUpdate:modelValue": (value) => {
|
|
10842
10843
|
activeFloor.value = +value;
|
|
10843
10844
|
}
|
|
@@ -10852,19 +10853,19 @@ var stdin_default$O = vue.defineComponent({
|
|
|
10852
10853
|
"disabled": floor.disabled
|
|
10853
10854
|
}, null))]
|
|
10854
10855
|
}), vue.createVNode("div", {
|
|
10855
|
-
"class": bem$
|
|
10856
|
+
"class": bem$J("cells")
|
|
10856
10857
|
}, [spaces.value.map(renderCell)])])]);
|
|
10857
10858
|
}
|
|
10858
10859
|
});
|
|
10859
|
-
const FloorSelect = withInstall(stdin_default$
|
|
10860
|
-
const [name$
|
|
10860
|
+
const FloorSelect = withInstall(stdin_default$P);
|
|
10861
|
+
const [name$H, bem$I] = createNamespace("form-panel");
|
|
10861
10862
|
const formPanelProps = {
|
|
10862
10863
|
show: Boolean,
|
|
10863
10864
|
title: String,
|
|
10864
10865
|
confirmText: makeStringProp("确定")
|
|
10865
10866
|
};
|
|
10866
|
-
var stdin_default$
|
|
10867
|
-
name: name$
|
|
10867
|
+
var stdin_default$O = vue.defineComponent({
|
|
10868
|
+
name: name$H,
|
|
10868
10869
|
props: formPanelProps,
|
|
10869
10870
|
emits: ["update:show", "confirm"],
|
|
10870
10871
|
setup(props2, {
|
|
@@ -10878,19 +10879,19 @@ var stdin_default$N = vue.defineComponent({
|
|
|
10878
10879
|
};
|
|
10879
10880
|
return () => vue.createVNode(ActionSheet, {
|
|
10880
10881
|
"show": props2.show,
|
|
10881
|
-
"class": bem$
|
|
10882
|
+
"class": bem$I(),
|
|
10882
10883
|
"onUpdate:show": (show) => emit("update:show", show)
|
|
10883
10884
|
}, {
|
|
10884
10885
|
default: () => {
|
|
10885
10886
|
var _a;
|
|
10886
10887
|
return [vue.createVNode("div", {
|
|
10887
|
-
"class": bem$
|
|
10888
|
+
"class": bem$I("content")
|
|
10888
10889
|
}, [vue.createVNode("div", {
|
|
10889
|
-
"class": bem$
|
|
10890
|
+
"class": bem$I("nav-wrapper")
|
|
10890
10891
|
}, [vue.createVNode(NavBar, {
|
|
10891
10892
|
"title": props2.title,
|
|
10892
10893
|
"border": false,
|
|
10893
|
-
"class": bem$
|
|
10894
|
+
"class": bem$I("nav")
|
|
10894
10895
|
}, {
|
|
10895
10896
|
left: () => vue.createVNode(Icon, {
|
|
10896
10897
|
"name": "cross",
|
|
@@ -10898,9 +10899,9 @@ var stdin_default$N = vue.defineComponent({
|
|
|
10898
10899
|
"onClick": close
|
|
10899
10900
|
}, null)
|
|
10900
10901
|
})]), vue.createVNode("div", {
|
|
10901
|
-
"class": bem$
|
|
10902
|
+
"class": bem$I("body")
|
|
10902
10903
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), vue.createVNode("div", {
|
|
10903
|
-
"class": bem$
|
|
10904
|
+
"class": bem$I("footer")
|
|
10904
10905
|
}, [vue.createVNode(Button, {
|
|
10905
10906
|
"block": true,
|
|
10906
10907
|
"type": "primary",
|
|
@@ -10912,8 +10913,8 @@ var stdin_default$N = vue.defineComponent({
|
|
|
10912
10913
|
});
|
|
10913
10914
|
}
|
|
10914
10915
|
});
|
|
10915
|
-
const FormPanel = withInstall(stdin_default$
|
|
10916
|
-
const [name$
|
|
10916
|
+
const FormPanel = withInstall(stdin_default$O);
|
|
10917
|
+
const [name$G, bem$H] = createNamespace("friendly-tip");
|
|
10917
10918
|
const friendlyTipProps = {
|
|
10918
10919
|
show: truthProp,
|
|
10919
10920
|
message: String,
|
|
@@ -10930,8 +10931,8 @@ const friendlyTipProps = {
|
|
|
10930
10931
|
default: "body"
|
|
10931
10932
|
}
|
|
10932
10933
|
};
|
|
10933
|
-
var stdin_default$
|
|
10934
|
-
name: name$
|
|
10934
|
+
var stdin_default$N = vue.defineComponent({
|
|
10935
|
+
name: name$G,
|
|
10935
10936
|
props: friendlyTipProps,
|
|
10936
10937
|
emits: ["update:show"],
|
|
10937
10938
|
setup(props2, {
|
|
@@ -10942,7 +10943,7 @@ var stdin_default$M = vue.defineComponent({
|
|
|
10942
10943
|
return () => vue.createVNode(Popover, {
|
|
10943
10944
|
"show": props2.show,
|
|
10944
10945
|
"trigger": "manual",
|
|
10945
|
-
"class": bem$
|
|
10946
|
+
"class": bem$H("popover"),
|
|
10946
10947
|
"placement": props2.placement,
|
|
10947
10948
|
"showArrow": props2.showArrow,
|
|
10948
10949
|
"iconPrefix": props2.iconPrefix,
|
|
@@ -10955,19 +10956,19 @@ var stdin_default$M = vue.defineComponent({
|
|
|
10955
10956
|
return (_a = slots.reference) == null ? void 0 : _a.call(slots);
|
|
10956
10957
|
},
|
|
10957
10958
|
default: () => vue.createVNode("div", {
|
|
10958
|
-
"class": bem$
|
|
10959
|
+
"class": bem$H()
|
|
10959
10960
|
}, [props2.icon && vue.createVNode(Icon, {
|
|
10960
10961
|
"name": props2.icon,
|
|
10961
|
-
"class": bem$
|
|
10962
|
+
"class": bem$H("icon"),
|
|
10962
10963
|
"classPrefix": props2.iconPrefix
|
|
10963
10964
|
}, null), vue.createVNode("span", {
|
|
10964
|
-
"class": bem$
|
|
10965
|
+
"class": bem$H("message")
|
|
10965
10966
|
}, [slots.default ? slots.default() : props2.message])])
|
|
10966
10967
|
});
|
|
10967
10968
|
}
|
|
10968
10969
|
});
|
|
10969
|
-
const FriendlyTip = withInstall(stdin_default$
|
|
10970
|
-
const [name$
|
|
10970
|
+
const FriendlyTip = withInstall(stdin_default$N);
|
|
10971
|
+
const [name$F, bem$G] = createNamespace("grid");
|
|
10971
10972
|
const gridProps = {
|
|
10972
10973
|
square: Boolean,
|
|
10973
10974
|
center: truthProp,
|
|
@@ -10979,9 +10980,9 @@ const gridProps = {
|
|
|
10979
10980
|
clickable: Boolean,
|
|
10980
10981
|
columnNum: makeNumericProp(4)
|
|
10981
10982
|
};
|
|
10982
|
-
const GRID_KEY = Symbol(name$
|
|
10983
|
-
var stdin_default$
|
|
10984
|
-
name: name$
|
|
10983
|
+
const GRID_KEY = Symbol(name$F);
|
|
10984
|
+
var stdin_default$M = vue.defineComponent({
|
|
10985
|
+
name: name$F,
|
|
10985
10986
|
props: gridProps,
|
|
10986
10987
|
setup(props2, {
|
|
10987
10988
|
slots
|
|
@@ -10998,15 +10999,15 @@ var stdin_default$L = vue.defineComponent({
|
|
|
10998
10999
|
"style": {
|
|
10999
11000
|
paddingLeft: addUnit(props2.gutter)
|
|
11000
11001
|
},
|
|
11001
|
-
"class": [bem$
|
|
11002
|
+
"class": [bem$G(), {
|
|
11002
11003
|
[BORDER_TOP]: props2.border && !props2.gutter
|
|
11003
11004
|
}]
|
|
11004
11005
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
11005
11006
|
};
|
|
11006
11007
|
}
|
|
11007
11008
|
});
|
|
11008
|
-
const Grid = withInstall(stdin_default$
|
|
11009
|
-
const [name$
|
|
11009
|
+
const Grid = withInstall(stdin_default$M);
|
|
11010
|
+
const [name$E, bem$F] = createNamespace("grid-item");
|
|
11010
11011
|
const gridItemProps = extend({}, routeProps, {
|
|
11011
11012
|
dot: Boolean,
|
|
11012
11013
|
text: String,
|
|
@@ -11016,8 +11017,8 @@ const gridItemProps = extend({}, routeProps, {
|
|
|
11016
11017
|
iconPrefix: String,
|
|
11017
11018
|
badgeProps: Object
|
|
11018
11019
|
});
|
|
11019
|
-
var stdin_default$
|
|
11020
|
-
name: name$
|
|
11020
|
+
var stdin_default$L = vue.defineComponent({
|
|
11021
|
+
name: name$E,
|
|
11021
11022
|
props: gridItemProps,
|
|
11022
11023
|
setup(props2, {
|
|
11023
11024
|
slots
|
|
@@ -11083,7 +11084,7 @@ var stdin_default$K = vue.defineComponent({
|
|
|
11083
11084
|
"name": props2.icon,
|
|
11084
11085
|
"size": parent.props.iconSize,
|
|
11085
11086
|
"badge": props2.badge,
|
|
11086
|
-
"class": bem$
|
|
11087
|
+
"class": bem$F("icon"),
|
|
11087
11088
|
"color": props2.iconColor,
|
|
11088
11089
|
"badgeProps": props2.badgeProps,
|
|
11089
11090
|
"classPrefix": props2.iconPrefix
|
|
@@ -11096,7 +11097,7 @@ var stdin_default$K = vue.defineComponent({
|
|
|
11096
11097
|
}
|
|
11097
11098
|
if (props2.text) {
|
|
11098
11099
|
return vue.createVNode("span", {
|
|
11099
|
-
"class": bem$
|
|
11100
|
+
"class": bem$F("text")
|
|
11100
11101
|
}, [props2.text]);
|
|
11101
11102
|
}
|
|
11102
11103
|
};
|
|
@@ -11116,7 +11117,7 @@ var stdin_default$K = vue.defineComponent({
|
|
|
11116
11117
|
direction,
|
|
11117
11118
|
clickable
|
|
11118
11119
|
} = parent.props;
|
|
11119
|
-
const classes = [bem$
|
|
11120
|
+
const classes = [bem$F("content", [direction, {
|
|
11120
11121
|
center,
|
|
11121
11122
|
square,
|
|
11122
11123
|
reverse,
|
|
@@ -11126,7 +11127,7 @@ var stdin_default$K = vue.defineComponent({
|
|
|
11126
11127
|
[BORDER]: border
|
|
11127
11128
|
}];
|
|
11128
11129
|
return vue.createVNode("div", {
|
|
11129
|
-
"class": [bem$
|
|
11130
|
+
"class": [bem$F({
|
|
11130
11131
|
square
|
|
11131
11132
|
})],
|
|
11132
11133
|
"style": rootStyle.value
|
|
@@ -11140,10 +11141,10 @@ var stdin_default$K = vue.defineComponent({
|
|
|
11140
11141
|
};
|
|
11141
11142
|
}
|
|
11142
11143
|
});
|
|
11143
|
-
const GridItem = withInstall(stdin_default$
|
|
11144
|
+
const GridItem = withInstall(stdin_default$L);
|
|
11144
11145
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
|
11145
|
-
const bem$
|
|
11146
|
-
var stdin_default$
|
|
11146
|
+
const bem$E = createNamespace("image-preview")[1];
|
|
11147
|
+
var stdin_default$K = vue.defineComponent({
|
|
11147
11148
|
props: {
|
|
11148
11149
|
src: String,
|
|
11149
11150
|
show: Boolean,
|
|
@@ -11369,19 +11370,19 @@ var stdin_default$J = vue.defineComponent({
|
|
|
11369
11370
|
};
|
|
11370
11371
|
return vue.createVNode(SwipeItem, {
|
|
11371
11372
|
"ref": swipeItem,
|
|
11372
|
-
"class": bem$
|
|
11373
|
+
"class": bem$E("swipe-item"),
|
|
11373
11374
|
"onTouchstartPassive": onTouchStart,
|
|
11374
11375
|
"onTouchend": onTouchEnd,
|
|
11375
11376
|
"onTouchcancel": onTouchEnd
|
|
11376
11377
|
}, {
|
|
11377
11378
|
default: () => [slots.image ? vue.createVNode("div", {
|
|
11378
|
-
"class": bem$
|
|
11379
|
+
"class": bem$E("image-wrap")
|
|
11379
11380
|
}, [slots.image({
|
|
11380
11381
|
src: props2.src
|
|
11381
11382
|
})]) : vue.createVNode(Image$1, {
|
|
11382
11383
|
"src": props2.src,
|
|
11383
11384
|
"fit": "contain",
|
|
11384
|
-
"class": bem$
|
|
11385
|
+
"class": bem$E("image", {
|
|
11385
11386
|
vertical: vertical.value
|
|
11386
11387
|
}),
|
|
11387
11388
|
"style": imageStyle.value,
|
|
@@ -11391,7 +11392,7 @@ var stdin_default$J = vue.defineComponent({
|
|
|
11391
11392
|
};
|
|
11392
11393
|
}
|
|
11393
11394
|
});
|
|
11394
|
-
const [name$
|
|
11395
|
+
const [name$D, bem$D] = createNamespace("image-preview");
|
|
11395
11396
|
const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
|
|
11396
11397
|
const imagePreviewProps = {
|
|
11397
11398
|
show: Boolean,
|
|
@@ -11414,8 +11415,8 @@ const imagePreviewProps = {
|
|
|
11414
11415
|
closeOnPopstate: truthProp,
|
|
11415
11416
|
closeIconPosition: makeStringProp("top-right")
|
|
11416
11417
|
};
|
|
11417
|
-
var stdin_default$
|
|
11418
|
-
name: name$
|
|
11418
|
+
var stdin_default$J = vue.defineComponent({
|
|
11419
|
+
name: name$D,
|
|
11419
11420
|
props: imagePreviewProps,
|
|
11420
11421
|
emits: ["scale", "close", "closed", "change", "update:show"],
|
|
11421
11422
|
setup(props2, {
|
|
@@ -11453,7 +11454,7 @@ var stdin_default$I = vue.defineComponent({
|
|
|
11453
11454
|
const renderIndex = () => {
|
|
11454
11455
|
if (props2.showIndex) {
|
|
11455
11456
|
return vue.createVNode("div", {
|
|
11456
|
-
"class": bem$
|
|
11457
|
+
"class": bem$D("index")
|
|
11457
11458
|
}, [slots.index ? slots.index({
|
|
11458
11459
|
index: state.active
|
|
11459
11460
|
}) : `${state.active + 1} / ${props2.images.length}`]);
|
|
@@ -11462,7 +11463,7 @@ var stdin_default$I = vue.defineComponent({
|
|
|
11462
11463
|
const renderCover = () => {
|
|
11463
11464
|
if (slots.cover) {
|
|
11464
11465
|
return vue.createVNode("div", {
|
|
11465
|
-
"class": bem$
|
|
11466
|
+
"class": bem$D("cover")
|
|
11466
11467
|
}, [slots.cover()]);
|
|
11467
11468
|
}
|
|
11468
11469
|
};
|
|
@@ -11470,14 +11471,14 @@ var stdin_default$I = vue.defineComponent({
|
|
|
11470
11471
|
"ref": swipeRef,
|
|
11471
11472
|
"lazyRender": true,
|
|
11472
11473
|
"loop": props2.loop,
|
|
11473
|
-
"class": bem$
|
|
11474
|
+
"class": bem$D("swipe"),
|
|
11474
11475
|
"duration": props2.swipeDuration,
|
|
11475
11476
|
"initialSwipe": props2.startPosition,
|
|
11476
11477
|
"showIndicators": props2.showIndicators,
|
|
11477
11478
|
"indicatorColor": "white",
|
|
11478
11479
|
"onChange": setActive
|
|
11479
11480
|
}, {
|
|
11480
|
-
default: () => [props2.images.map((image) => vue.createVNode(stdin_default$
|
|
11481
|
+
default: () => [props2.images.map((image) => vue.createVNode(stdin_default$K, {
|
|
11481
11482
|
"src": image,
|
|
11482
11483
|
"show": props2.show,
|
|
11483
11484
|
"active": state.active,
|
|
@@ -11496,7 +11497,7 @@ var stdin_default$I = vue.defineComponent({
|
|
|
11496
11497
|
return vue.createVNode(Icon, {
|
|
11497
11498
|
"role": "button",
|
|
11498
11499
|
"name": props2.closeIcon,
|
|
11499
|
-
"class": [bem$
|
|
11500
|
+
"class": [bem$D("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
|
|
11500
11501
|
"onClick": emitClose
|
|
11501
11502
|
}, null);
|
|
11502
11503
|
}
|
|
@@ -11533,8 +11534,8 @@ var stdin_default$I = vue.defineComponent({
|
|
|
11533
11534
|
}
|
|
11534
11535
|
});
|
|
11535
11536
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
11536
|
-
"class": [bem$
|
|
11537
|
-
"overlayClass": [bem$
|
|
11537
|
+
"class": [bem$D(), props2.className],
|
|
11538
|
+
"overlayClass": [bem$D("overlay"), props2.overlayClass],
|
|
11538
11539
|
"onClosed": onClosed,
|
|
11539
11540
|
"onUpdate:show": updateShow
|
|
11540
11541
|
}, pick(props2, popupProps$1)), {
|
|
@@ -11578,7 +11579,7 @@ function initInstance$2() {
|
|
|
11578
11579
|
const onClosed = () => {
|
|
11579
11580
|
state.images = [];
|
|
11580
11581
|
};
|
|
11581
|
-
return () => vue.createVNode(stdin_default$
|
|
11582
|
+
return () => vue.createVNode(stdin_default$J, vue.mergeProps(state, {
|
|
11582
11583
|
"onClosed": onClosed,
|
|
11583
11584
|
"onUpdate:show": toggle
|
|
11584
11585
|
}), null);
|
|
@@ -11599,7 +11600,7 @@ const ImagePreview = (options, startPosition = 0) => {
|
|
|
11599
11600
|
instance$2.open(extend({}, defaultConfig$1, options));
|
|
11600
11601
|
return instance$2;
|
|
11601
11602
|
};
|
|
11602
|
-
ImagePreview.Component = withInstall(stdin_default$
|
|
11603
|
+
ImagePreview.Component = withInstall(stdin_default$J);
|
|
11603
11604
|
ImagePreview.install = (app) => {
|
|
11604
11605
|
app.use(ImagePreview.Component);
|
|
11605
11606
|
};
|
|
@@ -11608,7 +11609,7 @@ function genAlphabet() {
|
|
|
11608
11609
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
|
11609
11610
|
return indexList;
|
|
11610
11611
|
}
|
|
11611
|
-
const [name$
|
|
11612
|
+
const [name$C, bem$C] = createNamespace("index-bar");
|
|
11612
11613
|
const indexBarProps = {
|
|
11613
11614
|
sticky: truthProp,
|
|
11614
11615
|
zIndex: numericProp,
|
|
@@ -11620,9 +11621,9 @@ const indexBarProps = {
|
|
|
11620
11621
|
default: genAlphabet
|
|
11621
11622
|
}
|
|
11622
11623
|
};
|
|
11623
|
-
const INDEX_BAR_KEY = Symbol(name$
|
|
11624
|
-
var stdin_default$
|
|
11625
|
-
name: name$
|
|
11624
|
+
const INDEX_BAR_KEY = Symbol(name$C);
|
|
11625
|
+
var stdin_default$I = vue.defineComponent({
|
|
11626
|
+
name: name$C,
|
|
11626
11627
|
props: indexBarProps,
|
|
11627
11628
|
emits: ["select", "change"],
|
|
11628
11629
|
setup(props2, {
|
|
@@ -11734,7 +11735,7 @@ var stdin_default$H = vue.defineComponent({
|
|
|
11734
11735
|
const renderIndexes = () => props2.indexList.map((index) => {
|
|
11735
11736
|
const active = index === activeAnchor.value;
|
|
11736
11737
|
return vue.createVNode("span", {
|
|
11737
|
-
"class": bem$
|
|
11738
|
+
"class": bem$C("index", {
|
|
11738
11739
|
active
|
|
11739
11740
|
}),
|
|
11740
11741
|
"style": active ? highlightStyle.value : void 0,
|
|
@@ -11795,7 +11796,7 @@ var stdin_default$H = vue.defineComponent({
|
|
|
11795
11796
|
};
|
|
11796
11797
|
const renderSidebar = () => vue.createVNode("div", {
|
|
11797
11798
|
"ref": sidebar,
|
|
11798
|
-
"class": bem$
|
|
11799
|
+
"class": bem$C("sidebar"),
|
|
11799
11800
|
"style": sidebarStyle.value,
|
|
11800
11801
|
"onClick": onClickSidebar,
|
|
11801
11802
|
"onTouchstartPassive": touch.start
|
|
@@ -11811,7 +11812,7 @@ var stdin_default$H = vue.defineComponent({
|
|
|
11811
11812
|
var _a;
|
|
11812
11813
|
return vue.createVNode("div", {
|
|
11813
11814
|
"ref": root,
|
|
11814
|
-
"class": bem$
|
|
11815
|
+
"class": bem$C()
|
|
11815
11816
|
}, [props2.teleport ? vue.createVNode(vue.Teleport, {
|
|
11816
11817
|
"to": props2.teleport
|
|
11817
11818
|
}, {
|
|
@@ -11820,12 +11821,12 @@ var stdin_default$H = vue.defineComponent({
|
|
|
11820
11821
|
};
|
|
11821
11822
|
}
|
|
11822
11823
|
});
|
|
11823
|
-
const [name$
|
|
11824
|
+
const [name$B, bem$B] = createNamespace("index-anchor");
|
|
11824
11825
|
const indexAnchorProps = {
|
|
11825
11826
|
index: numericProp
|
|
11826
11827
|
};
|
|
11827
|
-
var stdin_default$
|
|
11828
|
-
name: name$
|
|
11828
|
+
var stdin_default$H = vue.defineComponent({
|
|
11829
|
+
name: name$B,
|
|
11829
11830
|
props: indexAnchorProps,
|
|
11830
11831
|
setup(props2, {
|
|
11831
11832
|
slots
|
|
@@ -11888,7 +11889,7 @@ var stdin_default$G = vue.defineComponent({
|
|
|
11888
11889
|
}
|
|
11889
11890
|
}, [vue.createVNode("div", {
|
|
11890
11891
|
"style": anchorStyle.value,
|
|
11891
|
-
"class": [bem$
|
|
11892
|
+
"class": [bem$B({
|
|
11892
11893
|
sticky
|
|
11893
11894
|
}), {
|
|
11894
11895
|
[BORDER_BOTTOM]: sticky
|
|
@@ -11897,8 +11898,96 @@ var stdin_default$G = vue.defineComponent({
|
|
|
11897
11898
|
};
|
|
11898
11899
|
}
|
|
11899
11900
|
});
|
|
11900
|
-
const IndexAnchor = withInstall(stdin_default$
|
|
11901
|
-
const IndexBar = withInstall(stdin_default$
|
|
11901
|
+
const IndexAnchor = withInstall(stdin_default$H);
|
|
11902
|
+
const IndexBar = withInstall(stdin_default$I);
|
|
11903
|
+
const [name$A, bem$A] = createNamespace("label");
|
|
11904
|
+
const labelProps = {
|
|
11905
|
+
label: makeStringProp(""),
|
|
11906
|
+
content: makeStringProp(""),
|
|
11907
|
+
type: makeStringProp("default"),
|
|
11908
|
+
vertical: Boolean,
|
|
11909
|
+
href: String,
|
|
11910
|
+
tags: {
|
|
11911
|
+
type: Array,
|
|
11912
|
+
default: () => []
|
|
11913
|
+
},
|
|
11914
|
+
media: {
|
|
11915
|
+
type: Array,
|
|
11916
|
+
default: () => []
|
|
11917
|
+
}
|
|
11918
|
+
};
|
|
11919
|
+
var stdin_default$G = vue.defineComponent({
|
|
11920
|
+
name: name$A,
|
|
11921
|
+
props: labelProps,
|
|
11922
|
+
emits: ["click", "click-media"],
|
|
11923
|
+
setup(props2, {
|
|
11924
|
+
slots,
|
|
11925
|
+
emit
|
|
11926
|
+
}) {
|
|
11927
|
+
const vertical = vue.computed(() => props2.vertical || props2.type === "media");
|
|
11928
|
+
const renderText = () => {
|
|
11929
|
+
var _a;
|
|
11930
|
+
const content = ((_a = slots.default) == null ? void 0 : _a.call(slots)) || props2.content;
|
|
11931
|
+
if (props2.type === "link") {
|
|
11932
|
+
return props2.href ? vue.createVNode("a", {
|
|
11933
|
+
"class": bem$A("link"),
|
|
11934
|
+
"href": props2.href,
|
|
11935
|
+
"onClick": (event) => emit("click", event)
|
|
11936
|
+
}, [content]) : vue.createVNode("button", {
|
|
11937
|
+
"class": bem$A("link"),
|
|
11938
|
+
"type": "button",
|
|
11939
|
+
"onClick": (event) => emit("click", event)
|
|
11940
|
+
}, [content]);
|
|
11941
|
+
}
|
|
11942
|
+
return vue.createVNode("span", {
|
|
11943
|
+
"class": bem$A("text")
|
|
11944
|
+
}, [content]);
|
|
11945
|
+
};
|
|
11946
|
+
const renderTags = () => vue.createVNode("div", {
|
|
11947
|
+
"class": bem$A("tags")
|
|
11948
|
+
}, [props2.tags.map((tag) => vue.createVNode(Tag, {
|
|
11949
|
+
"key": tag,
|
|
11950
|
+
"type": "gray"
|
|
11951
|
+
}, {
|
|
11952
|
+
default: () => [tag]
|
|
11953
|
+
}))]);
|
|
11954
|
+
const renderMedia = () => vue.createVNode("div", {
|
|
11955
|
+
"class": bem$A("media")
|
|
11956
|
+
}, [props2.media.map((item, index) => vue.createVNode("button", {
|
|
11957
|
+
"key": `${item.url}-${index}`,
|
|
11958
|
+
"class": bem$A("media-item"),
|
|
11959
|
+
"type": "button",
|
|
11960
|
+
"onClick": (event) => emit("click-media", item, index, event)
|
|
11961
|
+
}, [vue.createVNode(Image$1, {
|
|
11962
|
+
"src": item.type === "video" ? item.poster || item.url : item.url,
|
|
11963
|
+
"alt": item.alt,
|
|
11964
|
+
"width": "64",
|
|
11965
|
+
"height": "64",
|
|
11966
|
+
"radius": "4",
|
|
11967
|
+
"fit": "cover"
|
|
11968
|
+
}, null), item.type === "video" && vue.createVNode(Icon, {
|
|
11969
|
+
"name": "play-circle-o",
|
|
11970
|
+
"class": bem$A("play")
|
|
11971
|
+
}, null)]))]);
|
|
11972
|
+
const renderContent = () => {
|
|
11973
|
+
if (props2.type === "tag")
|
|
11974
|
+
return renderTags();
|
|
11975
|
+
if (props2.type === "media")
|
|
11976
|
+
return renderMedia();
|
|
11977
|
+
return renderText();
|
|
11978
|
+
};
|
|
11979
|
+
return () => vue.createVNode("div", {
|
|
11980
|
+
"class": bem$A([props2.type, {
|
|
11981
|
+
vertical: vertical.value
|
|
11982
|
+
}])
|
|
11983
|
+
}, [vue.createVNode("span", {
|
|
11984
|
+
"class": bem$A("label")
|
|
11985
|
+
}, [props2.label]), vue.createVNode("div", {
|
|
11986
|
+
"class": bem$A("value")
|
|
11987
|
+
}, [renderContent()])]);
|
|
11988
|
+
}
|
|
11989
|
+
});
|
|
11990
|
+
const Label = withInstall(stdin_default$G);
|
|
11902
11991
|
const [name$z, bem$z, t$6] = createNamespace("list");
|
|
11903
11992
|
const listProps = {
|
|
11904
11993
|
error: Boolean,
|
|
@@ -13161,7 +13250,27 @@ const materialAddProps = {
|
|
|
13161
13250
|
default: () => defaultCategories
|
|
13162
13251
|
},
|
|
13163
13252
|
title: makeStringProp("添加物料"),
|
|
13164
|
-
confirmText: makeStringProp("确定")
|
|
13253
|
+
confirmText: makeStringProp("确定"),
|
|
13254
|
+
showCommonTab: {
|
|
13255
|
+
type: Boolean,
|
|
13256
|
+
default: true
|
|
13257
|
+
},
|
|
13258
|
+
showAllTab: {
|
|
13259
|
+
type: Boolean,
|
|
13260
|
+
default: true
|
|
13261
|
+
},
|
|
13262
|
+
showMaterialTab: {
|
|
13263
|
+
type: Boolean,
|
|
13264
|
+
default: true
|
|
13265
|
+
},
|
|
13266
|
+
showToolTab: {
|
|
13267
|
+
type: Boolean,
|
|
13268
|
+
default: true
|
|
13269
|
+
},
|
|
13270
|
+
commonTabText: makeStringProp("常用物料"),
|
|
13271
|
+
allTabText: makeStringProp("全部物料"),
|
|
13272
|
+
materialTabText: makeStringProp("物资"),
|
|
13273
|
+
toolTabText: makeStringProp("工具")
|
|
13165
13274
|
};
|
|
13166
13275
|
var stdin_default$y = vue.defineComponent({
|
|
13167
13276
|
name: name$t,
|
|
@@ -13170,8 +13279,16 @@ var stdin_default$y = vue.defineComponent({
|
|
|
13170
13279
|
setup(props2, {
|
|
13171
13280
|
emit
|
|
13172
13281
|
}) {
|
|
13173
|
-
const
|
|
13174
|
-
const
|
|
13282
|
+
const getDefaultTab = () => props2.showCommonTab || !props2.showAllTab ? "common" : "all";
|
|
13283
|
+
const getDefaultKind = () => {
|
|
13284
|
+
if (props2.showMaterialTab || !props2.showToolTab)
|
|
13285
|
+
return "material";
|
|
13286
|
+
if (props2.showToolTab)
|
|
13287
|
+
return "tool";
|
|
13288
|
+
return void 0;
|
|
13289
|
+
};
|
|
13290
|
+
const activeTab = vue.ref(getDefaultTab());
|
|
13291
|
+
const activeKind = vue.ref(getDefaultKind());
|
|
13175
13292
|
const keyword = vue.ref("");
|
|
13176
13293
|
const searching = vue.ref(false);
|
|
13177
13294
|
const expandedKeys = vue.ref(["material-root", "tool-root"]);
|
|
@@ -13183,8 +13300,8 @@ var stdin_default$y = vue.defineComponent({
|
|
|
13183
13300
|
const detailBannerIndex = vue.ref(0);
|
|
13184
13301
|
vue.watch(() => props2.show, (show) => {
|
|
13185
13302
|
if (show) {
|
|
13186
|
-
activeTab.value =
|
|
13187
|
-
activeKind.value =
|
|
13303
|
+
activeTab.value = getDefaultTab();
|
|
13304
|
+
activeKind.value = getDefaultKind();
|
|
13188
13305
|
keyword.value = "";
|
|
13189
13306
|
searching.value = false;
|
|
13190
13307
|
expandedKeys.value = ["material-root", "tool-root"];
|
|
@@ -13198,6 +13315,16 @@ var stdin_default$y = vue.defineComponent({
|
|
|
13198
13315
|
}, {
|
|
13199
13316
|
immediate: true
|
|
13200
13317
|
});
|
|
13318
|
+
vue.watch(() => [props2.showCommonTab, props2.showAllTab], () => {
|
|
13319
|
+
if (activeTab.value === "common" && !props2.showCommonTab || activeTab.value === "all" && !props2.showAllTab) {
|
|
13320
|
+
activeTab.value = getDefaultTab();
|
|
13321
|
+
}
|
|
13322
|
+
});
|
|
13323
|
+
vue.watch(() => [props2.showMaterialTab, props2.showToolTab], () => {
|
|
13324
|
+
if (activeKind.value === "material" && !props2.showMaterialTab || activeKind.value === "tool" && !props2.showToolTab) {
|
|
13325
|
+
activeKind.value = getDefaultKind();
|
|
13326
|
+
}
|
|
13327
|
+
});
|
|
13201
13328
|
const quantities = vue.computed(() => props2.items.map((_, index) => Math.max(Number(props2.modelValue[index] || 0), 0)));
|
|
13202
13329
|
const total = vue.computed(() => quantities.value.reduce((sum, value) => sum + value, 0));
|
|
13203
13330
|
const selectedItems = vue.computed(() => props2.items.map((item, index) => ({
|
|
@@ -13210,8 +13337,8 @@ var stdin_default$y = vue.defineComponent({
|
|
|
13210
13337
|
const visibleItems = vue.computed(() => {
|
|
13211
13338
|
const query = keyword.value.trim().toLowerCase();
|
|
13212
13339
|
return props2.items.filter((item) => {
|
|
13213
|
-
const matchesKind = searching.value || item.kind === activeKind.value;
|
|
13214
|
-
const matchesCategory = searching.value || activeTab.value ===
|
|
13340
|
+
const matchesKind = searching.value || !activeKind.value || item.kind === activeKind.value;
|
|
13341
|
+
const matchesCategory = searching.value || activeTab.value === "common";
|
|
13215
13342
|
const matchesSearch = !query || `${item.name}${item.detail}`.toLowerCase().includes(query);
|
|
13216
13343
|
return matchesKind && matchesCategory && matchesSearch;
|
|
13217
13344
|
});
|
|
@@ -13252,13 +13379,13 @@ var stdin_default$y = vue.defineComponent({
|
|
|
13252
13379
|
"class": bem$t("empty")
|
|
13253
13380
|
}, [vue.createTextVNode("暂无匹配物料")])]);
|
|
13254
13381
|
const renderCatalog = () => {
|
|
13255
|
-
const rootGroups = props2.categories.filter((category) => category.kind === activeKind.value);
|
|
13382
|
+
const rootGroups = props2.categories.filter((category) => !activeKind.value || category.kind === activeKind.value);
|
|
13256
13383
|
const configuredValues = new Set(rootGroups.flatMap((group) => group.categories.map((category) => category.value)));
|
|
13257
|
-
const ungroupedCategories = [...new Set(props2.items.filter((item) => item.kind === activeKind.value && !configuredValues.has(item.category)).map((item) => item.category))];
|
|
13384
|
+
const ungroupedCategories = [...new Set(props2.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && !configuredValues.has(item.category)).map((item) => item.category))];
|
|
13258
13385
|
const groups = ungroupedCategories.length ? [...rootGroups, {
|
|
13259
|
-
id: `${activeKind.value}-other`,
|
|
13386
|
+
id: `${activeKind.value || "all"}-other`,
|
|
13260
13387
|
text: "未分类",
|
|
13261
|
-
kind: activeKind.value,
|
|
13388
|
+
kind: activeKind.value || "material",
|
|
13262
13389
|
categories: ungroupedCategories.map((value) => ({
|
|
13263
13390
|
value,
|
|
13264
13391
|
text: value
|
|
@@ -13268,7 +13395,7 @@ var stdin_default$y = vue.defineComponent({
|
|
|
13268
13395
|
id: root.id,
|
|
13269
13396
|
text: root.text,
|
|
13270
13397
|
selectable: false,
|
|
13271
|
-
children: props2.items.filter((item) => item.kind === activeKind.value && root.categories.some((category) => category.value === item.category)).map((material) => ({
|
|
13398
|
+
children: props2.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && root.categories.some((category) => category.value === item.category)).map((material) => ({
|
|
13272
13399
|
id: material.id,
|
|
13273
13400
|
text: material.name,
|
|
13274
13401
|
selectable: false,
|
|
@@ -13459,36 +13586,38 @@ var stdin_default$y = vue.defineComponent({
|
|
|
13459
13586
|
searching.value = true;
|
|
13460
13587
|
}
|
|
13461
13588
|
}, null)
|
|
13462
|
-
}), vue.createVNode(Tabs, {
|
|
13589
|
+
}), (props2.showCommonTab || props2.showAllTab) && vue.createVNode(Tabs, {
|
|
13463
13590
|
"active": activeTab.value,
|
|
13464
13591
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
13465
13592
|
"class": bem$t("tabs"),
|
|
13466
13593
|
"shrink": true
|
|
13467
13594
|
}, {
|
|
13468
|
-
default: () => [vue.createVNode(Tab, {
|
|
13469
|
-
"
|
|
13470
|
-
|
|
13471
|
-
|
|
13595
|
+
default: () => [props2.showCommonTab && vue.createVNode(Tab, {
|
|
13596
|
+
"name": "common",
|
|
13597
|
+
"title": props2.commonTabText
|
|
13598
|
+
}, null), props2.showAllTab && vue.createVNode(Tab, {
|
|
13599
|
+
"name": "all",
|
|
13600
|
+
"title": props2.allTabText
|
|
13472
13601
|
}, null)]
|
|
13473
|
-
}), vue.createVNode("div", {
|
|
13602
|
+
}), (props2.showMaterialTab || props2.showToolTab) && vue.createVNode("div", {
|
|
13474
13603
|
"class": bem$t("filter-tags")
|
|
13475
|
-
}, [vue.createVNode(FilterTag, {
|
|
13604
|
+
}, [props2.showMaterialTab && vue.createVNode(FilterTag, {
|
|
13476
13605
|
"selected": activeKind.value === "material",
|
|
13477
13606
|
"onClick": () => {
|
|
13478
13607
|
activeKind.value = "material";
|
|
13479
13608
|
}
|
|
13480
13609
|
}, {
|
|
13481
|
-
default: () => [
|
|
13482
|
-
}), vue.createVNode(FilterTag, {
|
|
13610
|
+
default: () => [props2.materialTabText]
|
|
13611
|
+
}), props2.showToolTab && vue.createVNode(FilterTag, {
|
|
13483
13612
|
"selected": activeKind.value === "tool",
|
|
13484
13613
|
"onClick": () => {
|
|
13485
13614
|
activeKind.value = "tool";
|
|
13486
13615
|
}
|
|
13487
13616
|
}, {
|
|
13488
|
-
default: () => [
|
|
13617
|
+
default: () => [props2.toolTabText]
|
|
13489
13618
|
})])]), vue.createVNode("div", {
|
|
13490
13619
|
"class": bem$t("body")
|
|
13491
|
-
}, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value ===
|
|
13620
|
+
}, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value === "common" ? renderList() : renderCatalog()]), vue.createVNode("div", {
|
|
13492
13621
|
"class": bem$t("footer")
|
|
13493
13622
|
}, [renderSelectPanel(), vue.createVNode(BottomActionBar, {
|
|
13494
13623
|
"fixed": false,
|
|
@@ -15544,19 +15673,39 @@ var stdin_default$n = vue.defineComponent({
|
|
|
15544
15673
|
const QuantityInput = withInstall(stdin_default$n);
|
|
15545
15674
|
const BatchMultiSelect = QuantityInput;
|
|
15546
15675
|
const [name$h, bem$h] = createNamespace("radio-panel");
|
|
15676
|
+
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
15547
15677
|
const radioPanelProps = {
|
|
15548
15678
|
show: Boolean,
|
|
15549
15679
|
title: String,
|
|
15550
15680
|
options: makeArrayProp(),
|
|
15551
|
-
modelValue: String
|
|
15681
|
+
modelValue: String,
|
|
15682
|
+
searchable: Boolean,
|
|
15683
|
+
searchPlaceholder: String,
|
|
15684
|
+
filterable: Boolean,
|
|
15685
|
+
filterActive: Boolean,
|
|
15686
|
+
loading: Boolean,
|
|
15687
|
+
finished: Boolean,
|
|
15688
|
+
error: Boolean,
|
|
15689
|
+
lazy: Boolean,
|
|
15690
|
+
loadingText: String,
|
|
15691
|
+
finishedText: String,
|
|
15692
|
+
errorText: String
|
|
15552
15693
|
};
|
|
15553
15694
|
var stdin_default$m = vue.defineComponent({
|
|
15554
15695
|
name: name$h,
|
|
15555
15696
|
props: radioPanelProps,
|
|
15556
|
-
emits: ["update:show", "update:modelValue", "select"],
|
|
15697
|
+
emits: ["update:show", "update:modelValue", "update:loading", "update:error", "select", "search", "filter", "load"],
|
|
15557
15698
|
setup(props2, {
|
|
15558
|
-
emit
|
|
15699
|
+
emit,
|
|
15700
|
+
slots
|
|
15559
15701
|
}) {
|
|
15702
|
+
const keyword = vue.ref("");
|
|
15703
|
+
const filteredOptions = vue.computed(() => {
|
|
15704
|
+
const query = keyword.value.trim().toLocaleLowerCase();
|
|
15705
|
+
if (!query)
|
|
15706
|
+
return props2.options;
|
|
15707
|
+
return props2.options.filter((option) => option.label.toLocaleLowerCase().includes(query));
|
|
15708
|
+
});
|
|
15560
15709
|
const close = () => emit("update:show", false);
|
|
15561
15710
|
const select = (option) => {
|
|
15562
15711
|
if (option.disabled)
|
|
@@ -15565,6 +15714,48 @@ var stdin_default$m = vue.defineComponent({
|
|
|
15565
15714
|
emit("select", option.value);
|
|
15566
15715
|
close();
|
|
15567
15716
|
};
|
|
15717
|
+
const renderOptionLabel = (label) => {
|
|
15718
|
+
const query = keyword.value.trim();
|
|
15719
|
+
if (!query)
|
|
15720
|
+
return label;
|
|
15721
|
+
const normalizedQuery = query.toLocaleLowerCase();
|
|
15722
|
+
return label.split(new RegExp(`(${escapeRegExp(query)})`, "ig")).map((part) => part.toLocaleLowerCase() === normalizedQuery ? vue.createVNode("span", {
|
|
15723
|
+
"class": bem$h("match")
|
|
15724
|
+
}, [part]) : part);
|
|
15725
|
+
};
|
|
15726
|
+
const renderOptions = () => {
|
|
15727
|
+
if (!filteredOptions.value.length) {
|
|
15728
|
+
return vue.createVNode(Empty, {
|
|
15729
|
+
"imageSize": 60,
|
|
15730
|
+
"description": "暂无匹配选项"
|
|
15731
|
+
}, null);
|
|
15732
|
+
}
|
|
15733
|
+
return vue.createVNode(RadioGroup, {
|
|
15734
|
+
"modelValue": props2.modelValue,
|
|
15735
|
+
"onUpdate:modelValue": (value) => {
|
|
15736
|
+
const option = props2.options.find((item) => item.value === value);
|
|
15737
|
+
if (option)
|
|
15738
|
+
select(option);
|
|
15739
|
+
}
|
|
15740
|
+
}, {
|
|
15741
|
+
default: () => [filteredOptions.value.map((option) => vue.createVNode(Cell, {
|
|
15742
|
+
"key": option.value,
|
|
15743
|
+
"clickable": !option.disabled,
|
|
15744
|
+
"title": option.label,
|
|
15745
|
+
"titleStyle": {
|
|
15746
|
+
color: props2.modelValue === option.value ? "var(--van-primary-color)" : void 0
|
|
15747
|
+
},
|
|
15748
|
+
"onClick": () => select(option)
|
|
15749
|
+
}, {
|
|
15750
|
+
title: () => renderOptionLabel(option.label),
|
|
15751
|
+
"right-icon": () => vue.createVNode(Radio, {
|
|
15752
|
+
"name": option.value,
|
|
15753
|
+
"disabled": option.disabled,
|
|
15754
|
+
"onClick": (event) => event.stopPropagation()
|
|
15755
|
+
}, null)
|
|
15756
|
+
}))]
|
|
15757
|
+
});
|
|
15758
|
+
};
|
|
15568
15759
|
return () => vue.createVNode(ActionSheet, {
|
|
15569
15760
|
"show": props2.show,
|
|
15570
15761
|
"class": bem$h(),
|
|
@@ -15583,35 +15774,55 @@ var stdin_default$m = vue.defineComponent({
|
|
|
15583
15774
|
"name": "cross",
|
|
15584
15775
|
"size": "22",
|
|
15585
15776
|
"onClick": close
|
|
15586
|
-
}, null)
|
|
15587
|
-
|
|
15777
|
+
}, null),
|
|
15778
|
+
right: () => {
|
|
15779
|
+
if (slots.filter)
|
|
15780
|
+
return slots.filter();
|
|
15781
|
+
if (!props2.filterable)
|
|
15782
|
+
return;
|
|
15783
|
+
return vue.createVNode("button", {
|
|
15784
|
+
"type": "button",
|
|
15785
|
+
"class": bem$h("filter"),
|
|
15786
|
+
"aria-label": "筛选",
|
|
15787
|
+
"onClick": () => emit("filter")
|
|
15788
|
+
}, [vue.createVNode(Badge, {
|
|
15789
|
+
"dot": props2.filterActive
|
|
15790
|
+
}, {
|
|
15791
|
+
default: () => [vue.createVNode(Icon, {
|
|
15792
|
+
"name": "filter-o",
|
|
15793
|
+
"size": "22"
|
|
15794
|
+
}, null)]
|
|
15795
|
+
})]);
|
|
15796
|
+
}
|
|
15797
|
+
})]), props2.searchable && vue.createVNode(Search, {
|
|
15798
|
+
"modelValue": keyword.value,
|
|
15799
|
+
"class": bem$h("search"),
|
|
15800
|
+
"shape": "round",
|
|
15801
|
+
"inputAlign": "left",
|
|
15802
|
+
"placeholder": props2.searchPlaceholder || "请输入搜索关键词",
|
|
15803
|
+
"maxlength": 200,
|
|
15804
|
+
"onUpdate:modelValue": (value) => {
|
|
15805
|
+
keyword.value = value;
|
|
15806
|
+
emit("search", value);
|
|
15807
|
+
},
|
|
15808
|
+
"onSearch": (value) => emit("search", value)
|
|
15809
|
+
}, null), vue.createVNode("div", {
|
|
15588
15810
|
"class": bem$h("body")
|
|
15589
15811
|
}, [vue.createVNode("div", {
|
|
15590
15812
|
"class": bem$h("card")
|
|
15591
|
-
}, [vue.createVNode(
|
|
15592
|
-
"
|
|
15593
|
-
"
|
|
15594
|
-
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15813
|
+
}, [props2.lazy ? vue.createVNode(List, {
|
|
15814
|
+
"loading": props2.loading,
|
|
15815
|
+
"finished": props2.finished,
|
|
15816
|
+
"error": props2.error,
|
|
15817
|
+
"loadingText": props2.loadingText,
|
|
15818
|
+
"finishedText": props2.finishedText,
|
|
15819
|
+
"errorText": props2.errorText,
|
|
15820
|
+
"onUpdate:loading": (value) => emit("update:loading", value),
|
|
15821
|
+
"onUpdate:error": (value) => emit("update:error", value),
|
|
15822
|
+
"onLoad": () => emit("load")
|
|
15598
15823
|
}, {
|
|
15599
|
-
default: () => [
|
|
15600
|
-
|
|
15601
|
-
"clickable": !option.disabled,
|
|
15602
|
-
"title": option.label,
|
|
15603
|
-
"titleStyle": {
|
|
15604
|
-
color: props2.modelValue === option.value ? "var(--van-primary-color)" : void 0
|
|
15605
|
-
},
|
|
15606
|
-
"onClick": () => select(option)
|
|
15607
|
-
}, {
|
|
15608
|
-
"right-icon": () => vue.createVNode(Radio, {
|
|
15609
|
-
"name": option.value,
|
|
15610
|
-
"disabled": option.disabled,
|
|
15611
|
-
"onClick": (event) => event.stopPropagation()
|
|
15612
|
-
}, null)
|
|
15613
|
-
}))]
|
|
15614
|
-
})])])])]
|
|
15824
|
+
default: () => [renderOptions()]
|
|
15825
|
+
}) : renderOptions()])])])]
|
|
15615
15826
|
});
|
|
15616
15827
|
}
|
|
15617
15828
|
});
|
|
@@ -15885,7 +16096,7 @@ Rate.install = (app) => {
|
|
|
15885
16096
|
installRate(app);
|
|
15886
16097
|
app.use(RateCell);
|
|
15887
16098
|
};
|
|
15888
|
-
const Row = withInstall(stdin_default$
|
|
16099
|
+
const Row = withInstall(stdin_default$19);
|
|
15889
16100
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
15890
16101
|
const iconMap = {
|
|
15891
16102
|
qq: "qq",
|
|
@@ -19461,7 +19672,7 @@ const Lazyload = {
|
|
|
19461
19672
|
});
|
|
19462
19673
|
}
|
|
19463
19674
|
};
|
|
19464
|
-
const version = "0.0.
|
|
19675
|
+
const version = "0.0.28";
|
|
19465
19676
|
function install(app) {
|
|
19466
19677
|
const components = [
|
|
19467
19678
|
ActionBar,
|
|
@@ -19515,6 +19726,7 @@ function install(app) {
|
|
|
19515
19726
|
ImagePreview,
|
|
19516
19727
|
IndexAnchor,
|
|
19517
19728
|
IndexBar,
|
|
19729
|
+
Label,
|
|
19518
19730
|
List,
|
|
19519
19731
|
Loading,
|
|
19520
19732
|
Locale,
|
|
@@ -19635,6 +19847,7 @@ exports.Image = Image$1;
|
|
|
19635
19847
|
exports.ImagePreview = ImagePreview;
|
|
19636
19848
|
exports.IndexAnchor = IndexAnchor;
|
|
19637
19849
|
exports.IndexBar = IndexBar;
|
|
19850
|
+
exports.Label = Label;
|
|
19638
19851
|
exports.Lazyload = Lazyload;
|
|
19639
19852
|
exports.List = List;
|
|
19640
19853
|
exports.Loading = Loading;
|