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
package/es/label/index.less
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
--van-label-value-color: @label-value-color;
|
|
10
10
|
--van-label-bold-color: @label-bold-color;
|
|
11
11
|
--van-label-link-color: @label-link-color;
|
|
12
|
+
--van-label-same-color: @label-same-color;
|
|
12
13
|
--van-label-gap: @label-gap;
|
|
14
|
+
--van-label-left-icon-gap: @label-left-icon-gap;
|
|
13
15
|
--van-label-tags-gap: @label-tags-gap;
|
|
14
16
|
--van-label-media-gap: @label-media-gap;
|
|
15
17
|
--van-label-media-size: @label-media-size;
|
|
@@ -72,6 +74,26 @@
|
|
|
72
74
|
white-space: nowrap;
|
|
73
75
|
}
|
|
74
76
|
|
|
77
|
+
&__left-icon {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex: none;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
width: 12px;
|
|
83
|
+
height: var(--van-label-line-height);
|
|
84
|
+
// The parent uses `gap` for label/content. Add only the remaining space
|
|
85
|
+
// here so the icon-to-label distance stays exactly 4px.
|
|
86
|
+
margin-right: calc(var(--van-label-left-icon-gap) - var(--van-label-gap));
|
|
87
|
+
color: var(--van-label-label-color);
|
|
88
|
+
|
|
89
|
+
.van-icon {
|
|
90
|
+
width: 12px;
|
|
91
|
+
height: 12px;
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
line-height: 12px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
75
97
|
&__value {
|
|
76
98
|
flex: 1;
|
|
77
99
|
min-width: 0;
|
|
@@ -118,6 +140,15 @@
|
|
|
118
140
|
font-weight: var(--van-font-weight-bold);
|
|
119
141
|
}
|
|
120
142
|
|
|
143
|
+
&--same-color {
|
|
144
|
+
.van-label__left-icon,
|
|
145
|
+
.van-label__label,
|
|
146
|
+
.van-label__value,
|
|
147
|
+
.van-label__link {
|
|
148
|
+
color: var(--van-label-same-color);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
121
152
|
&__link {
|
|
122
153
|
display: inline;
|
|
123
154
|
padding: 0;
|
package/es/label/var.less
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
@label-value-color: var(--van-black);
|
|
7
7
|
@label-bold-color: var(--van-gray-8);
|
|
8
8
|
@label-link-color: var(--van-primary-color);
|
|
9
|
+
@label-same-color: var(--van-gray-7);
|
|
9
10
|
@label-gap: 2px;
|
|
11
|
+
@label-left-icon-gap: 4px;
|
|
10
12
|
@label-tags-gap: 4px;
|
|
11
13
|
@label-media-gap: 6px;
|
|
12
14
|
@label-media-size: 64px;
|
package/es/list/style/index.mjs
CHANGED
package/es/list/style/less.mjs
CHANGED
package/es/loading/Loading.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { computed, defineComponent, createVNode as _createVNode } from "vue";
|
|
2
2
|
import { extend, addUnit, numericProp, getSizeStyle, makeStringProp, createNamespace } from "../utils/index.mjs";
|
|
3
|
+
import { Icon } from "../icon/index.mjs";
|
|
3
4
|
const [name, bem] = createNamespace("loading");
|
|
4
5
|
const SpinIcon = Array(12).fill(null).map((_, index) => _createVNode("i", {
|
|
5
6
|
"class": bem("line", String(index + 1))
|
|
@@ -13,31 +14,6 @@ const CircularIcon = _createVNode("svg", {
|
|
|
13
14
|
"r": "20",
|
|
14
15
|
"fill": "none"
|
|
15
16
|
}, null)]);
|
|
16
|
-
const IllustrationIcon = _createVNode("svg", {
|
|
17
|
-
"class": bem("illustration"),
|
|
18
|
-
"viewBox": "0 0 100 100",
|
|
19
|
-
"fill": "none",
|
|
20
|
-
"aria-hidden": "true"
|
|
21
|
-
}, [_createVNode("rect", {
|
|
22
|
-
"x": "18",
|
|
23
|
-
"y": "36",
|
|
24
|
-
"width": "64",
|
|
25
|
-
"height": "48",
|
|
26
|
-
"rx": "6",
|
|
27
|
-
"fill": "currentColor",
|
|
28
|
-
"opacity": "0.14"
|
|
29
|
-
}, null), _createVNode("path", {
|
|
30
|
-
"d": "M28 84V46h44v38M39 84V62h22v22M38 51h4m16 0h4M38 57h4m16 0h4",
|
|
31
|
-
"stroke": "currentColor",
|
|
32
|
-
"stroke-width": "4",
|
|
33
|
-
"stroke-linecap": "round",
|
|
34
|
-
"stroke-linejoin": "round"
|
|
35
|
-
}, null), _createVNode("path", {
|
|
36
|
-
"d": "M50 18v12m-16-4 8 8m24-8-8 8",
|
|
37
|
-
"stroke": "currentColor",
|
|
38
|
-
"stroke-width": "4",
|
|
39
|
-
"stroke-linecap": "round"
|
|
40
|
-
}, null)]);
|
|
41
17
|
const loadingProps = {
|
|
42
18
|
size: numericProp,
|
|
43
19
|
type: makeStringProp("circular"),
|
|
@@ -72,6 +48,7 @@ var stdin_default = defineComponent({
|
|
|
72
48
|
}
|
|
73
49
|
};
|
|
74
50
|
return () => {
|
|
51
|
+
var _a;
|
|
75
52
|
const {
|
|
76
53
|
type,
|
|
77
54
|
vertical
|
|
@@ -86,7 +63,12 @@ var stdin_default = defineComponent({
|
|
|
86
63
|
}, [_createVNode("span", {
|
|
87
64
|
"class": bem("spinner", type),
|
|
88
65
|
"style": spinnerStyle.value
|
|
89
|
-
}, [isIllustration ?
|
|
66
|
+
}, [isIllustration ? _createVNode(Icon, {
|
|
67
|
+
"class": bem("illustration"),
|
|
68
|
+
"name": "loading-building",
|
|
69
|
+
"size": (_a = props.size) != null ? _a : 100,
|
|
70
|
+
"aria-hidden": "true"
|
|
71
|
+
}, null) : type === "spinner" ? SpinIcon : CircularIcon]), renderText()]);
|
|
90
72
|
};
|
|
91
73
|
}
|
|
92
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.van-location-select{display:flex;flex-direction:column;height:calc(100vh - 96px);overflow:hidden;background:var(--van-gray-2)}.van-location-select>.van-action-sheet__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}.van-location-select__nav{flex:none;--van-nav-bar-background-color: var(--van-gray-2)}.van-location-select__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-location-select__nav .van-nav-bar__right--slot{display:flex;gap:12px;padding-right:var(--van-padding-md)}.van-location-select__search{flex:none;padding:8px var(--van-padding-md);--van-search-padding: 0;--van-search-background-color: var(--van-gray-2);--van-search-content-background-color: var(--van-white)}.van-location-select__search .van-search__field{padding-left:0}.van-location-select__tabs{flex:none;padding-left:8px;--van-tab-font-size: var(--van-font-size-md);--van-tabs-line-height: 44px;--van-tabs-nav-background-color: transparent}.van-location-select__body{flex:1;min-height:0;padding:12px var(--van-padding-md);overflow-y:auto}.van-location-select__card{overflow:hidden;background:var(--van-white);border-radius:8px}.van-location-select__root-option{margin-bottom:8px;background:var(--van-white);border-radius:8px}
|
|
1
|
+
.van-location-select{display:flex;flex-direction:column;height:calc(100vh - 96px);overflow:hidden;background:var(--van-gray-2)}.van-location-select>.van-action-sheet__content{display:flex;flex:1;flex-direction:column;min-height:0;gap:0;padding:0;overflow:hidden}.van-location-select__nav{flex:none;--van-nav-bar-background-color: var(--van-gray-2)}.van-location-select__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-location-select__nav .van-nav-bar__right--slot{display:flex;gap:12px;padding-right:var(--van-padding-md)}.van-location-select__search{flex:none;padding:8px var(--van-padding-md);--van-search-padding: 0;--van-search-background-color: var(--van-gray-2);--van-search-content-background-color: var(--van-white)}.van-location-select__search .van-search__field{padding-left:0}.van-location-select__tabs{flex:none;padding-left:8px;--van-tab-font-size: var(--van-font-size-md);--van-tabs-line-height: 44px;--van-tabs-nav-background-color: transparent}.van-location-select__body{flex:1;min-height:0;padding:12px var(--van-padding-md);overflow-y:auto}.van-location-select__card{overflow:hidden;background:var(--van-white);border-radius:8px}.van-location-select__root-option{margin-bottom:8px;background:var(--van-white);border-radius:8px}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
overflow: hidden;
|
|
6
6
|
background: var(--van-gray-2);
|
|
7
7
|
|
|
8
|
-
> .van-action-sheet__content { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }
|
|
8
|
+
> .van-action-sheet__content { display: flex; flex: 1; flex-direction: column; min-height: 0; gap: 0; padding: 0; overflow: hidden; }
|
|
9
9
|
&__nav { flex: none; --van-nav-bar-background-color: var(--van-gray-2); .van-nav-bar__left--slot { left: var(--van-padding-md); } .van-nav-bar__right--slot { display: flex; gap: 12px; padding-right: var(--van-padding-md); } }
|
|
10
10
|
&__search { flex: none; padding: 8px var(--van-padding-md); --van-search-padding: 0; --van-search-background-color: var(--van-gray-2); --van-search-content-background-color: var(--van-white); .van-search__field { padding-left: 0; } }
|
|
11
11
|
&__tabs { flex: none; padding-left: 8px; --van-tab-font-size: var(--van-font-size-md); --van-tabs-line-height: 44px; --van-tabs-nav-background-color: transparent; }
|
|
@@ -2,6 +2,7 @@ import "../../style/base.css";
|
|
|
2
2
|
import "../../action-bar/index.css";
|
|
3
3
|
import "../../badge/index.css";
|
|
4
4
|
import "../../icon/index.css";
|
|
5
|
+
import "../../tag/index.css";
|
|
5
6
|
import "../../loading/index.css";
|
|
6
7
|
import "../../button/index.css";
|
|
7
8
|
import "../../action-bar-button/index.css";
|
|
@@ -2,6 +2,7 @@ import "../../style/base.less";
|
|
|
2
2
|
import "../../action-bar/index.less";
|
|
3
3
|
import "../../badge/index.less";
|
|
4
4
|
import "../../icon/index.less";
|
|
5
|
+
import "../../tag/index.less";
|
|
5
6
|
import "../../loading/index.less";
|
|
6
7
|
import "../../button/index.less";
|
|
7
8
|
import "../../action-bar-button/index.less";
|
|
@@ -22,6 +22,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
type: NumberConstructor;
|
|
23
23
|
required: true;
|
|
24
24
|
};
|
|
25
|
+
max: {
|
|
26
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
25
29
|
keyword: {
|
|
26
30
|
type: StringConstructor;
|
|
27
31
|
default: string;
|
|
@@ -49,6 +53,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
53
|
type: NumberConstructor;
|
|
50
54
|
required: true;
|
|
51
55
|
};
|
|
56
|
+
max: {
|
|
57
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
58
|
+
default: number;
|
|
59
|
+
};
|
|
52
60
|
keyword: {
|
|
53
61
|
type: StringConstructor;
|
|
54
62
|
default: string;
|
|
@@ -71,6 +79,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
79
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
72
80
|
onDetail?: ((...args: any[]) => any) | undefined;
|
|
73
81
|
}, {
|
|
82
|
+
max: string | number;
|
|
74
83
|
selected: boolean;
|
|
75
84
|
warning: string;
|
|
76
85
|
keyword: string;
|
|
@@ -4,7 +4,7 @@ import { Icon } from "../icon/index.mjs";
|
|
|
4
4
|
import { Stepper } from "../stepper/index.mjs";
|
|
5
5
|
import { Tag } from "../tag/index.mjs";
|
|
6
6
|
import { Toast } from "../toast/index.mjs";
|
|
7
|
-
import { createNamespace, truthProp } from "../utils/index.mjs";
|
|
7
|
+
import { createNamespace, makeNumericProp, truthProp } from "../utils/index.mjs";
|
|
8
8
|
const [name, bem] = createNamespace("material-action-bar");
|
|
9
9
|
var stdin_default = defineComponent({
|
|
10
10
|
name,
|
|
@@ -17,6 +17,7 @@ var stdin_default = defineComponent({
|
|
|
17
17
|
type: Number,
|
|
18
18
|
required: true
|
|
19
19
|
},
|
|
20
|
+
max: makeNumericProp(Infinity),
|
|
20
21
|
keyword: {
|
|
21
22
|
type: String,
|
|
22
23
|
default: ""
|
|
@@ -50,7 +51,8 @@ var stdin_default = defineComponent({
|
|
|
50
51
|
const confirmInputValue = () => {
|
|
51
52
|
const value = Number(inputValue.value);
|
|
52
53
|
if (!Number.isNaN(value)) {
|
|
53
|
-
|
|
54
|
+
const max = Number(props.max);
|
|
55
|
+
emit("update:modelValue", Math.min(Number.isNaN(max) ? Infinity : max, Math.max(0, value)));
|
|
54
56
|
}
|
|
55
57
|
};
|
|
56
58
|
const clearDetailLongPress = () => {
|
|
@@ -124,6 +126,7 @@ var stdin_default = defineComponent({
|
|
|
124
126
|
"class": bem("stepper"),
|
|
125
127
|
"modelValue": props.modelValue,
|
|
126
128
|
"min": 0,
|
|
129
|
+
"max": props.max,
|
|
127
130
|
"theme": "round",
|
|
128
131
|
"buttonSize": 18,
|
|
129
132
|
"disableInput": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.van-material-action-bar{position:relative;padding:10px var(--van-padding-md)}.van-material-action-bar--selected{padding:10px var(--van-padding-md);background:var(--van-gray-2);border-radius:8px}.van-material-action-bar--selected:after{display:none}.van-material-action-bar:not(:last-child):after{position:absolute;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);height:1px;background:var(--van-border-color);transform:scaleY(.5);content:""}.van-material-action-bar__main{display:flex;align-items:center;min-height:22px}.van-material-action-bar__detail{display:inline-flex;flex:1 1 0;gap:2px;align-items:center;min-width:0;padding:0;overflow:hidden;color:var(--van-gray-9);font:inherit;font-size:var(--van-font-size-md);line-height:var(--van-line-height-lg);text-align:left;background:transparent;border:0;cursor:pointer;transition:opacity var(--van-animation-duration-fast)}.van-material-action-bar__detail:active{opacity:var(--van-active-opacity)}.van-material-action-bar__detail>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-material-action-bar__stepper-prefix{flex:none;margin:0 4px 0 8px;color:var(--van-text-color-2);font-size:var(--van-font-size-md);line-height:var(--van-line-height-lg)}.van-material-action-bar__stepper-wrapper{position:relative;flex:none;margin-left:4px}.van-material-action-bar__kind-tag{flex:none;margin-left:4px}.van-material-action-bar__stepper{flex:none;margin-left:0;--van-stepper-input-width: 24px;--van-stepper-input-height: 18px;--van-stepper-input-font-size: var(--van-font-size-md);--van-stepper-input-line-height: var(--van-line-height-lg)}.van-material-action-bar__number-trigger{position:absolute;z-index:1;top:0;left:18px;width:24px;height:18px;padding:0;background:transparent;border:0;cursor:pointer}.van-material-action-bar__unit{flex:none;width:32px;margin-left:8px;overflow:hidden;color:var(--van-text-color-2);font-size:var(--van-font-size-md);line-height:var(--van-line-height-lg);text-overflow:ellipsis;white-space:nowrap}.van-material-action-bar__desc{margin:2px 0 0;overflow:hidden;color:var(--van-gray-6);font-size:var(--van-font-size-sm);line-height:20px;text-overflow:ellipsis;white-space:nowrap}.van-material-action-bar__warning{margin:2px 0 0;color:var(--van-red-500);font-size:var(--van-font-size-sm);line-height:20px}.van-material-action-bar__picking-outbound{display:flex;gap:4px;margin:2px 0 0;color:var(--van-text-color);font-size:var(--van-font-size-sm);line-height:20px}.van-material-action-bar__picking-label{color:var(--van-gray-6)}.van-material-action-bar__picking-value{font-weight:600}.van-material-action-bar__keyword{color:var(--van-primary-color)}
|
|
1
|
+
.van-material-action-bar{--van-material-action-bar-title-font-weight: var(--van-font-weight-bold);position:relative;padding:10px var(--van-padding-md)}.van-material-action-bar--selected{padding:10px var(--van-padding-md);background:var(--van-gray-2);border-radius:8px}.van-material-action-bar--selected:after{display:none}.van-material-action-bar:not(:last-child):after{position:absolute;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);height:1px;background:var(--van-border-color);transform:scaleY(.5);content:""}.van-material-action-bar__main{display:flex;align-items:center;min-height:22px}.van-material-action-bar__detail{display:inline-flex;flex:1 1 0;gap:2px;align-items:center;min-width:0;padding:0;overflow:hidden;color:var(--van-gray-9);font:inherit;font-size:var(--van-font-size-md);font-weight:var(--van-material-action-bar-title-font-weight);line-height:var(--van-line-height-lg);text-align:left;background:transparent;border:0;cursor:pointer;transition:opacity var(--van-animation-duration-fast)}.van-material-action-bar__detail:active{opacity:var(--van-active-opacity)}.van-material-action-bar__detail>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-material-action-bar__stepper-prefix{flex:none;margin:0 4px 0 8px;color:var(--van-text-color-2);font-size:var(--van-font-size-md);line-height:var(--van-line-height-lg)}.van-material-action-bar__stepper-wrapper{position:relative;flex:none;margin-left:4px}.van-material-action-bar__kind-tag{flex:none;margin-left:4px}.van-material-action-bar__stepper{flex:none;margin-left:0;--van-stepper-input-width: 24px;--van-stepper-input-height: 18px;--van-stepper-input-font-size: var(--van-font-size-md);--van-stepper-input-line-height: var(--van-line-height-lg)}.van-material-action-bar__number-trigger{position:absolute;z-index:1;top:0;left:18px;width:24px;height:18px;padding:0;background:transparent;border:0;cursor:pointer}.van-material-action-bar__unit{flex:none;width:32px;margin-left:8px;overflow:hidden;color:var(--van-text-color-2);font-size:var(--van-font-size-md);line-height:var(--van-line-height-lg);text-overflow:ellipsis;white-space:nowrap}.van-material-action-bar__desc{margin:2px 0 0;overflow:hidden;color:var(--van-gray-6);font-size:var(--van-font-size-sm);line-height:20px;text-overflow:ellipsis;white-space:nowrap}.van-material-action-bar__warning{margin:2px 0 0;color:var(--van-red-500);font-size:var(--van-font-size-sm);line-height:20px}.van-material-action-bar__picking-outbound{display:flex;gap:4px;margin:2px 0 0;color:var(--van-text-color);font-size:var(--van-font-size-sm);line-height:20px}.van-material-action-bar__picking-label{color:var(--van-gray-6)}.van-material-action-bar__picking-value{font-weight:600}.van-material-action-bar__keyword{color:var(--van-primary-color)}
|
|
@@ -7,6 +7,10 @@ export declare const MaterialActionList: import("../utils").WithInstall<import("
|
|
|
7
7
|
type: NumberConstructor;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
+
max: {
|
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
10
14
|
keyword: {
|
|
11
15
|
type: StringConstructor;
|
|
12
16
|
default: string;
|
|
@@ -34,6 +38,10 @@ export declare const MaterialActionList: import("../utils").WithInstall<import("
|
|
|
34
38
|
type: NumberConstructor;
|
|
35
39
|
required: true;
|
|
36
40
|
};
|
|
41
|
+
max: {
|
|
42
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
37
45
|
keyword: {
|
|
38
46
|
type: StringConstructor;
|
|
39
47
|
default: string;
|
|
@@ -56,6 +64,7 @@ export declare const MaterialActionList: import("../utils").WithInstall<import("
|
|
|
56
64
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
57
65
|
onDetail?: ((...args: any[]) => any) | undefined;
|
|
58
66
|
}, {
|
|
67
|
+
max: string | number;
|
|
59
68
|
selected: boolean;
|
|
60
69
|
warning: string;
|
|
61
70
|
keyword: string;
|
|
@@ -72,6 +81,10 @@ export declare const MaterialActionBar: import("../utils").WithInstall<import("v
|
|
|
72
81
|
type: NumberConstructor;
|
|
73
82
|
required: true;
|
|
74
83
|
};
|
|
84
|
+
max: {
|
|
85
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
86
|
+
default: number;
|
|
87
|
+
};
|
|
75
88
|
keyword: {
|
|
76
89
|
type: StringConstructor;
|
|
77
90
|
default: string;
|
|
@@ -99,6 +112,10 @@ export declare const MaterialActionBar: import("../utils").WithInstall<import("v
|
|
|
99
112
|
type: NumberConstructor;
|
|
100
113
|
required: true;
|
|
101
114
|
};
|
|
115
|
+
max: {
|
|
116
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
117
|
+
default: number;
|
|
118
|
+
};
|
|
102
119
|
keyword: {
|
|
103
120
|
type: StringConstructor;
|
|
104
121
|
default: string;
|
|
@@ -121,6 +138,7 @@ export declare const MaterialActionBar: import("../utils").WithInstall<import("v
|
|
|
121
138
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
122
139
|
onDetail?: ((...args: any[]) => any) | undefined;
|
|
123
140
|
}, {
|
|
141
|
+
max: string | number;
|
|
124
142
|
selected: boolean;
|
|
125
143
|
warning: string;
|
|
126
144
|
keyword: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
.van-material-action-bar {
|
|
2
|
+
--van-material-action-bar-title-font-weight: var(--van-font-weight-bold);
|
|
3
|
+
|
|
2
4
|
position: relative;
|
|
3
5
|
padding: 10px var(--van-padding-md);
|
|
4
6
|
&--selected {
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
&__main { display: flex; align-items: center; min-height: 22px; }
|
|
24
|
-
&__detail { display: inline-flex; flex: 1 1 0; gap: 2px; align-items: center; min-width: 0; padding: 0; overflow: hidden; color: var(--van-gray-9); font: inherit; font-size: var(--van-font-size-md); line-height: var(--van-line-height-lg); text-align: left; background: transparent; border: 0; cursor: pointer; transition: opacity var(--van-animation-duration-fast); &:active { opacity: var(--van-active-opacity); } > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
|
|
26
|
+
&__detail { display: inline-flex; flex: 1 1 0; gap: 2px; align-items: center; min-width: 0; padding: 0; overflow: hidden; color: var(--van-gray-9); font: inherit; font-size: var(--van-font-size-md); font-weight: var(--van-material-action-bar-title-font-weight); line-height: var(--van-line-height-lg); text-align: left; background: transparent; border: 0; cursor: pointer; transition: opacity var(--van-animation-duration-fast); &:active { opacity: var(--van-active-opacity); } > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
|
|
25
27
|
&__stepper-prefix { flex: none; margin: 0 4px 0 8px; color: var(--van-text-color-2); font-size: var(--van-font-size-md); line-height: var(--van-line-height-lg); }
|
|
26
28
|
&__stepper-wrapper { position: relative; flex: none; margin-left: 4px; }
|
|
27
29
|
&__kind-tag { flex: none; margin-left: 4px; }
|