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.es.js
CHANGED
|
@@ -235,7 +235,7 @@ function deepAssign(to, from) {
|
|
|
235
235
|
});
|
|
236
236
|
return to;
|
|
237
237
|
}
|
|
238
|
-
var stdin_default$
|
|
238
|
+
var stdin_default$21 = {
|
|
239
239
|
name: "姓名",
|
|
240
240
|
tel: "电话",
|
|
241
241
|
save: "保存",
|
|
@@ -300,7 +300,7 @@ var stdin_default$20 = {
|
|
|
300
300
|
};
|
|
301
301
|
const lang = ref("zh-CN");
|
|
302
302
|
const messages = reactive({
|
|
303
|
-
"zh-CN": stdin_default$
|
|
303
|
+
"zh-CN": stdin_default$21
|
|
304
304
|
});
|
|
305
305
|
const Locale = {
|
|
306
306
|
messages() {
|
|
@@ -314,11 +314,11 @@ const Locale = {
|
|
|
314
314
|
deepAssign(messages, newMessages);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
|
-
var stdin_default$
|
|
317
|
+
var stdin_default$20 = Locale;
|
|
318
318
|
function createTranslate(name2) {
|
|
319
319
|
const prefix = camelize(name2) + ".";
|
|
320
320
|
return (path, ...args) => {
|
|
321
|
-
const messages2 = stdin_default$
|
|
321
|
+
const messages2 = stdin_default$20.messages();
|
|
322
322
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
323
323
|
return isFunction(message) ? message(...args) : message;
|
|
324
324
|
};
|
|
@@ -438,20 +438,20 @@ function usePlaceholder(contentRef, bem2) {
|
|
|
438
438
|
}
|
|
439
439
|
}, [renderContent()]);
|
|
440
440
|
}
|
|
441
|
-
const [name$
|
|
442
|
-
const ACTION_BAR_KEY = Symbol(name$
|
|
441
|
+
const [name$1S, bem$1O] = createNamespace("action-bar");
|
|
442
|
+
const ACTION_BAR_KEY = Symbol(name$1S);
|
|
443
443
|
const actionBarProps = {
|
|
444
444
|
placeholder: Boolean,
|
|
445
445
|
safeAreaInsetBottom: truthProp
|
|
446
446
|
};
|
|
447
|
-
var stdin_default$
|
|
448
|
-
name: name$
|
|
447
|
+
var stdin_default$1$ = defineComponent({
|
|
448
|
+
name: name$1S,
|
|
449
449
|
props: actionBarProps,
|
|
450
450
|
setup(props2, {
|
|
451
451
|
slots
|
|
452
452
|
}) {
|
|
453
453
|
const root = ref();
|
|
454
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
|
454
|
+
const renderPlaceholder = usePlaceholder(root, bem$1O);
|
|
455
455
|
const {
|
|
456
456
|
linkChildren
|
|
457
457
|
} = useChildren(ACTION_BAR_KEY);
|
|
@@ -460,7 +460,7 @@ var stdin_default$1_ = defineComponent({
|
|
|
460
460
|
var _a;
|
|
461
461
|
return createVNode("div", {
|
|
462
462
|
"ref": root,
|
|
463
|
-
"class": [bem$
|
|
463
|
+
"class": [bem$1O(), {
|
|
464
464
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
465
465
|
}]
|
|
466
466
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
@@ -473,7 +473,7 @@ var stdin_default$1_ = defineComponent({
|
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
475
|
});
|
|
476
|
-
const ActionBar = withInstall(stdin_default$
|
|
476
|
+
const ActionBar = withInstall(stdin_default$1$);
|
|
477
477
|
function useExpose(apis) {
|
|
478
478
|
const instance2 = getCurrentInstance();
|
|
479
479
|
if (instance2) {
|
|
@@ -501,7 +501,7 @@ function useRoute() {
|
|
|
501
501
|
const vm = getCurrentInstance().proxy;
|
|
502
502
|
return () => route(vm);
|
|
503
503
|
}
|
|
504
|
-
const [name$
|
|
504
|
+
const [name$1R, bem$1N] = createNamespace("badge");
|
|
505
505
|
const badgeProps = {
|
|
506
506
|
dot: Boolean,
|
|
507
507
|
max: numericProp,
|
|
@@ -512,8 +512,8 @@ const badgeProps = {
|
|
|
512
512
|
showZero: truthProp,
|
|
513
513
|
position: makeStringProp("top-right")
|
|
514
514
|
};
|
|
515
|
-
var stdin_default$
|
|
516
|
-
name: name$
|
|
515
|
+
var stdin_default$1_ = defineComponent({
|
|
516
|
+
name: name$1R,
|
|
517
517
|
props: badgeProps,
|
|
518
518
|
setup(props2, {
|
|
519
519
|
slots
|
|
@@ -567,7 +567,7 @@ var stdin_default$1Z = defineComponent({
|
|
|
567
567
|
const renderBadge = () => {
|
|
568
568
|
if (hasContent() || props2.dot) {
|
|
569
569
|
return createVNode("div", {
|
|
570
|
-
"class": bem$
|
|
570
|
+
"class": bem$1N([props2.position, {
|
|
571
571
|
dot: props2.dot,
|
|
572
572
|
fixed: !!slots.default
|
|
573
573
|
}]),
|
|
@@ -581,7 +581,7 @@ var stdin_default$1Z = defineComponent({
|
|
|
581
581
|
tag
|
|
582
582
|
} = props2;
|
|
583
583
|
return createVNode(tag, {
|
|
584
|
-
"class": bem$
|
|
584
|
+
"class": bem$1N("wrapper")
|
|
585
585
|
}, {
|
|
586
586
|
default: () => [slots.default(), renderBadge()]
|
|
587
587
|
});
|
|
@@ -590,14 +590,14 @@ var stdin_default$1Z = defineComponent({
|
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
592
|
});
|
|
593
|
-
const Badge = withInstall(stdin_default$
|
|
593
|
+
const Badge = withInstall(stdin_default$1_);
|
|
594
594
|
let globalZIndex = 2e3;
|
|
595
595
|
const useGlobalZIndex = () => ++globalZIndex;
|
|
596
596
|
const setGlobalZIndex = (val) => {
|
|
597
597
|
globalZIndex = val;
|
|
598
598
|
};
|
|
599
|
-
const [name$
|
|
600
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
|
599
|
+
const [name$1Q, bem$1M] = createNamespace("config-provider");
|
|
600
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1Q);
|
|
601
601
|
const configProviderProps = {
|
|
602
602
|
tag: makeStringProp("div"),
|
|
603
603
|
zIndex: Number,
|
|
@@ -612,8 +612,8 @@ function mapThemeVarsToCSSVars(themeVars) {
|
|
|
612
612
|
});
|
|
613
613
|
return cssVars;
|
|
614
614
|
}
|
|
615
|
-
var stdin_default$
|
|
616
|
-
name: name$
|
|
615
|
+
var stdin_default$1Z = defineComponent({
|
|
616
|
+
name: name$1Q,
|
|
617
617
|
props: configProviderProps,
|
|
618
618
|
setup(props2, {
|
|
619
619
|
slots
|
|
@@ -630,7 +630,7 @@ var stdin_default$1Y = defineComponent({
|
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
632
|
return () => createVNode(props2.tag, {
|
|
633
|
-
"class": bem$
|
|
633
|
+
"class": bem$1M(),
|
|
634
634
|
"style": style.value
|
|
635
635
|
}, {
|
|
636
636
|
default: () => {
|
|
@@ -640,7 +640,7 @@ var stdin_default$1Y = defineComponent({
|
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
});
|
|
643
|
-
const [name$
|
|
643
|
+
const [name$1P, bem$1L] = createNamespace("icon");
|
|
644
644
|
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
|
645
645
|
const iconProps = {
|
|
646
646
|
dot: Boolean,
|
|
@@ -652,14 +652,14 @@ const iconProps = {
|
|
|
652
652
|
badgeProps: Object,
|
|
653
653
|
classPrefix: String
|
|
654
654
|
};
|
|
655
|
-
var stdin_default$
|
|
656
|
-
name: name$
|
|
655
|
+
var stdin_default$1Y = defineComponent({
|
|
656
|
+
name: name$1P,
|
|
657
657
|
props: iconProps,
|
|
658
658
|
setup(props2, {
|
|
659
659
|
slots
|
|
660
660
|
}) {
|
|
661
661
|
const config = inject(CONFIG_PROVIDER_KEY, null);
|
|
662
|
-
const classPrefix = computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
|
662
|
+
const classPrefix = computed(() => props2.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1L());
|
|
663
663
|
return () => {
|
|
664
664
|
const {
|
|
665
665
|
tag,
|
|
@@ -683,7 +683,7 @@ var stdin_default$1X = defineComponent({
|
|
|
683
683
|
default: () => {
|
|
684
684
|
var _a;
|
|
685
685
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && createVNode("img", {
|
|
686
|
-
"class": bem$
|
|
686
|
+
"class": bem$1L("image"),
|
|
687
687
|
"src": name2
|
|
688
688
|
}, null)];
|
|
689
689
|
}
|
|
@@ -691,14 +691,14 @@ var stdin_default$1X = defineComponent({
|
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
693
|
});
|
|
694
|
-
const Icon = withInstall(stdin_default$
|
|
695
|
-
var stdin_default$
|
|
696
|
-
const [name$
|
|
694
|
+
const Icon = withInstall(stdin_default$1Y);
|
|
695
|
+
var stdin_default$1X = Icon;
|
|
696
|
+
const [name$1O, bem$1K] = createNamespace("loading");
|
|
697
697
|
const SpinIcon = Array(12).fill(null).map((_, index) => createVNode("i", {
|
|
698
|
-
"class": bem$
|
|
698
|
+
"class": bem$1K("line", String(index + 1))
|
|
699
699
|
}, null));
|
|
700
700
|
const CircularIcon = createVNode("svg", {
|
|
701
|
-
"class": bem$
|
|
701
|
+
"class": bem$1K("circular"),
|
|
702
702
|
"viewBox": "25 25 50 50"
|
|
703
703
|
}, [createVNode("circle", {
|
|
704
704
|
"cx": "50",
|
|
@@ -714,8 +714,8 @@ const loadingProps = {
|
|
|
714
714
|
textSize: numericProp,
|
|
715
715
|
textColor: String
|
|
716
716
|
};
|
|
717
|
-
var stdin_default$
|
|
718
|
-
name: name$
|
|
717
|
+
var stdin_default$1W = defineComponent({
|
|
718
|
+
name: name$1O,
|
|
719
719
|
props: loadingProps,
|
|
720
720
|
setup(props2, {
|
|
721
721
|
slots
|
|
@@ -727,7 +727,7 @@ var stdin_default$1V = defineComponent({
|
|
|
727
727
|
var _a;
|
|
728
728
|
if (slots.default) {
|
|
729
729
|
return createVNode("span", {
|
|
730
|
-
"class": bem$
|
|
730
|
+
"class": bem$1K("text"),
|
|
731
731
|
"style": {
|
|
732
732
|
fontSize: addUnit(props2.textSize),
|
|
733
733
|
color: (_a = props2.textColor) != null ? _a : props2.color
|
|
@@ -741,20 +741,20 @@ var stdin_default$1V = defineComponent({
|
|
|
741
741
|
vertical
|
|
742
742
|
} = props2;
|
|
743
743
|
return createVNode("div", {
|
|
744
|
-
"class": bem$
|
|
744
|
+
"class": bem$1K([type, {
|
|
745
745
|
vertical
|
|
746
746
|
}]),
|
|
747
747
|
"aria-live": "polite",
|
|
748
748
|
"aria-busy": true
|
|
749
749
|
}, [createVNode("span", {
|
|
750
|
-
"class": bem$
|
|
750
|
+
"class": bem$1K("spinner", type),
|
|
751
751
|
"style": spinnerStyle.value
|
|
752
752
|
}, [type === "spinner" ? SpinIcon : CircularIcon]), renderText()]);
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
|
-
const Loading = withInstall(stdin_default$
|
|
757
|
-
const [name$
|
|
756
|
+
const Loading = withInstall(stdin_default$1W);
|
|
757
|
+
const [name$1N, bem$1J] = createNamespace("button");
|
|
758
758
|
const buttonIconSizes = {
|
|
759
759
|
large: "var(--van-font-size-xl)",
|
|
760
760
|
normal: "var(--van-font-size-lg)",
|
|
@@ -783,8 +783,8 @@ const buttonProps = extend({}, routeProps, {
|
|
|
783
783
|
loadingType: String,
|
|
784
784
|
iconPosition: makeStringProp("left")
|
|
785
785
|
});
|
|
786
|
-
var stdin_default$
|
|
787
|
-
name: name$
|
|
786
|
+
var stdin_default$1V = defineComponent({
|
|
787
|
+
name: name$1N,
|
|
788
788
|
props: buttonProps,
|
|
789
789
|
emits: ["click"],
|
|
790
790
|
setup(props2, {
|
|
@@ -799,7 +799,7 @@ var stdin_default$1U = defineComponent({
|
|
|
799
799
|
return createVNode(Loading, {
|
|
800
800
|
"size": props2.loadingSize,
|
|
801
801
|
"type": props2.loadingType,
|
|
802
|
-
"class": bem$
|
|
802
|
+
"class": bem$1J("loading")
|
|
803
803
|
}, null);
|
|
804
804
|
};
|
|
805
805
|
const renderIcon = () => {
|
|
@@ -809,14 +809,14 @@ var stdin_default$1U = defineComponent({
|
|
|
809
809
|
}
|
|
810
810
|
if (slots.icon) {
|
|
811
811
|
return createVNode("div", {
|
|
812
|
-
"class": bem$
|
|
812
|
+
"class": bem$1J("icon")
|
|
813
813
|
}, [slots.icon()]);
|
|
814
814
|
}
|
|
815
815
|
if (props2.icon) {
|
|
816
816
|
return createVNode(Icon, {
|
|
817
817
|
"size": (_a = props2.iconSize) != null ? _a : buttonIconSizes[props2.size],
|
|
818
818
|
"name": props2.icon,
|
|
819
|
-
"class": bem$
|
|
819
|
+
"class": bem$1J("icon"),
|
|
820
820
|
"classPrefix": props2.iconPrefix
|
|
821
821
|
}, null);
|
|
822
822
|
}
|
|
@@ -830,7 +830,7 @@ var stdin_default$1U = defineComponent({
|
|
|
830
830
|
}
|
|
831
831
|
if (text) {
|
|
832
832
|
return createVNode("span", {
|
|
833
|
-
"class": bem$
|
|
833
|
+
"class": bem$1J("text")
|
|
834
834
|
}, [text]);
|
|
835
835
|
}
|
|
836
836
|
};
|
|
@@ -877,7 +877,7 @@ var stdin_default$1U = defineComponent({
|
|
|
877
877
|
nativeType,
|
|
878
878
|
iconPosition
|
|
879
879
|
} = props2;
|
|
880
|
-
const classes = [bem$
|
|
880
|
+
const classes = [bem$1J([type, size, {
|
|
881
881
|
plain,
|
|
882
882
|
block,
|
|
883
883
|
round,
|
|
@@ -896,14 +896,14 @@ var stdin_default$1U = defineComponent({
|
|
|
896
896
|
"onClick": onClick
|
|
897
897
|
}, {
|
|
898
898
|
default: () => [createVNode("div", {
|
|
899
|
-
"class": bem$
|
|
899
|
+
"class": bem$1J("content")
|
|
900
900
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
|
901
901
|
});
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
});
|
|
905
|
-
const Button = withInstall(stdin_default$
|
|
906
|
-
const [name$
|
|
905
|
+
const Button = withInstall(stdin_default$1V);
|
|
906
|
+
const [name$1M, bem$1I] = createNamespace("action-bar-button");
|
|
907
907
|
const actionBarButtonProps = extend({}, routeProps, {
|
|
908
908
|
type: String,
|
|
909
909
|
text: String,
|
|
@@ -912,8 +912,8 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
|
912
912
|
loading: Boolean,
|
|
913
913
|
disabled: Boolean
|
|
914
914
|
});
|
|
915
|
-
var stdin_default$
|
|
916
|
-
name: name$
|
|
915
|
+
var stdin_default$1U = defineComponent({
|
|
916
|
+
name: name$1M,
|
|
917
917
|
props: actionBarButtonProps,
|
|
918
918
|
setup(props2, {
|
|
919
919
|
slots
|
|
@@ -948,7 +948,7 @@ var stdin_default$1T = defineComponent({
|
|
|
948
948
|
disabled
|
|
949
949
|
} = props2;
|
|
950
950
|
return createVNode(Button, {
|
|
951
|
-
"class": bem$
|
|
951
|
+
"class": bem$1I([type, {
|
|
952
952
|
last: isLast.value,
|
|
953
953
|
first: isFirst.value
|
|
954
954
|
}]),
|
|
@@ -965,8 +965,8 @@ var stdin_default$1T = defineComponent({
|
|
|
965
965
|
};
|
|
966
966
|
}
|
|
967
967
|
});
|
|
968
|
-
const ActionBarButton = withInstall(stdin_default$
|
|
969
|
-
const [name$
|
|
968
|
+
const ActionBarButton = withInstall(stdin_default$1U);
|
|
969
|
+
const [name$1L, bem$1H] = createNamespace("action-bar-icon");
|
|
970
970
|
const actionBarIconProps = extend({}, routeProps, {
|
|
971
971
|
dot: Boolean,
|
|
972
972
|
text: String,
|
|
@@ -977,8 +977,8 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
|
977
977
|
badgeProps: Object,
|
|
978
978
|
iconPrefix: String
|
|
979
979
|
});
|
|
980
|
-
var stdin_default$
|
|
981
|
-
name: name$
|
|
980
|
+
var stdin_default$1T = defineComponent({
|
|
981
|
+
name: name$1L,
|
|
982
982
|
props: actionBarIconProps,
|
|
983
983
|
setup(props2, {
|
|
984
984
|
slots
|
|
@@ -998,7 +998,7 @@ var stdin_default$1S = defineComponent({
|
|
|
998
998
|
if (slots.icon) {
|
|
999
999
|
return createVNode(Badge, mergeProps({
|
|
1000
1000
|
"dot": dot,
|
|
1001
|
-
"class": bem$
|
|
1001
|
+
"class": bem$1H("icon"),
|
|
1002
1002
|
"content": badge
|
|
1003
1003
|
}, badgeProps2), {
|
|
1004
1004
|
default: slots.icon
|
|
@@ -1010,20 +1010,20 @@ var stdin_default$1S = defineComponent({
|
|
|
1010
1010
|
"name": icon,
|
|
1011
1011
|
"badge": badge,
|
|
1012
1012
|
"color": color,
|
|
1013
|
-
"class": [bem$
|
|
1013
|
+
"class": [bem$1H("icon"), iconClass],
|
|
1014
1014
|
"badgeProps": badgeProps2,
|
|
1015
1015
|
"classPrefix": iconPrefix
|
|
1016
1016
|
}, null);
|
|
1017
1017
|
};
|
|
1018
1018
|
return () => createVNode("div", {
|
|
1019
1019
|
"role": "button",
|
|
1020
|
-
"class": bem$
|
|
1020
|
+
"class": bem$1H(),
|
|
1021
1021
|
"tabindex": 0,
|
|
1022
1022
|
"onClick": route2
|
|
1023
1023
|
}, [renderIcon(), slots.default ? slots.default() : props2.text]);
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
|
-
const ActionBarIcon = withInstall(stdin_default$
|
|
1026
|
+
const ActionBarIcon = withInstall(stdin_default$1T);
|
|
1027
1027
|
const popupSharedProps = {
|
|
1028
1028
|
// whether to show popup
|
|
1029
1029
|
show: Boolean,
|
|
@@ -1174,7 +1174,7 @@ function useLazyRender(show) {
|
|
|
1174
1174
|
);
|
|
1175
1175
|
return (render) => () => inited.value ? render() : null;
|
|
1176
1176
|
}
|
|
1177
|
-
const [name$
|
|
1177
|
+
const [name$1K, bem$1G] = createNamespace("overlay");
|
|
1178
1178
|
const overlayProps = {
|
|
1179
1179
|
show: Boolean,
|
|
1180
1180
|
zIndex: numericProp,
|
|
@@ -1184,8 +1184,8 @@ const overlayProps = {
|
|
|
1184
1184
|
lazyRender: truthProp,
|
|
1185
1185
|
customStyle: Object
|
|
1186
1186
|
};
|
|
1187
|
-
var stdin_default$
|
|
1188
|
-
name: name$
|
|
1187
|
+
var stdin_default$1S = defineComponent({
|
|
1188
|
+
name: name$1K,
|
|
1189
1189
|
props: overlayProps,
|
|
1190
1190
|
setup(props2, {
|
|
1191
1191
|
slots
|
|
@@ -1206,7 +1206,7 @@ var stdin_default$1R = defineComponent({
|
|
|
1206
1206
|
return withDirectives(createVNode("div", {
|
|
1207
1207
|
"ref": root,
|
|
1208
1208
|
"style": style,
|
|
1209
|
-
"class": [bem$
|
|
1209
|
+
"class": [bem$1G(), props2.className]
|
|
1210
1210
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vShow, props2.show]]);
|
|
1211
1211
|
});
|
|
1212
1212
|
useEventListener("touchmove", onTouchMove, {
|
|
@@ -1220,7 +1220,7 @@ var stdin_default$1R = defineComponent({
|
|
|
1220
1220
|
});
|
|
1221
1221
|
}
|
|
1222
1222
|
});
|
|
1223
|
-
const Overlay = withInstall(stdin_default$
|
|
1223
|
+
const Overlay = withInstall(stdin_default$1S);
|
|
1224
1224
|
const popupProps$3 = extend({}, popupSharedProps, {
|
|
1225
1225
|
round: Boolean,
|
|
1226
1226
|
position: makeStringProp("center"),
|
|
@@ -1233,9 +1233,9 @@ const popupProps$3 = extend({}, popupSharedProps, {
|
|
|
1233
1233
|
safeAreaInsetTop: Boolean,
|
|
1234
1234
|
safeAreaInsetBottom: Boolean
|
|
1235
1235
|
});
|
|
1236
|
-
const [name$
|
|
1237
|
-
var stdin_default$
|
|
1238
|
-
name: name$
|
|
1236
|
+
const [name$1J, bem$1F] = createNamespace("popup");
|
|
1237
|
+
var stdin_default$1R = defineComponent({
|
|
1238
|
+
name: name$1J,
|
|
1239
1239
|
inheritAttrs: false,
|
|
1240
1240
|
props: popupProps$3,
|
|
1241
1241
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "click-overlay", "click-close-icon"],
|
|
@@ -1309,7 +1309,7 @@ var stdin_default$1Q = defineComponent({
|
|
|
1309
1309
|
"role": "button",
|
|
1310
1310
|
"tabindex": 0,
|
|
1311
1311
|
"name": props2.closeIcon,
|
|
1312
|
-
"class": [bem$
|
|
1312
|
+
"class": [bem$1F("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
|
|
1313
1313
|
"classPrefix": props2.iconPrefix,
|
|
1314
1314
|
"onClick": onClickCloseIcon
|
|
1315
1315
|
}, null);
|
|
@@ -1331,7 +1331,7 @@ var stdin_default$1Q = defineComponent({
|
|
|
1331
1331
|
"style": style.value,
|
|
1332
1332
|
"role": "dialog",
|
|
1333
1333
|
"tabindex": 0,
|
|
1334
|
-
"class": [bem$
|
|
1334
|
+
"class": [bem$1F({
|
|
1335
1335
|
round,
|
|
1336
1336
|
[position]: position
|
|
1337
1337
|
}), {
|
|
@@ -1412,8 +1412,8 @@ var stdin_default$1Q = defineComponent({
|
|
|
1412
1412
|
};
|
|
1413
1413
|
}
|
|
1414
1414
|
});
|
|
1415
|
-
const Popup = withInstall(stdin_default$
|
|
1416
|
-
const [name$
|
|
1415
|
+
const Popup = withInstall(stdin_default$1R);
|
|
1416
|
+
const [name$1I, bem$1E] = createNamespace("action-sheet");
|
|
1417
1417
|
const actionSheetProps = extend({}, popupSharedProps, {
|
|
1418
1418
|
title: String,
|
|
1419
1419
|
round: truthProp,
|
|
@@ -1427,8 +1427,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
|
1427
1427
|
safeAreaInsetBottom: truthProp
|
|
1428
1428
|
});
|
|
1429
1429
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
1430
|
-
var stdin_default$
|
|
1431
|
-
name: name$
|
|
1430
|
+
var stdin_default$1Q = defineComponent({
|
|
1431
|
+
name: name$1I,
|
|
1432
1432
|
props: actionSheetProps,
|
|
1433
1433
|
emits: ["select", "cancel", "update:show"],
|
|
1434
1434
|
setup(props2, {
|
|
@@ -1443,10 +1443,10 @@ var stdin_default$1P = defineComponent({
|
|
|
1443
1443
|
const renderHeader = () => {
|
|
1444
1444
|
if (props2.title) {
|
|
1445
1445
|
return createVNode("div", {
|
|
1446
|
-
"class": bem$
|
|
1446
|
+
"class": bem$1E("header")
|
|
1447
1447
|
}, [props2.title, props2.closeable && createVNode(Icon, {
|
|
1448
1448
|
"name": props2.closeIcon,
|
|
1449
|
-
"class": [bem$
|
|
1449
|
+
"class": [bem$1E("close"), HAPTICS_FEEDBACK],
|
|
1450
1450
|
"onClick": onCancel
|
|
1451
1451
|
}, null)]);
|
|
1452
1452
|
}
|
|
@@ -1454,10 +1454,10 @@ var stdin_default$1P = defineComponent({
|
|
|
1454
1454
|
const renderCancel = () => {
|
|
1455
1455
|
if (slots.cancel || props2.cancelText) {
|
|
1456
1456
|
return [createVNode("div", {
|
|
1457
|
-
"class": bem$
|
|
1457
|
+
"class": bem$1E("gap")
|
|
1458
1458
|
}, null), createVNode("button", {
|
|
1459
1459
|
"type": "button",
|
|
1460
|
-
"class": bem$
|
|
1460
|
+
"class": bem$1E("cancel"),
|
|
1461
1461
|
"onClick": onCancel
|
|
1462
1462
|
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
|
1463
1463
|
}
|
|
@@ -1465,7 +1465,7 @@ var stdin_default$1P = defineComponent({
|
|
|
1465
1465
|
const renderActionContent = (action, index) => {
|
|
1466
1466
|
if (action.loading) {
|
|
1467
1467
|
return createVNode(Loading, {
|
|
1468
|
-
"class": bem$
|
|
1468
|
+
"class": bem$1E("loading-icon")
|
|
1469
1469
|
}, null);
|
|
1470
1470
|
}
|
|
1471
1471
|
if (slots.action) {
|
|
@@ -1475,9 +1475,9 @@ var stdin_default$1P = defineComponent({
|
|
|
1475
1475
|
});
|
|
1476
1476
|
}
|
|
1477
1477
|
return [createVNode("span", {
|
|
1478
|
-
"class": bem$
|
|
1478
|
+
"class": bem$1E("name")
|
|
1479
1479
|
}, [action.name]), action.subname && createVNode("div", {
|
|
1480
|
-
"class": bem$
|
|
1480
|
+
"class": bem$1E("subname")
|
|
1481
1481
|
}, [action.subname])];
|
|
1482
1482
|
};
|
|
1483
1483
|
const renderAction = (action, index) => {
|
|
@@ -1505,7 +1505,7 @@ var stdin_default$1P = defineComponent({
|
|
|
1505
1505
|
"style": {
|
|
1506
1506
|
color
|
|
1507
1507
|
},
|
|
1508
|
-
"class": [bem$
|
|
1508
|
+
"class": [bem$1E("item", {
|
|
1509
1509
|
loading,
|
|
1510
1510
|
disabled
|
|
1511
1511
|
}), className],
|
|
@@ -1516,25 +1516,25 @@ var stdin_default$1P = defineComponent({
|
|
|
1516
1516
|
if (props2.description || slots.description) {
|
|
1517
1517
|
const content = slots.description ? slots.description() : props2.description;
|
|
1518
1518
|
return createVNode("div", {
|
|
1519
|
-
"class": bem$
|
|
1519
|
+
"class": bem$1E("description")
|
|
1520
1520
|
}, [content]);
|
|
1521
1521
|
}
|
|
1522
1522
|
};
|
|
1523
1523
|
return () => createVNode(Popup, mergeProps({
|
|
1524
|
-
"class": bem$
|
|
1524
|
+
"class": bem$1E(),
|
|
1525
1525
|
"position": "bottom",
|
|
1526
1526
|
"onUpdate:show": updateShow
|
|
1527
1527
|
}, pick(props2, popupInheritKeys$2)), {
|
|
1528
1528
|
default: () => {
|
|
1529
1529
|
var _a;
|
|
1530
1530
|
return [renderHeader(), renderDescription(), createVNode("div", {
|
|
1531
|
-
"class": bem$
|
|
1531
|
+
"class": bem$1E("content")
|
|
1532
1532
|
}, [props2.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
|
1533
1533
|
}
|
|
1534
1534
|
});
|
|
1535
1535
|
}
|
|
1536
1536
|
});
|
|
1537
|
-
const ActionSheet = withInstall(stdin_default$
|
|
1537
|
+
const ActionSheet = withInstall(stdin_default$1Q);
|
|
1538
1538
|
function deepClone(obj) {
|
|
1539
1539
|
if (!isDef(obj)) {
|
|
1540
1540
|
return obj;
|
|
@@ -1554,7 +1554,7 @@ function deepClone(obj) {
|
|
|
1554
1554
|
const DEFAULT_DURATION = 200;
|
|
1555
1555
|
const MOMENTUM_LIMIT_TIME = 300;
|
|
1556
1556
|
const MOMENTUM_LIMIT_DISTANCE = 15;
|
|
1557
|
-
const [name$
|
|
1557
|
+
const [name$1H, bem$1D] = createNamespace("picker-column");
|
|
1558
1558
|
function getElementTranslateY(element) {
|
|
1559
1559
|
const {
|
|
1560
1560
|
transform
|
|
@@ -1562,10 +1562,10 @@ function getElementTranslateY(element) {
|
|
|
1562
1562
|
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
|
1563
1563
|
return Number(translateY);
|
|
1564
1564
|
}
|
|
1565
|
-
const PICKER_KEY = Symbol(name$
|
|
1565
|
+
const PICKER_KEY = Symbol(name$1H);
|
|
1566
1566
|
const isOptionDisabled = (option) => isObject(option) && option.disabled;
|
|
1567
|
-
var stdin_default$
|
|
1568
|
-
name: name$
|
|
1567
|
+
var stdin_default$1P = defineComponent({
|
|
1568
|
+
name: name$1H,
|
|
1569
1569
|
props: {
|
|
1570
1570
|
textKey: makeRequiredProp(String),
|
|
1571
1571
|
readonly: Boolean,
|
|
@@ -1740,7 +1740,7 @@ var stdin_default$1O = defineComponent({
|
|
|
1740
1740
|
role: "button",
|
|
1741
1741
|
style: optionStyle,
|
|
1742
1742
|
tabindex: disabled ? -1 : 0,
|
|
1743
|
-
class: bem$
|
|
1743
|
+
class: bem$1D("item", {
|
|
1744
1744
|
disabled,
|
|
1745
1745
|
selected: index === state.index
|
|
1746
1746
|
}),
|
|
@@ -1783,7 +1783,7 @@ var stdin_default$1O = defineComponent({
|
|
|
1783
1783
|
});
|
|
1784
1784
|
return () => createVNode("div", {
|
|
1785
1785
|
"ref": root,
|
|
1786
|
-
"class": [bem$
|
|
1786
|
+
"class": [bem$1D(), props2.className],
|
|
1787
1787
|
"onTouchstartPassive": onTouchStart,
|
|
1788
1788
|
"onTouchend": onTouchEnd,
|
|
1789
1789
|
"onTouchcancel": onTouchEnd
|
|
@@ -1794,12 +1794,12 @@ var stdin_default$1O = defineComponent({
|
|
|
1794
1794
|
transitionDuration: `${state.duration}ms`,
|
|
1795
1795
|
transitionProperty: state.duration ? "all" : "none"
|
|
1796
1796
|
},
|
|
1797
|
-
"class": bem$
|
|
1797
|
+
"class": bem$1D("wrapper"),
|
|
1798
1798
|
"onTransitionend": stopMomentum
|
|
1799
1799
|
}, [renderOptions()])]);
|
|
1800
1800
|
}
|
|
1801
1801
|
});
|
|
1802
|
-
const [name$
|
|
1802
|
+
const [name$1G, bem$1C, t$j] = createNamespace("picker");
|
|
1803
1803
|
const pickerSharedProps = {
|
|
1804
1804
|
title: String,
|
|
1805
1805
|
loading: Boolean,
|
|
@@ -1822,8 +1822,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
|
1822
1822
|
toolbarPosition: makeStringProp("top"),
|
|
1823
1823
|
columnsFieldNames: Object
|
|
1824
1824
|
});
|
|
1825
|
-
var stdin_default$
|
|
1826
|
-
name: name$
|
|
1825
|
+
var stdin_default$1O = defineComponent({
|
|
1826
|
+
name: name$1G,
|
|
1827
1827
|
props: pickerProps,
|
|
1828
1828
|
emits: ["confirm", "cancel", "change"],
|
|
1829
1829
|
setup(props2, {
|
|
@@ -2008,7 +2008,7 @@ var stdin_default$1N = defineComponent({
|
|
|
2008
2008
|
}
|
|
2009
2009
|
if (props2.title) {
|
|
2010
2010
|
return createVNode("div", {
|
|
2011
|
-
"class": [bem$
|
|
2011
|
+
"class": [bem$1C("title"), "van-ellipsis"]
|
|
2012
2012
|
}, [props2.title]);
|
|
2013
2013
|
}
|
|
2014
2014
|
};
|
|
@@ -2016,7 +2016,7 @@ var stdin_default$1N = defineComponent({
|
|
|
2016
2016
|
const text = props2.cancelButtonText || t$j("cancel");
|
|
2017
2017
|
return createVNode("button", {
|
|
2018
2018
|
"type": "button",
|
|
2019
|
-
"class": [bem$
|
|
2019
|
+
"class": [bem$1C("cancel"), HAPTICS_FEEDBACK],
|
|
2020
2020
|
"onClick": cancel
|
|
2021
2021
|
}, [slots.cancel ? slots.cancel() : text]);
|
|
2022
2022
|
};
|
|
@@ -2024,7 +2024,7 @@ var stdin_default$1N = defineComponent({
|
|
|
2024
2024
|
const text = props2.confirmButtonText || t$j("confirm");
|
|
2025
2025
|
return createVNode("button", {
|
|
2026
2026
|
"type": "button",
|
|
2027
|
-
"class": [bem$
|
|
2027
|
+
"class": [bem$1C("confirm"), HAPTICS_FEEDBACK],
|
|
2028
2028
|
"onClick": confirm
|
|
2029
2029
|
}, [slots.confirm ? slots.confirm() : text]);
|
|
2030
2030
|
};
|
|
@@ -2032,13 +2032,13 @@ var stdin_default$1N = defineComponent({
|
|
|
2032
2032
|
if (props2.showToolbar) {
|
|
2033
2033
|
const slot = slots.toolbar || slots.default;
|
|
2034
2034
|
return createVNode("div", {
|
|
2035
|
-
"class": bem$
|
|
2035
|
+
"class": bem$1C("toolbar")
|
|
2036
2036
|
}, [slot ? slot() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
|
2037
2037
|
}
|
|
2038
2038
|
};
|
|
2039
2039
|
const renderColumnItems = () => formattedColumns.value.map((item, columnIndex) => {
|
|
2040
2040
|
var _a;
|
|
2041
|
-
return createVNode(stdin_default$
|
|
2041
|
+
return createVNode(stdin_default$1P, {
|
|
2042
2042
|
"textKey": columnsFieldNames.value.text,
|
|
2043
2043
|
"readonly": props2.readonly,
|
|
2044
2044
|
"allowHtml": props2.allowHtml,
|
|
@@ -2063,10 +2063,10 @@ var stdin_default$1N = defineComponent({
|
|
|
2063
2063
|
backgroundSize: `100% ${(wrapHeight - itemHeight.value) / 2}px`
|
|
2064
2064
|
};
|
|
2065
2065
|
return [createVNode("div", {
|
|
2066
|
-
"class": bem$
|
|
2066
|
+
"class": bem$1C("mask"),
|
|
2067
2067
|
"style": maskStyle
|
|
2068
2068
|
}, null), createVNode("div", {
|
|
2069
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
|
2069
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1C("frame")],
|
|
2070
2070
|
"style": frameStyle
|
|
2071
2071
|
}, null)];
|
|
2072
2072
|
}
|
|
@@ -2078,7 +2078,7 @@ var stdin_default$1N = defineComponent({
|
|
|
2078
2078
|
};
|
|
2079
2079
|
return createVNode("div", {
|
|
2080
2080
|
"ref": columnsRef,
|
|
2081
|
-
"class": bem$
|
|
2081
|
+
"class": bem$1C("columns"),
|
|
2082
2082
|
"style": columnsStyle
|
|
2083
2083
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
|
2084
2084
|
};
|
|
@@ -2104,15 +2104,15 @@ var stdin_default$1N = defineComponent({
|
|
|
2104
2104
|
return () => {
|
|
2105
2105
|
var _a, _b;
|
|
2106
2106
|
return createVNode("div", {
|
|
2107
|
-
"class": bem$
|
|
2107
|
+
"class": bem$1C()
|
|
2108
2108
|
}, [props2.toolbarPosition === "top" ? renderToolbar() : null, props2.loading ? createVNode(Loading, {
|
|
2109
|
-
"class": bem$
|
|
2109
|
+
"class": bem$1C("loading")
|
|
2110
2110
|
}, 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]);
|
|
2111
2111
|
};
|
|
2112
2112
|
}
|
|
2113
2113
|
});
|
|
2114
|
-
const Picker = withInstall(stdin_default$
|
|
2115
|
-
const [name$
|
|
2114
|
+
const Picker = withInstall(stdin_default$1O);
|
|
2115
|
+
const [name$1F, bem$1B] = createNamespace("area");
|
|
2116
2116
|
const EMPTY_CODE = "000000";
|
|
2117
2117
|
const INHERIT_SLOTS = ["title", "cancel", "confirm", "toolbar", "columns-top", "columns-bottom"];
|
|
2118
2118
|
const INHERIT_PROPS = ["title", "loading", "readonly", "itemHeight", "swipeDuration", "visibleItemCount", "cancelButtonText", "confirmButtonText"];
|
|
@@ -2130,8 +2130,8 @@ const areaProps = extend({}, pickerSharedProps, {
|
|
|
2130
2130
|
default: isOverseaCode
|
|
2131
2131
|
}
|
|
2132
2132
|
});
|
|
2133
|
-
var stdin_default$
|
|
2134
|
-
name: name$
|
|
2133
|
+
var stdin_default$1N = defineComponent({
|
|
2134
|
+
name: name$1F,
|
|
2135
2135
|
props: areaProps,
|
|
2136
2136
|
emits: ["change", "confirm", "cancel"],
|
|
2137
2137
|
setup(props2, {
|
|
@@ -2331,7 +2331,7 @@ var stdin_default$1M = defineComponent({
|
|
|
2331
2331
|
const columns = state.columns.slice(0, +props2.columnsNum);
|
|
2332
2332
|
return createVNode(Picker, mergeProps({
|
|
2333
2333
|
"ref": pickerRef,
|
|
2334
|
-
"class": bem$
|
|
2334
|
+
"class": bem$1B(),
|
|
2335
2335
|
"columns": columns,
|
|
2336
2336
|
"columnsFieldNames": {
|
|
2337
2337
|
text: "name"
|
|
@@ -2343,8 +2343,8 @@ var stdin_default$1M = defineComponent({
|
|
|
2343
2343
|
};
|
|
2344
2344
|
}
|
|
2345
2345
|
});
|
|
2346
|
-
const Area = withInstall(stdin_default$
|
|
2347
|
-
const [name$
|
|
2346
|
+
const Area = withInstall(stdin_default$1N);
|
|
2347
|
+
const [name$1E, bem$1A] = createNamespace("checkbox-group");
|
|
2348
2348
|
const checkboxGroupProps = {
|
|
2349
2349
|
max: numericProp,
|
|
2350
2350
|
disabled: Boolean,
|
|
@@ -2355,9 +2355,9 @@ const checkboxGroupProps = {
|
|
|
2355
2355
|
modelValue: makeArrayProp(),
|
|
2356
2356
|
checkedColor: String
|
|
2357
2357
|
};
|
|
2358
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
|
2359
|
-
var stdin_default$
|
|
2360
|
-
name: name$
|
|
2358
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$1E);
|
|
2359
|
+
var stdin_default$1M = defineComponent({
|
|
2360
|
+
name: name$1E,
|
|
2361
2361
|
props: checkboxGroupProps,
|
|
2362
2362
|
emits: ["change", "update:modelValue"],
|
|
2363
2363
|
setup(props2, {
|
|
@@ -2403,7 +2403,7 @@ var stdin_default$1L = defineComponent({
|
|
|
2403
2403
|
return () => {
|
|
2404
2404
|
var _a;
|
|
2405
2405
|
return createVNode("div", {
|
|
2406
|
-
"class": bem$
|
|
2406
|
+
"class": bem$1A([props2.direction])
|
|
2407
2407
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
2408
2408
|
};
|
|
2409
2409
|
}
|
|
@@ -2421,7 +2421,7 @@ const checkerProps = {
|
|
|
2421
2421
|
labelDisabled: Boolean,
|
|
2422
2422
|
allowUncheck: Boolean
|
|
2423
2423
|
};
|
|
2424
|
-
var stdin_default$
|
|
2424
|
+
var stdin_default$1L = defineComponent({
|
|
2425
2425
|
props: extend({}, checkerProps, {
|
|
2426
2426
|
bem: makeRequiredProp(Function),
|
|
2427
2427
|
role: String,
|
|
@@ -2527,12 +2527,12 @@ var stdin_default$1K = defineComponent({
|
|
|
2527
2527
|
};
|
|
2528
2528
|
}
|
|
2529
2529
|
});
|
|
2530
|
-
const [name$
|
|
2530
|
+
const [name$1D, bem$1z] = createNamespace("checkbox");
|
|
2531
2531
|
const checkboxProps = extend({}, checkerProps, {
|
|
2532
2532
|
bindGroup: truthProp
|
|
2533
2533
|
});
|
|
2534
|
-
var stdin_default$
|
|
2535
|
-
name: name$
|
|
2534
|
+
var stdin_default$1K = defineComponent({
|
|
2535
|
+
name: name$1D,
|
|
2536
2536
|
props: checkboxProps,
|
|
2537
2537
|
emits: ["change", "update:modelValue"],
|
|
2538
2538
|
setup(props2, {
|
|
@@ -2589,8 +2589,8 @@ var stdin_default$1J = defineComponent({
|
|
|
2589
2589
|
checked
|
|
2590
2590
|
});
|
|
2591
2591
|
useCustomFieldValue(() => props2.modelValue);
|
|
2592
|
-
return () => createVNode(stdin_default$
|
|
2593
|
-
"bem": bem$
|
|
2592
|
+
return () => createVNode(stdin_default$1L, mergeProps({
|
|
2593
|
+
"bem": bem$1z,
|
|
2594
2594
|
"role": "checkbox",
|
|
2595
2595
|
"parent": parent,
|
|
2596
2596
|
"checked": checked.value,
|
|
@@ -2598,8 +2598,8 @@ var stdin_default$1J = defineComponent({
|
|
|
2598
2598
|
}, props2), pick(slots, ["default", "icon"]));
|
|
2599
2599
|
}
|
|
2600
2600
|
});
|
|
2601
|
-
const Checkbox = withInstall(stdin_default$
|
|
2602
|
-
const [name$
|
|
2601
|
+
const Checkbox = withInstall(stdin_default$1K);
|
|
2602
|
+
const [name$1C, bem$1y] = createNamespace("radio-group");
|
|
2603
2603
|
const radioGroupProps = {
|
|
2604
2604
|
disabled: Boolean,
|
|
2605
2605
|
iconSize: numericProp,
|
|
@@ -2610,9 +2610,9 @@ const radioGroupProps = {
|
|
|
2610
2610
|
checkedColor: String,
|
|
2611
2611
|
allowUncheck: Boolean
|
|
2612
2612
|
};
|
|
2613
|
-
const RADIO_KEY = Symbol(name$
|
|
2614
|
-
var stdin_default$
|
|
2615
|
-
name: name$
|
|
2613
|
+
const RADIO_KEY = Symbol(name$1C);
|
|
2614
|
+
var stdin_default$1J = defineComponent({
|
|
2615
|
+
name: name$1C,
|
|
2616
2616
|
props: radioGroupProps,
|
|
2617
2617
|
emits: ["change", "update:modelValue"],
|
|
2618
2618
|
setup(props2, {
|
|
@@ -2632,15 +2632,15 @@ var stdin_default$1I = defineComponent({
|
|
|
2632
2632
|
return () => {
|
|
2633
2633
|
var _a;
|
|
2634
2634
|
return createVNode("div", {
|
|
2635
|
-
"class": bem$
|
|
2635
|
+
"class": bem$1y([props2.direction]),
|
|
2636
2636
|
"role": "radiogroup"
|
|
2637
2637
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
2638
2638
|
};
|
|
2639
2639
|
}
|
|
2640
2640
|
});
|
|
2641
|
-
const [name$
|
|
2642
|
-
var stdin_default$
|
|
2643
|
-
name: name$
|
|
2641
|
+
const [name$1B, bem$1x] = createNamespace("radio");
|
|
2642
|
+
var stdin_default$1I = defineComponent({
|
|
2643
|
+
name: name$1B,
|
|
2644
2644
|
props: checkerProps,
|
|
2645
2645
|
emits: ["update:modelValue"],
|
|
2646
2646
|
setup(props2, {
|
|
@@ -2669,8 +2669,8 @@ var stdin_default$1H = defineComponent({
|
|
|
2669
2669
|
emit("update:modelValue", val);
|
|
2670
2670
|
}
|
|
2671
2671
|
};
|
|
2672
|
-
return () => createVNode(stdin_default$
|
|
2673
|
-
"bem": bem$
|
|
2672
|
+
return () => createVNode(stdin_default$1L, mergeProps({
|
|
2673
|
+
"bem": bem$1x,
|
|
2674
2674
|
"role": "radio",
|
|
2675
2675
|
"parent": parent,
|
|
2676
2676
|
"checked": checked(),
|
|
@@ -2680,8 +2680,8 @@ var stdin_default$1H = defineComponent({
|
|
|
2680
2680
|
}, props2), pick(slots, ["default", "icon"]));
|
|
2681
2681
|
}
|
|
2682
2682
|
});
|
|
2683
|
-
const Radio = withInstall(stdin_default$
|
|
2684
|
-
const [name$
|
|
2683
|
+
const Radio = withInstall(stdin_default$1I);
|
|
2684
|
+
const [name$1A, bem$1w] = createNamespace("cell");
|
|
2685
2685
|
const cellSharedProps = {
|
|
2686
2686
|
icon: String,
|
|
2687
2687
|
size: String,
|
|
@@ -2725,8 +2725,8 @@ const cellSharedProps = {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
};
|
|
2727
2727
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
|
2728
|
-
var stdin_default$
|
|
2729
|
-
name: name$
|
|
2728
|
+
var stdin_default$1H = defineComponent({
|
|
2729
|
+
name: name$1A,
|
|
2730
2730
|
props: cellProps,
|
|
2731
2731
|
emits: ["click", "update:leftSelect", "update:rightSelect"],
|
|
2732
2732
|
setup(props2, {
|
|
@@ -2772,17 +2772,17 @@ var stdin_default$1G = defineComponent({
|
|
|
2772
2772
|
const showLabel = slots.label || isDef(props2.label);
|
|
2773
2773
|
if (showLabel) {
|
|
2774
2774
|
return createVNode("div", {
|
|
2775
|
-
"class": [bem$
|
|
2775
|
+
"class": [bem$1w("label"), props2.labelClass]
|
|
2776
2776
|
}, [slots.label ? slots.label() : props2.label]);
|
|
2777
2777
|
}
|
|
2778
2778
|
};
|
|
2779
2779
|
const renderTitle = () => {
|
|
2780
2780
|
if (slots.title || isDef(props2.title)) {
|
|
2781
2781
|
return createVNode("div", {
|
|
2782
|
-
"class": [bem$
|
|
2782
|
+
"class": [bem$1w("title"), props2.titleClass],
|
|
2783
2783
|
"style": props2.titleStyle
|
|
2784
2784
|
}, [createVNode("div", {
|
|
2785
|
-
"class": bem$
|
|
2785
|
+
"class": bem$1w("title-row")
|
|
2786
2786
|
}, [slots.title ? slots.title() : createVNode("span", null, [props2.title]), renderTags(), renderTitleIcon()]), renderLabel()]);
|
|
2787
2787
|
}
|
|
2788
2788
|
};
|
|
@@ -2792,7 +2792,7 @@ var stdin_default$1G = defineComponent({
|
|
|
2792
2792
|
if (hasValue) {
|
|
2793
2793
|
const hasTitle = slots.title || isDef(props2.title);
|
|
2794
2794
|
return createVNode("div", {
|
|
2795
|
-
"class": [bem$
|
|
2795
|
+
"class": [bem$1w("value", {
|
|
2796
2796
|
alone: !hasTitle
|
|
2797
2797
|
}), props2.valueClass]
|
|
2798
2798
|
}, [slot ? slot() : createVNode("span", null, [props2.value])]);
|
|
@@ -2805,7 +2805,7 @@ var stdin_default$1G = defineComponent({
|
|
|
2805
2805
|
if (props2.icon) {
|
|
2806
2806
|
return createVNode(Icon, {
|
|
2807
2807
|
"name": props2.icon,
|
|
2808
|
-
"class": bem$
|
|
2808
|
+
"class": bem$1w("left-icon"),
|
|
2809
2809
|
"classPrefix": props2.iconPrefix
|
|
2810
2810
|
}, null);
|
|
2811
2811
|
}
|
|
@@ -2816,13 +2816,13 @@ var stdin_default$1G = defineComponent({
|
|
|
2816
2816
|
const selected = getSelectState(position);
|
|
2817
2817
|
if (slot) {
|
|
2818
2818
|
return createVNode("div", {
|
|
2819
|
-
"class": bem$
|
|
2819
|
+
"class": bem$1w(`${position}-select`)
|
|
2820
2820
|
}, [slot()]);
|
|
2821
2821
|
}
|
|
2822
2822
|
if (hasSelect(position)) {
|
|
2823
2823
|
const checkboxSize = (_b2 = (_a2 = props2.size) != null ? _a2 : config == null ? void 0 : config.cellSize) != null ? _b2 : "normal";
|
|
2824
2824
|
return createVNode("div", {
|
|
2825
|
-
"class": bem$
|
|
2825
|
+
"class": bem$1w(`${position}-select`),
|
|
2826
2826
|
"onClick": (event) => event.stopPropagation()
|
|
2827
2827
|
}, [props2.selectType === "radio" ? createVNode(Radio, {
|
|
2828
2828
|
"modelValue": selected ? "selected" : "",
|
|
@@ -2843,12 +2843,12 @@ var stdin_default$1G = defineComponent({
|
|
|
2843
2843
|
const avatar = position === "left" ? props2.avatar : props2.rightAvatar;
|
|
2844
2844
|
if (slot) {
|
|
2845
2845
|
return createVNode("div", {
|
|
2846
|
-
"class": bem$
|
|
2846
|
+
"class": bem$1w(`${position}-avatar`)
|
|
2847
2847
|
}, [slot()]);
|
|
2848
2848
|
}
|
|
2849
2849
|
if (avatar) {
|
|
2850
2850
|
return createVNode("img", {
|
|
2851
|
-
"class": bem$
|
|
2851
|
+
"class": bem$1w(`${position}-avatar`),
|
|
2852
2852
|
"src": avatar,
|
|
2853
2853
|
"alt": ""
|
|
2854
2854
|
}, null);
|
|
@@ -2857,12 +2857,12 @@ var stdin_default$1G = defineComponent({
|
|
|
2857
2857
|
const renderBlueMark = () => {
|
|
2858
2858
|
if (slots["blue-mark"]) {
|
|
2859
2859
|
return createVNode("div", {
|
|
2860
|
-
"class": bem$
|
|
2860
|
+
"class": bem$1w("blue-mark")
|
|
2861
2861
|
}, [slots["blue-mark"]()]);
|
|
2862
2862
|
}
|
|
2863
2863
|
if (props2.blueMark) {
|
|
2864
2864
|
return createVNode("span", {
|
|
2865
|
-
"class": bem$
|
|
2865
|
+
"class": bem$1w("blue-mark")
|
|
2866
2866
|
}, null);
|
|
2867
2867
|
}
|
|
2868
2868
|
};
|
|
@@ -2870,52 +2870,52 @@ var stdin_default$1G = defineComponent({
|
|
|
2870
2870
|
var _a2;
|
|
2871
2871
|
if (slots.tags) {
|
|
2872
2872
|
return createVNode("div", {
|
|
2873
|
-
"class": bem$
|
|
2873
|
+
"class": bem$1w("tags")
|
|
2874
2874
|
}, [slots.tags()]);
|
|
2875
2875
|
}
|
|
2876
2876
|
if ((_a2 = props2.tags) == null ? void 0 : _a2.length) {
|
|
2877
2877
|
return createVNode("div", {
|
|
2878
|
-
"class": bem$
|
|
2878
|
+
"class": bem$1w("tags")
|
|
2879
2879
|
}, [props2.tags.map((tag, index) => createVNode("span", {
|
|
2880
2880
|
"key": `${tag}-${index}`,
|
|
2881
|
-
"class": bem$
|
|
2881
|
+
"class": bem$1w("tag")
|
|
2882
2882
|
}, [tag]))]);
|
|
2883
2883
|
}
|
|
2884
2884
|
};
|
|
2885
2885
|
const renderTitleIcon = () => {
|
|
2886
2886
|
if (slots["title-icon"]) {
|
|
2887
2887
|
return createVNode("div", {
|
|
2888
|
-
"class": bem$
|
|
2888
|
+
"class": bem$1w("title-icon")
|
|
2889
2889
|
}, [slots["title-icon"]()]);
|
|
2890
2890
|
}
|
|
2891
2891
|
if (props2.titleIcon) {
|
|
2892
2892
|
return createVNode(Icon, {
|
|
2893
2893
|
"name": props2.titleIcon,
|
|
2894
|
-
"class": bem$
|
|
2894
|
+
"class": bem$1w("title-icon")
|
|
2895
2895
|
}, null);
|
|
2896
2896
|
}
|
|
2897
2897
|
};
|
|
2898
2898
|
const renderNote = () => {
|
|
2899
2899
|
if (slots.note) {
|
|
2900
2900
|
return createVNode("div", {
|
|
2901
|
-
"class": bem$
|
|
2901
|
+
"class": bem$1w("note")
|
|
2902
2902
|
}, [slots.note()]);
|
|
2903
2903
|
}
|
|
2904
2904
|
if (isDef(props2.note)) {
|
|
2905
2905
|
return createVNode("div", {
|
|
2906
|
-
"class": bem$
|
|
2906
|
+
"class": bem$1w("note")
|
|
2907
2907
|
}, [props2.note]);
|
|
2908
2908
|
}
|
|
2909
2909
|
};
|
|
2910
2910
|
const renderBadge = () => {
|
|
2911
2911
|
if (slots.badge) {
|
|
2912
2912
|
return createVNode("div", {
|
|
2913
|
-
"class": bem$
|
|
2913
|
+
"class": bem$1w("badge")
|
|
2914
2914
|
}, [slots.badge()]);
|
|
2915
2915
|
}
|
|
2916
2916
|
if (isDef(props2.badge)) {
|
|
2917
2917
|
return createVNode("div", {
|
|
2918
|
-
"class": bem$
|
|
2918
|
+
"class": bem$1w("badge")
|
|
2919
2919
|
}, [createVNode(Badge, {
|
|
2920
2920
|
"content": props2.badge,
|
|
2921
2921
|
"showZero": true
|
|
@@ -2929,14 +2929,14 @@ var stdin_default$1G = defineComponent({
|
|
|
2929
2929
|
if (props2.rightIcon) {
|
|
2930
2930
|
return createVNode(Icon, {
|
|
2931
2931
|
"name": props2.rightIcon,
|
|
2932
|
-
"class": bem$
|
|
2932
|
+
"class": bem$1w("right-icon")
|
|
2933
2933
|
}, null);
|
|
2934
2934
|
}
|
|
2935
2935
|
if (props2.isLink) {
|
|
2936
2936
|
const name2 = props2.arrowDirection && props2.arrowDirection !== "right" ? `arrow-${props2.arrowDirection}` : "arrow";
|
|
2937
2937
|
return createVNode(Icon, {
|
|
2938
2938
|
"name": name2,
|
|
2939
|
-
"class": bem$
|
|
2939
|
+
"class": bem$1w("right-icon")
|
|
2940
2940
|
}, null);
|
|
2941
2941
|
}
|
|
2942
2942
|
};
|
|
@@ -2968,7 +2968,7 @@ var stdin_default$1G = defineComponent({
|
|
|
2968
2968
|
}
|
|
2969
2969
|
};
|
|
2970
2970
|
return createVNode("div", {
|
|
2971
|
-
"class": [bem$
|
|
2971
|
+
"class": [bem$1w(classes), props2.errorBorder ? "van-cell-error-border" : ""],
|
|
2972
2972
|
"role": clickable ? "button" : void 0,
|
|
2973
2973
|
"tabindex": clickable ? 0 : void 0,
|
|
2974
2974
|
"onClick": onClick
|
|
@@ -2976,8 +2976,8 @@ var stdin_default$1G = defineComponent({
|
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
2978
2978
|
});
|
|
2979
|
-
const Cell = withInstall(stdin_default$
|
|
2980
|
-
const [name$
|
|
2979
|
+
const Cell = withInstall(stdin_default$1H);
|
|
2980
|
+
const [name$1z, bem$1v] = createNamespace("form");
|
|
2981
2981
|
const formProps = {
|
|
2982
2982
|
colon: Boolean,
|
|
2983
2983
|
disabled: Boolean,
|
|
@@ -2996,8 +2996,8 @@ const formProps = {
|
|
|
2996
2996
|
default: "onBlur"
|
|
2997
2997
|
}
|
|
2998
2998
|
};
|
|
2999
|
-
var stdin_default$
|
|
3000
|
-
name: name$
|
|
2999
|
+
var stdin_default$1G = defineComponent({
|
|
3000
|
+
name: name$1z,
|
|
3001
3001
|
props: formProps,
|
|
3002
3002
|
emits: ["submit", "failed"],
|
|
3003
3003
|
setup(props2, {
|
|
@@ -3121,13 +3121,13 @@ var stdin_default$1F = defineComponent({
|
|
|
3121
3121
|
return () => {
|
|
3122
3122
|
var _a;
|
|
3123
3123
|
return createVNode("form", {
|
|
3124
|
-
"class": bem$
|
|
3124
|
+
"class": bem$1v(),
|
|
3125
3125
|
"onSubmit": onSubmit
|
|
3126
3126
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
3127
3127
|
};
|
|
3128
3128
|
}
|
|
3129
3129
|
});
|
|
3130
|
-
const Form = withInstall(stdin_default$
|
|
3130
|
+
const Form = withInstall(stdin_default$1G);
|
|
3131
3131
|
function isEmptyValue(value) {
|
|
3132
3132
|
if (Array.isArray(value)) {
|
|
3133
3133
|
return !value.length;
|
|
@@ -3225,7 +3225,7 @@ function useId() {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
return `${name2}-${++current}`;
|
|
3227
3227
|
}
|
|
3228
|
-
const [name$
|
|
3228
|
+
const [name$1y, bem$1u] = createNamespace("field");
|
|
3229
3229
|
const fieldSharedProps = {
|
|
3230
3230
|
id: String,
|
|
3231
3231
|
name: String,
|
|
@@ -3278,8 +3278,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
|
3278
3278
|
default: false
|
|
3279
3279
|
}
|
|
3280
3280
|
});
|
|
3281
|
-
var stdin_default$
|
|
3282
|
-
name: name$
|
|
3281
|
+
var stdin_default$1F = defineComponent({
|
|
3282
|
+
name: name$1y,
|
|
3283
3283
|
props: fieldProps,
|
|
3284
3284
|
emits: ["blur", "focus", "clear", "keypress", "click-input", "end-validate", "start-validate", "click-left-icon", "click-right-icon", "update:modelValue"],
|
|
3285
3285
|
setup(props2, {
|
|
@@ -3551,7 +3551,7 @@ var stdin_default$1E = defineComponent({
|
|
|
3551
3551
|
const getInputId = () => props2.id || `${id}-input`;
|
|
3552
3552
|
const getValidationStatus = () => state.status;
|
|
3553
3553
|
const renderInput = () => {
|
|
3554
|
-
const controlClass = bem$
|
|
3554
|
+
const controlClass = bem$1u("control", [getProp("inputAlign"), {
|
|
3555
3555
|
error: showError.value,
|
|
3556
3556
|
custom: !!slots.input,
|
|
3557
3557
|
"min-height": props2.type === "textarea" && !props2.autosize
|
|
@@ -3593,7 +3593,7 @@ var stdin_default$1E = defineComponent({
|
|
|
3593
3593
|
const leftIconSlot = slots["left-icon"];
|
|
3594
3594
|
if (props2.leftIcon || leftIconSlot) {
|
|
3595
3595
|
return createVNode("div", {
|
|
3596
|
-
"class": bem$
|
|
3596
|
+
"class": bem$1u("left-icon"),
|
|
3597
3597
|
"onClick": onClickLeftIcon
|
|
3598
3598
|
}, [leftIconSlot ? leftIconSlot() : createVNode(Icon, {
|
|
3599
3599
|
"name": props2.leftIcon,
|
|
@@ -3605,7 +3605,7 @@ var stdin_default$1E = defineComponent({
|
|
|
3605
3605
|
const rightIconSlot = slots["right-icon"];
|
|
3606
3606
|
if (props2.rightIcon || rightIconSlot) {
|
|
3607
3607
|
return createVNode("div", {
|
|
3608
|
-
"class": bem$
|
|
3608
|
+
"class": bem$1u("right-icon"),
|
|
3609
3609
|
"onClick": onClickRightIcon
|
|
3610
3610
|
}, [rightIconSlot ? rightIconSlot() : createVNode(Icon, {
|
|
3611
3611
|
"name": props2.rightIcon,
|
|
@@ -3617,9 +3617,9 @@ var stdin_default$1E = defineComponent({
|
|
|
3617
3617
|
if (props2.showWordLimit && props2.maxlength) {
|
|
3618
3618
|
const count = getStringLength(getModelValue());
|
|
3619
3619
|
return createVNode("div", {
|
|
3620
|
-
"class": bem$
|
|
3620
|
+
"class": bem$1u("word-limit")
|
|
3621
3621
|
}, [createVNode("span", {
|
|
3622
|
-
"class": bem$
|
|
3622
|
+
"class": bem$1u("word-num")
|
|
3623
3623
|
}, [count]), createTextVNode("/"), props2.maxlength]);
|
|
3624
3624
|
}
|
|
3625
3625
|
};
|
|
@@ -3632,7 +3632,7 @@ var stdin_default$1E = defineComponent({
|
|
|
3632
3632
|
const slot = slots["error-message"];
|
|
3633
3633
|
const errorMessageAlign = getProp("errorMessageAlign");
|
|
3634
3634
|
return createVNode("div", {
|
|
3635
|
-
"class": bem$
|
|
3635
|
+
"class": bem$1u("error-message", errorMessageAlign)
|
|
3636
3636
|
}, [slot ? slot({
|
|
3637
3637
|
message
|
|
3638
3638
|
}) : message]);
|
|
@@ -3651,13 +3651,13 @@ var stdin_default$1E = defineComponent({
|
|
|
3651
3651
|
}
|
|
3652
3652
|
};
|
|
3653
3653
|
const renderFieldBody = () => [createVNode("div", {
|
|
3654
|
-
"class": bem$
|
|
3654
|
+
"class": bem$1u("body")
|
|
3655
3655
|
}, [renderInput(), showClear.value && createVNode(Icon, {
|
|
3656
3656
|
"ref": clearIconRef,
|
|
3657
3657
|
"name": props2.clearIcon,
|
|
3658
|
-
"class": bem$
|
|
3658
|
+
"class": bem$1u("clear")
|
|
3659
3659
|
}, null), renderRightIcon(), slots.button && createVNode("div", {
|
|
3660
|
-
"class": bem$
|
|
3660
|
+
"class": bem$1u("button")
|
|
3661
3661
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
|
3662
3662
|
useExpose({
|
|
3663
3663
|
blur,
|
|
@@ -3691,12 +3691,12 @@ var stdin_default$1E = defineComponent({
|
|
|
3691
3691
|
return () => {
|
|
3692
3692
|
const disabled = getProp("disabled");
|
|
3693
3693
|
const labelAlign = getProp("labelAlign");
|
|
3694
|
-
const
|
|
3694
|
+
const Label2 = renderLabel();
|
|
3695
3695
|
const LeftIcon = renderLeftIcon();
|
|
3696
3696
|
return createVNode(Cell, {
|
|
3697
3697
|
"size": props2.size,
|
|
3698
3698
|
"icon": props2.leftIcon,
|
|
3699
|
-
"class": bem$
|
|
3699
|
+
"class": bem$1u({
|
|
3700
3700
|
error: showError.value,
|
|
3701
3701
|
disabled,
|
|
3702
3702
|
[`label-${labelAlign}`]: labelAlign,
|
|
@@ -3708,21 +3708,21 @@ var stdin_default$1E = defineComponent({
|
|
|
3708
3708
|
"isLink": props2.isLink,
|
|
3709
3709
|
"clickable": props2.clickable,
|
|
3710
3710
|
"titleStyle": labelStyle.value,
|
|
3711
|
-
"valueClass": bem$
|
|
3712
|
-
"titleClass": [bem$
|
|
3711
|
+
"valueClass": bem$1u("value"),
|
|
3712
|
+
"titleClass": [bem$1u("label", [labelAlign, {
|
|
3713
3713
|
required: props2.required
|
|
3714
3714
|
}]), props2.labelClass],
|
|
3715
3715
|
"arrowDirection": props2.arrowDirection
|
|
3716
3716
|
}, {
|
|
3717
3717
|
icon: LeftIcon ? () => LeftIcon : null,
|
|
3718
|
-
title:
|
|
3718
|
+
title: Label2 ? () => Label2 : null,
|
|
3719
3719
|
value: renderFieldBody,
|
|
3720
3720
|
extra: slots.extra
|
|
3721
3721
|
});
|
|
3722
3722
|
};
|
|
3723
3723
|
}
|
|
3724
3724
|
});
|
|
3725
|
-
const Field = withInstall(stdin_default$
|
|
3725
|
+
const Field = withInstall(stdin_default$1F);
|
|
3726
3726
|
function usePopupState() {
|
|
3727
3727
|
const state = reactive({
|
|
3728
3728
|
show: false
|
|
@@ -3769,7 +3769,7 @@ function lockClick(lock) {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
|
-
const [name$
|
|
3772
|
+
const [name$1x, bem$1t] = createNamespace("toast");
|
|
3773
3773
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
|
3774
3774
|
const toastProps = {
|
|
3775
3775
|
icon: String,
|
|
@@ -3791,8 +3791,8 @@ const toastProps = {
|
|
|
3791
3791
|
closeOnClick: Boolean,
|
|
3792
3792
|
closeOnClickOverlay: Boolean
|
|
3793
3793
|
};
|
|
3794
|
-
var stdin_default$
|
|
3795
|
-
name: name$
|
|
3794
|
+
var stdin_default$1E = defineComponent({
|
|
3795
|
+
name: name$1x,
|
|
3796
3796
|
props: toastProps,
|
|
3797
3797
|
emits: ["update:show"],
|
|
3798
3798
|
setup(props2, {
|
|
@@ -3827,13 +3827,13 @@ var stdin_default$1D = defineComponent({
|
|
|
3827
3827
|
return createVNode(Icon, {
|
|
3828
3828
|
"name": icon || type,
|
|
3829
3829
|
"size": iconSize,
|
|
3830
|
-
"class": bem$
|
|
3830
|
+
"class": bem$1t("icon"),
|
|
3831
3831
|
"classPrefix": iconPrefix
|
|
3832
3832
|
}, null);
|
|
3833
3833
|
}
|
|
3834
3834
|
if (type === "loading") {
|
|
3835
3835
|
return createVNode(Loading, {
|
|
3836
|
-
"class": bem$
|
|
3836
|
+
"class": bem$1t("loading"),
|
|
3837
3837
|
"size": iconSize,
|
|
3838
3838
|
"type": loadingType
|
|
3839
3839
|
}, null);
|
|
@@ -3847,10 +3847,10 @@ var stdin_default$1D = defineComponent({
|
|
|
3847
3847
|
if (isDef(message) && message !== "") {
|
|
3848
3848
|
return type === "html" ? createVNode("div", {
|
|
3849
3849
|
"key": 0,
|
|
3850
|
-
"class": bem$
|
|
3850
|
+
"class": bem$1t("text"),
|
|
3851
3851
|
"innerHTML": String(message)
|
|
3852
3852
|
}, null) : createVNode("div", {
|
|
3853
|
-
"class": bem$
|
|
3853
|
+
"class": bem$1t("text")
|
|
3854
3854
|
}, [message]);
|
|
3855
3855
|
}
|
|
3856
3856
|
};
|
|
@@ -3866,7 +3866,7 @@ var stdin_default$1D = defineComponent({
|
|
|
3866
3866
|
onMounted(toggleClickable);
|
|
3867
3867
|
onUnmounted(toggleClickable);
|
|
3868
3868
|
return () => createVNode(Popup, mergeProps({
|
|
3869
|
-
"class": [bem$
|
|
3869
|
+
"class": [bem$1t([props2.position, {
|
|
3870
3870
|
[props2.type]: !props2.icon
|
|
3871
3871
|
}]), props2.className],
|
|
3872
3872
|
"lockScroll": false,
|
|
@@ -3935,7 +3935,7 @@ function createInstance() {
|
|
|
3935
3935
|
onClosed,
|
|
3936
3936
|
"onUpdate:show": toggle
|
|
3937
3937
|
};
|
|
3938
|
-
return createVNode(stdin_default$
|
|
3938
|
+
return createVNode(stdin_default$1E, mergeProps(state, attrs), null);
|
|
3939
3939
|
};
|
|
3940
3940
|
watch(message, (val) => {
|
|
3941
3941
|
state.message = val;
|
|
@@ -4007,10 +4007,10 @@ Toast.allowMultiple = (value = true) => {
|
|
|
4007
4007
|
allowMultiple = value;
|
|
4008
4008
|
};
|
|
4009
4009
|
Toast.install = (app) => {
|
|
4010
|
-
app.use(withInstall(stdin_default$
|
|
4010
|
+
app.use(withInstall(stdin_default$1E));
|
|
4011
4011
|
app.config.globalProperties.$toast = Toast;
|
|
4012
4012
|
};
|
|
4013
|
-
const [name$
|
|
4013
|
+
const [name$1w, bem$1s] = createNamespace("switch");
|
|
4014
4014
|
const switchProps = {
|
|
4015
4015
|
size: numericProp,
|
|
4016
4016
|
loading: Boolean,
|
|
@@ -4027,8 +4027,8 @@ const switchProps = {
|
|
|
4027
4027
|
default: false
|
|
4028
4028
|
}
|
|
4029
4029
|
};
|
|
4030
|
-
var stdin_default$
|
|
4031
|
-
name: name$
|
|
4030
|
+
var stdin_default$1D = defineComponent({
|
|
4031
|
+
name: name$1w,
|
|
4032
4032
|
props: switchProps,
|
|
4033
4033
|
emits: ["change", "update:modelValue"],
|
|
4034
4034
|
setup(props2, {
|
|
@@ -4047,7 +4047,7 @@ var stdin_default$1C = defineComponent({
|
|
|
4047
4047
|
if (props2.loading) {
|
|
4048
4048
|
const color = isChecked() ? props2.activeColor : props2.inactiveColor;
|
|
4049
4049
|
return createVNode(Loading, {
|
|
4050
|
-
"class": bem$
|
|
4050
|
+
"class": bem$1s("loading"),
|
|
4051
4051
|
"color": color
|
|
4052
4052
|
}, null);
|
|
4053
4053
|
}
|
|
@@ -4072,7 +4072,7 @@ var stdin_default$1C = defineComponent({
|
|
|
4072
4072
|
};
|
|
4073
4073
|
return createVNode("div", {
|
|
4074
4074
|
"role": "switch",
|
|
4075
|
-
"class": bem$
|
|
4075
|
+
"class": bem$1s({
|
|
4076
4076
|
on: checked,
|
|
4077
4077
|
loading,
|
|
4078
4078
|
disabled
|
|
@@ -4082,16 +4082,16 @@ var stdin_default$1C = defineComponent({
|
|
|
4082
4082
|
"aria-checked": checked,
|
|
4083
4083
|
"onClick": onClick
|
|
4084
4084
|
}, [createVNode("div", {
|
|
4085
|
-
"class": bem$
|
|
4085
|
+
"class": bem$1s("node")
|
|
4086
4086
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
4087
4087
|
};
|
|
4088
4088
|
}
|
|
4089
4089
|
});
|
|
4090
|
-
const Switch = withInstall(stdin_default$
|
|
4091
|
-
const [name$
|
|
4090
|
+
const Switch = withInstall(stdin_default$1D);
|
|
4091
|
+
const [name$1v, bem$1r] = createNamespace("address-edit-detail");
|
|
4092
4092
|
const t$i = createNamespace("address-edit")[2];
|
|
4093
|
-
var stdin_default$
|
|
4094
|
-
name: name$
|
|
4093
|
+
var stdin_default$1C = defineComponent({
|
|
4094
|
+
name: name$1v,
|
|
4095
4095
|
props: {
|
|
4096
4096
|
show: Boolean,
|
|
4097
4097
|
rows: numericProp,
|
|
@@ -4114,7 +4114,7 @@ var stdin_default$1B = defineComponent({
|
|
|
4114
4114
|
};
|
|
4115
4115
|
const renderSearchTitle = (express) => {
|
|
4116
4116
|
if (express.name) {
|
|
4117
|
-
const text = express.name.replace(props2.value, `<span class=${bem$
|
|
4117
|
+
const text = express.name.replace(props2.value, `<span class=${bem$1r("keyword")}>${props2.value}</span>`);
|
|
4118
4118
|
return createVNode("div", {
|
|
4119
4119
|
"innerHTML": text
|
|
4120
4120
|
}, null);
|
|
@@ -4132,7 +4132,7 @@ var stdin_default$1B = defineComponent({
|
|
|
4132
4132
|
"key": express.name + express.address,
|
|
4133
4133
|
"icon": "location-o",
|
|
4134
4134
|
"label": express.address,
|
|
4135
|
-
"class": bem$
|
|
4135
|
+
"class": bem$1r("search-item"),
|
|
4136
4136
|
"border": false,
|
|
4137
4137
|
"onClick": () => onSelect(express)
|
|
4138
4138
|
}, {
|
|
@@ -4148,7 +4148,7 @@ var stdin_default$1B = defineComponent({
|
|
|
4148
4148
|
"autosize": true,
|
|
4149
4149
|
"clearable": true,
|
|
4150
4150
|
"ref": field,
|
|
4151
|
-
"class": bem$
|
|
4151
|
+
"class": bem$1r(),
|
|
4152
4152
|
"rows": props2.rows,
|
|
4153
4153
|
"type": "textarea",
|
|
4154
4154
|
"rules": props2.rules,
|
|
@@ -4165,7 +4165,7 @@ var stdin_default$1B = defineComponent({
|
|
|
4165
4165
|
};
|
|
4166
4166
|
}
|
|
4167
4167
|
});
|
|
4168
|
-
const [name$
|
|
4168
|
+
const [name$1u, bem$1q, t$h] = createNamespace("address-edit");
|
|
4169
4169
|
const DEFAULT_DATA = {
|
|
4170
4170
|
name: "",
|
|
4171
4171
|
tel: "",
|
|
@@ -4212,8 +4212,8 @@ const addressEditProps = {
|
|
|
4212
4212
|
default: isPostal
|
|
4213
4213
|
}
|
|
4214
4214
|
};
|
|
4215
|
-
var stdin_default$
|
|
4216
|
-
name: name$
|
|
4215
|
+
var stdin_default$1B = defineComponent({
|
|
4216
|
+
name: name$1u,
|
|
4217
4217
|
props: addressEditProps,
|
|
4218
4218
|
emits: ["save", "focus", "delete", "click-area", "change-area", "change-detail", "select-search", "change-default"],
|
|
4219
4219
|
setup(props2, {
|
|
@@ -4339,7 +4339,7 @@ var stdin_default$1A = defineComponent({
|
|
|
4339
4339
|
return withDirectives(createVNode(Cell, {
|
|
4340
4340
|
"center": true,
|
|
4341
4341
|
"title": t$h("defaultAddress"),
|
|
4342
|
-
"class": bem$
|
|
4342
|
+
"class": bem$1q("default")
|
|
4343
4343
|
}, slots2), [[vShow, !hideBottomFields.value]]);
|
|
4344
4344
|
}
|
|
4345
4345
|
};
|
|
@@ -4361,13 +4361,13 @@ var stdin_default$1A = defineComponent({
|
|
|
4361
4361
|
disableArea
|
|
4362
4362
|
} = props2;
|
|
4363
4363
|
return createVNode(Form, {
|
|
4364
|
-
"class": bem$
|
|
4364
|
+
"class": bem$1q(),
|
|
4365
4365
|
"onSubmit": onSave
|
|
4366
4366
|
}, {
|
|
4367
4367
|
default: () => {
|
|
4368
4368
|
var _a;
|
|
4369
4369
|
return [createVNode("div", {
|
|
4370
|
-
"class": bem$
|
|
4370
|
+
"class": bem$1q("fields")
|
|
4371
4371
|
}, [createVNode(Field, {
|
|
4372
4372
|
"modelValue": data.name,
|
|
4373
4373
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
|
@@ -4398,7 +4398,7 @@ var stdin_default$1A = defineComponent({
|
|
|
4398
4398
|
emit("click-area");
|
|
4399
4399
|
showAreaPopup.value = !disableArea;
|
|
4400
4400
|
}
|
|
4401
|
-
}, null), [[vShow, props2.showArea]]), createVNode(stdin_default$
|
|
4401
|
+
}, null), [[vShow, props2.showArea]]), createVNode(stdin_default$1C, {
|
|
4402
4402
|
"show": props2.showDetail,
|
|
4403
4403
|
"rows": props2.detailRows,
|
|
4404
4404
|
"rules": rules.value.addressDetail,
|
|
@@ -4421,19 +4421,19 @@ var stdin_default$1A = defineComponent({
|
|
|
4421
4421
|
"placeholder": t$h("postal"),
|
|
4422
4422
|
"onFocus": () => onFocus("postalCode")
|
|
4423
4423
|
}, null), [[vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), withDirectives(createVNode("div", {
|
|
4424
|
-
"class": bem$
|
|
4424
|
+
"class": bem$1q("buttons")
|
|
4425
4425
|
}, [createVNode(Button, {
|
|
4426
4426
|
"block": true,
|
|
4427
4427
|
"round": true,
|
|
4428
4428
|
"type": "primary",
|
|
4429
4429
|
"text": props2.saveButtonText || t$h("save"),
|
|
4430
|
-
"class": bem$
|
|
4430
|
+
"class": bem$1q("button"),
|
|
4431
4431
|
"loading": props2.isSaving,
|
|
4432
4432
|
"nativeType": "submit"
|
|
4433
4433
|
}, null), props2.showDelete && createVNode(Button, {
|
|
4434
4434
|
"block": true,
|
|
4435
4435
|
"round": true,
|
|
4436
|
-
"class": bem$
|
|
4436
|
+
"class": bem$1q("button"),
|
|
4437
4437
|
"loading": props2.isDeleting,
|
|
4438
4438
|
"text": props2.deleteButtonText || t$h("delete"),
|
|
4439
4439
|
"onClick": onDelete
|
|
@@ -4462,9 +4462,9 @@ var stdin_default$1A = defineComponent({
|
|
|
4462
4462
|
};
|
|
4463
4463
|
}
|
|
4464
4464
|
});
|
|
4465
|
-
const AddressEdit = withInstall(stdin_default$
|
|
4466
|
-
const RadioGroup = withInstall(stdin_default$
|
|
4467
|
-
const [name$
|
|
4465
|
+
const AddressEdit = withInstall(stdin_default$1B);
|
|
4466
|
+
const RadioGroup = withInstall(stdin_default$1J);
|
|
4467
|
+
const [name$1t, bem$1p] = createNamespace("tag");
|
|
4468
4468
|
const tagProps = {
|
|
4469
4469
|
size: makeStringProp("medium"),
|
|
4470
4470
|
mark: Boolean,
|
|
@@ -4476,8 +4476,8 @@ const tagProps = {
|
|
|
4476
4476
|
textColor: String,
|
|
4477
4477
|
closeable: Boolean
|
|
4478
4478
|
};
|
|
4479
|
-
var stdin_default$
|
|
4480
|
-
name: name$
|
|
4479
|
+
var stdin_default$1A = defineComponent({
|
|
4480
|
+
name: name$1t,
|
|
4481
4481
|
props: tagProps,
|
|
4482
4482
|
emits: ["close"],
|
|
4483
4483
|
setup(props2, {
|
|
@@ -4520,12 +4520,12 @@ var stdin_default$1z = defineComponent({
|
|
|
4520
4520
|
}
|
|
4521
4521
|
const CloseIcon = closeable && createVNode(Icon, {
|
|
4522
4522
|
"name": "cross",
|
|
4523
|
-
"class": [bem$
|
|
4523
|
+
"class": [bem$1p("close"), HAPTICS_FEEDBACK],
|
|
4524
4524
|
"onClick": onClose
|
|
4525
4525
|
}, null);
|
|
4526
4526
|
return createVNode("span", {
|
|
4527
4527
|
"style": getStyle(),
|
|
4528
|
-
"class": bem$
|
|
4528
|
+
"class": bem$1p([classes, type])
|
|
4529
4529
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
|
4530
4530
|
};
|
|
4531
4531
|
return () => createVNode(Transition, {
|
|
@@ -4535,10 +4535,10 @@ var stdin_default$1z = defineComponent({
|
|
|
4535
4535
|
});
|
|
4536
4536
|
}
|
|
4537
4537
|
});
|
|
4538
|
-
const Tag = withInstall(stdin_default$
|
|
4539
|
-
const [name$
|
|
4540
|
-
var stdin_default$
|
|
4541
|
-
name: name$
|
|
4538
|
+
const Tag = withInstall(stdin_default$1A);
|
|
4539
|
+
const [name$1s, bem$1o] = createNamespace("address-item");
|
|
4540
|
+
var stdin_default$1z = defineComponent({
|
|
4541
|
+
name: name$1s,
|
|
4542
4542
|
props: {
|
|
4543
4543
|
address: makeRequiredProp(Object),
|
|
4544
4544
|
disabled: Boolean,
|
|
@@ -4558,7 +4558,7 @@ var stdin_default$1y = defineComponent({
|
|
|
4558
4558
|
};
|
|
4559
4559
|
const renderRightIcon = () => createVNode(Icon, {
|
|
4560
4560
|
"name": "edit",
|
|
4561
|
-
"class": bem$
|
|
4561
|
+
"class": bem$1o("edit"),
|
|
4562
4562
|
"onClick": (event) => {
|
|
4563
4563
|
event.stopPropagation();
|
|
4564
4564
|
emit("edit");
|
|
@@ -4573,7 +4573,7 @@ var stdin_default$1y = defineComponent({
|
|
|
4573
4573
|
return createVNode(Tag, {
|
|
4574
4574
|
"type": "danger",
|
|
4575
4575
|
"round": true,
|
|
4576
|
-
"class": bem$
|
|
4576
|
+
"class": bem$1o("tag")
|
|
4577
4577
|
}, {
|
|
4578
4578
|
default: () => [props2.defaultTagText]
|
|
4579
4579
|
});
|
|
@@ -4586,9 +4586,9 @@ var stdin_default$1y = defineComponent({
|
|
|
4586
4586
|
switchable
|
|
4587
4587
|
} = props2;
|
|
4588
4588
|
const Info = [createVNode("div", {
|
|
4589
|
-
"class": bem$
|
|
4589
|
+
"class": bem$1o("name")
|
|
4590
4590
|
}, [`${address.name} ${address.tel}`, renderTag()]), createVNode("div", {
|
|
4591
|
-
"class": bem$
|
|
4591
|
+
"class": bem$1o("address")
|
|
4592
4592
|
}, [address.address])];
|
|
4593
4593
|
if (switchable && !disabled) {
|
|
4594
4594
|
return createVNode(Radio, {
|
|
@@ -4606,13 +4606,13 @@ var stdin_default$1y = defineComponent({
|
|
|
4606
4606
|
disabled
|
|
4607
4607
|
} = props2;
|
|
4608
4608
|
return createVNode("div", {
|
|
4609
|
-
"class": bem$
|
|
4609
|
+
"class": bem$1o({
|
|
4610
4610
|
disabled
|
|
4611
4611
|
}),
|
|
4612
4612
|
"onClick": onClick
|
|
4613
4613
|
}, [createVNode(Cell, {
|
|
4614
4614
|
"border": false,
|
|
4615
|
-
"valueClass": bem$
|
|
4615
|
+
"valueClass": bem$1o("value")
|
|
4616
4616
|
}, {
|
|
4617
4617
|
value: renderContent,
|
|
4618
4618
|
"right-icon": renderRightIcon
|
|
@@ -4622,7 +4622,7 @@ var stdin_default$1y = defineComponent({
|
|
|
4622
4622
|
};
|
|
4623
4623
|
}
|
|
4624
4624
|
});
|
|
4625
|
-
const [name$
|
|
4625
|
+
const [name$1r, bem$1n, t$g] = createNamespace("address-list");
|
|
4626
4626
|
const addressListProps = {
|
|
4627
4627
|
list: makeArrayProp(),
|
|
4628
4628
|
modelValue: numericProp,
|
|
@@ -4632,8 +4632,8 @@ const addressListProps = {
|
|
|
4632
4632
|
addButtonText: String,
|
|
4633
4633
|
defaultTagText: String
|
|
4634
4634
|
};
|
|
4635
|
-
var stdin_default$
|
|
4636
|
-
name: name$
|
|
4635
|
+
var stdin_default$1y = defineComponent({
|
|
4636
|
+
name: name$1r,
|
|
4637
4637
|
props: addressListProps,
|
|
4638
4638
|
emits: ["add", "edit", "select", "click-item", "edit-disabled", "select-disabled", "update:modelValue"],
|
|
4639
4639
|
setup(props2, {
|
|
@@ -4649,7 +4649,7 @@ var stdin_default$1x = defineComponent({
|
|
|
4649
4649
|
emit("update:modelValue", item.id);
|
|
4650
4650
|
}
|
|
4651
4651
|
};
|
|
4652
|
-
return createVNode(stdin_default$
|
|
4652
|
+
return createVNode(stdin_default$1z, {
|
|
4653
4653
|
"key": item.id,
|
|
4654
4654
|
"address": item,
|
|
4655
4655
|
"disabled": disabled,
|
|
@@ -4669,13 +4669,13 @@ var stdin_default$1x = defineComponent({
|
|
|
4669
4669
|
}
|
|
4670
4670
|
};
|
|
4671
4671
|
const renderBottom = () => createVNode("div", {
|
|
4672
|
-
"class": [bem$
|
|
4672
|
+
"class": [bem$1n("bottom"), "van-safe-area-bottom"]
|
|
4673
4673
|
}, [createVNode(Button, {
|
|
4674
4674
|
"round": true,
|
|
4675
4675
|
"block": true,
|
|
4676
4676
|
"type": "primary",
|
|
4677
4677
|
"text": props2.addButtonText || t$g("add"),
|
|
4678
|
-
"class": bem$
|
|
4678
|
+
"class": bem$1n("add"),
|
|
4679
4679
|
"onClick": () => emit("add")
|
|
4680
4680
|
}, null)]);
|
|
4681
4681
|
return () => {
|
|
@@ -4683,10 +4683,10 @@ var stdin_default$1x = defineComponent({
|
|
|
4683
4683
|
const List2 = renderList(props2.list);
|
|
4684
4684
|
const DisabledList = renderList(props2.disabledList, true);
|
|
4685
4685
|
const DisabledText = props2.disabledText && createVNode("div", {
|
|
4686
|
-
"class": bem$
|
|
4686
|
+
"class": bem$1n("disabled-text")
|
|
4687
4687
|
}, [props2.disabledText]);
|
|
4688
4688
|
return createVNode("div", {
|
|
4689
|
-
"class": bem$
|
|
4689
|
+
"class": bem$1n()
|
|
4690
4690
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), createVNode(RadioGroup, {
|
|
4691
4691
|
"modelValue": props2.modelValue
|
|
4692
4692
|
}, {
|
|
@@ -4695,13 +4695,13 @@ var stdin_default$1x = defineComponent({
|
|
|
4695
4695
|
};
|
|
4696
4696
|
}
|
|
4697
4697
|
});
|
|
4698
|
-
const AddressList = withInstall(stdin_default$
|
|
4699
|
-
const [name$
|
|
4698
|
+
const AddressList = withInstall(stdin_default$1y);
|
|
4699
|
+
const [name$1q, bem$1m] = createNamespace("background");
|
|
4700
4700
|
const backgroundProps = {
|
|
4701
4701
|
theme: makeStringProp("default")
|
|
4702
4702
|
};
|
|
4703
|
-
var stdin_default$
|
|
4704
|
-
name: name$
|
|
4703
|
+
var stdin_default$1x = defineComponent({
|
|
4704
|
+
name: name$1q,
|
|
4705
4705
|
props: backgroundProps,
|
|
4706
4706
|
setup(props2, {
|
|
4707
4707
|
slots
|
|
@@ -4709,13 +4709,13 @@ var stdin_default$1w = defineComponent({
|
|
|
4709
4709
|
return () => {
|
|
4710
4710
|
var _a;
|
|
4711
4711
|
return createVNode("div", {
|
|
4712
|
-
"class": bem$
|
|
4712
|
+
"class": bem$1m([props2.theme])
|
|
4713
4713
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
4714
4714
|
};
|
|
4715
4715
|
}
|
|
4716
4716
|
});
|
|
4717
|
-
const Background = withInstall(stdin_default$
|
|
4718
|
-
const [name$
|
|
4717
|
+
const Background = withInstall(stdin_default$1x);
|
|
4718
|
+
const [name$1p, bem$1l] = createNamespace("blue-mark");
|
|
4719
4719
|
const blueMarkProps = {
|
|
4720
4720
|
size: {
|
|
4721
4721
|
type: String,
|
|
@@ -4729,8 +4729,8 @@ const blueMarkProps = {
|
|
|
4729
4729
|
gap: numericProp,
|
|
4730
4730
|
isLink: Boolean
|
|
4731
4731
|
};
|
|
4732
|
-
var stdin_default$
|
|
4733
|
-
name: name$
|
|
4732
|
+
var stdin_default$1w = defineComponent({
|
|
4733
|
+
name: name$1p,
|
|
4734
4734
|
props: blueMarkProps,
|
|
4735
4735
|
emits: ["click"],
|
|
4736
4736
|
setup(props2, {
|
|
@@ -4748,30 +4748,30 @@ var stdin_default$1v = defineComponent({
|
|
|
4748
4748
|
return () => {
|
|
4749
4749
|
var _a;
|
|
4750
4750
|
return createVNode("span", {
|
|
4751
|
-
"class": [name$
|
|
4751
|
+
"class": [name$1p, props2.size === "normal" ? "" : `${name$1p}--${props2.size}`, props2.isLink ? `${name$1p}--link` : ""],
|
|
4752
4752
|
"style": style.value,
|
|
4753
4753
|
"onClick": props2.isLink ? (event) => emit("click", event) : void 0
|
|
4754
4754
|
}, [createVNode("span", {
|
|
4755
|
-
"class": bem$
|
|
4755
|
+
"class": bem$1l("main")
|
|
4756
4756
|
}, [createVNode("span", {
|
|
4757
|
-
"class": bem$
|
|
4757
|
+
"class": bem$1l("mark")
|
|
4758
4758
|
}, null), createVNode("span", {
|
|
4759
|
-
"class": bem$
|
|
4760
|
-
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), props2.isLink && createVNode(stdin_default$
|
|
4759
|
+
"class": bem$1l("content")
|
|
4760
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), props2.isLink && createVNode(stdin_default$1X, {
|
|
4761
4761
|
"name": "arrow",
|
|
4762
|
-
"class": bem$
|
|
4762
|
+
"class": bem$1l("arrow")
|
|
4763
4763
|
}, null)]);
|
|
4764
4764
|
};
|
|
4765
4765
|
}
|
|
4766
4766
|
});
|
|
4767
|
-
const [name$
|
|
4767
|
+
const [name$1o, bem$1k] = createNamespace("collapse-toggle");
|
|
4768
4768
|
const collapseToggleProps = {
|
|
4769
4769
|
modelValue: Boolean,
|
|
4770
4770
|
expandText: makeStringProp("展开"),
|
|
4771
4771
|
collapseText: makeStringProp("收起")
|
|
4772
4772
|
};
|
|
4773
|
-
var stdin_default$
|
|
4774
|
-
name: name$
|
|
4773
|
+
var stdin_default$1v = defineComponent({
|
|
4774
|
+
name: name$1o,
|
|
4775
4775
|
props: collapseToggleProps,
|
|
4776
4776
|
emits: ["update:modelValue", "change"],
|
|
4777
4777
|
setup(props2, {
|
|
@@ -4790,7 +4790,7 @@ var stdin_default$1u = defineComponent({
|
|
|
4790
4790
|
const text = expanded ? props2.collapseText : props2.expandText;
|
|
4791
4791
|
return createVNode("button", {
|
|
4792
4792
|
"type": "button",
|
|
4793
|
-
"class": bem$
|
|
4793
|
+
"class": bem$1k({
|
|
4794
4794
|
expanded
|
|
4795
4795
|
}),
|
|
4796
4796
|
"aria-expanded": expanded,
|
|
@@ -4800,12 +4800,12 @@ var stdin_default$1u = defineComponent({
|
|
|
4800
4800
|
text
|
|
4801
4801
|
})) || text]), createVNode(Icon, {
|
|
4802
4802
|
"name": "arrow-down",
|
|
4803
|
-
"class": bem$
|
|
4803
|
+
"class": bem$1k("icon")
|
|
4804
4804
|
}, null)]);
|
|
4805
4805
|
};
|
|
4806
4806
|
}
|
|
4807
4807
|
});
|
|
4808
|
-
const [name$
|
|
4808
|
+
const [name$1n, bem$1j] = createNamespace("blue-mark-header");
|
|
4809
4809
|
const blueMarkHeaderProps = {
|
|
4810
4810
|
title: numericProp,
|
|
4811
4811
|
size: {
|
|
@@ -4819,8 +4819,8 @@ const blueMarkHeaderProps = {
|
|
|
4819
4819
|
expandText: String,
|
|
4820
4820
|
collapseText: String
|
|
4821
4821
|
};
|
|
4822
|
-
var stdin_default$
|
|
4823
|
-
name: name$
|
|
4822
|
+
var stdin_default$1u = defineComponent({
|
|
4823
|
+
name: name$1n,
|
|
4824
4824
|
props: blueMarkHeaderProps,
|
|
4825
4825
|
emits: ["click-action", "update:modelValue", "change"],
|
|
4826
4826
|
setup(props2, {
|
|
@@ -4845,7 +4845,7 @@ var stdin_default$1t = defineComponent({
|
|
|
4845
4845
|
return () => {
|
|
4846
4846
|
var _a;
|
|
4847
4847
|
return createVNode("div", {
|
|
4848
|
-
"class": bem$
|
|
4848
|
+
"class": bem$1j({
|
|
4849
4849
|
expandable: props2.expandable
|
|
4850
4850
|
}),
|
|
4851
4851
|
"role": props2.expandable ? "button" : void 0,
|
|
@@ -4854,25 +4854,25 @@ var stdin_default$1t = defineComponent({
|
|
|
4854
4854
|
"onClick": onHeaderClick,
|
|
4855
4855
|
"onKeydown": onHeaderKeydown
|
|
4856
4856
|
}, [createVNode("div", {
|
|
4857
|
-
"class": bem$
|
|
4858
|
-
}, [createVNode(stdin_default$
|
|
4857
|
+
"class": bem$1j("main")
|
|
4858
|
+
}, [createVNode(stdin_default$1w, {
|
|
4859
4859
|
"size": props2.size,
|
|
4860
|
-
"class": bem$
|
|
4860
|
+
"class": bem$1j("title")
|
|
4861
4861
|
}, {
|
|
4862
4862
|
default: () => [slots.title ? slots.title() : slots.default ? slots.default() : props2.title]
|
|
4863
4863
|
}), props2.required && createVNode("span", {
|
|
4864
|
-
"class": bem$
|
|
4864
|
+
"class": bem$1j("required")
|
|
4865
4865
|
}, [createTextVNode("*")]), slots.action ? createVNode("span", {
|
|
4866
|
-
"class": bem$
|
|
4866
|
+
"class": bem$1j("action"),
|
|
4867
4867
|
"onClick": (event) => event.stopPropagation()
|
|
4868
4868
|
}, [slots.action()]) : props2.actionText ? createVNode("button", {
|
|
4869
4869
|
"type": "button",
|
|
4870
|
-
"class": bem$
|
|
4870
|
+
"class": bem$1j("action"),
|
|
4871
4871
|
"onClick": (event) => {
|
|
4872
4872
|
event.stopPropagation();
|
|
4873
4873
|
emit("click-action");
|
|
4874
4874
|
}
|
|
4875
|
-
}, [props2.actionText]) : null]), (_a = slots.extra) == null ? void 0 : _a.call(slots), props2.expandable && createVNode(stdin_default$
|
|
4875
|
+
}, [props2.actionText]) : null]), (_a = slots.extra) == null ? void 0 : _a.call(slots), props2.expandable && createVNode(stdin_default$1v, {
|
|
4876
4876
|
"modelValue": props2.modelValue,
|
|
4877
4877
|
"expandText": props2.expandText,
|
|
4878
4878
|
"collapseText": props2.collapseText,
|
|
@@ -4881,10 +4881,10 @@ var stdin_default$1t = defineComponent({
|
|
|
4881
4881
|
};
|
|
4882
4882
|
}
|
|
4883
4883
|
});
|
|
4884
|
-
const BlueMark = withInstall(stdin_default$
|
|
4885
|
-
const BlueMarkHeader = withInstall(stdin_default$
|
|
4886
|
-
const CollapseToggle = withInstall(stdin_default$
|
|
4887
|
-
const [name$
|
|
4884
|
+
const BlueMark = withInstall(stdin_default$1w);
|
|
4885
|
+
const BlueMarkHeader = withInstall(stdin_default$1u);
|
|
4886
|
+
const CollapseToggle = withInstall(stdin_default$1v);
|
|
4887
|
+
const [name$1m, bem$1i] = createNamespace("popover");
|
|
4888
4888
|
const popupProps$2 = ["show", "overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
|
4889
4889
|
const popoverProps = {
|
|
4890
4890
|
show: Boolean,
|
|
@@ -4910,8 +4910,8 @@ const popoverProps = {
|
|
|
4910
4910
|
default: "body"
|
|
4911
4911
|
}
|
|
4912
4912
|
};
|
|
4913
|
-
var stdin_default$
|
|
4914
|
-
name: name$
|
|
4913
|
+
var stdin_default$1t = defineComponent({
|
|
4914
|
+
name: name$1m,
|
|
4915
4915
|
props: popoverProps,
|
|
4916
4916
|
emits: ["select", "touchstart", "update:show"],
|
|
4917
4917
|
setup(props2, {
|
|
@@ -4983,12 +4983,12 @@ var stdin_default$1s = defineComponent({
|
|
|
4983
4983
|
});
|
|
4984
4984
|
}
|
|
4985
4985
|
return [action.icon && createVNode("div", {
|
|
4986
|
-
"class": bem$
|
|
4986
|
+
"class": bem$1i("action-icon")
|
|
4987
4987
|
}, [createVNode(Icon, {
|
|
4988
4988
|
"name": action.icon,
|
|
4989
4989
|
"classPrefix": props2.iconPrefix
|
|
4990
4990
|
}, null)]), createVNode("div", {
|
|
4991
|
-
"class": [bem$
|
|
4991
|
+
"class": [bem$1i("action-text"), BORDER_BOTTOM]
|
|
4992
4992
|
}, [action.text])];
|
|
4993
4993
|
};
|
|
4994
4994
|
const renderAction = (action, index) => {
|
|
@@ -5000,7 +5000,7 @@ var stdin_default$1s = defineComponent({
|
|
|
5000
5000
|
} = action;
|
|
5001
5001
|
return createVNode("div", {
|
|
5002
5002
|
"role": "menuitem",
|
|
5003
|
-
"class": [bem$
|
|
5003
|
+
"class": [bem$1i("action", {
|
|
5004
5004
|
disabled,
|
|
5005
5005
|
"with-icon": icon
|
|
5006
5006
|
}), className],
|
|
@@ -5033,28 +5033,28 @@ var stdin_default$1s = defineComponent({
|
|
|
5033
5033
|
var _a;
|
|
5034
5034
|
return createVNode(Fragment, null, [createVNode("span", {
|
|
5035
5035
|
"ref": wrapperRef,
|
|
5036
|
-
"class": bem$
|
|
5036
|
+
"class": bem$1i("wrapper"),
|
|
5037
5037
|
"onClick": onClickWrapper
|
|
5038
5038
|
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), createVNode(Popup, mergeProps({
|
|
5039
5039
|
"ref": popoverRef,
|
|
5040
|
-
"class": bem$
|
|
5040
|
+
"class": bem$1i([props2.theme]),
|
|
5041
5041
|
"position": "",
|
|
5042
5042
|
"transition": "van-popover-zoom",
|
|
5043
5043
|
"lockScroll": false,
|
|
5044
5044
|
"onUpdate:show": updateShow
|
|
5045
5045
|
}, attrs, pick(props2, popupProps$2)), {
|
|
5046
5046
|
default: () => [props2.showArrow && createVNode("div", {
|
|
5047
|
-
"class": bem$
|
|
5047
|
+
"class": bem$1i("arrow")
|
|
5048
5048
|
}, null), createVNode("div", {
|
|
5049
5049
|
"role": "menu",
|
|
5050
|
-
"class": bem$
|
|
5050
|
+
"class": bem$1i("content")
|
|
5051
5051
|
}, [slots.default ? slots.default() : props2.actions.map(renderAction)])]
|
|
5052
5052
|
})]);
|
|
5053
5053
|
};
|
|
5054
5054
|
}
|
|
5055
5055
|
});
|
|
5056
|
-
const Popover = withInstall(stdin_default$
|
|
5057
|
-
const [name$
|
|
5056
|
+
const Popover = withInstall(stdin_default$1t);
|
|
5057
|
+
const [name$1l, bem$1h] = createNamespace("bottom-action-bar");
|
|
5058
5058
|
const bottomActionBarProps = {
|
|
5059
5059
|
confirmText: makeStringProp("确定"),
|
|
5060
5060
|
confirmType: makeStringProp("primary"),
|
|
@@ -5081,8 +5081,8 @@ const bottomActionBarProps = {
|
|
|
5081
5081
|
checkboxActionDisabled: Boolean,
|
|
5082
5082
|
checkboxActionText: makeStringProp("保存为我的默认筛选")
|
|
5083
5083
|
};
|
|
5084
|
-
var stdin_default$
|
|
5085
|
-
name: name$
|
|
5084
|
+
var stdin_default$1s = defineComponent({
|
|
5085
|
+
name: name$1l,
|
|
5086
5086
|
props: bottomActionBarProps,
|
|
5087
5087
|
emits: ["confirm", "secondary", "icon", "more", "select-more-popover", "update:checkboxActionChecked", "checkbox-action-change"],
|
|
5088
5088
|
setup(props2, {
|
|
@@ -5091,18 +5091,18 @@ var stdin_default$1r = defineComponent({
|
|
|
5091
5091
|
}) {
|
|
5092
5092
|
const root = ref();
|
|
5093
5093
|
const morePopoverShow = ref(false);
|
|
5094
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
|
5094
|
+
const renderPlaceholder = usePlaceholder(root, bem$1h);
|
|
5095
5095
|
const renderIconAction = () => {
|
|
5096
5096
|
if (slots.icon) {
|
|
5097
5097
|
return createVNode("div", {
|
|
5098
|
-
"class": bem$
|
|
5098
|
+
"class": bem$1h("icon-action")
|
|
5099
5099
|
}, [slots.icon()]);
|
|
5100
5100
|
}
|
|
5101
5101
|
if (!props2.icon) {
|
|
5102
5102
|
return;
|
|
5103
5103
|
}
|
|
5104
5104
|
return createVNode(Button, {
|
|
5105
|
-
"class": bem$
|
|
5105
|
+
"class": bem$1h("icon-button"),
|
|
5106
5106
|
"icon": props2.icon,
|
|
5107
5107
|
"iconPrefix": props2.iconPrefix,
|
|
5108
5108
|
"disabled": props2.iconDisabled,
|
|
@@ -5118,7 +5118,7 @@ var stdin_default$1r = defineComponent({
|
|
|
5118
5118
|
};
|
|
5119
5119
|
const renderMoreButton = (popoverEnabled = false) => createVNode("button", {
|
|
5120
5120
|
"type": "button",
|
|
5121
|
-
"class": bem$
|
|
5121
|
+
"class": bem$1h("more-action"),
|
|
5122
5122
|
"disabled": props2.moreDisabled,
|
|
5123
5123
|
"onClick": popoverEnabled ? void 0 : () => emit("more")
|
|
5124
5124
|
}, [createVNode(Badge, {
|
|
@@ -5128,30 +5128,30 @@ var stdin_default$1r = defineComponent({
|
|
|
5128
5128
|
}, {
|
|
5129
5129
|
default: () => [createVNode(Icon, {
|
|
5130
5130
|
"name": props2.moreIcon || "more-o",
|
|
5131
|
-
"class": bem$
|
|
5131
|
+
"class": bem$1h("more-icon"),
|
|
5132
5132
|
"classPrefix": props2.iconPrefix
|
|
5133
5133
|
}, null)]
|
|
5134
5134
|
}), createVNode("span", {
|
|
5135
|
-
"class": bem$
|
|
5135
|
+
"class": bem$1h("more-text")
|
|
5136
5136
|
}, [props2.moreText])]);
|
|
5137
5137
|
const renderMorePopoverAction = (action, index) => createVNode("button", {
|
|
5138
5138
|
"type": "button",
|
|
5139
|
-
"class": bem$
|
|
5139
|
+
"class": bem$1h("more-popover-action", {
|
|
5140
5140
|
disabled: action.disabled
|
|
5141
5141
|
}),
|
|
5142
5142
|
"disabled": action.disabled,
|
|
5143
5143
|
"onClick": () => onSelectMorePopover(action, index)
|
|
5144
5144
|
}, [action.icon && createVNode(Icon, {
|
|
5145
5145
|
"name": action.icon,
|
|
5146
|
-
"class": bem$
|
|
5146
|
+
"class": bem$1h("more-popover-icon"),
|
|
5147
5147
|
"classPrefix": props2.iconPrefix
|
|
5148
5148
|
}, null), createVNode("span", {
|
|
5149
|
-
"class": bem$
|
|
5149
|
+
"class": bem$1h("more-popover-text")
|
|
5150
5150
|
}, [action.text])]);
|
|
5151
5151
|
const renderMoreAction = () => {
|
|
5152
5152
|
if (slots.more) {
|
|
5153
5153
|
return createVNode("div", {
|
|
5154
|
-
"class": bem$
|
|
5154
|
+
"class": bem$1h("more-action")
|
|
5155
5155
|
}, [slots.more()]);
|
|
5156
5156
|
}
|
|
5157
5157
|
if (!props2.moreText) {
|
|
@@ -5162,7 +5162,7 @@ var stdin_default$1r = defineComponent({
|
|
|
5162
5162
|
}
|
|
5163
5163
|
return createVNode(Popover, {
|
|
5164
5164
|
"show": morePopoverShow.value,
|
|
5165
|
-
"class": bem$
|
|
5165
|
+
"class": bem$1h("more-popover"),
|
|
5166
5166
|
"placement": "top-start",
|
|
5167
5167
|
"showArrow": false,
|
|
5168
5168
|
"offset": [-5, 8],
|
|
@@ -5182,7 +5182,7 @@ var stdin_default$1r = defineComponent({
|
|
|
5182
5182
|
return;
|
|
5183
5183
|
}
|
|
5184
5184
|
return createVNode(Button, {
|
|
5185
|
-
"class": bem$
|
|
5185
|
+
"class": bem$1h("secondary"),
|
|
5186
5186
|
"type": props2.secondaryType,
|
|
5187
5187
|
"text": props2.secondaryText,
|
|
5188
5188
|
"loading": props2.secondaryLoading,
|
|
@@ -5195,7 +5195,7 @@ var stdin_default$1r = defineComponent({
|
|
|
5195
5195
|
return slots.confirm();
|
|
5196
5196
|
}
|
|
5197
5197
|
return createVNode(Button, {
|
|
5198
|
-
"class": bem$
|
|
5198
|
+
"class": bem$1h("confirm"),
|
|
5199
5199
|
"type": props2.confirmType,
|
|
5200
5200
|
"text": props2.confirmText,
|
|
5201
5201
|
"loading": props2.confirmLoading,
|
|
@@ -5208,9 +5208,9 @@ var stdin_default$1r = defineComponent({
|
|
|
5208
5208
|
return;
|
|
5209
5209
|
}
|
|
5210
5210
|
return createVNode("div", {
|
|
5211
|
-
"class": bem$
|
|
5211
|
+
"class": bem$1h("checkbox-action")
|
|
5212
5212
|
}, [createVNode("div", {
|
|
5213
|
-
"class": bem$
|
|
5213
|
+
"class": bem$1h("checkbox-action-content")
|
|
5214
5214
|
}, [createVNode(Checkbox, {
|
|
5215
5215
|
"modelValue": props2.checkboxActionChecked,
|
|
5216
5216
|
"disabled": props2.checkboxActionDisabled,
|
|
@@ -5225,19 +5225,19 @@ var stdin_default$1r = defineComponent({
|
|
|
5225
5225
|
};
|
|
5226
5226
|
const renderBar = () => createVNode("div", {
|
|
5227
5227
|
"ref": root,
|
|
5228
|
-
"class": [bem$
|
|
5228
|
+
"class": [bem$1h({
|
|
5229
5229
|
fixed: props2.fixed
|
|
5230
5230
|
}), {
|
|
5231
5231
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
5232
5232
|
}]
|
|
5233
5233
|
}, [renderCheckboxAction(), createVNode("div", {
|
|
5234
|
-
"class": bem$
|
|
5234
|
+
"class": bem$1h("actions")
|
|
5235
5235
|
}, [renderIconAction(), renderMoreAction(), renderSecondaryButton(), renderConfirmButton()])]);
|
|
5236
5236
|
return () => props2.placeholder && props2.fixed ? renderPlaceholder(renderBar) : renderBar();
|
|
5237
5237
|
}
|
|
5238
5238
|
});
|
|
5239
|
-
const BottomActionBar = withInstall(stdin_default$
|
|
5240
|
-
const [name$
|
|
5239
|
+
const BottomActionBar = withInstall(stdin_default$1s);
|
|
5240
|
+
const [name$1k, bem$1g, t$f] = createNamespace("calendar");
|
|
5241
5241
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
|
5242
5242
|
function compareMonth(date1, date2) {
|
|
5243
5243
|
const year1 = date1.getFullYear();
|
|
@@ -5346,9 +5346,9 @@ const proxyPickerMethods = (picker, callback) => {
|
|
|
5346
5346
|
}
|
|
5347
5347
|
});
|
|
5348
5348
|
};
|
|
5349
|
-
const [name$
|
|
5350
|
-
var stdin_default$
|
|
5351
|
-
name: name$
|
|
5349
|
+
const [name$1j] = createNamespace("calendar-day");
|
|
5350
|
+
var stdin_default$1r = defineComponent({
|
|
5351
|
+
name: name$1j,
|
|
5352
5352
|
props: {
|
|
5353
5353
|
item: makeRequiredProp(Object),
|
|
5354
5354
|
color: String,
|
|
@@ -5410,7 +5410,7 @@ var stdin_default$1q = defineComponent({
|
|
|
5410
5410
|
} = props2.item;
|
|
5411
5411
|
if (topInfo || slots["top-info"]) {
|
|
5412
5412
|
return createVNode("div", {
|
|
5413
|
-
"class": bem$
|
|
5413
|
+
"class": bem$1g("top-info")
|
|
5414
5414
|
}, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
|
|
5415
5415
|
}
|
|
5416
5416
|
};
|
|
@@ -5420,7 +5420,7 @@ var stdin_default$1q = defineComponent({
|
|
|
5420
5420
|
} = props2.item;
|
|
5421
5421
|
if (bottomInfo || slots["bottom-info"]) {
|
|
5422
5422
|
return createVNode("div", {
|
|
5423
|
-
"class": bem$
|
|
5423
|
+
"class": bem$1g("bottom-info")
|
|
5424
5424
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
|
5425
5425
|
}
|
|
5426
5426
|
};
|
|
@@ -5437,7 +5437,7 @@ var stdin_default$1q = defineComponent({
|
|
|
5437
5437
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
|
5438
5438
|
if (type === "selected") {
|
|
5439
5439
|
return createVNode("div", {
|
|
5440
|
-
"class": bem$
|
|
5440
|
+
"class": bem$1g("selected-day"),
|
|
5441
5441
|
"style": {
|
|
5442
5442
|
width: rowHeight,
|
|
5443
5443
|
height: rowHeight,
|
|
@@ -5454,21 +5454,21 @@ var stdin_default$1q = defineComponent({
|
|
|
5454
5454
|
} = props2.item;
|
|
5455
5455
|
if (type === "placeholder") {
|
|
5456
5456
|
return createVNode("div", {
|
|
5457
|
-
"class": bem$
|
|
5457
|
+
"class": bem$1g("day"),
|
|
5458
5458
|
"style": style.value
|
|
5459
5459
|
}, null);
|
|
5460
5460
|
}
|
|
5461
5461
|
return createVNode("div", {
|
|
5462
5462
|
"role": "gridcell",
|
|
5463
5463
|
"style": style.value,
|
|
5464
|
-
"class": [bem$
|
|
5464
|
+
"class": [bem$1g("day", type), className],
|
|
5465
5465
|
"tabindex": type === "disabled" ? void 0 : -1,
|
|
5466
5466
|
"onClick": onClick
|
|
5467
5467
|
}, [renderContent()]);
|
|
5468
5468
|
};
|
|
5469
5469
|
}
|
|
5470
5470
|
});
|
|
5471
|
-
const [name$
|
|
5471
|
+
const [name$1i] = createNamespace("calendar-month");
|
|
5472
5472
|
const calendarMonthProps = {
|
|
5473
5473
|
date: makeRequiredProp(Date),
|
|
5474
5474
|
type: String,
|
|
@@ -5485,8 +5485,8 @@ const calendarMonthProps = {
|
|
|
5485
5485
|
showMonthTitle: Boolean,
|
|
5486
5486
|
firstDayOfWeek: Number
|
|
5487
5487
|
};
|
|
5488
|
-
var stdin_default$
|
|
5489
|
-
name: name$
|
|
5488
|
+
var stdin_default$1q = defineComponent({
|
|
5489
|
+
name: name$1i,
|
|
5490
5490
|
props: calendarMonthProps,
|
|
5491
5491
|
emits: ["click", "update-height"],
|
|
5492
5492
|
setup(props2, {
|
|
@@ -5591,14 +5591,14 @@ var stdin_default$1p = defineComponent({
|
|
|
5591
5591
|
const renderTitle = () => {
|
|
5592
5592
|
if (props2.showMonthTitle) {
|
|
5593
5593
|
return createVNode("div", {
|
|
5594
|
-
"class": bem$
|
|
5594
|
+
"class": bem$1g("month-title")
|
|
5595
5595
|
}, [title.value]);
|
|
5596
5596
|
}
|
|
5597
5597
|
};
|
|
5598
5598
|
const renderMark = () => {
|
|
5599
5599
|
if (props2.showMark && shouldRender.value) {
|
|
5600
5600
|
return createVNode("div", {
|
|
5601
|
-
"class": bem$
|
|
5601
|
+
"class": bem$1g("month-mark")
|
|
5602
5602
|
}, [props2.date.getMonth() + 1]);
|
|
5603
5603
|
}
|
|
5604
5604
|
};
|
|
@@ -5638,7 +5638,7 @@ var stdin_default$1p = defineComponent({
|
|
|
5638
5638
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
|
5639
5639
|
}
|
|
5640
5640
|
};
|
|
5641
|
-
const renderDay = (item, index) => createVNode(stdin_default$
|
|
5641
|
+
const renderDay = (item, index) => createVNode(stdin_default$1r, {
|
|
5642
5642
|
"item": item,
|
|
5643
5643
|
"index": index,
|
|
5644
5644
|
"color": props2.color,
|
|
@@ -5649,7 +5649,7 @@ var stdin_default$1p = defineComponent({
|
|
|
5649
5649
|
const renderDays = () => createVNode("div", {
|
|
5650
5650
|
"ref": daysRef,
|
|
5651
5651
|
"role": "grid",
|
|
5652
|
-
"class": bem$
|
|
5652
|
+
"class": bem$1g("days")
|
|
5653
5653
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
|
5654
5654
|
useExpose({
|
|
5655
5655
|
getTitle,
|
|
@@ -5659,14 +5659,14 @@ var stdin_default$1p = defineComponent({
|
|
|
5659
5659
|
disabledDays
|
|
5660
5660
|
});
|
|
5661
5661
|
return () => createVNode("div", {
|
|
5662
|
-
"class": bem$
|
|
5662
|
+
"class": bem$1g("month"),
|
|
5663
5663
|
"ref": monthRef
|
|
5664
5664
|
}, [renderTitle(), renderDays()]);
|
|
5665
5665
|
}
|
|
5666
5666
|
});
|
|
5667
|
-
const [name$
|
|
5668
|
-
var stdin_default$
|
|
5669
|
-
name: name$
|
|
5667
|
+
const [name$1h] = createNamespace("calendar-header");
|
|
5668
|
+
var stdin_default$1p = defineComponent({
|
|
5669
|
+
name: name$1h,
|
|
5670
5670
|
props: {
|
|
5671
5671
|
title: String,
|
|
5672
5672
|
subtitle: String,
|
|
@@ -5684,7 +5684,7 @@ var stdin_default$1o = defineComponent({
|
|
|
5684
5684
|
const text = props2.title || t$f("title");
|
|
5685
5685
|
const title = slots.title ? slots.title() : text;
|
|
5686
5686
|
return createVNode("div", {
|
|
5687
|
-
"class": bem$
|
|
5687
|
+
"class": bem$1g("header-title")
|
|
5688
5688
|
}, [title]);
|
|
5689
5689
|
}
|
|
5690
5690
|
};
|
|
@@ -5693,7 +5693,7 @@ var stdin_default$1o = defineComponent({
|
|
|
5693
5693
|
if (props2.showSubtitle) {
|
|
5694
5694
|
const title = slots.subtitle ? slots.subtitle() : props2.subtitle;
|
|
5695
5695
|
return createVNode("div", {
|
|
5696
|
-
"class": bem$
|
|
5696
|
+
"class": bem$1g("header-subtitle"),
|
|
5697
5697
|
"onClick": onClickSubtitle
|
|
5698
5698
|
}, [title]);
|
|
5699
5699
|
}
|
|
@@ -5705,13 +5705,13 @@ var stdin_default$1o = defineComponent({
|
|
|
5705
5705
|
const weekdays = t$f("weekdays");
|
|
5706
5706
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
|
5707
5707
|
return createVNode("div", {
|
|
5708
|
-
"class": bem$
|
|
5708
|
+
"class": bem$1g("weekdays")
|
|
5709
5709
|
}, [renderWeekDays2.map((text) => createVNode("span", {
|
|
5710
|
-
"class": bem$
|
|
5710
|
+
"class": bem$1g("weekday")
|
|
5711
5711
|
}, [text]))]);
|
|
5712
5712
|
};
|
|
5713
5713
|
return () => createVNode("div", {
|
|
5714
|
-
"class": bem$
|
|
5714
|
+
"class": bem$1g("header")
|
|
5715
5715
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
|
5716
5716
|
}
|
|
5717
5717
|
});
|
|
@@ -5762,8 +5762,8 @@ const calendarProps = {
|
|
|
5762
5762
|
validator: (val) => val >= 0 && val <= 6
|
|
5763
5763
|
}
|
|
5764
5764
|
};
|
|
5765
|
-
var stdin_default$
|
|
5766
|
-
name: name$
|
|
5765
|
+
var stdin_default$1o = defineComponent({
|
|
5766
|
+
name: name$1k,
|
|
5767
5767
|
props: calendarProps,
|
|
5768
5768
|
emits: ["select", "confirm", "unselect", "month-show", "over-range", "update:show", "click-subtitle"],
|
|
5769
5769
|
setup(props2, {
|
|
@@ -6020,7 +6020,7 @@ var stdin_default$1n = defineComponent({
|
|
|
6020
6020
|
const updateShow = (value) => emit("update:show", value);
|
|
6021
6021
|
const renderMonth = (date, index) => {
|
|
6022
6022
|
const showMonthTitle = index !== 0 || !props2.showSubtitle;
|
|
6023
|
-
return createVNode(stdin_default$
|
|
6023
|
+
return createVNode(stdin_default$1q, mergeProps({
|
|
6024
6024
|
"ref": setMonthRefs(index),
|
|
6025
6025
|
"date": date,
|
|
6026
6026
|
"currentDate": currentDate.value,
|
|
@@ -6043,7 +6043,7 @@ var stdin_default$1n = defineComponent({
|
|
|
6043
6043
|
"block": true,
|
|
6044
6044
|
"type": "primary",
|
|
6045
6045
|
"color": props2.color,
|
|
6046
|
-
"class": bem$
|
|
6046
|
+
"class": bem$1g("confirm"),
|
|
6047
6047
|
"disabled": disabled,
|
|
6048
6048
|
"nativeType": "button",
|
|
6049
6049
|
"onClick": onConfirm
|
|
@@ -6055,13 +6055,13 @@ var stdin_default$1n = defineComponent({
|
|
|
6055
6055
|
}
|
|
6056
6056
|
};
|
|
6057
6057
|
const renderFooter = () => createVNode("div", {
|
|
6058
|
-
"class": [bem$
|
|
6058
|
+
"class": [bem$1g("footer"), {
|
|
6059
6059
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
6060
6060
|
}]
|
|
6061
6061
|
}, [renderFooterButton()]);
|
|
6062
6062
|
const renderCalendar = () => createVNode("div", {
|
|
6063
|
-
"class": bem$
|
|
6064
|
-
}, [createVNode(stdin_default$
|
|
6063
|
+
"class": bem$1g()
|
|
6064
|
+
}, [createVNode(stdin_default$1p, {
|
|
6065
6065
|
"title": props2.title,
|
|
6066
6066
|
"subtitle": subtitle.value,
|
|
6067
6067
|
"showTitle": props2.showTitle,
|
|
@@ -6070,7 +6070,7 @@ var stdin_default$1n = defineComponent({
|
|
|
6070
6070
|
"onClick-subtitle": (event) => emit("click-subtitle", event)
|
|
6071
6071
|
}, pick(slots, ["title", "subtitle"])), createVNode("div", {
|
|
6072
6072
|
"ref": bodyRef,
|
|
6073
|
-
"class": bem$
|
|
6073
|
+
"class": bem$1g("body"),
|
|
6074
6074
|
"onScroll": onScroll
|
|
6075
6075
|
}, [months.value.map(renderMonth)]), renderFooter()]);
|
|
6076
6076
|
watch(() => props2.show, init);
|
|
@@ -6089,7 +6089,7 @@ var stdin_default$1n = defineComponent({
|
|
|
6089
6089
|
if (props2.poppable) {
|
|
6090
6090
|
return createVNode(Popup, {
|
|
6091
6091
|
"show": props2.show,
|
|
6092
|
-
"class": bem$
|
|
6092
|
+
"class": bem$1g("popup"),
|
|
6093
6093
|
"round": props2.round,
|
|
6094
6094
|
"position": props2.position,
|
|
6095
6095
|
"closeable": props2.showTitle || props2.showSubtitle,
|
|
@@ -6106,8 +6106,8 @@ var stdin_default$1n = defineComponent({
|
|
|
6106
6106
|
};
|
|
6107
6107
|
}
|
|
6108
6108
|
});
|
|
6109
|
-
const Calendar = withInstall(stdin_default$
|
|
6110
|
-
const [name$
|
|
6109
|
+
const Calendar = withInstall(stdin_default$1o);
|
|
6110
|
+
const [name$1g, bem$1f] = createNamespace("image");
|
|
6111
6111
|
const imageProps = {
|
|
6112
6112
|
src: String,
|
|
6113
6113
|
alt: String,
|
|
@@ -6126,8 +6126,8 @@ const imageProps = {
|
|
|
6126
6126
|
showLoading: truthProp,
|
|
6127
6127
|
loadingIcon: makeStringProp("photo")
|
|
6128
6128
|
};
|
|
6129
|
-
var stdin_default$
|
|
6130
|
-
name: name$
|
|
6129
|
+
var stdin_default$1n = defineComponent({
|
|
6130
|
+
name: name$1g,
|
|
6131
6131
|
props: imageProps,
|
|
6132
6132
|
emits: ["load", "error"],
|
|
6133
6133
|
setup(props2, {
|
|
@@ -6178,13 +6178,13 @@ var stdin_default$1m = defineComponent({
|
|
|
6178
6178
|
const renderPlaceholder = () => {
|
|
6179
6179
|
if (loading.value && props2.showLoading) {
|
|
6180
6180
|
return createVNode("div", {
|
|
6181
|
-
"class": bem$
|
|
6182
|
-
}, [renderIcon(props2.loadingIcon, bem$
|
|
6181
|
+
"class": bem$1f("loading")
|
|
6182
|
+
}, [renderIcon(props2.loadingIcon, bem$1f("loading-icon"), slots.loading)]);
|
|
6183
6183
|
}
|
|
6184
6184
|
if (error.value && props2.showError) {
|
|
6185
6185
|
return createVNode("div", {
|
|
6186
|
-
"class": bem$
|
|
6187
|
-
}, [renderIcon(props2.errorIcon, bem$
|
|
6186
|
+
"class": bem$1f("error")
|
|
6187
|
+
}, [renderIcon(props2.errorIcon, bem$1f("error-icon"), slots.error)]);
|
|
6188
6188
|
}
|
|
6189
6189
|
};
|
|
6190
6190
|
const renderImage = () => {
|
|
@@ -6193,7 +6193,7 @@ var stdin_default$1m = defineComponent({
|
|
|
6193
6193
|
}
|
|
6194
6194
|
const attrs = {
|
|
6195
6195
|
alt: props2.alt,
|
|
6196
|
-
class: bem$
|
|
6196
|
+
class: bem$1f("img"),
|
|
6197
6197
|
style: {
|
|
6198
6198
|
objectFit: props2.fit,
|
|
6199
6199
|
objectPosition: props2.position
|
|
@@ -6242,7 +6242,7 @@ var stdin_default$1m = defineComponent({
|
|
|
6242
6242
|
return () => {
|
|
6243
6243
|
var _a;
|
|
6244
6244
|
return createVNode("div", {
|
|
6245
|
-
"class": bem$
|
|
6245
|
+
"class": bem$1f({
|
|
6246
6246
|
round: props2.round,
|
|
6247
6247
|
block: props2.block
|
|
6248
6248
|
}),
|
|
@@ -6251,8 +6251,8 @@ var stdin_default$1m = defineComponent({
|
|
|
6251
6251
|
};
|
|
6252
6252
|
}
|
|
6253
6253
|
});
|
|
6254
|
-
const Image$1 = withInstall(stdin_default$
|
|
6255
|
-
const [name$
|
|
6254
|
+
const Image$1 = withInstall(stdin_default$1n);
|
|
6255
|
+
const [name$1f, bem$1e] = createNamespace("card");
|
|
6256
6256
|
const cardProps = {
|
|
6257
6257
|
tag: String,
|
|
6258
6258
|
num: numericProp,
|
|
@@ -6266,8 +6266,8 @@ const cardProps = {
|
|
|
6266
6266
|
thumbLink: String,
|
|
6267
6267
|
originPrice: numericProp
|
|
6268
6268
|
};
|
|
6269
|
-
var stdin_default$
|
|
6270
|
-
name: name$
|
|
6269
|
+
var stdin_default$1m = defineComponent({
|
|
6270
|
+
name: name$1f,
|
|
6271
6271
|
props: cardProps,
|
|
6272
6272
|
emits: ["click-thumb"],
|
|
6273
6273
|
setup(props2, {
|
|
@@ -6280,14 +6280,14 @@ var stdin_default$1l = defineComponent({
|
|
|
6280
6280
|
}
|
|
6281
6281
|
if (props2.title) {
|
|
6282
6282
|
return createVNode("div", {
|
|
6283
|
-
"class": [bem$
|
|
6283
|
+
"class": [bem$1e("title"), "van-multi-ellipsis--l2"]
|
|
6284
6284
|
}, [props2.title]);
|
|
6285
6285
|
}
|
|
6286
6286
|
};
|
|
6287
6287
|
const renderThumbTag = () => {
|
|
6288
6288
|
if (slots.tag || props2.tag) {
|
|
6289
6289
|
return createVNode("div", {
|
|
6290
|
-
"class": bem$
|
|
6290
|
+
"class": bem$1e("tag")
|
|
6291
6291
|
}, [slots.tag ? slots.tag() : createVNode(Tag, {
|
|
6292
6292
|
"mark": true,
|
|
6293
6293
|
"type": "danger"
|
|
@@ -6312,7 +6312,7 @@ var stdin_default$1l = defineComponent({
|
|
|
6312
6312
|
if (slots.thumb || props2.thumb) {
|
|
6313
6313
|
return createVNode("a", {
|
|
6314
6314
|
"href": props2.thumbLink,
|
|
6315
|
-
"class": bem$
|
|
6315
|
+
"class": bem$1e("thumb"),
|
|
6316
6316
|
"onClick": (event) => emit("click-thumb", event)
|
|
6317
6317
|
}, [renderThumbImage(), renderThumbTag()]);
|
|
6318
6318
|
}
|
|
@@ -6323,18 +6323,18 @@ var stdin_default$1l = defineComponent({
|
|
|
6323
6323
|
}
|
|
6324
6324
|
if (props2.desc) {
|
|
6325
6325
|
return createVNode("div", {
|
|
6326
|
-
"class": [bem$
|
|
6326
|
+
"class": [bem$1e("desc"), "van-ellipsis"]
|
|
6327
6327
|
}, [props2.desc]);
|
|
6328
6328
|
}
|
|
6329
6329
|
};
|
|
6330
6330
|
const renderPriceText = () => {
|
|
6331
6331
|
const priceArr = props2.price.toString().split(".");
|
|
6332
6332
|
return createVNode("div", null, [createVNode("span", {
|
|
6333
|
-
"class": bem$
|
|
6333
|
+
"class": bem$1e("price-currency")
|
|
6334
6334
|
}, [props2.currency]), createVNode("span", {
|
|
6335
|
-
"class": bem$
|
|
6335
|
+
"class": bem$1e("price-integer")
|
|
6336
6336
|
}, [priceArr[0]]), createTextVNode("."), createVNode("span", {
|
|
6337
|
-
"class": bem$
|
|
6337
|
+
"class": bem$1e("price-decimal")
|
|
6338
6338
|
}, [priceArr[1]])]);
|
|
6339
6339
|
};
|
|
6340
6340
|
return () => {
|
|
@@ -6344,33 +6344,33 @@ var stdin_default$1l = defineComponent({
|
|
|
6344
6344
|
const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
|
|
6345
6345
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
|
6346
6346
|
const Price = showPrice && createVNode("div", {
|
|
6347
|
-
"class": bem$
|
|
6347
|
+
"class": bem$1e("price")
|
|
6348
6348
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
|
6349
6349
|
const OriginPrice = showOriginPrice && createVNode("div", {
|
|
6350
|
-
"class": bem$
|
|
6350
|
+
"class": bem$1e("origin-price")
|
|
6351
6351
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
|
|
6352
6352
|
const Num = showNum && createVNode("div", {
|
|
6353
|
-
"class": bem$
|
|
6353
|
+
"class": bem$1e("num")
|
|
6354
6354
|
}, [slots.num ? slots.num() : `x${props2.num}`]);
|
|
6355
6355
|
const Footer = slots.footer && createVNode("div", {
|
|
6356
|
-
"class": bem$
|
|
6356
|
+
"class": bem$1e("footer")
|
|
6357
6357
|
}, [slots.footer()]);
|
|
6358
6358
|
const Bottom = showBottom && createVNode("div", {
|
|
6359
|
-
"class": bem$
|
|
6359
|
+
"class": bem$1e("bottom")
|
|
6360
6360
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
|
6361
6361
|
return createVNode("div", {
|
|
6362
|
-
"class": bem$
|
|
6362
|
+
"class": bem$1e()
|
|
6363
6363
|
}, [createVNode("div", {
|
|
6364
|
-
"class": bem$
|
|
6364
|
+
"class": bem$1e("header")
|
|
6365
6365
|
}, [renderThumb(), createVNode("div", {
|
|
6366
|
-
"class": bem$
|
|
6366
|
+
"class": bem$1e("content", {
|
|
6367
6367
|
centered: props2.centered
|
|
6368
6368
|
})
|
|
6369
6369
|
}, [createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
|
6370
6370
|
};
|
|
6371
6371
|
}
|
|
6372
6372
|
});
|
|
6373
|
-
const Card = withInstall(stdin_default$
|
|
6373
|
+
const Card = withInstall(stdin_default$1m);
|
|
6374
6374
|
function scrollLeftTo(scroller, to, duration) {
|
|
6375
6375
|
let count = 0;
|
|
6376
6376
|
const from = scroller.scrollLeft;
|
|
@@ -6426,7 +6426,7 @@ function useVisibilityChange(target, onChange) {
|
|
|
6426
6426
|
onBeforeUnmount(unobserve);
|
|
6427
6427
|
onMountedOrActivated(observe);
|
|
6428
6428
|
}
|
|
6429
|
-
const [name$
|
|
6429
|
+
const [name$1e, bem$1d] = createNamespace("sticky");
|
|
6430
6430
|
const stickyProps = {
|
|
6431
6431
|
zIndex: numericProp,
|
|
6432
6432
|
position: makeStringProp("top"),
|
|
@@ -6434,8 +6434,8 @@ const stickyProps = {
|
|
|
6434
6434
|
offsetTop: makeNumericProp(0),
|
|
6435
6435
|
offsetBottom: makeNumericProp(0)
|
|
6436
6436
|
};
|
|
6437
|
-
var stdin_default$
|
|
6438
|
-
name: name$
|
|
6437
|
+
var stdin_default$1l = defineComponent({
|
|
6438
|
+
name: name$1e,
|
|
6439
6439
|
props: stickyProps,
|
|
6440
6440
|
emits: ["scroll", "change"],
|
|
6441
6441
|
setup(props2, {
|
|
@@ -6532,7 +6532,7 @@ var stdin_default$1k = defineComponent({
|
|
|
6532
6532
|
"ref": root,
|
|
6533
6533
|
"style": rootStyle.value
|
|
6534
6534
|
}, [createVNode("div", {
|
|
6535
|
-
"class": bem$
|
|
6535
|
+
"class": bem$1d({
|
|
6536
6536
|
fixed: state.fixed
|
|
6537
6537
|
}),
|
|
6538
6538
|
"style": stickyStyle.value
|
|
@@ -6540,10 +6540,10 @@ var stdin_default$1k = defineComponent({
|
|
|
6540
6540
|
};
|
|
6541
6541
|
}
|
|
6542
6542
|
});
|
|
6543
|
-
const Sticky = withInstall(stdin_default$
|
|
6544
|
-
const [name$
|
|
6545
|
-
var stdin_default$
|
|
6546
|
-
name: name$
|
|
6543
|
+
const Sticky = withInstall(stdin_default$1l);
|
|
6544
|
+
const [name$1d, bem$1c] = createNamespace("tab");
|
|
6545
|
+
var stdin_default$1k = defineComponent({
|
|
6546
|
+
name: name$1d,
|
|
6547
6547
|
props: {
|
|
6548
6548
|
id: String,
|
|
6549
6549
|
dot: Boolean,
|
|
@@ -6593,18 +6593,19 @@ var stdin_default$1j = defineComponent({
|
|
|
6593
6593
|
});
|
|
6594
6594
|
const renderText = () => {
|
|
6595
6595
|
const Text2 = createVNode("span", {
|
|
6596
|
-
"class": bem$
|
|
6596
|
+
"class": bem$1c("text", {
|
|
6597
6597
|
ellipsis: !props2.scrollable
|
|
6598
6598
|
})
|
|
6599
6599
|
}, [slots.title ? slots.title() : props2.title]);
|
|
6600
6600
|
const Content = createVNode("span", {
|
|
6601
|
-
"class": bem$
|
|
6601
|
+
"class": bem$1c("title")
|
|
6602
6602
|
}, [props2.icon && createVNode(Icon, {
|
|
6603
6603
|
"name": props2.icon,
|
|
6604
|
-
"class": bem$
|
|
6604
|
+
"class": bem$1c("icon")
|
|
6605
6605
|
}, null), Text2]);
|
|
6606
6606
|
if (props2.dot || isDef(props2.badge) && props2.badge !== "") {
|
|
6607
6607
|
return createVNode(Badge, {
|
|
6608
|
+
"class": bem$1c("badge"),
|
|
6608
6609
|
"dot": props2.dot,
|
|
6609
6610
|
"content": props2.badge,
|
|
6610
6611
|
"showZero": props2.showZeroBadge
|
|
@@ -6617,7 +6618,7 @@ var stdin_default$1j = defineComponent({
|
|
|
6617
6618
|
return () => createVNode("div", {
|
|
6618
6619
|
"id": props2.id,
|
|
6619
6620
|
"role": "tab",
|
|
6620
|
-
"class": [bem$
|
|
6621
|
+
"class": [bem$1c([props2.type, {
|
|
6621
6622
|
grow: props2.scrollable && !props2.shrink,
|
|
6622
6623
|
shrink: props2.shrink,
|
|
6623
6624
|
active: props2.isActive,
|
|
@@ -6631,7 +6632,7 @@ var stdin_default$1j = defineComponent({
|
|
|
6631
6632
|
}, [renderText()]);
|
|
6632
6633
|
}
|
|
6633
6634
|
});
|
|
6634
|
-
const [name$
|
|
6635
|
+
const [name$1c, bem$1b] = createNamespace("swipe");
|
|
6635
6636
|
const swipeProps = {
|
|
6636
6637
|
loop: truthProp,
|
|
6637
6638
|
width: numericProp,
|
|
@@ -6646,9 +6647,9 @@ const swipeProps = {
|
|
|
6646
6647
|
showIndicators: truthProp,
|
|
6647
6648
|
stopPropagation: truthProp
|
|
6648
6649
|
};
|
|
6649
|
-
const SWIPE_KEY = Symbol(name$
|
|
6650
|
-
var stdin_default$
|
|
6651
|
-
name: name$
|
|
6650
|
+
const SWIPE_KEY = Symbol(name$1c);
|
|
6651
|
+
var stdin_default$1j = defineComponent({
|
|
6652
|
+
name: name$1c,
|
|
6652
6653
|
props: swipeProps,
|
|
6653
6654
|
emits: ["change"],
|
|
6654
6655
|
setup(props2, {
|
|
@@ -6910,7 +6911,7 @@ var stdin_default$1i = defineComponent({
|
|
|
6910
6911
|
} : void 0;
|
|
6911
6912
|
return createVNode("i", {
|
|
6912
6913
|
"style": style,
|
|
6913
|
-
"class": bem$
|
|
6914
|
+
"class": bem$1b("indicator", {
|
|
6914
6915
|
active
|
|
6915
6916
|
})
|
|
6916
6917
|
}, null);
|
|
@@ -6924,7 +6925,7 @@ var stdin_default$1i = defineComponent({
|
|
|
6924
6925
|
}
|
|
6925
6926
|
if (props2.showIndicators && count.value > 1) {
|
|
6926
6927
|
return createVNode("div", {
|
|
6927
|
-
"class": bem$
|
|
6928
|
+
"class": bem$1b("indicators", {
|
|
6928
6929
|
vertical: props2.vertical
|
|
6929
6930
|
})
|
|
6930
6931
|
}, [Array(count.value).fill("").map(renderDot)]);
|
|
@@ -6966,11 +6967,11 @@ var stdin_default$1i = defineComponent({
|
|
|
6966
6967
|
var _a;
|
|
6967
6968
|
return createVNode("div", {
|
|
6968
6969
|
"ref": root,
|
|
6969
|
-
"class": bem$
|
|
6970
|
+
"class": bem$1b()
|
|
6970
6971
|
}, [createVNode("div", {
|
|
6971
6972
|
"ref": track,
|
|
6972
6973
|
"style": trackStyle.value,
|
|
6973
|
-
"class": bem$
|
|
6974
|
+
"class": bem$1b("track", {
|
|
6974
6975
|
vertical: props2.vertical
|
|
6975
6976
|
}),
|
|
6976
6977
|
"onTouchstartPassive": onTouchStart,
|
|
@@ -6980,10 +6981,10 @@ var stdin_default$1i = defineComponent({
|
|
|
6980
6981
|
};
|
|
6981
6982
|
}
|
|
6982
6983
|
});
|
|
6983
|
-
const Swipe = withInstall(stdin_default$
|
|
6984
|
-
const [name$
|
|
6985
|
-
var stdin_default$
|
|
6986
|
-
name: name$
|
|
6984
|
+
const Swipe = withInstall(stdin_default$1j);
|
|
6985
|
+
const [name$1b, bem$1a] = createNamespace("tabs");
|
|
6986
|
+
var stdin_default$1i = defineComponent({
|
|
6987
|
+
name: name$1b,
|
|
6987
6988
|
props: {
|
|
6988
6989
|
count: makeRequiredProp(Number),
|
|
6989
6990
|
inited: Boolean,
|
|
@@ -7007,7 +7008,7 @@ var stdin_default$1h = defineComponent({
|
|
|
7007
7008
|
return createVNode(Swipe, {
|
|
7008
7009
|
"ref": swipeRef,
|
|
7009
7010
|
"loop": false,
|
|
7010
|
-
"class": bem$
|
|
7011
|
+
"class": bem$1a("track"),
|
|
7011
7012
|
"duration": +props2.duration * 1e3,
|
|
7012
7013
|
"touchable": props2.swipeable,
|
|
7013
7014
|
"lazyRender": props2.lazyRender,
|
|
@@ -7035,7 +7036,7 @@ var stdin_default$1h = defineComponent({
|
|
|
7035
7036
|
swipeRef
|
|
7036
7037
|
});
|
|
7037
7038
|
return () => createVNode("div", {
|
|
7038
|
-
"class": bem$
|
|
7039
|
+
"class": bem$1a("content", {
|
|
7039
7040
|
animated: props2.animated || props2.swipeable
|
|
7040
7041
|
})
|
|
7041
7042
|
}, [renderChildren()]);
|
|
@@ -7060,7 +7061,7 @@ var __spreadValues$1 = (a, b) => {
|
|
|
7060
7061
|
return a;
|
|
7061
7062
|
};
|
|
7062
7063
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7063
|
-
const [name$
|
|
7064
|
+
const [name$1a, bem$19] = createNamespace("tabs");
|
|
7064
7065
|
const tabsProps = {
|
|
7065
7066
|
type: makeStringProp("line"),
|
|
7066
7067
|
color: String,
|
|
@@ -7087,9 +7088,9 @@ const tabsProps = {
|
|
|
7087
7088
|
moreTitle: String,
|
|
7088
7089
|
moreOptions: makeArrayProp()
|
|
7089
7090
|
};
|
|
7090
|
-
const TABS_KEY = Symbol(name$
|
|
7091
|
-
var stdin_default$
|
|
7092
|
-
name: name$
|
|
7091
|
+
const TABS_KEY = Symbol(name$1a);
|
|
7092
|
+
var stdin_default$1h = defineComponent({
|
|
7093
|
+
name: name$1a,
|
|
7093
7094
|
props: tabsProps,
|
|
7094
7095
|
emits: ["click", "change", "scroll", "disabled", "rendered", "click-tab", "update:active", "click-more", "select-more", "update:showMore"],
|
|
7095
7096
|
setup(props2, {
|
|
@@ -7313,12 +7314,12 @@ var stdin_default$1g = defineComponent({
|
|
|
7313
7314
|
}));
|
|
7314
7315
|
return actions.map((action, index) => __spreadProps(__spreadValues$1({}, action), {
|
|
7315
7316
|
color: index === state.currentIndex ? "var(--van-primary-color)" : action.color,
|
|
7316
|
-
className: [action.className, bem$
|
|
7317
|
+
className: [action.className, bem$19("more-option", {
|
|
7317
7318
|
active: index === state.currentIndex
|
|
7318
7319
|
})]
|
|
7319
7320
|
}));
|
|
7320
7321
|
});
|
|
7321
|
-
const renderNav = () => children.map((item, index) => createVNode(stdin_default$
|
|
7322
|
+
const renderNav = () => children.map((item, index) => createVNode(stdin_default$1k, mergeProps({
|
|
7322
7323
|
"key": item.id,
|
|
7323
7324
|
"id": `${id}-${index}`,
|
|
7324
7325
|
"ref": setTitleRefs(index),
|
|
@@ -7339,7 +7340,7 @@ var stdin_default$1g = defineComponent({
|
|
|
7339
7340
|
const renderLine = () => {
|
|
7340
7341
|
if (props2.type === "line" && children.length) {
|
|
7341
7342
|
return createVNode("div", {
|
|
7342
|
-
"class": bem$
|
|
7343
|
+
"class": bem$19("line"),
|
|
7343
7344
|
"style": state.lineStyle
|
|
7344
7345
|
}, null);
|
|
7345
7346
|
}
|
|
@@ -7353,13 +7354,13 @@ var stdin_default$1g = defineComponent({
|
|
|
7353
7354
|
} = props2;
|
|
7354
7355
|
const Header = [createVNode("div", {
|
|
7355
7356
|
"ref": sticky ? void 0 : wrapRef,
|
|
7356
|
-
"class": [bem$
|
|
7357
|
+
"class": [bem$19("wrap"), {
|
|
7357
7358
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
|
7358
7359
|
}]
|
|
7359
7360
|
}, [createVNode("div", {
|
|
7360
7361
|
"ref": navRef,
|
|
7361
7362
|
"role": "tablist",
|
|
7362
|
-
"class": bem$
|
|
7363
|
+
"class": bem$19("nav", [type, {
|
|
7363
7364
|
shrink: props2.shrink,
|
|
7364
7365
|
complete: scrollable.value,
|
|
7365
7366
|
more: props2.more
|
|
@@ -7369,7 +7370,7 @@ var stdin_default$1g = defineComponent({
|
|
|
7369
7370
|
}, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)]), props2.more && createVNode("button", {
|
|
7370
7371
|
"ref": moreRef,
|
|
7371
7372
|
"type": "button",
|
|
7372
|
-
"class": bem$
|
|
7373
|
+
"class": bem$19("more"),
|
|
7373
7374
|
"aria-label": "More tabs",
|
|
7374
7375
|
"onClick": onClickMore
|
|
7375
7376
|
}, [createVNode(Icon, {
|
|
@@ -7443,14 +7444,14 @@ var stdin_default$1g = defineComponent({
|
|
|
7443
7444
|
});
|
|
7444
7445
|
return () => createVNode("div", {
|
|
7445
7446
|
"ref": root,
|
|
7446
|
-
"class": bem$
|
|
7447
|
+
"class": bem$19([props2.type])
|
|
7447
7448
|
}, [props2.sticky ? createVNode(Sticky, {
|
|
7448
7449
|
"container": root.value,
|
|
7449
7450
|
"offsetTop": offsetTopPx.value,
|
|
7450
7451
|
"onScroll": onStickyScroll
|
|
7451
7452
|
}, {
|
|
7452
7453
|
default: () => [renderHeader()]
|
|
7453
|
-
}) : renderHeader(), createVNode(stdin_default$
|
|
7454
|
+
}) : renderHeader(), createVNode(stdin_default$1i, {
|
|
7454
7455
|
"ref": contentRef,
|
|
7455
7456
|
"count": children.length,
|
|
7456
7457
|
"inited": state.inited,
|
|
@@ -7470,9 +7471,9 @@ var stdin_default$1g = defineComponent({
|
|
|
7470
7471
|
});
|
|
7471
7472
|
const TAB_STATUS_KEY = Symbol();
|
|
7472
7473
|
const useTabStatus = () => inject(TAB_STATUS_KEY, null);
|
|
7473
|
-
const [name$
|
|
7474
|
-
var stdin_default$
|
|
7475
|
-
name: name$
|
|
7474
|
+
const [name$19, bem$18] = createNamespace("swipe-item");
|
|
7475
|
+
var stdin_default$1g = defineComponent({
|
|
7476
|
+
name: name$19,
|
|
7476
7477
|
setup(props2, {
|
|
7477
7478
|
slots
|
|
7478
7479
|
}) {
|
|
@@ -7537,14 +7538,14 @@ var stdin_default$1f = defineComponent({
|
|
|
7537
7538
|
return () => {
|
|
7538
7539
|
var _a;
|
|
7539
7540
|
return createVNode("div", {
|
|
7540
|
-
"class": bem$
|
|
7541
|
+
"class": bem$18(),
|
|
7541
7542
|
"style": style.value
|
|
7542
7543
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
|
7543
7544
|
};
|
|
7544
7545
|
}
|
|
7545
7546
|
});
|
|
7546
|
-
const SwipeItem = withInstall(stdin_default$
|
|
7547
|
-
const [name$
|
|
7547
|
+
const SwipeItem = withInstall(stdin_default$1g);
|
|
7548
|
+
const [name$18, bem$17] = createNamespace("tab");
|
|
7548
7549
|
const tabProps = extend({}, routeProps, {
|
|
7549
7550
|
dot: Boolean,
|
|
7550
7551
|
name: numericProp,
|
|
@@ -7556,8 +7557,8 @@ const tabProps = extend({}, routeProps, {
|
|
|
7556
7557
|
titleStyle: [String, Object],
|
|
7557
7558
|
showZeroBadge: truthProp
|
|
7558
7559
|
});
|
|
7559
|
-
var stdin_default$
|
|
7560
|
-
name: name$
|
|
7560
|
+
var stdin_default$1f = defineComponent({
|
|
7561
|
+
name: name$18,
|
|
7561
7562
|
props: tabProps,
|
|
7562
7563
|
setup(props2, {
|
|
7563
7564
|
slots
|
|
@@ -7625,7 +7626,7 @@ var stdin_default$1e = defineComponent({
|
|
|
7625
7626
|
return createVNode(SwipeItem, {
|
|
7626
7627
|
"id": id,
|
|
7627
7628
|
"role": "tabpanel",
|
|
7628
|
-
"class": bem$
|
|
7629
|
+
"class": bem$17("panel-wrapper", {
|
|
7629
7630
|
inactive: hasInactiveClass.value
|
|
7630
7631
|
}),
|
|
7631
7632
|
"tabindex": active.value ? 0 : -1,
|
|
@@ -7635,7 +7636,7 @@ var stdin_default$1e = defineComponent({
|
|
|
7635
7636
|
default: () => {
|
|
7636
7637
|
var _a2;
|
|
7637
7638
|
return [createVNode("div", {
|
|
7638
|
-
"class": bem$
|
|
7639
|
+
"class": bem$17("panel")
|
|
7639
7640
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
|
7640
7641
|
}
|
|
7641
7642
|
});
|
|
@@ -7648,16 +7649,16 @@ var stdin_default$1e = defineComponent({
|
|
|
7648
7649
|
return withDirectives(createVNode("div", {
|
|
7649
7650
|
"id": id,
|
|
7650
7651
|
"role": "tabpanel",
|
|
7651
|
-
"class": bem$
|
|
7652
|
+
"class": bem$17("panel"),
|
|
7652
7653
|
"tabindex": show ? 0 : -1,
|
|
7653
7654
|
"aria-labelledby": label
|
|
7654
7655
|
}, [Content]), [[vShow, show]]);
|
|
7655
7656
|
};
|
|
7656
7657
|
}
|
|
7657
7658
|
});
|
|
7658
|
-
const Tab = withInstall(stdin_default$
|
|
7659
|
-
const Tabs = withInstall(stdin_default$
|
|
7660
|
-
const [name$
|
|
7659
|
+
const Tab = withInstall(stdin_default$1f);
|
|
7660
|
+
const Tabs = withInstall(stdin_default$1h);
|
|
7661
|
+
const [name$17, bem$16, t$e] = createNamespace("cascader");
|
|
7661
7662
|
const cascaderProps = {
|
|
7662
7663
|
title: String,
|
|
7663
7664
|
options: makeArrayProp(),
|
|
@@ -7670,8 +7671,8 @@ const cascaderProps = {
|
|
|
7670
7671
|
placeholder: String,
|
|
7671
7672
|
activeColor: String
|
|
7672
7673
|
};
|
|
7673
|
-
var stdin_default$
|
|
7674
|
-
name: name$
|
|
7674
|
+
var stdin_default$1e = defineComponent({
|
|
7675
|
+
name: name$17,
|
|
7675
7676
|
props: cascaderProps,
|
|
7676
7677
|
emits: ["close", "change", "finish", "click-tab", "update:modelValue"],
|
|
7677
7678
|
setup(props2, {
|
|
@@ -7779,12 +7780,12 @@ var stdin_default$1d = defineComponent({
|
|
|
7779
7780
|
title
|
|
7780
7781
|
}) => emit("click-tab", name2, title);
|
|
7781
7782
|
const renderHeader = () => props2.showHeader ? createVNode("div", {
|
|
7782
|
-
"class": bem$
|
|
7783
|
+
"class": bem$16("header")
|
|
7783
7784
|
}, [createVNode("h2", {
|
|
7784
|
-
"class": bem$
|
|
7785
|
+
"class": bem$16("title")
|
|
7785
7786
|
}, [slots.title ? slots.title() : props2.title]), props2.closeable ? createVNode(Icon, {
|
|
7786
7787
|
"name": props2.closeIcon,
|
|
7787
|
-
"class": [bem$
|
|
7788
|
+
"class": [bem$16("close-icon"), HAPTICS_FEEDBACK],
|
|
7788
7789
|
"onClick": onClose
|
|
7789
7790
|
}, null) : null]) : null;
|
|
7790
7791
|
const renderOption = (option, selectedOption, tabIndex) => {
|
|
@@ -7799,7 +7800,7 @@ var stdin_default$1d = defineComponent({
|
|
|
7799
7800
|
}) : createVNode("span", null, [option[textKey]]);
|
|
7800
7801
|
return createVNode("li", {
|
|
7801
7802
|
"role": "menuitemradio",
|
|
7802
|
-
"class": [bem$
|
|
7803
|
+
"class": [bem$16("option", {
|
|
7803
7804
|
selected,
|
|
7804
7805
|
disabled
|
|
7805
7806
|
}), option.className],
|
|
@@ -7812,12 +7813,12 @@ var stdin_default$1d = defineComponent({
|
|
|
7812
7813
|
"onClick": () => onSelect(option, tabIndex)
|
|
7813
7814
|
}, [Text2, selected ? createVNode(Icon, {
|
|
7814
7815
|
"name": "success",
|
|
7815
|
-
"class": bem$
|
|
7816
|
+
"class": bem$16("selected-icon")
|
|
7816
7817
|
}, null) : null]);
|
|
7817
7818
|
};
|
|
7818
7819
|
const renderOptions = (options, selectedOption, tabIndex) => createVNode("ul", {
|
|
7819
7820
|
"role": "menu",
|
|
7820
|
-
"class": bem$
|
|
7821
|
+
"class": bem$16("options")
|
|
7821
7822
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
|
7822
7823
|
const renderTab = (tab, tabIndex) => {
|
|
7823
7824
|
const {
|
|
@@ -7828,7 +7829,7 @@ var stdin_default$1d = defineComponent({
|
|
|
7828
7829
|
const title = selected ? selected[textKey] : placeholder;
|
|
7829
7830
|
return createVNode(Tab, {
|
|
7830
7831
|
"title": title,
|
|
7831
|
-
"titleClass": bem$
|
|
7832
|
+
"titleClass": bem$16("tab", {
|
|
7832
7833
|
unselected: !selected
|
|
7833
7834
|
})
|
|
7834
7835
|
}, {
|
|
@@ -7847,7 +7848,7 @@ var stdin_default$1d = defineComponent({
|
|
|
7847
7848
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
7848
7849
|
"shrink": true,
|
|
7849
7850
|
"animated": true,
|
|
7850
|
-
"class": bem$
|
|
7851
|
+
"class": bem$16("tabs"),
|
|
7851
7852
|
"color": props2.activeColor,
|
|
7852
7853
|
"swipeable": props2.swipeable,
|
|
7853
7854
|
"onClick-tab": onClickTab
|
|
@@ -7871,19 +7872,19 @@ var stdin_default$1d = defineComponent({
|
|
|
7871
7872
|
updateTabs();
|
|
7872
7873
|
});
|
|
7873
7874
|
return () => createVNode("div", {
|
|
7874
|
-
"class": bem$
|
|
7875
|
+
"class": bem$16()
|
|
7875
7876
|
}, [renderHeader(), renderTabs()]);
|
|
7876
7877
|
}
|
|
7877
7878
|
});
|
|
7878
|
-
const Cascader = withInstall(stdin_default$
|
|
7879
|
-
const [name$
|
|
7879
|
+
const Cascader = withInstall(stdin_default$1e);
|
|
7880
|
+
const [name$16, bem$15] = createNamespace("cell-group");
|
|
7880
7881
|
const cellGroupProps = {
|
|
7881
7882
|
title: String,
|
|
7882
7883
|
inset: Boolean,
|
|
7883
7884
|
border: truthProp
|
|
7884
7885
|
};
|
|
7885
|
-
var stdin_default$
|
|
7886
|
-
name: name$
|
|
7886
|
+
var stdin_default$1d = defineComponent({
|
|
7887
|
+
name: name$16,
|
|
7887
7888
|
inheritAttrs: false,
|
|
7888
7889
|
props: cellGroupProps,
|
|
7889
7890
|
setup(props2, {
|
|
@@ -7893,7 +7894,7 @@ var stdin_default$1c = defineComponent({
|
|
|
7893
7894
|
const renderGroup = () => {
|
|
7894
7895
|
var _a;
|
|
7895
7896
|
return createVNode("div", mergeProps({
|
|
7896
|
-
"class": [bem$
|
|
7897
|
+
"class": [bem$15({
|
|
7897
7898
|
inset: props2.inset
|
|
7898
7899
|
}), {
|
|
7899
7900
|
[BORDER_TOP_BOTTOM]: props2.border && !props2.inset
|
|
@@ -7901,7 +7902,7 @@ var stdin_default$1c = defineComponent({
|
|
|
7901
7902
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
7902
7903
|
};
|
|
7903
7904
|
const renderTitle = () => createVNode("div", {
|
|
7904
|
-
"class": bem$
|
|
7905
|
+
"class": bem$15("title", {
|
|
7905
7906
|
inset: props2.inset
|
|
7906
7907
|
})
|
|
7907
7908
|
}, [slots.title ? slots.title() : props2.title]);
|
|
@@ -7913,9 +7914,9 @@ var stdin_default$1c = defineComponent({
|
|
|
7913
7914
|
};
|
|
7914
7915
|
}
|
|
7915
7916
|
});
|
|
7916
|
-
const CellGroup = withInstall(stdin_default$
|
|
7917
|
-
const CheckboxGroup = withInstall(stdin_default$
|
|
7918
|
-
const [name$
|
|
7917
|
+
const CellGroup = withInstall(stdin_default$1d);
|
|
7918
|
+
const CheckboxGroup = withInstall(stdin_default$1M);
|
|
7919
|
+
const [name$15, bem$14] = createNamespace("nav-bar");
|
|
7919
7920
|
const navBarProps = {
|
|
7920
7921
|
title: String,
|
|
7921
7922
|
fixed: Boolean,
|
|
@@ -7932,8 +7933,8 @@ const navBarProps = {
|
|
|
7932
7933
|
placeholder: Boolean,
|
|
7933
7934
|
safeAreaInsetTop: Boolean
|
|
7934
7935
|
};
|
|
7935
|
-
var stdin_default$
|
|
7936
|
-
name: name$
|
|
7936
|
+
var stdin_default$1c = defineComponent({
|
|
7937
|
+
name: name$15,
|
|
7937
7938
|
props: navBarProps,
|
|
7938
7939
|
emits: ["click-left", "click-right", "click-title", "select-right-popover", "update:titleDropdownActive"],
|
|
7939
7940
|
setup(props2, {
|
|
@@ -7942,7 +7943,7 @@ var stdin_default$1b = defineComponent({
|
|
|
7942
7943
|
}) {
|
|
7943
7944
|
const navBarRef = ref();
|
|
7944
7945
|
const rightPopoverShow = ref(false);
|
|
7945
|
-
const renderPlaceholder = usePlaceholder(navBarRef, bem$
|
|
7946
|
+
const renderPlaceholder = usePlaceholder(navBarRef, bem$14);
|
|
7946
7947
|
const onClickLeft = (event) => emit("click-left", event);
|
|
7947
7948
|
const onClickRight = (event) => emit("click-right", event);
|
|
7948
7949
|
const onUpdateRightPopoverShow = (show) => {
|
|
@@ -7963,10 +7964,10 @@ var stdin_default$1b = defineComponent({
|
|
|
7963
7964
|
return slots.left();
|
|
7964
7965
|
}
|
|
7965
7966
|
return [props2.leftArrow && createVNode(Icon, {
|
|
7966
|
-
"class": bem$
|
|
7967
|
+
"class": bem$14("arrow"),
|
|
7967
7968
|
"name": "arrow-left"
|
|
7968
7969
|
}, null), props2.leftText && createVNode("span", {
|
|
7969
|
-
"class": bem$
|
|
7970
|
+
"class": bem$14("text")
|
|
7970
7971
|
}, [props2.leftText])];
|
|
7971
7972
|
};
|
|
7972
7973
|
const renderRight = () => {
|
|
@@ -7984,12 +7985,12 @@ var stdin_default$1b = defineComponent({
|
|
|
7984
7985
|
}, {
|
|
7985
7986
|
reference: () => createVNode(Icon, {
|
|
7986
7987
|
"name": props2.rightPopoverIcon,
|
|
7987
|
-
"class": bem$
|
|
7988
|
+
"class": bem$14("right-popover-icon")
|
|
7988
7989
|
}, null)
|
|
7989
7990
|
});
|
|
7990
7991
|
}
|
|
7991
7992
|
return createVNode("span", {
|
|
7992
|
-
"class": bem$
|
|
7993
|
+
"class": bem$14("text")
|
|
7993
7994
|
}, [props2.rightText]);
|
|
7994
7995
|
};
|
|
7995
7996
|
const renderNavBar = () => {
|
|
@@ -8008,23 +8009,23 @@ var stdin_default$1b = defineComponent({
|
|
|
8008
8009
|
return createVNode("div", {
|
|
8009
8010
|
"ref": navBarRef,
|
|
8010
8011
|
"style": style,
|
|
8011
|
-
"class": [bem$
|
|
8012
|
+
"class": [bem$14({
|
|
8012
8013
|
fixed
|
|
8013
8014
|
}), {
|
|
8014
8015
|
[BORDER_BOTTOM]: border,
|
|
8015
8016
|
"van-safe-area-top": props2.safeAreaInsetTop
|
|
8016
8017
|
}]
|
|
8017
8018
|
}, [createVNode("div", {
|
|
8018
|
-
"class": bem$
|
|
8019
|
+
"class": bem$14("content")
|
|
8019
8020
|
}, [hasLeft && createVNode("div", {
|
|
8020
|
-
"class": [bem$
|
|
8021
|
+
"class": [bem$14("left", {
|
|
8021
8022
|
slot: !!slots.left
|
|
8022
8023
|
}), {
|
|
8023
8024
|
[HAPTICS_FEEDBACK]: !slots.left
|
|
8024
8025
|
}],
|
|
8025
8026
|
"onClick": slots.left ? void 0 : onClickLeft
|
|
8026
8027
|
}, [renderLeft()]), createVNode("div", {
|
|
8027
|
-
"class": [bem$
|
|
8028
|
+
"class": [bem$14("title", {
|
|
8028
8029
|
dropdown: titleDropdown
|
|
8029
8030
|
}), {
|
|
8030
8031
|
[HAPTICS_FEEDBACK]: titleDropdown
|
|
@@ -8039,16 +8040,16 @@ var stdin_default$1b = defineComponent({
|
|
|
8039
8040
|
}
|
|
8040
8041
|
}
|
|
8041
8042
|
}, [createVNode("div", {
|
|
8042
|
-
"class": [bem$
|
|
8043
|
+
"class": [bem$14("title-content"), "van-ellipsis"]
|
|
8043
8044
|
}, [slots.title ? slots.title() : title, titleDropdown && createVNode(Icon, {
|
|
8044
8045
|
"name": "trangle-down",
|
|
8045
|
-
"class": bem$
|
|
8046
|
+
"class": bem$14("title-arrow", {
|
|
8046
8047
|
active: props2.titleDropdownActive
|
|
8047
8048
|
})
|
|
8048
8049
|
}, null)]), subtitle && createVNode("div", {
|
|
8049
|
-
"class": [bem$
|
|
8050
|
+
"class": [bem$14("subtitle"), "van-ellipsis"]
|
|
8050
8051
|
}, [subtitle])]), hasRight && createVNode("div", {
|
|
8051
|
-
"class": [bem$
|
|
8052
|
+
"class": [bem$14("right", {
|
|
8052
8053
|
slot: !!slots.right
|
|
8053
8054
|
}), {
|
|
8054
8055
|
[HAPTICS_FEEDBACK]: !slots.right && !hasRightPopover
|
|
@@ -8064,8 +8065,8 @@ var stdin_default$1b = defineComponent({
|
|
|
8064
8065
|
};
|
|
8065
8066
|
}
|
|
8066
8067
|
});
|
|
8067
|
-
const NavBar = withInstall(stdin_default$
|
|
8068
|
-
const [name$
|
|
8068
|
+
const NavBar = withInstall(stdin_default$1c);
|
|
8069
|
+
const [name$14, bem$13] = createNamespace("checkbox-panel");
|
|
8069
8070
|
const checkboxPanelProps = {
|
|
8070
8071
|
show: Boolean,
|
|
8071
8072
|
title: String,
|
|
@@ -8075,8 +8076,8 @@ const checkboxPanelProps = {
|
|
|
8075
8076
|
selectAllText: makeStringProp("全选"),
|
|
8076
8077
|
cancelSelectAllText: makeStringProp("取消全选")
|
|
8077
8078
|
};
|
|
8078
|
-
var stdin_default$
|
|
8079
|
-
name: name$
|
|
8079
|
+
var stdin_default$1b = defineComponent({
|
|
8080
|
+
name: name$14,
|
|
8080
8081
|
props: checkboxPanelProps,
|
|
8081
8082
|
emits: ["update:show", "update:modelValue", "confirm"],
|
|
8082
8083
|
setup(props2, {
|
|
@@ -8101,17 +8102,17 @@ var stdin_default$1a = defineComponent({
|
|
|
8101
8102
|
};
|
|
8102
8103
|
return () => createVNode(ActionSheet, {
|
|
8103
8104
|
"show": props2.show,
|
|
8104
|
-
"class": bem$
|
|
8105
|
+
"class": bem$13(),
|
|
8105
8106
|
"onUpdate:show": (show) => emit("update:show", show)
|
|
8106
8107
|
}, {
|
|
8107
8108
|
default: () => [createVNode("div", {
|
|
8108
|
-
"class": bem$
|
|
8109
|
+
"class": bem$13("content")
|
|
8109
8110
|
}, [createVNode("div", {
|
|
8110
|
-
"class": bem$
|
|
8111
|
+
"class": bem$13("nav-wrapper")
|
|
8111
8112
|
}, [createVNode(NavBar, {
|
|
8112
8113
|
"title": props2.title,
|
|
8113
8114
|
"border": false,
|
|
8114
|
-
"class": bem$
|
|
8115
|
+
"class": bem$13("nav")
|
|
8115
8116
|
}, {
|
|
8116
8117
|
left: () => createVNode(Icon, {
|
|
8117
8118
|
"name": "cross",
|
|
@@ -8119,14 +8120,14 @@ var stdin_default$1a = defineComponent({
|
|
|
8119
8120
|
"onClick": close
|
|
8120
8121
|
}, null),
|
|
8121
8122
|
right: () => createVNode("span", {
|
|
8122
|
-
"class": bem$
|
|
8123
|
+
"class": bem$13("select-all"),
|
|
8123
8124
|
"onClick": toggleAll
|
|
8124
8125
|
}, [isAllSelected.value ? props2.cancelSelectAllText : props2.selectAllText])
|
|
8125
8126
|
})]), createVNode("div", {
|
|
8126
|
-
"class": bem$
|
|
8127
|
+
"class": bem$13("body")
|
|
8127
8128
|
}, [createVNode(CheckboxGroup, {
|
|
8128
8129
|
"modelValue": selectedValues.value,
|
|
8129
|
-
"class": bem$
|
|
8130
|
+
"class": bem$13("card"),
|
|
8130
8131
|
"onUpdate:modelValue": (value) => emit("update:modelValue", value)
|
|
8131
8132
|
}, {
|
|
8132
8133
|
default: () => [props2.options.map((option) => createVNode(Cell, {
|
|
@@ -8142,7 +8143,7 @@ var stdin_default$1a = defineComponent({
|
|
|
8142
8143
|
}, null)
|
|
8143
8144
|
}))]
|
|
8144
8145
|
})]), createVNode("div", {
|
|
8145
|
-
"class": bem$
|
|
8146
|
+
"class": bem$13("footer")
|
|
8146
8147
|
}, [createVNode(Button, {
|
|
8147
8148
|
"block": true,
|
|
8148
8149
|
"type": "primary",
|
|
@@ -8153,8 +8154,8 @@ var stdin_default$1a = defineComponent({
|
|
|
8153
8154
|
});
|
|
8154
8155
|
}
|
|
8155
8156
|
});
|
|
8156
|
-
const CheckboxPanel = withInstall(stdin_default$
|
|
8157
|
-
const [name$
|
|
8157
|
+
const CheckboxPanel = withInstall(stdin_default$1b);
|
|
8158
|
+
const [name$13, bem$12] = createNamespace("circle");
|
|
8158
8159
|
let uid = 0;
|
|
8159
8160
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
|
8160
8161
|
function getPath(clockwise, viewBoxSize) {
|
|
@@ -8175,8 +8176,8 @@ const circleProps = {
|
|
|
8175
8176
|
strokeLinecap: String,
|
|
8176
8177
|
startPosition: makeStringProp("top")
|
|
8177
8178
|
};
|
|
8178
|
-
var stdin_default$
|
|
8179
|
-
name: name$
|
|
8179
|
+
var stdin_default$1a = defineComponent({
|
|
8180
|
+
name: name$13,
|
|
8180
8181
|
props: circleProps,
|
|
8181
8182
|
emits: ["update:currentRate"],
|
|
8182
8183
|
setup(props2, {
|
|
@@ -8244,7 +8245,7 @@ var stdin_default$19 = defineComponent({
|
|
|
8244
8245
|
return createVNode("path", {
|
|
8245
8246
|
"d": path.value,
|
|
8246
8247
|
"style": style,
|
|
8247
|
-
"class": bem$
|
|
8248
|
+
"class": bem$12("hover"),
|
|
8248
8249
|
"stroke": color
|
|
8249
8250
|
}, null);
|
|
8250
8251
|
};
|
|
@@ -8255,7 +8256,7 @@ var stdin_default$19 = defineComponent({
|
|
|
8255
8256
|
strokeWidth: `${props2.strokeWidth}px`
|
|
8256
8257
|
};
|
|
8257
8258
|
return createVNode("path", {
|
|
8258
|
-
"class": bem$
|
|
8259
|
+
"class": bem$12("layer"),
|
|
8259
8260
|
"style": style,
|
|
8260
8261
|
"d": path.value
|
|
8261
8262
|
}, null);
|
|
@@ -8286,12 +8287,12 @@ var stdin_default$19 = defineComponent({
|
|
|
8286
8287
|
}
|
|
8287
8288
|
if (props2.text) {
|
|
8288
8289
|
return createVNode("div", {
|
|
8289
|
-
"class": bem$
|
|
8290
|
+
"class": bem$12("text")
|
|
8290
8291
|
}, [props2.text]);
|
|
8291
8292
|
}
|
|
8292
8293
|
};
|
|
8293
8294
|
return () => createVNode("div", {
|
|
8294
|
-
"class": bem$
|
|
8295
|
+
"class": bem$12(),
|
|
8295
8296
|
"style": getSizeStyle(props2.size)
|
|
8296
8297
|
}, [createVNode("svg", {
|
|
8297
8298
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
|
@@ -8299,9 +8300,9 @@ var stdin_default$19 = defineComponent({
|
|
|
8299
8300
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
|
8300
8301
|
}
|
|
8301
8302
|
});
|
|
8302
|
-
const Circle = withInstall(stdin_default$
|
|
8303
|
-
const [name$
|
|
8304
|
-
const ROW_KEY = Symbol(name$
|
|
8303
|
+
const Circle = withInstall(stdin_default$1a);
|
|
8304
|
+
const [name$12, bem$11] = createNamespace("row");
|
|
8305
|
+
const ROW_KEY = Symbol(name$12);
|
|
8305
8306
|
const rowProps = {
|
|
8306
8307
|
tag: makeStringProp("div"),
|
|
8307
8308
|
wrap: truthProp,
|
|
@@ -8309,8 +8310,8 @@ const rowProps = {
|
|
|
8309
8310
|
gutter: makeNumericProp(0),
|
|
8310
8311
|
justify: String
|
|
8311
8312
|
};
|
|
8312
|
-
var stdin_default$
|
|
8313
|
-
name: name$
|
|
8313
|
+
var stdin_default$19 = defineComponent({
|
|
8314
|
+
name: name$12,
|
|
8314
8315
|
props: rowProps,
|
|
8315
8316
|
setup(props2, {
|
|
8316
8317
|
slots
|
|
@@ -8369,7 +8370,7 @@ var stdin_default$18 = defineComponent({
|
|
|
8369
8370
|
justify
|
|
8370
8371
|
} = props2;
|
|
8371
8372
|
return createVNode(tag, {
|
|
8372
|
-
"class": bem$
|
|
8373
|
+
"class": bem$11({
|
|
8373
8374
|
[`align-${align}`]: align,
|
|
8374
8375
|
[`justify-${justify}`]: justify,
|
|
8375
8376
|
nowrap: !wrap
|
|
@@ -8383,14 +8384,14 @@ var stdin_default$18 = defineComponent({
|
|
|
8383
8384
|
};
|
|
8384
8385
|
}
|
|
8385
8386
|
});
|
|
8386
|
-
const [name$
|
|
8387
|
+
const [name$11, bem$10] = createNamespace("col");
|
|
8387
8388
|
const colProps = {
|
|
8388
8389
|
tag: makeStringProp("div"),
|
|
8389
8390
|
span: makeNumericProp(0),
|
|
8390
8391
|
offset: numericProp
|
|
8391
8392
|
};
|
|
8392
|
-
var stdin_default$
|
|
8393
|
-
name: name$
|
|
8393
|
+
var stdin_default$18 = defineComponent({
|
|
8394
|
+
name: name$11,
|
|
8394
8395
|
props: colProps,
|
|
8395
8396
|
setup(props2, {
|
|
8396
8397
|
slots
|
|
@@ -8425,7 +8426,7 @@ var stdin_default$17 = defineComponent({
|
|
|
8425
8426
|
} = props2;
|
|
8426
8427
|
return createVNode(tag, {
|
|
8427
8428
|
"style": style.value,
|
|
8428
|
-
"class": bem
|
|
8429
|
+
"class": bem$10({
|
|
8429
8430
|
[span]: span,
|
|
8430
8431
|
[`offset-${offset}`]: offset
|
|
8431
8432
|
})
|
|
@@ -8438,9 +8439,9 @@ var stdin_default$17 = defineComponent({
|
|
|
8438
8439
|
};
|
|
8439
8440
|
}
|
|
8440
8441
|
});
|
|
8441
|
-
const Col = withInstall(stdin_default$
|
|
8442
|
-
const [name
|
|
8443
|
-
const COLLAPSE_KEY = Symbol(name
|
|
8442
|
+
const Col = withInstall(stdin_default$18);
|
|
8443
|
+
const [name$10, bem$$] = createNamespace("collapse");
|
|
8444
|
+
const COLLAPSE_KEY = Symbol(name$10);
|
|
8444
8445
|
const collapseProps = {
|
|
8445
8446
|
border: truthProp,
|
|
8446
8447
|
accordion: Boolean,
|
|
@@ -8460,8 +8461,8 @@ function validateModelValue(modelValue, accordion) {
|
|
|
8460
8461
|
}
|
|
8461
8462
|
return true;
|
|
8462
8463
|
}
|
|
8463
|
-
var stdin_default$
|
|
8464
|
-
name: name
|
|
8464
|
+
var stdin_default$17 = defineComponent({
|
|
8465
|
+
name: name$10,
|
|
8465
8466
|
props: collapseProps,
|
|
8466
8467
|
emits: ["change", "update:modelValue"],
|
|
8467
8468
|
setup(props2, {
|
|
@@ -8531,15 +8532,15 @@ var stdin_default$16 = defineComponent({
|
|
|
8531
8532
|
return () => {
|
|
8532
8533
|
var _a;
|
|
8533
8534
|
return createVNode("div", {
|
|
8534
|
-
"class": [bem
|
|
8535
|
+
"class": [bem$$(), {
|
|
8535
8536
|
[BORDER_TOP_BOTTOM]: props2.border
|
|
8536
8537
|
}]
|
|
8537
8538
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
8538
8539
|
};
|
|
8539
8540
|
}
|
|
8540
8541
|
});
|
|
8541
|
-
const Collapse = withInstall(stdin_default$
|
|
8542
|
-
const [name
|
|
8542
|
+
const Collapse = withInstall(stdin_default$17);
|
|
8543
|
+
const [name$$, bem$_] = createNamespace("collapse-item");
|
|
8543
8544
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
|
8544
8545
|
const collapseItemProps = extend({}, cellSharedProps, {
|
|
8545
8546
|
name: numericProp,
|
|
@@ -8548,8 +8549,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
|
8548
8549
|
readonly: Boolean,
|
|
8549
8550
|
lazyRender: truthProp
|
|
8550
8551
|
});
|
|
8551
|
-
var stdin_default$
|
|
8552
|
-
name: name
|
|
8552
|
+
var stdin_default$16 = defineComponent({
|
|
8553
|
+
name: name$$,
|
|
8553
8554
|
props: collapseItemProps,
|
|
8554
8555
|
setup(props2, {
|
|
8555
8556
|
slots
|
|
@@ -8631,7 +8632,7 @@ var stdin_default$15 = defineComponent({
|
|
|
8631
8632
|
}
|
|
8632
8633
|
return createVNode(Cell, mergeProps({
|
|
8633
8634
|
"role": "button",
|
|
8634
|
-
"class": bem$
|
|
8635
|
+
"class": bem$_("title", {
|
|
8635
8636
|
disabled,
|
|
8636
8637
|
expanded: expanded.value,
|
|
8637
8638
|
borderless: !border
|
|
@@ -8644,11 +8645,11 @@ var stdin_default$15 = defineComponent({
|
|
|
8644
8645
|
var _a;
|
|
8645
8646
|
return withDirectives(createVNode("div", {
|
|
8646
8647
|
"ref": wrapperRef,
|
|
8647
|
-
"class": bem$
|
|
8648
|
+
"class": bem$_("wrapper"),
|
|
8648
8649
|
"onTransitionend": onTransitionEnd
|
|
8649
8650
|
}, [createVNode("div", {
|
|
8650
8651
|
"ref": contentRef,
|
|
8651
|
-
"class": bem$
|
|
8652
|
+
"class": bem$_("content")
|
|
8652
8653
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vShow, show.value]]);
|
|
8653
8654
|
});
|
|
8654
8655
|
useExpose({
|
|
@@ -8657,15 +8658,15 @@ var stdin_default$15 = defineComponent({
|
|
|
8657
8658
|
itemName: name2
|
|
8658
8659
|
});
|
|
8659
8660
|
return () => createVNode("div", {
|
|
8660
|
-
"class": [bem$
|
|
8661
|
+
"class": [bem$_({
|
|
8661
8662
|
border: index.value && props2.border
|
|
8662
8663
|
})]
|
|
8663
8664
|
}, [renderTitle(), renderContent()]);
|
|
8664
8665
|
}
|
|
8665
8666
|
});
|
|
8666
|
-
const CollapseItem = withInstall(stdin_default$
|
|
8667
|
-
const ConfigProvider = withInstall(stdin_default$
|
|
8668
|
-
const [name$
|
|
8667
|
+
const CollapseItem = withInstall(stdin_default$16);
|
|
8668
|
+
const ConfigProvider = withInstall(stdin_default$1Z);
|
|
8669
|
+
const [name$_, bem$Z, t$d] = createNamespace("contact-card");
|
|
8669
8670
|
const contactCardProps = {
|
|
8670
8671
|
tel: String,
|
|
8671
8672
|
name: String,
|
|
@@ -8673,8 +8674,8 @@ const contactCardProps = {
|
|
|
8673
8674
|
addText: String,
|
|
8674
8675
|
editable: truthProp
|
|
8675
8676
|
};
|
|
8676
|
-
var stdin_default$
|
|
8677
|
-
name: name$
|
|
8677
|
+
var stdin_default$15 = defineComponent({
|
|
8678
|
+
name: name$_,
|
|
8678
8679
|
props: contactCardProps,
|
|
8679
8680
|
emits: ["click"],
|
|
8680
8681
|
setup(props2, {
|
|
@@ -8694,18 +8695,18 @@ var stdin_default$14 = defineComponent({
|
|
|
8694
8695
|
return () => createVNode(Cell, {
|
|
8695
8696
|
"center": true,
|
|
8696
8697
|
"icon": props2.type === "edit" ? "contact" : "add-square",
|
|
8697
|
-
"class": bem$
|
|
8698
|
+
"class": bem$Z([props2.type]),
|
|
8698
8699
|
"border": false,
|
|
8699
8700
|
"isLink": props2.editable,
|
|
8700
|
-
"valueClass": bem$
|
|
8701
|
+
"valueClass": bem$Z("value"),
|
|
8701
8702
|
"onClick": onClick
|
|
8702
8703
|
}, {
|
|
8703
8704
|
value: renderContent
|
|
8704
8705
|
});
|
|
8705
8706
|
}
|
|
8706
8707
|
});
|
|
8707
|
-
const ContactCard = withInstall(stdin_default$
|
|
8708
|
-
const [name$
|
|
8708
|
+
const ContactCard = withInstall(stdin_default$15);
|
|
8709
|
+
const [name$Z, bem$Y, t$c] = createNamespace("contact-edit");
|
|
8709
8710
|
const DEFAULT_CONTACT = {
|
|
8710
8711
|
tel: "",
|
|
8711
8712
|
name: ""
|
|
@@ -8725,8 +8726,8 @@ const contactEditProps = {
|
|
|
8725
8726
|
default: isMobile
|
|
8726
8727
|
}
|
|
8727
8728
|
};
|
|
8728
|
-
var stdin_default$
|
|
8729
|
-
name: name$
|
|
8729
|
+
var stdin_default$14 = defineComponent({
|
|
8730
|
+
name: name$Z,
|
|
8730
8731
|
props: contactEditProps,
|
|
8731
8732
|
emits: ["save", "delete", "change-default"],
|
|
8732
8733
|
setup(props2, {
|
|
@@ -8740,20 +8741,20 @@ var stdin_default$13 = defineComponent({
|
|
|
8740
8741
|
};
|
|
8741
8742
|
const onDelete = () => emit("delete", contact);
|
|
8742
8743
|
const renderButtons = () => createVNode("div", {
|
|
8743
|
-
"class": bem$
|
|
8744
|
+
"class": bem$Y("buttons")
|
|
8744
8745
|
}, [createVNode(Button, {
|
|
8745
8746
|
"block": true,
|
|
8746
8747
|
"round": true,
|
|
8747
8748
|
"type": "primary",
|
|
8748
8749
|
"text": t$c("save"),
|
|
8749
|
-
"class": bem$
|
|
8750
|
+
"class": bem$Y("button"),
|
|
8750
8751
|
"loading": props2.isSaving,
|
|
8751
8752
|
"nativeType": "submit"
|
|
8752
8753
|
}, null), props2.isEdit && createVNode(Button, {
|
|
8753
8754
|
"block": true,
|
|
8754
8755
|
"round": true,
|
|
8755
8756
|
"text": t$c("delete"),
|
|
8756
|
-
"class": bem$
|
|
8757
|
+
"class": bem$Y("button"),
|
|
8757
8758
|
"loading": props2.isDeleting,
|
|
8758
8759
|
"onClick": onDelete
|
|
8759
8760
|
}, null)]);
|
|
@@ -8767,7 +8768,7 @@ var stdin_default$13 = defineComponent({
|
|
|
8767
8768
|
if (props2.showSetDefault) {
|
|
8768
8769
|
return createVNode(Cell, {
|
|
8769
8770
|
"title": props2.setDefaultLabel,
|
|
8770
|
-
"class": bem$
|
|
8771
|
+
"class": bem$Y("switch-cell"),
|
|
8771
8772
|
"border": false
|
|
8772
8773
|
}, {
|
|
8773
8774
|
"right-icon": renderSwitch
|
|
@@ -8776,11 +8777,11 @@ var stdin_default$13 = defineComponent({
|
|
|
8776
8777
|
};
|
|
8777
8778
|
watch(() => props2.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
|
|
8778
8779
|
return () => createVNode(Form, {
|
|
8779
|
-
"class": bem$
|
|
8780
|
+
"class": bem$Y(),
|
|
8780
8781
|
"onSubmit": onSave
|
|
8781
8782
|
}, {
|
|
8782
8783
|
default: () => [createVNode("div", {
|
|
8783
|
-
"class": bem$
|
|
8784
|
+
"class": bem$Y("fields")
|
|
8784
8785
|
}, [createVNode(Field, {
|
|
8785
8786
|
"modelValue": contact.name,
|
|
8786
8787
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
|
@@ -8807,16 +8808,16 @@ var stdin_default$13 = defineComponent({
|
|
|
8807
8808
|
});
|
|
8808
8809
|
}
|
|
8809
8810
|
});
|
|
8810
|
-
const ContactEdit = withInstall(stdin_default$
|
|
8811
|
-
const [name$
|
|
8811
|
+
const ContactEdit = withInstall(stdin_default$14);
|
|
8812
|
+
const [name$Y, bem$X, t$b] = createNamespace("contact-list");
|
|
8812
8813
|
const contactListProps = {
|
|
8813
8814
|
list: Array,
|
|
8814
8815
|
addText: String,
|
|
8815
8816
|
modelValue: unknownProp,
|
|
8816
8817
|
defaultTagText: String
|
|
8817
8818
|
};
|
|
8818
|
-
var stdin_default$
|
|
8819
|
-
name: name$
|
|
8819
|
+
var stdin_default$13 = defineComponent({
|
|
8820
|
+
name: name$Y,
|
|
8820
8821
|
props: contactListProps,
|
|
8821
8822
|
emits: ["add", "edit", "select", "update:modelValue"],
|
|
8822
8823
|
setup(props2, {
|
|
@@ -8828,13 +8829,13 @@ var stdin_default$12 = defineComponent({
|
|
|
8828
8829
|
emit("select", item, index);
|
|
8829
8830
|
};
|
|
8830
8831
|
const renderRightIcon = () => createVNode(Radio, {
|
|
8831
|
-
"class": bem$
|
|
8832
|
+
"class": bem$X("radio"),
|
|
8832
8833
|
"name": item.id,
|
|
8833
8834
|
"size": "large"
|
|
8834
8835
|
}, null);
|
|
8835
8836
|
const renderEditIcon = () => createVNode(Icon, {
|
|
8836
8837
|
"name": "edit",
|
|
8837
|
-
"class": bem$
|
|
8838
|
+
"class": bem$X("edit"),
|
|
8838
8839
|
"onClick": (event) => {
|
|
8839
8840
|
event.stopPropagation();
|
|
8840
8841
|
emit("edit", item, index);
|
|
@@ -8846,7 +8847,7 @@ var stdin_default$12 = defineComponent({
|
|
|
8846
8847
|
nodes.push(createVNode(Tag, {
|
|
8847
8848
|
"type": "primary",
|
|
8848
8849
|
"round": true,
|
|
8849
|
-
"class": bem$
|
|
8850
|
+
"class": bem$X("item-tag")
|
|
8850
8851
|
}, {
|
|
8851
8852
|
default: () => [props2.defaultTagText]
|
|
8852
8853
|
}));
|
|
@@ -8857,8 +8858,8 @@ var stdin_default$12 = defineComponent({
|
|
|
8857
8858
|
"key": item.id,
|
|
8858
8859
|
"isLink": true,
|
|
8859
8860
|
"center": true,
|
|
8860
|
-
"class": bem$
|
|
8861
|
-
"valueClass": bem$
|
|
8861
|
+
"class": bem$X("item"),
|
|
8862
|
+
"valueClass": bem$X("item-value"),
|
|
8862
8863
|
"onClick": onClick
|
|
8863
8864
|
}, {
|
|
8864
8865
|
icon: renderEditIcon,
|
|
@@ -8867,25 +8868,25 @@ var stdin_default$12 = defineComponent({
|
|
|
8867
8868
|
});
|
|
8868
8869
|
};
|
|
8869
8870
|
return () => createVNode("div", {
|
|
8870
|
-
"class": bem$
|
|
8871
|
+
"class": bem$X()
|
|
8871
8872
|
}, [createVNode(RadioGroup, {
|
|
8872
8873
|
"modelValue": props2.modelValue,
|
|
8873
|
-
"class": bem$
|
|
8874
|
+
"class": bem$X("group")
|
|
8874
8875
|
}, {
|
|
8875
8876
|
default: () => [props2.list && props2.list.map(renderItem)]
|
|
8876
8877
|
}), createVNode("div", {
|
|
8877
|
-
"class": [bem$
|
|
8878
|
+
"class": [bem$X("bottom"), "van-safe-area-bottom"]
|
|
8878
8879
|
}, [createVNode(Button, {
|
|
8879
8880
|
"round": true,
|
|
8880
8881
|
"block": true,
|
|
8881
8882
|
"type": "primary",
|
|
8882
|
-
"class": bem$
|
|
8883
|
+
"class": bem$X("add"),
|
|
8883
8884
|
"text": props2.addText || t$b("addContact"),
|
|
8884
8885
|
"onClick": () => emit("add")
|
|
8885
8886
|
}, null)])]);
|
|
8886
8887
|
}
|
|
8887
8888
|
});
|
|
8888
|
-
const ContactList = withInstall(stdin_default$
|
|
8889
|
+
const ContactList = withInstall(stdin_default$13);
|
|
8889
8890
|
function parseFormat(format2, currentTime) {
|
|
8890
8891
|
const { days } = currentTime;
|
|
8891
8892
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
|
@@ -8921,15 +8922,15 @@ function parseFormat(format2, currentTime) {
|
|
|
8921
8922
|
}
|
|
8922
8923
|
return format2;
|
|
8923
8924
|
}
|
|
8924
|
-
const [name$
|
|
8925
|
+
const [name$X, bem$W] = createNamespace("count-down");
|
|
8925
8926
|
const countDownProps = {
|
|
8926
8927
|
time: makeNumericProp(0),
|
|
8927
8928
|
format: makeStringProp("HH:mm:ss"),
|
|
8928
8929
|
autoStart: truthProp,
|
|
8929
8930
|
millisecond: Boolean
|
|
8930
8931
|
};
|
|
8931
|
-
var stdin_default$
|
|
8932
|
-
name: name$
|
|
8932
|
+
var stdin_default$12 = defineComponent({
|
|
8933
|
+
name: name$X,
|
|
8933
8934
|
props: countDownProps,
|
|
8934
8935
|
emits: ["change", "finish"],
|
|
8935
8936
|
setup(props2, {
|
|
@@ -8964,11 +8965,11 @@ var stdin_default$11 = defineComponent({
|
|
|
8964
8965
|
});
|
|
8965
8966
|
return () => createVNode("div", {
|
|
8966
8967
|
"role": "timer",
|
|
8967
|
-
"class": bem$
|
|
8968
|
+
"class": bem$W()
|
|
8968
8969
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
|
8969
8970
|
}
|
|
8970
8971
|
});
|
|
8971
|
-
const CountDown = withInstall(stdin_default$
|
|
8972
|
+
const CountDown = withInstall(stdin_default$12);
|
|
8972
8973
|
function getDate(timeStamp) {
|
|
8973
8974
|
const date = new Date(timeStamp * 1e3);
|
|
8974
8975
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
|
@@ -8977,9 +8978,9 @@ function getDate(timeStamp) {
|
|
|
8977
8978
|
}
|
|
8978
8979
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
|
8979
8980
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
|
8980
|
-
const [name$
|
|
8981
|
-
var stdin_default$
|
|
8982
|
-
name: name$
|
|
8981
|
+
const [name$W, bem$V, t$a] = createNamespace("coupon");
|
|
8982
|
+
var stdin_default$11 = defineComponent({
|
|
8983
|
+
name: name$W,
|
|
8983
8984
|
props: {
|
|
8984
8985
|
chosen: Boolean,
|
|
8985
8986
|
coupon: makeRequiredProp(Object),
|
|
@@ -9023,34 +9024,34 @@ var stdin_default$10 = defineComponent({
|
|
|
9023
9024
|
} = props2;
|
|
9024
9025
|
const description = disabled && coupon.reason || coupon.description;
|
|
9025
9026
|
return createVNode("div", {
|
|
9026
|
-
"class": bem$
|
|
9027
|
+
"class": bem$V({
|
|
9027
9028
|
disabled
|
|
9028
9029
|
})
|
|
9029
9030
|
}, [createVNode("div", {
|
|
9030
|
-
"class": bem$
|
|
9031
|
+
"class": bem$V("content")
|
|
9031
9032
|
}, [createVNode("div", {
|
|
9032
|
-
"class": bem$
|
|
9033
|
+
"class": bem$V("head")
|
|
9033
9034
|
}, [createVNode("h2", {
|
|
9034
|
-
"class": bem$
|
|
9035
|
+
"class": bem$V("amount")
|
|
9035
9036
|
}, [faceAmount.value]), createVNode("p", {
|
|
9036
|
-
"class": bem$
|
|
9037
|
+
"class": bem$V("condition")
|
|
9037
9038
|
}, [coupon.condition || conditionMessage.value])]), createVNode("div", {
|
|
9038
|
-
"class": bem$
|
|
9039
|
+
"class": bem$V("body")
|
|
9039
9040
|
}, [createVNode("p", {
|
|
9040
|
-
"class": bem$
|
|
9041
|
+
"class": bem$V("name")
|
|
9041
9042
|
}, [coupon.name]), createVNode("p", {
|
|
9042
|
-
"class": bem$
|
|
9043
|
+
"class": bem$V("valid")
|
|
9043
9044
|
}, [validPeriod.value]), !disabled && createVNode(Checkbox, {
|
|
9044
|
-
"class": bem$
|
|
9045
|
+
"class": bem$V("corner"),
|
|
9045
9046
|
"modelValue": chosen
|
|
9046
9047
|
}, null)])]), description && createVNode("p", {
|
|
9047
|
-
"class": bem$
|
|
9048
|
+
"class": bem$V("description")
|
|
9048
9049
|
}, [description])]);
|
|
9049
9050
|
};
|
|
9050
9051
|
}
|
|
9051
9052
|
});
|
|
9052
|
-
const Coupon = withInstall(stdin_default$
|
|
9053
|
-
const [name$
|
|
9053
|
+
const Coupon = withInstall(stdin_default$11);
|
|
9054
|
+
const [name$V, bem$U, t$9] = createNamespace("coupon-cell");
|
|
9054
9055
|
const couponCellProps = {
|
|
9055
9056
|
title: String,
|
|
9056
9057
|
border: truthProp,
|
|
@@ -9078,34 +9079,34 @@ function formatValue({
|
|
|
9078
9079
|
}
|
|
9079
9080
|
return coupons.length === 0 ? t$9("noCoupon") : t$9("count", coupons.length);
|
|
9080
9081
|
}
|
|
9081
|
-
var stdin_default
|
|
9082
|
-
name: name$
|
|
9082
|
+
var stdin_default$10 = defineComponent({
|
|
9083
|
+
name: name$V,
|
|
9083
9084
|
props: couponCellProps,
|
|
9084
9085
|
setup(props2) {
|
|
9085
9086
|
return () => {
|
|
9086
9087
|
const selected = props2.coupons[+props2.chosenCoupon];
|
|
9087
9088
|
return createVNode(Cell, {
|
|
9088
|
-
"class": bem$
|
|
9089
|
+
"class": bem$U(),
|
|
9089
9090
|
"value": formatValue(props2),
|
|
9090
9091
|
"title": props2.title || t$9("title"),
|
|
9091
9092
|
"border": props2.border,
|
|
9092
9093
|
"isLink": props2.editable,
|
|
9093
|
-
"valueClass": bem$
|
|
9094
|
+
"valueClass": bem$U("value", {
|
|
9094
9095
|
selected
|
|
9095
9096
|
})
|
|
9096
9097
|
}, null);
|
|
9097
9098
|
};
|
|
9098
9099
|
}
|
|
9099
9100
|
});
|
|
9100
|
-
const CouponCell = withInstall(stdin_default
|
|
9101
|
-
const [name$
|
|
9101
|
+
const CouponCell = withInstall(stdin_default$10);
|
|
9102
|
+
const [name$U, bem$T] = createNamespace("empty");
|
|
9102
9103
|
const emptyProps = {
|
|
9103
9104
|
image: makeStringProp("default"),
|
|
9104
9105
|
imageSize: [Number, String, Array],
|
|
9105
9106
|
description: String
|
|
9106
9107
|
};
|
|
9107
|
-
var stdin_default
|
|
9108
|
-
name: name$
|
|
9108
|
+
var stdin_default$$ = defineComponent({
|
|
9109
|
+
name: name$U,
|
|
9109
9110
|
props: emptyProps,
|
|
9110
9111
|
setup(props2, {
|
|
9111
9112
|
slots
|
|
@@ -9114,14 +9115,14 @@ var stdin_default$_ = defineComponent({
|
|
|
9114
9115
|
const description = slots.description ? slots.description() : props2.description;
|
|
9115
9116
|
if (description) {
|
|
9116
9117
|
return createVNode("p", {
|
|
9117
|
-
"class": bem$
|
|
9118
|
+
"class": bem$T("description")
|
|
9118
9119
|
}, [description]);
|
|
9119
9120
|
}
|
|
9120
9121
|
};
|
|
9121
9122
|
const renderBottom = () => {
|
|
9122
9123
|
if (slots.default) {
|
|
9123
9124
|
return createVNode("div", {
|
|
9124
|
-
"class": bem$
|
|
9125
|
+
"class": bem$T("bottom")
|
|
9125
9126
|
}, [slots.default()]);
|
|
9126
9127
|
}
|
|
9127
9128
|
};
|
|
@@ -9131,7 +9132,7 @@ var stdin_default$_ = defineComponent({
|
|
|
9131
9132
|
}
|
|
9132
9133
|
if (props2.image === "default" || props2.image === "network") {
|
|
9133
9134
|
return createVNode("div", {
|
|
9134
|
-
"class": bem$
|
|
9135
|
+
"class": bem$T("image-preset", props2.image)
|
|
9135
9136
|
}, null);
|
|
9136
9137
|
}
|
|
9137
9138
|
return createVNode("img", {
|
|
@@ -9139,15 +9140,15 @@ var stdin_default$_ = defineComponent({
|
|
|
9139
9140
|
}, null);
|
|
9140
9141
|
};
|
|
9141
9142
|
return () => createVNode("div", {
|
|
9142
|
-
"class": bem$
|
|
9143
|
+
"class": bem$T()
|
|
9143
9144
|
}, [createVNode("div", {
|
|
9144
|
-
"class": bem$
|
|
9145
|
+
"class": bem$T("image"),
|
|
9145
9146
|
"style": getSizeStyle(props2.imageSize)
|
|
9146
9147
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
|
9147
9148
|
}
|
|
9148
9149
|
});
|
|
9149
|
-
const Empty = withInstall(stdin_default
|
|
9150
|
-
const [name$
|
|
9150
|
+
const Empty = withInstall(stdin_default$$);
|
|
9151
|
+
const [name$T, bem$S, t$8] = createNamespace("coupon-list");
|
|
9151
9152
|
const couponListProps = {
|
|
9152
9153
|
code: makeStringProp(""),
|
|
9153
9154
|
coupons: makeArrayProp(),
|
|
@@ -9168,8 +9169,8 @@ const couponListProps = {
|
|
|
9168
9169
|
exchangeButtonLoading: Boolean,
|
|
9169
9170
|
exchangeButtonDisabled: Boolean
|
|
9170
9171
|
};
|
|
9171
|
-
var stdin_default$
|
|
9172
|
-
name: name$
|
|
9172
|
+
var stdin_default$_ = defineComponent({
|
|
9173
|
+
name: name$T,
|
|
9173
9174
|
props: couponListProps,
|
|
9174
9175
|
emits: ["change", "exchange", "update:code"],
|
|
9175
9176
|
setup(props2, {
|
|
@@ -9205,26 +9206,26 @@ var stdin_default$Z = defineComponent({
|
|
|
9205
9206
|
"image": props2.emptyImage
|
|
9206
9207
|
}, {
|
|
9207
9208
|
default: () => [createVNode("p", {
|
|
9208
|
-
"class": bem$
|
|
9209
|
+
"class": bem$S("empty-tip")
|
|
9209
9210
|
}, [t$8("noCoupon")])]
|
|
9210
9211
|
});
|
|
9211
9212
|
const renderExchangeBar = () => {
|
|
9212
9213
|
if (props2.showExchangeBar) {
|
|
9213
9214
|
return createVNode("div", {
|
|
9214
9215
|
"ref": barRef,
|
|
9215
|
-
"class": bem$
|
|
9216
|
+
"class": bem$S("exchange-bar")
|
|
9216
9217
|
}, [createVNode(Field, {
|
|
9217
9218
|
"modelValue": currentCode.value,
|
|
9218
9219
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
|
9219
9220
|
"clearable": true,
|
|
9220
9221
|
"border": false,
|
|
9221
|
-
"class": bem$
|
|
9222
|
+
"class": bem$S("field"),
|
|
9222
9223
|
"placeholder": props2.inputPlaceholder || t$8("placeholder"),
|
|
9223
9224
|
"maxlength": "20"
|
|
9224
9225
|
}, null), createVNode(Button, {
|
|
9225
9226
|
"plain": true,
|
|
9226
9227
|
"type": "primary",
|
|
9227
|
-
"class": bem$
|
|
9228
|
+
"class": bem$S("exchange"),
|
|
9228
9229
|
"text": props2.exchangeButtonText || t$8("exchange"),
|
|
9229
9230
|
"loading": props2.exchangeButtonLoading,
|
|
9230
9231
|
"disabled": buttonDisabled.value,
|
|
@@ -9244,7 +9245,7 @@ var stdin_default$Z = defineComponent({
|
|
|
9244
9245
|
default: () => {
|
|
9245
9246
|
var _a;
|
|
9246
9247
|
return [createVNode("div", {
|
|
9247
|
-
"class": bem$
|
|
9248
|
+
"class": bem$S("list", {
|
|
9248
9249
|
"with-bottom": props2.showCloseButton
|
|
9249
9250
|
}),
|
|
9250
9251
|
"style": {
|
|
@@ -9273,7 +9274,7 @@ var stdin_default$Z = defineComponent({
|
|
|
9273
9274
|
default: () => {
|
|
9274
9275
|
var _a;
|
|
9275
9276
|
return [createVNode("div", {
|
|
9276
|
-
"class": bem$
|
|
9277
|
+
"class": bem$S("list", {
|
|
9277
9278
|
"with-bottom": props2.showCloseButton
|
|
9278
9279
|
}),
|
|
9279
9280
|
"style": {
|
|
@@ -9300,27 +9301,27 @@ var stdin_default$Z = defineComponent({
|
|
|
9300
9301
|
});
|
|
9301
9302
|
return () => createVNode("div", {
|
|
9302
9303
|
"ref": root,
|
|
9303
|
-
"class": bem$
|
|
9304
|
+
"class": bem$S()
|
|
9304
9305
|
}, [renderExchangeBar(), createVNode(Tabs, {
|
|
9305
9306
|
"active": activeTab.value,
|
|
9306
9307
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
9307
|
-
"class": bem$
|
|
9308
|
+
"class": bem$S("tab")
|
|
9308
9309
|
}, {
|
|
9309
9310
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
|
9310
9311
|
}), createVNode("div", {
|
|
9311
|
-
"class": bem$
|
|
9312
|
+
"class": bem$S("bottom")
|
|
9312
9313
|
}, [withDirectives(createVNode(Button, {
|
|
9313
9314
|
"round": true,
|
|
9314
9315
|
"block": true,
|
|
9315
9316
|
"type": "primary",
|
|
9316
|
-
"class": bem$
|
|
9317
|
+
"class": bem$S("close"),
|
|
9317
9318
|
"text": props2.closeButtonText || t$8("close"),
|
|
9318
9319
|
"onClick": () => emit("change", -1)
|
|
9319
9320
|
}, null), [[vShow, props2.showCloseButton]])])]);
|
|
9320
9321
|
}
|
|
9321
9322
|
});
|
|
9322
|
-
const CouponList = withInstall(stdin_default$
|
|
9323
|
-
const [name$
|
|
9323
|
+
const CouponList = withInstall(stdin_default$_);
|
|
9324
|
+
const [name$S, bem$R] = createNamespace("filter-tag");
|
|
9324
9325
|
const filterTagProps = {
|
|
9325
9326
|
selected: Boolean,
|
|
9326
9327
|
disabled: Boolean,
|
|
@@ -9337,8 +9338,8 @@ const filterTagProps = {
|
|
|
9337
9338
|
dot: Boolean,
|
|
9338
9339
|
badge: numericProp
|
|
9339
9340
|
};
|
|
9340
|
-
var stdin_default$
|
|
9341
|
-
name: name$
|
|
9341
|
+
var stdin_default$Z = defineComponent({
|
|
9342
|
+
name: name$S,
|
|
9342
9343
|
props: filterTagProps,
|
|
9343
9344
|
emits: ["click"],
|
|
9344
9345
|
setup(props2, {
|
|
@@ -9347,7 +9348,7 @@ var stdin_default$Y = defineComponent({
|
|
|
9347
9348
|
}) {
|
|
9348
9349
|
const renderIcon = () => props2.icon && createVNode(Icon, {
|
|
9349
9350
|
"name": props2.icon,
|
|
9350
|
-
"class": bem$
|
|
9351
|
+
"class": bem$R("icon"),
|
|
9351
9352
|
"classPrefix": props2.iconPrefix
|
|
9352
9353
|
}, null);
|
|
9353
9354
|
const renderBadge = () => {
|
|
@@ -9368,7 +9369,7 @@ var stdin_default$Y = defineComponent({
|
|
|
9368
9369
|
const content = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
9369
9370
|
return createVNode("button", {
|
|
9370
9371
|
"type": "button",
|
|
9371
|
-
"class": bem$
|
|
9372
|
+
"class": bem$R({
|
|
9372
9373
|
selected: props2.selected,
|
|
9373
9374
|
disabled: props2.disabled,
|
|
9374
9375
|
large: props2.size === "large"
|
|
@@ -9376,15 +9377,15 @@ var stdin_default$Y = defineComponent({
|
|
|
9376
9377
|
"disabled": props2.disabled,
|
|
9377
9378
|
"onClick": (event) => emit("click", event)
|
|
9378
9379
|
}, [props2.iconPosition === "left" && icon, createVNode("span", {
|
|
9379
|
-
"class": bem$
|
|
9380
|
+
"class": bem$R("text")
|
|
9380
9381
|
}, [content]), props2.iconPosition === "right" && icon, renderBadge()]);
|
|
9381
9382
|
};
|
|
9382
9383
|
}
|
|
9383
9384
|
});
|
|
9384
|
-
const FilterTag = withInstall(stdin_default$
|
|
9385
|
-
const [name$
|
|
9386
|
-
var stdin_default$
|
|
9387
|
-
name: name$
|
|
9385
|
+
const FilterTag = withInstall(stdin_default$Z);
|
|
9386
|
+
const [name$R] = createNamespace("time-picker");
|
|
9387
|
+
var stdin_default$Y = defineComponent({
|
|
9388
|
+
name: name$R,
|
|
9388
9389
|
props: extend({}, sharedProps, {
|
|
9389
9390
|
minHour: makeNumericProp(0),
|
|
9390
9391
|
maxHour: makeNumericProp(23),
|
|
@@ -9491,9 +9492,9 @@ var stdin_default$X = defineComponent({
|
|
|
9491
9492
|
}
|
|
9492
9493
|
});
|
|
9493
9494
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
9494
|
-
const [name$
|
|
9495
|
-
var stdin_default$
|
|
9496
|
-
name: name$
|
|
9495
|
+
const [name$Q] = createNamespace("date-picker");
|
|
9496
|
+
var stdin_default$X = defineComponent({
|
|
9497
|
+
name: name$Q,
|
|
9497
9498
|
props: extend({}, sharedProps, {
|
|
9498
9499
|
type: makeStringProp("datetime"),
|
|
9499
9500
|
modelValue: Date,
|
|
@@ -9731,10 +9732,10 @@ var stdin_default$W = defineComponent({
|
|
|
9731
9732
|
}, pick(props2, pickerInheritKeys)), slots);
|
|
9732
9733
|
}
|
|
9733
9734
|
});
|
|
9734
|
-
const [name$
|
|
9735
|
-
const timePickerPropKeys = Object.keys(stdin_default$
|
|
9736
|
-
const datePickerPropKeys = Object.keys(stdin_default$
|
|
9737
|
-
const datetimePickerProps = extend({}, stdin_default$
|
|
9735
|
+
const [name$P, bem$Q] = createNamespace("datetime-picker");
|
|
9736
|
+
const timePickerPropKeys = Object.keys(stdin_default$Y.props);
|
|
9737
|
+
const datePickerPropKeys = Object.keys(stdin_default$X.props);
|
|
9738
|
+
const datetimePickerProps = extend({}, stdin_default$Y.props, stdin_default$X.props, {
|
|
9738
9739
|
modelValue: [String, Date],
|
|
9739
9740
|
showTimeRange: Boolean,
|
|
9740
9741
|
startTimeFromCurrent: {
|
|
@@ -9752,8 +9753,8 @@ const datetimePickerProps = extend({}, stdin_default$X.props, stdin_default$W.pr
|
|
|
9752
9753
|
default: "结束时间"
|
|
9753
9754
|
}
|
|
9754
9755
|
});
|
|
9755
|
-
var stdin_default$
|
|
9756
|
-
name: name$
|
|
9756
|
+
var stdin_default$W = defineComponent({
|
|
9757
|
+
name: name$P,
|
|
9757
9758
|
props: datetimePickerProps,
|
|
9758
9759
|
emits: ["update:startTime", "update:endTime", "time-range-change"],
|
|
9759
9760
|
setup(props2, {
|
|
@@ -9822,7 +9823,7 @@ var stdin_default$V = defineComponent({
|
|
|
9822
9823
|
});
|
|
9823
9824
|
return () => {
|
|
9824
9825
|
const isTimePicker = props2.type === "time";
|
|
9825
|
-
const Component = isTimePicker ? stdin_default$
|
|
9826
|
+
const Component = isTimePicker ? stdin_default$Y : stdin_default$X;
|
|
9826
9827
|
const inheritProps = pick(props2, isTimePicker ? timePickerPropKeys : datePickerPropKeys);
|
|
9827
9828
|
const showTimeRange = props2.showTimeRange && props2.type === "datetime";
|
|
9828
9829
|
const timeRangeSlots = showTimeRange ? {
|
|
@@ -9835,7 +9836,7 @@ var stdin_default$V = defineComponent({
|
|
|
9835
9836
|
"columns-top": () => {
|
|
9836
9837
|
var _a;
|
|
9837
9838
|
return [createVNode("div", {
|
|
9838
|
-
"class": bem$
|
|
9839
|
+
"class": bem$Q("time-range")
|
|
9839
9840
|
}, [createVNode(FilterTag, {
|
|
9840
9841
|
"selected": activeTimeRange.value === "start",
|
|
9841
9842
|
"onClick": () => onTimeRangeClick("start")
|
|
@@ -9851,14 +9852,14 @@ var stdin_default$V = defineComponent({
|
|
|
9851
9852
|
"columns-bottom": () => {
|
|
9852
9853
|
var _a;
|
|
9853
9854
|
return [createVNode("div", {
|
|
9854
|
-
"class": bem$
|
|
9855
|
+
"class": bem$Q("time-range-bottom")
|
|
9855
9856
|
}, null), (_a = slots["columns-bottom"]) == null ? void 0 : _a.call(slots)];
|
|
9856
9857
|
}
|
|
9857
9858
|
} : slots;
|
|
9858
9859
|
if (showTimeRange) {
|
|
9859
|
-
return createVNode(stdin_default$
|
|
9860
|
+
return createVNode(stdin_default$X, mergeProps({
|
|
9860
9861
|
"ref": root,
|
|
9861
|
-
"class": bem$
|
|
9862
|
+
"class": bem$Q()
|
|
9862
9863
|
}, pick(props2, datePickerPropKeys), attrs, {
|
|
9863
9864
|
"modelValue": rangeModelValue.value,
|
|
9864
9865
|
"minDate": rangeMinDate.value,
|
|
@@ -9869,13 +9870,13 @@ var stdin_default$V = defineComponent({
|
|
|
9869
9870
|
}
|
|
9870
9871
|
return createVNode(Component, mergeProps({
|
|
9871
9872
|
"ref": root,
|
|
9872
|
-
"class": bem$
|
|
9873
|
+
"class": bem$Q()
|
|
9873
9874
|
}, inheritProps, attrs), timeRangeSlots);
|
|
9874
9875
|
};
|
|
9875
9876
|
}
|
|
9876
9877
|
});
|
|
9877
|
-
const DatetimePicker = withInstall(stdin_default$
|
|
9878
|
-
const [name$
|
|
9878
|
+
const DatetimePicker = withInstall(stdin_default$W);
|
|
9879
|
+
const [name$O, bem$P, t$7] = createNamespace("dialog");
|
|
9879
9880
|
const dialogProps = extend({}, popupSharedProps, {
|
|
9880
9881
|
title: String,
|
|
9881
9882
|
theme: String,
|
|
@@ -9906,8 +9907,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
|
9906
9907
|
closeOnClickOverlay: Boolean
|
|
9907
9908
|
});
|
|
9908
9909
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
|
9909
|
-
var stdin_default$
|
|
9910
|
-
name: name$
|
|
9910
|
+
var stdin_default$V = defineComponent({
|
|
9911
|
+
name: name$O,
|
|
9911
9912
|
props: dialogProps,
|
|
9912
9913
|
emits: ["confirm", "cancel", "third", "keydown", "input", "update:show", "update:inputValue"],
|
|
9913
9914
|
setup(props2, {
|
|
@@ -9966,7 +9967,7 @@ var stdin_default$U = defineComponent({
|
|
|
9966
9967
|
const title = slots.title ? slots.title() : props2.title;
|
|
9967
9968
|
if (title) {
|
|
9968
9969
|
return createVNode("div", {
|
|
9969
|
-
"class": bem$
|
|
9970
|
+
"class": bem$P("header", {
|
|
9970
9971
|
isolated: !props2.message && !props2.showInput && !slots.default
|
|
9971
9972
|
})
|
|
9972
9973
|
}, [title]);
|
|
@@ -9978,7 +9979,7 @@ var stdin_default$U = defineComponent({
|
|
|
9978
9979
|
allowHtml,
|
|
9979
9980
|
messageAlign
|
|
9980
9981
|
} = props2;
|
|
9981
|
-
const classNames = bem$
|
|
9982
|
+
const classNames = bem$P("message", {
|
|
9982
9983
|
"has-title": hasTitle,
|
|
9983
9984
|
[messageAlign]: messageAlign
|
|
9984
9985
|
});
|
|
@@ -10004,7 +10005,7 @@ var stdin_default$U = defineComponent({
|
|
|
10004
10005
|
return createVNode(Field, {
|
|
10005
10006
|
"size": "normal",
|
|
10006
10007
|
"border": false,
|
|
10007
|
-
"class": bem$
|
|
10008
|
+
"class": bem$P("input"),
|
|
10008
10009
|
"modelValue": props2.inputValue,
|
|
10009
10010
|
"placeholder": props2.inputPlaceholder,
|
|
10010
10011
|
"autofocus": props2.inputAutofocus,
|
|
@@ -10022,7 +10023,7 @@ var stdin_default$U = defineComponent({
|
|
|
10022
10023
|
const hasTitle = !!(title || slots.title);
|
|
10023
10024
|
return createVNode("div", {
|
|
10024
10025
|
"key": allowHtml ? 1 : 0,
|
|
10025
|
-
"class": bem$
|
|
10026
|
+
"class": bem$P("content", {
|
|
10026
10027
|
isolated: !hasTitle,
|
|
10027
10028
|
"with-input": showInput
|
|
10028
10029
|
})
|
|
@@ -10030,13 +10031,13 @@ var stdin_default$U = defineComponent({
|
|
|
10030
10031
|
}
|
|
10031
10032
|
};
|
|
10032
10033
|
const renderButtons = () => createVNode("div", {
|
|
10033
|
-
"class": [BORDER_TOP, bem$
|
|
10034
|
+
"class": [BORDER_TOP, bem$P("footer", {
|
|
10034
10035
|
vertical: props2.showThirdButton
|
|
10035
10036
|
})]
|
|
10036
10037
|
}, [props2.showCancelButton && createVNode(Button, {
|
|
10037
10038
|
"size": "large",
|
|
10038
10039
|
"text": props2.cancelButtonText || t$7("cancel"),
|
|
10039
|
-
"class": bem$
|
|
10040
|
+
"class": bem$P("cancel"),
|
|
10040
10041
|
"style": {
|
|
10041
10042
|
color: props2.cancelButtonColor
|
|
10042
10043
|
},
|
|
@@ -10046,7 +10047,7 @@ var stdin_default$U = defineComponent({
|
|
|
10046
10047
|
}, null), props2.showConfirmButton && createVNode(Button, {
|
|
10047
10048
|
"size": "large",
|
|
10048
10049
|
"text": props2.confirmButtonText || t$7("confirm"),
|
|
10049
|
-
"class": [bem$
|
|
10050
|
+
"class": [bem$P("confirm"), {
|
|
10050
10051
|
[BORDER_LEFT]: props2.showCancelButton && !props2.showThirdButton
|
|
10051
10052
|
}],
|
|
10052
10053
|
"style": {
|
|
@@ -10058,7 +10059,7 @@ var stdin_default$U = defineComponent({
|
|
|
10058
10059
|
}, null), props2.showThirdButton && createVNode(Button, {
|
|
10059
10060
|
"size": "large",
|
|
10060
10061
|
"text": props2.thirdButtonText,
|
|
10061
|
-
"class": bem$
|
|
10062
|
+
"class": bem$P("third"),
|
|
10062
10063
|
"style": {
|
|
10063
10064
|
color: props2.thirdButtonColor
|
|
10064
10065
|
},
|
|
@@ -10067,12 +10068,12 @@ var stdin_default$U = defineComponent({
|
|
|
10067
10068
|
"onClick": onThird
|
|
10068
10069
|
}, null)]);
|
|
10069
10070
|
const renderRoundButtons = () => createVNode(ActionBar, {
|
|
10070
|
-
"class": bem$
|
|
10071
|
+
"class": bem$P("footer")
|
|
10071
10072
|
}, {
|
|
10072
10073
|
default: () => [props2.showCancelButton && createVNode(ActionBarButton, {
|
|
10073
10074
|
"type": "warning",
|
|
10074
10075
|
"text": props2.cancelButtonText || t$7("cancel"),
|
|
10075
|
-
"class": bem$
|
|
10076
|
+
"class": bem$P("cancel"),
|
|
10076
10077
|
"color": props2.cancelButtonColor,
|
|
10077
10078
|
"loading": loading.cancel,
|
|
10078
10079
|
"disabled": props2.cancelButtonDisabled,
|
|
@@ -10080,7 +10081,7 @@ var stdin_default$U = defineComponent({
|
|
|
10080
10081
|
}, null), props2.showConfirmButton && createVNode(ActionBarButton, {
|
|
10081
10082
|
"type": "primary",
|
|
10082
10083
|
"text": props2.confirmButtonText || t$7("confirm"),
|
|
10083
|
-
"class": bem$
|
|
10084
|
+
"class": bem$P("confirm"),
|
|
10084
10085
|
"color": props2.confirmButtonColor,
|
|
10085
10086
|
"loading": loading.confirm,
|
|
10086
10087
|
"disabled": props2.confirmButtonDisabled,
|
|
@@ -10104,7 +10105,7 @@ var stdin_default$U = defineComponent({
|
|
|
10104
10105
|
return createVNode(Popup, mergeProps({
|
|
10105
10106
|
"ref": root,
|
|
10106
10107
|
"role": "dialog",
|
|
10107
|
-
"class": [bem$
|
|
10108
|
+
"class": [bem$P([theme]), className],
|
|
10108
10109
|
"style": {
|
|
10109
10110
|
width: addUnit(width)
|
|
10110
10111
|
},
|
|
@@ -10126,7 +10127,7 @@ function initInstance$3() {
|
|
|
10126
10127
|
state,
|
|
10127
10128
|
toggle
|
|
10128
10129
|
} = usePopupState();
|
|
10129
|
-
return () => createVNode(stdin_default$
|
|
10130
|
+
return () => createVNode(stdin_default$V, mergeProps(state, {
|
|
10130
10131
|
"onUpdate:show": toggle
|
|
10131
10132
|
}), null);
|
|
10132
10133
|
}
|
|
@@ -10193,19 +10194,19 @@ Dialog.setDefaultOptions = (options) => {
|
|
|
10193
10194
|
Dialog.resetDefaultOptions = () => {
|
|
10194
10195
|
Dialog.currentOptions = extend({}, Dialog.defaultOptions);
|
|
10195
10196
|
};
|
|
10196
|
-
Dialog.Component = withInstall(stdin_default$
|
|
10197
|
+
Dialog.Component = withInstall(stdin_default$V);
|
|
10197
10198
|
Dialog.install = (app) => {
|
|
10198
10199
|
app.use(Dialog.Component);
|
|
10199
10200
|
app.config.globalProperties.$dialog = Dialog;
|
|
10200
10201
|
};
|
|
10201
|
-
const [name$
|
|
10202
|
+
const [name$N, bem$O] = createNamespace("divider");
|
|
10202
10203
|
const dividerProps = {
|
|
10203
10204
|
dashed: Boolean,
|
|
10204
10205
|
hairline: truthProp,
|
|
10205
10206
|
contentPosition: makeStringProp("center")
|
|
10206
10207
|
};
|
|
10207
|
-
var stdin_default$
|
|
10208
|
-
name: name$
|
|
10208
|
+
var stdin_default$U = defineComponent({
|
|
10209
|
+
name: name$N,
|
|
10209
10210
|
props: dividerProps,
|
|
10210
10211
|
setup(props2, {
|
|
10211
10212
|
slots
|
|
@@ -10214,7 +10215,7 @@ var stdin_default$T = defineComponent({
|
|
|
10214
10215
|
var _a;
|
|
10215
10216
|
return createVNode("div", {
|
|
10216
10217
|
"role": "separator",
|
|
10217
|
-
"class": bem$
|
|
10218
|
+
"class": bem$O({
|
|
10218
10219
|
dashed: props2.dashed,
|
|
10219
10220
|
hairline: props2.hairline,
|
|
10220
10221
|
[`content-${props2.contentPosition}`]: !!slots.default
|
|
@@ -10223,8 +10224,8 @@ var stdin_default$T = defineComponent({
|
|
|
10223
10224
|
};
|
|
10224
10225
|
}
|
|
10225
10226
|
});
|
|
10226
|
-
const Divider = withInstall(stdin_default$
|
|
10227
|
-
const [name$
|
|
10227
|
+
const Divider = withInstall(stdin_default$U);
|
|
10228
|
+
const [name$M, bem$N] = createNamespace("dropdown-menu");
|
|
10228
10229
|
const dropdownMenuProps = {
|
|
10229
10230
|
overlay: truthProp,
|
|
10230
10231
|
zIndex: numericProp,
|
|
@@ -10236,9 +10237,9 @@ const dropdownMenuProps = {
|
|
|
10236
10237
|
closeOnClickOutside: truthProp,
|
|
10237
10238
|
closeOnClickOverlay: truthProp
|
|
10238
10239
|
};
|
|
10239
|
-
const DROPDOWN_KEY = Symbol(name$
|
|
10240
|
-
var stdin_default$
|
|
10241
|
-
name: name$
|
|
10240
|
+
const DROPDOWN_KEY = Symbol(name$M);
|
|
10241
|
+
var stdin_default$T = defineComponent({
|
|
10242
|
+
name: name$M,
|
|
10242
10243
|
props: dropdownMenuProps,
|
|
10243
10244
|
setup(props2, {
|
|
10244
10245
|
slots
|
|
@@ -10310,7 +10311,7 @@ var stdin_default$S = defineComponent({
|
|
|
10310
10311
|
"id": `${id}-${index}`,
|
|
10311
10312
|
"role": "button",
|
|
10312
10313
|
"tabindex": disabled ? void 0 : 0,
|
|
10313
|
-
"class": [bem$
|
|
10314
|
+
"class": [bem$N("item", {
|
|
10314
10315
|
disabled
|
|
10315
10316
|
}), {
|
|
10316
10317
|
[HAPTICS_FEEDBACK]: !disabled
|
|
@@ -10321,7 +10322,7 @@ var stdin_default$S = defineComponent({
|
|
|
10321
10322
|
}
|
|
10322
10323
|
}
|
|
10323
10324
|
}, [createVNode("span", {
|
|
10324
|
-
"class": [bem$
|
|
10325
|
+
"class": [bem$N("title", {
|
|
10325
10326
|
down: showPopup === (props2.direction === "down"),
|
|
10326
10327
|
active: showPopup
|
|
10327
10328
|
}), titleClass],
|
|
@@ -10346,18 +10347,18 @@ var stdin_default$S = defineComponent({
|
|
|
10346
10347
|
var _a;
|
|
10347
10348
|
return createVNode("div", {
|
|
10348
10349
|
"ref": root,
|
|
10349
|
-
"class": bem$
|
|
10350
|
+
"class": bem$N()
|
|
10350
10351
|
}, [props2.showBar && createVNode("div", {
|
|
10351
10352
|
"ref": barRef,
|
|
10352
10353
|
"style": barStyle.value,
|
|
10353
|
-
"class": bem$
|
|
10354
|
+
"class": bem$N("bar", {
|
|
10354
10355
|
opened: opened.value
|
|
10355
10356
|
})
|
|
10356
10357
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
10357
10358
|
};
|
|
10358
10359
|
}
|
|
10359
10360
|
});
|
|
10360
|
-
const [name$
|
|
10361
|
+
const [name$L, bem$M] = createNamespace("dropdown-item");
|
|
10361
10362
|
const dropdownItemProps = {
|
|
10362
10363
|
title: String,
|
|
10363
10364
|
options: makeArrayProp(),
|
|
@@ -10367,8 +10368,8 @@ const dropdownItemProps = {
|
|
|
10367
10368
|
modelValue: unknownProp,
|
|
10368
10369
|
titleClass: unknownProp
|
|
10369
10370
|
};
|
|
10370
|
-
var stdin_default$
|
|
10371
|
-
name: name$
|
|
10371
|
+
var stdin_default$S = defineComponent({
|
|
10372
|
+
name: name$L,
|
|
10372
10373
|
props: dropdownItemProps,
|
|
10373
10374
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
|
10374
10375
|
setup(props2, {
|
|
@@ -10438,7 +10439,7 @@ var stdin_default$R = defineComponent({
|
|
|
10438
10439
|
const renderIcon = () => {
|
|
10439
10440
|
if (active) {
|
|
10440
10441
|
return createVNode(Icon, {
|
|
10441
|
-
"class": bem$
|
|
10442
|
+
"class": bem$M("icon"),
|
|
10442
10443
|
"color": activeColor,
|
|
10443
10444
|
"name": "success"
|
|
10444
10445
|
}, null);
|
|
@@ -10449,7 +10450,7 @@ var stdin_default$R = defineComponent({
|
|
|
10449
10450
|
"key": option.value,
|
|
10450
10451
|
"icon": option.icon,
|
|
10451
10452
|
"title": option.text,
|
|
10452
|
-
"class": bem$
|
|
10453
|
+
"class": bem$M("option", {
|
|
10453
10454
|
active
|
|
10454
10455
|
}),
|
|
10455
10456
|
"style": {
|
|
@@ -10481,13 +10482,13 @@ var stdin_default$R = defineComponent({
|
|
|
10481
10482
|
}
|
|
10482
10483
|
return withDirectives(createVNode("div", {
|
|
10483
10484
|
"style": style,
|
|
10484
|
-
"class": bem$
|
|
10485
|
+
"class": bem$M([direction]),
|
|
10485
10486
|
"onClick": onClickWrapper
|
|
10486
10487
|
}, [createVNode(Popup, {
|
|
10487
10488
|
"show": state.showPopup,
|
|
10488
10489
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
|
10489
10490
|
"role": "menu",
|
|
10490
|
-
"class": bem$
|
|
10491
|
+
"class": bem$M("content"),
|
|
10491
10492
|
"overlay": overlay,
|
|
10492
10493
|
"position": direction === "down" ? "top" : "bottom",
|
|
10493
10494
|
"duration": state.transition ? duration : 0,
|
|
@@ -10525,15 +10526,15 @@ var stdin_default$R = defineComponent({
|
|
|
10525
10526
|
};
|
|
10526
10527
|
}
|
|
10527
10528
|
});
|
|
10528
|
-
const DropdownItem = withInstall(stdin_default$
|
|
10529
|
-
const DropdownMenu = withInstall(stdin_default$
|
|
10530
|
-
const [name$
|
|
10531
|
-
const SIDEBAR_KEY = Symbol(name$
|
|
10529
|
+
const DropdownItem = withInstall(stdin_default$S);
|
|
10530
|
+
const DropdownMenu = withInstall(stdin_default$T);
|
|
10531
|
+
const [name$K, bem$L] = createNamespace("sidebar");
|
|
10532
|
+
const SIDEBAR_KEY = Symbol(name$K);
|
|
10532
10533
|
const sidebarProps = {
|
|
10533
10534
|
modelValue: makeNumericProp(0)
|
|
10534
10535
|
};
|
|
10535
|
-
var stdin_default$
|
|
10536
|
-
name: name$
|
|
10536
|
+
var stdin_default$R = defineComponent({
|
|
10537
|
+
name: name$K,
|
|
10537
10538
|
props: sidebarProps,
|
|
10538
10539
|
emits: ["change", "update:modelValue"],
|
|
10539
10540
|
setup(props2, {
|
|
@@ -10558,13 +10559,13 @@ var stdin_default$Q = defineComponent({
|
|
|
10558
10559
|
var _a;
|
|
10559
10560
|
return createVNode("div", {
|
|
10560
10561
|
"role": "tablist",
|
|
10561
|
-
"class": bem$
|
|
10562
|
+
"class": bem$L()
|
|
10562
10563
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
10563
10564
|
};
|
|
10564
10565
|
}
|
|
10565
10566
|
});
|
|
10566
|
-
const Sidebar = withInstall(stdin_default$
|
|
10567
|
-
const [name$
|
|
10567
|
+
const Sidebar = withInstall(stdin_default$R);
|
|
10568
|
+
const [name$J, bem$K] = createNamespace("sidebar-item");
|
|
10568
10569
|
const sidebarItemProps = extend({}, routeProps, {
|
|
10569
10570
|
dot: Boolean,
|
|
10570
10571
|
title: String,
|
|
@@ -10572,8 +10573,8 @@ const sidebarItemProps = extend({}, routeProps, {
|
|
|
10572
10573
|
disabled: Boolean,
|
|
10573
10574
|
badgeProps: Object
|
|
10574
10575
|
});
|
|
10575
|
-
var stdin_default$
|
|
10576
|
-
name: name$
|
|
10576
|
+
var stdin_default$Q = defineComponent({
|
|
10577
|
+
name: name$J,
|
|
10577
10578
|
props: sidebarItemProps,
|
|
10578
10579
|
emits: ["click"],
|
|
10579
10580
|
setup(props2, {
|
|
@@ -10609,7 +10610,7 @@ var stdin_default$P = defineComponent({
|
|
|
10609
10610
|
const selected = index.value === parent.getActive();
|
|
10610
10611
|
return createVNode("div", {
|
|
10611
10612
|
"role": "tab",
|
|
10612
|
-
"class": bem$
|
|
10613
|
+
"class": bem$K({
|
|
10613
10614
|
select: selected,
|
|
10614
10615
|
disabled
|
|
10615
10616
|
}),
|
|
@@ -10618,7 +10619,7 @@ var stdin_default$P = defineComponent({
|
|
|
10618
10619
|
"onClick": onClick
|
|
10619
10620
|
}, [createVNode(Badge, mergeProps({
|
|
10620
10621
|
"dot": dot,
|
|
10621
|
-
"class": bem$
|
|
10622
|
+
"class": bem$K("text"),
|
|
10622
10623
|
"content": badge
|
|
10623
10624
|
}, props2.badgeProps), {
|
|
10624
10625
|
default: () => [slots.title ? slots.title() : title]
|
|
@@ -10626,8 +10627,8 @@ var stdin_default$P = defineComponent({
|
|
|
10626
10627
|
};
|
|
10627
10628
|
}
|
|
10628
10629
|
});
|
|
10629
|
-
const SidebarItem = withInstall(stdin_default$
|
|
10630
|
-
const [name$
|
|
10630
|
+
const SidebarItem = withInstall(stdin_default$Q);
|
|
10631
|
+
const [name$I, bem$J] = createNamespace("floor-select");
|
|
10631
10632
|
const defaultBuildings = [{
|
|
10632
10633
|
id: "building-a",
|
|
10633
10634
|
text: "建筑A座",
|
|
@@ -10742,8 +10743,8 @@ const floorSelectProps = {
|
|
|
10742
10743
|
},
|
|
10743
10744
|
more: Boolean
|
|
10744
10745
|
};
|
|
10745
|
-
var stdin_default$
|
|
10746
|
-
name: name$
|
|
10746
|
+
var stdin_default$P = defineComponent({
|
|
10747
|
+
name: name$I,
|
|
10747
10748
|
props: floorSelectProps,
|
|
10748
10749
|
emits: ["change", "update:activeBuilding", "update:modelValue"],
|
|
10749
10750
|
setup(props2, {
|
|
@@ -10801,7 +10802,7 @@ var stdin_default$O = defineComponent({
|
|
|
10801
10802
|
});
|
|
10802
10803
|
return createVNode("div", {
|
|
10803
10804
|
"key": item.id,
|
|
10804
|
-
"class": bem$
|
|
10805
|
+
"class": bem$J("cell")
|
|
10805
10806
|
}, [cell || createVNode(Cell, {
|
|
10806
10807
|
"title": item.text,
|
|
10807
10808
|
"border": index < spaces.value.length - 1,
|
|
@@ -10813,14 +10814,14 @@ var stdin_default$O = defineComponent({
|
|
|
10813
10814
|
}, null)]);
|
|
10814
10815
|
};
|
|
10815
10816
|
return () => createVNode("div", {
|
|
10816
|
-
"class": bem$
|
|
10817
|
+
"class": bem$J()
|
|
10817
10818
|
}, [createVNode(Tabs, {
|
|
10818
10819
|
"active": activeBuilding.value,
|
|
10819
10820
|
"type": "filter",
|
|
10820
10821
|
"shrink": true,
|
|
10821
10822
|
"more": props2.more,
|
|
10822
10823
|
"showMore": showMore.value,
|
|
10823
|
-
"class": bem$
|
|
10824
|
+
"class": bem$J("tabs"),
|
|
10824
10825
|
"onUpdate:active": selectBuilding,
|
|
10825
10826
|
"onUpdate:showMore": (value) => {
|
|
10826
10827
|
showMore.value = value;
|
|
@@ -10832,10 +10833,10 @@ var stdin_default$O = defineComponent({
|
|
|
10832
10833
|
"title": building.text
|
|
10833
10834
|
}, null))]
|
|
10834
10835
|
}), createVNode("div", {
|
|
10835
|
-
"class": bem$
|
|
10836
|
+
"class": bem$J("content")
|
|
10836
10837
|
}, [createVNode(Sidebar, {
|
|
10837
10838
|
"modelValue": activeFloor.value,
|
|
10838
|
-
"class": bem$
|
|
10839
|
+
"class": bem$J("sidebar"),
|
|
10839
10840
|
"onUpdate:modelValue": (value) => {
|
|
10840
10841
|
activeFloor.value = +value;
|
|
10841
10842
|
}
|
|
@@ -10850,19 +10851,19 @@ var stdin_default$O = defineComponent({
|
|
|
10850
10851
|
"disabled": floor.disabled
|
|
10851
10852
|
}, null))]
|
|
10852
10853
|
}), createVNode("div", {
|
|
10853
|
-
"class": bem$
|
|
10854
|
+
"class": bem$J("cells")
|
|
10854
10855
|
}, [spaces.value.map(renderCell)])])]);
|
|
10855
10856
|
}
|
|
10856
10857
|
});
|
|
10857
|
-
const FloorSelect = withInstall(stdin_default$
|
|
10858
|
-
const [name$
|
|
10858
|
+
const FloorSelect = withInstall(stdin_default$P);
|
|
10859
|
+
const [name$H, bem$I] = createNamespace("form-panel");
|
|
10859
10860
|
const formPanelProps = {
|
|
10860
10861
|
show: Boolean,
|
|
10861
10862
|
title: String,
|
|
10862
10863
|
confirmText: makeStringProp("确定")
|
|
10863
10864
|
};
|
|
10864
|
-
var stdin_default$
|
|
10865
|
-
name: name$
|
|
10865
|
+
var stdin_default$O = defineComponent({
|
|
10866
|
+
name: name$H,
|
|
10866
10867
|
props: formPanelProps,
|
|
10867
10868
|
emits: ["update:show", "confirm"],
|
|
10868
10869
|
setup(props2, {
|
|
@@ -10876,19 +10877,19 @@ var stdin_default$N = defineComponent({
|
|
|
10876
10877
|
};
|
|
10877
10878
|
return () => createVNode(ActionSheet, {
|
|
10878
10879
|
"show": props2.show,
|
|
10879
|
-
"class": bem$
|
|
10880
|
+
"class": bem$I(),
|
|
10880
10881
|
"onUpdate:show": (show) => emit("update:show", show)
|
|
10881
10882
|
}, {
|
|
10882
10883
|
default: () => {
|
|
10883
10884
|
var _a;
|
|
10884
10885
|
return [createVNode("div", {
|
|
10885
|
-
"class": bem$
|
|
10886
|
+
"class": bem$I("content")
|
|
10886
10887
|
}, [createVNode("div", {
|
|
10887
|
-
"class": bem$
|
|
10888
|
+
"class": bem$I("nav-wrapper")
|
|
10888
10889
|
}, [createVNode(NavBar, {
|
|
10889
10890
|
"title": props2.title,
|
|
10890
10891
|
"border": false,
|
|
10891
|
-
"class": bem$
|
|
10892
|
+
"class": bem$I("nav")
|
|
10892
10893
|
}, {
|
|
10893
10894
|
left: () => createVNode(Icon, {
|
|
10894
10895
|
"name": "cross",
|
|
@@ -10896,9 +10897,9 @@ var stdin_default$N = defineComponent({
|
|
|
10896
10897
|
"onClick": close
|
|
10897
10898
|
}, null)
|
|
10898
10899
|
})]), createVNode("div", {
|
|
10899
|
-
"class": bem$
|
|
10900
|
+
"class": bem$I("body")
|
|
10900
10901
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), createVNode("div", {
|
|
10901
|
-
"class": bem$
|
|
10902
|
+
"class": bem$I("footer")
|
|
10902
10903
|
}, [createVNode(Button, {
|
|
10903
10904
|
"block": true,
|
|
10904
10905
|
"type": "primary",
|
|
@@ -10910,8 +10911,8 @@ var stdin_default$N = defineComponent({
|
|
|
10910
10911
|
});
|
|
10911
10912
|
}
|
|
10912
10913
|
});
|
|
10913
|
-
const FormPanel = withInstall(stdin_default$
|
|
10914
|
-
const [name$
|
|
10914
|
+
const FormPanel = withInstall(stdin_default$O);
|
|
10915
|
+
const [name$G, bem$H] = createNamespace("friendly-tip");
|
|
10915
10916
|
const friendlyTipProps = {
|
|
10916
10917
|
show: truthProp,
|
|
10917
10918
|
message: String,
|
|
@@ -10928,8 +10929,8 @@ const friendlyTipProps = {
|
|
|
10928
10929
|
default: "body"
|
|
10929
10930
|
}
|
|
10930
10931
|
};
|
|
10931
|
-
var stdin_default$
|
|
10932
|
-
name: name$
|
|
10932
|
+
var stdin_default$N = defineComponent({
|
|
10933
|
+
name: name$G,
|
|
10933
10934
|
props: friendlyTipProps,
|
|
10934
10935
|
emits: ["update:show"],
|
|
10935
10936
|
setup(props2, {
|
|
@@ -10940,7 +10941,7 @@ var stdin_default$M = defineComponent({
|
|
|
10940
10941
|
return () => createVNode(Popover, {
|
|
10941
10942
|
"show": props2.show,
|
|
10942
10943
|
"trigger": "manual",
|
|
10943
|
-
"class": bem$
|
|
10944
|
+
"class": bem$H("popover"),
|
|
10944
10945
|
"placement": props2.placement,
|
|
10945
10946
|
"showArrow": props2.showArrow,
|
|
10946
10947
|
"iconPrefix": props2.iconPrefix,
|
|
@@ -10953,19 +10954,19 @@ var stdin_default$M = defineComponent({
|
|
|
10953
10954
|
return (_a = slots.reference) == null ? void 0 : _a.call(slots);
|
|
10954
10955
|
},
|
|
10955
10956
|
default: () => createVNode("div", {
|
|
10956
|
-
"class": bem$
|
|
10957
|
+
"class": bem$H()
|
|
10957
10958
|
}, [props2.icon && createVNode(Icon, {
|
|
10958
10959
|
"name": props2.icon,
|
|
10959
|
-
"class": bem$
|
|
10960
|
+
"class": bem$H("icon"),
|
|
10960
10961
|
"classPrefix": props2.iconPrefix
|
|
10961
10962
|
}, null), createVNode("span", {
|
|
10962
|
-
"class": bem$
|
|
10963
|
+
"class": bem$H("message")
|
|
10963
10964
|
}, [slots.default ? slots.default() : props2.message])])
|
|
10964
10965
|
});
|
|
10965
10966
|
}
|
|
10966
10967
|
});
|
|
10967
|
-
const FriendlyTip = withInstall(stdin_default$
|
|
10968
|
-
const [name$
|
|
10968
|
+
const FriendlyTip = withInstall(stdin_default$N);
|
|
10969
|
+
const [name$F, bem$G] = createNamespace("grid");
|
|
10969
10970
|
const gridProps = {
|
|
10970
10971
|
square: Boolean,
|
|
10971
10972
|
center: truthProp,
|
|
@@ -10977,9 +10978,9 @@ const gridProps = {
|
|
|
10977
10978
|
clickable: Boolean,
|
|
10978
10979
|
columnNum: makeNumericProp(4)
|
|
10979
10980
|
};
|
|
10980
|
-
const GRID_KEY = Symbol(name$
|
|
10981
|
-
var stdin_default$
|
|
10982
|
-
name: name$
|
|
10981
|
+
const GRID_KEY = Symbol(name$F);
|
|
10982
|
+
var stdin_default$M = defineComponent({
|
|
10983
|
+
name: name$F,
|
|
10983
10984
|
props: gridProps,
|
|
10984
10985
|
setup(props2, {
|
|
10985
10986
|
slots
|
|
@@ -10996,15 +10997,15 @@ var stdin_default$L = defineComponent({
|
|
|
10996
10997
|
"style": {
|
|
10997
10998
|
paddingLeft: addUnit(props2.gutter)
|
|
10998
10999
|
},
|
|
10999
|
-
"class": [bem$
|
|
11000
|
+
"class": [bem$G(), {
|
|
11000
11001
|
[BORDER_TOP]: props2.border && !props2.gutter
|
|
11001
11002
|
}]
|
|
11002
11003
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
11003
11004
|
};
|
|
11004
11005
|
}
|
|
11005
11006
|
});
|
|
11006
|
-
const Grid = withInstall(stdin_default$
|
|
11007
|
-
const [name$
|
|
11007
|
+
const Grid = withInstall(stdin_default$M);
|
|
11008
|
+
const [name$E, bem$F] = createNamespace("grid-item");
|
|
11008
11009
|
const gridItemProps = extend({}, routeProps, {
|
|
11009
11010
|
dot: Boolean,
|
|
11010
11011
|
text: String,
|
|
@@ -11014,8 +11015,8 @@ const gridItemProps = extend({}, routeProps, {
|
|
|
11014
11015
|
iconPrefix: String,
|
|
11015
11016
|
badgeProps: Object
|
|
11016
11017
|
});
|
|
11017
|
-
var stdin_default$
|
|
11018
|
-
name: name$
|
|
11018
|
+
var stdin_default$L = defineComponent({
|
|
11019
|
+
name: name$E,
|
|
11019
11020
|
props: gridItemProps,
|
|
11020
11021
|
setup(props2, {
|
|
11021
11022
|
slots
|
|
@@ -11081,7 +11082,7 @@ var stdin_default$K = defineComponent({
|
|
|
11081
11082
|
"name": props2.icon,
|
|
11082
11083
|
"size": parent.props.iconSize,
|
|
11083
11084
|
"badge": props2.badge,
|
|
11084
|
-
"class": bem$
|
|
11085
|
+
"class": bem$F("icon"),
|
|
11085
11086
|
"color": props2.iconColor,
|
|
11086
11087
|
"badgeProps": props2.badgeProps,
|
|
11087
11088
|
"classPrefix": props2.iconPrefix
|
|
@@ -11094,7 +11095,7 @@ var stdin_default$K = defineComponent({
|
|
|
11094
11095
|
}
|
|
11095
11096
|
if (props2.text) {
|
|
11096
11097
|
return createVNode("span", {
|
|
11097
|
-
"class": bem$
|
|
11098
|
+
"class": bem$F("text")
|
|
11098
11099
|
}, [props2.text]);
|
|
11099
11100
|
}
|
|
11100
11101
|
};
|
|
@@ -11114,7 +11115,7 @@ var stdin_default$K = defineComponent({
|
|
|
11114
11115
|
direction,
|
|
11115
11116
|
clickable
|
|
11116
11117
|
} = parent.props;
|
|
11117
|
-
const classes = [bem$
|
|
11118
|
+
const classes = [bem$F("content", [direction, {
|
|
11118
11119
|
center,
|
|
11119
11120
|
square,
|
|
11120
11121
|
reverse,
|
|
@@ -11124,7 +11125,7 @@ var stdin_default$K = defineComponent({
|
|
|
11124
11125
|
[BORDER]: border
|
|
11125
11126
|
}];
|
|
11126
11127
|
return createVNode("div", {
|
|
11127
|
-
"class": [bem$
|
|
11128
|
+
"class": [bem$F({
|
|
11128
11129
|
square
|
|
11129
11130
|
})],
|
|
11130
11131
|
"style": rootStyle.value
|
|
@@ -11138,10 +11139,10 @@ var stdin_default$K = defineComponent({
|
|
|
11138
11139
|
};
|
|
11139
11140
|
}
|
|
11140
11141
|
});
|
|
11141
|
-
const GridItem = withInstall(stdin_default$
|
|
11142
|
+
const GridItem = withInstall(stdin_default$L);
|
|
11142
11143
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
|
11143
|
-
const bem$
|
|
11144
|
-
var stdin_default$
|
|
11144
|
+
const bem$E = createNamespace("image-preview")[1];
|
|
11145
|
+
var stdin_default$K = defineComponent({
|
|
11145
11146
|
props: {
|
|
11146
11147
|
src: String,
|
|
11147
11148
|
show: Boolean,
|
|
@@ -11367,19 +11368,19 @@ var stdin_default$J = defineComponent({
|
|
|
11367
11368
|
};
|
|
11368
11369
|
return createVNode(SwipeItem, {
|
|
11369
11370
|
"ref": swipeItem,
|
|
11370
|
-
"class": bem$
|
|
11371
|
+
"class": bem$E("swipe-item"),
|
|
11371
11372
|
"onTouchstartPassive": onTouchStart,
|
|
11372
11373
|
"onTouchend": onTouchEnd,
|
|
11373
11374
|
"onTouchcancel": onTouchEnd
|
|
11374
11375
|
}, {
|
|
11375
11376
|
default: () => [slots.image ? createVNode("div", {
|
|
11376
|
-
"class": bem$
|
|
11377
|
+
"class": bem$E("image-wrap")
|
|
11377
11378
|
}, [slots.image({
|
|
11378
11379
|
src: props2.src
|
|
11379
11380
|
})]) : createVNode(Image$1, {
|
|
11380
11381
|
"src": props2.src,
|
|
11381
11382
|
"fit": "contain",
|
|
11382
|
-
"class": bem$
|
|
11383
|
+
"class": bem$E("image", {
|
|
11383
11384
|
vertical: vertical.value
|
|
11384
11385
|
}),
|
|
11385
11386
|
"style": imageStyle.value,
|
|
@@ -11389,7 +11390,7 @@ var stdin_default$J = defineComponent({
|
|
|
11389
11390
|
};
|
|
11390
11391
|
}
|
|
11391
11392
|
});
|
|
11392
|
-
const [name$
|
|
11393
|
+
const [name$D, bem$D] = createNamespace("image-preview");
|
|
11393
11394
|
const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
|
|
11394
11395
|
const imagePreviewProps = {
|
|
11395
11396
|
show: Boolean,
|
|
@@ -11412,8 +11413,8 @@ const imagePreviewProps = {
|
|
|
11412
11413
|
closeOnPopstate: truthProp,
|
|
11413
11414
|
closeIconPosition: makeStringProp("top-right")
|
|
11414
11415
|
};
|
|
11415
|
-
var stdin_default$
|
|
11416
|
-
name: name$
|
|
11416
|
+
var stdin_default$J = defineComponent({
|
|
11417
|
+
name: name$D,
|
|
11417
11418
|
props: imagePreviewProps,
|
|
11418
11419
|
emits: ["scale", "close", "closed", "change", "update:show"],
|
|
11419
11420
|
setup(props2, {
|
|
@@ -11451,7 +11452,7 @@ var stdin_default$I = defineComponent({
|
|
|
11451
11452
|
const renderIndex = () => {
|
|
11452
11453
|
if (props2.showIndex) {
|
|
11453
11454
|
return createVNode("div", {
|
|
11454
|
-
"class": bem$
|
|
11455
|
+
"class": bem$D("index")
|
|
11455
11456
|
}, [slots.index ? slots.index({
|
|
11456
11457
|
index: state.active
|
|
11457
11458
|
}) : `${state.active + 1} / ${props2.images.length}`]);
|
|
@@ -11460,7 +11461,7 @@ var stdin_default$I = defineComponent({
|
|
|
11460
11461
|
const renderCover = () => {
|
|
11461
11462
|
if (slots.cover) {
|
|
11462
11463
|
return createVNode("div", {
|
|
11463
|
-
"class": bem$
|
|
11464
|
+
"class": bem$D("cover")
|
|
11464
11465
|
}, [slots.cover()]);
|
|
11465
11466
|
}
|
|
11466
11467
|
};
|
|
@@ -11468,14 +11469,14 @@ var stdin_default$I = defineComponent({
|
|
|
11468
11469
|
"ref": swipeRef,
|
|
11469
11470
|
"lazyRender": true,
|
|
11470
11471
|
"loop": props2.loop,
|
|
11471
|
-
"class": bem$
|
|
11472
|
+
"class": bem$D("swipe"),
|
|
11472
11473
|
"duration": props2.swipeDuration,
|
|
11473
11474
|
"initialSwipe": props2.startPosition,
|
|
11474
11475
|
"showIndicators": props2.showIndicators,
|
|
11475
11476
|
"indicatorColor": "white",
|
|
11476
11477
|
"onChange": setActive
|
|
11477
11478
|
}, {
|
|
11478
|
-
default: () => [props2.images.map((image) => createVNode(stdin_default$
|
|
11479
|
+
default: () => [props2.images.map((image) => createVNode(stdin_default$K, {
|
|
11479
11480
|
"src": image,
|
|
11480
11481
|
"show": props2.show,
|
|
11481
11482
|
"active": state.active,
|
|
@@ -11494,7 +11495,7 @@ var stdin_default$I = defineComponent({
|
|
|
11494
11495
|
return createVNode(Icon, {
|
|
11495
11496
|
"role": "button",
|
|
11496
11497
|
"name": props2.closeIcon,
|
|
11497
|
-
"class": [bem$
|
|
11498
|
+
"class": [bem$D("close-icon", props2.closeIconPosition), HAPTICS_FEEDBACK],
|
|
11498
11499
|
"onClick": emitClose
|
|
11499
11500
|
}, null);
|
|
11500
11501
|
}
|
|
@@ -11531,8 +11532,8 @@ var stdin_default$I = defineComponent({
|
|
|
11531
11532
|
}
|
|
11532
11533
|
});
|
|
11533
11534
|
return () => createVNode(Popup, mergeProps({
|
|
11534
|
-
"class": [bem$
|
|
11535
|
-
"overlayClass": [bem$
|
|
11535
|
+
"class": [bem$D(), props2.className],
|
|
11536
|
+
"overlayClass": [bem$D("overlay"), props2.overlayClass],
|
|
11536
11537
|
"onClosed": onClosed,
|
|
11537
11538
|
"onUpdate:show": updateShow
|
|
11538
11539
|
}, pick(props2, popupProps$1)), {
|
|
@@ -11576,7 +11577,7 @@ function initInstance$2() {
|
|
|
11576
11577
|
const onClosed = () => {
|
|
11577
11578
|
state.images = [];
|
|
11578
11579
|
};
|
|
11579
|
-
return () => createVNode(stdin_default$
|
|
11580
|
+
return () => createVNode(stdin_default$J, mergeProps(state, {
|
|
11580
11581
|
"onClosed": onClosed,
|
|
11581
11582
|
"onUpdate:show": toggle
|
|
11582
11583
|
}), null);
|
|
@@ -11597,7 +11598,7 @@ const ImagePreview = (options, startPosition = 0) => {
|
|
|
11597
11598
|
instance$2.open(extend({}, defaultConfig$1, options));
|
|
11598
11599
|
return instance$2;
|
|
11599
11600
|
};
|
|
11600
|
-
ImagePreview.Component = withInstall(stdin_default$
|
|
11601
|
+
ImagePreview.Component = withInstall(stdin_default$J);
|
|
11601
11602
|
ImagePreview.install = (app) => {
|
|
11602
11603
|
app.use(ImagePreview.Component);
|
|
11603
11604
|
};
|
|
@@ -11606,7 +11607,7 @@ function genAlphabet() {
|
|
|
11606
11607
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
|
11607
11608
|
return indexList;
|
|
11608
11609
|
}
|
|
11609
|
-
const [name$
|
|
11610
|
+
const [name$C, bem$C] = createNamespace("index-bar");
|
|
11610
11611
|
const indexBarProps = {
|
|
11611
11612
|
sticky: truthProp,
|
|
11612
11613
|
zIndex: numericProp,
|
|
@@ -11618,9 +11619,9 @@ const indexBarProps = {
|
|
|
11618
11619
|
default: genAlphabet
|
|
11619
11620
|
}
|
|
11620
11621
|
};
|
|
11621
|
-
const INDEX_BAR_KEY = Symbol(name$
|
|
11622
|
-
var stdin_default$
|
|
11623
|
-
name: name$
|
|
11622
|
+
const INDEX_BAR_KEY = Symbol(name$C);
|
|
11623
|
+
var stdin_default$I = defineComponent({
|
|
11624
|
+
name: name$C,
|
|
11624
11625
|
props: indexBarProps,
|
|
11625
11626
|
emits: ["select", "change"],
|
|
11626
11627
|
setup(props2, {
|
|
@@ -11732,7 +11733,7 @@ var stdin_default$H = defineComponent({
|
|
|
11732
11733
|
const renderIndexes = () => props2.indexList.map((index) => {
|
|
11733
11734
|
const active = index === activeAnchor.value;
|
|
11734
11735
|
return createVNode("span", {
|
|
11735
|
-
"class": bem$
|
|
11736
|
+
"class": bem$C("index", {
|
|
11736
11737
|
active
|
|
11737
11738
|
}),
|
|
11738
11739
|
"style": active ? highlightStyle.value : void 0,
|
|
@@ -11793,7 +11794,7 @@ var stdin_default$H = defineComponent({
|
|
|
11793
11794
|
};
|
|
11794
11795
|
const renderSidebar = () => createVNode("div", {
|
|
11795
11796
|
"ref": sidebar,
|
|
11796
|
-
"class": bem$
|
|
11797
|
+
"class": bem$C("sidebar"),
|
|
11797
11798
|
"style": sidebarStyle.value,
|
|
11798
11799
|
"onClick": onClickSidebar,
|
|
11799
11800
|
"onTouchstartPassive": touch.start
|
|
@@ -11809,7 +11810,7 @@ var stdin_default$H = defineComponent({
|
|
|
11809
11810
|
var _a;
|
|
11810
11811
|
return createVNode("div", {
|
|
11811
11812
|
"ref": root,
|
|
11812
|
-
"class": bem$
|
|
11813
|
+
"class": bem$C()
|
|
11813
11814
|
}, [props2.teleport ? createVNode(Teleport, {
|
|
11814
11815
|
"to": props2.teleport
|
|
11815
11816
|
}, {
|
|
@@ -11818,12 +11819,12 @@ var stdin_default$H = defineComponent({
|
|
|
11818
11819
|
};
|
|
11819
11820
|
}
|
|
11820
11821
|
});
|
|
11821
|
-
const [name$
|
|
11822
|
+
const [name$B, bem$B] = createNamespace("index-anchor");
|
|
11822
11823
|
const indexAnchorProps = {
|
|
11823
11824
|
index: numericProp
|
|
11824
11825
|
};
|
|
11825
|
-
var stdin_default$
|
|
11826
|
-
name: name$
|
|
11826
|
+
var stdin_default$H = defineComponent({
|
|
11827
|
+
name: name$B,
|
|
11827
11828
|
props: indexAnchorProps,
|
|
11828
11829
|
setup(props2, {
|
|
11829
11830
|
slots
|
|
@@ -11886,7 +11887,7 @@ var stdin_default$G = defineComponent({
|
|
|
11886
11887
|
}
|
|
11887
11888
|
}, [createVNode("div", {
|
|
11888
11889
|
"style": anchorStyle.value,
|
|
11889
|
-
"class": [bem$
|
|
11890
|
+
"class": [bem$B({
|
|
11890
11891
|
sticky
|
|
11891
11892
|
}), {
|
|
11892
11893
|
[BORDER_BOTTOM]: sticky
|
|
@@ -11895,8 +11896,96 @@ var stdin_default$G = defineComponent({
|
|
|
11895
11896
|
};
|
|
11896
11897
|
}
|
|
11897
11898
|
});
|
|
11898
|
-
const IndexAnchor = withInstall(stdin_default$
|
|
11899
|
-
const IndexBar = withInstall(stdin_default$
|
|
11899
|
+
const IndexAnchor = withInstall(stdin_default$H);
|
|
11900
|
+
const IndexBar = withInstall(stdin_default$I);
|
|
11901
|
+
const [name$A, bem$A] = createNamespace("label");
|
|
11902
|
+
const labelProps = {
|
|
11903
|
+
label: makeStringProp(""),
|
|
11904
|
+
content: makeStringProp(""),
|
|
11905
|
+
type: makeStringProp("default"),
|
|
11906
|
+
vertical: Boolean,
|
|
11907
|
+
href: String,
|
|
11908
|
+
tags: {
|
|
11909
|
+
type: Array,
|
|
11910
|
+
default: () => []
|
|
11911
|
+
},
|
|
11912
|
+
media: {
|
|
11913
|
+
type: Array,
|
|
11914
|
+
default: () => []
|
|
11915
|
+
}
|
|
11916
|
+
};
|
|
11917
|
+
var stdin_default$G = defineComponent({
|
|
11918
|
+
name: name$A,
|
|
11919
|
+
props: labelProps,
|
|
11920
|
+
emits: ["click", "click-media"],
|
|
11921
|
+
setup(props2, {
|
|
11922
|
+
slots,
|
|
11923
|
+
emit
|
|
11924
|
+
}) {
|
|
11925
|
+
const vertical = computed(() => props2.vertical || props2.type === "media");
|
|
11926
|
+
const renderText = () => {
|
|
11927
|
+
var _a;
|
|
11928
|
+
const content = ((_a = slots.default) == null ? void 0 : _a.call(slots)) || props2.content;
|
|
11929
|
+
if (props2.type === "link") {
|
|
11930
|
+
return props2.href ? createVNode("a", {
|
|
11931
|
+
"class": bem$A("link"),
|
|
11932
|
+
"href": props2.href,
|
|
11933
|
+
"onClick": (event) => emit("click", event)
|
|
11934
|
+
}, [content]) : createVNode("button", {
|
|
11935
|
+
"class": bem$A("link"),
|
|
11936
|
+
"type": "button",
|
|
11937
|
+
"onClick": (event) => emit("click", event)
|
|
11938
|
+
}, [content]);
|
|
11939
|
+
}
|
|
11940
|
+
return createVNode("span", {
|
|
11941
|
+
"class": bem$A("text")
|
|
11942
|
+
}, [content]);
|
|
11943
|
+
};
|
|
11944
|
+
const renderTags = () => createVNode("div", {
|
|
11945
|
+
"class": bem$A("tags")
|
|
11946
|
+
}, [props2.tags.map((tag) => createVNode(Tag, {
|
|
11947
|
+
"key": tag,
|
|
11948
|
+
"type": "gray"
|
|
11949
|
+
}, {
|
|
11950
|
+
default: () => [tag]
|
|
11951
|
+
}))]);
|
|
11952
|
+
const renderMedia = () => createVNode("div", {
|
|
11953
|
+
"class": bem$A("media")
|
|
11954
|
+
}, [props2.media.map((item, index) => createVNode("button", {
|
|
11955
|
+
"key": `${item.url}-${index}`,
|
|
11956
|
+
"class": bem$A("media-item"),
|
|
11957
|
+
"type": "button",
|
|
11958
|
+
"onClick": (event) => emit("click-media", item, index, event)
|
|
11959
|
+
}, [createVNode(Image$1, {
|
|
11960
|
+
"src": item.type === "video" ? item.poster || item.url : item.url,
|
|
11961
|
+
"alt": item.alt,
|
|
11962
|
+
"width": "64",
|
|
11963
|
+
"height": "64",
|
|
11964
|
+
"radius": "4",
|
|
11965
|
+
"fit": "cover"
|
|
11966
|
+
}, null), item.type === "video" && createVNode(Icon, {
|
|
11967
|
+
"name": "play-circle-o",
|
|
11968
|
+
"class": bem$A("play")
|
|
11969
|
+
}, null)]))]);
|
|
11970
|
+
const renderContent = () => {
|
|
11971
|
+
if (props2.type === "tag")
|
|
11972
|
+
return renderTags();
|
|
11973
|
+
if (props2.type === "media")
|
|
11974
|
+
return renderMedia();
|
|
11975
|
+
return renderText();
|
|
11976
|
+
};
|
|
11977
|
+
return () => createVNode("div", {
|
|
11978
|
+
"class": bem$A([props2.type, {
|
|
11979
|
+
vertical: vertical.value
|
|
11980
|
+
}])
|
|
11981
|
+
}, [createVNode("span", {
|
|
11982
|
+
"class": bem$A("label")
|
|
11983
|
+
}, [props2.label]), createVNode("div", {
|
|
11984
|
+
"class": bem$A("value")
|
|
11985
|
+
}, [renderContent()])]);
|
|
11986
|
+
}
|
|
11987
|
+
});
|
|
11988
|
+
const Label = withInstall(stdin_default$G);
|
|
11900
11989
|
const [name$z, bem$z, t$6] = createNamespace("list");
|
|
11901
11990
|
const listProps = {
|
|
11902
11991
|
error: Boolean,
|
|
@@ -13159,7 +13248,27 @@ const materialAddProps = {
|
|
|
13159
13248
|
default: () => defaultCategories
|
|
13160
13249
|
},
|
|
13161
13250
|
title: makeStringProp("添加物料"),
|
|
13162
|
-
confirmText: makeStringProp("确定")
|
|
13251
|
+
confirmText: makeStringProp("确定"),
|
|
13252
|
+
showCommonTab: {
|
|
13253
|
+
type: Boolean,
|
|
13254
|
+
default: true
|
|
13255
|
+
},
|
|
13256
|
+
showAllTab: {
|
|
13257
|
+
type: Boolean,
|
|
13258
|
+
default: true
|
|
13259
|
+
},
|
|
13260
|
+
showMaterialTab: {
|
|
13261
|
+
type: Boolean,
|
|
13262
|
+
default: true
|
|
13263
|
+
},
|
|
13264
|
+
showToolTab: {
|
|
13265
|
+
type: Boolean,
|
|
13266
|
+
default: true
|
|
13267
|
+
},
|
|
13268
|
+
commonTabText: makeStringProp("常用物料"),
|
|
13269
|
+
allTabText: makeStringProp("全部物料"),
|
|
13270
|
+
materialTabText: makeStringProp("物资"),
|
|
13271
|
+
toolTabText: makeStringProp("工具")
|
|
13163
13272
|
};
|
|
13164
13273
|
var stdin_default$y = defineComponent({
|
|
13165
13274
|
name: name$t,
|
|
@@ -13168,8 +13277,16 @@ var stdin_default$y = defineComponent({
|
|
|
13168
13277
|
setup(props2, {
|
|
13169
13278
|
emit
|
|
13170
13279
|
}) {
|
|
13171
|
-
const
|
|
13172
|
-
const
|
|
13280
|
+
const getDefaultTab = () => props2.showCommonTab || !props2.showAllTab ? "common" : "all";
|
|
13281
|
+
const getDefaultKind = () => {
|
|
13282
|
+
if (props2.showMaterialTab || !props2.showToolTab)
|
|
13283
|
+
return "material";
|
|
13284
|
+
if (props2.showToolTab)
|
|
13285
|
+
return "tool";
|
|
13286
|
+
return void 0;
|
|
13287
|
+
};
|
|
13288
|
+
const activeTab = ref(getDefaultTab());
|
|
13289
|
+
const activeKind = ref(getDefaultKind());
|
|
13173
13290
|
const keyword = ref("");
|
|
13174
13291
|
const searching = ref(false);
|
|
13175
13292
|
const expandedKeys = ref(["material-root", "tool-root"]);
|
|
@@ -13181,8 +13298,8 @@ var stdin_default$y = defineComponent({
|
|
|
13181
13298
|
const detailBannerIndex = ref(0);
|
|
13182
13299
|
watch(() => props2.show, (show) => {
|
|
13183
13300
|
if (show) {
|
|
13184
|
-
activeTab.value =
|
|
13185
|
-
activeKind.value =
|
|
13301
|
+
activeTab.value = getDefaultTab();
|
|
13302
|
+
activeKind.value = getDefaultKind();
|
|
13186
13303
|
keyword.value = "";
|
|
13187
13304
|
searching.value = false;
|
|
13188
13305
|
expandedKeys.value = ["material-root", "tool-root"];
|
|
@@ -13196,6 +13313,16 @@ var stdin_default$y = defineComponent({
|
|
|
13196
13313
|
}, {
|
|
13197
13314
|
immediate: true
|
|
13198
13315
|
});
|
|
13316
|
+
watch(() => [props2.showCommonTab, props2.showAllTab], () => {
|
|
13317
|
+
if (activeTab.value === "common" && !props2.showCommonTab || activeTab.value === "all" && !props2.showAllTab) {
|
|
13318
|
+
activeTab.value = getDefaultTab();
|
|
13319
|
+
}
|
|
13320
|
+
});
|
|
13321
|
+
watch(() => [props2.showMaterialTab, props2.showToolTab], () => {
|
|
13322
|
+
if (activeKind.value === "material" && !props2.showMaterialTab || activeKind.value === "tool" && !props2.showToolTab) {
|
|
13323
|
+
activeKind.value = getDefaultKind();
|
|
13324
|
+
}
|
|
13325
|
+
});
|
|
13199
13326
|
const quantities = computed(() => props2.items.map((_, index) => Math.max(Number(props2.modelValue[index] || 0), 0)));
|
|
13200
13327
|
const total = computed(() => quantities.value.reduce((sum, value) => sum + value, 0));
|
|
13201
13328
|
const selectedItems = computed(() => props2.items.map((item, index) => ({
|
|
@@ -13208,8 +13335,8 @@ var stdin_default$y = defineComponent({
|
|
|
13208
13335
|
const visibleItems = computed(() => {
|
|
13209
13336
|
const query = keyword.value.trim().toLowerCase();
|
|
13210
13337
|
return props2.items.filter((item) => {
|
|
13211
|
-
const matchesKind = searching.value || item.kind === activeKind.value;
|
|
13212
|
-
const matchesCategory = searching.value || activeTab.value ===
|
|
13338
|
+
const matchesKind = searching.value || !activeKind.value || item.kind === activeKind.value;
|
|
13339
|
+
const matchesCategory = searching.value || activeTab.value === "common";
|
|
13213
13340
|
const matchesSearch = !query || `${item.name}${item.detail}`.toLowerCase().includes(query);
|
|
13214
13341
|
return matchesKind && matchesCategory && matchesSearch;
|
|
13215
13342
|
});
|
|
@@ -13250,13 +13377,13 @@ var stdin_default$y = defineComponent({
|
|
|
13250
13377
|
"class": bem$t("empty")
|
|
13251
13378
|
}, [createTextVNode("暂无匹配物料")])]);
|
|
13252
13379
|
const renderCatalog = () => {
|
|
13253
|
-
const rootGroups = props2.categories.filter((category) => category.kind === activeKind.value);
|
|
13380
|
+
const rootGroups = props2.categories.filter((category) => !activeKind.value || category.kind === activeKind.value);
|
|
13254
13381
|
const configuredValues = new Set(rootGroups.flatMap((group) => group.categories.map((category) => category.value)));
|
|
13255
|
-
const ungroupedCategories = [...new Set(props2.items.filter((item) => item.kind === activeKind.value && !configuredValues.has(item.category)).map((item) => item.category))];
|
|
13382
|
+
const ungroupedCategories = [...new Set(props2.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && !configuredValues.has(item.category)).map((item) => item.category))];
|
|
13256
13383
|
const groups = ungroupedCategories.length ? [...rootGroups, {
|
|
13257
|
-
id: `${activeKind.value}-other`,
|
|
13384
|
+
id: `${activeKind.value || "all"}-other`,
|
|
13258
13385
|
text: "未分类",
|
|
13259
|
-
kind: activeKind.value,
|
|
13386
|
+
kind: activeKind.value || "material",
|
|
13260
13387
|
categories: ungroupedCategories.map((value) => ({
|
|
13261
13388
|
value,
|
|
13262
13389
|
text: value
|
|
@@ -13266,7 +13393,7 @@ var stdin_default$y = defineComponent({
|
|
|
13266
13393
|
id: root.id,
|
|
13267
13394
|
text: root.text,
|
|
13268
13395
|
selectable: false,
|
|
13269
|
-
children: props2.items.filter((item) => item.kind === activeKind.value && root.categories.some((category) => category.value === item.category)).map((material) => ({
|
|
13396
|
+
children: props2.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && root.categories.some((category) => category.value === item.category)).map((material) => ({
|
|
13270
13397
|
id: material.id,
|
|
13271
13398
|
text: material.name,
|
|
13272
13399
|
selectable: false,
|
|
@@ -13457,36 +13584,38 @@ var stdin_default$y = defineComponent({
|
|
|
13457
13584
|
searching.value = true;
|
|
13458
13585
|
}
|
|
13459
13586
|
}, null)
|
|
13460
|
-
}), createVNode(Tabs, {
|
|
13587
|
+
}), (props2.showCommonTab || props2.showAllTab) && createVNode(Tabs, {
|
|
13461
13588
|
"active": activeTab.value,
|
|
13462
13589
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
13463
13590
|
"class": bem$t("tabs"),
|
|
13464
13591
|
"shrink": true
|
|
13465
13592
|
}, {
|
|
13466
|
-
default: () => [createVNode(Tab, {
|
|
13467
|
-
"
|
|
13468
|
-
|
|
13469
|
-
|
|
13593
|
+
default: () => [props2.showCommonTab && createVNode(Tab, {
|
|
13594
|
+
"name": "common",
|
|
13595
|
+
"title": props2.commonTabText
|
|
13596
|
+
}, null), props2.showAllTab && createVNode(Tab, {
|
|
13597
|
+
"name": "all",
|
|
13598
|
+
"title": props2.allTabText
|
|
13470
13599
|
}, null)]
|
|
13471
|
-
}), createVNode("div", {
|
|
13600
|
+
}), (props2.showMaterialTab || props2.showToolTab) && createVNode("div", {
|
|
13472
13601
|
"class": bem$t("filter-tags")
|
|
13473
|
-
}, [createVNode(FilterTag, {
|
|
13602
|
+
}, [props2.showMaterialTab && createVNode(FilterTag, {
|
|
13474
13603
|
"selected": activeKind.value === "material",
|
|
13475
13604
|
"onClick": () => {
|
|
13476
13605
|
activeKind.value = "material";
|
|
13477
13606
|
}
|
|
13478
13607
|
}, {
|
|
13479
|
-
default: () => [
|
|
13480
|
-
}), createVNode(FilterTag, {
|
|
13608
|
+
default: () => [props2.materialTabText]
|
|
13609
|
+
}), props2.showToolTab && createVNode(FilterTag, {
|
|
13481
13610
|
"selected": activeKind.value === "tool",
|
|
13482
13611
|
"onClick": () => {
|
|
13483
13612
|
activeKind.value = "tool";
|
|
13484
13613
|
}
|
|
13485
13614
|
}, {
|
|
13486
|
-
default: () => [
|
|
13615
|
+
default: () => [props2.toolTabText]
|
|
13487
13616
|
})])]), createVNode("div", {
|
|
13488
13617
|
"class": bem$t("body")
|
|
13489
|
-
}, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value ===
|
|
13618
|
+
}, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value === "common" ? renderList() : renderCatalog()]), createVNode("div", {
|
|
13490
13619
|
"class": bem$t("footer")
|
|
13491
13620
|
}, [renderSelectPanel(), createVNode(BottomActionBar, {
|
|
13492
13621
|
"fixed": false,
|
|
@@ -15542,19 +15671,39 @@ var stdin_default$n = defineComponent({
|
|
|
15542
15671
|
const QuantityInput = withInstall(stdin_default$n);
|
|
15543
15672
|
const BatchMultiSelect = QuantityInput;
|
|
15544
15673
|
const [name$h, bem$h] = createNamespace("radio-panel");
|
|
15674
|
+
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
15545
15675
|
const radioPanelProps = {
|
|
15546
15676
|
show: Boolean,
|
|
15547
15677
|
title: String,
|
|
15548
15678
|
options: makeArrayProp(),
|
|
15549
|
-
modelValue: String
|
|
15679
|
+
modelValue: String,
|
|
15680
|
+
searchable: Boolean,
|
|
15681
|
+
searchPlaceholder: String,
|
|
15682
|
+
filterable: Boolean,
|
|
15683
|
+
filterActive: Boolean,
|
|
15684
|
+
loading: Boolean,
|
|
15685
|
+
finished: Boolean,
|
|
15686
|
+
error: Boolean,
|
|
15687
|
+
lazy: Boolean,
|
|
15688
|
+
loadingText: String,
|
|
15689
|
+
finishedText: String,
|
|
15690
|
+
errorText: String
|
|
15550
15691
|
};
|
|
15551
15692
|
var stdin_default$m = defineComponent({
|
|
15552
15693
|
name: name$h,
|
|
15553
15694
|
props: radioPanelProps,
|
|
15554
|
-
emits: ["update:show", "update:modelValue", "select"],
|
|
15695
|
+
emits: ["update:show", "update:modelValue", "update:loading", "update:error", "select", "search", "filter", "load"],
|
|
15555
15696
|
setup(props2, {
|
|
15556
|
-
emit
|
|
15697
|
+
emit,
|
|
15698
|
+
slots
|
|
15557
15699
|
}) {
|
|
15700
|
+
const keyword = ref("");
|
|
15701
|
+
const filteredOptions = computed(() => {
|
|
15702
|
+
const query = keyword.value.trim().toLocaleLowerCase();
|
|
15703
|
+
if (!query)
|
|
15704
|
+
return props2.options;
|
|
15705
|
+
return props2.options.filter((option) => option.label.toLocaleLowerCase().includes(query));
|
|
15706
|
+
});
|
|
15558
15707
|
const close = () => emit("update:show", false);
|
|
15559
15708
|
const select = (option) => {
|
|
15560
15709
|
if (option.disabled)
|
|
@@ -15563,6 +15712,48 @@ var stdin_default$m = defineComponent({
|
|
|
15563
15712
|
emit("select", option.value);
|
|
15564
15713
|
close();
|
|
15565
15714
|
};
|
|
15715
|
+
const renderOptionLabel = (label) => {
|
|
15716
|
+
const query = keyword.value.trim();
|
|
15717
|
+
if (!query)
|
|
15718
|
+
return label;
|
|
15719
|
+
const normalizedQuery = query.toLocaleLowerCase();
|
|
15720
|
+
return label.split(new RegExp(`(${escapeRegExp(query)})`, "ig")).map((part) => part.toLocaleLowerCase() === normalizedQuery ? createVNode("span", {
|
|
15721
|
+
"class": bem$h("match")
|
|
15722
|
+
}, [part]) : part);
|
|
15723
|
+
};
|
|
15724
|
+
const renderOptions = () => {
|
|
15725
|
+
if (!filteredOptions.value.length) {
|
|
15726
|
+
return createVNode(Empty, {
|
|
15727
|
+
"imageSize": 60,
|
|
15728
|
+
"description": "暂无匹配选项"
|
|
15729
|
+
}, null);
|
|
15730
|
+
}
|
|
15731
|
+
return createVNode(RadioGroup, {
|
|
15732
|
+
"modelValue": props2.modelValue,
|
|
15733
|
+
"onUpdate:modelValue": (value) => {
|
|
15734
|
+
const option = props2.options.find((item) => item.value === value);
|
|
15735
|
+
if (option)
|
|
15736
|
+
select(option);
|
|
15737
|
+
}
|
|
15738
|
+
}, {
|
|
15739
|
+
default: () => [filteredOptions.value.map((option) => createVNode(Cell, {
|
|
15740
|
+
"key": option.value,
|
|
15741
|
+
"clickable": !option.disabled,
|
|
15742
|
+
"title": option.label,
|
|
15743
|
+
"titleStyle": {
|
|
15744
|
+
color: props2.modelValue === option.value ? "var(--van-primary-color)" : void 0
|
|
15745
|
+
},
|
|
15746
|
+
"onClick": () => select(option)
|
|
15747
|
+
}, {
|
|
15748
|
+
title: () => renderOptionLabel(option.label),
|
|
15749
|
+
"right-icon": () => createVNode(Radio, {
|
|
15750
|
+
"name": option.value,
|
|
15751
|
+
"disabled": option.disabled,
|
|
15752
|
+
"onClick": (event) => event.stopPropagation()
|
|
15753
|
+
}, null)
|
|
15754
|
+
}))]
|
|
15755
|
+
});
|
|
15756
|
+
};
|
|
15566
15757
|
return () => createVNode(ActionSheet, {
|
|
15567
15758
|
"show": props2.show,
|
|
15568
15759
|
"class": bem$h(),
|
|
@@ -15581,35 +15772,55 @@ var stdin_default$m = defineComponent({
|
|
|
15581
15772
|
"name": "cross",
|
|
15582
15773
|
"size": "22",
|
|
15583
15774
|
"onClick": close
|
|
15584
|
-
}, null)
|
|
15585
|
-
|
|
15775
|
+
}, null),
|
|
15776
|
+
right: () => {
|
|
15777
|
+
if (slots.filter)
|
|
15778
|
+
return slots.filter();
|
|
15779
|
+
if (!props2.filterable)
|
|
15780
|
+
return;
|
|
15781
|
+
return createVNode("button", {
|
|
15782
|
+
"type": "button",
|
|
15783
|
+
"class": bem$h("filter"),
|
|
15784
|
+
"aria-label": "筛选",
|
|
15785
|
+
"onClick": () => emit("filter")
|
|
15786
|
+
}, [createVNode(Badge, {
|
|
15787
|
+
"dot": props2.filterActive
|
|
15788
|
+
}, {
|
|
15789
|
+
default: () => [createVNode(Icon, {
|
|
15790
|
+
"name": "filter-o",
|
|
15791
|
+
"size": "22"
|
|
15792
|
+
}, null)]
|
|
15793
|
+
})]);
|
|
15794
|
+
}
|
|
15795
|
+
})]), props2.searchable && createVNode(Search, {
|
|
15796
|
+
"modelValue": keyword.value,
|
|
15797
|
+
"class": bem$h("search"),
|
|
15798
|
+
"shape": "round",
|
|
15799
|
+
"inputAlign": "left",
|
|
15800
|
+
"placeholder": props2.searchPlaceholder || "请输入搜索关键词",
|
|
15801
|
+
"maxlength": 200,
|
|
15802
|
+
"onUpdate:modelValue": (value) => {
|
|
15803
|
+
keyword.value = value;
|
|
15804
|
+
emit("search", value);
|
|
15805
|
+
},
|
|
15806
|
+
"onSearch": (value) => emit("search", value)
|
|
15807
|
+
}, null), createVNode("div", {
|
|
15586
15808
|
"class": bem$h("body")
|
|
15587
15809
|
}, [createVNode("div", {
|
|
15588
15810
|
"class": bem$h("card")
|
|
15589
|
-
}, [createVNode(
|
|
15590
|
-
"
|
|
15591
|
-
"
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15595
|
-
|
|
15811
|
+
}, [props2.lazy ? createVNode(List, {
|
|
15812
|
+
"loading": props2.loading,
|
|
15813
|
+
"finished": props2.finished,
|
|
15814
|
+
"error": props2.error,
|
|
15815
|
+
"loadingText": props2.loadingText,
|
|
15816
|
+
"finishedText": props2.finishedText,
|
|
15817
|
+
"errorText": props2.errorText,
|
|
15818
|
+
"onUpdate:loading": (value) => emit("update:loading", value),
|
|
15819
|
+
"onUpdate:error": (value) => emit("update:error", value),
|
|
15820
|
+
"onLoad": () => emit("load")
|
|
15596
15821
|
}, {
|
|
15597
|
-
default: () => [
|
|
15598
|
-
|
|
15599
|
-
"clickable": !option.disabled,
|
|
15600
|
-
"title": option.label,
|
|
15601
|
-
"titleStyle": {
|
|
15602
|
-
color: props2.modelValue === option.value ? "var(--van-primary-color)" : void 0
|
|
15603
|
-
},
|
|
15604
|
-
"onClick": () => select(option)
|
|
15605
|
-
}, {
|
|
15606
|
-
"right-icon": () => createVNode(Radio, {
|
|
15607
|
-
"name": option.value,
|
|
15608
|
-
"disabled": option.disabled,
|
|
15609
|
-
"onClick": (event) => event.stopPropagation()
|
|
15610
|
-
}, null)
|
|
15611
|
-
}))]
|
|
15612
|
-
})])])])]
|
|
15822
|
+
default: () => [renderOptions()]
|
|
15823
|
+
}) : renderOptions()])])])]
|
|
15613
15824
|
});
|
|
15614
15825
|
}
|
|
15615
15826
|
});
|
|
@@ -15883,7 +16094,7 @@ Rate.install = (app) => {
|
|
|
15883
16094
|
installRate(app);
|
|
15884
16095
|
app.use(RateCell);
|
|
15885
16096
|
};
|
|
15886
|
-
const Row = withInstall(stdin_default$
|
|
16097
|
+
const Row = withInstall(stdin_default$19);
|
|
15887
16098
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
15888
16099
|
const iconMap = {
|
|
15889
16100
|
qq: "qq",
|
|
@@ -19459,7 +19670,7 @@ const Lazyload = {
|
|
|
19459
19670
|
});
|
|
19460
19671
|
}
|
|
19461
19672
|
};
|
|
19462
|
-
const version = "0.0.
|
|
19673
|
+
const version = "0.0.28";
|
|
19463
19674
|
function install(app) {
|
|
19464
19675
|
const components = [
|
|
19465
19676
|
ActionBar,
|
|
@@ -19513,6 +19724,7 @@ function install(app) {
|
|
|
19513
19724
|
ImagePreview,
|
|
19514
19725
|
IndexAnchor,
|
|
19515
19726
|
IndexBar,
|
|
19727
|
+
Label,
|
|
19516
19728
|
List,
|
|
19517
19729
|
Loading,
|
|
19518
19730
|
Locale,
|
|
@@ -19634,6 +19846,7 @@ export {
|
|
|
19634
19846
|
ImagePreview,
|
|
19635
19847
|
IndexAnchor,
|
|
19636
19848
|
IndexBar,
|
|
19849
|
+
Label,
|
|
19637
19850
|
Lazyload,
|
|
19638
19851
|
List,
|
|
19639
19852
|
Loading,
|