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/cell/Cell.js
CHANGED
|
@@ -28,42 +28,113 @@ var import_icon = require("../icon");
|
|
|
28
28
|
var import_checkbox = require("../checkbox");
|
|
29
29
|
var import_radio = require("../radio");
|
|
30
30
|
var import_badge = require("../badge");
|
|
31
|
+
var import_tag = require("../tag");
|
|
31
32
|
var import_ConfigProvider = require("../config-provider/ConfigProvider");
|
|
32
33
|
const [name, bem] = (0, import_utils.createNamespace)("cell");
|
|
33
34
|
const cellSharedProps = {
|
|
34
35
|
icon: String,
|
|
35
36
|
size: String,
|
|
37
|
+
background: String,
|
|
36
38
|
title: import_utils.numericProp,
|
|
37
39
|
value: import_utils.numericProp,
|
|
38
40
|
label: import_utils.numericProp,
|
|
41
|
+
labelClickable: Boolean,
|
|
42
|
+
labelIcon: String,
|
|
43
|
+
showLabelIcon: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: void 0
|
|
46
|
+
},
|
|
39
47
|
description: import_utils.numericProp,
|
|
48
|
+
descriptionClickable: Boolean,
|
|
49
|
+
multiLineNotes: Array,
|
|
50
|
+
showMultiLineNotes: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: void 0
|
|
53
|
+
},
|
|
54
|
+
showTitleCollapseIcon: Boolean,
|
|
55
|
+
defaultMultiLineNotesCollapsed: Boolean,
|
|
40
56
|
threeLine: Boolean,
|
|
41
57
|
labelSize: import_utils.numericProp,
|
|
42
58
|
avatar: String,
|
|
59
|
+
showAvatar: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: void 0
|
|
62
|
+
},
|
|
43
63
|
rightAvatar: String,
|
|
64
|
+
showRightAvatar: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: void 0
|
|
67
|
+
},
|
|
44
68
|
tags: Array,
|
|
69
|
+
showTags: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: void 0
|
|
72
|
+
},
|
|
73
|
+
titleTag: import_utils.numericProp,
|
|
74
|
+
showTitleTag: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: void 0
|
|
77
|
+
},
|
|
78
|
+
wrapTags: Array,
|
|
79
|
+
showWrapTags: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: void 0
|
|
82
|
+
},
|
|
45
83
|
titleIcon: String,
|
|
84
|
+
titleIconClickable: Boolean,
|
|
85
|
+
showTitleIcon: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: void 0
|
|
88
|
+
},
|
|
46
89
|
rightIcon: String,
|
|
90
|
+
showIcon: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: void 0
|
|
93
|
+
},
|
|
94
|
+
showRightIcon: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: void 0
|
|
97
|
+
},
|
|
47
98
|
note: import_utils.numericProp,
|
|
99
|
+
showNote: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: void 0
|
|
102
|
+
},
|
|
48
103
|
noteBold: Boolean,
|
|
49
104
|
noteClickable: Boolean,
|
|
50
105
|
noteTo: import_use_route.routeProps.to,
|
|
51
106
|
noteUrl: String,
|
|
52
107
|
noteReplace: Boolean,
|
|
53
108
|
badge: import_utils.numericProp,
|
|
109
|
+
showBadge: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: void 0
|
|
112
|
+
},
|
|
54
113
|
leftSelect: {
|
|
55
114
|
type: Boolean,
|
|
56
115
|
default: void 0
|
|
57
116
|
},
|
|
117
|
+
showLeftSelect: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: void 0
|
|
120
|
+
},
|
|
58
121
|
rightSelect: {
|
|
59
122
|
type: Boolean,
|
|
60
123
|
default: void 0
|
|
61
124
|
},
|
|
125
|
+
showRightSelect: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default: void 0
|
|
128
|
+
},
|
|
62
129
|
selectType: {
|
|
63
130
|
type: String,
|
|
64
131
|
default: "checkbox"
|
|
65
132
|
},
|
|
66
133
|
blueMark: Boolean,
|
|
134
|
+
showBlueMark: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: void 0
|
|
137
|
+
},
|
|
67
138
|
titleBold: Boolean,
|
|
68
139
|
center: Boolean,
|
|
69
140
|
isLink: Boolean,
|
|
@@ -85,7 +156,7 @@ const cellProps = (0, import_utils.extend)({}, cellSharedProps, import_use_route
|
|
|
85
156
|
var stdin_default = (0, import_vue.defineComponent)({
|
|
86
157
|
name,
|
|
87
158
|
props: cellProps,
|
|
88
|
-
emits: ["click", "click-note", "update:leftSelect", "update:rightSelect"],
|
|
159
|
+
emits: ["click", "click-label", "click-description", "click-note", "click-title-icon", "update:leftSelect", "update:rightSelect", "update:multiLineNotesCollapsed"],
|
|
89
160
|
setup(props, {
|
|
90
161
|
slots,
|
|
91
162
|
emit
|
|
@@ -96,6 +167,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
96
167
|
const vm = (0, import_vue.getCurrentInstance)().proxy;
|
|
97
168
|
const leftSelectState = (0, import_vue.ref)((_a = props.leftSelect) != null ? _a : false);
|
|
98
169
|
const rightSelectState = (0, import_vue.ref)((_b = props.rightSelect) != null ? _b : false);
|
|
170
|
+
const multiLineNotesCollapsed = (0, import_vue.ref)(props.defaultMultiLineNotesCollapsed);
|
|
171
|
+
const isVisible = (show, hasContent) => show != null ? show : hasContent;
|
|
99
172
|
(0, import_vue.watch)(() => props.leftSelect, (value) => {
|
|
100
173
|
if ((0, import_utils.isDef)(value)) {
|
|
101
174
|
leftSelectState.value = value;
|
|
@@ -106,7 +179,12 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
106
179
|
rightSelectState.value = value;
|
|
107
180
|
}
|
|
108
181
|
});
|
|
109
|
-
const
|
|
182
|
+
const isSelectVisible = (position) => {
|
|
183
|
+
const show = position === "left" ? props.showLeftSelect : props.showRightSelect;
|
|
184
|
+
const select = position === "left" ? props.leftSelect : props.rightSelect;
|
|
185
|
+
return isVisible(show, !!slots[`${position}-select`] || (0, import_utils.isDef)(select));
|
|
186
|
+
};
|
|
187
|
+
const hasSelect = (position) => isSelectVisible(position) && (0, import_utils.isDef)(position === "left" ? props.leftSelect : props.rightSelect);
|
|
110
188
|
const getSelectState = (position) => position === "left" ? leftSelectState.value : rightSelectState.value;
|
|
111
189
|
const updateSelectState = (position, value) => {
|
|
112
190
|
if (position === "left") {
|
|
@@ -127,32 +205,93 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
127
205
|
return false;
|
|
128
206
|
};
|
|
129
207
|
const renderLabel = () => {
|
|
208
|
+
var _a2;
|
|
130
209
|
const showLabel = slots.label || (0, import_utils.isDef)(props.label);
|
|
210
|
+
const showLabelIcon = (_a2 = props.showLabelIcon) != null ? _a2 : !!(slots["label-icon"] || props.labelIcon);
|
|
131
211
|
if (showLabel) {
|
|
132
212
|
return (0, import_vue.createVNode)("div", {
|
|
133
|
-
"class": [bem("label"
|
|
213
|
+
"class": [bem("label", {
|
|
214
|
+
clickable: props.labelClickable
|
|
215
|
+
}), props.labelClass],
|
|
134
216
|
"style": {
|
|
135
217
|
fontSize: (0, import_utils.addUnit)(props.labelSize)
|
|
218
|
+
},
|
|
219
|
+
"role": props.labelClickable ? "button" : void 0,
|
|
220
|
+
"tabindex": props.labelClickable ? 0 : void 0,
|
|
221
|
+
"onClick": (event) => {
|
|
222
|
+
if (!props.labelClickable)
|
|
223
|
+
return;
|
|
224
|
+
event.stopPropagation();
|
|
225
|
+
emit("click-label", event);
|
|
136
226
|
}
|
|
137
|
-
}, [slots
|
|
227
|
+
}, [showLabelIcon && slots["label-icon"] ? (0, import_vue.createVNode)("span", {
|
|
228
|
+
"class": bem("label-icon")
|
|
229
|
+
}, [slots["label-icon"]()]) : showLabelIcon ? (0, import_vue.createVNode)(import_icon.Icon, {
|
|
230
|
+
"name": props.labelIcon || "location-o",
|
|
231
|
+
"class": bem("label-icon"),
|
|
232
|
+
"classPrefix": props.iconPrefix
|
|
233
|
+
}, null) : null, (0, import_vue.createVNode)("span", null, [slots.label ? slots.label() : props.label])]);
|
|
138
234
|
}
|
|
139
235
|
};
|
|
140
236
|
const renderDescription = () => {
|
|
141
237
|
const showDescription = slots.description || (0, import_utils.isDef)(props.description);
|
|
142
238
|
if (showDescription) {
|
|
143
239
|
return (0, import_vue.createVNode)("div", {
|
|
144
|
-
"class": bem("description"
|
|
240
|
+
"class": bem("description", {
|
|
241
|
+
clickable: props.descriptionClickable
|
|
242
|
+
}),
|
|
243
|
+
"role": props.descriptionClickable ? "button" : void 0,
|
|
244
|
+
"tabindex": props.descriptionClickable ? 0 : void 0,
|
|
245
|
+
"onClick": (event) => {
|
|
246
|
+
if (!props.descriptionClickable)
|
|
247
|
+
return;
|
|
248
|
+
event.stopPropagation();
|
|
249
|
+
emit("click-description", event);
|
|
250
|
+
}
|
|
145
251
|
}, [slots.description ? slots.description() : props.description]);
|
|
146
252
|
}
|
|
147
253
|
};
|
|
254
|
+
const renderMultiLineNotes = () => {
|
|
255
|
+
var _a2, _b2;
|
|
256
|
+
if (!isVisible(props.showMultiLineNotes, !!slots["multi-line-notes"] || !!((_a2 = props.multiLineNotes) == null ? void 0 : _a2.length))) {
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
if (slots["multi-line-notes"]) {
|
|
260
|
+
return (0, import_vue.createVNode)("div", {
|
|
261
|
+
"class": bem("multi-line-notes")
|
|
262
|
+
}, [slots["multi-line-notes"]()]);
|
|
263
|
+
}
|
|
264
|
+
if ((_b2 = props.multiLineNotes) == null ? void 0 : _b2.length) {
|
|
265
|
+
return (0, import_vue.createVNode)("div", {
|
|
266
|
+
"class": bem("multi-line-notes")
|
|
267
|
+
}, [props.multiLineNotes.map((note, index) => (0, import_vue.createVNode)("div", {
|
|
268
|
+
"key": `${note}-${index}`,
|
|
269
|
+
"class": bem("multi-line-note")
|
|
270
|
+
}, [note]))]);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
148
273
|
const renderTitle = () => {
|
|
149
274
|
if (slots.title || (0, import_utils.isDef)(props.title)) {
|
|
150
275
|
return (0, import_vue.createVNode)("div", {
|
|
151
276
|
"class": [bem("title"), props.titleClass],
|
|
152
277
|
"style": props.titleStyle
|
|
153
278
|
}, [(0, import_vue.createVNode)("div", {
|
|
154
|
-
"class": bem("title-row"
|
|
155
|
-
|
|
279
|
+
"class": bem("title-row", {
|
|
280
|
+
collapsible: props.showTitleCollapseIcon
|
|
281
|
+
}),
|
|
282
|
+
"onClick": (event) => {
|
|
283
|
+
if (props.showTitleCollapseIcon) {
|
|
284
|
+
event.stopPropagation();
|
|
285
|
+
multiLineNotesCollapsed.value = !multiLineNotesCollapsed.value;
|
|
286
|
+
emit("update:multiLineNotesCollapsed", multiLineNotesCollapsed.value);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}, [props.showTitleCollapseIcon && (0, import_vue.createVNode)(import_icon.Icon, {
|
|
290
|
+
"name": "trangle-down",
|
|
291
|
+
"class": bem("title-collapse-icon", {
|
|
292
|
+
collapsed: multiLineNotesCollapsed.value
|
|
293
|
+
})
|
|
294
|
+
}, null), slots.title ? slots.title() : (0, import_vue.createVNode)("span", null, [props.title]), renderTitleTag(), renderTags(), renderTitleIcon()]), renderWrapTags(), renderLabel(), props.threeLine && renderDescription(), !multiLineNotesCollapsed.value && renderMultiLineNotes()]);
|
|
156
295
|
}
|
|
157
296
|
};
|
|
158
297
|
const renderValue = () => {
|
|
@@ -168,6 +307,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
168
307
|
}
|
|
169
308
|
};
|
|
170
309
|
const renderLeftIcon = () => {
|
|
310
|
+
if (!isVisible(props.showIcon, !!slots.icon || !!props.icon)) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
171
313
|
if (slots.icon) {
|
|
172
314
|
return slots.icon();
|
|
173
315
|
}
|
|
@@ -183,6 +325,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
183
325
|
var _a2, _b2;
|
|
184
326
|
const slot = slots[`${position}-select`];
|
|
185
327
|
const selected = getSelectState(position);
|
|
328
|
+
if (!isSelectVisible(position)) {
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
186
331
|
if (slot) {
|
|
187
332
|
return (0, import_vue.createVNode)("div", {
|
|
188
333
|
"class": bem(`${position}-select`)
|
|
@@ -210,6 +355,10 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
210
355
|
const renderAvatar = (position) => {
|
|
211
356
|
const slot = slots[`${position}-avatar`];
|
|
212
357
|
const avatar = position === "left" ? props.avatar : props.rightAvatar;
|
|
358
|
+
const show = position === "left" ? props.showAvatar : props.showRightAvatar;
|
|
359
|
+
if (!isVisible(show, !!slot || !!avatar)) {
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
213
362
|
if (slot) {
|
|
214
363
|
return (0, import_vue.createVNode)("div", {
|
|
215
364
|
"class": bem(`${position}-avatar`)
|
|
@@ -224,6 +373,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
224
373
|
}
|
|
225
374
|
};
|
|
226
375
|
const renderBlueMark = () => {
|
|
376
|
+
if (!isVisible(props.showBlueMark, !!slots["blue-mark"] || props.blueMark)) {
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
227
379
|
if (slots["blue-mark"]) {
|
|
228
380
|
return (0, import_vue.createVNode)("div", {
|
|
229
381
|
"class": bem("blue-mark")
|
|
@@ -236,13 +388,16 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
236
388
|
}
|
|
237
389
|
};
|
|
238
390
|
const renderTags = () => {
|
|
239
|
-
var _a2;
|
|
391
|
+
var _a2, _b2;
|
|
392
|
+
if (!isVisible(props.showTags, !!slots.tags || !!((_a2 = props.tags) == null ? void 0 : _a2.length))) {
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
240
395
|
if (slots.tags) {
|
|
241
396
|
return (0, import_vue.createVNode)("div", {
|
|
242
397
|
"class": bem("tags")
|
|
243
398
|
}, [slots.tags()]);
|
|
244
399
|
}
|
|
245
|
-
if ((
|
|
400
|
+
if ((_b2 = props.tags) == null ? void 0 : _b2.length) {
|
|
246
401
|
return (0, import_vue.createVNode)("div", {
|
|
247
402
|
"class": bem("tags")
|
|
248
403
|
}, [props.tags.map((tag, index) => (0, import_vue.createVNode)("span", {
|
|
@@ -251,19 +406,71 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
251
406
|
}, [tag]))]);
|
|
252
407
|
}
|
|
253
408
|
};
|
|
254
|
-
const
|
|
255
|
-
if (slots["title-
|
|
409
|
+
const renderTitleTag = () => {
|
|
410
|
+
if (!isVisible(props.showTitleTag, !!slots["title-tag"] || (0, import_utils.isDef)(props.titleTag))) {
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
if (slots["title-tag"]) {
|
|
256
414
|
return (0, import_vue.createVNode)("div", {
|
|
257
|
-
"class": bem("title-
|
|
258
|
-
}, [slots["title-
|
|
415
|
+
"class": bem("title-tag")
|
|
416
|
+
}, [slots["title-tag"]()]);
|
|
259
417
|
}
|
|
260
|
-
if (props.
|
|
261
|
-
return (0, import_vue.createVNode)(
|
|
262
|
-
"
|
|
263
|
-
|
|
264
|
-
|
|
418
|
+
if ((0, import_utils.isDef)(props.titleTag)) {
|
|
419
|
+
return (0, import_vue.createVNode)("div", {
|
|
420
|
+
"class": bem("title-tag")
|
|
421
|
+
}, [(0, import_vue.createVNode)(import_tag.Tag, {
|
|
422
|
+
"size": "small"
|
|
423
|
+
}, {
|
|
424
|
+
default: () => [props.titleTag]
|
|
425
|
+
})]);
|
|
265
426
|
}
|
|
266
427
|
};
|
|
428
|
+
const renderWrapTags = () => {
|
|
429
|
+
var _a2, _b2;
|
|
430
|
+
if (!isVisible(props.showWrapTags, !!slots["wrap-tags"] || !!((_a2 = props.wrapTags) == null ? void 0 : _a2.length))) {
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
if (slots["wrap-tags"]) {
|
|
434
|
+
return (0, import_vue.createVNode)("div", {
|
|
435
|
+
"class": bem("wrap-tags")
|
|
436
|
+
}, [slots["wrap-tags"]()]);
|
|
437
|
+
}
|
|
438
|
+
if ((_b2 = props.wrapTags) == null ? void 0 : _b2.length) {
|
|
439
|
+
return (0, import_vue.createVNode)("div", {
|
|
440
|
+
"class": bem("wrap-tags")
|
|
441
|
+
}, [props.wrapTags.map((tag, index) => (0, import_vue.createVNode)(import_tag.Tag, {
|
|
442
|
+
"key": `${tag}-${index}`
|
|
443
|
+
}, {
|
|
444
|
+
default: () => [tag]
|
|
445
|
+
}))]);
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
const renderTitleIcon = () => {
|
|
449
|
+
if (!isVisible(props.showTitleIcon, !!slots["title-icon"] || !!props.titleIcon)) {
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
const icon = slots["title-icon"] ? slots["title-icon"]() : props.titleIcon ? (0, import_vue.createVNode)(import_icon.Icon, {
|
|
453
|
+
"name": props.titleIcon
|
|
454
|
+
}, null) : void 0;
|
|
455
|
+
if (!icon)
|
|
456
|
+
return;
|
|
457
|
+
if (props.titleIconClickable) {
|
|
458
|
+
return (0, import_vue.createVNode)("button", {
|
|
459
|
+
"type": "button",
|
|
460
|
+
"class": bem("title-icon", {
|
|
461
|
+
clickable: true
|
|
462
|
+
}),
|
|
463
|
+
"aria-label": `\u64CD\u4F5C${props.title || ""}`,
|
|
464
|
+
"onClick": (event) => {
|
|
465
|
+
event.stopPropagation();
|
|
466
|
+
emit("click-title-icon", event);
|
|
467
|
+
}
|
|
468
|
+
}, [icon]);
|
|
469
|
+
}
|
|
470
|
+
return (0, import_vue.createVNode)("div", {
|
|
471
|
+
"class": bem("title-icon")
|
|
472
|
+
}, [icon]);
|
|
473
|
+
};
|
|
267
474
|
const renderNoteContent = (content) => {
|
|
268
475
|
const clickable = props.noteClickable || props.noteTo || props.noteUrl;
|
|
269
476
|
const classes = bem("note", {
|
|
@@ -291,6 +498,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
291
498
|
}, [content]);
|
|
292
499
|
};
|
|
293
500
|
const renderNote = () => {
|
|
501
|
+
if (!isVisible(props.showNote, !!slots.note || (0, import_utils.isDef)(props.note))) {
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
294
504
|
if (slots.note) {
|
|
295
505
|
return renderNoteContent(slots.note());
|
|
296
506
|
}
|
|
@@ -299,6 +509,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
299
509
|
}
|
|
300
510
|
};
|
|
301
511
|
const renderBadge = () => {
|
|
512
|
+
if (!isVisible(props.showBadge, !!slots.badge || (0, import_utils.isDef)(props.badge))) {
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
302
515
|
if (slots.badge) {
|
|
303
516
|
return (0, import_vue.createVNode)("div", {
|
|
304
517
|
"class": bem("badge")
|
|
@@ -314,6 +527,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
314
527
|
}
|
|
315
528
|
};
|
|
316
529
|
const renderRightIcon = () => {
|
|
530
|
+
if (!isVisible(props.showRightIcon, !!slots["right-icon"] || !!props.rightIcon || props.isLink)) {
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
317
533
|
if (slots["right-icon"]) {
|
|
318
534
|
return slots["right-icon"]();
|
|
319
535
|
}
|
|
@@ -344,7 +560,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
344
560
|
threeLine
|
|
345
561
|
} = props;
|
|
346
562
|
const clickable = (_a2 = props.clickable) != null ? _a2 : isLink || rightIcon === "arrow" || hasSelect("left") || hasSelect("right");
|
|
347
|
-
const hasBadge = !!slots.badge || (0, import_utils.isDef)(props.badge);
|
|
563
|
+
const hasBadge = isVisible(props.showBadge, !!slots.badge || (0, import_utils.isDef)(props.badge));
|
|
348
564
|
const cellSize = (_b2 = size != null ? size : config == null ? void 0 : config.cellSize) != null ? _b2 : "normal";
|
|
349
565
|
const classes = {
|
|
350
566
|
center: center || hasBadge,
|
|
@@ -365,6 +581,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
365
581
|
};
|
|
366
582
|
return (0, import_vue.createVNode)("div", {
|
|
367
583
|
"class": [bem(classes), props.errorBorder ? "van-cell-error-border" : ""],
|
|
584
|
+
"style": props.background ? {
|
|
585
|
+
background: props.background
|
|
586
|
+
} : void 0,
|
|
368
587
|
"role": clickable ? "button" : void 0,
|
|
369
588
|
"tabindex": clickable ? 0 : void 0,
|
|
370
589
|
"onClick": onClick
|
package/lib/cell/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background-color: var(--van-background-color-light);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: 2px;--van-cell-title-value-gap: var(--van-padding-xs);--van-cell-description-color: var(--van-text-color-2);--van-cell-description-font-size: var(--van-font-size-sm);--van-cell-description-line-height: var(--van-line-height-sm);--van-cell-description-margin-top: 2px;--van-cell-value-color: var(--van-text-color-2);--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-description-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: 16px;--van-cell-blue-mark-width: 2px}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background-color)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell-error-border:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-field-input-error-text-color);transform:scaleY(.5)}.van-cell-error-border:last-child:after{display:inline-block}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__description{margin-top:var(--van-cell-description-margin-top);color:var(--van-cell-description-color);font-size:var(--van-cell-description-font-size);line-height:var(--van-cell-description-line-height)}.van-cell__title{flex:1;min-width:0}.van-cell__title-row{display:flex;align-items:center;min-width:0}.van-cell__value{flex:none;min-width:0;margin-left:var(--van-cell-title-value-gap);position:relative;overflow:hidden;color:var(--van-cell-value-color);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__value--alone{margin-left:0;color:var(--van-text-color);text-align:left}.van-cell__left-icon,.van-cell__right-icon,.van-cell__left-select,.van-cell__right-select,.van-cell__title-icon{flex:none;height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height);display:flex!important;align-items:center;justify-content:center}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell__left-select{display:flex;flex:none;align-items:center;align-self:center;margin-right:var(--van-padding-base)}.van-cell__right-select{display:flex;flex:none;align-items:center;align-self:center;margin-left:var(--van-padding-base)}.van-cell__left-avatar,.van-cell__right-avatar{flex:none;width:var(--van-cell-line-height);height:var(--van-cell-line-height);-o-object-fit:cover;object-fit:cover;border:var(--van-border-width-base) solid var(--van-gray-1);border-radius:var(--van-border-radius-md)}.van-cell__left-avatar{margin-right:var(--van-padding-base)}.van-cell__right-avatar{margin-left:var(--van-padding-base)}.van-cell__blue-mark{flex:none;align-self:center;width:var(--van-cell-blue-mark-width);height:var(--van-font-size-sm);margin-right:var(--van-padding-base);background:var(--van-primary-color)}.van-cell__tags{display:flex;flex:none;gap:var(--van-padding-base);margin-left:var(--van-padding-base)}.van-cell__tag{padding:0 var(--van-padding-base);color:var(--van-text-color);font-size:var(--van-font-size-sm);line-height:var(--van-line-height-sm);background:var(--van-gray-2);border-radius:var(--van-border-radius-sm)}.van-cell__title-icon{margin-left:var(--van-padding-base);color:var(--van-text-color-2)}.van-cell__note{align-self:flex-start;flex:none;margin-left:var(--van-padding-base);color:var(--van-text-color-2);font-size:var(--van-font-size-md);line-height:var(--van-cell-line-height);white-space:nowrap}.van-cell__note--bold{font-weight:var(--van-font-weight-bold)}.van-cell__note--clickable{padding:0;color:var(--van-primary-color);font-family:inherit;font-size:inherit;line-height:inherit;background:transparent;border:0;cursor:pointer}.van-cell__badge{display:flex;flex:none;align-items:center;align-self:center;margin-left:var(--van-padding-base)}.van-cell__badge>.van-badge{position:static;transform:none}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size);margin-top:var(--van-padding-base)}.van-cell--large .van-cell__description{font-size:var(--van-cell-large-description-font-size);margin-top:var(--van-padding-base)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}.van-cell--title-bold .van-cell__title{font-weight:var(--van-font-weight-bold)}
|
|
1
|
+
:root{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background-color: var(--van-background-color-light);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: 2px;--van-cell-title-value-gap: var(--van-padding-xs);--van-cell-description-color: var(--van-text-color-2);--van-cell-description-font-size: var(--van-font-size-sm);--van-cell-description-line-height: var(--van-line-height-sm);--van-cell-description-margin-top: 2px;--van-cell-value-color: var(--van-text-color-2);--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-description-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: 16px;--van-cell-blue-mark-width: 2px}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background-color)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell-error-border:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-field-input-error-text-color);transform:scaleY(.5)}.van-cell-error-border:last-child:after{display:inline-block}.van-cell__label{display:flex;align-items:center;margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__label--clickable{color:var(--van-primary-color);font-weight:var(--van-font-weight-bold);cursor:pointer}.van-cell__label-icon{flex:none;width:12px;height:12px;margin-right:2px;color:inherit;font-size:12px;line-height:12px}.van-cell__description{margin-top:var(--van-cell-description-margin-top);color:var(--van-cell-description-color);font-size:var(--van-cell-description-font-size);line-height:var(--van-cell-description-line-height)}.van-cell__description--clickable{color:var(--van-primary-color);cursor:pointer}.van-cell__multi-line-notes{margin-top:var(--van-padding-base);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__multi-line-note+.van-cell__multi-line-note{margin-top:2px}.van-cell__title{flex:1;min-width:0}.van-cell__title-row{display:flex;align-items:center;min-width:0}.van-cell__title-row--collapsible{cursor:pointer}.van-cell__title-collapse-icon{flex:none;width:var(--van-cell-icon-size);height:var(--van-cell-line-height);margin-right:var(--van-padding-base);color:var(--van-text-color-2);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height);transition:transform var(--van-animation-duration-fast)}.van-cell__title-collapse-icon--collapsed{transform:rotate(-90deg)}.van-cell__value{flex:none;min-width:0;margin-left:var(--van-cell-title-value-gap);position:relative;overflow:hidden;color:var(--van-cell-value-color);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__value--alone{margin-left:0;color:var(--van-text-color);text-align:left}.van-cell__left-icon,.van-cell__right-icon,.van-cell__left-select,.van-cell__right-select,.van-cell__title-icon{flex:none;height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height);display:flex!important;align-items:center;justify-content:center}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell__left-select{display:flex;flex:none;align-items:center;align-self:center;margin-right:var(--van-padding-base)}.van-cell__right-select{display:flex;flex:none;align-items:center;align-self:center;margin-left:var(--van-padding-base)}.van-cell__left-avatar,.van-cell__right-avatar{flex:none;width:var(--van-cell-line-height);height:var(--van-cell-line-height);-o-object-fit:cover;object-fit:cover;border:var(--van-border-width-base) solid var(--van-gray-1);border-radius:var(--van-border-radius-md)}.van-cell__left-avatar{margin-right:var(--van-padding-base)}.van-cell__right-avatar{margin-left:var(--van-padding-base)}.van-cell__blue-mark{flex:none;align-self:center;width:var(--van-cell-blue-mark-width);height:var(--van-font-size-sm);margin-right:var(--van-padding-base);background:var(--van-primary-color)}.van-cell__tags{display:flex;flex:none;gap:var(--van-padding-base);margin-left:var(--van-padding-base)}.van-cell__tag{padding:0 var(--van-padding-base);color:var(--van-text-color);font-size:var(--van-font-size-sm);line-height:var(--van-line-height-sm);background:var(--van-gray-2);border-radius:var(--van-border-radius-sm)}.van-cell__wrap-tags{display:flex;flex-wrap:wrap;gap:var(--van-padding-base);margin-top:var(--van-padding-base)}.van-cell__title-icon{margin-left:var(--van-padding-base);color:var(--van-text-color-2)}.van-cell__title-icon--clickable{display:inline-flex;align-items:center;padding:0;color:inherit;line-height:inherit;background:transparent;border:0;cursor:pointer}.van-cell__title-tag{display:flex;flex:none;margin-left:var(--van-padding-base)}.van-cell__note{align-self:flex-start;flex:none;margin-left:var(--van-padding-base);color:var(--van-text-color-2);font-size:var(--van-font-size-md);line-height:var(--van-cell-line-height);white-space:nowrap}.van-cell__note--bold{font-weight:var(--van-font-weight-bold)}.van-cell__note--clickable{padding:0;color:var(--van-primary-color);font-family:inherit;font-size:inherit;line-height:inherit;background:transparent;border:0;cursor:pointer}.van-cell__badge{display:flex;flex:none;align-items:center;align-self:center;margin-left:var(--van-padding-base)}.van-cell__badge>.van-badge{position:static;transform:none}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size);margin-top:var(--van-padding-base)}.van-cell--large .van-cell__description{font-size:var(--van-cell-large-description-font-size);margin-top:var(--van-padding-base)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}.van-cell--title-bold .van-cell__title{font-weight:var(--van-font-weight-bold)}
|