vary-ui 3.21.74 → 3.21.76

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 (35) hide show
  1. package/dist/{Loading-yWPX2B9-.js → Loading-CKG1TIjk.js} +2 -2
  2. package/dist/{Wrap-gnsgcvoR.js → Wrap-D2IMiRuR.js} +1 -1
  3. package/dist/lib/Button/Button.js +3 -2
  4. package/dist/lib/Card/Card.js +2 -2
  5. package/dist/lib/Checkbox/Checkbox.js +2 -2
  6. package/dist/lib/CheckboxGroup/CheckboxGroup.js +3 -3
  7. package/dist/lib/Confirm/Confirm.js +2 -2
  8. package/dist/lib/Date/Date.js +4 -4
  9. package/dist/lib/Dialog/Dialog.js +1 -1
  10. package/dist/lib/Divider/Divider.js +1 -1
  11. package/dist/lib/Field/Field.js +3 -3
  12. package/dist/lib/Form/Form.js +2 -2
  13. package/dist/lib/Input/Input.js +4 -4
  14. package/dist/lib/Link/Link.js +2 -2
  15. package/dist/lib/Loading/Loading.js +3 -3
  16. package/dist/lib/Menu/Menu.js +2 -2
  17. package/dist/lib/Message/Message.js +2 -2
  18. package/dist/lib/Pagination/Pagination.js +6 -6
  19. package/dist/lib/Popover/Popover.js +2 -2
  20. package/dist/lib/Radio/Radio.js +2 -2
  21. package/dist/lib/RadioGroup/RadioGroup.js +2 -2
  22. package/dist/lib/Scene/Scene.js +1 -1
  23. package/dist/lib/Scroll/Scroll.js +45 -12
  24. package/dist/lib/Select/Select.js +6 -6
  25. package/dist/lib/Skeleton/Skeleton.js +1 -1
  26. package/dist/lib/Tab/Tab.js +2 -2
  27. package/dist/lib/TabPanel/TabPanel.js +1 -1
  28. package/dist/lib/Table/Table.js +3 -3
  29. package/dist/lib/TableColumn/TableColumn.js +1 -1
  30. package/dist/vary-ui.js +6 -6
  31. package/package.json +1 -1
  32. /package/dist/{_plugin-vue_export-helper-Dgyzs8AD.js → _plugin-vue_export-helper-BKE9asqm.js} +0 -0
  33. /package/dist/{_tslib-Cj5gnqmv.js → _tslib-Dz10uJ9z.js} +0 -0
  34. /package/dist/{config-SJ_NjEWr.js → config-C-p6Thkt.js} +0 -0
  35. /package/dist/{utils-Bxjc2EVw.js → utils-Bh-WxWEN.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, onMounted, createVNode } from 'vue';
2
- import { c as config } from './config-SJ_NjEWr.js';
3
- import { _ as _export_sfc } from './_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { c as config } from './config-C-p6Thkt.js';
3
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-BKE9asqm.js';
4
4
 
5
5
  var _a;
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode } from 'vue';
2
- import { _ as _export_sfc } from './_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-BKE9asqm.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, createVNode } from 'vue';
2
- import { c as config } from '../../config-SJ_NjEWr.js';
2
+ import { c as config } from '../../config-C-p6Thkt.js';
3
3
  import { Icon } from '@iconify/vue';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -75,6 +75,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
75
75
  return () => {
76
76
  const size = _props.size || config.size || "default";
77
77
  return createVNode("button", {
78
+ "type": "button",
78
79
  "class": ["v_button", `v_button--${size}`, {
79
80
  [`v_button--${buttonType.value}`]: buttonType.value,
80
81
  "v_button--disabled": _props.disabled,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, createVNode, createTextVNode } from 'vue';
2
- import { c as config } from '../../config-SJ_NjEWr.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { c as config } from '../../config-C-p6Thkt.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, watch, inject, createVNode } from 'vue';
2
- import { c as config } from '../../config-SJ_NjEWr.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { c as config } from '../../config-C-p6Thkt.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, watch, provide, createVNode } from 'vue';
2
- import { i as isArray } from '../../utils-Bxjc2EVw.js';
2
+ import { i as isArray } from '../../utils-Bh-WxWEN.js';
3
3
  import Checkbox from '../Checkbox/Checkbox.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
5
- import '../../config-SJ_NjEWr.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
5
+ import '../../config-C-p6Thkt.js';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, createVNode, createApp, h } from 'vue';
2
2
  import Button from '../Button/Button.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
4
- import '../../config-SJ_NjEWr.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
4
+ import '../../config-C-p6Thkt.js';
5
5
  import '@iconify/vue';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, shallowRef, ref, reactive, watch, createVNode, createTextVNode } from 'vue';
2
- import { n as now, e as isTime, g as isYear, h as isMonth, d as isDate, f as isDateTime } from '../../utils-Bxjc2EVw.js';
2
+ import { n as now, e as isTime, g as isYear, h as isMonth, d as isDate, f as isDateTime } from '../../utils-Bh-WxWEN.js';
3
3
  import Popover from '../Popover/Popover.js';
4
4
  import Scroll from '../Scroll/Scroll.js';
5
5
  import Link from '../Link/Link.js';
6
- import { W as Wrap } from '../../Wrap-gnsgcvoR.js';
7
- import { c as config } from '../../config-SJ_NjEWr.js';
8
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
6
+ import { W as Wrap } from '../../Wrap-D2IMiRuR.js';
7
+ import { c as config } from '../../config-C-p6Thkt.js';
8
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
9
9
 
10
10
  const weeks = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
11
11
  const months = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"].map((r, i) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, watch, onMounted, onBeforeUnmount, createVNode, createTextVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, inject, ref, onMounted, onUnmounted, provide, createVNode } from 'vue';
2
- import { _ as __awaiter } from '../../_tslib-Cj5gnqmv.js';
3
- import { c as config } from '../../config-SJ_NjEWr.js';
2
+ import { _ as __awaiter } from '../../_tslib-Dz10uJ9z.js';
3
+ import { c as config } from '../../config-C-p6Thkt.js';
4
4
  import Schema from 'async-validator';
5
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
5
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, provide, createVNode } from 'vue';
2
- import { _ as __awaiter } from '../../_tslib-Cj5gnqmv.js';
2
+ import { _ as __awaiter } from '../../_tslib-Dz10uJ9z.js';
3
3
  import Schema from 'async-validator';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, inject, watch, createVNode, mergeProps } from 'vue';
2
- import { W as Wrap } from '../../Wrap-gnsgcvoR.js';
3
- import { c as isFun } from '../../utils-Bxjc2EVw.js';
4
- import { c as config } from '../../config-SJ_NjEWr.js';
5
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { W as Wrap } from '../../Wrap-D2IMiRuR.js';
3
+ import { c as isFun } from '../../utils-Bh-WxWEN.js';
4
+ import { c as config } from '../../config-C-p6Thkt.js';
5
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  inheritAttrs: false,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, createVNode } from 'vue';
2
- import { c as config } from '../../config-SJ_NjEWr.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { c as config } from '../../config-C-p6Thkt.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,7 +1,7 @@
1
1
  import { shallowRef, createApp, h } from 'vue';
2
- import { L as Loading } from '../../Loading-yWPX2B9-.js';
3
- import { c as config } from '../../config-SJ_NjEWr.js';
4
- import '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { L as Loading } from '../../Loading-CKG1TIjk.js';
3
+ import { c as config } from '../../config-C-p6Thkt.js';
4
+ import '../../_plugin-vue_export-helper-BKE9asqm.js';
5
5
 
6
6
  const defaultOptions = {
7
7
  lock: false,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, createVNode } from 'vue';
2
- import { k as debounce } from '../../utils-Bxjc2EVw.js';
2
+ import { k as debounce } from '../../utils-Bh-WxWEN.js';
3
3
  import Scroll from '../Scroll/Scroll.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, onMounted, h, createApp } from 'vue';
2
- import { c as config } from '../../config-SJ_NjEWr.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { c as config } from '../../config-C-p6Thkt.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
4
4
 
5
5
  var _sfc_main = defineComponent({
6
6
  props: {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent, ref, watch, createVNode, createTextVNode } from 'vue';
2
2
  import Select from '../Select/Select.js';
3
- import { c as config } from '../../config-SJ_NjEWr.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
5
- import '../../_tslib-Cj5gnqmv.js';
6
- import '../../utils-Bxjc2EVw.js';
3
+ import { c as config } from '../../config-C-p6Thkt.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
5
+ import '../../_tslib-Dz10uJ9z.js';
6
+ import '../../utils-Bh-WxWEN.js';
7
7
  import '../Popover/Popover.js';
8
- import '../../Wrap-gnsgcvoR.js';
8
+ import '../../Wrap-D2IMiRuR.js';
9
9
  import '../Input/Input.js';
10
10
  import '../Checkbox/Checkbox.js';
11
11
  import '../Scroll/Scroll.js';
12
- import '../../Loading-yWPX2B9-.js';
12
+ import '../../Loading-CKG1TIjk.js';
13
13
 
14
14
  var _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, shallowRef, ref, watch, onMounted, onBeforeUnmount, createVNode, nextTick } from 'vue';
2
- import { t as throttle } from '../../utils-Bxjc2EVw.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { t as throttle } from '../../utils-Bh-WxWEN.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, watch, createVNode, inject } from 'vue';
2
- import { c as config } from '../../config-SJ_NjEWr.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { c as config } from '../../config-C-p6Thkt.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, provide, createVNode } from 'vue';
2
2
  import Radio from '../Radio/Radio.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
4
- import '../../config-SJ_NjEWr.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
4
+ import '../../config-C-p6Thkt.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, renderSlot } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
3
3
 
4
4
  var _sfc_main = /*@__PURE__*/ defineComponent({
5
5
  __name: 'Scene',
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, shallowRef, ref, onMounted, nextTick, onBeforeUnmount, createVNode } from 'vue';
2
- import { k as debounce } from '../../utils-Bxjc2EVw.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { k as debounce } from '../../utils-Bh-WxWEN.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
4
4
 
5
5
  /**
6
6
  * note:
@@ -99,6 +99,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
99
99
  });
100
100
  function scrollTo(x, y) {
101
101
  // 暴露到外部, x,y是正数
102
+ const maxLeft = Math.abs(rootWidth - bodyWidth);
103
+ const maxTop = Math.abs(rootHeight - bodyHeight);
104
+ if (x > maxLeft) {
105
+ x = maxLeft;
106
+ }
107
+ if (y > maxTop) {
108
+ y = maxTop;
109
+ }
102
110
  if (x > -1) {
103
111
  bodyLeft = -x;
104
112
  thumbLeft = Math.abs(bodyLeft) / ratioX;
@@ -107,7 +115,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
107
115
  bodyTop = -y;
108
116
  thumbTop = Math.abs(bodyTop) / ratioY;
109
117
  }
110
- // console.log(bodyLeft, bodyTop)
118
+ bodyRef.value.style.transform = `matrix(1,0,0,1,${bodyLeft},${bodyTop})`;
119
+ thumbYRef.value.style.transform = `translateY(${thumbTop}px)`;
120
+ thumbXRef.value.style.transform = `translateX(${thumbLeft}px)`;
121
+ }
122
+ function scrollBy(x, y) {
123
+ // 暴露到外部, x,y是正数
124
+ const maxLeft = Math.abs(rootWidth - bodyWidth);
125
+ const maxTop = Math.abs(rootHeight - bodyHeight);
126
+ let targetX = Math.abs(bodyLeft) + x;
127
+ let targetY = Math.abs(bodyTop) + y;
128
+ if (targetX > maxLeft) {
129
+ targetX = maxLeft;
130
+ }
131
+ if (targetX < 0) {
132
+ targetX = 0;
133
+ }
134
+ if (targetY > maxTop) {
135
+ targetY = maxTop;
136
+ }
137
+ if (targetY < 0) {
138
+ targetY = 0;
139
+ }
140
+ bodyLeft = -targetX;
141
+ thumbLeft = Math.abs(bodyLeft) / ratioX;
142
+ bodyTop = -targetY;
143
+ thumbTop = Math.abs(bodyTop) / ratioY;
111
144
  bodyRef.value.style.transform = `matrix(1,0,0,1,${bodyLeft},${bodyTop})`;
112
145
  thumbYRef.value.style.transform = `translateY(${thumbTop}px)`;
113
146
  thumbXRef.value.style.transform = `translateX(${thumbLeft}px)`;
@@ -126,6 +159,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
126
159
  }
127
160
  _expose({
128
161
  scrollTo,
162
+ scrollBy,
129
163
  rect
130
164
  });
131
165
  const computedSize = debounce(function () {
@@ -165,7 +199,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
165
199
  }
166
200
  if (bodyWidth > rootWidth) {
167
201
  // 如果内容宽度 > 容器宽度, 计算滑块宽度
168
- console.log('bodyWidth > rootWidth', bodyWidth, rootWidth);
169
202
  showScrollX.value = true;
170
203
  // 计算出来thumb_bar的宽度
171
204
  thumbBarWidth = rootWidth - (bodyWidth - rootWidth);
@@ -305,7 +338,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
305
338
  // 翻转模式, 竖向滚轮, 改变水平位置
306
339
  if (showScrollY.value && e.deltaX > 0) {
307
340
  // 内容向上滚动
308
- _emit('scroll-top');
341
+ _emit("scroll-top");
309
342
  currentTop = bodyTop - moveX;
310
343
  // 如果内容向上移动距离超过了最大距离, 就设为最大距离
311
344
  if (currentTop <= maxTop) {
@@ -318,7 +351,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
318
351
  }
319
352
  if (showScrollY.value && e.deltaX < 0) {
320
353
  // 内容向下滚动
321
- _emit('scroll-bottom');
354
+ _emit("scroll-bottom");
322
355
  currentTop = bodyTop + moveX;
323
356
  // 如果内容向下滚动距离超过了最小距离, 就设为0
324
357
  if (currentTop >= 0) {
@@ -332,7 +365,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
332
365
  if (showScrollX.value && e.deltaY > 0) {
333
366
  e.preventDefault();
334
367
  // 内容向左滚动
335
- _emit('scroll-left');
368
+ _emit("scroll-left");
336
369
  currentLeft = bodyLeft - moveY;
337
370
  // 如果body向左移动距离超过了最大距离, 就设为最大距离, 这里的currentLeft与maxLeft都是负值
338
371
  if (currentLeft <= maxLeft) {
@@ -343,7 +376,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
343
376
  if (showScrollX.value && e.deltaY < 0) {
344
377
  e.preventDefault();
345
378
  // 内容向右滚动
346
- _emit('scroll-right');
379
+ _emit("scroll-right");
347
380
  currentLeft = bodyLeft + moveY;
348
381
  // 如果body向右移动距离超过0, 就设为0
349
382
  if (currentLeft >= 0) {
@@ -354,7 +387,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
354
387
  } else {
355
388
  if (showScrollY.value && e.deltaY > 0) {
356
389
  // 内容向上滚动
357
- _emit('scroll-top');
390
+ _emit("scroll-top");
358
391
  currentTop = bodyTop - moveY;
359
392
  // 如果内容向上移动距离超过了最大距离, 就设为最大距离
360
393
  if (currentTop <= maxTop) {
@@ -367,7 +400,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
367
400
  }
368
401
  if (showScrollY.value && e.deltaY < 0) {
369
402
  // 内容向下滚动
370
- _emit('scroll-bottom');
403
+ _emit("scroll-bottom");
371
404
  currentTop = bodyTop + moveY;
372
405
  // 如果内容向下滚动距离超过了最小距离, 就设为0
373
406
  if (currentTop >= 0) {
@@ -380,7 +413,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
380
413
  }
381
414
  if (showScrollX.value && e.deltaX > 0) {
382
415
  // 内容向左滚动
383
- _emit('scroll-left');
416
+ _emit("scroll-left");
384
417
  e.preventDefault();
385
418
  currentLeft = bodyLeft - moveX;
386
419
  // 如果body向左移动距离超过了最大距离, 就设为最大距离, 这里的currentLeft与maxLeft都是负值
@@ -391,7 +424,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
391
424
  }
392
425
  if (showScrollX.value && e.deltaX < 0) {
393
426
  // 内容向右滚动
394
- _emit('scroll-right');
427
+ _emit("scroll-right");
395
428
  e.preventDefault();
396
429
  currentLeft = bodyLeft + moveX;
397
430
  // 如果body向右移动距离超过0, 就设为0
@@ -1,14 +1,14 @@
1
1
  import { defineComponent, ref, shallowRef, reactive, watch, createVNode, createTextVNode, nextTick, isVNode } from 'vue';
2
- import { _ as __awaiter } from '../../_tslib-Cj5gnqmv.js';
3
- import { k as debounce } from '../../utils-Bxjc2EVw.js';
2
+ import { _ as __awaiter } from '../../_tslib-Dz10uJ9z.js';
3
+ import { k as debounce } from '../../utils-Bh-WxWEN.js';
4
4
  import Popover from '../Popover/Popover.js';
5
- import { W as Wrap } from '../../Wrap-gnsgcvoR.js';
5
+ import { W as Wrap } from '../../Wrap-D2IMiRuR.js';
6
6
  import Input from '../Input/Input.js';
7
7
  import Checkbox from '../Checkbox/Checkbox.js';
8
8
  import Scroll from '../Scroll/Scroll.js';
9
- import { c as config } from '../../config-SJ_NjEWr.js';
10
- import { L as Loading } from '../../Loading-yWPX2B9-.js';
11
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
9
+ import { c as config } from '../../config-C-p6Thkt.js';
10
+ import { L as Loading } from '../../Loading-CKG1TIjk.js';
11
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
12
12
 
13
13
  /**
14
14
  关于远程搜索:
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, onBeforeUnmount, createVNode } from 'vue';
2
- import { m as matchChildrenCoponent } from '../../utils-Bxjc2EVw.js';
2
+ import { m as matchChildrenCoponent } from '../../utils-Bh-WxWEN.js';
3
3
  import TabPanel from '../TabPanel/TabPanel.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  setup(_props, {
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, ref, shallowRef, reactive, nextTick, onMounted, watch, onBeforeMount, createVNode, createTextVNode } from 'vue';
2
- import { k as debounce, m as matchChildrenCoponent } from '../../utils-Bxjc2EVw.js';
2
+ import { k as debounce, m as matchChildrenCoponent } from '../../utils-Bh-WxWEN.js';
3
3
  import Checkbox from '../Checkbox/Checkbox.js';
4
4
  import Scroll from '../Scroll/Scroll.js';
5
5
  import TableColumn from '../TableColumn/TableColumn.js';
6
- import { c as config } from '../../config-SJ_NjEWr.js';
7
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
6
+ import { c as config } from '../../config-C-p6Thkt.js';
7
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
8
8
 
9
9
  let colKey = 0;
10
10
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dgyzs8AD.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BKE9asqm.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
package/dist/vary-ui.js CHANGED
@@ -17,7 +17,7 @@ import Scroll from './lib/Scroll/Scroll.js';
17
17
  import Select from './lib/Select/Select.js';
18
18
  import Skeleton from './lib/Skeleton/Skeleton.js';
19
19
  import { defineComponent, ref, watch, createVNode, onMounted, onBeforeUnmount, createTextVNode, createApp, h } from 'vue';
20
- import { _ as _export_sfc } from './_plugin-vue_export-helper-Dgyzs8AD.js';
20
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-BKE9asqm.js';
21
21
  import Tab from './lib/Tab/Tab.js';
22
22
  import Table from './lib/Table/Table.js';
23
23
  import TableColumn from './lib/TableColumn/TableColumn.js';
@@ -27,13 +27,13 @@ import RadioGroup from './lib/RadioGroup/RadioGroup.js';
27
27
  export { default as Message } from './lib/Message/Message.js';
28
28
  export { default as Confirm } from './lib/Confirm/Confirm.js';
29
29
  import './lib/Loading/Loading.js';
30
- import { c as config, s as setConfig } from './config-SJ_NjEWr.js';
30
+ import { c as config, s as setConfig } from './config-C-p6Thkt.js';
31
31
  import { Icon } from '@iconify/vue';
32
32
  export { Icon } from '@iconify/vue';
33
- export { k as debounce, i as isArray, b as isBoolean, d as isDate, f as isDateTime, c as isFun, h as isMonth, j as isNumber, a as isObject, e as isTime, g as isYear, m as matchChildrenCoponent, n as now, t as throttle } from './utils-Bxjc2EVw.js';
34
- import { L as Loading } from './Loading-yWPX2B9-.js';
35
- import './Wrap-gnsgcvoR.js';
36
- import './_tslib-Cj5gnqmv.js';
33
+ export { k as debounce, i as isArray, b as isBoolean, d as isDate, f as isDateTime, c as isFun, h as isMonth, j as isNumber, a as isObject, e as isTime, g as isYear, m as matchChildrenCoponent, n as now, t as throttle } from './utils-Bh-WxWEN.js';
34
+ import { L as Loading } from './Loading-CKG1TIjk.js';
35
+ import './Wrap-D2IMiRuR.js';
36
+ import './_tslib-Dz10uJ9z.js';
37
37
  import 'async-validator';
38
38
 
39
39
  var _sfc_main$2 = /* @__PURE__ */ defineComponent({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vary-ui",
3
- "version": "3.21.74",
3
+ "version": "3.21.76",
4
4
  "description": "vary-ui base vue3",
5
5
  "homepage": "https://varyui.com",
6
6
  "main": "dist/vary-ui.js",
File without changes
File without changes
File without changes