@varlet/ui 2.16.2 → 2.16.3-alpha.1694267513697

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 (87) hide show
  1. package/es/action-sheet/ActionSheet.mjs +20 -16
  2. package/es/app-bar/AppBar.mjs +10 -9
  3. package/es/avatar/Avatar.mjs +16 -15
  4. package/es/avatar-group/AvatarGroup.mjs +4 -3
  5. package/es/back-top/BackTop.mjs +20 -19
  6. package/es/badge/Badge.mjs +4 -3
  7. package/es/bottom-navigation/BottomNavigation.mjs +70 -63
  8. package/es/bottom-navigation-item/BottomNavigationItem.mjs +13 -10
  9. package/es/breadcrumb/Breadcrumb.mjs +5 -4
  10. package/es/breadcrumbs/Breadcrumbs.mjs +2 -1
  11. package/es/button/Button.mjs +10 -9
  12. package/es/button-group/ButtonGroup.mjs +2 -1
  13. package/es/card/Card.mjs +28 -26
  14. package/es/cell/Cell.mjs +5 -4
  15. package/es/checkbox/Checkbox.mjs +32 -29
  16. package/es/checkbox-group/CheckboxGroup.mjs +45 -40
  17. package/es/chip/Chip.mjs +6 -5
  18. package/es/col/Col.mjs +15 -14
  19. package/es/collapse/Collapse.mjs +30 -29
  20. package/es/collapse-item/CollapseItem.mjs +52 -47
  21. package/es/countdown/Countdown.mjs +36 -35
  22. package/es/counter/Counter.mjs +63 -60
  23. package/es/date-picker/DatePicker.mjs +67 -63
  24. package/es/dialog/Dialog.mjs +39 -29
  25. package/es/divider/Divider.mjs +6 -9
  26. package/es/drag/Drag.mjs +47 -45
  27. package/es/ellipsis/Ellipsis.mjs +6 -5
  28. package/es/fab/Fab.mjs +21 -20
  29. package/es/field-decorator/FieldDecorator.mjs +14 -13
  30. package/es/form/Form.mjs +41 -36
  31. package/es/form-details/FormDetails.mjs +2 -1
  32. package/es/hover-overlay/HoverOverlay.mjs +6 -7
  33. package/es/icon/Icon.mjs +14 -12
  34. package/es/image/Image.mjs +14 -12
  35. package/es/image-preview/ImagePreview.mjs +51 -50
  36. package/es/index-anchor/IndexAnchor.mjs +15 -12
  37. package/es/index-bar/IndexBar.mjs +68 -65
  38. package/es/index.bundle.mjs +1 -1
  39. package/es/index.mjs +1 -1
  40. package/es/input/Input.mjs +63 -56
  41. package/es/link/Link.mjs +6 -5
  42. package/es/list/List.mjs +55 -46
  43. package/es/loading/Loading.mjs +11 -8
  44. package/es/loading-bar/LoadingBar.mjs +2 -1
  45. package/es/menu/Menu.mjs +2 -1
  46. package/es/option/Option.mjs +14 -11
  47. package/es/overlay/Overlay.mjs +18 -18
  48. package/es/pagination/Pagination.mjs +67 -64
  49. package/es/paper/Paper.mjs +4 -3
  50. package/es/picker/Picker.mjs +95 -85
  51. package/es/popup/Popup.mjs +26 -23
  52. package/es/progress/Progress.mjs +9 -8
  53. package/es/pull-refresh/PullRefresh.mjs +54 -51
  54. package/es/radio/Radio.mjs +25 -22
  55. package/es/radio-group/RadioGroup.mjs +30 -25
  56. package/es/rate/Rate.mjs +35 -28
  57. package/es/result/Result.mjs +6 -5
  58. package/es/row/Row.mjs +14 -13
  59. package/es/select/Select.mjs +57 -54
  60. package/es/skeleton/Skeleton.mjs +8 -9
  61. package/es/slider/Slider.mjs +86 -79
  62. package/es/snackbar/Snackbar.mjs +4 -3
  63. package/es/space/Space.mjs +5 -2
  64. package/es/step/Step.mjs +7 -4
  65. package/es/steps/Steps.mjs +5 -4
  66. package/es/sticky/Sticky.mjs +30 -27
  67. package/es/style-provider/StyleProvider.mjs +2 -1
  68. package/es/swipe/Swipe.mjs +95 -89
  69. package/es/swipe-item/SwipeItem.mjs +5 -4
  70. package/es/switch/Switch.mjs +22 -17
  71. package/es/tab/Tab.mjs +16 -12
  72. package/es/tab-item/TabItem.mjs +7 -6
  73. package/es/table/Table.mjs +8 -9
  74. package/es/tabs/Tabs.mjs +57 -52
  75. package/es/tabs-items/TabsItems.mjs +38 -29
  76. package/es/time-picker/TimePicker.mjs +63 -60
  77. package/es/tooltip/Tooltip.mjs +3 -2
  78. package/es/uploader/Uploader.mjs +100 -85
  79. package/es/utils/components.mjs +2 -1
  80. package/es/utils/shared.mjs +0 -1
  81. package/es/varlet.esm.js +9589 -8914
  82. package/es/watermark/Watermark.mjs +29 -26
  83. package/highlight/web-types.en-US.json +1 -1
  84. package/highlight/web-types.zh-CN.json +1 -1
  85. package/lib/varlet.cjs.js +2366 -2103
  86. package/package.json +12 -14
  87. package/umd/varlet.js +4 -4
@@ -10,6 +10,7 @@ import { usePopup } from '../popup/provide.mjs';
10
10
  var SWIPE_DELAY = 250;
11
11
  var SWIPE_OFFSET = 20;
12
12
  var {
13
+ name,
13
14
  n,
14
15
  classes
15
16
  } = createNamespace('swipe');
@@ -59,7 +60,7 @@ function __render__(_ctx, _cache) {
59
60
  }
60
61
 
61
62
  var __sfc__ = defineComponent({
62
- name: 'VarSwipe',
63
+ name,
63
64
  props,
64
65
  setup(props) {
65
66
  var swipeEl = ref(null);
@@ -95,13 +96,46 @@ var __sfc__ = defineComponent({
95
96
  var isExpectDirection = computed(() => direction.value === (props.vertical ? 'vertical' : 'horizontal'));
96
97
  var initializedIndex = false;
97
98
  var timer = -1;
98
- var findSwipeItem = idx => swipeItems.find(_ref => {
99
- var {
100
- index
101
- } = _ref;
102
- return index.value === idx;
103
- });
104
- var dispatchSwipeItems = () => {
99
+ var swipeProvider = {
100
+ size,
101
+ vertical
102
+ };
103
+ bindSwipeItems(swipeProvider);
104
+ call(bindPopup, null);
105
+ watch(() => length.value, /*#__PURE__*/_asyncToGenerator(function* () {
106
+ // In nuxt, the size of the swipe cannot got when the route is change, need double raf
107
+ yield doubleRaf();
108
+ initialIndex();
109
+ resize();
110
+ }));
111
+ if (popup) {
112
+ // watch popup show again
113
+ watch(() => popup.show.value, /*#__PURE__*/function () {
114
+ var _ref2 = _asyncToGenerator(function* (show) {
115
+ if (show) {
116
+ yield doubleRaf();
117
+ resize();
118
+ } else {
119
+ stopAutoplay();
120
+ }
121
+ });
122
+ return function (_x) {
123
+ return _ref2.apply(this, arguments);
124
+ };
125
+ }());
126
+ }
127
+ onActivated(resize);
128
+ onSmartUnmounted(stopAutoplay);
129
+ onWindowResize(resize);
130
+ function findSwipeItem(idx) {
131
+ return swipeItems.find(_ref3 => {
132
+ var {
133
+ index
134
+ } = _ref3;
135
+ return index.value === idx;
136
+ });
137
+ }
138
+ function dispatchSwipeItems() {
105
139
  if (!props.loop) {
106
140
  return;
107
141
  }
@@ -118,8 +152,8 @@ var __sfc__ = defineComponent({
118
152
  findSwipeItem(length.value - 1).setTranslate(0);
119
153
  findSwipeItem(0).setTranslate(0);
120
154
  }
121
- };
122
- var getSwipeIndex = targetSwipeIndex => {
155
+ }
156
+ function getSwipeIndex(targetSwipeIndex) {
123
157
  var swipeIndex = isNumber(targetSwipeIndex) ? targetSwipeIndex : Math.floor((trackTranslate.value - size.value / 2) / -size.value);
124
158
  var {
125
159
  loop
@@ -131,8 +165,8 @@ var __sfc__ = defineComponent({
131
165
  return loop ? length.value : length.value - 1;
132
166
  }
133
167
  return swipeIndex;
134
- };
135
- var swipeIndexToIndex = swipeIndex => {
168
+ }
169
+ function swipeIndexToIndex(swipeIndex) {
136
170
  var {
137
171
  loop
138
172
  } = props;
@@ -143,8 +177,8 @@ var __sfc__ = defineComponent({
143
177
  return loop ? 0 : length.value - 1;
144
178
  }
145
179
  return swipeIndex;
146
- };
147
- var clampIndex = index => {
180
+ }
181
+ function clampIndex(index) {
148
182
  if (props.loop) {
149
183
  if (index < 0) {
150
184
  return length.value + index;
@@ -155,9 +189,12 @@ var __sfc__ = defineComponent({
155
189
  return index;
156
190
  }
157
191
  return clamp(index, 0, length.value - 1);
158
- };
159
- var fixPosition = /*#__PURE__*/function () {
160
- var _ref2 = _asyncToGenerator(function* () {
192
+ }
193
+ function fixPosition() {
194
+ return _fixPosition.apply(this, arguments);
195
+ }
196
+ function _fixPosition() {
197
+ _fixPosition = _asyncToGenerator(function* () {
161
198
  var overLeft = trackTranslate.value >= size.value;
162
199
  var overRight = trackTranslate.value <= -trackSize.value;
163
200
  var leftTranslate = 0;
@@ -172,18 +209,16 @@ var __sfc__ = defineComponent({
172
209
  yield doubleRaf();
173
210
  lockDuration.value = false;
174
211
  });
175
- return function fixPosition() {
176
- return _ref2.apply(this, arguments);
177
- };
178
- }();
179
- var initialIndex = () => {
212
+ return _fixPosition.apply(this, arguments);
213
+ }
214
+ function initialIndex() {
180
215
  if (initializedIndex) {
181
216
  return;
182
217
  }
183
218
  index.value = clampIndex(toNumber(props.initialIndex));
184
219
  initializedIndex = true;
185
- };
186
- var startAutoplay = () => {
220
+ }
221
+ function startAutoplay() {
187
222
  var {
188
223
  autoplay
189
224
  } = props;
@@ -195,16 +230,19 @@ var __sfc__ = defineComponent({
195
230
  next();
196
231
  startAutoplay();
197
232
  }, toNumber(autoplay));
198
- };
199
- var stopAutoplay = () => {
233
+ }
234
+ function stopAutoplay() {
200
235
  timer && clearTimeout(timer);
201
- };
202
- var setTrackTranslate = value => {
236
+ }
237
+ function setTrackTranslate(value) {
203
238
  trackTranslate.value = value;
204
239
  dispatchSwipeItems();
205
- };
206
- var handleTouchstart = /*#__PURE__*/function () {
207
- var _ref3 = _asyncToGenerator(function* (event) {
240
+ }
241
+ function handleTouchstart(_x2) {
242
+ return _handleTouchstart.apply(this, arguments);
243
+ }
244
+ function _handleTouchstart() {
245
+ _handleTouchstart = _asyncToGenerator(function* (event) {
208
246
  if (length.value <= 1 || !props.touchable) {
209
247
  return;
210
248
  }
@@ -213,11 +251,9 @@ var __sfc__ = defineComponent({
213
251
  yield fixPosition();
214
252
  lockDuration.value = true;
215
253
  });
216
- return function handleTouchstart(_x) {
217
- return _ref3.apply(this, arguments);
218
- };
219
- }();
220
- var handleTouchmove = event => {
254
+ return _handleTouchstart.apply(this, arguments);
255
+ }
256
+ function handleTouchmove(event) {
221
257
  var {
222
258
  touchable,
223
259
  vertical
@@ -231,8 +267,8 @@ var __sfc__ = defineComponent({
231
267
  }
232
268
  event.preventDefault();
233
269
  setTrackTranslate(trackTranslate.value + (vertical ? moveY.value : moveX.value));
234
- };
235
- var handleTouchend = () => {
270
+ }
271
+ function handleTouchend() {
236
272
  if (!touching.value) {
237
273
  return;
238
274
  }
@@ -256,10 +292,10 @@ var __sfc__ = defineComponent({
256
292
  if (prevIndex !== index.value) {
257
293
  call(onChange, index.value);
258
294
  }
259
- };
295
+ }
260
296
 
261
297
  // expose
262
- var resize = () => {
298
+ function resize() {
263
299
  if (!swipeEl.value) {
264
300
  return;
265
301
  }
@@ -274,10 +310,14 @@ var __sfc__ = defineComponent({
274
310
  setTimeout(() => {
275
311
  lockDuration.value = false;
276
312
  });
277
- };
313
+ }
314
+
278
315
  // expose
279
- var next = /*#__PURE__*/function () {
280
- var _ref4 = _asyncToGenerator(function* (options) {
316
+ function next(_x3) {
317
+ return _next2.apply(this, arguments);
318
+ } // expose
319
+ function _next2() {
320
+ _next2 = _asyncToGenerator(function* (options) {
281
321
  if (length.value <= 1) {
282
322
  return;
283
323
  }
@@ -301,13 +341,13 @@ var __sfc__ = defineComponent({
301
341
  trackTranslate.value = index.value * -size.value;
302
342
  }
303
343
  });
304
- return function next(_x2) {
305
- return _ref4.apply(this, arguments);
306
- };
307
- }();
308
- // expose
309
- var prev = /*#__PURE__*/function () {
310
- var _ref5 = _asyncToGenerator(function* (options) {
344
+ return _next2.apply(this, arguments);
345
+ }
346
+ function prev(_x4) {
347
+ return _prev.apply(this, arguments);
348
+ } // expose
349
+ function _prev() {
350
+ _prev = _asyncToGenerator(function* (options) {
311
351
  if (length.value <= 1) {
312
352
  return;
313
353
  }
@@ -331,12 +371,9 @@ var __sfc__ = defineComponent({
331
371
  trackTranslate.value = index.value * -size.value;
332
372
  }
333
373
  });
334
- return function prev(_x3) {
335
- return _ref5.apply(this, arguments);
336
- };
337
- }();
338
- // expose
339
- var to = (idx, options) => {
374
+ return _prev.apply(this, arguments);
375
+ }
376
+ function to(idx, options) {
340
377
  if (length.value <= 1 || idx === index.value) {
341
378
  return;
342
379
  }
@@ -351,47 +388,16 @@ var __sfc__ = defineComponent({
351
388
  event: index === count - 1 ? options == null ? void 0 : options.event : false
352
389
  });
353
390
  });
354
- };
355
- var swipeProvider = {
356
- size,
357
- vertical
358
- };
359
- bindSwipeItems(swipeProvider);
360
- call(bindPopup, null);
361
- watch(() => length.value, /*#__PURE__*/_asyncToGenerator(function* () {
362
- // In nuxt, the size of the swipe cannot got when the route is change, need double raf
363
- yield doubleRaf();
364
- initialIndex();
365
- resize();
366
- }));
367
- if (popup) {
368
- // watch popup show again
369
- watch(() => popup.show.value, /*#__PURE__*/function () {
370
- var _ref7 = _asyncToGenerator(function* (show) {
371
- if (show) {
372
- yield doubleRaf();
373
- resize();
374
- } else {
375
- stopAutoplay();
376
- }
377
- });
378
- return function (_x4) {
379
- return _ref7.apply(this, arguments);
380
- };
381
- }());
382
391
  }
383
- onActivated(resize);
384
- onSmartUnmounted(stopAutoplay);
385
- onWindowResize(resize);
386
392
  return {
387
- n,
388
- classes,
389
393
  length,
390
394
  index,
391
395
  swipeEl,
392
396
  trackSize,
393
397
  trackTranslate,
394
398
  lockDuration,
399
+ n,
400
+ classes,
395
401
  handleTouchstart,
396
402
  handleTouchmove,
397
403
  handleTouchend,
@@ -2,6 +2,7 @@ import { defineComponent, ref } from 'vue';
2
2
  import { useSwipe } from './provide.mjs';
3
3
  import { createNamespace } from '../utils/components.mjs';
4
4
  var {
5
+ name,
5
6
  n
6
7
  } = createNamespace('swipe-item');
7
8
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
@@ -17,7 +18,7 @@ function __render__(_ctx, _cache) {
17
18
  }
18
19
 
19
20
  var __sfc__ = defineComponent({
20
- name: 'VarSwipeItem',
21
+ name,
21
22
  setup() {
22
23
  var translate = ref(0);
23
24
  var {
@@ -29,14 +30,14 @@ var __sfc__ = defineComponent({
29
30
  size,
30
31
  vertical
31
32
  } = swipe;
32
- var setTranslate = x => {
33
- translate.value = x;
34
- };
35
33
  var swipeItemProvider = {
36
34
  index,
37
35
  setTranslate
38
36
  };
39
37
  bindSwipe(swipeItemProvider);
38
+ function setTranslate(x) {
39
+ translate.value = x;
40
+ }
40
41
  return {
41
42
  n,
42
43
  size,
@@ -8,6 +8,7 @@ import { multiplySizeUnit } from '../utils/elements.mjs';
8
8
  import { useForm } from '../form/provide.mjs';
9
9
  import { props } from './props.mjs';
10
10
  var {
11
+ name,
11
12
  n,
12
13
  classes
13
14
  } = createNamespace('switch');
@@ -60,7 +61,7 @@ function __render__(_ctx, _cache) {
60
61
  }, null, 8 /* PROPS */, ["error-message"])], 2 /* CLASS */)), [[_directive_hover, _ctx.hover, "desktop"]]);
61
62
  }
62
63
  var __sfc__ = defineComponent({
63
- name: 'VarSwitch',
64
+ name,
64
65
  components: {
65
66
  VarFormDetails,
66
67
  VarHoverOverlay
@@ -85,8 +86,6 @@ var __sfc__ = defineComponent({
85
86
  hovering,
86
87
  handleHovering
87
88
  } = useHoverOverlay();
88
- var validate = () => v(props.rules, props.modelValue);
89
- var validateWithTrigger = () => nextTick(() => vt(['onChange'], 'onChange', props.rules, props.modelValue));
90
89
  var styleComputed = computed(() => {
91
90
  var {
92
91
  size,
@@ -123,7 +122,19 @@ var __sfc__ = defineComponent({
123
122
  };
124
123
  });
125
124
  var radius = computed(() => multiplySizeUnit(props.size, 0.8));
126
- var switchActive = event => {
125
+ var switchProvider = {
126
+ reset,
127
+ validate,
128
+ resetValidation
129
+ };
130
+ call(bindForm, switchProvider);
131
+ function validate() {
132
+ return v(props.rules, props.modelValue);
133
+ }
134
+ function validateWithTrigger() {
135
+ return nextTick(() => vt(['onChange'], 'onChange', props.rules, props.modelValue));
136
+ }
137
+ function switchActive(event) {
127
138
  var {
128
139
  onClick,
129
140
  onChange,
@@ -143,32 +154,26 @@ var __sfc__ = defineComponent({
143
154
  call(onChange, newValue);
144
155
  call(updateModelValue, newValue);
145
156
  validateWithTrigger();
146
- };
147
- var hover = value => {
157
+ }
158
+ function hover(value) {
148
159
  if (props.disabled || form != null && form.disabled.value) {
149
160
  return;
150
161
  }
151
162
  handleHovering(value);
152
- };
153
- var reset = () => {
163
+ }
164
+ function reset() {
154
165
  call(props['onUpdate:modelValue'], props.inactiveValue);
155
166
  resetValidation();
156
- };
157
- var switchProvider = {
158
- reset,
159
- validate,
160
- resetValidation
161
- };
162
- call(bindForm, switchProvider);
167
+ }
163
168
  return {
164
- n,
165
- classes,
166
169
  hovering,
167
170
  radius,
168
171
  styleComputed,
169
172
  errorMessage,
170
173
  formDisabled: form == null ? void 0 : form.disabled,
171
174
  formReadonly: form == null ? void 0 : form.readonly,
175
+ n,
176
+ classes,
172
177
  multiplySizeUnit,
173
178
  switchActive,
174
179
  hover
package/es/tab/Tab.mjs CHANGED
@@ -4,6 +4,7 @@ import { props } from './props.mjs';
4
4
  import { call, createNamespace } from '../utils/components.mjs';
5
5
  import { useTabs } from './provide.mjs';
6
6
  var {
7
+ name,
7
8
  n,
8
9
  classes
9
10
  } = createNamespace('tab');
@@ -24,16 +25,16 @@ function __render__(_ctx, _cache) {
24
25
  }]]);
25
26
  }
26
27
  var __sfc__ = defineComponent({
27
- name: 'VarTab',
28
+ name,
28
29
  directives: {
29
30
  Ripple
30
31
  },
31
32
  props,
32
33
  setup(props) {
33
34
  var tabEl = ref(null);
35
+ var element = computed(() => tabEl.value);
34
36
  var name = computed(() => props.name);
35
37
  var disabled = computed(() => props.disabled);
36
- var element = computed(() => tabEl.value);
37
38
  var {
38
39
  index,
39
40
  tabs,
@@ -55,15 +56,20 @@ var __sfc__ = defineComponent({
55
56
  element
56
57
  };
57
58
  bindTabs(tabProvider);
58
- var shouldActive = () => {
59
+ watch(() => [props.name, props.disabled], resize);
60
+ function shouldActive() {
59
61
  if (props.name != null) {
60
62
  return active.value === props.name;
61
63
  }
62
64
  return active.value === (index == null ? void 0 : index.value);
63
- };
64
- var computeColorStyle = () => props.disabled ? disabledColor.value : shouldActive() ? activeColor.value : inactiveColor.value;
65
- var computeColorClass = () => props.disabled ? n('$-tab--disabled') : shouldActive() ? n('$-tab--active') : n('$-tab--inactive');
66
- var handleClick = event => {
65
+ }
66
+ function computeColorStyle() {
67
+ return props.disabled ? disabledColor.value : shouldActive() ? activeColor.value : inactiveColor.value;
68
+ }
69
+ function computeColorClass() {
70
+ return props.disabled ? n('$-tab--disabled') : shouldActive() ? n('$-tab--active') : n('$-tab--inactive');
71
+ }
72
+ function handleClick(event) {
67
73
  var {
68
74
  disabled,
69
75
  name,
@@ -74,17 +80,15 @@ var __sfc__ = defineComponent({
74
80
  }
75
81
  call(onClick, name != null ? name : index.value, event);
76
82
  onTabClick(tabProvider);
77
- };
78
- watch(() => props.name, resize);
79
- watch(() => props.disabled, resize);
83
+ }
80
84
  return {
81
- n,
82
- classes,
83
85
  tabEl,
84
86
  active,
85
87
  activeColor,
86
88
  inactiveColor,
87
89
  itemDirection,
90
+ n,
91
+ classes,
88
92
  computeColorStyle,
89
93
  computeColorClass,
90
94
  handleClick
@@ -4,6 +4,7 @@ import { useTabsItems, useLists } from './provide.mjs';
4
4
  import { props } from './props.mjs';
5
5
  import { createNamespace } from '../utils/components.mjs';
6
6
  var {
7
+ name,
7
8
  n,
8
9
  classes
9
10
  } = createNamespace('tab-item');
@@ -19,7 +20,7 @@ function __render__(_ctx, _cache) {
19
20
  }, 8 /* PROPS */, ["class"]);
20
21
  }
21
22
  var __sfc__ = defineComponent({
22
- name: 'VarTabItem',
23
+ name,
23
24
  components: {
24
25
  VarSwipeItem
25
26
  },
@@ -34,9 +35,6 @@ var __sfc__ = defineComponent({
34
35
  var {
35
36
  bindLists
36
37
  } = useLists();
37
- var setCurrent = value => {
38
- current.value = value;
39
- };
40
38
  var tabItemProvider = {
41
39
  index,
42
40
  name,
@@ -45,10 +43,13 @@ var __sfc__ = defineComponent({
45
43
  };
46
44
  bindTabsItems(tabItemProvider);
47
45
  bindLists(tabItemProvider);
46
+ function setCurrent(value) {
47
+ current.value = value;
48
+ }
48
49
  return {
50
+ current,
49
51
  n,
50
- classes,
51
- current
52
+ classes
52
53
  };
53
54
  }
54
55
  });
@@ -3,6 +3,7 @@ import { toSizeUnit } from '../utils/elements.mjs';
3
3
  import { createNamespace, formatElevation } from '../utils/components.mjs';
4
4
  import { props } from './props.mjs';
5
5
  var {
6
+ name,
6
7
  n,
7
8
  classes
8
9
  } = createNamespace('table');
@@ -24,16 +25,14 @@ function __render__(_ctx, _cache) {
24
25
  }
25
26
 
26
27
  var __sfc__ = defineComponent({
27
- name: 'VarTable',
28
+ name,
28
29
  props,
29
- setup() {
30
- return {
31
- toSizeUnit,
32
- n,
33
- classes,
34
- formatElevation
35
- };
36
- }
30
+ setup: () => ({
31
+ toSizeUnit,
32
+ n,
33
+ classes,
34
+ formatElevation
35
+ })
37
36
  });
38
37
  __sfc__.render = __render__;
39
38
  export default __sfc__;