persagy-vant 0.0.37 → 0.0.39
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/es/action-sheet/ActionSheet.d.ts +3 -15
- package/es/action-sheet/ActionSheet.mjs +22 -11
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +2 -11
- package/es/action-sheet/index.less +31 -17
- package/es/action-sheet/style/index.mjs +2 -0
- package/es/action-sheet/style/less.mjs +2 -0
- package/es/action-sheet/var.less +1 -4
- package/es/address-edit/AddressEditDetail.d.ts +1 -1
- package/es/address-edit/style/index.mjs +1 -0
- package/es/address-edit/style/less.mjs +1 -0
- package/es/area/style/index.mjs +2 -0
- package/es/area/style/less.mjs +2 -0
- package/es/button/Button.d.ts +4 -1
- package/es/button/Button.mjs +21 -1
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +3 -1
- package/es/button/index.less +11 -5
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/style/index.mjs +2 -0
- package/es/cascader/style/less.mjs +2 -0
- package/es/cell/Cell.d.ts +305 -1
- package/es/cell/Cell.mjs +238 -19
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +166 -2
- package/es/cell/index.less +77 -0
- package/es/cell/style/index.mjs +1 -0
- package/es/cell/style/less.mjs +1 -0
- package/es/checkbox-panel/index.css +1 -1
- package/es/checkbox-panel/index.less +1 -1
- package/es/checkbox-panel/style/index.mjs +1 -0
- package/es/checkbox-panel/style/less.mjs +1 -0
- package/es/collapse-item/CollapseItem.d.ts +230 -0
- package/es/collapse-item/index.d.ts +160 -0
- package/es/collapse-item/style/index.mjs +1 -0
- package/es/collapse-item/style/less.mjs +1 -0
- package/es/contact-card/style/index.mjs +1 -0
- package/es/contact-card/style/less.mjs +1 -0
- package/es/contact-edit/style/index.mjs +1 -0
- package/es/contact-edit/style/less.mjs +1 -0
- package/es/content-panel/index.css +1 -1
- package/es/content-panel/index.less +2 -0
- package/es/coupon-cell/style/index.mjs +1 -0
- package/es/coupon-cell/style/less.mjs +1 -0
- package/es/coupon-list/style/index.mjs +3 -0
- package/es/coupon-list/style/less.mjs +3 -0
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/function-call.d.ts +1 -1
- package/es/dialog/style/index.mjs +1 -0
- package/es/dialog/style/less.mjs +1 -0
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/index.d.ts +2 -2
- package/es/dropdown-item/style/index.mjs +1 -0
- package/es/dropdown-item/style/less.mjs +1 -0
- package/es/field/Field.d.ts +230 -0
- package/es/field/index.d.ts +160 -0
- package/es/field/style/index.mjs +1 -0
- package/es/field/style/less.mjs +1 -0
- package/es/floor-select/style/index.mjs +3 -0
- package/es/floor-select/style/less.mjs +3 -0
- package/es/form-panel/index.css +1 -1
- package/es/form-panel/index.less +2 -0
- package/es/icon/Icon.mjs +7 -4
- package/es/icon/assets/copy.svg +4 -0
- package/es/icon/config.d.ts +1 -0
- package/es/icon/config.mjs +1 -0
- package/es/icon/gif.d.ts +6 -0
- package/es/icon/gif.mjs +9 -0
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +2 -0
- package/es/icon/index.mjs +4 -1
- package/es/icon/latest-iconfont.css +1 -1
- package/es/icon/latest-iconfont.less +11 -0
- package/es/image-preview/ImagePreview.d.ts +2 -2
- package/es/image-preview/function-call.d.ts +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/info-card/InfoCard.d.ts +32 -1
- package/es/info-card/InfoCard.mjs +45 -3
- package/es/info-card/index.css +1 -1
- package/es/info-card/index.d.ts +23 -2
- package/es/info-card/index.less +57 -0
- package/es/info-card/var.less +1 -1
- package/es/label/Label.d.ts +21 -0
- package/es/label/Label.mjs +12 -2
- package/es/label/index.css +1 -1
- package/es/label/index.d.ts +15 -0
- package/es/label/index.less +31 -0
- package/es/label/var.less +2 -0
- package/es/list/style/index.mjs +2 -0
- package/es/list/style/less.mjs +2 -0
- package/es/loading/Loading.mjs +8 -26
- package/es/loading/style/index.mjs +2 -0
- package/es/loading/style/less.mjs +2 -0
- package/es/location-select/index.css +1 -1
- package/es/location-select/index.less +1 -1
- package/es/location-select/style/index.mjs +1 -0
- package/es/location-select/style/less.mjs +1 -0
- package/es/material-action-bar/MaterialActionBar.d.ts +9 -0
- package/es/material-action-bar/MaterialActionBar.mjs +5 -2
- package/es/material-action-bar/index.css +1 -1
- package/es/material-action-bar/index.d.ts +18 -0
- package/es/material-action-bar/index.less +3 -1
- package/es/material-add/MaterialAdd.mjs +158 -63
- package/es/material-add/index.css +1 -1
- package/es/material-add/index.d.ts +1 -1
- package/es/material-add/index.less +1 -15
- package/es/material-add/style/index.mjs +1 -1
- package/es/material-add/style/less.mjs +1 -1
- package/es/material-add/types.d.ts +7 -4
- package/es/material-detail/MaterialDetail.mjs +14 -9
- package/es/material-display-bar/MaterialDisplayBar.d.ts +3 -3
- package/es/material-display-bar/index.css +1 -1
- package/es/material-display-bar/index.d.ts +9 -9
- package/es/material-display-bar/index.less +2 -1
- package/es/material-display-bar/var.less +1 -0
- package/es/multi-person-select/index.css +1 -1
- package/es/multi-person-select/index.less +1 -1
- package/es/multi-person-select/style/index.mjs +1 -0
- package/es/multi-person-select/style/less.mjs +1 -0
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/function-call.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/index.d.ts +2 -2
- package/es/number-keyboard/style/index.mjs +2 -0
- package/es/number-keyboard/style/less.mjs +2 -0
- package/es/object-select/index.css +1 -1
- package/es/object-select/index.less +2 -0
- package/es/object-select/style/index.mjs +1 -0
- package/es/object-select/style/less.mjs +1 -0
- package/es/picker/style/index.mjs +2 -0
- package/es/picker/style/less.mjs +2 -0
- package/es/popover/Popover.d.ts +3 -3
- package/es/popover/index.d.ts +3 -3
- package/es/popup/Popup.d.ts +4 -4
- package/es/popup/index.d.ts +4 -4
- package/es/progress/Progress.d.ts +17 -0
- package/es/progress/Progress.mjs +14 -9
- package/es/progress/index.css +1 -1
- package/es/progress/index.d.ts +12 -1
- package/es/progress/index.less +24 -14
- package/es/progress/types.d.ts +1 -0
- package/es/progress/var.less +10 -7
- package/es/pull-refresh/style/index.mjs +2 -0
- package/es/pull-refresh/style/less.mjs +2 -0
- package/es/quantity-input/style/index.mjs +1 -0
- package/es/quantity-input/style/less.mjs +1 -0
- package/es/radio-panel/RadioPanel.d.ts +1 -1
- package/es/radio-panel/index.css +1 -1
- package/es/radio-panel/index.d.ts +1 -1
- package/es/radio-panel/index.less +1 -1
- package/es/radio-panel/style/index.mjs +1 -0
- package/es/radio-panel/style/less.mjs +1 -0
- package/es/rate/style/index.mjs +1 -0
- package/es/rate/style/less.mjs +1 -0
- package/es/search/style/index.mjs +1 -0
- package/es/search/style/less.mjs +1 -0
- package/es/share-sheet/ShareSheet.d.ts +1 -1
- package/es/share-sheet/index.d.ts +1 -1
- package/es/single-person-select/index.css +1 -1
- package/es/single-person-select/index.less +2 -0
- package/es/single-person-select/style/index.mjs +1 -0
- package/es/single-person-select/style/less.mjs +1 -0
- package/es/style/base.css +1 -1
- package/es/style/base.less +5 -0
- package/es/style/css-variables.css +1 -1
- package/es/style/css-variables.less +1 -0
- package/es/style/var.less +1 -0
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/index.d.ts +2 -2
- package/es/switch/style/index.mjs +2 -0
- package/es/switch/style/less.mjs +2 -0
- package/es/tab/style/index.mjs +2 -0
- package/es/tab/style/less.mjs +2 -0
- package/es/tabs/style/index.mjs +2 -0
- package/es/tabs/style/less.mjs +2 -0
- package/es/title-bar/TitleBar.d.ts +2 -2
- package/es/title-bar/index.d.ts +2 -2
- package/es/toast/Toast.d.ts +1 -1
- package/es/tree-select/TreeSelect.mjs +9 -4
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.less +29 -1
- package/es/tree-select/style/index.mjs +1 -0
- package/es/tree-select/style/less.mjs +1 -0
- package/es/video-preview/VideoPreview.d.ts +2 -2
- package/es/video-preview/function-call.d.ts +2 -2
- package/es/work-order-card/WorkOrderCard.mjs +52 -11
- package/es/work-order-card/index.css +1 -1
- package/es/work-order-card/index.less +3 -4
- package/es/work-order-card/style/index.mjs +2 -0
- package/es/work-order-card/style/less.mjs +2 -0
- package/es/work-order-card/types.d.ts +14 -1
- package/es/work-order-filter/index.css +1 -1
- package/es/work-order-filter/index.less +2 -0
- package/es/work-order-filter/style/index.mjs +1 -0
- package/es/work-order-filter/style/less.mjs +1 -0
- package/lib/action-sheet/ActionSheet.d.ts +3 -15
- package/lib/action-sheet/ActionSheet.js +21 -10
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +2 -11
- package/lib/action-sheet/index.less +31 -17
- package/lib/action-sheet/style/index.js +2 -0
- package/lib/action-sheet/style/less.js +2 -0
- package/lib/action-sheet/var.less +1 -4
- package/lib/address-edit/AddressEditDetail.d.ts +1 -1
- package/lib/address-edit/style/index.js +1 -0
- package/lib/address-edit/style/less.js +1 -0
- package/lib/area/style/index.js +2 -0
- package/lib/area/style/less.js +2 -0
- package/lib/button/Button.d.ts +4 -1
- package/lib/button/Button.js +21 -1
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +3 -1
- package/lib/button/index.less +11 -5
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/style/index.js +2 -0
- package/lib/cascader/style/less.js +2 -0
- package/lib/cell/Cell.d.ts +305 -1
- package/lib/cell/Cell.js +238 -19
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +166 -2
- package/lib/cell/index.less +77 -0
- package/lib/cell/style/index.js +1 -0
- package/lib/cell/style/less.js +1 -0
- package/lib/checkbox-panel/index.css +1 -1
- package/lib/checkbox-panel/index.less +1 -1
- package/lib/checkbox-panel/style/index.js +1 -0
- package/lib/checkbox-panel/style/less.js +1 -0
- package/lib/collapse-item/CollapseItem.d.ts +230 -0
- package/lib/collapse-item/index.d.ts +160 -0
- package/lib/collapse-item/style/index.js +1 -0
- package/lib/collapse-item/style/less.js +1 -0
- package/lib/contact-card/style/index.js +1 -0
- package/lib/contact-card/style/less.js +1 -0
- package/lib/contact-edit/style/index.js +1 -0
- package/lib/contact-edit/style/less.js +1 -0
- package/lib/content-panel/index.css +1 -1
- package/lib/content-panel/index.less +2 -0
- package/lib/coupon-cell/style/index.js +1 -0
- package/lib/coupon-cell/style/less.js +1 -0
- package/lib/coupon-list/style/index.js +3 -0
- package/lib/coupon-list/style/less.js +3 -0
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/function-call.d.ts +1 -1
- package/lib/dialog/style/index.js +1 -0
- package/lib/dialog/style/less.js +1 -0
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/index.d.ts +2 -2
- package/lib/dropdown-item/style/index.js +1 -0
- package/lib/dropdown-item/style/less.js +1 -0
- package/lib/field/Field.d.ts +230 -0
- package/lib/field/index.d.ts +160 -0
- package/lib/field/style/index.js +1 -0
- package/lib/field/style/less.js +1 -0
- package/lib/floor-select/style/index.js +3 -0
- package/lib/floor-select/style/less.js +3 -0
- package/lib/form-panel/index.css +1 -1
- package/lib/form-panel/index.less +2 -0
- package/lib/icon/Icon.js +7 -4
- package/lib/icon/assets/copy.svg +4 -0
- package/lib/icon/config.d.ts +1 -0
- package/lib/icon/config.js +1 -0
- package/lib/icon/gif.d.ts +6 -0
- package/lib/icon/gif.js +28 -0
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +2 -0
- package/lib/icon/index.js +4 -1
- package/lib/icon/latest-iconfont.css +1 -1
- package/lib/icon/latest-iconfont.less +11 -0
- package/lib/image-preview/ImagePreview.d.ts +2 -2
- package/lib/image-preview/function-call.d.ts +2 -2
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +2 -2
- package/lib/info-card/InfoCard.d.ts +32 -1
- package/lib/info-card/InfoCard.js +45 -3
- package/lib/info-card/index.css +1 -1
- package/lib/info-card/index.d.ts +23 -2
- package/lib/info-card/index.less +57 -0
- package/lib/info-card/var.less +1 -1
- package/lib/label/Label.d.ts +21 -0
- package/lib/label/Label.js +12 -2
- package/lib/label/index.css +1 -1
- package/lib/label/index.d.ts +15 -0
- package/lib/label/index.less +31 -0
- package/lib/label/var.less +2 -0
- package/lib/list/style/index.js +2 -0
- package/lib/list/style/less.js +2 -0
- package/lib/loading/Loading.js +8 -26
- package/lib/loading/style/index.js +2 -0
- package/lib/loading/style/less.js +2 -0
- package/lib/location-select/index.css +1 -1
- package/lib/location-select/index.less +1 -1
- package/lib/location-select/style/index.js +1 -0
- package/lib/location-select/style/less.js +1 -0
- package/lib/material-action-bar/MaterialActionBar.d.ts +9 -0
- package/lib/material-action-bar/MaterialActionBar.js +4 -1
- package/lib/material-action-bar/index.css +1 -1
- package/lib/material-action-bar/index.d.ts +18 -0
- package/lib/material-action-bar/index.less +3 -1
- package/lib/material-add/MaterialAdd.js +158 -63
- package/lib/material-add/index.css +1 -1
- package/lib/material-add/index.d.ts +1 -1
- package/lib/material-add/index.less +1 -15
- package/lib/material-add/style/index.js +1 -1
- package/lib/material-add/style/less.js +1 -1
- package/lib/material-add/types.d.ts +7 -4
- package/lib/material-detail/MaterialDetail.js +14 -9
- package/lib/material-display-bar/MaterialDisplayBar.d.ts +3 -3
- package/lib/material-display-bar/index.css +1 -1
- package/lib/material-display-bar/index.d.ts +9 -9
- package/lib/material-display-bar/index.less +2 -1
- package/lib/material-display-bar/var.less +1 -0
- package/lib/multi-person-select/index.css +1 -1
- package/lib/multi-person-select/index.less +1 -1
- package/lib/multi-person-select/style/index.js +1 -0
- package/lib/multi-person-select/style/less.js +1 -0
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/function-call.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/index.d.ts +2 -2
- package/lib/number-keyboard/style/index.js +2 -0
- package/lib/number-keyboard/style/less.js +2 -0
- package/lib/object-select/index.css +1 -1
- package/lib/object-select/index.less +2 -0
- package/lib/object-select/style/index.js +1 -0
- package/lib/object-select/style/less.js +1 -0
- package/lib/picker/style/index.js +2 -0
- package/lib/picker/style/less.js +2 -0
- package/lib/popover/Popover.d.ts +3 -3
- package/lib/popover/index.d.ts +3 -3
- package/lib/popup/Popup.d.ts +4 -4
- package/lib/popup/index.d.ts +4 -4
- package/lib/progress/Progress.d.ts +17 -0
- package/lib/progress/Progress.js +13 -8
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +12 -1
- package/lib/progress/index.less +24 -14
- package/lib/progress/types.d.ts +1 -0
- package/lib/progress/var.less +10 -7
- package/lib/pull-refresh/style/index.js +2 -0
- package/lib/pull-refresh/style/less.js +2 -0
- package/lib/quantity-input/style/index.js +1 -0
- package/lib/quantity-input/style/less.js +1 -0
- package/lib/radio-panel/RadioPanel.d.ts +1 -1
- package/lib/radio-panel/index.css +1 -1
- package/lib/radio-panel/index.d.ts +1 -1
- package/lib/radio-panel/index.less +1 -1
- package/lib/radio-panel/style/index.js +1 -0
- package/lib/radio-panel/style/less.js +1 -0
- package/lib/rate/style/index.js +1 -0
- package/lib/rate/style/less.js +1 -0
- package/lib/search/style/index.js +1 -0
- package/lib/search/style/less.js +1 -0
- package/lib/share-sheet/ShareSheet.d.ts +1 -1
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/single-person-select/index.css +1 -1
- package/lib/single-person-select/index.less +2 -0
- package/lib/single-person-select/style/index.js +1 -0
- package/lib/single-person-select/style/less.js +1 -0
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +5 -0
- package/lib/style/css-variables.css +1 -1
- package/lib/style/css-variables.less +1 -0
- package/lib/style/var.less +1 -0
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/index.d.ts +2 -2
- package/lib/switch/style/index.js +2 -0
- package/lib/switch/style/less.js +2 -0
- package/lib/tab/style/index.js +2 -0
- package/lib/tab/style/less.js +2 -0
- package/lib/tabs/style/index.js +2 -0
- package/lib/tabs/style/less.js +2 -0
- package/lib/title-bar/TitleBar.d.ts +2 -2
- package/lib/title-bar/index.d.ts +2 -2
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/tree-select/TreeSelect.js +9 -4
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.less +29 -1
- package/lib/tree-select/style/index.js +1 -0
- package/lib/tree-select/style/less.js +1 -0
- package/lib/vant.cjs.js +1590 -1159
- package/lib/vant.es.js +1591 -1160
- package/lib/vant.js +5511 -5080
- package/lib/vant.min.js +1 -1
- package/lib/video-preview/VideoPreview.d.ts +2 -2
- package/lib/video-preview/function-call.d.ts +2 -2
- package/lib/web-types.json +1 -1
- package/lib/work-order-card/WorkOrderCard.js +52 -11
- package/lib/work-order-card/index.css +1 -1
- package/lib/work-order-card/index.less +3 -4
- package/lib/work-order-card/style/index.js +2 -0
- package/lib/work-order-card/style/less.js +2 -0
- package/lib/work-order-card/types.d.ts +14 -1
- package/lib/work-order-filter/index.css +1 -1
- package/lib/work-order-filter/index.less +2 -0
- package/lib/work-order-filter/style/index.js +1 -0
- package/lib/work-order-filter/style/less.js +1 -0
- package/package.json +2 -2
- package/skills/use-persagy-vant/SKILL.md +1 -1
- package/skills/use-persagy-vant/references/component-documentation.md +4 -4
- package/skills/use-persagy-vant/references/component-variant-selection.md +2 -2
- package/skills/use-persagy-vant/references/design-interaction-baseline.md +2 -1
- package/skills/use-persagy-vant/references/page-recipes.md +4 -0
- package/skills/use-persagy-vant/references/public-style-system.md +105 -0
- package/skills/use-persagy-vant/references/reuse-policy.md +2 -2
- /package/es/{loading/assets/building.gif → icon/assets/gif/loading-building.gif} +0 -0
- /package/lib/{loading/assets/building.gif → icon/assets/gif/loading-building.gif} +0 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
--van-tree-select-indent: @tree-select-indent;
|
|
5
5
|
--van-tree-select-arrow-size: @tree-select-arrow-size;
|
|
6
6
|
--van-tree-select-animation-duration: @tree-select-animation-duration;
|
|
7
|
+
--van-tree-select-divider-left: var(--van-padding-md);
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
.van-tree-select {
|
|
@@ -13,6 +14,26 @@
|
|
|
13
14
|
|
|
14
15
|
&__node { overflow: hidden; }
|
|
15
16
|
|
|
17
|
+
// Slot content keeps the same left hierarchy as regular tree nodes. Embedded
|
|
18
|
+
// components retain their own right padding to avoid doubling the edge gap.
|
|
19
|
+
&__leaf {
|
|
20
|
+
position: relative;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
|
|
23
|
+
// Leaf-slot items are wrapped by separate tree nodes, so restore the
|
|
24
|
+
// divider between adjacent leaves just as we do for regular Cell nodes.
|
|
25
|
+
&--divider:not(:last-child)::after {
|
|
26
|
+
position: absolute;
|
|
27
|
+
right: var(--van-padding-md);
|
|
28
|
+
bottom: 0;
|
|
29
|
+
left: var(--van-tree-select-divider-left);
|
|
30
|
+
height: 1px;
|
|
31
|
+
background: var(--van-border-color);
|
|
32
|
+
content: '';
|
|
33
|
+
transform: scaleY(.5);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
16
37
|
&__cell {
|
|
17
38
|
min-height: 44px;
|
|
18
39
|
padding: 10px var(--van-padding-md);
|
|
@@ -22,9 +43,16 @@
|
|
|
22
43
|
}
|
|
23
44
|
|
|
24
45
|
// Each Cell is wrapped by a tree node, so Cell's :last-child rule would
|
|
25
|
-
// otherwise hide every divider.
|
|
46
|
+
// otherwise hide every divider. Branches retain a divider even when they
|
|
47
|
+
// are the only sibling, separating the parent from its indented children.
|
|
26
48
|
&__node:not(:last-child) > &__cell:not(.van-cell--borderless)::after {
|
|
27
49
|
display: block;
|
|
50
|
+
left: var(--van-tree-select-divider-left);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__cell--branch:not(.van-cell--borderless)::after {
|
|
54
|
+
display: block;
|
|
55
|
+
left: var(--van-tree-select-divider-left);
|
|
28
56
|
}
|
|
29
57
|
|
|
30
58
|
&__arrow {
|
|
@@ -86,7 +86,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
86
|
type: BooleanConstructor;
|
|
87
87
|
default: true;
|
|
88
88
|
};
|
|
89
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "ended" | "error" | "pause" | "play" | "timeupdate" | "closed" | "update:show")[], "
|
|
89
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "ended" | "error" | "pause" | "play" | "timeupdate" | "closed" | "update:show")[], "close" | "error" | "ended" | "pause" | "play" | "timeupdate" | "closed" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
90
90
|
show: BooleanConstructor;
|
|
91
91
|
src: {
|
|
92
92
|
type: PropType<string>;
|
|
@@ -144,8 +144,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
144
|
muted: boolean;
|
|
145
145
|
src: string;
|
|
146
146
|
show: boolean;
|
|
147
|
-
closeIcon: string;
|
|
148
147
|
closeable: boolean;
|
|
148
|
+
closeIcon: string;
|
|
149
149
|
closeOnPopstate: boolean;
|
|
150
150
|
closeIconPosition: PopupCloseIconPosition;
|
|
151
151
|
fit: "contain" | "cover";
|
|
@@ -45,7 +45,7 @@ declare const VideoPreview: {
|
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
default: true;
|
|
47
47
|
};
|
|
48
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "ended" | "error" | "pause" | "play" | "timeupdate" | "closed" | "update:show")[], "
|
|
48
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "ended" | "error" | "pause" | "play" | "timeupdate" | "closed" | "update:show")[], "close" | "error" | "ended" | "pause" | "play" | "timeupdate" | "closed" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
49
|
show: BooleanConstructor;
|
|
50
50
|
src: {
|
|
51
51
|
type: import("vue").PropType<string>;
|
|
@@ -103,8 +103,8 @@ declare const VideoPreview: {
|
|
|
103
103
|
muted: boolean;
|
|
104
104
|
src: string;
|
|
105
105
|
show: boolean;
|
|
106
|
-
closeIcon: string;
|
|
107
106
|
closeable: boolean;
|
|
107
|
+
closeIcon: string;
|
|
108
108
|
closeOnPopstate: boolean;
|
|
109
109
|
closeIconPosition: import("..").PopupCloseIconPosition;
|
|
110
110
|
fit: "contain" | "cover";
|
|
@@ -3,6 +3,7 @@ import { Button } from "../button/index.mjs";
|
|
|
3
3
|
import { createNamespace, makeArrayProp, makeStringProp, truthProp } from "../utils/index.mjs";
|
|
4
4
|
import { Divider } from "../divider/index.mjs";
|
|
5
5
|
import { Icon } from "../icon/index.mjs";
|
|
6
|
+
import { Label } from "../label/index.mjs";
|
|
6
7
|
import { Tag } from "../tag/index.mjs";
|
|
7
8
|
const [name, bem] = createNamespace("work-order-card");
|
|
8
9
|
const props = {
|
|
@@ -48,12 +49,39 @@ var stdin_default = defineComponent({
|
|
|
48
49
|
innerExpanded.value = value;
|
|
49
50
|
emit("update:expanded", value);
|
|
50
51
|
};
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
const resolveInfo = (info) => {
|
|
53
|
+
if (info.label !== void 0 || info.content !== void 0) {
|
|
54
|
+
return {
|
|
55
|
+
label: info.label || "",
|
|
56
|
+
content: info.content || ""
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
const text = info.text || "";
|
|
60
|
+
const separatorIndex = text.search(/[::]/);
|
|
61
|
+
return separatorIndex < 0 ? {
|
|
62
|
+
label: "",
|
|
63
|
+
content: text
|
|
64
|
+
} : {
|
|
65
|
+
label: text.slice(0, separatorIndex),
|
|
66
|
+
content: text.slice(separatorIndex + 1)
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
const renderInfo = (info) => {
|
|
70
|
+
const {
|
|
71
|
+
label,
|
|
72
|
+
content
|
|
73
|
+
} = resolveInfo(info);
|
|
74
|
+
return _createVNode("div", {
|
|
75
|
+
"class": bem("info")
|
|
76
|
+
}, [_createVNode(Label, {
|
|
77
|
+
"sameColor": true,
|
|
78
|
+
"showLeftIcon": Boolean(info.icon),
|
|
79
|
+
"leftIcon": info.icon,
|
|
80
|
+
"showLabel": Boolean(label),
|
|
81
|
+
"label": label,
|
|
82
|
+
"content": content
|
|
83
|
+
}, null)]);
|
|
84
|
+
};
|
|
57
85
|
const renderAction = (action, index) => _createVNode(Button, {
|
|
58
86
|
"type": "text",
|
|
59
87
|
"disabled": action.disabled,
|
|
@@ -90,16 +118,29 @@ var stdin_default = defineComponent({
|
|
|
90
118
|
}, null)]), _createVNode("div", {
|
|
91
119
|
"class": bem("tags")
|
|
92
120
|
}, [slots.tags ? slots.tags() : props2.tags.map((tag) => _createVNode(Tag, {
|
|
121
|
+
"type": tag.type,
|
|
122
|
+
"size": tag.size,
|
|
93
123
|
"color": tag.color,
|
|
94
|
-
"textColor": tag.textColor
|
|
124
|
+
"textColor": tag.textColor,
|
|
125
|
+
"plain": tag.plain,
|
|
126
|
+
"round": tag.round,
|
|
127
|
+
"mark": tag.mark,
|
|
128
|
+
"rightIcon": tag.rightIcon,
|
|
129
|
+
"number": tag.number,
|
|
130
|
+
"showNumber": tag.showNumber,
|
|
131
|
+
"numberColor": tag.numberColor
|
|
95
132
|
}, {
|
|
96
133
|
default: () => [tag.text]
|
|
97
134
|
}))]), props2.showLocation && props2.location && _createVNode("div", {
|
|
98
135
|
"class": bem("location")
|
|
99
|
-
}, [_createVNode(
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
|
|
136
|
+
}, [_createVNode(Label, {
|
|
137
|
+
"sameColor": true,
|
|
138
|
+
"ellipsis": true,
|
|
139
|
+
"showLeftIcon": true,
|
|
140
|
+
"leftIcon": "location-o",
|
|
141
|
+
"showLabel": false,
|
|
142
|
+
"content": props2.location
|
|
143
|
+
}, null)]), _createVNode("div", {
|
|
103
144
|
"class": bem("infos")
|
|
104
145
|
}, [slots.info ? slots.info() : props2.primaryInfos.map(renderInfo)]), hasExpandedContent() && _createVNode("div", {
|
|
105
146
|
"class": bem("expanded-wrapper", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-work-order-card-padding: var(--van-padding-md);--van-work-order-card-radius: var(--van-border-radius-lg);--van-work-order-card-title-font-size: 15px;--van-work-order-card-title-color: var(--van-gray-8);--van-work-order-card-info-color: var(--van-gray-7)}.van-work-order-card{position:relative;overflow:hidden;background:var(--van-white);border-radius:var(--van-work-order-card-radius)}.van-work-order-card__header{display:flex;align-items:flex-start;padding:var(--van-work-order-card-padding) var(--van-work-order-card-padding) 0;cursor:pointer}.van-work-order-card__title{flex:1;min-width:0;overflow:hidden;color:var(--van-work-order-card-title-color);font-size:var(--van-work-order-card-title-font-size);font-weight:var(--van-font-weight-bold);line-height:23px;text-overflow:ellipsis;white-space:nowrap}.van-work-order-card__arrow{flex:none;margin:4px 0 0 2px;color:var(--van-gray-6);transition:transform .2s}.van-work-order-card--expanded .van-work-order-card__title{overflow:visible;white-space:normal}.van-work-order-card:not(.van-work-order-card--expandable) .van-work-order-card__title{overflow:visible;white-space:normal}.van-work-order-card--expanded .van-work-order-card__arrow{color:var(--van-black);transform:rotate(180deg)}.van-work-order-card__tags{display:flex;flex-wrap:wrap;gap:4px;padding:8px var(--van-work-order-card-padding) 0}.van-work-order-card__location{
|
|
1
|
+
:root{--van-work-order-card-padding: var(--van-padding-md);--van-work-order-card-radius: var(--van-border-radius-lg);--van-work-order-card-title-font-size: 15px;--van-work-order-card-title-color: var(--van-gray-8);--van-work-order-card-info-color: var(--van-gray-7)}.van-work-order-card{position:relative;overflow:hidden;background:var(--van-white);border-radius:var(--van-work-order-card-radius)}.van-work-order-card__header{display:flex;align-items:flex-start;padding:var(--van-work-order-card-padding) var(--van-work-order-card-padding) 0;cursor:pointer}.van-work-order-card__title{flex:1;min-width:0;overflow:hidden;color:var(--van-work-order-card-title-color);font-size:var(--van-work-order-card-title-font-size);font-weight:var(--van-font-weight-bold);line-height:23px;text-overflow:ellipsis;white-space:nowrap}.van-work-order-card__arrow{flex:none;margin:4px 0 0 2px;color:var(--van-gray-6);transition:transform .2s}.van-work-order-card--expanded .van-work-order-card__title{overflow:visible;white-space:normal}.van-work-order-card:not(.van-work-order-card--expandable) .van-work-order-card__title{overflow:visible;white-space:normal}.van-work-order-card--expanded .van-work-order-card__arrow{color:var(--van-black);transform:rotate(180deg)}.van-work-order-card__tags{display:flex;flex-wrap:wrap;gap:4px;padding:8px var(--van-work-order-card-padding) 0}.van-work-order-card__location{margin:8px 10px 0;padding:0 6px;overflow:hidden;background:linear-gradient(90deg,rgba(223,232,243,.7),rgba(223,232,243,0));border-radius:4px}.van-work-order-card__infos{display:flex;flex-direction:column;gap:2px;padding:8px var(--van-work-order-card-padding) 0}.van-work-order-card:not(.van-work-order-card--actions):not(.van-work-order-card--expanded-content) .van-work-order-card__infos{padding-bottom:8px}.van-work-order-card__info{min-width:0}.van-work-order-card__expanded-wrapper{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .24s cubic-bezier(.2,.8,.2,1),opacity .18s ease}.van-work-order-card__expanded-wrapper--visible{grid-template-rows:1fr;opacity:1}.van-work-order-card__expanded-content{min-height:0;padding:0 var(--van-work-order-card-padding);overflow:hidden}.van-work-order-card:not(.van-work-order-card--actions) .van-work-order-card__expanded-content{padding-bottom:8px}.van-work-order-card__expanded-content .van-divider{margin:4px 0;border-color:var(--van-gray-4)}.van-work-order-card__overdue{position:absolute;top:0;right:0;padding:2px 8px;color:var(--van-white);font-size:10px;line-height:12px;background:var(--van-danger-color);border-radius:0 2px 0 8px}.van-work-order-card__actions{position:relative;display:flex;margin-top:8px;padding-top:1px;--van-button-default-height: 38px;--van-button-default-font-size: var(--van-font-size-md);--van-button-default-line-height: 22px;--van-button-border-radius: 0;--van-button-plain-background-color: transparent}.van-work-order-card__actions:before{position:absolute;top:0;right:var(--van-work-order-card-padding);left:var(--van-work-order-card-padding);height:.5px;background:var(--van-gray-2);content:""}.van-work-order-card__actions .van-button{flex:1}.van-work-order-card__actions .van-button+.van-button{position:relative}.van-work-order-card__actions .van-button+.van-button:after{position:absolute;top:50%;left:0;width:.5px;height:12px;background:var(--van-gray-2);transform:translateY(-50%);content:""}
|
|
@@ -16,11 +16,10 @@
|
|
|
16
16
|
.van-work-order-card:not(.van-work-order-card--expandable) .van-work-order-card__title { overflow: visible; white-space: normal; }
|
|
17
17
|
.van-work-order-card--expanded .van-work-order-card__arrow { color: var(--van-black); transform: rotate(180deg); }
|
|
18
18
|
.van-work-order-card__tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px var(--van-work-order-card-padding) 0; }
|
|
19
|
-
.van-work-order-card__location {
|
|
20
|
-
.van-work-order-
|
|
21
|
-
.van-work-order-card__infos { padding: 8px var(--van-work-order-card-padding) 0; }
|
|
19
|
+
.van-work-order-card__location { margin: 8px 10px 0; padding: 0 6px; overflow: hidden; background: linear-gradient(90deg, rgb(223 232 243 / 70%), rgb(223 232 243 / 0%)); border-radius: 4px; }
|
|
20
|
+
.van-work-order-card__infos { display: flex; flex-direction: column; gap: 2px; padding: 8px var(--van-work-order-card-padding) 0; }
|
|
22
21
|
.van-work-order-card:not(.van-work-order-card--actions):not(.van-work-order-card--expanded-content) .van-work-order-card__infos { padding-bottom: 8px; }
|
|
23
|
-
.van-work-order-card__info {
|
|
22
|
+
.van-work-order-card__info { min-width: 0; }
|
|
24
23
|
.van-work-order-card__expanded-wrapper { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .24s cubic-bezier(.2, .8, .2, 1), opacity .18s ease; }
|
|
25
24
|
.van-work-order-card__expanded-wrapper--visible { grid-template-rows: 1fr; opacity: 1; }
|
|
26
25
|
.van-work-order-card__expanded-content { min-height: 0; padding: 0 var(--van-work-order-card-padding); overflow: hidden; }
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import "../../style/base.css";
|
|
2
2
|
import "../../badge/index.css";
|
|
3
3
|
import "../../icon/index.css";
|
|
4
|
+
import "../../image/index.css";
|
|
4
5
|
import "../../tag/index.css";
|
|
6
|
+
import "../../label/index.css";
|
|
5
7
|
import "../../loading/index.css";
|
|
6
8
|
import "../../button/index.css";
|
|
7
9
|
import "../../divider/index.css";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import "../../style/base.less";
|
|
2
2
|
import "../../badge/index.less";
|
|
3
3
|
import "../../icon/index.less";
|
|
4
|
+
import "../../image/index.less";
|
|
4
5
|
import "../../tag/index.less";
|
|
6
|
+
import "../../label/index.less";
|
|
5
7
|
import "../../loading/index.less";
|
|
6
8
|
import "../../button/index.less";
|
|
7
9
|
import "../../divider/index.less";
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
+
import type { TagSize, TagType } from '../tag';
|
|
1
2
|
import type { Numeric } from '../utils';
|
|
2
3
|
export declare type WorkOrderCardTag = {
|
|
3
4
|
text: string;
|
|
5
|
+
type?: TagType;
|
|
6
|
+
size?: TagSize;
|
|
4
7
|
color?: string;
|
|
5
8
|
textColor?: string;
|
|
9
|
+
plain?: boolean;
|
|
10
|
+
round?: boolean;
|
|
11
|
+
mark?: boolean;
|
|
12
|
+
rightIcon?: string;
|
|
13
|
+
number?: string | number;
|
|
14
|
+
showNumber?: boolean;
|
|
15
|
+
numberColor?: string;
|
|
6
16
|
};
|
|
7
17
|
export declare type WorkOrderCardInfo = {
|
|
8
18
|
icon?: string;
|
|
9
|
-
|
|
19
|
+
/** @deprecated Prefer label and content for structured field display. */
|
|
20
|
+
text?: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
content?: string;
|
|
10
23
|
};
|
|
11
24
|
export declare type WorkOrderCardAction = {
|
|
12
25
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-work-order-filter-background-color: var(--van-white);--van-work-order-filter-card-color: var(--van-gray-2)}.van-work-order-filter{display:flex;flex-direction:column;height:calc(100vh - 96px);max-height:calc(100vh - 96px);overflow:hidden;background:var(--van-work-order-filter-background-color)}.van-work-order-filter>.van-action-sheet__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}.van-work-order-filter__nav{flex:none;--van-nav-bar-background-color: var(--van-white)}.van-work-order-filter__nav .van-nav-bar__left--slot{padding:0 12px}.van-work-order-filter__body{flex:1;min-height:0;padding-bottom:var(--van-padding-md);overflow-y:auto}.van-work-order-filter__section{position:relative}.van-work-order-filter__section .van-blue-mark-header{padding:var(--van-padding-md) 22px var(--van-padding-xs)}.van-work-order-filter__custom{width:100%}.van-work-order-filter__select-all{position:absolute;top:var(--van-padding-md);right:22px;padding:0;color:var(--van-primary-color);font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);background:transparent;border:0}.van-work-order-filter__card{margin:0 var(--van-padding-md);overflow:hidden;background:var(--van-work-order-filter-card-color);border-radius:8px;--van-cell-border-color: #e1e5eb}.van-work-order-filter__card .van-cell{min-height:44px;background:transparent}.van-work-order-filter__card .van-checkbox,.van-work-order-filter__card .van-radio{margin:0}.van-work-order-filter__project-list{width:100%}.van-work-order-filter__project-item{position:relative;touch-action:pan-y;transition:transform .16s cubic-bezier(.2,0,0,1)}.van-work-order-filter__project-item--dragging{z-index:1;opacity:.82;box-shadow:0 4px 12px rgba(27,33,41,.16);transition:none}.van-work-order-filter__project-move{transition:transform .16s cubic-bezier(.2,0,0,1)}.van-work-order-filter__drag-handle{display:flex;align-items:center;justify-content:center;width:16px;height:var(--van-cell-line-height);margin-right:var(--van-padding-base);color:var(--van-text-color);cursor:grab;touch-action:none}.van-work-order-filter__drag-handle:active{cursor:grabbing}.van-work-order-filter__sort-cards{display:flex;flex-direction:column;gap:10px}.van-work-order-filter__tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--van-padding-xs);margin:0 var(--van-padding-md)}.van-work-order-filter__tags .van-filter-tag{width:100%;min-width:0;text-align:center}.van-work-order-filter__time-trigger{width:auto;margin:var(--van-padding-xs) var(--van-padding-md) 0;background:var(--van-work-order-filter-card-color);border-radius:8px}.van-work-order-filter__time-trigger .van-cell__label{white-space:nowrap}.van-work-order-filter__time-picker-overlay{position:absolute;z-index:10;inset:0;display:flex;align-items:flex-end;background:rgba(0,0,0,.45)}.van-work-order-filter__time-picker-panel{width:100%;overflow:hidden;background:var(--van-white);border-radius:16px 16px 0 0}.van-work-order-filter__time-picker-enter-active,.van-work-order-filter__time-picker-leave-active{transition:opacity var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-work-order-filter__time-picker-enter-active .van-work-order-filter__time-picker-panel,.van-work-order-filter__time-picker-leave-active .van-work-order-filter__time-picker-panel{transition:transform var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-work-order-filter__time-picker-leave-active,.van-work-order-filter__time-picker-leave-active .van-work-order-filter__time-picker-panel{transition-timing-function:var(--van-animation-timing-function-leave)}.van-work-order-filter__time-picker-enter-from,.van-work-order-filter__time-picker-leave-to{opacity:0}.van-work-order-filter__time-picker-enter-from .van-work-order-filter__time-picker-panel,.van-work-order-filter__time-picker-leave-to .van-work-order-filter__time-picker-panel{transform:translate3d(0,100%,0)}.van-work-order-filter__footer{flex:none}
|
|
1
|
+
:root{--van-work-order-filter-background-color: var(--van-white);--van-work-order-filter-card-color: var(--van-gray-2)}.van-work-order-filter{display:flex;flex-direction:column;height:calc(100vh - 96px);max-height:calc(100vh - 96px);overflow:hidden;background:var(--van-work-order-filter-background-color)}.van-work-order-filter>.van-action-sheet__content{display:flex;flex:1;flex-direction:column;min-height:0;gap:0;padding:0;overflow:hidden}.van-work-order-filter__nav{flex:none;--van-nav-bar-background-color: var(--van-white)}.van-work-order-filter__nav .van-nav-bar__left--slot{padding:0 12px}.van-work-order-filter__body{flex:1;min-height:0;padding-bottom:var(--van-padding-md);overflow-y:auto}.van-work-order-filter__section{position:relative}.van-work-order-filter__section .van-blue-mark-header{padding:var(--van-padding-md) 22px var(--van-padding-xs)}.van-work-order-filter__custom{width:100%}.van-work-order-filter__select-all{position:absolute;top:var(--van-padding-md);right:22px;padding:0;color:var(--van-primary-color);font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);background:transparent;border:0}.van-work-order-filter__card{margin:0 var(--van-padding-md);overflow:hidden;background:var(--van-work-order-filter-card-color);border-radius:8px;--van-cell-border-color: #e1e5eb}.van-work-order-filter__card .van-cell{min-height:44px;background:transparent}.van-work-order-filter__card .van-checkbox,.van-work-order-filter__card .van-radio{margin:0}.van-work-order-filter__project-list{width:100%}.van-work-order-filter__project-item{position:relative;touch-action:pan-y;transition:transform .16s cubic-bezier(.2,0,0,1)}.van-work-order-filter__project-item--dragging{z-index:1;opacity:.82;box-shadow:0 4px 12px rgba(27,33,41,.16);transition:none}.van-work-order-filter__project-move{transition:transform .16s cubic-bezier(.2,0,0,1)}.van-work-order-filter__drag-handle{display:flex;align-items:center;justify-content:center;width:16px;height:var(--van-cell-line-height);margin-right:var(--van-padding-base);color:var(--van-text-color);cursor:grab;touch-action:none}.van-work-order-filter__drag-handle:active{cursor:grabbing}.van-work-order-filter__sort-cards{display:flex;flex-direction:column;gap:10px}.van-work-order-filter__tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--van-padding-xs);margin:0 var(--van-padding-md)}.van-work-order-filter__tags .van-filter-tag{width:100%;min-width:0;text-align:center}.van-work-order-filter__time-trigger{width:auto;margin:var(--van-padding-xs) var(--van-padding-md) 0;background:var(--van-work-order-filter-card-color);border-radius:8px}.van-work-order-filter__time-trigger .van-cell__label{white-space:nowrap}.van-work-order-filter__time-picker-overlay{position:absolute;z-index:10;inset:0;display:flex;align-items:flex-end;background:rgba(0,0,0,.45)}.van-work-order-filter__time-picker-panel{width:100%;overflow:hidden;background:var(--van-white);border-radius:16px 16px 0 0}.van-work-order-filter__time-picker-enter-active,.van-work-order-filter__time-picker-leave-active{transition:opacity var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-work-order-filter__time-picker-enter-active .van-work-order-filter__time-picker-panel,.van-work-order-filter__time-picker-leave-active .van-work-order-filter__time-picker-panel{transition:transform var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-work-order-filter__time-picker-leave-active,.van-work-order-filter__time-picker-leave-active .van-work-order-filter__time-picker-panel{transition-timing-function:var(--van-animation-timing-function-leave)}.van-work-order-filter__time-picker-enter-from,.van-work-order-filter__time-picker-leave-to{opacity:0}.van-work-order-filter__time-picker-enter-from .van-work-order-filter__time-picker-panel,.van-work-order-filter__time-picker-leave-to .van-work-order-filter__time-picker-panel{transform:translate3d(0,100%,0)}.van-work-order-filter__footer{flex:none}
|
|
@@ -2,6 +2,7 @@ import "../../style/base.css";
|
|
|
2
2
|
import "../../badge/index.css";
|
|
3
3
|
import "../../icon/index.css";
|
|
4
4
|
import "../../filter-tag/index.css";
|
|
5
|
+
import "../../tag/index.css";
|
|
5
6
|
import "../../loading/index.css";
|
|
6
7
|
import "../../picker/index.css";
|
|
7
8
|
import "../../datetime-picker/index.css";
|
|
@@ -2,6 +2,7 @@ import "../../style/base.less";
|
|
|
2
2
|
import "../../badge/index.less";
|
|
3
3
|
import "../../icon/index.less";
|
|
4
4
|
import "../../filter-tag/index.less";
|
|
5
|
+
import "../../tag/index.less";
|
|
5
6
|
import "../../loading/index.less";
|
|
6
7
|
import "../../picker/index.less";
|
|
7
8
|
import "../../datetime-picker/index.less";
|
|
@@ -3,6 +3,7 @@ export declare type ActionSheetAction = {
|
|
|
3
3
|
name?: string;
|
|
4
4
|
color?: string;
|
|
5
5
|
subname?: string;
|
|
6
|
+
selected?: boolean;
|
|
6
7
|
loading?: boolean;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
callback?: (action: ActionSheetAction) => void;
|
|
@@ -43,10 +44,6 @@ declare const actionSheetProps: {
|
|
|
43
44
|
type: import("vue").PropType<ActionSheetAction[]>;
|
|
44
45
|
default: () => never[];
|
|
45
46
|
};
|
|
46
|
-
closeIcon: {
|
|
47
|
-
type: import("vue").PropType<string>;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
47
|
closeable: {
|
|
51
48
|
type: BooleanConstructor;
|
|
52
49
|
default: true;
|
|
@@ -99,10 +96,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
96
|
type: import("vue").PropType<ActionSheetAction[]>;
|
|
100
97
|
default: () => never[];
|
|
101
98
|
};
|
|
102
|
-
closeIcon: {
|
|
103
|
-
type: import("vue").PropType<string>;
|
|
104
|
-
default: string;
|
|
105
|
-
};
|
|
106
99
|
closeable: {
|
|
107
100
|
type: BooleanConstructor;
|
|
108
101
|
default: true;
|
|
@@ -153,10 +146,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
153
146
|
type: import("vue").PropType<ActionSheetAction[]>;
|
|
154
147
|
default: () => never[];
|
|
155
148
|
};
|
|
156
|
-
closeIcon: {
|
|
157
|
-
type: import("vue").PropType<string>;
|
|
158
|
-
default: string;
|
|
159
|
-
};
|
|
160
149
|
closeable: {
|
|
161
150
|
type: BooleanConstructor;
|
|
162
151
|
default: true;
|
|
@@ -178,15 +167,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
167
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
179
168
|
}, {
|
|
180
169
|
round: boolean;
|
|
170
|
+
show: boolean;
|
|
171
|
+
closeable: boolean;
|
|
181
172
|
safeAreaInsetBottom: boolean;
|
|
182
173
|
overlay: boolean;
|
|
183
|
-
show: boolean;
|
|
184
174
|
lockScroll: boolean;
|
|
185
175
|
lazyRender: boolean;
|
|
186
176
|
transitionAppear: boolean;
|
|
187
177
|
closeOnClickOverlay: boolean;
|
|
188
|
-
closeIcon: string;
|
|
189
|
-
closeable: boolean;
|
|
190
178
|
closeOnPopstate: boolean;
|
|
191
179
|
actions: ActionSheetAction[];
|
|
192
180
|
closeOnClickAction: boolean;
|
|
@@ -23,6 +23,7 @@ module.exports = __toCommonJS(stdin_exports);
|
|
|
23
23
|
var import_vue = require("vue");
|
|
24
24
|
var import_utils = require("../utils");
|
|
25
25
|
var import_icon = require("../icon");
|
|
26
|
+
var import_nav_bar = require("../nav-bar");
|
|
26
27
|
var import_popup = require("../popup");
|
|
27
28
|
var import_loading = require("../loading");
|
|
28
29
|
var import_shared = require("../popup/shared");
|
|
@@ -31,7 +32,6 @@ const actionSheetProps = (0, import_utils.extend)({}, import_shared.popupSharedP
|
|
|
31
32
|
title: String,
|
|
32
33
|
round: import_utils.truthProp,
|
|
33
34
|
actions: (0, import_utils.makeArrayProp)(),
|
|
34
|
-
closeIcon: (0, import_utils.makeStringProp)("cross"),
|
|
35
35
|
closeable: import_utils.truthProp,
|
|
36
36
|
cancelText: String,
|
|
37
37
|
description: String,
|
|
@@ -55,13 +55,20 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
55
55
|
};
|
|
56
56
|
const renderHeader = () => {
|
|
57
57
|
if (props.title) {
|
|
58
|
-
return (0, import_vue.createVNode)(
|
|
59
|
-
"class": bem("header")
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
58
|
+
return (0, import_vue.createVNode)(import_nav_bar.NavBar, {
|
|
59
|
+
"class": bem("header"),
|
|
60
|
+
"title": props.title,
|
|
61
|
+
"border": false
|
|
62
|
+
}, props.closeable ? {
|
|
63
|
+
left: () => (0, import_vue.createVNode)("span", {
|
|
64
|
+
"class": bem("nav-left")
|
|
65
|
+
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
|
66
|
+
"name": "cross",
|
|
67
|
+
"size": 22,
|
|
68
|
+
"class": import_utils.HAPTICS_FEEDBACK,
|
|
69
|
+
"onClick": onCancel
|
|
70
|
+
}, null)])
|
|
71
|
+
} : void 0);
|
|
65
72
|
}
|
|
66
73
|
};
|
|
67
74
|
const renderCancel = () => {
|
|
@@ -96,6 +103,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
96
103
|
const renderAction = (action, index) => {
|
|
97
104
|
const {
|
|
98
105
|
color,
|
|
106
|
+
selected,
|
|
99
107
|
loading,
|
|
100
108
|
callback,
|
|
101
109
|
disabled,
|
|
@@ -116,9 +124,10 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
116
124
|
return (0, import_vue.createVNode)("button", {
|
|
117
125
|
"type": "button",
|
|
118
126
|
"style": {
|
|
119
|
-
color
|
|
127
|
+
color: selected ? "var(--van-primary-color)" : color
|
|
120
128
|
},
|
|
121
129
|
"class": [bem("item", {
|
|
130
|
+
selected,
|
|
122
131
|
loading,
|
|
123
132
|
disabled
|
|
124
133
|
}), className],
|
|
@@ -142,7 +151,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
142
151
|
var _a;
|
|
143
152
|
return [renderHeader(), renderDescription(), (0, import_vue.createVNode)("div", {
|
|
144
153
|
"class": bem("content")
|
|
145
|
-
}, [props.actions.
|
|
154
|
+
}, [props.actions.length > 0 && (0, import_vue.createVNode)("div", {
|
|
155
|
+
"class": bem("action-card")
|
|
156
|
+
}, [props.actions.map(renderAction)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
|
146
157
|
}
|
|
147
158
|
});
|
|
148
159
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-action-sheet-max-height:
|
|
1
|
+
:root{--van-action-sheet-max-height:calc(100% - 96px);--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-color-light);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background-color);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color);background:var(--van-gray-2)}.van-action-sheet__content{flex:1 auto;display:flex;flex-direction:column;gap:0;padding:0 var(--van-padding-md) var(--van-padding-md);overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__action-card{overflow:hidden;background:var(--van-white);border-radius:8px}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:transparent;border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{position:relative;line-height:var(--van-action-sheet-item-line-height);text-align:left}.van-action-sheet__item--selected{font-weight:var(--van-font-weight-bold)}.van-action-sheet__item:not(:last-child):after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;background:transparent}.van-action-sheet__nav-left{display:flex;align-items:center;height:var(--van-nav-bar-height);padding:0 6px 0 var(--van-padding-md)}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}
|
|
@@ -33,10 +33,6 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
|
33
33
|
type: import("vue").PropType<import("./ActionSheet").ActionSheetAction[]>;
|
|
34
34
|
default: () => never[];
|
|
35
35
|
};
|
|
36
|
-
closeIcon: {
|
|
37
|
-
type: import("vue").PropType<string>;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
36
|
closeable: {
|
|
41
37
|
type: BooleanConstructor;
|
|
42
38
|
default: true;
|
|
@@ -87,10 +83,6 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
|
87
83
|
type: import("vue").PropType<import("./ActionSheet").ActionSheetAction[]>;
|
|
88
84
|
default: () => never[];
|
|
89
85
|
};
|
|
90
|
-
closeIcon: {
|
|
91
|
-
type: import("vue").PropType<string>;
|
|
92
|
-
default: string;
|
|
93
|
-
};
|
|
94
86
|
closeable: {
|
|
95
87
|
type: BooleanConstructor;
|
|
96
88
|
default: true;
|
|
@@ -112,15 +104,14 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
|
112
104
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
113
105
|
}, {
|
|
114
106
|
round: boolean;
|
|
107
|
+
show: boolean;
|
|
108
|
+
closeable: boolean;
|
|
115
109
|
safeAreaInsetBottom: boolean;
|
|
116
110
|
overlay: boolean;
|
|
117
|
-
show: boolean;
|
|
118
111
|
lockScroll: boolean;
|
|
119
112
|
lazyRender: boolean;
|
|
120
113
|
transitionAppear: boolean;
|
|
121
114
|
closeOnClickOverlay: boolean;
|
|
122
|
-
closeIcon: string;
|
|
123
|
-
closeable: boolean;
|
|
124
115
|
closeOnPopstate: boolean;
|
|
125
116
|
actions: import("./ActionSheet").ActionSheetAction[];
|
|
126
117
|
closeOnClickAction: boolean;
|
|
@@ -16,9 +16,6 @@
|
|
|
16
16
|
--van-action-sheet-subname-color: @action-sheet-subname-color;
|
|
17
17
|
--van-action-sheet-subname-font-size: @action-sheet-subname-font-size;
|
|
18
18
|
--van-action-sheet-subname-line-height: @action-sheet-subname-line-height;
|
|
19
|
-
--van-action-sheet-close-icon-size: @action-sheet-close-icon-size;
|
|
20
|
-
--van-action-sheet-close-icon-color: @action-sheet-close-icon-color;
|
|
21
|
-
--van-action-sheet-close-icon-padding: @action-sheet-close-icon-padding;
|
|
22
19
|
--van-action-sheet-cancel-text-color: @action-sheet-cancel-text-color;
|
|
23
20
|
--van-action-sheet-cancel-padding-top: @action-sheet-cancel-padding-top;
|
|
24
21
|
--van-action-sheet-cancel-padding-color: @action-sheet-cancel-padding-color;
|
|
@@ -29,22 +26,34 @@
|
|
|
29
26
|
display: flex;
|
|
30
27
|
flex-direction: column;
|
|
31
28
|
max-height: var(--van-action-sheet-max-height);
|
|
29
|
+
height: var(--van-action-sheet-max-height);
|
|
32
30
|
overflow: hidden;
|
|
33
31
|
color: var(--van-action-sheet-item-text-color);
|
|
32
|
+
background: var(--van-gray-2);
|
|
34
33
|
|
|
35
34
|
&__content {
|
|
36
35
|
flex: 1 auto;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 0;
|
|
39
|
+
padding: 0 var(--van-padding-md) var(--van-padding-md);
|
|
37
40
|
overflow-y: auto;
|
|
38
41
|
-webkit-overflow-scrolling: touch;
|
|
39
42
|
}
|
|
40
43
|
|
|
44
|
+
&__action-card {
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
background: var(--van-white);
|
|
47
|
+
border-radius: 8px;
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
&__item,
|
|
42
51
|
&__cancel {
|
|
43
52
|
display: block;
|
|
44
53
|
width: 100%;
|
|
45
54
|
padding: 14px var(--van-padding-md);
|
|
46
55
|
font-size: var(--van-action-sheet-item-font-size);
|
|
47
|
-
background:
|
|
56
|
+
background: transparent;
|
|
48
57
|
border: none;
|
|
49
58
|
cursor: pointer;
|
|
50
59
|
|
|
@@ -54,7 +63,17 @@
|
|
|
54
63
|
}
|
|
55
64
|
|
|
56
65
|
&__item {
|
|
66
|
+
position: relative;
|
|
57
67
|
line-height: var(--van-action-sheet-item-line-height);
|
|
68
|
+
text-align: left;
|
|
69
|
+
|
|
70
|
+
&--selected {
|
|
71
|
+
font-weight: var(--van-font-weight-bold);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:not(:last-child)::after {
|
|
75
|
+
.hairline-bottom(var(--van-border-color), var(--van-padding-md), var(--van-padding-md));
|
|
76
|
+
}
|
|
58
77
|
|
|
59
78
|
&--loading,
|
|
60
79
|
&--disabled {
|
|
@@ -95,10 +114,14 @@
|
|
|
95
114
|
|
|
96
115
|
&__header {
|
|
97
116
|
flex-shrink: 0;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
117
|
+
background: transparent;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__nav-left {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
height: var(--van-nav-bar-height);
|
|
124
|
+
padding: 0 6px 0 var(--van-padding-md);
|
|
102
125
|
}
|
|
103
126
|
|
|
104
127
|
&__description {
|
|
@@ -120,13 +143,4 @@
|
|
|
120
143
|
height: var(--van-action-sheet-loading-icon-size);
|
|
121
144
|
}
|
|
122
145
|
|
|
123
|
-
&__close {
|
|
124
|
-
position: absolute;
|
|
125
|
-
top: 0;
|
|
126
|
-
right: 0;
|
|
127
|
-
padding: var(--van-action-sheet-close-icon-padding);
|
|
128
|
-
color: var(--van-action-sheet-close-icon-color);
|
|
129
|
-
font-size: var(--van-action-sheet-close-icon-size);
|
|
130
|
-
line-height: inherit;
|
|
131
|
-
}
|
|
132
146
|
}
|