persagy-vant 0.0.36 → 0.0.38

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 (231) hide show
  1. package/es/area/style/index.mjs +2 -0
  2. package/es/area/style/less.mjs +2 -0
  3. package/es/cell/Cell.d.ts +9 -0
  4. package/es/cell/Cell.mjs +15 -3
  5. package/es/cell/index.css +1 -1
  6. package/es/cell/index.d.ts +6 -1
  7. package/es/cell/index.less +24 -2
  8. package/es/cell/var.less +6 -0
  9. package/es/cell-group/CellGroup.d.ts +4 -0
  10. package/es/cell-group/CellGroup.mjs +4 -2
  11. package/es/cell-group/index.css +1 -1
  12. package/es/cell-group/index.d.ts +3 -0
  13. package/es/cell-group/index.less +27 -0
  14. package/es/cell-group/var.less +3 -0
  15. package/es/collapse-item/CollapseItem.d.ts +7 -0
  16. package/es/collapse-item/index.d.ts +5 -0
  17. package/es/field/Field.d.ts +7 -0
  18. package/es/field/index.d.ts +5 -0
  19. package/es/icon/Icon.mjs +7 -4
  20. package/es/icon/assets/copy.svg +4 -0
  21. package/es/icon/config.d.ts +1 -0
  22. package/es/icon/config.mjs +1 -0
  23. package/es/icon/gif.d.ts +6 -0
  24. package/es/icon/gif.mjs +9 -0
  25. package/es/icon/index.css +1 -1
  26. package/es/icon/index.d.ts +2 -0
  27. package/es/icon/index.mjs +4 -1
  28. package/es/icon/latest-iconfont.css +1 -1
  29. package/es/icon/latest-iconfont.less +11 -0
  30. package/es/index.d.ts +1 -1
  31. package/es/index.mjs +1 -1
  32. package/es/info-card/InfoCard.d.ts +31 -0
  33. package/es/info-card/InfoCard.mjs +45 -3
  34. package/es/info-card/index.css +1 -1
  35. package/es/info-card/index.d.ts +22 -1
  36. package/es/info-card/index.less +57 -0
  37. package/es/info-card/var.less +1 -1
  38. package/es/label/Label.d.ts +21 -0
  39. package/es/label/Label.mjs +12 -2
  40. package/es/label/index.css +1 -1
  41. package/es/label/index.d.ts +15 -0
  42. package/es/label/index.less +27 -0
  43. package/es/label/var.less +1 -0
  44. package/es/list/style/index.mjs +2 -0
  45. package/es/list/style/less.mjs +2 -0
  46. package/es/loading/Loading.mjs +8 -26
  47. package/es/loading/index.css +1 -1
  48. package/es/loading/index.less +1 -1
  49. package/es/loading/style/index.mjs +2 -0
  50. package/es/loading/style/less.mjs +2 -0
  51. package/es/material-action-bar/index.css +1 -1
  52. package/es/material-action-bar/index.less +3 -1
  53. package/es/material-add/MaterialAdd.mjs +158 -63
  54. package/es/material-add/index.css +1 -1
  55. package/es/material-add/index.d.ts +1 -1
  56. package/es/material-add/index.less +0 -14
  57. package/es/material-add/types.d.ts +7 -4
  58. package/es/material-detail/MaterialDetail.mjs +14 -9
  59. package/es/material-display-bar/index.css +1 -1
  60. package/es/material-display-bar/index.less +2 -1
  61. package/es/material-display-bar/var.less +1 -0
  62. package/es/number-keyboard/style/index.mjs +2 -0
  63. package/es/number-keyboard/style/less.mjs +2 -0
  64. package/es/object-select/ObjectSelect.mjs +13 -1
  65. package/es/picker/style/index.mjs +2 -0
  66. package/es/picker/style/less.mjs +2 -0
  67. package/es/progress/Progress.d.ts +17 -0
  68. package/es/progress/Progress.mjs +14 -9
  69. package/es/progress/index.css +1 -1
  70. package/es/progress/index.d.ts +12 -1
  71. package/es/progress/index.less +24 -14
  72. package/es/progress/types.d.ts +1 -0
  73. package/es/progress/var.less +10 -7
  74. package/es/pull-refresh/style/index.mjs +2 -0
  75. package/es/pull-refresh/style/less.mjs +2 -0
  76. package/es/style/base.css +1 -1
  77. package/es/style/base.less +5 -0
  78. package/es/style/css-variables.css +1 -1
  79. package/es/style/css-variables.less +1 -0
  80. package/es/style/var.less +1 -0
  81. package/es/switch/style/index.mjs +2 -0
  82. package/es/switch/style/less.mjs +2 -0
  83. package/es/title-bar/TitleBar.d.ts +5 -1
  84. package/es/title-bar/TitleBar.mjs +5 -3
  85. package/es/title-bar/index.css +1 -1
  86. package/es/title-bar/index.d.ts +4 -1
  87. package/es/title-bar/index.less +6 -1
  88. package/es/title-bar/var.less +2 -0
  89. package/es/tree-select/TreeSelect.mjs +9 -4
  90. package/es/tree-select/index.css +1 -1
  91. package/es/tree-select/index.less +29 -1
  92. package/es/uploader/Uploader.d.ts +7 -0
  93. package/es/uploader/Uploader.mjs +55 -30
  94. package/es/uploader/UploaderPreviewItem.d.ts +2 -1
  95. package/es/uploader/UploaderPreviewItem.mjs +13 -6
  96. package/es/uploader/index.css +1 -1
  97. package/es/uploader/index.d.ts +5 -0
  98. package/es/uploader/index.less +30 -0
  99. package/es/uploader/types.d.ts +1 -0
  100. package/es/uploader/utils.d.ts +2 -0
  101. package/es/uploader/utils.mjs +74 -0
  102. package/es/uploader/var.less +5 -0
  103. package/es/work-order-card/WorkOrderCard.mjs +52 -11
  104. package/es/work-order-card/index.css +1 -1
  105. package/es/work-order-card/index.less +3 -4
  106. package/es/work-order-card/style/index.mjs +2 -0
  107. package/es/work-order-card/style/less.mjs +2 -0
  108. package/es/work-order-card/types.d.ts +14 -1
  109. package/lib/area/style/index.js +2 -0
  110. package/lib/area/style/less.js +2 -0
  111. package/lib/cell/Cell.d.ts +9 -0
  112. package/lib/cell/Cell.js +15 -3
  113. package/lib/cell/index.css +1 -1
  114. package/lib/cell/index.d.ts +6 -1
  115. package/lib/cell/index.less +24 -2
  116. package/lib/cell/var.less +6 -0
  117. package/lib/cell-group/CellGroup.d.ts +4 -0
  118. package/lib/cell-group/CellGroup.js +4 -2
  119. package/lib/cell-group/index.css +1 -1
  120. package/lib/cell-group/index.d.ts +3 -0
  121. package/lib/cell-group/index.less +27 -0
  122. package/lib/cell-group/var.less +3 -0
  123. package/lib/collapse-item/CollapseItem.d.ts +7 -0
  124. package/lib/collapse-item/index.d.ts +5 -0
  125. package/lib/field/Field.d.ts +7 -0
  126. package/lib/field/index.d.ts +5 -0
  127. package/lib/icon/Icon.js +7 -4
  128. package/lib/icon/assets/copy.svg +4 -0
  129. package/lib/icon/config.d.ts +1 -0
  130. package/lib/icon/config.js +1 -0
  131. package/lib/icon/gif.d.ts +6 -0
  132. package/lib/icon/gif.js +28 -0
  133. package/lib/icon/index.css +1 -1
  134. package/lib/icon/index.d.ts +2 -0
  135. package/lib/icon/index.js +4 -1
  136. package/lib/icon/latest-iconfont.css +1 -1
  137. package/lib/icon/latest-iconfont.less +11 -0
  138. package/lib/index.css +1 -1
  139. package/lib/index.d.ts +1 -1
  140. package/lib/index.js +1 -1
  141. package/lib/info-card/InfoCard.d.ts +31 -0
  142. package/lib/info-card/InfoCard.js +45 -3
  143. package/lib/info-card/index.css +1 -1
  144. package/lib/info-card/index.d.ts +22 -1
  145. package/lib/info-card/index.less +57 -0
  146. package/lib/info-card/var.less +1 -1
  147. package/lib/label/Label.d.ts +21 -0
  148. package/lib/label/Label.js +12 -2
  149. package/lib/label/index.css +1 -1
  150. package/lib/label/index.d.ts +15 -0
  151. package/lib/label/index.less +27 -0
  152. package/lib/label/var.less +1 -0
  153. package/lib/list/style/index.js +2 -0
  154. package/lib/list/style/less.js +2 -0
  155. package/lib/loading/Loading.js +8 -26
  156. package/lib/loading/index.css +1 -1
  157. package/lib/loading/index.less +1 -1
  158. package/lib/loading/style/index.js +2 -0
  159. package/lib/loading/style/less.js +2 -0
  160. package/lib/material-action-bar/index.css +1 -1
  161. package/lib/material-action-bar/index.less +3 -1
  162. package/lib/material-add/MaterialAdd.js +158 -63
  163. package/lib/material-add/index.css +1 -1
  164. package/lib/material-add/index.d.ts +1 -1
  165. package/lib/material-add/index.less +0 -14
  166. package/lib/material-add/types.d.ts +7 -4
  167. package/lib/material-detail/MaterialDetail.js +14 -9
  168. package/lib/material-display-bar/index.css +1 -1
  169. package/lib/material-display-bar/index.less +2 -1
  170. package/lib/material-display-bar/var.less +1 -0
  171. package/lib/number-keyboard/style/index.js +2 -0
  172. package/lib/number-keyboard/style/less.js +2 -0
  173. package/lib/object-select/ObjectSelect.js +13 -1
  174. package/lib/picker/style/index.js +2 -0
  175. package/lib/picker/style/less.js +2 -0
  176. package/lib/progress/Progress.d.ts +17 -0
  177. package/lib/progress/Progress.js +13 -8
  178. package/lib/progress/index.css +1 -1
  179. package/lib/progress/index.d.ts +12 -1
  180. package/lib/progress/index.less +24 -14
  181. package/lib/progress/types.d.ts +1 -0
  182. package/lib/progress/var.less +10 -7
  183. package/lib/pull-refresh/style/index.js +2 -0
  184. package/lib/pull-refresh/style/less.js +2 -0
  185. package/lib/style/base.css +1 -1
  186. package/lib/style/base.less +5 -0
  187. package/lib/style/css-variables.css +1 -1
  188. package/lib/style/css-variables.less +1 -0
  189. package/lib/style/var.less +1 -0
  190. package/lib/switch/style/index.js +2 -0
  191. package/lib/switch/style/less.js +2 -0
  192. package/lib/title-bar/TitleBar.d.ts +5 -1
  193. package/lib/title-bar/TitleBar.js +5 -3
  194. package/lib/title-bar/index.css +1 -1
  195. package/lib/title-bar/index.d.ts +4 -1
  196. package/lib/title-bar/index.less +6 -1
  197. package/lib/title-bar/var.less +2 -0
  198. package/lib/tree-select/TreeSelect.js +9 -4
  199. package/lib/tree-select/index.css +1 -1
  200. package/lib/tree-select/index.less +29 -1
  201. package/lib/uploader/Uploader.d.ts +7 -0
  202. package/lib/uploader/Uploader.js +53 -28
  203. package/lib/uploader/UploaderPreviewItem.d.ts +2 -1
  204. package/lib/uploader/UploaderPreviewItem.js +12 -5
  205. package/lib/uploader/index.css +1 -1
  206. package/lib/uploader/index.d.ts +5 -0
  207. package/lib/uploader/index.less +30 -0
  208. package/lib/uploader/types.d.ts +1 -0
  209. package/lib/uploader/utils.d.ts +2 -0
  210. package/lib/uploader/utils.js +74 -0
  211. package/lib/uploader/var.less +5 -0
  212. package/lib/vant.cjs.js +482 -170
  213. package/lib/vant.es.js +482 -170
  214. package/lib/vant.js +482 -170
  215. package/lib/vant.min.js +1 -1
  216. package/lib/web-types.json +1 -1
  217. package/lib/work-order-card/WorkOrderCard.js +52 -11
  218. package/lib/work-order-card/index.css +1 -1
  219. package/lib/work-order-card/index.less +3 -4
  220. package/lib/work-order-card/style/index.js +2 -0
  221. package/lib/work-order-card/style/less.js +2 -0
  222. package/lib/work-order-card/types.d.ts +14 -1
  223. package/package.json +2 -2
  224. package/skills/use-persagy-vant/SKILL.md +4 -3
  225. package/skills/use-persagy-vant/references/component-documentation.md +8 -8
  226. package/skills/use-persagy-vant/references/component-variant-selection.md +53 -0
  227. package/skills/use-persagy-vant/references/design-interaction-baseline.md +2 -1
  228. package/skills/use-persagy-vant/references/page-recipes.md +4 -0
  229. package/skills/use-persagy-vant/references/reuse-policy.md +9 -6
  230. /package/es/{loading/assets/building.gif → icon/assets/gif/loading-building.gif} +0 -0
  231. /package/lib/{loading/assets/building.gif → icon/assets/gif/loading-building.gif} +0 -0
@@ -1,10 +1,16 @@
1
1
  import { type ExtractPropTypes } from 'vue';
2
2
  import { type Numeric } from '../utils';
3
+ import type { ProgressSize } from './types';
3
4
  declare const progressProps: {
5
+ size: {
6
+ type: import("vue").PropType<ProgressSize>;
7
+ default: ProgressSize;
8
+ };
4
9
  color: StringConstructor;
5
10
  inactive: BooleanConstructor;
6
11
  pivotText: StringConstructor;
7
12
  textColor: StringConstructor;
13
+ textSize: (NumberConstructor | StringConstructor)[];
8
14
  showPivot: {
9
15
  type: BooleanConstructor;
10
16
  default: true;
@@ -20,10 +26,15 @@ declare const progressProps: {
20
26
  };
21
27
  export declare type ProgressProps = ExtractPropTypes<typeof progressProps>;
22
28
  declare const _default: import("vue").DefineComponent<{
29
+ size: {
30
+ type: import("vue").PropType<ProgressSize>;
31
+ default: ProgressSize;
32
+ };
23
33
  color: StringConstructor;
24
34
  inactive: BooleanConstructor;
25
35
  pivotText: StringConstructor;
26
36
  textColor: StringConstructor;
37
+ textSize: (NumberConstructor | StringConstructor)[];
27
38
  showPivot: {
28
39
  type: BooleanConstructor;
29
40
  default: true;
@@ -37,10 +48,15 @@ declare const _default: import("vue").DefineComponent<{
37
48
  validator: (value: Numeric) => boolean;
38
49
  };
39
50
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
51
+ size: {
52
+ type: import("vue").PropType<ProgressSize>;
53
+ default: ProgressSize;
54
+ };
40
55
  color: StringConstructor;
41
56
  inactive: BooleanConstructor;
42
57
  pivotText: StringConstructor;
43
58
  textColor: StringConstructor;
59
+ textSize: (NumberConstructor | StringConstructor)[];
44
60
  showPivot: {
45
61
  type: BooleanConstructor;
46
62
  default: true;
@@ -54,6 +70,7 @@ declare const _default: import("vue").DefineComponent<{
54
70
  validator: (value: Numeric) => boolean;
55
71
  };
56
72
  }>>, {
73
+ size: ProgressSize;
57
74
  inactive: boolean;
58
75
  showPivot: boolean;
59
76
  percentage: string | number;
@@ -24,10 +24,12 @@ var import_vue = require("vue");
24
24
  var import_utils = require("../utils");
25
25
  const [name, bem] = (0, import_utils.createNamespace)("progress");
26
26
  const progressProps = {
27
+ size: (0, import_utils.makeStringProp)("default"),
27
28
  color: String,
28
29
  inactive: Boolean,
29
30
  pivotText: String,
30
31
  textColor: String,
32
+ textSize: import_utils.numericProp,
31
33
  showPivot: import_utils.truthProp,
32
34
  pivotColor: String,
33
35
  trackColor: String,
@@ -46,6 +48,7 @@ var stdin_default = (0, import_vue.defineComponent)({
46
48
  const renderPivot = () => {
47
49
  const {
48
50
  textColor,
51
+ textSize,
49
52
  pivotText,
50
53
  pivotColor,
51
54
  percentage
@@ -53,10 +56,8 @@ var stdin_default = (0, import_vue.defineComponent)({
53
56
  const text = pivotText != null ? pivotText : `${percentage}%`;
54
57
  if (props.showPivot && text) {
55
58
  const style = {
56
- color: textColor,
57
- left: `${+percentage}%`,
58
- transform: `translate(-${+percentage}%,-50%)`,
59
- background: pivotColor || background.value
59
+ color: textColor || pivotColor,
60
+ fontSize: (0, import_utils.addUnit)(textSize)
60
61
  };
61
62
  return (0, import_vue.createVNode)("span", {
62
63
  "style": style,
@@ -72,7 +73,7 @@ var stdin_default = (0, import_vue.defineComponent)({
72
73
  percentage,
73
74
  strokeWidth
74
75
  } = props;
75
- const rootStyle = {
76
+ const trackStyle = {
76
77
  background: trackColor,
77
78
  height: (0, import_utils.addUnit)(strokeWidth)
78
79
  };
@@ -81,14 +82,18 @@ var stdin_default = (0, import_vue.defineComponent)({
81
82
  background: background.value
82
83
  };
83
84
  return (0, import_vue.createVNode)("div", {
84
- "class": bem(),
85
- "style": rootStyle
85
+ "class": bem({
86
+ large: props.size === "large"
87
+ })
88
+ }, [(0, import_vue.createVNode)("div", {
89
+ "class": bem("track"),
90
+ "style": trackStyle
86
91
  }, [(0, import_vue.createVNode)("span", {
87
92
  "class": bem("portion", {
88
93
  inactive: props.inactive
89
94
  }),
90
95
  "style": portionStyle
91
- }, null), renderPivot()]);
96
+ }, null)]), renderPivot()]);
92
97
  };
93
98
  }
94
99
  });
@@ -1 +1 @@
1
- :root{--van-progress-height: 4px;--van-progress-color: var(--van-primary-color);--van-progress-inactive-color: var(--van-gray-5);--van-progress-background-color: var(--van-gray-3);--van-progress-pivot-padding: 0 5px;--van-progress-pivot-text-color: var(--van-white);--van-progress-pivot-font-size: var(--van-font-size-xs);--van-progress-pivot-line-height: 1.6;--van-progress-pivot-background-color: var(--van-primary-color)}.van-progress{position:relative;height:var(--van-progress-height);background:var(--van-progress-background-color);border-radius:var(--van-progress-height)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:inherit;transform-origin:0;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-progress__portion--inactive{background:var(--van-progress-inactive-color)}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all;background:var(--van-progress-pivot-background-color);border-radius:1em;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-progress__pivot--inactive{background:var(--van-progress-inactive-color)}
1
+ :root{--van-progress-height: 6px;--van-progress-large-height: 8px;--van-progress-color: var(--van-primary-color);--van-progress-inactive-color: var(--van-gray-5);--van-progress-background-color: var(--van-gray-2);--van-progress-pivot-padding: 0;--van-progress-pivot-text-color: var(--van-progress-pivot-background-color);--van-progress-pivot-font-size: var(--van-font-size-sm);--van-progress-large-pivot-font-size: var(--van-font-size-md);--van-progress-pivot-line-height: var(--van-line-height-lg);--van-progress-pivot-background-color: var(--van-text-color-2);--van-progress-text-gap: var(--van-padding-sm)}.van-progress{display:flex;align-items:center;gap:var(--van-progress-text-gap)}.van-progress--large{--van-progress-height: var(--van-progress-large-height);--van-progress-pivot-font-size: var(--van-progress-large-pivot-font-size)}.van-progress__track{position:relative;flex:1;height:var(--van-progress-height);overflow:hidden;background:var(--van-progress-background-color);border-radius:var(--van-border-radius-max)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:var(--van-border-radius-max);transform-origin:0;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-progress__portion--inactive{background:var(--van-progress-inactive-color)}.van-progress__pivot{flex:none;box-sizing:border-box;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all}.van-progress__pivot--inactive{color:var(--van-progress-inactive-color)}
@@ -1,9 +1,14 @@
1
1
  import { ProgressProps } from './Progress';
2
2
  export declare const Progress: import("../utils").WithInstall<import("vue").DefineComponent<{
3
+ size: {
4
+ type: import("vue").PropType<import("./types").ProgressSize>;
5
+ default: import("./types").ProgressSize;
6
+ };
3
7
  color: StringConstructor;
4
8
  inactive: BooleanConstructor;
5
9
  pivotText: StringConstructor;
6
10
  textColor: StringConstructor;
11
+ textSize: (NumberConstructor | StringConstructor)[];
7
12
  showPivot: {
8
13
  type: BooleanConstructor;
9
14
  default: true;
@@ -17,10 +22,15 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
17
22
  validator: (value: import("../utils").Numeric) => boolean;
18
23
  };
19
24
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ size: {
26
+ type: import("vue").PropType<import("./types").ProgressSize>;
27
+ default: import("./types").ProgressSize;
28
+ };
20
29
  color: StringConstructor;
21
30
  inactive: BooleanConstructor;
22
31
  pivotText: StringConstructor;
23
32
  textColor: StringConstructor;
33
+ textSize: (NumberConstructor | StringConstructor)[];
24
34
  showPivot: {
25
35
  type: BooleanConstructor;
26
36
  default: true;
@@ -34,13 +44,14 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
34
44
  validator: (value: import("../utils").Numeric) => boolean;
35
45
  };
36
46
  }>>, {
47
+ size: import("./types").ProgressSize;
37
48
  inactive: boolean;
38
49
  showPivot: boolean;
39
50
  percentage: string | number;
40
51
  }>>;
41
52
  export default Progress;
42
53
  export type { ProgressProps };
43
- export type { ProgressInstance } from './types';
54
+ export type { ProgressInstance, ProgressSize } from './types';
44
55
  declare module 'vue' {
45
56
  interface GlobalComponents {
46
57
  VanProgress: typeof Progress;
@@ -2,21 +2,37 @@
2
2
 
3
3
  :root {
4
4
  --van-progress-height: @progress-height;
5
+ --van-progress-large-height: @progress-large-height;
5
6
  --van-progress-color: @progress-color;
6
7
  --van-progress-inactive-color: @progress-inactive-color;
7
8
  --van-progress-background-color: @progress-background-color;
8
9
  --van-progress-pivot-padding: @progress-pivot-padding;
9
- --van-progress-pivot-text-color: @progress-pivot-text-color;
10
+ --van-progress-pivot-text-color: var(--van-progress-pivot-background-color);
10
11
  --van-progress-pivot-font-size: @progress-pivot-font-size;
12
+ --van-progress-large-pivot-font-size: @progress-large-pivot-font-size;
11
13
  --van-progress-pivot-line-height: @progress-pivot-line-height;
12
14
  --van-progress-pivot-background-color: @progress-pivot-background-color;
15
+ --van-progress-text-gap: @progress-text-gap;
13
16
  }
14
17
 
15
18
  .van-progress {
16
- position: relative;
17
- height: var(--van-progress-height);
18
- background: var(--van-progress-background-color);
19
- border-radius: var(--van-progress-height);
19
+ display: flex;
20
+ align-items: center;
21
+ gap: var(--van-progress-text-gap);
22
+
23
+ &--large {
24
+ --van-progress-height: var(--van-progress-large-height);
25
+ --van-progress-pivot-font-size: var(--van-progress-large-pivot-font-size);
26
+ }
27
+
28
+ &__track {
29
+ position: relative;
30
+ flex: 1;
31
+ height: var(--van-progress-height);
32
+ overflow: hidden;
33
+ background: var(--van-progress-background-color);
34
+ border-radius: var(--van-border-radius-max);
35
+ }
20
36
 
21
37
  &__portion {
22
38
  position: absolute;
@@ -24,7 +40,7 @@
24
40
  width: 100%;
25
41
  height: 100%;
26
42
  background: var(--van-progress-color);
27
- border-radius: inherit;
43
+ border-radius: var(--van-border-radius-max);
28
44
  transform-origin: 0;
29
45
  transition: all var(--van-animation-duration-base)
30
46
  var(--van-animation-timing-function-enter);
@@ -35,23 +51,17 @@
35
51
  }
36
52
 
37
53
  &__pivot {
38
- position: absolute;
39
- top: 50%;
54
+ flex: none;
40
55
  box-sizing: border-box;
41
- min-width: 3.6em;
42
56
  padding: var(--van-progress-pivot-padding);
43
57
  color: var(--van-progress-pivot-text-color);
44
58
  font-size: var(--van-progress-pivot-font-size);
45
59
  line-height: var(--van-progress-pivot-line-height);
46
60
  text-align: center;
47
61
  word-break: keep-all;
48
- background: var(--van-progress-pivot-background-color);
49
- border-radius: 1em;
50
- transition: all var(--van-animation-duration-base)
51
- var(--van-animation-timing-function-enter);
52
62
 
53
63
  &--inactive {
54
- background: var(--van-progress-inactive-color);
64
+ color: var(--van-progress-inactive-color);
55
65
  }
56
66
  }
57
67
  }
@@ -1,5 +1,6 @@
1
1
  import type { ComponentPublicInstance } from 'vue';
2
2
  import type { ProgressProps } from './Progress';
3
+ export declare type ProgressSize = 'default' | 'large';
3
4
  export declare type ProgressExpose = {
4
5
  resize: () => void;
5
6
  };
@@ -1,11 +1,14 @@
1
1
  @import '../style/var.less';
2
2
 
3
- @progress-height: 4px;
3
+ @progress-height: 6px;
4
+ @progress-large-height: 8px;
4
5
  @progress-color: var(--van-primary-color);
5
6
  @progress-inactive-color: var(--van-gray-5);
6
- @progress-background-color: var(--van-gray-3);
7
- @progress-pivot-padding: 0 5px;
8
- @progress-pivot-text-color: var(--van-white);
9
- @progress-pivot-font-size: var(--van-font-size-xs);
10
- @progress-pivot-line-height: 1.6;
11
- @progress-pivot-background-color: var(--van-primary-color);
7
+ @progress-background-color: var(--van-gray-2);
8
+ @progress-pivot-padding: 0;
9
+ @progress-pivot-text-color: var(--van-text-color-2);
10
+ @progress-pivot-font-size: var(--van-font-size-sm);
11
+ @progress-large-pivot-font-size: var(--van-font-size-md);
12
+ @progress-pivot-line-height: var(--van-line-height-lg);
13
+ @progress-pivot-background-color: var(--van-text-color-2);
14
+ @progress-text-gap: var(--van-padding-sm);
@@ -1,3 +1,5 @@
1
1
  require("../../style/base.css");
2
+ require("../../badge/index.css");
3
+ require("../../icon/index.css");
2
4
  require("../../loading/index.css");
3
5
  require("../index.css");
@@ -1,3 +1,5 @@
1
1
  require("../../style/base.less");
2
+ require("../../badge/index.less");
3
+ require("../../icon/index.less");
2
4
  require("../../loading/index.less");
3
5
  require("../index.less");
@@ -1 +1 @@
1
- :root{--van-black: #1b2129;--van-white: #fff;--van-gray-1: #f7f9fa;--van-gray-2: #f1f4f6;--van-gray-3: #edf1f5;--van-gray-4: #e1e5eb;--van-gray-5: #c4c9cf;--van-gray-6: #8b949e;--van-gray-7: #626c78;--van-gray-8: #2e3742;--van-red: #f55047;--van-orange: #ffb800;--van-orange-dark: #1b2129;--van-orange-light: #fffbe8;--van-green: #3fbe72;--van-blue: #246fe5;--van-blue-900: #1034b2;--van-blue-800: #1241bf;--van-blue-700: #1b4acc;--van-blue-600: #215dd9;--van-blue-500: #246fe5;--van-blue-400: #2481f2;--van-blue-300: #64a6f7;--van-blue-200: #9fc9fb;--van-blue-100: #d9ebff;--van-blue-50: #ebf6ff;--van-green-900: #13753f;--van-green-800: #0f8843;--van-green-700: #0c9b4a;--van-green-600: #15ae55;--van-green-500: #3fbe72;--van-green-400: #69cd90;--van-green-300: #8edbab;--van-green-200: #b6e9c7;--van-green-100: #daf7e1;--van-green-50: #ebffeb;--van-red-900: #b80000;--van-red-800: #c71412;--van-red-700: #d72824;--van-red-600: #e63c35;--van-red-500: #f55047;--van-red-400: #f8766f;--van-red-300: #fa9b96;--van-red-200: #fdc1be;--van-red-100: #ffe6e5;--van-red-50: #fff5f5;--van-orange-900: #cc5300;--van-orange-800: #d96c00;--van-orange-700: #e68600;--van-orange-600: #f29f00;--van-orange-500: #ffb800;--van-orange-400: #ffcc47;--van-orange-300: #ffd873;--van-orange-200: #ffe399;--van-orange-100: #fff0cc;--van-orange-50: #fffbe6;--van-grey-50: #f7f9fa;--van-grey-100: #f1f4f6;--van-grey-200: #e8ecf0;--van-grey-300: #e1e5eb;--van-grey-400: #c4c9cf;--van-grey-500: #8b949e;--van-grey-600: #626c78;--van-grey-700: #424c59;--van-grey-800: #2e3742;--van-grey-900: #1b2129;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-background-color-black: var(--van-black);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-size-xl: 20px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-line-height-xl: 24px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-4);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}:root.van-theme-dark{--van-text-color: #f1f4f6;--van-text-color-2: #c4c9cf;--van-text-color-3: #8b949e;--van-active-color: #2e3742;--van-background-color: #151a20;--van-background-color-light: #1b2129;--van-border-color: #424c59}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
1
+ :root{--van-black: #1b2129;--van-white: #fff;--van-gray-1: #f7f9fa;--van-gray-2: #f1f4f6;--van-gray-3: #edf1f5;--van-gray-4: #e1e5eb;--van-gray-5: #c4c9cf;--van-gray-6: #8b949e;--van-gray-7: #626c78;--van-gray-8: #2e3742;--van-red: #f55047;--van-orange: #ffb800;--van-orange-dark: #1b2129;--van-orange-light: #fffbe8;--van-green: #3fbe72;--van-blue: #246fe5;--van-blue-900: #1034b2;--van-blue-800: #1241bf;--van-blue-700: #1b4acc;--van-blue-600: #215dd9;--van-blue-500: #246fe5;--van-blue-400: #2481f2;--van-blue-300: #64a6f7;--van-blue-200: #9fc9fb;--van-blue-100: #d9ebff;--van-blue-50: #ebf6ff;--van-green-900: #13753f;--van-green-800: #0f8843;--van-green-700: #0c9b4a;--van-green-600: #15ae55;--van-green-500: #3fbe72;--van-green-400: #69cd90;--van-green-300: #8edbab;--van-green-200: #b6e9c7;--van-green-100: #daf7e1;--van-green-50: #ebffeb;--van-red-900: #b80000;--van-red-800: #c71412;--van-red-700: #d72824;--van-red-600: #e63c35;--van-red-500: #f55047;--van-red-400: #f8766f;--van-red-300: #fa9b96;--van-red-200: #fdc1be;--van-red-100: #ffe6e5;--van-red-50: #fff5f5;--van-orange-900: #cc5300;--van-orange-800: #d96c00;--van-orange-700: #e68600;--van-orange-600: #f29f00;--van-orange-500: #ffb800;--van-orange-400: #ffcc47;--van-orange-300: #ffd873;--van-orange-200: #ffe399;--van-orange-100: #fff0cc;--van-orange-50: #fffbe6;--van-grey-50: #f7f9fa;--van-grey-100: #f1f4f6;--van-grey-200: #e8ecf0;--van-grey-300: #e1e5eb;--van-grey-400: #c4c9cf;--van-grey-500: #8b949e;--van-grey-600: #626c78;--van-grey-700: #424c59;--van-grey-800: #2e3742;--van-grey-900: #1b2129;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-gradient-gray: linear-gradient(90deg, var(--van-gray-2), rgba(241, 244, 246, 0));--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-background-color-black: var(--van-black);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-size-xl: 20px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-line-height-xl: 24px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-4);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}:root.van-theme-dark{--van-text-color: #f1f4f6;--van-text-color-2: #c4c9cf;--van-text-color-3: #8b949e;--van-active-color: #2e3742;--van-background-color: #151a20;--van-background-color-light: #1b2129;--van-border-color: #424c59}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.gradient-gray,.van-gradient-gray{background:var(--van-gradient-gray)}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
@@ -26,6 +26,11 @@
26
26
  .multi-ellipsis(3);
27
27
  }
28
28
 
29
+ .gradient-gray,
30
+ .van-gradient-gray {
31
+ background: var(--van-gradient-gray);
32
+ }
33
+
29
34
  .van-safe-area-top {
30
35
  padding-top: constant(safe-area-inset-top);
31
36
  padding-top: env(safe-area-inset-top);
@@ -1 +1 @@
1
- :root{--van-black: #1b2129;--van-white: #fff;--van-gray-1: #f7f9fa;--van-gray-2: #f1f4f6;--van-gray-3: #edf1f5;--van-gray-4: #e1e5eb;--van-gray-5: #c4c9cf;--van-gray-6: #8b949e;--van-gray-7: #626c78;--van-gray-8: #2e3742;--van-red: #f55047;--van-orange: #ffb800;--van-orange-dark: #1b2129;--van-orange-light: #fffbe8;--van-green: #3fbe72;--van-blue: #246fe5;--van-blue-900: #1034b2;--van-blue-800: #1241bf;--van-blue-700: #1b4acc;--van-blue-600: #215dd9;--van-blue-500: #246fe5;--van-blue-400: #2481f2;--van-blue-300: #64a6f7;--van-blue-200: #9fc9fb;--van-blue-100: #d9ebff;--van-blue-50: #ebf6ff;--van-green-900: #13753f;--van-green-800: #0f8843;--van-green-700: #0c9b4a;--van-green-600: #15ae55;--van-green-500: #3fbe72;--van-green-400: #69cd90;--van-green-300: #8edbab;--van-green-200: #b6e9c7;--van-green-100: #daf7e1;--van-green-50: #ebffeb;--van-red-900: #b80000;--van-red-800: #c71412;--van-red-700: #d72824;--van-red-600: #e63c35;--van-red-500: #f55047;--van-red-400: #f8766f;--van-red-300: #fa9b96;--van-red-200: #fdc1be;--van-red-100: #ffe6e5;--van-red-50: #fff5f5;--van-orange-900: #cc5300;--van-orange-800: #d96c00;--van-orange-700: #e68600;--van-orange-600: #f29f00;--van-orange-500: #ffb800;--van-orange-400: #ffcc47;--van-orange-300: #ffd873;--van-orange-200: #ffe399;--van-orange-100: #fff0cc;--van-orange-50: #fffbe6;--van-grey-50: #f7f9fa;--van-grey-100: #f1f4f6;--van-grey-200: #e8ecf0;--van-grey-300: #e1e5eb;--van-grey-400: #c4c9cf;--van-grey-500: #8b949e;--van-grey-600: #626c78;--van-grey-700: #424c59;--van-grey-800: #2e3742;--van-grey-900: #1b2129;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-background-color-black: var(--van-black);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-size-xl: 20px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-line-height-xl: 24px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-4);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}:root.van-theme-dark{--van-text-color: #f1f4f6;--van-text-color-2: #c4c9cf;--van-text-color-3: #8b949e;--van-active-color: #2e3742;--van-background-color: #151a20;--van-background-color-light: #1b2129;--van-border-color: #424c59}
1
+ :root{--van-black: #1b2129;--van-white: #fff;--van-gray-1: #f7f9fa;--van-gray-2: #f1f4f6;--van-gray-3: #edf1f5;--van-gray-4: #e1e5eb;--van-gray-5: #c4c9cf;--van-gray-6: #8b949e;--van-gray-7: #626c78;--van-gray-8: #2e3742;--van-red: #f55047;--van-orange: #ffb800;--van-orange-dark: #1b2129;--van-orange-light: #fffbe8;--van-green: #3fbe72;--van-blue: #246fe5;--van-blue-900: #1034b2;--van-blue-800: #1241bf;--van-blue-700: #1b4acc;--van-blue-600: #215dd9;--van-blue-500: #246fe5;--van-blue-400: #2481f2;--van-blue-300: #64a6f7;--van-blue-200: #9fc9fb;--van-blue-100: #d9ebff;--van-blue-50: #ebf6ff;--van-green-900: #13753f;--van-green-800: #0f8843;--van-green-700: #0c9b4a;--van-green-600: #15ae55;--van-green-500: #3fbe72;--van-green-400: #69cd90;--van-green-300: #8edbab;--van-green-200: #b6e9c7;--van-green-100: #daf7e1;--van-green-50: #ebffeb;--van-red-900: #b80000;--van-red-800: #c71412;--van-red-700: #d72824;--van-red-600: #e63c35;--van-red-500: #f55047;--van-red-400: #f8766f;--van-red-300: #fa9b96;--van-red-200: #fdc1be;--van-red-100: #ffe6e5;--van-red-50: #fff5f5;--van-orange-900: #cc5300;--van-orange-800: #d96c00;--van-orange-700: #e68600;--van-orange-600: #f29f00;--van-orange-500: #ffb800;--van-orange-400: #ffcc47;--van-orange-300: #ffd873;--van-orange-200: #ffe399;--van-orange-100: #fff0cc;--van-orange-50: #fffbe6;--van-grey-50: #f7f9fa;--van-grey-100: #f1f4f6;--van-grey-200: #e8ecf0;--van-grey-300: #e1e5eb;--van-grey-400: #c4c9cf;--van-grey-500: #8b949e;--van-grey-600: #626c78;--van-grey-700: #424c59;--van-grey-800: #2e3742;--van-grey-900: #1b2129;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-gradient-gray: linear-gradient(90deg, var(--van-gray-2), rgba(241, 244, 246, 0));--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-background-color-black: var(--van-black);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-size-xl: 20px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-line-height-xl: 24px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-4);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}:root.van-theme-dark{--van-text-color: #f1f4f6;--van-text-color-2: #c4c9cf;--van-text-color-3: #8b949e;--van-active-color: #2e3742;--van-background-color: #151a20;--van-background-color-light: #1b2129;--van-border-color: #424c59}
@@ -81,6 +81,7 @@
81
81
  // Gradient Colors
82
82
  --van-gradient-red: @gradient-red;
83
83
  --van-gradient-orange: @gradient-orange;
84
+ --van-gradient-gray: @gradient-gray;
84
85
 
85
86
  // Component Colors
86
87
  --van-primary-color: @primary-color;
@@ -79,6 +79,7 @@
79
79
  // Gradient Colors
80
80
  @gradient-red: linear-gradient(to right, #ff6034, #ee0a24);
81
81
  @gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);
82
+ @gradient-gray: linear-gradient(90deg, var(--van-gray-2), rgb(241 244 246 / 0%));
82
83
 
83
84
  // Component Colors
84
85
  @primary-color: var(--van-blue);
@@ -1,3 +1,5 @@
1
1
  require("../../style/base.css");
2
+ require("../../badge/index.css");
3
+ require("../../icon/index.css");
2
4
  require("../../loading/index.css");
3
5
  require("../index.css");
@@ -1,3 +1,5 @@
1
1
  require("../../style/base.less");
2
+ require("../../badge/index.less");
3
+ require("../../icon/index.less");
2
4
  require("../../loading/index.less");
3
5
  require("../index.less");
@@ -27,6 +27,7 @@ declare const titleBarProps: {
27
27
  type: BooleanConstructor;
28
28
  default: true;
29
29
  };
30
+ required: BooleanConstructor;
30
31
  };
31
32
  export declare type TitleBarProps = ExtractPropTypes<typeof titleBarProps>;
32
33
  declare const _default: import("vue").DefineComponent<{
@@ -56,6 +57,7 @@ declare const _default: import("vue").DefineComponent<{
56
57
  type: BooleanConstructor;
57
58
  default: true;
58
59
  };
60
+ required: BooleanConstructor;
59
61
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change" | "update:modelValue" | "click-action")[], "click" | "change" | "update:modelValue" | "click-action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
60
62
  title: {
61
63
  type: import("vue").PropType<string>;
@@ -83,16 +85,18 @@ declare const _default: import("vue").DefineComponent<{
83
85
  type: BooleanConstructor;
84
86
  default: true;
85
87
  };
88
+ required: BooleanConstructor;
86
89
  }>> & {
87
90
  onChange?: ((...args: any[]) => any) | undefined;
88
91
  onClick?: ((...args: any[]) => any) | undefined;
89
92
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
90
93
  "onClick-action"?: ((...args: any[]) => any) | undefined;
91
94
  }, {
95
+ required: boolean;
92
96
  title: string;
93
97
  size: TitleBarSize;
94
- modelValue: boolean;
95
98
  description: string;
99
+ modelValue: boolean;
96
100
  actionText: string;
97
101
  expandable: boolean;
98
102
  showArrow: boolean;
@@ -36,7 +36,8 @@ const titleBarProps = {
36
36
  showAction: Boolean,
37
37
  size: (0, import_utils.makeStringProp)("default"),
38
38
  expandable: Boolean,
39
- modelValue: import_utils.truthProp
39
+ modelValue: import_utils.truthProp,
40
+ required: Boolean
40
41
  };
41
42
  var stdin_default = (0, import_vue.defineComponent)({
42
43
  name,
@@ -73,7 +74,8 @@ var stdin_default = (0, import_vue.defineComponent)({
73
74
  return (0, import_vue.createVNode)("section", {
74
75
  "class": bem({
75
76
  mini: props.size === "mini",
76
- expandable: props.expandable
77
+ expandable: props.expandable,
78
+ required: props.required
77
79
  })
78
80
  }, [(0, import_vue.createVNode)("div", {
79
81
  "class": bem("header"),
@@ -95,7 +97,7 @@ var stdin_default = (0, import_vue.defineComponent)({
95
97
  "class": bem("action-divider")
96
98
  }, null), (0, import_vue.createVNode)(import_button.Button, {
97
99
  "type": "text",
98
- "size": "small",
100
+ "size": "normal",
99
101
  "text": props.actionText,
100
102
  "onClick": onActionClick
101
103
  }, null)])]), props.size !== "mini" && props.showDescription && props.description && (0, import_vue.createVNode)("span", {
@@ -1 +1 @@
1
- :root{--van-title-bar-padding: 12px var(--van-padding-md) 4px;--van-title-bar-gap: 4px;--van-title-bar-title-color: var(--van-gray-8);--van-title-bar-description-color: var(--van-gray-6);--van-title-bar-action-divider-before-gap: 8px;--van-title-bar-action-divider-after-gap: 2px;--van-title-bar-action-divider-color: var(--van-gray-4);--van-title-bar-action-divider-height: 12px}.van-title-bar{color:var(--van-title-bar-title-color)}.van-title-bar__header{display:flex;align-items:flex-start;width:100%;padding:var(--van-title-bar-padding);color:inherit;font:inherit;text-align:left;background:transparent;border:0}.van-title-bar--expandable .van-title-bar__header{cursor:pointer}.van-title-bar--expandable .van-title-bar__header:active{background:var(--van-active-color)}.van-title-bar__icon{flex:none;margin:3px 4px 0 0;font-size:16px}.van-title-bar__text{display:flex;flex:1;flex-direction:column;min-width:0}.van-title-bar__title-row{display:flex;align-items:center;min-width:0}.van-title-bar__text strong{flex:0 1 auto;min-width:0;overflow:hidden;font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__description{overflow:hidden;color:var(--van-title-bar-description-color);font-size:var(--van-font-size-sm);font-weight:400;line-height:var(--van-line-height-md);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__action{display:flex;flex:none;align-items:center;margin-left:var(--van-title-bar-action-divider-before-gap)}.van-title-bar__action-divider{width:1px;height:var(--van-title-bar-action-divider-height);margin-right:var(--van-title-bar-action-divider-after-gap);background:var(--van-title-bar-action-divider-color)}.van-title-bar__action .van-button{flex:none}.van-title-bar__arrow{flex:none;margin:4px 0 0 8px;color:var(--van-gray-6);font-size:14px;transition:transform var(--van-animation-duration-fast);transform:rotate(180deg)}.van-title-bar__arrow--expanded{transform:rotate(0)}.van-title-bar--mini .van-title-bar__header{padding-top:12px;padding-bottom:4px}.van-title-bar--mini .van-title-bar__text strong{font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}.van-title-bar--mini .van-title-bar__icon{margin-top:3px;font-size:14px}.van-title-bar--mini .van-title-bar__arrow{margin-top:3px}
1
+ :root{--van-title-bar-padding: 12px var(--van-padding-md) 4px;--van-title-bar-gap: 4px;--van-title-bar-title-color: var(--van-gray-8);--van-title-bar-description-color: var(--van-gray-6);--van-title-bar-required-color: var(--van-danger-color);--van-title-bar-action-divider-before-gap: 8px;--van-title-bar-action-divider-after-gap: 2px;--van-title-bar-action-divider-color: var(--van-gray-4);--van-title-bar-action-divider-height: 12px;--van-title-bar-action-padding: 0 8px}.van-title-bar{color:var(--van-title-bar-title-color)}.van-title-bar__header{display:flex;align-items:flex-start;width:100%;padding:var(--van-title-bar-padding);color:inherit;font:inherit;text-align:left;background:transparent;border:0}.van-title-bar--required .van-title-bar__header{position:relative;overflow:visible}.van-title-bar--required .van-title-bar__header:before{position:absolute;top:12px;left:var(--van-padding-xs);color:var(--van-title-bar-required-color);font-size:var(--van-font-size-md);line-height:var(--van-line-height-lg);content:"*"}.van-title-bar--expandable .van-title-bar__header{cursor:pointer}.van-title-bar--expandable .van-title-bar__header:active{background:var(--van-active-color)}.van-title-bar__icon{flex:none;margin:3px 4px 0 0;font-size:16px}.van-title-bar__text{display:flex;flex:1;flex-direction:column;min-width:0}.van-title-bar__title-row{display:flex;align-items:center;min-width:0}.van-title-bar__text strong{flex:0 1 auto;min-width:0;overflow:hidden;font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__description{overflow:hidden;color:var(--van-title-bar-description-color);font-size:var(--van-font-size-sm);font-weight:400;line-height:var(--van-line-height-md);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__action{display:flex;flex:none;align-items:center;margin-left:var(--van-title-bar-action-divider-before-gap)}.van-title-bar__action-divider{width:1px;height:var(--van-title-bar-action-divider-height);margin-right:var(--van-title-bar-action-divider-after-gap);background:var(--van-title-bar-action-divider-color)}.van-title-bar__action .van-button{flex:none;height:var(--van-line-height-lg);padding:var(--van-title-bar-action-padding);font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg)}.van-title-bar__arrow{flex:none;margin:4px 0 0 8px;color:var(--van-gray-6);font-size:14px;transition:transform var(--van-animation-duration-fast);transform:rotate(180deg)}.van-title-bar__arrow--expanded{transform:rotate(0)}.van-title-bar--mini .van-title-bar__header{padding-top:12px;padding-bottom:4px}.van-title-bar--mini .van-title-bar__text strong{font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}.van-title-bar--mini .van-title-bar__icon{margin-top:3px;font-size:14px}.van-title-bar--mini .van-title-bar__arrow{margin-top:3px}.van-title-bar--mini .van-title-bar__action .van-button{height:var(--van-line-height-md);font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}
@@ -25,6 +25,7 @@ export declare const TitleBar: import("../utils").WithInstall<import("vue").Defi
25
25
  type: BooleanConstructor;
26
26
  default: true;
27
27
  };
28
+ required: BooleanConstructor;
28
29
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change" | "update:modelValue" | "click-action")[], "click" | "change" | "update:modelValue" | "click-action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
30
  title: {
30
31
  type: import("vue").PropType<string>;
@@ -52,16 +53,18 @@ export declare const TitleBar: import("../utils").WithInstall<import("vue").Defi
52
53
  type: BooleanConstructor;
53
54
  default: true;
54
55
  };
56
+ required: BooleanConstructor;
55
57
  }>> & {
56
58
  onChange?: ((...args: any[]) => any) | undefined;
57
59
  onClick?: ((...args: any[]) => any) | undefined;
58
60
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
59
61
  "onClick-action"?: ((...args: any[]) => any) | undefined;
60
62
  }, {
63
+ required: boolean;
61
64
  title: string;
62
65
  size: import("./TitleBar").TitleBarSize;
63
- modelValue: boolean;
64
66
  description: string;
67
+ modelValue: boolean;
65
68
  actionText: string;
66
69
  expandable: boolean;
67
70
  showArrow: boolean;
@@ -5,16 +5,20 @@
5
5
  --van-title-bar-gap: @title-bar-gap;
6
6
  --van-title-bar-title-color: @title-bar-title-color;
7
7
  --van-title-bar-description-color: @title-bar-description-color;
8
+ --van-title-bar-required-color: @title-bar-required-color;
8
9
  --van-title-bar-action-divider-before-gap: @title-bar-action-divider-before-gap;
9
10
  --van-title-bar-action-divider-after-gap: @title-bar-action-divider-after-gap;
10
11
  --van-title-bar-action-divider-color: @title-bar-action-divider-color;
11
12
  --van-title-bar-action-divider-height: @title-bar-action-divider-height;
13
+ --van-title-bar-action-padding: @title-bar-action-padding;
12
14
  }
13
15
 
14
16
  .van-title-bar {
15
17
  color: var(--van-title-bar-title-color);
16
18
 
17
19
  &__header { display: flex; align-items: flex-start; width: 100%; padding: var(--van-title-bar-padding); color: inherit; font: inherit; text-align: left; background: transparent; border: 0; }
20
+ &--required &__header { position: relative; overflow: visible; }
21
+ &--required &__header::before { position: absolute; top: 12px; left: var(--van-padding-xs); color: var(--van-title-bar-required-color); font-size: var(--van-font-size-md); line-height: var(--van-line-height-lg); content: '*'; }
18
22
  &--expandable &__header { cursor: pointer; &:active { background: var(--van-active-color); } }
19
23
  &__icon { flex: none; margin: 3px 4px 0 0; font-size: 16px; }
20
24
  &__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
@@ -23,11 +27,12 @@
23
27
  &__description { overflow: hidden; color: var(--van-title-bar-description-color); font-size: var(--van-font-size-sm); font-weight: 400; line-height: var(--van-line-height-md); text-overflow: ellipsis; white-space: nowrap; }
24
28
  &__action { display: flex; flex: none; align-items: center; margin-left: var(--van-title-bar-action-divider-before-gap); }
25
29
  &__action-divider { width: 1px; height: var(--van-title-bar-action-divider-height); margin-right: var(--van-title-bar-action-divider-after-gap); background: var(--van-title-bar-action-divider-color); }
26
- &__action .van-button { flex: none; }
30
+ &__action .van-button { flex: none; height: var(--van-line-height-lg); padding: var(--van-title-bar-action-padding); font-size: var(--van-font-size-md); font-weight: var(--van-font-weight-bold); line-height: var(--van-line-height-lg); }
27
31
  &__arrow { flex: none; margin: 4px 0 0 8px; color: var(--van-gray-6); font-size: 14px; transition: transform var(--van-animation-duration-fast); transform: rotate(180deg); }
28
32
  &__arrow--expanded { transform: rotate(0); }
29
33
  &--mini &__header { padding-top: 12px; padding-bottom: 4px; }
30
34
  &--mini &__text strong { font-size: var(--van-font-size-sm); line-height: var(--van-line-height-md); }
31
35
  &--mini &__icon { margin-top: 3px; font-size: 14px; }
32
36
  &--mini &__arrow { margin-top: 3px; }
37
+ &--mini &__action .van-button { height: var(--van-line-height-md); font-size: var(--van-font-size-sm); line-height: var(--van-line-height-md); }
33
38
  }
@@ -4,7 +4,9 @@
4
4
  @title-bar-gap: 4px;
5
5
  @title-bar-title-color: var(--van-gray-8);
6
6
  @title-bar-description-color: var(--van-gray-6);
7
+ @title-bar-required-color: var(--van-danger-color);
7
8
  @title-bar-action-divider-before-gap: 8px;
8
9
  @title-bar-action-divider-after-gap: 2px;
9
10
  @title-bar-action-divider-color: var(--van-gray-4);
10
11
  @title-bar-action-divider-height: 12px;
12
+ @title-bar-action-padding: 0 8px;
@@ -61,6 +61,10 @@ var stdin_default = (0, import_vue.defineComponent)({
61
61
  const expandedKeys = (0, import_vue.computed)(() => props.expandedKeys);
62
62
  const isExpanded = (id) => expandedKeys.value.includes(id);
63
63
  const isSelected = (id) => selectedKeys.value.includes(id);
64
+ const getNodeStyle = (level) => ({
65
+ paddingLeft: `calc(var(--van-padding-md) + ${level * 16}px)`,
66
+ "--van-tree-select-divider-left": `calc(var(--van-padding-md) + ${level * 16}px)`
67
+ });
64
68
  const getDescendantIds = (item) => {
65
69
  var _a;
66
70
  return ((_a = item.children) == null ? void 0 : _a.flatMap((child) => [child.id, ...getDescendantIds(child)])) || [];
@@ -123,7 +127,10 @@ var stdin_default = (0, import_vue.defineComponent)({
123
127
  if (!hasChildren && slots.leaf) {
124
128
  return (0, import_vue.createVNode)("div", {
125
129
  "key": item.id,
126
- "class": bem("node")
130
+ "class": [bem("node"), bem("leaf", {
131
+ divider: props.showDivider
132
+ })],
133
+ "style": getNodeStyle(level)
127
134
  }, [slots.leaf({
128
135
  item,
129
136
  level
@@ -140,9 +147,7 @@ var stdin_default = (0, import_vue.defineComponent)({
140
147
  }),
141
148
  "title": item.text,
142
149
  "border": props.showDivider,
143
- "style": {
144
- paddingLeft: `calc(var(--van-padding-md) + ${level * 16}px)`
145
- },
150
+ "style": getNodeStyle(level),
146
151
  "rightSelect": selectable && selectionState !== "indeterminate" ? selectionState === "checked" : void 0,
147
152
  "selectType": props.multiple ? "checkbox" : "radio",
148
153
  "onUpdate:rightSelect": (value) => updateSelected(item, value)
@@ -1 +1 @@
1
- :root{--van-tree-select-indent: var(--van-padding-md);--van-tree-select-arrow-size: 16px;--van-tree-select-animation-duration: .24s}.van-tree-select{overflow:hidden;color:var(--van-cell-text-color);background:var(--van-white)}.van-tree-select__node{overflow:hidden}.van-tree-select__cell{min-height:44px;padding:10px var(--van-padding-md)}.van-tree-select__cell .van-cell__title-row{align-items:center}.van-tree-select__cell .van-cell__title{font-size:var(--van-font-size-md);line-height:22px}.van-tree-select__node:not(:last-child)>.van-tree-select__cell:not(.van-cell--borderless):after{display:block}.van-tree-select__arrow{flex:none;margin-right:var(--van-padding-base);color:var(--van-gray-5);font-size:var(--van-tree-select-arrow-size);transition:transform var(--van-tree-select-animation-duration) ease}.van-tree-select__arrow--expanded{transform:rotate(0)}.van-tree-select__arrow:not(.van-tree-select__arrow--expanded){transform:rotate(-90deg)}.van-tree-select__expand-control{display:inline-flex;align-items:center;padding:0;color:inherit;font:inherit;line-height:inherit;text-align:left;background:transparent;border:0}.van-tree-select__expand-control:not(:disabled){cursor:pointer}.van-tree-select__expand-control:disabled{color:var(--van-text-color-3);cursor:not-allowed}.van-tree-select__children{overflow:hidden}.van-tree-select__indeterminate{position:relative;display:block;width:14px;height:14px;padding:0;background:var(--van-primary-color);border:0;border-radius:50%}.van-tree-select__indeterminate:after{position:absolute;top:calc(50% - 1px);right:25%;left:25%;height:2px;content:"";background:var(--van-white);border-radius:1px}.van-tree-select-expand-enter-active,.van-tree-select-expand-leave-active{overflow:hidden;transition:max-height var(--van-tree-select-animation-duration) ease,opacity var(--van-tree-select-animation-duration) ease}.van-tree-select-expand-enter-from,.van-tree-select-expand-leave-to{max-height:0;opacity:0}.van-tree-select-expand-enter-to,.van-tree-select-expand-leave-from{max-height:1000px;opacity:1}
1
+ :root{--van-tree-select-indent: var(--van-padding-md);--van-tree-select-arrow-size: 16px;--van-tree-select-animation-duration: .24s;--van-tree-select-divider-left: var(--van-padding-md)}.van-tree-select{overflow:hidden;color:var(--van-cell-text-color);background:var(--van-white)}.van-tree-select__node{overflow:hidden}.van-tree-select__leaf{position:relative;box-sizing:border-box}.van-tree-select__leaf--divider:not(:last-child):after{position:absolute;right:var(--van-padding-md);bottom:0;left:var(--van-tree-select-divider-left);height:1px;background:var(--van-border-color);content:"";transform:scaleY(.5)}.van-tree-select__cell{min-height:44px;padding:10px var(--van-padding-md)}.van-tree-select__cell .van-cell__title-row{align-items:center}.van-tree-select__cell .van-cell__title{font-size:var(--van-font-size-md);line-height:22px}.van-tree-select__node:not(:last-child)>.van-tree-select__cell:not(.van-cell--borderless):after{display:block;left:var(--van-tree-select-divider-left)}.van-tree-select__cell--branch:not(.van-cell--borderless):after{display:block;left:var(--van-tree-select-divider-left)}.van-tree-select__arrow{flex:none;margin-right:var(--van-padding-base);color:var(--van-gray-5);font-size:var(--van-tree-select-arrow-size);transition:transform var(--van-tree-select-animation-duration) ease}.van-tree-select__arrow--expanded{transform:rotate(0)}.van-tree-select__arrow:not(.van-tree-select__arrow--expanded){transform:rotate(-90deg)}.van-tree-select__expand-control{display:inline-flex;align-items:center;padding:0;color:inherit;font:inherit;line-height:inherit;text-align:left;background:transparent;border:0}.van-tree-select__expand-control:not(:disabled){cursor:pointer}.van-tree-select__expand-control:disabled{color:var(--van-text-color-3);cursor:not-allowed}.van-tree-select__children{overflow:hidden}.van-tree-select__indeterminate{position:relative;display:block;width:14px;height:14px;padding:0;background:var(--van-primary-color);border:0;border-radius:50%}.van-tree-select__indeterminate:after{position:absolute;top:calc(50% - 1px);right:25%;left:25%;height:2px;content:"";background:var(--van-white);border-radius:1px}.van-tree-select-expand-enter-active,.van-tree-select-expand-leave-active{overflow:hidden;transition:max-height var(--van-tree-select-animation-duration) ease,opacity var(--van-tree-select-animation-duration) ease}.van-tree-select-expand-enter-from,.van-tree-select-expand-leave-to{max-height:0;opacity:0}.van-tree-select-expand-enter-to,.van-tree-select-expand-leave-from{max-height:1000px;opacity:1}