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/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -246,7 +246,7 @@ __reExport(stdin_exports, require("./uploader"), module.exports);
|
|
|
246
246
|
__reExport(stdin_exports, require("./video-preview"), module.exports);
|
|
247
247
|
__reExport(stdin_exports, require("./work-order-card"), module.exports);
|
|
248
248
|
__reExport(stdin_exports, require("./work-order-filter"), module.exports);
|
|
249
|
-
const version = "0.0.
|
|
249
|
+
const version = "0.0.39";
|
|
250
250
|
function install(app) {
|
|
251
251
|
const components = [
|
|
252
252
|
import_action_bar.ActionBar,
|
package/lib/index.less
CHANGED
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
@import "./video-preview/index.less";
|
|
26
26
|
@import "./share-sheet/index.less";
|
|
27
27
|
@import "./notify/index.less";
|
|
28
|
+
@import "./toast/index.less";
|
|
29
|
+
@import "./calendar/index.less";
|
|
28
30
|
@import "./popover/index.less";
|
|
29
31
|
@import "./friendly-tip/index.less";
|
|
30
32
|
@import "./nav-bar/index.less";
|
|
31
|
-
@import "./toast/index.less";
|
|
32
|
-
@import "./calendar/index.less";
|
|
33
33
|
@import "./action-sheet/index.less";
|
|
34
34
|
@import "./form-panel/index.less";
|
|
35
35
|
@import "./content-panel/index.less";
|
|
@@ -11,6 +11,7 @@ export declare type InfoCardField = {
|
|
|
11
11
|
media?: LabelMedia[];
|
|
12
12
|
visible?: boolean;
|
|
13
13
|
};
|
|
14
|
+
export declare type InfoCardCollapsePosition = 'bottom' | 'title';
|
|
14
15
|
declare const infoCardProps: {
|
|
15
16
|
title: {
|
|
16
17
|
type: PropType<string>;
|
|
@@ -34,6 +35,15 @@ declare const infoCardProps: {
|
|
|
34
35
|
type: BooleanConstructor;
|
|
35
36
|
default: true;
|
|
36
37
|
};
|
|
38
|
+
showCacheBadge: BooleanConstructor;
|
|
39
|
+
cacheText: {
|
|
40
|
+
type: PropType<string>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
collapsePosition: {
|
|
44
|
+
type: PropType<InfoCardCollapsePosition>;
|
|
45
|
+
default: InfoCardCollapsePosition;
|
|
46
|
+
};
|
|
37
47
|
divider: BooleanConstructor;
|
|
38
48
|
expandText: {
|
|
39
49
|
type: PropType<string>;
|
|
@@ -68,6 +78,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
78
|
type: BooleanConstructor;
|
|
69
79
|
default: true;
|
|
70
80
|
};
|
|
81
|
+
showCacheBadge: BooleanConstructor;
|
|
82
|
+
cacheText: {
|
|
83
|
+
type: PropType<string>;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
collapsePosition: {
|
|
87
|
+
type: PropType<InfoCardCollapsePosition>;
|
|
88
|
+
default: InfoCardCollapsePosition;
|
|
89
|
+
};
|
|
71
90
|
divider: BooleanConstructor;
|
|
72
91
|
expandText: {
|
|
73
92
|
type: PropType<string>;
|
|
@@ -100,6 +119,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
119
|
type: BooleanConstructor;
|
|
101
120
|
default: true;
|
|
102
121
|
};
|
|
122
|
+
showCacheBadge: BooleanConstructor;
|
|
123
|
+
cacheText: {
|
|
124
|
+
type: PropType<string>;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
collapsePosition: {
|
|
128
|
+
type: PropType<InfoCardCollapsePosition>;
|
|
129
|
+
default: InfoCardCollapsePosition;
|
|
130
|
+
};
|
|
103
131
|
divider: BooleanConstructor;
|
|
104
132
|
expandText: {
|
|
105
133
|
type: PropType<string>;
|
|
@@ -117,13 +145,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
117
145
|
}, {
|
|
118
146
|
title: string;
|
|
119
147
|
modelValue: boolean;
|
|
148
|
+
collapsible: boolean;
|
|
120
149
|
fields: InfoCardField[];
|
|
121
150
|
divider: boolean;
|
|
122
151
|
expandText: string;
|
|
123
152
|
collapseText: string;
|
|
124
153
|
showTitle: boolean;
|
|
125
154
|
extraFields: InfoCardField[];
|
|
126
|
-
collapsible: boolean;
|
|
127
155
|
showCollapse: boolean;
|
|
156
|
+
showCacheBadge: boolean;
|
|
157
|
+
cacheText: string;
|
|
158
|
+
collapsePosition: InfoCardCollapsePosition;
|
|
128
159
|
}>;
|
|
129
160
|
export default _default;
|
|
@@ -34,6 +34,7 @@ var import_vue = require("vue");
|
|
|
34
34
|
var import_utils = require("../utils");
|
|
35
35
|
var import_collapse_toggle = __toESM(require("../collapse-toggle"));
|
|
36
36
|
var import_divider = require("../divider");
|
|
37
|
+
var import_icon = require("../icon");
|
|
37
38
|
var import_label = require("../label");
|
|
38
39
|
const [name, bem] = (0, import_utils.createNamespace)("info-card");
|
|
39
40
|
const infoCardProps = {
|
|
@@ -50,6 +51,9 @@ const infoCardProps = {
|
|
|
50
51
|
modelValue: Boolean,
|
|
51
52
|
collapsible: Boolean,
|
|
52
53
|
showCollapse: import_utils.truthProp,
|
|
54
|
+
showCacheBadge: Boolean,
|
|
55
|
+
cacheText: (0, import_utils.makeStringProp)(""),
|
|
56
|
+
collapsePosition: (0, import_utils.makeStringProp)("bottom"),
|
|
53
57
|
divider: Boolean,
|
|
54
58
|
expandText: (0, import_utils.makeStringProp)("\u67E5\u770B\u66F4\u591A"),
|
|
55
59
|
collapseText: (0, import_utils.makeStringProp)("\u6536\u8D77")
|
|
@@ -66,7 +70,21 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
66
70
|
const visibleExtraFields = (0, import_vue.computed)(() => props.extraFields.filter((field) => field.visible !== false));
|
|
67
71
|
const hasExtra = (0, import_vue.computed)(() => visibleExtraFields.value.length > 0 || !!slots.extra);
|
|
68
72
|
const showCollapse = (0, import_vue.computed)(() => props.collapsible && props.showCollapse);
|
|
73
|
+
const showTitleCollapse = (0, import_vue.computed)(() => showCollapse.value && props.collapsePosition === "title" && props.showTitle && Boolean(slots.title || props.title) && hasExtra.value);
|
|
69
74
|
const showExtra = (0, import_vue.computed)(() => !showCollapse.value || props.modelValue);
|
|
75
|
+
const onTitleCollapse = (event) => {
|
|
76
|
+
const value = !props.modelValue;
|
|
77
|
+
emit("update:modelValue", value);
|
|
78
|
+
emit("change", value);
|
|
79
|
+
};
|
|
80
|
+
const onTitleCollapseKeydown = (event) => {
|
|
81
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
82
|
+
event.preventDefault();
|
|
83
|
+
const value = !props.modelValue;
|
|
84
|
+
emit("update:modelValue", value);
|
|
85
|
+
emit("change", value);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
70
88
|
const renderField = (field, index) => (0, import_vue.createVNode)(import_label.Label, {
|
|
71
89
|
"key": `${field.label}-${index}`,
|
|
72
90
|
"label": field.label,
|
|
@@ -97,9 +115,33 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
97
115
|
var _a, _b;
|
|
98
116
|
return (0, import_vue.createVNode)("section", {
|
|
99
117
|
"class": bem()
|
|
100
|
-
}, [props.
|
|
101
|
-
"class": bem("
|
|
102
|
-
}, [(
|
|
118
|
+
}, [props.showCacheBadge && (0, import_vue.createVNode)("div", {
|
|
119
|
+
"class": bem("cache-badge")
|
|
120
|
+
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
|
121
|
+
"name": "success",
|
|
122
|
+
"size": "12",
|
|
123
|
+
"class": bem("cache-badge-icon")
|
|
124
|
+
}, null), (0, import_vue.createVNode)("span", null, [props.cacheText])]), props.showTitle && (slots.title || props.title) && (0, import_vue.createVNode)("div", {
|
|
125
|
+
"class": bem("title", {
|
|
126
|
+
collapsible: showTitleCollapse.value
|
|
127
|
+
}),
|
|
128
|
+
"role": showTitleCollapse.value ? "button" : void 0,
|
|
129
|
+
"tabindex": showTitleCollapse.value ? 0 : void 0,
|
|
130
|
+
"aria-expanded": showTitleCollapse.value ? props.modelValue : void 0,
|
|
131
|
+
"onClick": showTitleCollapse.value ? onTitleCollapse : void 0,
|
|
132
|
+
"onKeydown": showTitleCollapse.value ? onTitleCollapseKeydown : void 0
|
|
133
|
+
}, [(0, import_vue.createVNode)("span", {
|
|
134
|
+
"class": bem("title-content")
|
|
135
|
+
}, [((_a = slots.title) == null ? void 0 : _a.call(slots)) || props.title]), showTitleCollapse.value && (0, import_vue.createVNode)("div", {
|
|
136
|
+
"class": bem("title-collapse"),
|
|
137
|
+
"aria-hidden": "true"
|
|
138
|
+
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
|
139
|
+
"name": "trangle-down",
|
|
140
|
+
"size": "16",
|
|
141
|
+
"class": bem("title-collapse-icon", {
|
|
142
|
+
expanded: props.modelValue
|
|
143
|
+
})
|
|
144
|
+
}, null)])]), visibleFields.value.map(renderField), (_b = slots.default) == null ? void 0 : _b.call(slots), hasExtra.value && showCollapse.value && !showTitleCollapse.value && (0, import_vue.createVNode)(import_collapse_toggle.default, {
|
|
103
145
|
"modelValue": props.modelValue,
|
|
104
146
|
"divider": true,
|
|
105
147
|
"expandText": props.expandText,
|
package/lib/info-card/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-info-card-padding: 12px var(--van-padding-md);--van-info-card-radius: var(--van-border-radius-lg);--van-info-card-gap: 4px;--van-info-card-title-color: var(--van-gray-8);--van-info-card-title-font-size:
|
|
1
|
+
:root{--van-info-card-padding: 12px var(--van-padding-md);--van-info-card-radius: var(--van-border-radius-lg);--van-info-card-gap: 4px;--van-info-card-title-color: var(--van-gray-8);--van-info-card-title-font-size: 15px;--van-info-card-title-line-height: var(--van-line-height-lg);--van-info-card-divider-margin: 10px 0}.van-info-card{position:relative;display:flex;flex-direction:column;gap:var(--van-info-card-gap);padding:var(--van-info-card-padding);overflow:hidden;background:var(--van-white);border-radius:var(--van-info-card-radius)}.van-info-card__cache-badge{position:absolute;top:0;right:0;display:flex;gap:var(--van-padding-base);align-items:center;padding:0 var(--van-padding-sm);color:var(--van-black);font-size:var(--van-font-size-xs);line-height:var(--van-line-height-sm);background:var(--van-gray-3);border-radius:0 var(--van-info-card-radius) 0 var(--van-info-card-radius);pointer-events:none}.van-info-card__cache-badge-icon{flex:none;color:var(--van-success-color)}.van-info-card__title{display:flex;align-items:flex-start;min-width:0;color:var(--van-info-card-title-color);font-size:var(--van-info-card-title-font-size);font-weight:var(--van-font-weight-bold);line-height:var(--van-info-card-title-line-height);overflow-wrap:anywhere}.van-info-card__title-content{min-width:0}.van-info-card__title--collapsible{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:opacity var(--van-animation-duration-fast)}.van-info-card__title--collapsible:active{opacity:var(--van-active-opacity)}.van-info-card__title-collapse{display:flex;flex:none;align-items:center;align-self:flex-start;height:var(--van-info-card-title-line-height);margin-left:var(--van-info-card-gap);color:var(--van-gray-6)}.van-info-card__title-collapse-icon{transition:transform var(--van-animation-duration-fast)}.van-info-card__title-collapse-icon--expanded{transform:rotate(180deg)}.van-info-card__extra{display:flex;flex-direction:column;gap:var(--van-info-card-gap)}.van-info-card__divider.van-divider{width:100%;margin:var(--van-info-card-divider-margin)}.van-info-card-expand-enter-active,.van-info-card-expand-leave-active{overflow:hidden;transition:max-height var(--van-animation-duration-fast) var(--van-animation-timing-function-enter),opacity var(--van-animation-duration-fast) ease}.van-info-card-expand-enter-from,.van-info-card-expand-leave-to{max-height:0;opacity:0}.van-info-card-expand-enter-to,.van-info-card-expand-leave-from{max-height:480px;opacity:1}
|
package/lib/info-card/index.d.ts
CHANGED
|
@@ -21,6 +21,15 @@ export declare const InfoCard: import("../utils").WithInstall<import("vue").Defi
|
|
|
21
21
|
type: BooleanConstructor;
|
|
22
22
|
default: true;
|
|
23
23
|
};
|
|
24
|
+
showCacheBadge: BooleanConstructor;
|
|
25
|
+
cacheText: {
|
|
26
|
+
type: import("vue").PropType<string>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
collapsePosition: {
|
|
30
|
+
type: import("vue").PropType<import("./InfoCard").InfoCardCollapsePosition>;
|
|
31
|
+
default: import("./InfoCard").InfoCardCollapsePosition;
|
|
32
|
+
};
|
|
24
33
|
divider: BooleanConstructor;
|
|
25
34
|
expandText: {
|
|
26
35
|
type: import("vue").PropType<string>;
|
|
@@ -53,6 +62,15 @@ export declare const InfoCard: import("../utils").WithInstall<import("vue").Defi
|
|
|
53
62
|
type: BooleanConstructor;
|
|
54
63
|
default: true;
|
|
55
64
|
};
|
|
65
|
+
showCacheBadge: BooleanConstructor;
|
|
66
|
+
cacheText: {
|
|
67
|
+
type: import("vue").PropType<string>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
collapsePosition: {
|
|
71
|
+
type: import("vue").PropType<import("./InfoCard").InfoCardCollapsePosition>;
|
|
72
|
+
default: import("./InfoCard").InfoCardCollapsePosition;
|
|
73
|
+
};
|
|
56
74
|
divider: BooleanConstructor;
|
|
57
75
|
expandText: {
|
|
58
76
|
type: import("vue").PropType<string>;
|
|
@@ -70,17 +88,20 @@ export declare const InfoCard: import("../utils").WithInstall<import("vue").Defi
|
|
|
70
88
|
}, {
|
|
71
89
|
title: string;
|
|
72
90
|
modelValue: boolean;
|
|
91
|
+
collapsible: boolean;
|
|
73
92
|
fields: import("./InfoCard").InfoCardField[];
|
|
74
93
|
divider: boolean;
|
|
75
94
|
expandText: string;
|
|
76
95
|
collapseText: string;
|
|
77
96
|
showTitle: boolean;
|
|
78
97
|
extraFields: import("./InfoCard").InfoCardField[];
|
|
79
|
-
collapsible: boolean;
|
|
80
98
|
showCollapse: boolean;
|
|
99
|
+
showCacheBadge: boolean;
|
|
100
|
+
cacheText: string;
|
|
101
|
+
collapsePosition: import("./InfoCard").InfoCardCollapsePosition;
|
|
81
102
|
}>>;
|
|
82
103
|
export default InfoCard;
|
|
83
|
-
export type { InfoCardField, InfoCardProps } from './InfoCard';
|
|
104
|
+
export type { InfoCardCollapsePosition, InfoCardField, InfoCardProps } from './InfoCard';
|
|
84
105
|
declare module 'vue' {
|
|
85
106
|
interface GlobalComponents {
|
|
86
107
|
VanInfoCard: typeof InfoCard;
|
package/lib/info-card/index.less
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.van-info-card {
|
|
14
|
+
position: relative;
|
|
14
15
|
display: flex;
|
|
15
16
|
flex-direction: column;
|
|
16
17
|
gap: var(--van-info-card-gap);
|
|
@@ -19,7 +20,31 @@
|
|
|
19
20
|
background: var(--van-white);
|
|
20
21
|
border-radius: var(--van-info-card-radius);
|
|
21
22
|
|
|
23
|
+
&__cache-badge {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: var(--van-padding-base);
|
|
29
|
+
align-items: center;
|
|
30
|
+
padding: 0 var(--van-padding-sm);
|
|
31
|
+
color: var(--van-black);
|
|
32
|
+
font-size: var(--van-font-size-xs);
|
|
33
|
+
line-height: var(--van-line-height-sm);
|
|
34
|
+
background: var(--van-gray-3);
|
|
35
|
+
border-radius: 0 var(--van-info-card-radius) 0 var(--van-info-card-radius);
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__cache-badge-icon {
|
|
40
|
+
flex: none;
|
|
41
|
+
color: var(--van-success-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
22
44
|
&__title {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: flex-start;
|
|
47
|
+
min-width: 0;
|
|
23
48
|
color: var(--van-info-card-title-color);
|
|
24
49
|
font-size: var(--van-info-card-title-font-size);
|
|
25
50
|
font-weight: var(--van-font-weight-bold);
|
|
@@ -27,6 +52,38 @@
|
|
|
27
52
|
overflow-wrap: anywhere;
|
|
28
53
|
}
|
|
29
54
|
|
|
55
|
+
&__title-content {
|
|
56
|
+
min-width: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&__title--collapsible {
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
user-select: none;
|
|
62
|
+
transition: opacity var(--van-animation-duration-fast);
|
|
63
|
+
|
|
64
|
+
&:active {
|
|
65
|
+
opacity: var(--van-active-opacity);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__title-collapse {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex: none;
|
|
72
|
+
align-items: center;
|
|
73
|
+
align-self: flex-start;
|
|
74
|
+
height: var(--van-info-card-title-line-height);
|
|
75
|
+
margin-left: var(--van-info-card-gap);
|
|
76
|
+
color: var(--van-gray-6);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&__title-collapse-icon {
|
|
80
|
+
transition: transform var(--van-animation-duration-fast);
|
|
81
|
+
|
|
82
|
+
&--expanded {
|
|
83
|
+
transform: rotate(180deg);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
30
87
|
&__extra {
|
|
31
88
|
display: flex;
|
|
32
89
|
flex-direction: column;
|
package/lib/info-card/var.less
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
@info-card-radius: var(--van-border-radius-lg);
|
|
3
3
|
@info-card-gap: 4px;
|
|
4
4
|
@info-card-title-color: var(--van-gray-8);
|
|
5
|
-
@info-card-title-font-size:
|
|
5
|
+
@info-card-title-font-size: 15px;
|
|
6
6
|
@info-card-title-line-height: var(--van-line-height-lg);
|
|
7
7
|
@info-card-divider-margin: 10px 0;
|
package/lib/label/Label.d.ts
CHANGED
|
@@ -47,6 +47,12 @@ declare const labelProps: {
|
|
|
47
47
|
type: PropType<LabelContentAlign>;
|
|
48
48
|
default: LabelContentAlign;
|
|
49
49
|
};
|
|
50
|
+
leftIcon: {
|
|
51
|
+
type: PropType<string>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
showLeftIcon: BooleanConstructor;
|
|
55
|
+
sameColor: BooleanConstructor;
|
|
50
56
|
vertical: BooleanConstructor;
|
|
51
57
|
ellipsis: BooleanConstructor;
|
|
52
58
|
href: StringConstructor;
|
|
@@ -94,6 +100,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
100
|
type: PropType<LabelContentAlign>;
|
|
95
101
|
default: LabelContentAlign;
|
|
96
102
|
};
|
|
103
|
+
leftIcon: {
|
|
104
|
+
type: PropType<string>;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
showLeftIcon: BooleanConstructor;
|
|
108
|
+
sameColor: BooleanConstructor;
|
|
97
109
|
vertical: BooleanConstructor;
|
|
98
110
|
ellipsis: BooleanConstructor;
|
|
99
111
|
href: StringConstructor;
|
|
@@ -139,6 +151,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
151
|
type: PropType<LabelContentAlign>;
|
|
140
152
|
default: LabelContentAlign;
|
|
141
153
|
};
|
|
154
|
+
leftIcon: {
|
|
155
|
+
type: PropType<string>;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
showLeftIcon: BooleanConstructor;
|
|
159
|
+
sameColor: BooleanConstructor;
|
|
142
160
|
vertical: BooleanConstructor;
|
|
143
161
|
ellipsis: BooleanConstructor;
|
|
144
162
|
href: StringConstructor;
|
|
@@ -163,10 +181,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
163
181
|
tags: string[];
|
|
164
182
|
media: LabelMedia[];
|
|
165
183
|
vertical: boolean;
|
|
184
|
+
leftIcon: string;
|
|
166
185
|
ellipsis: boolean;
|
|
167
186
|
showLabel: boolean;
|
|
168
187
|
showContent: boolean;
|
|
169
188
|
showColon: boolean | undefined;
|
|
170
189
|
contentAlign: LabelContentAlign;
|
|
190
|
+
showLeftIcon: boolean;
|
|
191
|
+
sameColor: boolean;
|
|
171
192
|
}>;
|
|
172
193
|
export default _default;
|
package/lib/label/Label.js
CHANGED
|
@@ -38,6 +38,9 @@ const labelProps = {
|
|
|
38
38
|
type: (0, import_utils.makeStringProp)("default"),
|
|
39
39
|
size: (0, import_utils.makeStringProp)("default"),
|
|
40
40
|
contentAlign: (0, import_utils.makeStringProp)("follow"),
|
|
41
|
+
leftIcon: (0, import_utils.makeStringProp)("underway-o"),
|
|
42
|
+
showLeftIcon: Boolean,
|
|
43
|
+
sameColor: Boolean,
|
|
41
44
|
vertical: Boolean,
|
|
42
45
|
ellipsis: Boolean,
|
|
43
46
|
href: String,
|
|
@@ -71,6 +74,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
71
74
|
return `${props.label}\uFF1A`;
|
|
72
75
|
});
|
|
73
76
|
const showLocation = (0, import_vue.computed)(() => props.vertical && (props.type === "bold" || props.type === "link") && !!props.location);
|
|
77
|
+
const showLeftIcon = (0, import_vue.computed)(() => props.showLeftIcon && !vertical.value && props.contentAlign === "follow");
|
|
74
78
|
const clearLongPress = () => {
|
|
75
79
|
if (longPressTimer !== void 0) {
|
|
76
80
|
clearTimeout(longPressTimer);
|
|
@@ -144,9 +148,15 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
144
148
|
vertical: vertical.value,
|
|
145
149
|
ellipsis: ellipsis.value,
|
|
146
150
|
location: showLocation.value,
|
|
147
|
-
"content-right": props.contentAlign === "right"
|
|
151
|
+
"content-right": props.contentAlign === "right",
|
|
152
|
+
"same-color": props.sameColor
|
|
148
153
|
}])
|
|
149
|
-
}, [
|
|
154
|
+
}, [showLeftIcon.value && (0, import_vue.createVNode)("div", {
|
|
155
|
+
"class": bem("left-icon")
|
|
156
|
+
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
|
157
|
+
"name": props.leftIcon,
|
|
158
|
+
"size": "12"
|
|
159
|
+
}, null)]), props.showLabel && (0, import_vue.createVNode)("span", {
|
|
150
160
|
"class": bem("label"),
|
|
151
161
|
"onPointerdown": () => startLongPress("label", displayLabel.value),
|
|
152
162
|
"onPointerup": clearLongPress,
|
package/lib/label/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-label-font-size: var(--van-font-size-md);--van-label-line-height: var(--van-line-height-lg);--van-label-mini-font-size: var(--van-font-size-sm);--van-label-mini-line-height: var(--van-line-height-md);--van-label-label-color: var(--van-gray-6);--van-label-value-color: var(--van-black);--van-label-bold-color: var(--van-gray-8);--van-label-link-color: var(--van-primary-color);--van-label-gap: 2px;--van-label-tags-gap: 4px;--van-label-media-gap: 6px;--van-label-media-size: 64px;--van-label-mini-media-size: 48px;--van-label-media-radius: 4px;--van-label-location-color: var(--van-gray-7);--van-label-location-font-size: var(--van-font-size-sm);--van-label-location-line-height: var(--van-line-height-md);--van-label-location-icon-size: 12px;--van-label-location-gap: 2px;--van-label-ellipsis-label-max-width: 120px}.van-label{display:flex;align-items:flex-start;gap:var(--van-label-gap);color:var(--van-label-value-color);font-size:var(--van-label-font-size);line-height:var(--van-label-line-height)}.van-label--vertical{flex-direction:column}.van-label--content-right .van-label__value{text-align:right}.van-label--mini{--van-label-font-size: var(--van-label-mini-font-size);--van-label-line-height: var(--van-label-mini-line-height);--van-label-media-size: var(--van-label-mini-media-size)}.van-label--ellipsis .van-label__label{flex:0 1 var(--van-label-ellipsis-label-max-width);max-width:var(--van-label-ellipsis-label-max-width);overflow:hidden;text-overflow:ellipsis}.van-label--ellipsis .van-label__value{overflow:hidden}.van-label--ellipsis .van-label__text,.van-label--ellipsis .van-label__link{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-label__label{flex:none;color:var(--van-label-label-color);white-space:nowrap}.van-label__value{flex:1;min-width:0;color:inherit;overflow-wrap:anywhere}.van-label__text{display:block}.van-label--location .van-label__value{display:flex;flex-direction:column;gap:var(--van-label-location-gap);width:100%}.van-label--location .van-label__link{align-self:flex-start;text-align:left}.van-label__location{display:inline-flex;gap:var(--van-label-location-gap);align-items:center;width:-moz-fit-content;width:fit-content;max-width:100%;color:var(--van-label-location-color);font-size:var(--van-label-location-font-size);font-weight:400;line-height:var(--van-label-location-line-height);overflow-wrap:anywhere}.van-label__location .van-icon{flex:none;font-size:var(--van-label-location-icon-size)}.van-label--bold .van-label__value{color:var(--van-label-bold-color);font-weight:var(--van-font-weight-bold)}.van-label__link{display:inline;padding:0;color:var(--van-label-link-color);font:inherit;font-weight:var(--van-font-weight-bold);text-decoration:none;background:transparent;border:0;cursor:pointer;transition:opacity var(--van-animation-duration-fast)}.van-label__link:active{opacity:var(--van-active-opacity)}.van-label__tags,.van-label__media{display:flex;flex-wrap:wrap;align-items:flex-start}.van-label__tags{gap:var(--van-label-tags-gap);min-height:var(--van-label-line-height);align-items:center}.van-label__media{gap:var(--van-label-media-gap);width:100%}.van-label__media-item{position:relative;flex:none;width:var(--van-label-media-size);height:var(--van-label-media-size);padding:0;overflow:hidden;background:transparent;border:0;border-radius:var(--van-label-media-radius);cursor:pointer;transition:opacity var(--van-animation-duration-fast)}.van-label__media-item:active{opacity:var(--van-active-opacity)}.van-label__media-item .van-image{display:block;width:100%;height:100%}.van-label__play{position:absolute;top:50%;left:50%;color:var(--van-white);font-size:24px;transform:translate(-50%,-50%);text-shadow:0 1px 2px rgba(0,0,0,.45)}
|
|
1
|
+
:root{--van-label-font-size: var(--van-font-size-md);--van-label-line-height: var(--van-line-height-lg);--van-label-mini-font-size: var(--van-font-size-sm);--van-label-mini-line-height: var(--van-line-height-md);--van-label-label-color: var(--van-gray-6);--van-label-value-color: var(--van-black);--van-label-bold-color: var(--van-gray-8);--van-label-link-color: var(--van-primary-color);--van-label-same-color: var(--van-gray-7);--van-label-gap: 2px;--van-label-left-icon-gap: 4px;--van-label-tags-gap: 4px;--van-label-media-gap: 6px;--van-label-media-size: 64px;--van-label-mini-media-size: 48px;--van-label-media-radius: 4px;--van-label-location-color: var(--van-gray-7);--van-label-location-font-size: var(--van-font-size-sm);--van-label-location-line-height: var(--van-line-height-md);--van-label-location-icon-size: 12px;--van-label-location-gap: 2px;--van-label-ellipsis-label-max-width: 120px}.van-label{display:flex;align-items:flex-start;gap:var(--van-label-gap);color:var(--van-label-value-color);font-size:var(--van-label-font-size);line-height:var(--van-label-line-height)}.van-label--vertical{flex-direction:column}.van-label--content-right .van-label__value{text-align:right}.van-label--mini{--van-label-font-size: var(--van-label-mini-font-size);--van-label-line-height: var(--van-label-mini-line-height);--van-label-media-size: var(--van-label-mini-media-size)}.van-label--ellipsis .van-label__label{flex:0 1 var(--van-label-ellipsis-label-max-width);max-width:var(--van-label-ellipsis-label-max-width);overflow:hidden;text-overflow:ellipsis}.van-label--ellipsis .van-label__value{overflow:hidden}.van-label--ellipsis .van-label__text,.van-label--ellipsis .van-label__link{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-label__label{flex:none;color:var(--van-label-label-color);white-space:nowrap}.van-label__left-icon{display:flex;flex:none;align-items:center;justify-content:center;width:12px;height:var(--van-label-line-height);margin-right:calc(var(--van-label-left-icon-gap) - var(--van-label-gap));color:var(--van-label-label-color)}.van-label__left-icon .van-icon{width:12px;height:12px;font-size:12px;line-height:12px}.van-label__value{flex:1;min-width:0;color:inherit;overflow-wrap:anywhere}.van-label__text{display:block}.van-label--location .van-label__value{display:flex;flex-direction:column;gap:var(--van-label-location-gap);width:100%}.van-label--location .van-label__link{align-self:flex-start;text-align:left}.van-label__location{display:inline-flex;gap:var(--van-label-location-gap);align-items:center;width:-moz-fit-content;width:fit-content;max-width:100%;color:var(--van-label-location-color);font-size:var(--van-label-location-font-size);font-weight:400;line-height:var(--van-label-location-line-height);overflow-wrap:anywhere}.van-label__location .van-icon{flex:none;font-size:var(--van-label-location-icon-size)}.van-label--bold .van-label__value{color:var(--van-label-bold-color);font-weight:var(--van-font-weight-bold)}.van-label--same-color .van-label__left-icon,.van-label--same-color .van-label__label,.van-label--same-color .van-label__value,.van-label--same-color .van-label__link{color:var(--van-label-same-color)}.van-label__link{display:inline;padding:0;color:var(--van-label-link-color);font:inherit;font-weight:var(--van-font-weight-bold);text-decoration:none;background:transparent;border:0;cursor:pointer;transition:opacity var(--van-animation-duration-fast)}.van-label__link:active{opacity:var(--van-active-opacity)}.van-label__tags,.van-label__media{display:flex;flex-wrap:wrap;align-items:flex-start}.van-label__tags{gap:var(--van-label-tags-gap);min-height:var(--van-label-line-height);align-items:center}.van-label__media{gap:var(--van-label-media-gap);width:100%}.van-label__media-item{position:relative;flex:none;width:var(--van-label-media-size);height:var(--van-label-media-size);padding:0;overflow:hidden;background:transparent;border:0;border-radius:var(--van-label-media-radius);cursor:pointer;transition:opacity var(--van-animation-duration-fast)}.van-label__media-item:active{opacity:var(--van-active-opacity)}.van-label__media-item .van-image{display:block;width:100%;height:100%}.van-label__play{position:absolute;top:50%;left:50%;color:var(--van-white);font-size:24px;transform:translate(-50%,-50%);text-shadow:0 1px 2px rgba(0,0,0,.45)}
|
package/lib/label/index.d.ts
CHANGED
|
@@ -31,6 +31,12 @@ export declare const Label: import("../utils").WithInstall<import("vue").DefineC
|
|
|
31
31
|
type: import("vue").PropType<import("./Label").LabelContentAlign>;
|
|
32
32
|
default: import("./Label").LabelContentAlign;
|
|
33
33
|
};
|
|
34
|
+
leftIcon: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
showLeftIcon: BooleanConstructor;
|
|
39
|
+
sameColor: BooleanConstructor;
|
|
34
40
|
vertical: BooleanConstructor;
|
|
35
41
|
ellipsis: BooleanConstructor;
|
|
36
42
|
href: StringConstructor;
|
|
@@ -76,6 +82,12 @@ export declare const Label: import("../utils").WithInstall<import("vue").DefineC
|
|
|
76
82
|
type: import("vue").PropType<import("./Label").LabelContentAlign>;
|
|
77
83
|
default: import("./Label").LabelContentAlign;
|
|
78
84
|
};
|
|
85
|
+
leftIcon: {
|
|
86
|
+
type: import("vue").PropType<string>;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
showLeftIcon: BooleanConstructor;
|
|
90
|
+
sameColor: BooleanConstructor;
|
|
79
91
|
vertical: BooleanConstructor;
|
|
80
92
|
ellipsis: BooleanConstructor;
|
|
81
93
|
href: StringConstructor;
|
|
@@ -100,11 +112,14 @@ export declare const Label: import("../utils").WithInstall<import("vue").DefineC
|
|
|
100
112
|
tags: string[];
|
|
101
113
|
media: import("./Label").LabelMedia[];
|
|
102
114
|
vertical: boolean;
|
|
115
|
+
leftIcon: string;
|
|
103
116
|
ellipsis: boolean;
|
|
104
117
|
showLabel: boolean;
|
|
105
118
|
showContent: boolean;
|
|
106
119
|
showColon: boolean | undefined;
|
|
107
120
|
contentAlign: import("./Label").LabelContentAlign;
|
|
121
|
+
showLeftIcon: boolean;
|
|
122
|
+
sameColor: boolean;
|
|
108
123
|
}>>;
|
|
109
124
|
export default Label;
|
|
110
125
|
export type { LabelLongPressEvent, LabelLongPressTarget, LabelMedia, LabelMediaType, LabelProps, LabelType, } from './Label';
|
package/lib/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/lib/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/lib/list/style/index.js
CHANGED
package/lib/list/style/less.js
CHANGED
package/lib/loading/Loading.js
CHANGED
|
@@ -22,6 +22,7 @@ __export(stdin_exports, {
|
|
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
|
24
24
|
var import_utils = require("../utils");
|
|
25
|
+
var import_icon = require("../icon");
|
|
25
26
|
const [name, bem] = (0, import_utils.createNamespace)("loading");
|
|
26
27
|
const SpinIcon = Array(12).fill(null).map((_, index) => (0, import_vue.createVNode)("i", {
|
|
27
28
|
"class": bem("line", String(index + 1))
|
|
@@ -35,31 +36,6 @@ const CircularIcon = (0, import_vue.createVNode)("svg", {
|
|
|
35
36
|
"r": "20",
|
|
36
37
|
"fill": "none"
|
|
37
38
|
}, null)]);
|
|
38
|
-
const IllustrationIcon = (0, import_vue.createVNode)("svg", {
|
|
39
|
-
"class": bem("illustration"),
|
|
40
|
-
"viewBox": "0 0 100 100",
|
|
41
|
-
"fill": "none",
|
|
42
|
-
"aria-hidden": "true"
|
|
43
|
-
}, [(0, import_vue.createVNode)("rect", {
|
|
44
|
-
"x": "18",
|
|
45
|
-
"y": "36",
|
|
46
|
-
"width": "64",
|
|
47
|
-
"height": "48",
|
|
48
|
-
"rx": "6",
|
|
49
|
-
"fill": "currentColor",
|
|
50
|
-
"opacity": "0.14"
|
|
51
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
52
|
-
"d": "M28 84V46h44v38M39 84V62h22v22M38 51h4m16 0h4M38 57h4m16 0h4",
|
|
53
|
-
"stroke": "currentColor",
|
|
54
|
-
"stroke-width": "4",
|
|
55
|
-
"stroke-linecap": "round",
|
|
56
|
-
"stroke-linejoin": "round"
|
|
57
|
-
}, null), (0, import_vue.createVNode)("path", {
|
|
58
|
-
"d": "M50 18v12m-16-4 8 8m24-8-8 8",
|
|
59
|
-
"stroke": "currentColor",
|
|
60
|
-
"stroke-width": "4",
|
|
61
|
-
"stroke-linecap": "round"
|
|
62
|
-
}, null)]);
|
|
63
39
|
const loadingProps = {
|
|
64
40
|
size: import_utils.numericProp,
|
|
65
41
|
type: (0, import_utils.makeStringProp)("circular"),
|
|
@@ -94,6 +70,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
94
70
|
}
|
|
95
71
|
};
|
|
96
72
|
return () => {
|
|
73
|
+
var _a;
|
|
97
74
|
const {
|
|
98
75
|
type,
|
|
99
76
|
vertical
|
|
@@ -108,7 +85,12 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
108
85
|
}, [(0, import_vue.createVNode)("span", {
|
|
109
86
|
"class": bem("spinner", type),
|
|
110
87
|
"style": spinnerStyle.value
|
|
111
|
-
}, [isIllustration ?
|
|
88
|
+
}, [isIllustration ? (0, import_vue.createVNode)(import_icon.Icon, {
|
|
89
|
+
"class": bem("illustration"),
|
|
90
|
+
"name": "loading-building",
|
|
91
|
+
"size": (_a = props.size) != null ? _a : 100,
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}, null) : type === "spinner" ? SpinIcon : CircularIcon]), renderText()]);
|
|
112
94
|
};
|
|
113
95
|
}
|
|
114
96
|
});
|
|
@@ -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; }
|