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.
Files changed (307) hide show
  1. package/es/action-sheet/ActionSheet.d.ts +3 -15
  2. package/es/action-sheet/ActionSheet.mjs +22 -11
  3. package/es/action-sheet/index.css +1 -1
  4. package/es/action-sheet/index.d.ts +2 -11
  5. package/es/action-sheet/index.less +31 -17
  6. package/es/action-sheet/style/index.mjs +2 -0
  7. package/es/action-sheet/style/less.mjs +2 -0
  8. package/es/action-sheet/var.less +1 -4
  9. package/es/address-edit/AddressEditDetail.d.ts +1 -1
  10. package/es/address-edit/style/index.mjs +1 -0
  11. package/es/address-edit/style/less.mjs +1 -0
  12. package/es/button/Button.d.ts +4 -1
  13. package/es/button/Button.mjs +21 -1
  14. package/es/button/index.css +1 -1
  15. package/es/button/index.d.ts +3 -1
  16. package/es/button/index.less +11 -5
  17. package/es/calendar/Calendar.d.ts +1 -1
  18. package/es/calendar/index.d.ts +1 -1
  19. package/es/cascader/Cascader.d.ts +1 -1
  20. package/es/cascader/index.d.ts +1 -1
  21. package/es/cascader/style/index.mjs +2 -0
  22. package/es/cascader/style/less.mjs +2 -0
  23. package/es/cell/Cell.d.ts +305 -1
  24. package/es/cell/Cell.mjs +257 -28
  25. package/es/cell/index.css +1 -1
  26. package/es/cell/index.d.ts +165 -1
  27. package/es/cell/index.less +101 -0
  28. package/es/cell/style/index.mjs +1 -0
  29. package/es/cell/style/less.mjs +1 -0
  30. package/es/checkbox-panel/index.css +1 -1
  31. package/es/checkbox-panel/index.less +1 -1
  32. package/es/checkbox-panel/style/index.mjs +1 -0
  33. package/es/checkbox-panel/style/less.mjs +1 -0
  34. package/es/collapse-item/CollapseItem.d.ts +230 -0
  35. package/es/collapse-item/index.d.ts +160 -0
  36. package/es/collapse-item/style/index.mjs +1 -0
  37. package/es/collapse-item/style/less.mjs +1 -0
  38. package/es/contact-card/style/index.mjs +1 -0
  39. package/es/contact-card/style/less.mjs +1 -0
  40. package/es/contact-edit/style/index.mjs +1 -0
  41. package/es/contact-edit/style/less.mjs +1 -0
  42. package/es/content-panel/index.css +1 -1
  43. package/es/content-panel/index.less +2 -0
  44. package/es/coupon-cell/style/index.mjs +1 -0
  45. package/es/coupon-cell/style/less.mjs +1 -0
  46. package/es/coupon-list/style/index.mjs +3 -0
  47. package/es/coupon-list/style/less.mjs +3 -0
  48. package/es/dialog/Dialog.d.ts +1 -1
  49. package/es/dialog/function-call.d.ts +1 -1
  50. package/es/dialog/style/index.mjs +1 -0
  51. package/es/dialog/style/less.mjs +1 -0
  52. package/es/dropdown-item/DropdownItem.d.ts +2 -2
  53. package/es/dropdown-item/index.d.ts +2 -2
  54. package/es/dropdown-item/style/index.mjs +1 -0
  55. package/es/dropdown-item/style/less.mjs +1 -0
  56. package/es/field/Field.d.ts +248 -1
  57. package/es/field/Field.mjs +21 -2
  58. package/es/field/index.css +1 -1
  59. package/es/field/index.d.ts +173 -1
  60. package/es/field/index.less +15 -0
  61. package/es/field/style/index.mjs +1 -0
  62. package/es/field/style/less.mjs +1 -0
  63. package/es/floor-select/style/index.mjs +3 -0
  64. package/es/floor-select/style/less.mjs +3 -0
  65. package/es/form-panel/index.css +1 -1
  66. package/es/form-panel/index.less +2 -0
  67. package/es/image-preview/ImagePreview.d.ts +2 -2
  68. package/es/image-preview/function-call.d.ts +2 -2
  69. package/es/index.d.ts +1 -1
  70. package/es/index.mjs +1 -1
  71. package/es/info-card/InfoCard.d.ts +1 -1
  72. package/es/info-card/index.d.ts +1 -1
  73. package/es/label/index.css +1 -1
  74. package/es/label/index.less +4 -0
  75. package/es/label/var.less +1 -0
  76. package/es/location-select/index.css +1 -1
  77. package/es/location-select/index.less +1 -1
  78. package/es/location-select/style/index.mjs +1 -0
  79. package/es/location-select/style/less.mjs +1 -0
  80. package/es/material-action-bar/MaterialActionBar.d.ts +9 -0
  81. package/es/material-action-bar/MaterialActionBar.mjs +5 -2
  82. package/es/material-action-bar/index.d.ts +18 -0
  83. package/es/material-add/index.css +1 -1
  84. package/es/material-add/index.less +1 -1
  85. package/es/material-add/style/index.mjs +1 -1
  86. package/es/material-add/style/less.mjs +1 -1
  87. package/es/material-display-bar/MaterialDisplayBar.d.ts +4 -4
  88. package/es/material-display-bar/index.d.ts +12 -12
  89. package/es/multi-person-select/index.css +1 -1
  90. package/es/multi-person-select/index.less +1 -1
  91. package/es/multi-person-select/style/index.mjs +1 -0
  92. package/es/multi-person-select/style/less.mjs +1 -0
  93. package/es/notify/Notify.d.ts +1 -1
  94. package/es/notify/function-call.d.ts +1 -1
  95. package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
  96. package/es/number-keyboard/index.d.ts +2 -2
  97. package/es/object-select/index.css +1 -1
  98. package/es/object-select/index.less +2 -0
  99. package/es/object-select/style/index.mjs +1 -0
  100. package/es/object-select/style/less.mjs +1 -0
  101. package/es/popover/Popover.d.ts +3 -3
  102. package/es/popover/index.d.ts +3 -3
  103. package/es/popup/Popup.d.ts +4 -4
  104. package/es/popup/index.d.ts +4 -4
  105. package/es/quantity-input/style/index.mjs +1 -0
  106. package/es/quantity-input/style/less.mjs +1 -0
  107. package/es/radio-panel/RadioPanel.d.ts +1 -1
  108. package/es/radio-panel/index.css +1 -1
  109. package/es/radio-panel/index.d.ts +1 -1
  110. package/es/radio-panel/index.less +1 -1
  111. package/es/radio-panel/style/index.mjs +1 -0
  112. package/es/radio-panel/style/less.mjs +1 -0
  113. package/es/rate/style/index.mjs +1 -0
  114. package/es/rate/style/less.mjs +1 -0
  115. package/es/search/style/index.mjs +1 -0
  116. package/es/search/style/less.mjs +1 -0
  117. package/es/share-sheet/ShareSheet.d.ts +1 -1
  118. package/es/share-sheet/index.d.ts +1 -1
  119. package/es/single-person-select/index.css +1 -1
  120. package/es/single-person-select/index.less +2 -0
  121. package/es/single-person-select/style/index.mjs +1 -0
  122. package/es/single-person-select/style/less.mjs +1 -0
  123. package/es/style/base.css +1 -1
  124. package/es/style/base.less +5 -0
  125. package/es/style/css-variables.css +1 -1
  126. package/es/style/css-variables.less +1 -0
  127. package/es/style/var.less +1 -0
  128. package/es/swipe-cell/SwipeCell.d.ts +2 -2
  129. package/es/swipe-cell/index.d.ts +2 -2
  130. package/es/tab/style/index.mjs +2 -0
  131. package/es/tab/style/less.mjs +2 -0
  132. package/es/tabs/style/index.mjs +2 -0
  133. package/es/tabs/style/less.mjs +2 -0
  134. package/es/title-bar/TitleBar.d.ts +2 -2
  135. package/es/title-bar/index.d.ts +2 -2
  136. package/es/toast/Toast.d.ts +1 -1
  137. package/es/tree-select/style/index.mjs +1 -0
  138. package/es/tree-select/style/less.mjs +1 -0
  139. package/es/uploader/Uploader.d.ts +4 -0
  140. package/es/uploader/Uploader.mjs +3 -2
  141. package/es/uploader/index.d.ts +3 -0
  142. package/es/video-preview/VideoPreview.d.ts +2 -2
  143. package/es/video-preview/function-call.d.ts +2 -2
  144. package/es/work-order-filter/index.css +1 -1
  145. package/es/work-order-filter/index.less +2 -0
  146. package/es/work-order-filter/style/index.mjs +1 -0
  147. package/es/work-order-filter/style/less.mjs +1 -0
  148. package/lib/action-sheet/ActionSheet.d.ts +3 -15
  149. package/lib/action-sheet/ActionSheet.js +21 -10
  150. package/lib/action-sheet/index.css +1 -1
  151. package/lib/action-sheet/index.d.ts +2 -11
  152. package/lib/action-sheet/index.less +31 -17
  153. package/lib/action-sheet/style/index.js +2 -0
  154. package/lib/action-sheet/style/less.js +2 -0
  155. package/lib/action-sheet/var.less +1 -4
  156. package/lib/address-edit/AddressEditDetail.d.ts +1 -1
  157. package/lib/address-edit/style/index.js +1 -0
  158. package/lib/address-edit/style/less.js +1 -0
  159. package/lib/button/Button.d.ts +4 -1
  160. package/lib/button/Button.js +21 -1
  161. package/lib/button/index.css +1 -1
  162. package/lib/button/index.d.ts +3 -1
  163. package/lib/button/index.less +11 -5
  164. package/lib/calendar/Calendar.d.ts +1 -1
  165. package/lib/calendar/index.d.ts +1 -1
  166. package/lib/cascader/Cascader.d.ts +1 -1
  167. package/lib/cascader/index.d.ts +1 -1
  168. package/lib/cascader/style/index.js +2 -0
  169. package/lib/cascader/style/less.js +2 -0
  170. package/lib/cell/Cell.d.ts +305 -1
  171. package/lib/cell/Cell.js +257 -28
  172. package/lib/cell/index.css +1 -1
  173. package/lib/cell/index.d.ts +165 -1
  174. package/lib/cell/index.less +101 -0
  175. package/lib/cell/style/index.js +1 -0
  176. package/lib/cell/style/less.js +1 -0
  177. package/lib/checkbox-panel/index.css +1 -1
  178. package/lib/checkbox-panel/index.less +1 -1
  179. package/lib/checkbox-panel/style/index.js +1 -0
  180. package/lib/checkbox-panel/style/less.js +1 -0
  181. package/lib/collapse-item/CollapseItem.d.ts +230 -0
  182. package/lib/collapse-item/index.d.ts +160 -0
  183. package/lib/collapse-item/style/index.js +1 -0
  184. package/lib/collapse-item/style/less.js +1 -0
  185. package/lib/contact-card/style/index.js +1 -0
  186. package/lib/contact-card/style/less.js +1 -0
  187. package/lib/contact-edit/style/index.js +1 -0
  188. package/lib/contact-edit/style/less.js +1 -0
  189. package/lib/content-panel/index.css +1 -1
  190. package/lib/content-panel/index.less +2 -0
  191. package/lib/coupon-cell/style/index.js +1 -0
  192. package/lib/coupon-cell/style/less.js +1 -0
  193. package/lib/coupon-list/style/index.js +3 -0
  194. package/lib/coupon-list/style/less.js +3 -0
  195. package/lib/dialog/Dialog.d.ts +1 -1
  196. package/lib/dialog/function-call.d.ts +1 -1
  197. package/lib/dialog/style/index.js +1 -0
  198. package/lib/dialog/style/less.js +1 -0
  199. package/lib/dropdown-item/DropdownItem.d.ts +2 -2
  200. package/lib/dropdown-item/index.d.ts +2 -2
  201. package/lib/dropdown-item/style/index.js +1 -0
  202. package/lib/dropdown-item/style/less.js +1 -0
  203. package/lib/field/Field.d.ts +248 -1
  204. package/lib/field/Field.js +21 -2
  205. package/lib/field/index.css +1 -1
  206. package/lib/field/index.d.ts +173 -1
  207. package/lib/field/index.less +15 -0
  208. package/lib/field/style/index.js +1 -0
  209. package/lib/field/style/less.js +1 -0
  210. package/lib/floor-select/style/index.js +3 -0
  211. package/lib/floor-select/style/less.js +3 -0
  212. package/lib/form-panel/index.css +1 -1
  213. package/lib/form-panel/index.less +2 -0
  214. package/lib/image-preview/ImagePreview.d.ts +2 -2
  215. package/lib/image-preview/function-call.d.ts +2 -2
  216. package/lib/index.css +1 -1
  217. package/lib/index.d.ts +1 -1
  218. package/lib/index.js +1 -1
  219. package/lib/index.less +2 -2
  220. package/lib/info-card/InfoCard.d.ts +1 -1
  221. package/lib/info-card/index.d.ts +1 -1
  222. package/lib/label/index.css +1 -1
  223. package/lib/label/index.less +4 -0
  224. package/lib/label/var.less +1 -0
  225. package/lib/location-select/index.css +1 -1
  226. package/lib/location-select/index.less +1 -1
  227. package/lib/location-select/style/index.js +1 -0
  228. package/lib/location-select/style/less.js +1 -0
  229. package/lib/material-action-bar/MaterialActionBar.d.ts +9 -0
  230. package/lib/material-action-bar/MaterialActionBar.js +4 -1
  231. package/lib/material-action-bar/index.d.ts +18 -0
  232. package/lib/material-add/index.css +1 -1
  233. package/lib/material-add/index.less +1 -1
  234. package/lib/material-add/style/index.js +1 -1
  235. package/lib/material-add/style/less.js +1 -1
  236. package/lib/material-display-bar/MaterialDisplayBar.d.ts +4 -4
  237. package/lib/material-display-bar/index.d.ts +12 -12
  238. package/lib/multi-person-select/index.css +1 -1
  239. package/lib/multi-person-select/index.less +1 -1
  240. package/lib/multi-person-select/style/index.js +1 -0
  241. package/lib/multi-person-select/style/less.js +1 -0
  242. package/lib/notify/Notify.d.ts +1 -1
  243. package/lib/notify/function-call.d.ts +1 -1
  244. package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
  245. package/lib/number-keyboard/index.d.ts +2 -2
  246. package/lib/object-select/index.css +1 -1
  247. package/lib/object-select/index.less +2 -0
  248. package/lib/object-select/style/index.js +1 -0
  249. package/lib/object-select/style/less.js +1 -0
  250. package/lib/popover/Popover.d.ts +3 -3
  251. package/lib/popover/index.d.ts +3 -3
  252. package/lib/popup/Popup.d.ts +4 -4
  253. package/lib/popup/index.d.ts +4 -4
  254. package/lib/quantity-input/style/index.js +1 -0
  255. package/lib/quantity-input/style/less.js +1 -0
  256. package/lib/radio-panel/RadioPanel.d.ts +1 -1
  257. package/lib/radio-panel/index.css +1 -1
  258. package/lib/radio-panel/index.d.ts +1 -1
  259. package/lib/radio-panel/index.less +1 -1
  260. package/lib/radio-panel/style/index.js +1 -0
  261. package/lib/radio-panel/style/less.js +1 -0
  262. package/lib/rate/style/index.js +1 -0
  263. package/lib/rate/style/less.js +1 -0
  264. package/lib/search/style/index.js +1 -0
  265. package/lib/search/style/less.js +1 -0
  266. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  267. package/lib/share-sheet/index.d.ts +1 -1
  268. package/lib/single-person-select/index.css +1 -1
  269. package/lib/single-person-select/index.less +2 -0
  270. package/lib/single-person-select/style/index.js +1 -0
  271. package/lib/single-person-select/style/less.js +1 -0
  272. package/lib/style/base.css +1 -1
  273. package/lib/style/base.less +5 -0
  274. package/lib/style/css-variables.css +1 -1
  275. package/lib/style/css-variables.less +1 -0
  276. package/lib/style/var.less +1 -0
  277. package/lib/swipe-cell/SwipeCell.d.ts +2 -2
  278. package/lib/swipe-cell/index.d.ts +2 -2
  279. package/lib/tab/style/index.js +2 -0
  280. package/lib/tab/style/less.js +2 -0
  281. package/lib/tabs/style/index.js +2 -0
  282. package/lib/tabs/style/less.js +2 -0
  283. package/lib/title-bar/TitleBar.d.ts +2 -2
  284. package/lib/title-bar/index.d.ts +2 -2
  285. package/lib/toast/Toast.d.ts +1 -1
  286. package/lib/tree-select/style/index.js +1 -0
  287. package/lib/tree-select/style/less.js +1 -0
  288. package/lib/uploader/Uploader.d.ts +4 -0
  289. package/lib/uploader/Uploader.js +2 -1
  290. package/lib/uploader/index.d.ts +3 -0
  291. package/lib/vant.cjs.js +1268 -987
  292. package/lib/vant.es.js +1269 -988
  293. package/lib/vant.js +5214 -4933
  294. package/lib/vant.min.js +1 -1
  295. package/lib/video-preview/VideoPreview.d.ts +2 -2
  296. package/lib/video-preview/function-call.d.ts +2 -2
  297. package/lib/web-types.json +1 -1
  298. package/lib/work-order-filter/index.css +1 -1
  299. package/lib/work-order-filter/index.less +2 -0
  300. package/lib/work-order-filter/style/index.js +1 -0
  301. package/lib/work-order-filter/style/less.js +1 -0
  302. package/package.json +1 -1
  303. package/skills/use-persagy-vant/SKILL.md +8 -7
  304. package/skills/use-persagy-vant/references/component-catalog.md +3 -3
  305. package/skills/use-persagy-vant/references/component-variant-selection.md +39 -0
  306. package/skills/use-persagy-vant/references/element-component-matching.md +88 -0
  307. 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 hasSelect = (position) => isDef(position === "left" ? props.leftSelect : props.rightSelect);
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"), props.labelClass],
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.label ? slots.label() : props.label]);
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
- }, [slots.title ? slots.title() : _createVNode("span", null, [props.title]), renderTags(), renderTitleIcon()]), renderLabel(), props.threeLine && renderDescription()]);
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 ((_a2 = props.tags) == null ? void 0 : _a2.length) {
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 renderTitleIcon = () => {
232
- if (slots["title-icon"]) {
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-icon")
235
- }, [slots["title-icon"]()]);
394
+ "class": bem("title-tag")
395
+ }, [slots["title-tag"]()]);
236
396
  }
237
- if (props.titleIcon) {
238
- return _createVNode(Icon, {
239
- "name": props.titleIcon,
240
- "class": bem("title-icon")
241
- }, null);
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 slots["right-icon"]();
513
+ return _createVNode("div", {
514
+ "class": bem("right-icon-action")
515
+ }, [slots["right-icon"]()]);
296
516
  }
297
517
  if (props.rightIcon) {
298
- return _createVNode(Icon, {
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(Icon, {
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 cellSize = (_b2 = size != null ? size : config == null ? void 0 : config.cellSize) != null ? _b2 : "normal";
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(), (_c = slots.extra) == null ? void 0 : _c.call(slots)]);
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)}