@varlet/ui 1.23.12-alpha.31 → 1.24.2-alpha.1640872052259

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 (169) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/es/back-top/BackTop.js +3 -1
  3. package/es/badge/Badge.js +4 -3
  4. package/es/button/Button.js +6 -2
  5. package/es/card/Card.js +3 -1
  6. package/es/checkbox/Checkbox.js +3 -1
  7. package/es/checkbox-group/CheckboxGroup.js +23 -11
  8. package/es/chip/Chip.js +3 -1
  9. package/es/col/Col.js +3 -1
  10. package/es/collapse/Collapse.js +24 -14
  11. package/es/collapse-item/CollapseItem.js +3 -1
  12. package/es/counter/Counter.js +3 -1
  13. package/es/date-picker/DatePicker.js +2 -2
  14. package/es/date-picker/src/day-picker-panel.js +4 -3
  15. package/es/date-picker/src/month-picker-panel.js +4 -3
  16. package/es/date-picker/src/panel-header.js +4 -3
  17. package/es/date-picker/src/year-picker-panel.js +4 -3
  18. package/es/divider/Divider.js +4 -3
  19. package/es/form/Form.js +18 -9
  20. package/es/icon/icon.css +1 -1
  21. package/es/image/Image.js +18 -6
  22. package/es/image-preview/ImagePreview.js +21 -12
  23. package/es/index-bar/IndexBar.js +11 -7
  24. package/es/input/Input.js +27 -9
  25. package/es/lazy/index.js +5 -1
  26. package/es/list/List.js +3 -1
  27. package/es/loading/Loading.js +4 -3
  28. package/es/menu/Menu.js +59 -52
  29. package/es/menu/index.js +1 -1
  30. package/es/menu/style/index.js +0 -1
  31. package/es/menu/style/less.js +0 -1
  32. package/es/option/Option.js +3 -1
  33. package/es/pagination/Pagination.js +9 -3
  34. package/es/picker/Picker.js +5 -1
  35. package/es/popup/Popup.js +5 -4
  36. package/es/pull-refresh/PullRefresh.js +12 -4
  37. package/es/radio/Radio.js +3 -1
  38. package/es/radio-group/RadioGroup.js +6 -3
  39. package/es/row/Row.js +3 -1
  40. package/es/select/Select.js +36 -18
  41. package/es/slider/Slider.js +14 -3
  42. package/es/snackbar/index.js +16 -7
  43. package/es/space/Space.js +5 -3
  44. package/es/step/Step.js +6 -2
  45. package/es/style-provider/StyleProvider.js +4 -3
  46. package/es/style-provider/index.js +7 -2
  47. package/es/styles/elevation.css +1 -1
  48. package/es/styles/elevation.less +2 -0
  49. package/es/swipe/Swipe.js +28 -14
  50. package/es/switch/Switch.js +3 -1
  51. package/es/tab/Tab.js +3 -1
  52. package/es/tabs/Tabs.js +21 -12
  53. package/es/tabs-items/TabsItems.js +24 -12
  54. package/es/time-picker/TimePicker.js +9 -3
  55. package/es/time-picker/clock.js +9 -5
  56. package/es/uploader/Uploader.js +16 -8
  57. package/es/utils/components.js +9 -1
  58. package/es/utils/elements.js +9 -7
  59. package/es/utils/jest.js +41 -12
  60. package/es/utils/shared.js +20 -4
  61. package/highlight/attributes.json +3 -3
  62. package/highlight/tags.json +3 -3
  63. package/highlight/web-types.json +4 -4
  64. package/lib/action-sheet/ActionSheet.js +1 -1
  65. package/lib/app-bar/AppBar.js +1 -1
  66. package/lib/back-top/BackTop.js +4 -2
  67. package/lib/badge/Badge.js +5 -4
  68. package/lib/button/Button.js +7 -3
  69. package/lib/card/Card.js +4 -2
  70. package/lib/cell/Cell.js +1 -1
  71. package/lib/checkbox/Checkbox.js +4 -2
  72. package/lib/checkbox-group/CheckboxGroup.js +24 -12
  73. package/lib/checkbox-group/provide.js +1 -1
  74. package/lib/chip/Chip.js +4 -2
  75. package/lib/col/Col.js +4 -2
  76. package/lib/collapse/Collapse.js +25 -15
  77. package/lib/collapse/provide.js +1 -1
  78. package/lib/collapse-item/CollapseItem.js +4 -2
  79. package/lib/context/lock.js +1 -1
  80. package/lib/countdown/Countdown.js +1 -1
  81. package/lib/counter/Counter.js +4 -2
  82. package/lib/date-picker/DatePicker.js +3 -3
  83. package/lib/date-picker/src/day-picker-panel.js +5 -4
  84. package/lib/date-picker/src/month-picker-panel.js +5 -4
  85. package/lib/date-picker/src/panel-header.js +5 -4
  86. package/lib/date-picker/src/year-picker-panel.js +5 -4
  87. package/lib/dialog/Dialog.js +1 -1
  88. package/lib/divider/Divider.js +5 -4
  89. package/lib/form/Form.js +19 -10
  90. package/lib/form/provide.js +1 -1
  91. package/lib/form-details/FormDetails.js +1 -1
  92. package/lib/icon/Icon.js +1 -1
  93. package/lib/icon/icon.css +1 -1
  94. package/lib/image/Image.js +19 -7
  95. package/lib/image-preview/ImagePreview.js +22 -13
  96. package/lib/index-anchor/IndexAnchor.js +1 -1
  97. package/lib/index-bar/IndexBar.js +12 -8
  98. package/lib/index-bar/provide.js +1 -1
  99. package/lib/input/Input.js +28 -10
  100. package/lib/input/props.js +1 -1
  101. package/lib/lazy/index.js +6 -2
  102. package/lib/list/List.js +4 -2
  103. package/lib/loading/Loading.js +5 -4
  104. package/lib/loading/props.js +2 -2
  105. package/lib/locale/index.js +1 -1
  106. package/lib/menu/Menu.js +56 -50
  107. package/lib/menu/index.js +1 -1
  108. package/lib/menu/style/index.js +0 -1
  109. package/lib/menu/style/less.js +0 -1
  110. package/lib/option/Option.js +4 -2
  111. package/lib/pagination/Pagination.js +10 -4
  112. package/lib/picker/Picker.js +6 -2
  113. package/lib/popup/Popup.js +5 -4
  114. package/lib/progress/Progress.js +1 -1
  115. package/lib/pull-refresh/PullRefresh.js +13 -5
  116. package/lib/radio/Radio.js +4 -2
  117. package/lib/radio-group/RadioGroup.js +7 -4
  118. package/lib/radio-group/provide.js +1 -1
  119. package/lib/rate/Rate.js +1 -1
  120. package/lib/row/Row.js +4 -2
  121. package/lib/row/provide.js +1 -1
  122. package/lib/select/Select.js +37 -19
  123. package/lib/select/props.js +1 -1
  124. package/lib/select/provide.js +1 -1
  125. package/lib/skeleton/Skeleton.js +1 -1
  126. package/lib/slider/Slider.js +15 -4
  127. package/lib/snackbar/Snackbar.js +1 -1
  128. package/lib/snackbar/core.js +1 -1
  129. package/lib/snackbar/index.js +16 -7
  130. package/lib/snackbar/props.js +1 -1
  131. package/lib/snackbar/style/index.js +1 -1
  132. package/lib/snackbar/style/less.js +1 -1
  133. package/lib/space/Space.js +5 -3
  134. package/lib/space/props.js +1 -1
  135. package/lib/step/Step.js +7 -3
  136. package/lib/steps/Steps.js +1 -1
  137. package/lib/steps/provide.js +1 -1
  138. package/lib/sticky/Sticky.js +1 -1
  139. package/lib/style-provider/StyleProvider.js +4 -3
  140. package/lib/style-provider/index.js +7 -2
  141. package/lib/style.css +1 -1
  142. package/lib/styles/elevation.css +1 -1
  143. package/lib/styles/elevation.less +2 -0
  144. package/lib/swipe/Swipe.js +29 -15
  145. package/lib/swipe/provide.js +1 -1
  146. package/lib/swipe-item/SwipeItem.js +1 -1
  147. package/lib/switch/Switch.js +4 -2
  148. package/lib/tab/Tab.js +4 -2
  149. package/lib/tab-item/TabItem.js +1 -1
  150. package/lib/table/Table.js +1 -1
  151. package/lib/tabs/Tabs.js +22 -13
  152. package/lib/tabs/provide.js +1 -1
  153. package/lib/tabs-items/TabsItems.js +25 -13
  154. package/lib/tabs-items/provide.js +1 -1
  155. package/lib/time-picker/TimePicker.js +10 -4
  156. package/lib/time-picker/clock.js +10 -6
  157. package/lib/time-picker/props.js +1 -1
  158. package/lib/time-picker/utils.js +1 -1
  159. package/lib/uploader/Uploader.js +17 -9
  160. package/lib/utils/components.js +15 -7
  161. package/lib/utils/elements.js +20 -17
  162. package/lib/utils/jest.js +49 -20
  163. package/lib/utils/shared.js +24 -6
  164. package/package.json +25 -17
  165. package/umd/varlet.js +4 -4
  166. package/es/menu/MenuSfc.css +0 -0
  167. package/es/menu/MenuSfc.less +0 -0
  168. package/lib/menu/MenuSfc.css +0 -0
  169. package/lib/menu/MenuSfc.less +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,42 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.24.1](https://github.com/haoziqaq/varlet/compare/v1.24.0...v1.24.1) (2021-12-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui/elevation:** resolve shadow cannot display ([227b2db](https://github.com/haoziqaq/varlet/commit/227b2dbab2884a8914ef5a530c18dfffff010323))
12
+
13
+
14
+
15
+
16
+
17
+ # [1.24.0](https://github.com/haoziqaq/varlet/compare/v1.23.11...v1.24.0) (2021-12-27)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **card:** add word-break for description ([38d7427](https://github.com/haoziqaq/varlet/commit/38d74270eed5bc71b4f821f5433604b7a62eecbc))
23
+ * **d.ts:** fix pack declare lost after build ([d7df27e](https://github.com/haoziqaq/varlet/commit/d7df27e439a2b28fa4a9cfb867129611f2a268b3))
24
+ * **loading:** add transition for overlay ([2a62eaa](https://github.com/haoziqaq/varlet/commit/2a62eaa8eed6a5ff77222b48932b39655744ffae))
25
+ * **loading:** expose marigin css variable ([313d232](https://github.com/haoziqaq/varlet/commit/313d232b363981ce94c11e419ace904bfc2b246d))
26
+ * **placeholder:** text-overflow to ellipsis ([7c586d2](https://github.com/haoziqaq/varlet/commit/7c586d2f7e751a12993d06e46d460ac25de24b22))
27
+ * **select:** fix select's placeholder when too long ([a7e08a6](https://github.com/haoziqaq/varlet/commit/a7e08a60e7d2d8f49f0863fcda6814bc1fdd4fdc))
28
+ * **types:** fix prompts that could not find a declaration file when import translation file ([2637884](https://github.com/haoziqaq/varlet/commit/26378841f2fbafeda8bcd6fffd5eccfd50e9e559))
29
+ * **types:** fix prompts that could not find a declaration file when import translation file ([e17c6d2](https://github.com/haoziqaq/varlet/commit/e17c6d2c430f1b4601875e98ca92d075a1de5813))
30
+ * **ui/input, select:** fix placeholder animation and var--ellipsis class ([458ab30](https://github.com/haoziqaq/varlet/commit/458ab307652328ace71dc0523323422f7ebdbaac))
31
+ * **ui/swipe:** do not use initialIndex when resize ([46e997e](https://github.com/haoziqaq/varlet/commit/46e997e8f014432149f409e40545592757ae4484))
32
+
33
+
34
+ ### Features
35
+
36
+ * **loading:** add slots and desc prop ([db0df16](https://github.com/haoziqaq/varlet/commit/db0df16af2cab2de059282e9a8c15c66077b1ae2))
37
+
38
+
39
+
40
+
41
+
6
42
  ## [1.23.11](https://github.com/haoziqaq/varlet/compare/v1.23.10...v1.23.11) (2021-12-10)
7
43
 
8
44
 
@@ -12,7 +12,9 @@ export function render(_ctx, _cache) {
12
12
 
13
13
  return _openBlock(), _createElementBlock("div", {
14
14
  class: _normalizeClass(["var-back-top", [_ctx.show ? 'var-back-top--active' : null]]),
15
- onClick: _cache[0] || (_cache[0] = _withModifiers((...args) => _ctx.click && _ctx.click(...args), ["stop"]))
15
+ onClick: _cache[0] || (_cache[0] = _withModifiers(function () {
16
+ return _ctx.click && _ctx.click(...arguments);
17
+ }, ["stop"]))
16
18
  }, [_renderSlot(_ctx.$slots, "default", {}, () => [_createVNode(_component_var_button, {
17
19
  type: "primary",
18
20
  round: "",
package/es/badge/Badge.js CHANGED
@@ -48,9 +48,10 @@ export default defineComponent({
48
48
  inheritAttrs: false,
49
49
  props,
50
50
 
51
- setup(props, {
52
- slots
53
- }) {
51
+ setup(props, _ref) {
52
+ var {
53
+ slots
54
+ } = _ref;
54
55
  var contentClass = computed(() => {
55
56
  var {
56
57
  type,
@@ -19,8 +19,12 @@ export function render(_ctx, _cache) {
19
19
  background: _ctx.color
20
20
  }),
21
21
  disabled: _ctx.disabled,
22
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
23
- onTouchstart: _cache[1] || (_cache[1] = (...args) => _ctx.handleTouchstart && _ctx.handleTouchstart(...args))
22
+ onClick: _cache[0] || (_cache[0] = function () {
23
+ return _ctx.handleClick && _ctx.handleClick(...arguments);
24
+ }),
25
+ onTouchstart: _cache[1] || (_cache[1] = function () {
26
+ return _ctx.handleTouchstart && _ctx.handleTouchstart(...arguments);
27
+ })
24
28
  }, [_ctx.loading ? (_openBlock(), _createBlock(_component_var_loading, {
25
29
  key: 0,
26
30
  class: "var-button__loading",
package/es/card/Card.js CHANGED
@@ -28,7 +28,9 @@ export function render(_ctx, _cache) {
28
28
 
29
29
  return _withDirectives((_openBlock(), _createElementBlock("div", {
30
30
  class: _normalizeClass(["var-card", [_ctx.elevation ? "var-elevation--" + _ctx.elevation : 'var-elevation--2']]),
31
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
31
+ onClick: _cache[0] || (_cache[0] = function () {
32
+ return _ctx.onClick && _ctx.onClick(...arguments);
33
+ })
32
34
  }, [_renderSlot(_ctx.$slots, "image", {}, () => [_ctx.src ? (_openBlock(), _createElementBlock("img", {
33
35
  key: 0,
34
36
  class: "var-card__image",
@@ -22,7 +22,9 @@ export function render(_ctx, _cache) {
22
22
 
23
23
  return _openBlock(), _createElementBlock("div", {
24
24
  class: "var-checkbox__wrap",
25
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
25
+ onClick: _cache[0] || (_cache[0] = function () {
26
+ return _ctx.handleClick && _ctx.handleClick(...arguments);
27
+ })
26
28
  }, [_createElementVNode("div", _hoisted_1, [_withDirectives(_createElementVNode("div", {
27
29
  class: _normalizeClass(["var-checkbox__action", [_ctx.checked ? 'var-checkbox--checked' : 'var-checkbox--unchecked', _ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]]),
28
30
  style: _normalizeStyle({
@@ -94,17 +94,23 @@ export default defineComponent({
94
94
  change(modelValue.filter(value => value !== changedValue));
95
95
  };
96
96
 
97
- var syncCheckboxes = () => checkboxes.forEach(({
98
- sync
99
- }) => sync(props.modelValue)); // expose
97
+ var syncCheckboxes = () => checkboxes.forEach(_ref => {
98
+ var {
99
+ sync
100
+ } = _ref;
101
+ return sync(props.modelValue);
102
+ }); // expose
100
103
 
101
104
 
102
105
  var checkAll = () => {
103
106
  var _props$onUpdateModel2;
104
107
 
105
- var checkedValues = checkboxes.map(({
106
- checkedValue
107
- }) => checkedValue.value);
108
+ var checkedValues = checkboxes.map(_ref2 => {
109
+ var {
110
+ checkedValue
111
+ } = _ref2;
112
+ return checkedValue.value;
113
+ });
108
114
  var changedModelValue = uniq(checkedValues);
109
115
  (_props$onUpdateModel2 = props['onUpdate:modelValue']) == null ? void 0 : _props$onUpdateModel2.call(props, changedModelValue);
110
116
  return changedModelValue;
@@ -114,11 +120,17 @@ export default defineComponent({
114
120
  var inverseAll = () => {
115
121
  var _props$onUpdateModel3;
116
122
 
117
- var checkedValues = checkboxes.filter(({
118
- checked
119
- }) => !checked.value).map(({
120
- checkedValue
121
- }) => checkedValue.value);
123
+ var checkedValues = checkboxes.filter(_ref3 => {
124
+ var {
125
+ checked
126
+ } = _ref3;
127
+ return !checked.value;
128
+ }).map(_ref4 => {
129
+ var {
130
+ checkedValue
131
+ } = _ref4;
132
+ return checkedValue.value;
133
+ });
122
134
  var changedModelValue = uniq(checkedValues);
123
135
  (_props$onUpdateModel3 = props['onUpdate:modelValue']) == null ? void 0 : _props$onUpdateModel3.call(props, changedModelValue);
124
136
  return changedModelValue;
package/es/chip/Chip.js CHANGED
@@ -18,7 +18,9 @@ export function render(_ctx, _cache) {
18
18
  ), _renderSlot(_ctx.$slots, "right"), _ctx.closable ? (_openBlock(), _createElementBlock("span", {
19
19
  key: 0,
20
20
  class: "var-chip--close",
21
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClose && _ctx.onClose(...args))
21
+ onClick: _cache[0] || (_cache[0] = function () {
22
+ return _ctx.onClose && _ctx.onClose(...arguments);
23
+ })
22
24
  }, [_createVNode(_component_var_icon, {
23
25
  name: "" + (_ctx.iconName ? _ctx.iconName : 'close-circle')
24
26
  }, null, 8
package/es/col/Col.js CHANGED
@@ -11,7 +11,9 @@ export function render(_ctx, _cache) {
11
11
  paddingLeft: _ctx.toSizeUnit(_ctx.padding.left),
12
12
  paddingRight: _ctx.toSizeUnit(_ctx.padding.right)
13
13
  }),
14
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
14
+ onClick: _cache[0] || (_cache[0] = function () {
15
+ return _ctx.onClick && _ctx.onClick(...arguments);
16
+ })
15
17
  }, [_renderSlot(_ctx.$slots, "default")], 6
16
18
  /* CLASS, STYLE */
17
19
  );
@@ -56,14 +56,18 @@ export default defineComponent({
56
56
 
57
57
  var matchName = () => {
58
58
  if (props.accordion) {
59
- return collapseItem.find(({
60
- name
61
- }) => props.modelValue === name.value);
59
+ return collapseItem.find(_ref => {
60
+ var {
61
+ name
62
+ } = _ref;
63
+ return props.modelValue === name.value;
64
+ });
62
65
  }
63
66
 
64
- var filterItem = collapseItem.filter(({
65
- name
66
- }) => {
67
+ var filterItem = collapseItem.filter(_ref2 => {
68
+ var {
69
+ name
70
+ } = _ref2;
67
71
  if (name.value === undefined) return false;
68
72
  return props.modelValue.includes(name.value);
69
73
  });
@@ -72,16 +76,22 @@ export default defineComponent({
72
76
 
73
77
  var matchIndex = () => {
74
78
  if (props.accordion) {
75
- return collapseItem.find(({
76
- index,
77
- name
78
- }) => name.value === undefined ? props.modelValue === index.value : false);
79
+ return collapseItem.find(_ref3 => {
80
+ var {
81
+ index,
82
+ name
83
+ } = _ref3;
84
+ return name.value === undefined ? props.modelValue === index.value : false;
85
+ });
79
86
  }
80
87
 
81
- return collapseItem.filter(({
82
- index,
83
- name
84
- }) => name.value === undefined ? props.modelValue.includes(index.value) : false);
88
+ return collapseItem.filter(_ref4 => {
89
+ var {
90
+ index,
91
+ name
92
+ } = _ref4;
93
+ return name.value === undefined ? props.modelValue.includes(index.value) : false;
94
+ });
85
95
  };
86
96
 
87
97
  var resize = () => {
@@ -44,7 +44,9 @@ export function render(_ctx, _cache) {
44
44
  , ["name", "class"])])])]), _withDirectives(_createElementVNode("div", {
45
45
  class: "var-collapse-item-content",
46
46
  ref: "contentEl",
47
- onTransitionend: _cache[1] || (_cache[1] = (...args) => _ctx.transitionend && _ctx.transitionend(...args))
47
+ onTransitionend: _cache[1] || (_cache[1] = function () {
48
+ return _ctx.transitionend && _ctx.transitionend(...arguments);
49
+ })
48
50
  }, [_createElementVNode("div", _hoisted_3, [_renderSlot(_ctx.$slots, "default")])], 544
49
51
  /* HYDRATE_EVENTS, NEED_PATCH */
50
52
  ), [[_vShow, _ctx.show]])], 2
@@ -56,7 +56,9 @@ export function render(_ctx, _cache) {
56
56
  readonly: _ctx.readonly || _ctx.formReadonly,
57
57
  disabled: _ctx.disabled || _ctx.formDisabled || _ctx.disableInput,
58
58
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.inputValue = $event),
59
- onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args))
59
+ onChange: _cache[1] || (_cache[1] = function () {
60
+ return _ctx.handleChange && _ctx.handleChange(...arguments);
61
+ })
60
62
  }, null, 44
61
63
  /* STYLE, PROPS, HYDRATE_EVENTS */
62
64
  , _hoisted_2), [[_vModelText, _ctx.inputValue]]), _withDirectives(_createVNode(_component_var_icon, {
@@ -201,8 +201,8 @@ export default defineComponent({
201
201
  } = props;
202
202
 
203
203
  if (range) {
204
- chooseRangeDay.value = chooseRangeDay.value.map(date => dayjs(date).format('YYYY-MM-DD'));
205
- return chooseRangeDay.value[0] + " ~ " + chooseRangeDay.value[1];
204
+ var formatRangeDays = chooseRangeDay.value.map(date => dayjs(date).format('YYYY-MM-DD'));
205
+ return formatRangeDays[0] + " ~ " + formatRangeDays[1];
206
206
  }
207
207
 
208
208
  if (multiple) return "" + chooseDays.value.length + pack.value.datePickerSelected;
@@ -117,9 +117,10 @@ export default defineComponent({
117
117
  },
118
118
  emits: ['check-preview', 'choose-day'],
119
119
 
120
- setup(props, {
121
- emit
122
- }) {
120
+ setup(props, _ref) {
121
+ var {
122
+ emit
123
+ } = _ref;
123
124
  var [currentYear, currentMonth, currentDay] = props.current.split('-');
124
125
  var days = ref([]);
125
126
  var reverse = ref(false);
@@ -100,9 +100,10 @@ export default defineComponent({
100
100
  },
101
101
  emits: ['check-preview', 'choose-month'],
102
102
 
103
- setup(props, {
104
- emit
105
- }) {
103
+ setup(props, _ref) {
104
+ var {
105
+ emit
106
+ } = _ref;
106
107
  var [currentYear, currentMonth] = props.current.split('-');
107
108
  var reverse = ref(false);
108
109
  var panelKey = ref(0);
@@ -90,9 +90,10 @@ export default defineComponent({
90
90
  },
91
91
  emits: ['check-panel', 'check-date'],
92
92
 
93
- setup(props, {
94
- emit
95
- }) {
93
+ setup(props, _ref) {
94
+ var {
95
+ emit
96
+ } = _ref;
96
97
  var reverse = ref(false);
97
98
  var forwardOrBackNum = ref(0);
98
99
  var showDate = computed(() => {
@@ -39,9 +39,10 @@ export default defineComponent({
39
39
  },
40
40
  emits: ['choose-year'],
41
41
 
42
- setup(props, {
43
- emit
44
- }) {
42
+ setup(props, _ref) {
43
+ var {
44
+ emit
45
+ } = _ref;
45
46
  var yearList = computed(() => {
46
47
  var list = [];
47
48
  var {
@@ -27,9 +27,10 @@ export default defineComponent({
27
27
  name: 'VarDivider',
28
28
  props,
29
29
 
30
- setup(props, {
31
- slots
32
- }) {
30
+ setup(props, _ref) {
31
+ var {
32
+ slots
33
+ } = _ref;
33
34
  var state = reactive({
34
35
  withText: false
35
36
  });
package/es/form/Form.js CHANGED
@@ -30,9 +30,12 @@ export default defineComponent({
30
30
 
31
31
  var validate = /*#__PURE__*/function () {
32
32
  var _ref = _asyncToGenerator(function* () {
33
- var res = yield Promise.all(formItems.map(({
34
- validate
35
- }) => validate()));
33
+ var res = yield Promise.all(formItems.map(_ref2 => {
34
+ var {
35
+ validate
36
+ } = _ref2;
37
+ return validate();
38
+ }));
36
39
  return res.every(r => r === true);
37
40
  });
38
41
 
@@ -42,14 +45,20 @@ export default defineComponent({
42
45
  }(); // expose
43
46
 
44
47
 
45
- var reset = () => formItems.forEach(({
46
- reset
47
- }) => reset()); // expose
48
+ var reset = () => formItems.forEach(_ref3 => {
49
+ var {
50
+ reset
51
+ } = _ref3;
52
+ return reset();
53
+ }); // expose
48
54
 
49
55
 
50
- var resetValidation = () => formItems.forEach(({
51
- resetValidation
52
- }) => resetValidation());
56
+ var resetValidation = () => formItems.forEach(_ref4 => {
57
+ var {
58
+ resetValidation
59
+ } = _ref4;
60
+ return resetValidation();
61
+ });
53
62
 
54
63
  var formProvider = {
55
64
  disabled,