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
|
@@ -297,7 +297,27 @@ const materialAddProps = {
|
|
|
297
297
|
default: () => defaultCategories
|
|
298
298
|
},
|
|
299
299
|
title: (0, import_utils.makeStringProp)("\u6DFB\u52A0\u7269\u6599"),
|
|
300
|
-
confirmText: (0, import_utils.makeStringProp)("\u786E\u5B9A")
|
|
300
|
+
confirmText: (0, import_utils.makeStringProp)("\u786E\u5B9A"),
|
|
301
|
+
showCommonTab: {
|
|
302
|
+
type: Boolean,
|
|
303
|
+
default: true
|
|
304
|
+
},
|
|
305
|
+
showAllTab: {
|
|
306
|
+
type: Boolean,
|
|
307
|
+
default: true
|
|
308
|
+
},
|
|
309
|
+
showMaterialTab: {
|
|
310
|
+
type: Boolean,
|
|
311
|
+
default: true
|
|
312
|
+
},
|
|
313
|
+
showToolTab: {
|
|
314
|
+
type: Boolean,
|
|
315
|
+
default: true
|
|
316
|
+
},
|
|
317
|
+
commonTabText: (0, import_utils.makeStringProp)("\u5E38\u7528\u7269\u6599"),
|
|
318
|
+
allTabText: (0, import_utils.makeStringProp)("\u5168\u90E8\u7269\u6599"),
|
|
319
|
+
materialTabText: (0, import_utils.makeStringProp)("\u7269\u8D44"),
|
|
320
|
+
toolTabText: (0, import_utils.makeStringProp)("\u5DE5\u5177")
|
|
301
321
|
};
|
|
302
322
|
var stdin_default = (0, import_vue.defineComponent)({
|
|
303
323
|
name,
|
|
@@ -306,8 +326,16 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
306
326
|
setup(props, {
|
|
307
327
|
emit
|
|
308
328
|
}) {
|
|
309
|
-
const
|
|
310
|
-
const
|
|
329
|
+
const getDefaultTab = () => props.showCommonTab || !props.showAllTab ? "common" : "all";
|
|
330
|
+
const getDefaultKind = () => {
|
|
331
|
+
if (props.showMaterialTab || !props.showToolTab)
|
|
332
|
+
return "material";
|
|
333
|
+
if (props.showToolTab)
|
|
334
|
+
return "tool";
|
|
335
|
+
return void 0;
|
|
336
|
+
};
|
|
337
|
+
const activeTab = (0, import_vue.ref)(getDefaultTab());
|
|
338
|
+
const activeKind = (0, import_vue.ref)(getDefaultKind());
|
|
311
339
|
const keyword = (0, import_vue.ref)("");
|
|
312
340
|
const searching = (0, import_vue.ref)(false);
|
|
313
341
|
const expandedKeys = (0, import_vue.ref)(["material-root", "tool-root"]);
|
|
@@ -319,8 +347,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
319
347
|
const detailBannerIndex = (0, import_vue.ref)(0);
|
|
320
348
|
(0, import_vue.watch)(() => props.show, (show) => {
|
|
321
349
|
if (show) {
|
|
322
|
-
activeTab.value =
|
|
323
|
-
activeKind.value =
|
|
350
|
+
activeTab.value = getDefaultTab();
|
|
351
|
+
activeKind.value = getDefaultKind();
|
|
324
352
|
keyword.value = "";
|
|
325
353
|
searching.value = false;
|
|
326
354
|
expandedKeys.value = ["material-root", "tool-root"];
|
|
@@ -334,6 +362,16 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
334
362
|
}, {
|
|
335
363
|
immediate: true
|
|
336
364
|
});
|
|
365
|
+
(0, import_vue.watch)(() => [props.showCommonTab, props.showAllTab], () => {
|
|
366
|
+
if (activeTab.value === "common" && !props.showCommonTab || activeTab.value === "all" && !props.showAllTab) {
|
|
367
|
+
activeTab.value = getDefaultTab();
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
(0, import_vue.watch)(() => [props.showMaterialTab, props.showToolTab], () => {
|
|
371
|
+
if (activeKind.value === "material" && !props.showMaterialTab || activeKind.value === "tool" && !props.showToolTab) {
|
|
372
|
+
activeKind.value = getDefaultKind();
|
|
373
|
+
}
|
|
374
|
+
});
|
|
337
375
|
const quantities = (0, import_vue.computed)(() => props.items.map((_, index) => Math.max(Number(props.modelValue[index] || 0), 0)));
|
|
338
376
|
const total = (0, import_vue.computed)(() => quantities.value.reduce((sum, value) => sum + value, 0));
|
|
339
377
|
const selectedItems = (0, import_vue.computed)(() => props.items.map((item, index) => ({
|
|
@@ -346,8 +384,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
346
384
|
const visibleItems = (0, import_vue.computed)(() => {
|
|
347
385
|
const query = keyword.value.trim().toLowerCase();
|
|
348
386
|
return props.items.filter((item) => {
|
|
349
|
-
const matchesKind = searching.value || item.kind === activeKind.value;
|
|
350
|
-
const matchesCategory = searching.value || activeTab.value ===
|
|
387
|
+
const matchesKind = searching.value || !activeKind.value || item.kind === activeKind.value;
|
|
388
|
+
const matchesCategory = searching.value || activeTab.value === "common";
|
|
351
389
|
const matchesSearch = !query || `${item.name}${item.detail}`.toLowerCase().includes(query);
|
|
352
390
|
return matchesKind && matchesCategory && matchesSearch;
|
|
353
391
|
});
|
|
@@ -388,13 +426,13 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
388
426
|
"class": bem("empty")
|
|
389
427
|
}, [(0, import_vue.createTextVNode)("\u6682\u65E0\u5339\u914D\u7269\u6599")])]);
|
|
390
428
|
const renderCatalog = () => {
|
|
391
|
-
const rootGroups = props.categories.filter((category) => category.kind === activeKind.value);
|
|
429
|
+
const rootGroups = props.categories.filter((category) => !activeKind.value || category.kind === activeKind.value);
|
|
392
430
|
const configuredValues = new Set(rootGroups.flatMap((group) => group.categories.map((category) => category.value)));
|
|
393
|
-
const ungroupedCategories = [...new Set(props.items.filter((item) => item.kind === activeKind.value && !configuredValues.has(item.category)).map((item) => item.category))];
|
|
431
|
+
const ungroupedCategories = [...new Set(props.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && !configuredValues.has(item.category)).map((item) => item.category))];
|
|
394
432
|
const groups = ungroupedCategories.length ? [...rootGroups, {
|
|
395
|
-
id: `${activeKind.value}-other`,
|
|
433
|
+
id: `${activeKind.value || "all"}-other`,
|
|
396
434
|
text: "\u672A\u5206\u7C7B",
|
|
397
|
-
kind: activeKind.value,
|
|
435
|
+
kind: activeKind.value || "material",
|
|
398
436
|
categories: ungroupedCategories.map((value) => ({
|
|
399
437
|
value,
|
|
400
438
|
text: value
|
|
@@ -404,7 +442,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
404
442
|
id: root.id,
|
|
405
443
|
text: root.text,
|
|
406
444
|
selectable: false,
|
|
407
|
-
children: props.items.filter((item) => item.kind === activeKind.value && root.categories.some((category) => category.value === item.category)).map((material) => ({
|
|
445
|
+
children: props.items.filter((item) => (!activeKind.value || item.kind === activeKind.value) && root.categories.some((category) => category.value === item.category)).map((material) => ({
|
|
408
446
|
id: material.id,
|
|
409
447
|
text: material.name,
|
|
410
448
|
selectable: false,
|
|
@@ -595,36 +633,38 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
595
633
|
searching.value = true;
|
|
596
634
|
}
|
|
597
635
|
}, null)
|
|
598
|
-
}), (0, import_vue.createVNode)(import_tabs.Tabs, {
|
|
636
|
+
}), (props.showCommonTab || props.showAllTab) && (0, import_vue.createVNode)(import_tabs.Tabs, {
|
|
599
637
|
"active": activeTab.value,
|
|
600
638
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
601
639
|
"class": bem("tabs"),
|
|
602
640
|
"shrink": true
|
|
603
641
|
}, {
|
|
604
|
-
default: () => [(0, import_vue.createVNode)(import_tab.Tab, {
|
|
605
|
-
"
|
|
606
|
-
|
|
607
|
-
|
|
642
|
+
default: () => [props.showCommonTab && (0, import_vue.createVNode)(import_tab.Tab, {
|
|
643
|
+
"name": "common",
|
|
644
|
+
"title": props.commonTabText
|
|
645
|
+
}, null), props.showAllTab && (0, import_vue.createVNode)(import_tab.Tab, {
|
|
646
|
+
"name": "all",
|
|
647
|
+
"title": props.allTabText
|
|
608
648
|
}, null)]
|
|
609
|
-
}), (0, import_vue.createVNode)("div", {
|
|
649
|
+
}), (props.showMaterialTab || props.showToolTab) && (0, import_vue.createVNode)("div", {
|
|
610
650
|
"class": bem("filter-tags")
|
|
611
|
-
}, [(0, import_vue.createVNode)(import_filter_tag.FilterTag, {
|
|
651
|
+
}, [props.showMaterialTab && (0, import_vue.createVNode)(import_filter_tag.FilterTag, {
|
|
612
652
|
"selected": activeKind.value === "material",
|
|
613
653
|
"onClick": () => {
|
|
614
654
|
activeKind.value = "material";
|
|
615
655
|
}
|
|
616
656
|
}, {
|
|
617
|
-
default: () => [
|
|
618
|
-
}), (0, import_vue.createVNode)(import_filter_tag.FilterTag, {
|
|
657
|
+
default: () => [props.materialTabText]
|
|
658
|
+
}), props.showToolTab && (0, import_vue.createVNode)(import_filter_tag.FilterTag, {
|
|
619
659
|
"selected": activeKind.value === "tool",
|
|
620
660
|
"onClick": () => {
|
|
621
661
|
activeKind.value = "tool";
|
|
622
662
|
}
|
|
623
663
|
}, {
|
|
624
|
-
default: () => [
|
|
664
|
+
default: () => [props.toolTabText]
|
|
625
665
|
})])]), (0, import_vue.createVNode)("div", {
|
|
626
666
|
"class": bem("body")
|
|
627
|
-
}, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value ===
|
|
667
|
+
}, [searching.value && !keyword.value.trim() ? null : searching.value || activeTab.value === "common" ? renderList() : renderCatalog()]), (0, import_vue.createVNode)("div", {
|
|
628
668
|
"class": bem("footer")
|
|
629
669
|
}, [renderSelectPanel(), (0, import_vue.createVNode)(import_bottom_action_bar.BottomActionBar, {
|
|
630
670
|
"fixed": false,
|
|
@@ -20,6 +20,38 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
|
|
|
20
20
|
type: import("vue").PropType<string>;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
|
+
showCommonTab: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
showAllTab: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
showMaterialTab: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
showToolTab: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
commonTabText: {
|
|
40
|
+
type: import("vue").PropType<string>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
allTabText: {
|
|
44
|
+
type: import("vue").PropType<string>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
materialTabText: {
|
|
48
|
+
type: import("vue").PropType<string>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
toolTabText: {
|
|
52
|
+
type: import("vue").PropType<string>;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
23
55
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:show" | "confirm")[], "change" | "update:modelValue" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
56
|
show: BooleanConstructor;
|
|
25
57
|
modelValue: {
|
|
@@ -42,6 +74,38 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
|
|
|
42
74
|
type: import("vue").PropType<string>;
|
|
43
75
|
default: string;
|
|
44
76
|
};
|
|
77
|
+
showCommonTab: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
showAllTab: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
showMaterialTab: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
showToolTab: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
commonTabText: {
|
|
94
|
+
type: import("vue").PropType<string>;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
allTabText: {
|
|
98
|
+
type: import("vue").PropType<string>;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
materialTabText: {
|
|
102
|
+
type: import("vue").PropType<string>;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
toolTabText: {
|
|
106
|
+
type: import("vue").PropType<string>;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
45
109
|
}>> & {
|
|
46
110
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
47
111
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -54,6 +118,14 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
|
|
|
54
118
|
confirmText: string;
|
|
55
119
|
items: import("./types").MaterialAddItem[];
|
|
56
120
|
categories: import("./types").MaterialAddCategory[];
|
|
121
|
+
showCommonTab: boolean;
|
|
122
|
+
showAllTab: boolean;
|
|
123
|
+
showMaterialTab: boolean;
|
|
124
|
+
showToolTab: boolean;
|
|
125
|
+
commonTabText: string;
|
|
126
|
+
allTabText: string;
|
|
127
|
+
materialTabText: string;
|
|
128
|
+
toolTabText: string;
|
|
57
129
|
}>>;
|
|
58
130
|
export default MaterialAdd;
|
|
59
131
|
export type { MaterialAddProps } from './MaterialAdd';
|
|
@@ -12,6 +12,17 @@ declare const radioPanelProps: {
|
|
|
12
12
|
default: () => never[];
|
|
13
13
|
};
|
|
14
14
|
modelValue: PropType<string>;
|
|
15
|
+
searchable: BooleanConstructor;
|
|
16
|
+
searchPlaceholder: StringConstructor;
|
|
17
|
+
filterable: BooleanConstructor;
|
|
18
|
+
filterActive: BooleanConstructor;
|
|
19
|
+
loading: BooleanConstructor;
|
|
20
|
+
finished: BooleanConstructor;
|
|
21
|
+
error: BooleanConstructor;
|
|
22
|
+
lazy: BooleanConstructor;
|
|
23
|
+
loadingText: StringConstructor;
|
|
24
|
+
finishedText: StringConstructor;
|
|
25
|
+
errorText: StringConstructor;
|
|
15
26
|
};
|
|
16
27
|
export declare type RadioPanelProps = ExtractPropTypes<typeof radioPanelProps>;
|
|
17
28
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -22,7 +33,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
33
|
default: () => never[];
|
|
23
34
|
};
|
|
24
35
|
modelValue: PropType<string>;
|
|
25
|
-
|
|
36
|
+
searchable: BooleanConstructor;
|
|
37
|
+
searchPlaceholder: StringConstructor;
|
|
38
|
+
filterable: BooleanConstructor;
|
|
39
|
+
filterActive: BooleanConstructor;
|
|
40
|
+
loading: BooleanConstructor;
|
|
41
|
+
finished: BooleanConstructor;
|
|
42
|
+
error: BooleanConstructor;
|
|
43
|
+
lazy: BooleanConstructor;
|
|
44
|
+
loadingText: StringConstructor;
|
|
45
|
+
finishedText: StringConstructor;
|
|
46
|
+
errorText: StringConstructor;
|
|
47
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "select" | "update:modelValue" | "load" | "update:show" | "filter" | "update:error" | "update:loading")[], "search" | "select" | "filter" | "update:modelValue" | "load" | "update:show" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
26
48
|
show: BooleanConstructor;
|
|
27
49
|
title: StringConstructor;
|
|
28
50
|
options: {
|
|
@@ -30,12 +52,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
52
|
default: () => never[];
|
|
31
53
|
};
|
|
32
54
|
modelValue: PropType<string>;
|
|
55
|
+
searchable: BooleanConstructor;
|
|
56
|
+
searchPlaceholder: StringConstructor;
|
|
57
|
+
filterable: BooleanConstructor;
|
|
58
|
+
filterActive: BooleanConstructor;
|
|
59
|
+
loading: BooleanConstructor;
|
|
60
|
+
finished: BooleanConstructor;
|
|
61
|
+
error: BooleanConstructor;
|
|
62
|
+
lazy: BooleanConstructor;
|
|
63
|
+
loadingText: StringConstructor;
|
|
64
|
+
finishedText: StringConstructor;
|
|
65
|
+
errorText: StringConstructor;
|
|
33
66
|
}>> & {
|
|
67
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
34
68
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
35
69
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
36
70
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
"onUpdate:error"?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onFilter?: ((...args: any[]) => any) | undefined;
|
|
37
75
|
}, {
|
|
76
|
+
error: boolean;
|
|
77
|
+
loading: boolean;
|
|
38
78
|
show: boolean;
|
|
39
79
|
options: RadioPanelOption[];
|
|
80
|
+
finished: boolean;
|
|
81
|
+
searchable: boolean;
|
|
82
|
+
filterable: boolean;
|
|
83
|
+
filterActive: boolean;
|
|
84
|
+
lazy: boolean;
|
|
40
85
|
}>;
|
|
41
86
|
export default _default;
|
|
@@ -25,23 +25,47 @@ var import_utils = require("../utils");
|
|
|
25
25
|
var import_action_sheet = require("../action-sheet");
|
|
26
26
|
var import_nav_bar = require("../nav-bar");
|
|
27
27
|
var import_icon = require("../icon");
|
|
28
|
+
var import_badge = require("../badge");
|
|
28
29
|
var import_cell = require("../cell");
|
|
30
|
+
var import_empty = require("../empty");
|
|
31
|
+
var import_list = require("../list");
|
|
29
32
|
var import_radio = require("../radio");
|
|
30
33
|
var import_radio_group = require("../radio-group");
|
|
34
|
+
var import_search = require("../search");
|
|
31
35
|
const [name, bem] = (0, import_utils.createNamespace)("radio-panel");
|
|
36
|
+
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
32
37
|
const radioPanelProps = {
|
|
33
38
|
show: Boolean,
|
|
34
39
|
title: String,
|
|
35
40
|
options: (0, import_utils.makeArrayProp)(),
|
|
36
|
-
modelValue: String
|
|
41
|
+
modelValue: String,
|
|
42
|
+
searchable: Boolean,
|
|
43
|
+
searchPlaceholder: String,
|
|
44
|
+
filterable: Boolean,
|
|
45
|
+
filterActive: Boolean,
|
|
46
|
+
loading: Boolean,
|
|
47
|
+
finished: Boolean,
|
|
48
|
+
error: Boolean,
|
|
49
|
+
lazy: Boolean,
|
|
50
|
+
loadingText: String,
|
|
51
|
+
finishedText: String,
|
|
52
|
+
errorText: String
|
|
37
53
|
};
|
|
38
54
|
var stdin_default = (0, import_vue.defineComponent)({
|
|
39
55
|
name,
|
|
40
56
|
props: radioPanelProps,
|
|
41
|
-
emits: ["update:show", "update:modelValue", "select"],
|
|
57
|
+
emits: ["update:show", "update:modelValue", "update:loading", "update:error", "select", "search", "filter", "load"],
|
|
42
58
|
setup(props, {
|
|
43
|
-
emit
|
|
59
|
+
emit,
|
|
60
|
+
slots
|
|
44
61
|
}) {
|
|
62
|
+
const keyword = (0, import_vue.ref)("");
|
|
63
|
+
const filteredOptions = (0, import_vue.computed)(() => {
|
|
64
|
+
const query = keyword.value.trim().toLocaleLowerCase();
|
|
65
|
+
if (!query)
|
|
66
|
+
return props.options;
|
|
67
|
+
return props.options.filter((option) => option.label.toLocaleLowerCase().includes(query));
|
|
68
|
+
});
|
|
45
69
|
const close = () => emit("update:show", false);
|
|
46
70
|
const select = (option) => {
|
|
47
71
|
if (option.disabled)
|
|
@@ -50,6 +74,48 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
50
74
|
emit("select", option.value);
|
|
51
75
|
close();
|
|
52
76
|
};
|
|
77
|
+
const renderOptionLabel = (label) => {
|
|
78
|
+
const query = keyword.value.trim();
|
|
79
|
+
if (!query)
|
|
80
|
+
return label;
|
|
81
|
+
const normalizedQuery = query.toLocaleLowerCase();
|
|
82
|
+
return label.split(new RegExp(`(${escapeRegExp(query)})`, "ig")).map((part) => part.toLocaleLowerCase() === normalizedQuery ? (0, import_vue.createVNode)("span", {
|
|
83
|
+
"class": bem("match")
|
|
84
|
+
}, [part]) : part);
|
|
85
|
+
};
|
|
86
|
+
const renderOptions = () => {
|
|
87
|
+
if (!filteredOptions.value.length) {
|
|
88
|
+
return (0, import_vue.createVNode)(import_empty.Empty, {
|
|
89
|
+
"imageSize": 60,
|
|
90
|
+
"description": "\u6682\u65E0\u5339\u914D\u9009\u9879"
|
|
91
|
+
}, null);
|
|
92
|
+
}
|
|
93
|
+
return (0, import_vue.createVNode)(import_radio_group.RadioGroup, {
|
|
94
|
+
"modelValue": props.modelValue,
|
|
95
|
+
"onUpdate:modelValue": (value) => {
|
|
96
|
+
const option = props.options.find((item) => item.value === value);
|
|
97
|
+
if (option)
|
|
98
|
+
select(option);
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
default: () => [filteredOptions.value.map((option) => (0, import_vue.createVNode)(import_cell.Cell, {
|
|
102
|
+
"key": option.value,
|
|
103
|
+
"clickable": !option.disabled,
|
|
104
|
+
"title": option.label,
|
|
105
|
+
"titleStyle": {
|
|
106
|
+
color: props.modelValue === option.value ? "var(--van-primary-color)" : void 0
|
|
107
|
+
},
|
|
108
|
+
"onClick": () => select(option)
|
|
109
|
+
}, {
|
|
110
|
+
title: () => renderOptionLabel(option.label),
|
|
111
|
+
"right-icon": () => (0, import_vue.createVNode)(import_radio.Radio, {
|
|
112
|
+
"name": option.value,
|
|
113
|
+
"disabled": option.disabled,
|
|
114
|
+
"onClick": (event) => event.stopPropagation()
|
|
115
|
+
}, null)
|
|
116
|
+
}))]
|
|
117
|
+
});
|
|
118
|
+
};
|
|
53
119
|
return () => (0, import_vue.createVNode)(import_action_sheet.ActionSheet, {
|
|
54
120
|
"show": props.show,
|
|
55
121
|
"class": bem(),
|
|
@@ -68,35 +134,55 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
68
134
|
"name": "cross",
|
|
69
135
|
"size": "22",
|
|
70
136
|
"onClick": close
|
|
71
|
-
}, null)
|
|
72
|
-
|
|
137
|
+
}, null),
|
|
138
|
+
right: () => {
|
|
139
|
+
if (slots.filter)
|
|
140
|
+
return slots.filter();
|
|
141
|
+
if (!props.filterable)
|
|
142
|
+
return;
|
|
143
|
+
return (0, import_vue.createVNode)("button", {
|
|
144
|
+
"type": "button",
|
|
145
|
+
"class": bem("filter"),
|
|
146
|
+
"aria-label": "\u7B5B\u9009",
|
|
147
|
+
"onClick": () => emit("filter")
|
|
148
|
+
}, [(0, import_vue.createVNode)(import_badge.Badge, {
|
|
149
|
+
"dot": props.filterActive
|
|
150
|
+
}, {
|
|
151
|
+
default: () => [(0, import_vue.createVNode)(import_icon.Icon, {
|
|
152
|
+
"name": "filter-o",
|
|
153
|
+
"size": "22"
|
|
154
|
+
}, null)]
|
|
155
|
+
})]);
|
|
156
|
+
}
|
|
157
|
+
})]), props.searchable && (0, import_vue.createVNode)(import_search.Search, {
|
|
158
|
+
"modelValue": keyword.value,
|
|
159
|
+
"class": bem("search"),
|
|
160
|
+
"shape": "round",
|
|
161
|
+
"inputAlign": "left",
|
|
162
|
+
"placeholder": props.searchPlaceholder || "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD",
|
|
163
|
+
"maxlength": 200,
|
|
164
|
+
"onUpdate:modelValue": (value) => {
|
|
165
|
+
keyword.value = value;
|
|
166
|
+
emit("search", value);
|
|
167
|
+
},
|
|
168
|
+
"onSearch": (value) => emit("search", value)
|
|
169
|
+
}, null), (0, import_vue.createVNode)("div", {
|
|
73
170
|
"class": bem("body")
|
|
74
171
|
}, [(0, import_vue.createVNode)("div", {
|
|
75
172
|
"class": bem("card")
|
|
76
|
-
}, [(0, import_vue.createVNode)(
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
173
|
+
}, [props.lazy ? (0, import_vue.createVNode)(import_list.List, {
|
|
174
|
+
"loading": props.loading,
|
|
175
|
+
"finished": props.finished,
|
|
176
|
+
"error": props.error,
|
|
177
|
+
"loadingText": props.loadingText,
|
|
178
|
+
"finishedText": props.finishedText,
|
|
179
|
+
"errorText": props.errorText,
|
|
180
|
+
"onUpdate:loading": (value) => emit("update:loading", value),
|
|
181
|
+
"onUpdate:error": (value) => emit("update:error", value),
|
|
182
|
+
"onLoad": () => emit("load")
|
|
83
183
|
}, {
|
|
84
|
-
default: () => [
|
|
85
|
-
|
|
86
|
-
"clickable": !option.disabled,
|
|
87
|
-
"title": option.label,
|
|
88
|
-
"titleStyle": {
|
|
89
|
-
color: props.modelValue === option.value ? "var(--van-primary-color)" : void 0
|
|
90
|
-
},
|
|
91
|
-
"onClick": () => select(option)
|
|
92
|
-
}, {
|
|
93
|
-
"right-icon": () => (0, import_vue.createVNode)(import_radio.Radio, {
|
|
94
|
-
"name": option.value,
|
|
95
|
-
"disabled": option.disabled,
|
|
96
|
-
"onClick": (event) => event.stopPropagation()
|
|
97
|
-
}, null)
|
|
98
|
-
}))]
|
|
99
|
-
})])])])]
|
|
184
|
+
default: () => [renderOptions()]
|
|
185
|
+
}) : renderOptions()])])])]
|
|
100
186
|
});
|
|
101
187
|
}
|
|
102
188
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.van-radio-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-gray-1)}.van-radio-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;overflow:hidden}.van-radio-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-gray-1)}.van-radio-panel__nav-wrapper{flex:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.van-radio-panel__nav{box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden;--van-nav-bar-background-color: var(--van-gray-1)}.van-radio-panel__nav .van-nav-bar__content{box-sizing:border-box;width:100%;overflow:hidden}.van-radio-panel__nav .van-nav-bar__left--slot,.van-radio-panel__nav .van-nav-bar__right--slot{padding:0}.van-radio-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-radio-panel__nav .van-nav-bar__right--slot{right:var(--van-padding-md)}.van-radio-panel__body{flex:1;min-height:0;padding:0 var(--van-padding-md);overflow-y:auto}.van-radio-panel__card{overflow:hidden;background:var(--van-white);border-radius:var(--van-border-radius-lg)}.van-radio-panel__footer{flex:none;padding:var(--van-padding-xs) 12px;background:var(--van-white);box-shadow:0 3px 12px rgba(27,33,41,.12),0 .5px 3px rgba(27,33,41,.08)}.van-radio-panel__select-all{color:var(--van-primary-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-font-size-md)}.van-radio-panel .van-cell{min-height:44px}.van-radio-panel .van-checkbox{margin:0}
|
|
1
|
+
.van-radio-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-gray-1)}.van-radio-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;overflow:hidden}.van-radio-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-gray-1)}.van-radio-panel__nav-wrapper{flex:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.van-radio-panel__nav{box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden;--van-nav-bar-background-color: var(--van-gray-1)}.van-radio-panel__nav .van-nav-bar__content{box-sizing:border-box;width:100%;overflow:hidden}.van-radio-panel__nav .van-nav-bar__left--slot,.van-radio-panel__nav .van-nav-bar__right--slot{padding:0}.van-radio-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-radio-panel__nav .van-nav-bar__right--slot{right:var(--van-padding-md)}.van-radio-panel__filter{display:flex;align-items:center;justify-content:center;width:34px;height:46px;padding:0;color:inherit;background:transparent;border:0}.van-radio-panel__search{--van-search-padding: 8px var(--van-padding-md);--van-search-background-color: var(--van-gray-1);--van-search-content-background-color: var(--van-white)}.van-radio-panel__match{color:var(--van-primary-color)}.van-radio-panel__body{flex:1;min-height:0;padding:0 var(--van-padding-md);overflow-y:auto}.van-radio-panel__card{overflow:hidden;background:var(--van-white);border-radius:var(--van-border-radius-lg)}.van-radio-panel__footer{flex:none;padding:var(--van-padding-xs) 12px;background:var(--van-white);box-shadow:0 3px 12px rgba(27,33,41,.12),0 .5px 3px rgba(27,33,41,.08)}.van-radio-panel__select-all{color:var(--van-primary-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-font-size-md)}.van-radio-panel .van-cell{min-height:44px}.van-radio-panel .van-checkbox{margin:0}
|
|
@@ -6,7 +6,18 @@ export declare const RadioPanel: import("../utils").WithInstall<import("vue").De
|
|
|
6
6
|
default: () => never[];
|
|
7
7
|
};
|
|
8
8
|
modelValue: import("vue").PropType<string>;
|
|
9
|
-
|
|
9
|
+
searchable: BooleanConstructor;
|
|
10
|
+
searchPlaceholder: StringConstructor;
|
|
11
|
+
filterable: BooleanConstructor;
|
|
12
|
+
filterActive: BooleanConstructor;
|
|
13
|
+
loading: BooleanConstructor;
|
|
14
|
+
finished: BooleanConstructor;
|
|
15
|
+
error: BooleanConstructor;
|
|
16
|
+
lazy: BooleanConstructor;
|
|
17
|
+
loadingText: StringConstructor;
|
|
18
|
+
finishedText: StringConstructor;
|
|
19
|
+
errorText: StringConstructor;
|
|
20
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "select" | "update:modelValue" | "load" | "update:show" | "filter" | "update:error" | "update:loading")[], "search" | "select" | "filter" | "update:modelValue" | "load" | "update:show" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
21
|
show: BooleanConstructor;
|
|
11
22
|
title: StringConstructor;
|
|
12
23
|
options: {
|
|
@@ -14,13 +25,36 @@ export declare const RadioPanel: import("../utils").WithInstall<import("vue").De
|
|
|
14
25
|
default: () => never[];
|
|
15
26
|
};
|
|
16
27
|
modelValue: import("vue").PropType<string>;
|
|
28
|
+
searchable: BooleanConstructor;
|
|
29
|
+
searchPlaceholder: StringConstructor;
|
|
30
|
+
filterable: BooleanConstructor;
|
|
31
|
+
filterActive: BooleanConstructor;
|
|
32
|
+
loading: BooleanConstructor;
|
|
33
|
+
finished: BooleanConstructor;
|
|
34
|
+
error: BooleanConstructor;
|
|
35
|
+
lazy: BooleanConstructor;
|
|
36
|
+
loadingText: StringConstructor;
|
|
37
|
+
finishedText: StringConstructor;
|
|
38
|
+
errorText: StringConstructor;
|
|
17
39
|
}>> & {
|
|
40
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
18
41
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
19
42
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
20
43
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
"onUpdate:error"?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
onFilter?: ((...args: any[]) => any) | undefined;
|
|
21
48
|
}, {
|
|
49
|
+
error: boolean;
|
|
50
|
+
loading: boolean;
|
|
22
51
|
show: boolean;
|
|
23
52
|
options: import("./RadioPanel").RadioPanelOption[];
|
|
53
|
+
finished: boolean;
|
|
54
|
+
searchable: boolean;
|
|
55
|
+
filterable: boolean;
|
|
56
|
+
filterActive: boolean;
|
|
57
|
+
lazy: boolean;
|
|
24
58
|
}>>;
|
|
25
59
|
export default RadioPanel;
|
|
26
60
|
export type { RadioPanelProps, RadioPanelOption } from './RadioPanel';
|
|
@@ -17,6 +17,23 @@
|
|
|
17
17
|
.van-nav-bar__left--slot { left: var(--van-padding-md); }
|
|
18
18
|
.van-nav-bar__right--slot { right: var(--van-padding-md); }
|
|
19
19
|
}
|
|
20
|
+
&__filter {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
width: 34px;
|
|
25
|
+
height: 46px;
|
|
26
|
+
padding: 0;
|
|
27
|
+
color: inherit;
|
|
28
|
+
background: transparent;
|
|
29
|
+
border: 0;
|
|
30
|
+
}
|
|
31
|
+
&__search {
|
|
32
|
+
--van-search-padding: 8px var(--van-padding-md);
|
|
33
|
+
--van-search-background-color: var(--van-gray-1);
|
|
34
|
+
--van-search-content-background-color: var(--van-white);
|
|
35
|
+
}
|
|
36
|
+
&__match { color: var(--van-primary-color); }
|
|
20
37
|
&__body { flex: 1; min-height: 0; padding: 0 var(--van-padding-md); overflow-y: auto; }
|
|
21
38
|
&__card { overflow: hidden; background: var(--van-white); border-radius: var(--van-border-radius-lg); }
|
|
22
39
|
&__footer { flex: none; padding: var(--van-padding-xs) 12px; background: var(--van-white); box-shadow: 0 3px 12px rgba(27, 33, 41, 0.12), 0 0.5px 3px rgba(27, 33, 41, 0.08); }
|
|
@@ -2,6 +2,7 @@ require("../../style/base.css");
|
|
|
2
2
|
require("../../badge/index.css");
|
|
3
3
|
require("../../icon/index.css");
|
|
4
4
|
require("../../loading/index.css");
|
|
5
|
+
require("../../list/index.css");
|
|
5
6
|
require("../../overlay/index.css");
|
|
6
7
|
require("../../popup/index.css");
|
|
7
8
|
require("../../popover/index.css");
|
|
@@ -12,4 +13,7 @@ require("../../checkbox/index.css");
|
|
|
12
13
|
require("../../radio-group/index.css");
|
|
13
14
|
require("../../radio/index.css");
|
|
14
15
|
require("../../cell/index.css");
|
|
16
|
+
require("../../field/index.css");
|
|
17
|
+
require("../../search/index.css");
|
|
18
|
+
require("../../empty/index.css");
|
|
15
19
|
require("../index.css");
|
|
@@ -2,6 +2,7 @@ require("../../style/base.less");
|
|
|
2
2
|
require("../../badge/index.less");
|
|
3
3
|
require("../../icon/index.less");
|
|
4
4
|
require("../../loading/index.less");
|
|
5
|
+
require("../../list/index.less");
|
|
5
6
|
require("../../overlay/index.less");
|
|
6
7
|
require("../../popup/index.less");
|
|
7
8
|
require("../../popover/index.less");
|
|
@@ -12,4 +13,7 @@ require("../../checkbox/index.less");
|
|
|
12
13
|
require("../../radio-group/index.less");
|
|
13
14
|
require("../../radio/index.less");
|
|
14
15
|
require("../../cell/index.less");
|
|
16
|
+
require("../../field/index.less");
|
|
17
|
+
require("../../search/index.less");
|
|
18
|
+
require("../../empty/index.less");
|
|
15
19
|
require("../index.less");
|
package/lib/tabs/TabsTitle.js
CHANGED
|
@@ -88,6 +88,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
88
88
|
}, null), Text]);
|
|
89
89
|
if (props.dot || (0, import_utils.isDef)(props.badge) && props.badge !== "") {
|
|
90
90
|
return (0, import_vue.createVNode)(import_badge.Badge, {
|
|
91
|
+
"class": bem("badge"),
|
|
91
92
|
"dot": props.dot,
|
|
92
93
|
"content": props.badge,
|
|
93
94
|
"showZero": props.showZeroBadge
|