persagy-vant 0.0.38 → 0.0.40
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/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 +257 -28
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +165 -1
- package/es/cell/index.less +101 -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 +248 -1
- package/es/field/Field.mjs +21 -2
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +173 -1
- package/es/field/index.less +15 -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/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 +1 -1
- package/es/info-card/index.d.ts +1 -1
- package/es/label/index.css +1 -1
- package/es/label/index.less +4 -0
- package/es/label/var.less +1 -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.d.ts +18 -0
- package/es/material-add/index.css +1 -1
- package/es/material-add/index.less +1 -1
- package/es/material-add/style/index.mjs +1 -1
- package/es/material-add/style/less.mjs +1 -1
- package/es/material-display-bar/MaterialDisplayBar.d.ts +4 -4
- package/es/material-display-bar/index.d.ts +12 -12
- 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/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/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/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/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/style/index.mjs +1 -0
- package/es/tree-select/style/less.mjs +1 -0
- package/es/uploader/Uploader.d.ts +4 -0
- package/es/uploader/Uploader.mjs +3 -2
- package/es/uploader/index.d.ts +3 -0
- package/es/video-preview/VideoPreview.d.ts +2 -2
- package/es/video-preview/function-call.d.ts +2 -2
- 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/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 +257 -28
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +165 -1
- package/lib/cell/index.less +101 -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 +248 -1
- package/lib/field/Field.js +21 -2
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +173 -1
- package/lib/field/index.less +15 -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/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 +1 -1
- package/lib/info-card/index.d.ts +1 -1
- package/lib/label/index.css +1 -1
- package/lib/label/index.less +4 -0
- package/lib/label/var.less +1 -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.d.ts +18 -0
- package/lib/material-add/index.css +1 -1
- package/lib/material-add/index.less +1 -1
- package/lib/material-add/style/index.js +1 -1
- package/lib/material-add/style/less.js +1 -1
- package/lib/material-display-bar/MaterialDisplayBar.d.ts +4 -4
- package/lib/material-display-bar/index.d.ts +12 -12
- 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/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/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/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/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/style/index.js +1 -0
- package/lib/tree-select/style/less.js +1 -0
- package/lib/uploader/Uploader.d.ts +4 -0
- package/lib/uploader/Uploader.js +2 -1
- package/lib/uploader/index.d.ts +3 -0
- package/lib/vant.cjs.js +1268 -987
- package/lib/vant.es.js +1269 -988
- package/lib/vant.js +5214 -4933
- 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-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 +1 -1
- package/skills/use-persagy-vant/SKILL.md +8 -7
- package/skills/use-persagy-vant/references/component-catalog.md +3 -3
- package/skills/use-persagy-vant/references/component-variant-selection.md +39 -0
- package/skills/use-persagy-vant/references/element-component-matching.md +88 -0
- package/skills/use-persagy-vant/references/public-style-system.md +105 -0
package/es/cell/Cell.mjs
CHANGED
|
@@ -5,42 +5,113 @@ import { Icon } from "../icon/index.mjs";
|
|
|
5
5
|
import { Checkbox } from "../checkbox/index.mjs";
|
|
6
6
|
import { Radio } from "../radio/index.mjs";
|
|
7
7
|
import { Badge } from "../badge/index.mjs";
|
|
8
|
+
import { Tag } from "../tag/index.mjs";
|
|
8
9
|
import { CONFIG_PROVIDER_KEY } from "../config-provider/ConfigProvider.mjs";
|
|
9
10
|
const [name, bem] = createNamespace("cell");
|
|
10
11
|
const cellSharedProps = {
|
|
11
12
|
icon: String,
|
|
12
13
|
size: String,
|
|
14
|
+
background: String,
|
|
13
15
|
title: numericProp,
|
|
14
16
|
value: numericProp,
|
|
15
17
|
label: numericProp,
|
|
18
|
+
labelClickable: Boolean,
|
|
19
|
+
labelIcon: String,
|
|
20
|
+
showLabelIcon: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
16
24
|
description: numericProp,
|
|
25
|
+
descriptionClickable: Boolean,
|
|
26
|
+
multiLineNotes: Array,
|
|
27
|
+
showMultiLineNotes: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
showTitleCollapseIcon: Boolean,
|
|
32
|
+
defaultMultiLineNotesCollapsed: Boolean,
|
|
17
33
|
threeLine: Boolean,
|
|
18
34
|
labelSize: numericProp,
|
|
19
35
|
avatar: String,
|
|
36
|
+
showAvatar: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: void 0
|
|
39
|
+
},
|
|
20
40
|
rightAvatar: String,
|
|
41
|
+
showRightAvatar: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: void 0
|
|
44
|
+
},
|
|
21
45
|
tags: Array,
|
|
46
|
+
showTags: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: void 0
|
|
49
|
+
},
|
|
50
|
+
titleTag: numericProp,
|
|
51
|
+
showTitleTag: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: void 0
|
|
54
|
+
},
|
|
55
|
+
wrapTags: Array,
|
|
56
|
+
showWrapTags: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: void 0
|
|
59
|
+
},
|
|
22
60
|
titleIcon: String,
|
|
61
|
+
titleIconClickable: Boolean,
|
|
62
|
+
showTitleIcon: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: void 0
|
|
65
|
+
},
|
|
23
66
|
rightIcon: String,
|
|
67
|
+
showIcon: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: void 0
|
|
70
|
+
},
|
|
71
|
+
showRightIcon: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: void 0
|
|
74
|
+
},
|
|
24
75
|
note: numericProp,
|
|
76
|
+
showNote: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: void 0
|
|
79
|
+
},
|
|
25
80
|
noteBold: Boolean,
|
|
26
81
|
noteClickable: Boolean,
|
|
27
82
|
noteTo: routeProps.to,
|
|
28
83
|
noteUrl: String,
|
|
29
84
|
noteReplace: Boolean,
|
|
30
85
|
badge: numericProp,
|
|
86
|
+
showBadge: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: void 0
|
|
89
|
+
},
|
|
31
90
|
leftSelect: {
|
|
32
91
|
type: Boolean,
|
|
33
92
|
default: void 0
|
|
34
93
|
},
|
|
94
|
+
showLeftSelect: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: void 0
|
|
97
|
+
},
|
|
35
98
|
rightSelect: {
|
|
36
99
|
type: Boolean,
|
|
37
100
|
default: void 0
|
|
38
101
|
},
|
|
102
|
+
showRightSelect: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: void 0
|
|
105
|
+
},
|
|
39
106
|
selectType: {
|
|
40
107
|
type: String,
|
|
41
108
|
default: "checkbox"
|
|
42
109
|
},
|
|
43
110
|
blueMark: Boolean,
|
|
111
|
+
showBlueMark: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: void 0
|
|
114
|
+
},
|
|
44
115
|
titleBold: Boolean,
|
|
45
116
|
center: Boolean,
|
|
46
117
|
isLink: Boolean,
|
|
@@ -62,7 +133,7 @@ const cellProps = extend({}, cellSharedProps, routeProps);
|
|
|
62
133
|
var stdin_default = defineComponent({
|
|
63
134
|
name,
|
|
64
135
|
props: cellProps,
|
|
65
|
-
emits: ["click", "click-note", "update:leftSelect", "update:rightSelect"],
|
|
136
|
+
emits: ["click", "click-label", "click-description", "click-note", "click-title-icon", "update:leftSelect", "update:rightSelect", "update:multiLineNotesCollapsed"],
|
|
66
137
|
setup(props, {
|
|
67
138
|
slots,
|
|
68
139
|
emit
|
|
@@ -73,6 +144,8 @@ var stdin_default = defineComponent({
|
|
|
73
144
|
const vm = getCurrentInstance().proxy;
|
|
74
145
|
const leftSelectState = ref((_a = props.leftSelect) != null ? _a : false);
|
|
75
146
|
const rightSelectState = ref((_b = props.rightSelect) != null ? _b : false);
|
|
147
|
+
const multiLineNotesCollapsed = ref(props.defaultMultiLineNotesCollapsed);
|
|
148
|
+
const isVisible = (show, hasContent) => show != null ? show : hasContent;
|
|
76
149
|
watch(() => props.leftSelect, (value) => {
|
|
77
150
|
if (isDef(value)) {
|
|
78
151
|
leftSelectState.value = value;
|
|
@@ -83,7 +156,12 @@ var stdin_default = defineComponent({
|
|
|
83
156
|
rightSelectState.value = value;
|
|
84
157
|
}
|
|
85
158
|
});
|
|
86
|
-
const
|
|
159
|
+
const isSelectVisible = (position) => {
|
|
160
|
+
const show = position === "left" ? props.showLeftSelect : props.showRightSelect;
|
|
161
|
+
const select = position === "left" ? props.leftSelect : props.rightSelect;
|
|
162
|
+
return isVisible(show, !!slots[`${position}-select`] || isDef(select));
|
|
163
|
+
};
|
|
164
|
+
const hasSelect = (position) => isSelectVisible(position) && isDef(position === "left" ? props.leftSelect : props.rightSelect);
|
|
87
165
|
const getSelectState = (position) => position === "left" ? leftSelectState.value : rightSelectState.value;
|
|
88
166
|
const updateSelectState = (position, value) => {
|
|
89
167
|
if (position === "left") {
|
|
@@ -104,32 +182,95 @@ var stdin_default = defineComponent({
|
|
|
104
182
|
return false;
|
|
105
183
|
};
|
|
106
184
|
const renderLabel = () => {
|
|
185
|
+
var _a2;
|
|
107
186
|
const showLabel = slots.label || isDef(props.label);
|
|
187
|
+
const showLabelIcon = (_a2 = props.showLabelIcon) != null ? _a2 : !!(slots["label-icon"] || props.labelIcon);
|
|
108
188
|
if (showLabel) {
|
|
109
189
|
return _createVNode("div", {
|
|
110
|
-
"class": [bem("label"
|
|
190
|
+
"class": [bem("label", {
|
|
191
|
+
clickable: props.labelClickable
|
|
192
|
+
}), props.labelClass],
|
|
111
193
|
"style": {
|
|
112
194
|
fontSize: addUnit(props.labelSize)
|
|
195
|
+
},
|
|
196
|
+
"role": props.labelClickable ? "button" : void 0,
|
|
197
|
+
"tabindex": props.labelClickable ? 0 : void 0,
|
|
198
|
+
"onClick": (event) => {
|
|
199
|
+
if (!props.labelClickable)
|
|
200
|
+
return;
|
|
201
|
+
event.stopPropagation();
|
|
202
|
+
emit("click-label", event);
|
|
113
203
|
}
|
|
114
|
-
}, [slots
|
|
204
|
+
}, [showLabelIcon && slots["label-icon"] ? _createVNode("span", {
|
|
205
|
+
"class": bem("label-icon")
|
|
206
|
+
}, [slots["label-icon"]()]) : showLabelIcon ? _createVNode(Icon, {
|
|
207
|
+
"name": props.labelIcon || "location-o",
|
|
208
|
+
"class": bem("label-icon"),
|
|
209
|
+
"classPrefix": props.iconPrefix
|
|
210
|
+
}, null) : null, _createVNode("span", null, [slots.label ? slots.label() : props.label])]);
|
|
115
211
|
}
|
|
116
212
|
};
|
|
117
213
|
const renderDescription = () => {
|
|
118
214
|
const showDescription = slots.description || isDef(props.description);
|
|
119
215
|
if (showDescription) {
|
|
120
216
|
return _createVNode("div", {
|
|
121
|
-
"class": bem("description"
|
|
217
|
+
"class": bem("description", {
|
|
218
|
+
clickable: props.descriptionClickable
|
|
219
|
+
}),
|
|
220
|
+
"role": props.descriptionClickable ? "button" : void 0,
|
|
221
|
+
"tabindex": props.descriptionClickable ? 0 : void 0,
|
|
222
|
+
"onClick": (event) => {
|
|
223
|
+
if (!props.descriptionClickable)
|
|
224
|
+
return;
|
|
225
|
+
event.stopPropagation();
|
|
226
|
+
emit("click-description", event);
|
|
227
|
+
}
|
|
122
228
|
}, [slots.description ? slots.description() : props.description]);
|
|
123
229
|
}
|
|
124
230
|
};
|
|
231
|
+
const renderMultiLineNotes = () => {
|
|
232
|
+
var _a2, _b2;
|
|
233
|
+
if (!isVisible(props.showMultiLineNotes, !!slots["multi-line-notes"] || !!((_a2 = props.multiLineNotes) == null ? void 0 : _a2.length))) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
if (slots["multi-line-notes"]) {
|
|
237
|
+
return _createVNode("div", {
|
|
238
|
+
"class": bem("multi-line-notes")
|
|
239
|
+
}, [slots["multi-line-notes"]()]);
|
|
240
|
+
}
|
|
241
|
+
if ((_b2 = props.multiLineNotes) == null ? void 0 : _b2.length) {
|
|
242
|
+
return _createVNode("div", {
|
|
243
|
+
"class": bem("multi-line-notes")
|
|
244
|
+
}, [props.multiLineNotes.map((note, index) => _createVNode("div", {
|
|
245
|
+
"key": `${note}-${index}`,
|
|
246
|
+
"class": bem("multi-line-note")
|
|
247
|
+
}, [note]))]);
|
|
248
|
+
}
|
|
249
|
+
};
|
|
125
250
|
const renderTitle = () => {
|
|
126
251
|
if (slots.title || isDef(props.title)) {
|
|
127
252
|
return _createVNode("div", {
|
|
128
253
|
"class": [bem("title"), props.titleClass],
|
|
129
254
|
"style": props.titleStyle
|
|
130
255
|
}, [_createVNode("div", {
|
|
131
|
-
"class": bem("title-row"
|
|
132
|
-
|
|
256
|
+
"class": bem("title-row", {
|
|
257
|
+
collapsible: props.showTitleCollapseIcon
|
|
258
|
+
}),
|
|
259
|
+
"onClick": (event) => {
|
|
260
|
+
if (props.showTitleCollapseIcon) {
|
|
261
|
+
event.stopPropagation();
|
|
262
|
+
multiLineNotesCollapsed.value = !multiLineNotesCollapsed.value;
|
|
263
|
+
emit("update:multiLineNotesCollapsed", multiLineNotesCollapsed.value);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}, [props.showTitleCollapseIcon && _createVNode("div", {
|
|
267
|
+
"class": bem("title-collapse-action")
|
|
268
|
+
}, [_createVNode(Icon, {
|
|
269
|
+
"name": "trangle-down",
|
|
270
|
+
"class": bem("title-collapse-icon", {
|
|
271
|
+
collapsed: multiLineNotesCollapsed.value
|
|
272
|
+
})
|
|
273
|
+
}, null)]), slots.title ? slots.title() : _createVNode("span", null, [props.title]), renderTitleTag(), renderTags(), renderTitleIcon()]), renderWrapTags(), renderLabel(), props.threeLine && renderDescription(), !multiLineNotesCollapsed.value && renderMultiLineNotes()]);
|
|
133
274
|
}
|
|
134
275
|
};
|
|
135
276
|
const renderValue = () => {
|
|
@@ -145,6 +286,9 @@ var stdin_default = defineComponent({
|
|
|
145
286
|
}
|
|
146
287
|
};
|
|
147
288
|
const renderLeftIcon = () => {
|
|
289
|
+
if (!isVisible(props.showIcon, !!slots.icon || !!props.icon)) {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
148
292
|
if (slots.icon) {
|
|
149
293
|
return slots.icon();
|
|
150
294
|
}
|
|
@@ -160,6 +304,9 @@ var stdin_default = defineComponent({
|
|
|
160
304
|
var _a2, _b2;
|
|
161
305
|
const slot = slots[`${position}-select`];
|
|
162
306
|
const selected = getSelectState(position);
|
|
307
|
+
if (!isSelectVisible(position)) {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
163
310
|
if (slot) {
|
|
164
311
|
return _createVNode("div", {
|
|
165
312
|
"class": bem(`${position}-select`)
|
|
@@ -187,6 +334,10 @@ var stdin_default = defineComponent({
|
|
|
187
334
|
const renderAvatar = (position) => {
|
|
188
335
|
const slot = slots[`${position}-avatar`];
|
|
189
336
|
const avatar = position === "left" ? props.avatar : props.rightAvatar;
|
|
337
|
+
const show = position === "left" ? props.showAvatar : props.showRightAvatar;
|
|
338
|
+
if (!isVisible(show, !!slot || !!avatar)) {
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
190
341
|
if (slot) {
|
|
191
342
|
return _createVNode("div", {
|
|
192
343
|
"class": bem(`${position}-avatar`)
|
|
@@ -201,6 +352,9 @@ var stdin_default = defineComponent({
|
|
|
201
352
|
}
|
|
202
353
|
};
|
|
203
354
|
const renderBlueMark = () => {
|
|
355
|
+
if (!isVisible(props.showBlueMark, !!slots["blue-mark"] || props.blueMark)) {
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
204
358
|
if (slots["blue-mark"]) {
|
|
205
359
|
return _createVNode("div", {
|
|
206
360
|
"class": bem("blue-mark")
|
|
@@ -213,13 +367,16 @@ var stdin_default = defineComponent({
|
|
|
213
367
|
}
|
|
214
368
|
};
|
|
215
369
|
const renderTags = () => {
|
|
216
|
-
var _a2;
|
|
370
|
+
var _a2, _b2;
|
|
371
|
+
if (!isVisible(props.showTags, !!slots.tags || !!((_a2 = props.tags) == null ? void 0 : _a2.length))) {
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
217
374
|
if (slots.tags) {
|
|
218
375
|
return _createVNode("div", {
|
|
219
376
|
"class": bem("tags")
|
|
220
377
|
}, [slots.tags()]);
|
|
221
378
|
}
|
|
222
|
-
if ((
|
|
379
|
+
if ((_b2 = props.tags) == null ? void 0 : _b2.length) {
|
|
223
380
|
return _createVNode("div", {
|
|
224
381
|
"class": bem("tags")
|
|
225
382
|
}, [props.tags.map((tag, index) => _createVNode("span", {
|
|
@@ -228,19 +385,71 @@ var stdin_default = defineComponent({
|
|
|
228
385
|
}, [tag]))]);
|
|
229
386
|
}
|
|
230
387
|
};
|
|
231
|
-
const
|
|
232
|
-
if (slots["title-
|
|
388
|
+
const renderTitleTag = () => {
|
|
389
|
+
if (!isVisible(props.showTitleTag, !!slots["title-tag"] || isDef(props.titleTag))) {
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
if (slots["title-tag"]) {
|
|
233
393
|
return _createVNode("div", {
|
|
234
|
-
"class": bem("title-
|
|
235
|
-
}, [slots["title-
|
|
394
|
+
"class": bem("title-tag")
|
|
395
|
+
}, [slots["title-tag"]()]);
|
|
236
396
|
}
|
|
237
|
-
if (props.
|
|
238
|
-
return _createVNode(
|
|
239
|
-
"
|
|
240
|
-
|
|
241
|
-
|
|
397
|
+
if (isDef(props.titleTag)) {
|
|
398
|
+
return _createVNode("div", {
|
|
399
|
+
"class": bem("title-tag")
|
|
400
|
+
}, [_createVNode(Tag, {
|
|
401
|
+
"size": "small"
|
|
402
|
+
}, {
|
|
403
|
+
default: () => [props.titleTag]
|
|
404
|
+
})]);
|
|
242
405
|
}
|
|
243
406
|
};
|
|
407
|
+
const renderWrapTags = () => {
|
|
408
|
+
var _a2, _b2;
|
|
409
|
+
if (!isVisible(props.showWrapTags, !!slots["wrap-tags"] || !!((_a2 = props.wrapTags) == null ? void 0 : _a2.length))) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
if (slots["wrap-tags"]) {
|
|
413
|
+
return _createVNode("div", {
|
|
414
|
+
"class": bem("wrap-tags")
|
|
415
|
+
}, [slots["wrap-tags"]()]);
|
|
416
|
+
}
|
|
417
|
+
if ((_b2 = props.wrapTags) == null ? void 0 : _b2.length) {
|
|
418
|
+
return _createVNode("div", {
|
|
419
|
+
"class": bem("wrap-tags")
|
|
420
|
+
}, [props.wrapTags.map((tag, index) => _createVNode(Tag, {
|
|
421
|
+
"key": `${tag}-${index}`
|
|
422
|
+
}, {
|
|
423
|
+
default: () => [tag]
|
|
424
|
+
}))]);
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
const renderTitleIcon = () => {
|
|
428
|
+
if (!isVisible(props.showTitleIcon, !!slots["title-icon"] || !!props.titleIcon)) {
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
const icon = slots["title-icon"] ? slots["title-icon"]() : props.titleIcon ? _createVNode(Icon, {
|
|
432
|
+
"name": props.titleIcon
|
|
433
|
+
}, null) : void 0;
|
|
434
|
+
if (!icon)
|
|
435
|
+
return;
|
|
436
|
+
if (props.titleIconClickable) {
|
|
437
|
+
return _createVNode("button", {
|
|
438
|
+
"type": "button",
|
|
439
|
+
"class": bem("title-icon", {
|
|
440
|
+
clickable: true
|
|
441
|
+
}),
|
|
442
|
+
"aria-label": `\u64CD\u4F5C${props.title || ""}`,
|
|
443
|
+
"onClick": (event) => {
|
|
444
|
+
event.stopPropagation();
|
|
445
|
+
emit("click-title-icon", event);
|
|
446
|
+
}
|
|
447
|
+
}, [icon]);
|
|
448
|
+
}
|
|
449
|
+
return _createVNode("div", {
|
|
450
|
+
"class": bem("title-icon")
|
|
451
|
+
}, [icon]);
|
|
452
|
+
};
|
|
244
453
|
const renderNoteContent = (content) => {
|
|
245
454
|
const clickable = props.noteClickable || props.noteTo || props.noteUrl;
|
|
246
455
|
const classes = bem("note", {
|
|
@@ -268,6 +477,9 @@ var stdin_default = defineComponent({
|
|
|
268
477
|
}, [content]);
|
|
269
478
|
};
|
|
270
479
|
const renderNote = () => {
|
|
480
|
+
if (!isVisible(props.showNote, !!slots.note || isDef(props.note))) {
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
271
483
|
if (slots.note) {
|
|
272
484
|
return renderNoteContent(slots.note());
|
|
273
485
|
}
|
|
@@ -276,6 +488,9 @@ var stdin_default = defineComponent({
|
|
|
276
488
|
}
|
|
277
489
|
};
|
|
278
490
|
const renderBadge = () => {
|
|
491
|
+
if (!isVisible(props.showBadge, !!slots.badge || isDef(props.badge))) {
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
279
494
|
if (slots.badge) {
|
|
280
495
|
return _createVNode("div", {
|
|
281
496
|
"class": bem("badge")
|
|
@@ -291,25 +506,34 @@ var stdin_default = defineComponent({
|
|
|
291
506
|
}
|
|
292
507
|
};
|
|
293
508
|
const renderRightIcon = () => {
|
|
509
|
+
if (!isVisible(props.showRightIcon, !!slots["right-icon"] || !!props.rightIcon || props.isLink)) {
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
294
512
|
if (slots["right-icon"]) {
|
|
295
|
-
return
|
|
513
|
+
return _createVNode("div", {
|
|
514
|
+
"class": bem("right-icon-action")
|
|
515
|
+
}, [slots["right-icon"]()]);
|
|
296
516
|
}
|
|
297
517
|
if (props.rightIcon) {
|
|
298
|
-
return _createVNode(
|
|
518
|
+
return _createVNode("div", {
|
|
519
|
+
"class": bem("right-icon-action")
|
|
520
|
+
}, [_createVNode(Icon, {
|
|
299
521
|
"name": props.rightIcon,
|
|
300
522
|
"class": bem("right-icon")
|
|
301
|
-
}, null);
|
|
523
|
+
}, null)]);
|
|
302
524
|
}
|
|
303
525
|
if (props.isLink) {
|
|
304
526
|
const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
|
|
305
|
-
return _createVNode(
|
|
527
|
+
return _createVNode("div", {
|
|
528
|
+
"class": bem("right-icon-action")
|
|
529
|
+
}, [_createVNode(Icon, {
|
|
306
530
|
"name": name2,
|
|
307
531
|
"class": bem("right-icon")
|
|
308
|
-
}, null);
|
|
532
|
+
}, null)]);
|
|
309
533
|
}
|
|
310
534
|
};
|
|
311
535
|
return () => {
|
|
312
|
-
var _a2, _b2, _c;
|
|
536
|
+
var _a2, _b2, _c, _d;
|
|
313
537
|
const {
|
|
314
538
|
size,
|
|
315
539
|
center,
|
|
@@ -321,15 +545,17 @@ var stdin_default = defineComponent({
|
|
|
321
545
|
threeLine
|
|
322
546
|
} = props;
|
|
323
547
|
const clickable = (_a2 = props.clickable) != null ? _a2 : isLink || rightIcon === "arrow" || hasSelect("left") || hasSelect("right");
|
|
324
|
-
const hasBadge = !!slots.badge || isDef(props.badge);
|
|
325
|
-
const
|
|
548
|
+
const hasBadge = isVisible(props.showBadge, !!slots.badge || isDef(props.badge));
|
|
549
|
+
const hasMultiLineNotes = isVisible(props.showMultiLineNotes, !!slots["multi-line-notes"] || !!((_b2 = props.multiLineNotes) == null ? void 0 : _b2.length));
|
|
550
|
+
const cellSize = (_c = size != null ? size : config == null ? void 0 : config.cellSize) != null ? _c : "normal";
|
|
326
551
|
const classes = {
|
|
327
552
|
center: center || hasBadge,
|
|
328
553
|
required,
|
|
329
554
|
"title-bold": titleBold,
|
|
330
555
|
clickable,
|
|
331
556
|
borderless: !border,
|
|
332
|
-
"three-line": threeLine
|
|
557
|
+
"three-line": threeLine,
|
|
558
|
+
"multi-line-notes": hasMultiLineNotes
|
|
333
559
|
};
|
|
334
560
|
if (cellSize) {
|
|
335
561
|
classes[cellSize] = !!cellSize;
|
|
@@ -342,10 +568,13 @@ var stdin_default = defineComponent({
|
|
|
342
568
|
};
|
|
343
569
|
return _createVNode("div", {
|
|
344
570
|
"class": [bem(classes), props.errorBorder ? "van-cell-error-border" : ""],
|
|
571
|
+
"style": props.background ? {
|
|
572
|
+
background: props.background
|
|
573
|
+
} : void 0,
|
|
345
574
|
"role": clickable ? "button" : void 0,
|
|
346
575
|
"tabindex": clickable ? 0 : void 0,
|
|
347
576
|
"onClick": onClick
|
|
348
|
-
}, [renderSelect("left"), renderAvatar("left"), renderLeftIcon(), renderBlueMark(), renderTitle(), renderValue(), renderNote(), renderAvatar("right"), renderBadge(), renderSelect("right"), renderRightIcon(), (
|
|
577
|
+
}, [renderSelect("left"), renderAvatar("left"), renderLeftIcon(), renderBlueMark(), renderTitle(), renderValue(), renderNote(), renderAvatar("right"), renderBadge(), renderSelect("right"), renderRightIcon(), (_d = slots.extra) == null ? void 0 : _d.call(slots)]);
|
|
349
578
|
};
|
|
350
579
|
}
|
|
351
580
|
});
|
package/es/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-action,.van-cell__right-icon-action{align-self:flex-start;display:flex;flex:none;height:var(--van-cell-line-height);align-items:center}.van-cell__title-collapse-action{width:var(--van-cell-icon-size);margin-right:var(--van-padding-base);color:var(--van-text-color-2)}.van-cell__title-collapse-icon{width:var(--van-cell-icon-size);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{color:var(--van-cell-right-icon-color)}.van-cell__right-icon-action{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--multi-line-notes{align-items:flex-start}.van-cell--multi-line-notes .van-cell__left-select,.van-cell--multi-line-notes .van-cell__right-select{align-self:flex-start}.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)}
|