persagy-vant 0.0.33 → 0.0.35

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 (94) hide show
  1. package/es/badge/Badge.d.ts +14 -0
  2. package/es/badge/Badge.mjs +2 -0
  3. package/es/badge/index.css +1 -1
  4. package/es/badge/index.d.ts +10 -1
  5. package/es/badge/index.less +6 -0
  6. package/es/badge/var.less +1 -0
  7. package/es/button/Button.d.ts +1 -1
  8. package/es/button/index.d.ts +1 -1
  9. package/es/field/Field.d.ts +5 -18
  10. package/es/field/Field.mjs +3 -2
  11. package/es/field/index.d.ts +3 -10
  12. package/es/index.d.ts +1 -1
  13. package/es/index.mjs +1 -1
  14. package/es/loading/Loading.mjs +16 -19
  15. package/es/material-action-bar/index.css +1 -1
  16. package/es/material-action-bar/index.less +3 -3
  17. package/es/material-add/MaterialAdd.mjs +0 -1
  18. package/es/material-add/index.css +1 -1
  19. package/es/material-detail/MaterialDetail.mjs +7 -2
  20. package/es/material-display-bar/MaterialDisplayBar.mjs +1 -0
  21. package/es/material-display-bar/index.css +1 -1
  22. package/es/material-display-bar/index.d.ts +103 -2
  23. package/es/material-display-bar/index.less +34 -1
  24. package/es/material-display-bar/index.mjs +4 -2
  25. package/es/material-display-bar/var.less +1 -0
  26. package/es/rate/RateCell.d.ts +1 -1
  27. package/es/rate/index.d.ts +1 -1
  28. package/es/search/Search.d.ts +17 -13
  29. package/es/search/Search.mjs +1 -0
  30. package/es/search/index.d.ts +10 -8
  31. package/es/sidebar/index.css +1 -1
  32. package/es/sidebar/index.less +1 -0
  33. package/es/sidebar-item/index.css +1 -1
  34. package/es/sidebar-item/index.less +37 -11
  35. package/es/sidebar-item/var.less +7 -7
  36. package/es/space/Space.d.ts +1 -1
  37. package/es/space/index.d.ts +1 -1
  38. package/es/tag/Tag.d.ts +1 -1
  39. package/es/tag/index.d.ts +1 -1
  40. package/lib/badge/Badge.d.ts +14 -0
  41. package/lib/badge/Badge.js +2 -0
  42. package/lib/badge/index.css +1 -1
  43. package/lib/badge/index.d.ts +10 -1
  44. package/lib/badge/index.less +6 -0
  45. package/lib/badge/var.less +1 -0
  46. package/lib/button/Button.d.ts +1 -1
  47. package/lib/button/index.d.ts +1 -1
  48. package/lib/field/Field.d.ts +5 -18
  49. package/lib/field/Field.js +3 -2
  50. package/lib/field/index.d.ts +3 -10
  51. package/lib/index.css +1 -1
  52. package/lib/index.d.ts +1 -1
  53. package/lib/index.js +1 -1
  54. package/lib/loading/Loading.js +16 -19
  55. package/lib/material-action-bar/index.css +1 -1
  56. package/lib/material-action-bar/index.less +3 -3
  57. package/lib/material-add/MaterialAdd.js +0 -1
  58. package/lib/material-add/index.css +1 -1
  59. package/lib/material-detail/MaterialDetail.js +7 -2
  60. package/lib/material-display-bar/MaterialDisplayBar.js +1 -0
  61. package/lib/material-display-bar/index.css +1 -1
  62. package/lib/material-display-bar/index.d.ts +103 -2
  63. package/lib/material-display-bar/index.js +4 -2
  64. package/lib/material-display-bar/index.less +34 -1
  65. package/lib/material-display-bar/var.less +1 -0
  66. package/lib/rate/RateCell.d.ts +1 -1
  67. package/lib/rate/index.d.ts +1 -1
  68. package/lib/search/Search.d.ts +17 -13
  69. package/lib/search/Search.js +1 -0
  70. package/lib/search/index.d.ts +10 -8
  71. package/lib/sidebar/index.css +1 -1
  72. package/lib/sidebar/index.less +1 -0
  73. package/lib/sidebar-item/index.css +1 -1
  74. package/lib/sidebar-item/index.less +37 -11
  75. package/lib/sidebar-item/var.less +7 -7
  76. package/lib/space/Space.d.ts +1 -1
  77. package/lib/space/index.d.ts +1 -1
  78. package/lib/tag/Tag.d.ts +1 -1
  79. package/lib/tag/index.d.ts +1 -1
  80. package/lib/vant.cjs.js +34 -25
  81. package/lib/vant.es.js +34 -25
  82. package/lib/vant.js +34 -25
  83. package/lib/vant.min.js +1 -1
  84. package/lib/web-types.json +1 -1
  85. package/package.json +1 -1
  86. package/skills/use-persagy-vant/SKILL.md +3 -3
  87. package/skills/use-persagy-vant/references/business-component-catalog.md +1 -1
  88. package/skills/use-persagy-vant/references/component-catalog.md +16 -9
  89. package/skills/use-persagy-vant/references/component-documentation.md +20 -1
  90. package/skills/use-persagy-vant/references/component-gap-template.md +3 -0
  91. package/skills/use-persagy-vant/references/design-interaction-baseline.md +10 -4
  92. package/skills/use-persagy-vant/references/page-recipes.md +17 -14
  93. package/skills/use-persagy-vant/references/reuse-policy.md +47 -3
  94. package/skills/use-persagy-vant/references/usage-patterns.md +5 -3
@@ -18,51 +18,77 @@
18
18
 
19
19
  .van-sidebar-item {
20
20
  position: relative;
21
- display: block;
21
+ display: flex;
22
22
  box-sizing: border-box;
23
+ min-height: 60px;
23
24
  padding: var(--van-sidebar-padding);
24
25
  overflow: hidden;
25
26
  color: var(--van-sidebar-text-color);
26
27
  font-size: var(--van-sidebar-font-size);
27
28
  line-height: var(--van-sidebar-line-height);
29
+ text-align: center;
28
30
  background: var(--van-sidebar-background-color);
29
31
  cursor: pointer;
30
32
  user-select: none;
31
33
 
32
34
  &:active {
33
- background-color: var(--van-sidebar-active-color);
34
- }
35
-
36
- &:not(:last-child)::after {
37
- border-bottom-width: 1px;
35
+ background-color: var(--van-sidebar-background-color);
38
36
  }
39
37
 
40
38
  &__text {
41
- // https://github.com/vant-ui/vant/issues/7455
42
- word-break: break-all;
39
+ position: static;
40
+ display: flex;
41
+ flex: 1;
42
+ align-items: center;
43
+ justify-content: center;
44
+ min-width: 0;
45
+ overflow-wrap: anywhere;
46
+ word-break: break-word;
43
47
  }
44
48
 
45
49
  &--select {
50
+ padding: 4px;
46
51
  color: var(--van-sidebar-selected-text-color);
47
52
  font-weight: var(--van-sidebar-selected-font-weight);
48
53
 
49
54
  &,
50
55
  &:active {
56
+ background-color: var(--van-sidebar-background-color);
57
+ }
58
+
59
+ .van-sidebar-item__text {
60
+ min-height: 52px;
61
+ padding: 0 4px;
51
62
  background-color: var(--van-sidebar-selected-background-color);
63
+ border-radius: var(--van-border-radius-lg);
52
64
  }
53
65
 
54
66
  &::before {
55
67
  position: absolute;
56
- top: 50%;
57
- left: 0;
68
+ top: 24px;
69
+ left: 8px;
58
70
  width: var(--van-sidebar-selected-border-width);
59
71
  height: var(--van-sidebar-selected-border-height);
60
72
  background-color: var(--van-sidebar-selected-border-color);
61
- transform: translateY(-50%);
73
+ border-radius: var(--van-border-radius-md);
62
74
  content: '';
63
75
  }
64
76
  }
65
77
 
78
+ .van-badge--fixed {
79
+ top: 10px;
80
+ right: 10px;
81
+ transform: none;
82
+ }
83
+
84
+ .van-badge--dot {
85
+ top: 20px;
86
+ right: 14px;
87
+ width: 6px;
88
+ height: 6px;
89
+ background-color: var(--van-red);
90
+ }
91
+
66
92
  &--disabled {
67
93
  color: var(--van-sidebar-disabled-text-color);
68
94
  cursor: not-allowed;
@@ -1,15 +1,15 @@
1
1
  @import '../style/var.less';
2
2
 
3
3
  @sidebar-font-size: var(--van-font-size-md);
4
- @sidebar-line-height: var(--van-line-height-md);
4
+ @sidebar-line-height: var(--van-line-height-lg);
5
5
  @sidebar-text-color: var(--van-text-color);
6
6
  @sidebar-disabled-text-color: var(--van-text-color-3);
7
- @sidebar-padding: 20px var(--van-padding-sm);
7
+ @sidebar-padding: 20px var(--van-padding-xs);
8
8
  @sidebar-active-color: var(--van-active-color);
9
- @sidebar-background-color: var(--van-background-color);
10
- @sidebar-selected-font-weight: var(--van-font-weight-bold);
11
- @sidebar-selected-text-color: var(--van-text-color);
12
- @sidebar-selected-border-width: 4px;
13
- @sidebar-selected-border-height: 16px;
9
+ @sidebar-background-color: var(--van-gray-2);
10
+ @sidebar-selected-font-weight: 600;
11
+ @sidebar-selected-text-color: var(--van-blue);
12
+ @sidebar-selected-border-width: 3px;
13
+ @sidebar-selected-border-height: 12px;
14
14
  @sidebar-selected-border-color: var(--van-primary-color);
15
15
  @sidebar-selected-background-color: var(--van-background-color-light);
@@ -40,8 +40,8 @@ declare const _default: import("vue").DefineComponent<{
40
40
  wrap: BooleanConstructor;
41
41
  fill: BooleanConstructor;
42
42
  }>>, {
43
- fill: boolean;
44
43
  size: string | number | [SpaceSize, SpaceSize];
44
+ fill: boolean;
45
45
  direction: "horizontal" | "vertical";
46
46
  wrap: boolean;
47
47
  }>;
@@ -23,8 +23,8 @@ export declare const Space: import("../utils").WithInstall<import("vue").DefineC
23
23
  wrap: BooleanConstructor;
24
24
  fill: BooleanConstructor;
25
25
  }>>, {
26
- fill: boolean;
27
26
  size: string | number | [import("./Space").SpaceSize, import("./Space").SpaceSize];
27
+ fill: boolean;
28
28
  direction: "horizontal" | "vertical";
29
29
  wrap: boolean;
30
30
  }>>;
package/lib/tag/Tag.d.ts CHANGED
@@ -65,8 +65,8 @@ declare const _default: import("vue").DefineComponent<{
65
65
  }, {
66
66
  type: TagType;
67
67
  mark: boolean;
68
- round: boolean;
69
68
  size: TagSize;
69
+ round: boolean;
70
70
  show: boolean;
71
71
  plain: boolean;
72
72
  closeable: boolean;
@@ -41,8 +41,8 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
41
41
  }, {
42
42
  type: import("./Tag").TagType;
43
43
  mark: boolean;
44
- round: boolean;
45
44
  size: import("./Tag").TagSize;
45
+ round: boolean;
46
46
  show: boolean;
47
47
  plain: boolean;
48
48
  closeable: boolean;
package/lib/vant.cjs.js CHANGED
@@ -512,6 +512,7 @@ const badgeProps = {
512
512
  offset: Array,
513
513
  content: numericProp,
514
514
  showZero: truthProp,
515
+ size: makeStringProp("default"),
515
516
  position: makeStringProp("top-right")
516
517
  };
517
518
  var stdin_default$25 = vue.defineComponent({
@@ -571,6 +572,7 @@ var stdin_default$25 = vue.defineComponent({
571
572
  return vue.createVNode("div", {
572
573
  "class": bem$1S([props2.position, {
573
574
  dot: props2.dot,
575
+ mini: props2.size === "mini",
574
576
  fixed: !!slots.default
575
577
  }]),
576
578
  "style": style.value
@@ -710,30 +712,27 @@ const CircularIcon = vue.createVNode("svg", {
710
712
  }, null)]);
711
713
  const IllustrationIcon = vue.createVNode("svg", {
712
714
  "class": bem$1P("illustration"),
713
- "viewBox": "0 0 120 120",
714
- "role": "img",
715
- "aria-label": "Loading"
715
+ "viewBox": "0 0 100 100",
716
+ "fill": "none",
717
+ "aria-hidden": "true"
716
718
  }, [vue.createVNode("rect", {
717
- "x": "16",
718
- "y": "42",
719
- "width": "88",
720
- "height": "62",
721
- "rx": "8",
722
- "fill": "currentColor",
723
- "opacity": "0.12"
724
- }, null), vue.createVNode("path", {
725
- "d": "M28 42h64v62H28z",
719
+ "x": "18",
720
+ "y": "36",
721
+ "width": "64",
722
+ "height": "48",
723
+ "rx": "6",
726
724
  "fill": "currentColor",
727
- "opacity": "0.24"
725
+ "opacity": "0.14"
728
726
  }, null), vue.createVNode("path", {
729
- "d": "M38 54h12v12H38zm18 0h12v12H56zm18 0h12v12H74zM38 74h12v18H38zm18 0h12v18H56zm18 0h12v18H74z",
730
- "fill": "currentColor",
731
- "opacity": "0.78"
727
+ "d": "M28 84V46h44v38M39 84V62h22v22M38 51h4m16 0h4M38 57h4m16 0h4",
728
+ "stroke": "currentColor",
729
+ "stroke-width": "4",
730
+ "stroke-linecap": "round",
731
+ "stroke-linejoin": "round"
732
732
  }, null), vue.createVNode("path", {
733
- "d": "M48 42V27c0-7 5-12 12-12s12 5 12 12v15",
734
- "fill": "none",
733
+ "d": "M50 18v12m-16-4 8 8m24-8-8 8",
735
734
  "stroke": "currentColor",
736
- "stroke-width": "8",
735
+ "stroke-width": "4",
737
736
  "stroke-linecap": "round"
738
737
  }, null)]);
739
738
  const loadingProps = {
@@ -3308,7 +3307,7 @@ const fieldSharedProps = {
3308
3307
  formatter: Function,
3309
3308
  clearIcon: makeStringProp("clear"),
3310
3309
  modelValue: makeNumericProp(""),
3311
- inputAlign: makeStringProp("left"),
3310
+ inputAlign: String,
3312
3311
  placeholder: String,
3313
3312
  autocomplete: String,
3314
3313
  errorMessage: String,
@@ -3381,6 +3380,7 @@ var stdin_default$1M = vue.defineComponent({
3381
3380
  return form.props[key];
3382
3381
  }
3383
3382
  };
3383
+ const inputAlign = vue.computed(() => getProp("inputAlign") || (props2.labelPosition === "top" ? "left" : "right"));
3384
3384
  const showClear = vue.computed(() => {
3385
3385
  const readonly = getProp("readonly");
3386
3386
  if (props2.clearable && !readonly) {
@@ -3622,7 +3622,7 @@ var stdin_default$1M = vue.defineComponent({
3622
3622
  const getInputId = () => props2.id || `${id}-input`;
3623
3623
  const getValidationStatus = () => state.status;
3624
3624
  const renderInput = () => {
3625
- const controlClass = bem$1z("control", [getProp("inputAlign"), {
3625
+ const controlClass = bem$1z("control", [inputAlign.value, {
3626
3626
  error: showError.value,
3627
3627
  custom: !!slots.input,
3628
3628
  "min-height": props2.type === "textarea" && !props2.autosize
@@ -12379,6 +12379,7 @@ const searchProps = extend({}, fieldSharedProps, {
12379
12379
  label: String,
12380
12380
  shape: makeStringProp("round"),
12381
12381
  variant: makeStringProp("default"),
12382
+ inputAlign: makeStringProp("left"),
12382
12383
  leftIcon: makeStringProp("search"),
12383
12384
  clearable: truthProp,
12384
12385
  actionText: String,
@@ -13319,6 +13320,7 @@ var stdin_default$C = vue.defineComponent({
13319
13320
  const usageExpanded = vue.ref(true);
13320
13321
  const noticeExpanded = vue.ref(true);
13321
13322
  const bannerIndex = vue.ref(0);
13323
+ const swipeRef = vue.ref();
13322
13324
  const item = vue.computed(() => props2.item);
13323
13325
  const close = () => emit("update:show", false);
13324
13326
  const infoRows = vue.computed(() => {
@@ -13375,14 +13377,18 @@ var stdin_default$C = vue.defineComponent({
13375
13377
  });
13376
13378
  const displayImages = vue.computed(() => props2.images.length ? props2.images : defaultImages);
13377
13379
  return () => vue.createVNode(vue.Transition, {
13378
- "name": "van-material-detail"
13380
+ "name": "van-material-detail",
13381
+ "onAfterEnter": () => {
13382
+ var _a;
13383
+ return (_a = swipeRef.value) == null ? void 0 : _a.resize();
13384
+ }
13379
13385
  }, {
13380
13386
  default: () => [props2.show && item.value ? vue.createVNode("div", {
13381
13387
  "class": bem$w()
13382
13388
  }, [vue.createVNode("div", {
13383
13389
  "class": bem$w("banner")
13384
13390
  }, [vue.createVNode(Swipe, {
13385
- "loop": false,
13391
+ "ref": swipeRef,
13386
13392
  "showIndicators": false,
13387
13393
  "class": bem$w("swipe"),
13388
13394
  "onChange": (index) => {
@@ -14217,6 +14223,7 @@ var stdin_default$y = vue.defineComponent({
14217
14223
  return;
14218
14224
  return vue.createVNode(Label, {
14219
14225
  "key": `${field.label}-${index}`,
14226
+ "class": bem$t("field"),
14220
14227
  "size": "mini",
14221
14228
  "label": field.label,
14222
14229
  "showLabel": field.showLabel,
@@ -14283,7 +14290,8 @@ var stdin_default$y = vue.defineComponent({
14283
14290
  }) : renderBar();
14284
14291
  }
14285
14292
  });
14286
- const MaterialDisplayBar = withInstall(stdin_default$y);
14293
+ const MaterialPreview = withInstall(stdin_default$y);
14294
+ const MaterialDisplayBar = MaterialPreview;
14287
14295
  const [name$s, bem$s] = createNamespace("multi-person-select");
14288
14296
  const defaultGroups$1 = [{
14289
14297
  id: "air-conditioning-a",
@@ -20214,7 +20222,7 @@ const Lazyload = {
20214
20222
  });
20215
20223
  }
20216
20224
  };
20217
- const version = "0.0.33";
20225
+ const version = "0.0.35";
20218
20226
  function install(app) {
20219
20227
  const components = [
20220
20228
  ActionBar,
@@ -20407,6 +20415,7 @@ exports.MaterialActionBar = MaterialActionBar;
20407
20415
  exports.MaterialAdd = MaterialAdd;
20408
20416
  exports.MaterialDetail = MaterialDetail;
20409
20417
  exports.MaterialDisplayBar = MaterialDisplayBar;
20418
+ exports.MaterialPreview = MaterialPreview;
20410
20419
  exports.MultiPersonSelect = MultiPersonSelect;
20411
20420
  exports.NavBar = NavBar;
20412
20421
  exports.NoticeBar = NoticeBar;
package/lib/vant.es.js CHANGED
@@ -510,6 +510,7 @@ const badgeProps = {
510
510
  offset: Array,
511
511
  content: numericProp,
512
512
  showZero: truthProp,
513
+ size: makeStringProp("default"),
513
514
  position: makeStringProp("top-right")
514
515
  };
515
516
  var stdin_default$25 = defineComponent({
@@ -569,6 +570,7 @@ var stdin_default$25 = defineComponent({
569
570
  return createVNode("div", {
570
571
  "class": bem$1S([props2.position, {
571
572
  dot: props2.dot,
573
+ mini: props2.size === "mini",
572
574
  fixed: !!slots.default
573
575
  }]),
574
576
  "style": style.value
@@ -708,30 +710,27 @@ const CircularIcon = createVNode("svg", {
708
710
  }, null)]);
709
711
  const IllustrationIcon = createVNode("svg", {
710
712
  "class": bem$1P("illustration"),
711
- "viewBox": "0 0 120 120",
712
- "role": "img",
713
- "aria-label": "Loading"
713
+ "viewBox": "0 0 100 100",
714
+ "fill": "none",
715
+ "aria-hidden": "true"
714
716
  }, [createVNode("rect", {
715
- "x": "16",
716
- "y": "42",
717
- "width": "88",
718
- "height": "62",
719
- "rx": "8",
720
- "fill": "currentColor",
721
- "opacity": "0.12"
722
- }, null), createVNode("path", {
723
- "d": "M28 42h64v62H28z",
717
+ "x": "18",
718
+ "y": "36",
719
+ "width": "64",
720
+ "height": "48",
721
+ "rx": "6",
724
722
  "fill": "currentColor",
725
- "opacity": "0.24"
723
+ "opacity": "0.14"
726
724
  }, null), createVNode("path", {
727
- "d": "M38 54h12v12H38zm18 0h12v12H56zm18 0h12v12H74zM38 74h12v18H38zm18 0h12v18H56zm18 0h12v18H74z",
728
- "fill": "currentColor",
729
- "opacity": "0.78"
725
+ "d": "M28 84V46h44v38M39 84V62h22v22M38 51h4m16 0h4M38 57h4m16 0h4",
726
+ "stroke": "currentColor",
727
+ "stroke-width": "4",
728
+ "stroke-linecap": "round",
729
+ "stroke-linejoin": "round"
730
730
  }, null), createVNode("path", {
731
- "d": "M48 42V27c0-7 5-12 12-12s12 5 12 12v15",
732
- "fill": "none",
731
+ "d": "M50 18v12m-16-4 8 8m24-8-8 8",
733
732
  "stroke": "currentColor",
734
- "stroke-width": "8",
733
+ "stroke-width": "4",
735
734
  "stroke-linecap": "round"
736
735
  }, null)]);
737
736
  const loadingProps = {
@@ -3306,7 +3305,7 @@ const fieldSharedProps = {
3306
3305
  formatter: Function,
3307
3306
  clearIcon: makeStringProp("clear"),
3308
3307
  modelValue: makeNumericProp(""),
3309
- inputAlign: makeStringProp("left"),
3308
+ inputAlign: String,
3310
3309
  placeholder: String,
3311
3310
  autocomplete: String,
3312
3311
  errorMessage: String,
@@ -3379,6 +3378,7 @@ var stdin_default$1M = defineComponent({
3379
3378
  return form.props[key];
3380
3379
  }
3381
3380
  };
3381
+ const inputAlign = computed(() => getProp("inputAlign") || (props2.labelPosition === "top" ? "left" : "right"));
3382
3382
  const showClear = computed(() => {
3383
3383
  const readonly = getProp("readonly");
3384
3384
  if (props2.clearable && !readonly) {
@@ -3620,7 +3620,7 @@ var stdin_default$1M = defineComponent({
3620
3620
  const getInputId = () => props2.id || `${id}-input`;
3621
3621
  const getValidationStatus = () => state.status;
3622
3622
  const renderInput = () => {
3623
- const controlClass = bem$1z("control", [getProp("inputAlign"), {
3623
+ const controlClass = bem$1z("control", [inputAlign.value, {
3624
3624
  error: showError.value,
3625
3625
  custom: !!slots.input,
3626
3626
  "min-height": props2.type === "textarea" && !props2.autosize
@@ -12377,6 +12377,7 @@ const searchProps = extend({}, fieldSharedProps, {
12377
12377
  label: String,
12378
12378
  shape: makeStringProp("round"),
12379
12379
  variant: makeStringProp("default"),
12380
+ inputAlign: makeStringProp("left"),
12380
12381
  leftIcon: makeStringProp("search"),
12381
12382
  clearable: truthProp,
12382
12383
  actionText: String,
@@ -13317,6 +13318,7 @@ var stdin_default$C = defineComponent({
13317
13318
  const usageExpanded = ref(true);
13318
13319
  const noticeExpanded = ref(true);
13319
13320
  const bannerIndex = ref(0);
13321
+ const swipeRef = ref();
13320
13322
  const item = computed(() => props2.item);
13321
13323
  const close = () => emit("update:show", false);
13322
13324
  const infoRows = computed(() => {
@@ -13373,14 +13375,18 @@ var stdin_default$C = defineComponent({
13373
13375
  });
13374
13376
  const displayImages = computed(() => props2.images.length ? props2.images : defaultImages);
13375
13377
  return () => createVNode(Transition, {
13376
- "name": "van-material-detail"
13378
+ "name": "van-material-detail",
13379
+ "onAfterEnter": () => {
13380
+ var _a;
13381
+ return (_a = swipeRef.value) == null ? void 0 : _a.resize();
13382
+ }
13377
13383
  }, {
13378
13384
  default: () => [props2.show && item.value ? createVNode("div", {
13379
13385
  "class": bem$w()
13380
13386
  }, [createVNode("div", {
13381
13387
  "class": bem$w("banner")
13382
13388
  }, [createVNode(Swipe, {
13383
- "loop": false,
13389
+ "ref": swipeRef,
13384
13390
  "showIndicators": false,
13385
13391
  "class": bem$w("swipe"),
13386
13392
  "onChange": (index) => {
@@ -14215,6 +14221,7 @@ var stdin_default$y = defineComponent({
14215
14221
  return;
14216
14222
  return createVNode(Label, {
14217
14223
  "key": `${field.label}-${index}`,
14224
+ "class": bem$t("field"),
14218
14225
  "size": "mini",
14219
14226
  "label": field.label,
14220
14227
  "showLabel": field.showLabel,
@@ -14281,7 +14288,8 @@ var stdin_default$y = defineComponent({
14281
14288
  }) : renderBar();
14282
14289
  }
14283
14290
  });
14284
- const MaterialDisplayBar = withInstall(stdin_default$y);
14291
+ const MaterialPreview = withInstall(stdin_default$y);
14292
+ const MaterialDisplayBar = MaterialPreview;
14285
14293
  const [name$s, bem$s] = createNamespace("multi-person-select");
14286
14294
  const defaultGroups$1 = [{
14287
14295
  id: "air-conditioning-a",
@@ -20212,7 +20220,7 @@ const Lazyload = {
20212
20220
  });
20213
20221
  }
20214
20222
  };
20215
- const version = "0.0.33";
20223
+ const version = "0.0.35";
20216
20224
  function install(app) {
20217
20225
  const components = [
20218
20226
  ActionBar,
@@ -20406,6 +20414,7 @@ export {
20406
20414
  MaterialAdd,
20407
20415
  MaterialDetail,
20408
20416
  MaterialDisplayBar,
20417
+ MaterialPreview,
20409
20418
  MultiPersonSelect,
20410
20419
  NavBar,
20411
20420
  NoticeBar,
package/lib/vant.js CHANGED
@@ -867,6 +867,7 @@
867
867
  offset: Array,
868
868
  content: numericProp,
869
869
  showZero: truthProp,
870
+ size: makeStringProp("default"),
870
871
  position: makeStringProp("top-right")
871
872
  };
872
873
  var stdin_default$25 = vue.defineComponent({
@@ -926,6 +927,7 @@
926
927
  return vue.createVNode("div", {
927
928
  "class": bem$1S([props2.position, {
928
929
  dot: props2.dot,
930
+ mini: props2.size === "mini",
929
931
  fixed: !!slots.default
930
932
  }]),
931
933
  "style": style.value
@@ -1065,30 +1067,27 @@
1065
1067
  }, null)]);
1066
1068
  const IllustrationIcon = vue.createVNode("svg", {
1067
1069
  "class": bem$1P("illustration"),
1068
- "viewBox": "0 0 120 120",
1069
- "role": "img",
1070
- "aria-label": "Loading"
1070
+ "viewBox": "0 0 100 100",
1071
+ "fill": "none",
1072
+ "aria-hidden": "true"
1071
1073
  }, [vue.createVNode("rect", {
1072
- "x": "16",
1073
- "y": "42",
1074
- "width": "88",
1075
- "height": "62",
1076
- "rx": "8",
1077
- "fill": "currentColor",
1078
- "opacity": "0.12"
1079
- }, null), vue.createVNode("path", {
1080
- "d": "M28 42h64v62H28z",
1074
+ "x": "18",
1075
+ "y": "36",
1076
+ "width": "64",
1077
+ "height": "48",
1078
+ "rx": "6",
1081
1079
  "fill": "currentColor",
1082
- "opacity": "0.24"
1080
+ "opacity": "0.14"
1083
1081
  }, null), vue.createVNode("path", {
1084
- "d": "M38 54h12v12H38zm18 0h12v12H56zm18 0h12v12H74zM38 74h12v18H38zm18 0h12v18H56zm18 0h12v18H74z",
1085
- "fill": "currentColor",
1086
- "opacity": "0.78"
1082
+ "d": "M28 84V46h44v38M39 84V62h22v22M38 51h4m16 0h4M38 57h4m16 0h4",
1083
+ "stroke": "currentColor",
1084
+ "stroke-width": "4",
1085
+ "stroke-linecap": "round",
1086
+ "stroke-linejoin": "round"
1087
1087
  }, null), vue.createVNode("path", {
1088
- "d": "M48 42V27c0-7 5-12 12-12s12 5 12 12v15",
1089
- "fill": "none",
1088
+ "d": "M50 18v12m-16-4 8 8m24-8-8 8",
1090
1089
  "stroke": "currentColor",
1091
- "stroke-width": "8",
1090
+ "stroke-width": "4",
1092
1091
  "stroke-linecap": "round"
1093
1092
  }, null)]);
1094
1093
  const loadingProps = {
@@ -3652,7 +3651,7 @@
3652
3651
  formatter: Function,
3653
3652
  clearIcon: makeStringProp("clear"),
3654
3653
  modelValue: makeNumericProp(""),
3655
- inputAlign: makeStringProp("left"),
3654
+ inputAlign: String,
3656
3655
  placeholder: String,
3657
3656
  autocomplete: String,
3658
3657
  errorMessage: String,
@@ -3725,6 +3724,7 @@
3725
3724
  return form.props[key];
3726
3725
  }
3727
3726
  };
3727
+ const inputAlign = vue.computed(() => getProp("inputAlign") || (props2.labelPosition === "top" ? "left" : "right"));
3728
3728
  const showClear = vue.computed(() => {
3729
3729
  const readonly = getProp("readonly");
3730
3730
  if (props2.clearable && !readonly) {
@@ -3966,7 +3966,7 @@
3966
3966
  const getInputId = () => props2.id || `${id}-input`;
3967
3967
  const getValidationStatus = () => state.status;
3968
3968
  const renderInput = () => {
3969
- const controlClass = bem$1z("control", [getProp("inputAlign"), {
3969
+ const controlClass = bem$1z("control", [inputAlign.value, {
3970
3970
  error: showError.value,
3971
3971
  custom: !!slots.input,
3972
3972
  "min-height": props2.type === "textarea" && !props2.autosize
@@ -13572,6 +13572,7 @@
13572
13572
  label: String,
13573
13573
  shape: makeStringProp("round"),
13574
13574
  variant: makeStringProp("default"),
13575
+ inputAlign: makeStringProp("left"),
13575
13576
  leftIcon: makeStringProp("search"),
13576
13577
  clearable: truthProp,
13577
13578
  actionText: String,
@@ -14512,6 +14513,7 @@
14512
14513
  const usageExpanded = vue.ref(true);
14513
14514
  const noticeExpanded = vue.ref(true);
14514
14515
  const bannerIndex = vue.ref(0);
14516
+ const swipeRef = vue.ref();
14515
14517
  const item = vue.computed(() => props2.item);
14516
14518
  const close = () => emit("update:show", false);
14517
14519
  const infoRows = vue.computed(() => {
@@ -14568,14 +14570,18 @@
14568
14570
  });
14569
14571
  const displayImages = vue.computed(() => props2.images.length ? props2.images : defaultImages);
14570
14572
  return () => vue.createVNode(vue.Transition, {
14571
- "name": "van-material-detail"
14573
+ "name": "van-material-detail",
14574
+ "onAfterEnter": () => {
14575
+ var _a;
14576
+ return (_a = swipeRef.value) == null ? void 0 : _a.resize();
14577
+ }
14572
14578
  }, {
14573
14579
  default: () => [props2.show && item.value ? vue.createVNode("div", {
14574
14580
  "class": bem$w()
14575
14581
  }, [vue.createVNode("div", {
14576
14582
  "class": bem$w("banner")
14577
14583
  }, [vue.createVNode(Swipe, {
14578
- "loop": false,
14584
+ "ref": swipeRef,
14579
14585
  "showIndicators": false,
14580
14586
  "class": bem$w("swipe"),
14581
14587
  "onChange": (index) => {
@@ -15410,6 +15416,7 @@
15410
15416
  return;
15411
15417
  return vue.createVNode(Label, {
15412
15418
  "key": `${field.label}-${index}`,
15419
+ "class": bem$t("field"),
15413
15420
  "size": "mini",
15414
15421
  "label": field.label,
15415
15422
  "showLabel": field.showLabel,
@@ -15476,7 +15483,8 @@
15476
15483
  }) : renderBar();
15477
15484
  }
15478
15485
  });
15479
- const MaterialDisplayBar = withInstall(stdin_default$y);
15486
+ const MaterialPreview = withInstall(stdin_default$y);
15487
+ const MaterialDisplayBar = MaterialPreview;
15480
15488
  const [name$s, bem$s] = createNamespace("multi-person-select");
15481
15489
  const defaultGroups$1 = [{
15482
15490
  id: "air-conditioning-a",
@@ -23801,7 +23809,7 @@
23801
23809
  });
23802
23810
  }
23803
23811
  };
23804
- const version = "0.0.33";
23812
+ const version = "0.0.35";
23805
23813
  function install(app) {
23806
23814
  const components = [
23807
23815
  ActionBar,
@@ -23994,6 +24002,7 @@
23994
24002
  exports2.MaterialAdd = MaterialAdd;
23995
24003
  exports2.MaterialDetail = MaterialDetail;
23996
24004
  exports2.MaterialDisplayBar = MaterialDisplayBar;
24005
+ exports2.MaterialPreview = MaterialPreview;
23997
24006
  exports2.MultiPersonSelect = MultiPersonSelect;
23998
24007
  exports2.NavBar = NavBar;
23999
24008
  exports2.NoticeBar = NoticeBar;