vary-ui 3.22.32 → 3.22.33

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 (37) hide show
  1. package/dist/{Loading-aE2-1kPL.js → Loading-dsc4xtWj.js} +2 -2
  2. package/dist/{Wrap-DNaPAd76.js → Wrap-BwmKeJ0Z.js} +1 -1
  3. package/dist/lib/Button/Button.js +2 -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 +2 -2
  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/Form/Form.js +2 -2
  12. package/dist/lib/FormItem/FormItem.js +3 -3
  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 +1 -1
  20. package/dist/lib/Radio/Radio.js +2 -2
  21. package/dist/lib/RadioButton/RadioButton.js +2 -2
  22. package/dist/lib/RadioGroup/RadioGroup.js +1 -1
  23. package/dist/lib/Scene/Scene.js +1 -1
  24. package/dist/lib/Scroll/Scroll.js +2 -2
  25. package/dist/lib/Select/Select.js +6 -6
  26. package/dist/lib/Skeleton/Skeleton.js +1 -1
  27. package/dist/lib/Tab/Tab.js +1 -1
  28. package/dist/lib/Table/Table.js +3 -3
  29. package/dist/lib/TableColumn/TableColumn.js +1 -1
  30. package/dist/lib/Tabs/Tabs.js +2 -2
  31. package/dist/types/index.d.ts +2 -3
  32. package/dist/vary-ui.js +38 -10
  33. package/package.json +1 -1
  34. /package/dist/{_plugin-vue_export-helper-w6ik09fm.js → _plugin-vue_export-helper-B-aGZ5h0.js} +0 -0
  35. /package/dist/{_tslib-D5mqZP_P.js → _tslib-D8eTVuhf.js} +0 -0
  36. /package/dist/{config-CdV0J3rx.js → config-CWaLe8x2.js} +0 -0
  37. /package/dist/{utils-7wiLtX-v.js → utils-CXRNx5bZ.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, onMounted, createVNode } from 'vue';
2
- import { c as config } from './config-CdV0J3rx.js';
3
- import { _ as _export_sfc } from './_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { c as config } from './config-CWaLe8x2.js';
3
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-B-aGZ5h0.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-w6ik09fm.js';
2
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-B-aGZ5h0.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-CdV0J3rx.js';
2
+ import { c as config } from '../../config-CWaLe8x2.js';
3
3
  import { Icon } from '@iconify/vue';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, createVNode, createTextVNode } from 'vue';
2
- import { c as config } from '../../config-CdV0J3rx.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { c as config } from '../../config-CWaLe8x2.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, computed, ref, createVNode } from 'vue';
2
- import { c as config } from '../../config-CdV0J3rx.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { c as config } from '../../config-CWaLe8x2.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, provide, computed, createVNode } from 'vue';
2
- import { i as isArray } from '../../utils-7wiLtX-v.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { i as isArray } from '../../utils-CXRNx5bZ.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, createVNode, createApp, h, isVNode } from 'vue';
2
2
  import Button from '../Button/Button.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
4
- import '../../config-CdV0J3rx.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
4
+ import '../../config-CWaLe8x2.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-7wiLtX-v.js';
2
+ import { n as now, e as isTime, g as isYear, h as isMonth, d as isDate, f as isDateTime } from '../../utils-CXRNx5bZ.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-DNaPAd76.js';
7
- import { c as config } from '../../config-CdV0J3rx.js';
8
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
6
+ import { W as Wrap } from '../../Wrap-BwmKeJ0Z.js';
7
+ import { c as config } from '../../config-CWaLe8x2.js';
8
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
9
9
  import '@iconify/vue';
10
10
 
11
11
  const weeks = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
@@ -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-w6ik09fm.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.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-w6ik09fm.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, provide, createVNode } from 'vue';
2
- import { _ as __awaiter } from '../../_tslib-D5mqZP_P.js';
2
+ import { _ as __awaiter } from '../../_tslib-D8eTVuhf.js';
3
3
  import Schema from 'async-validator';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, inject, computed, ref, onMounted, onUnmounted, provide, createVNode } from 'vue';
2
- import { _ as __awaiter } from '../../_tslib-D5mqZP_P.js';
3
- import { c as config } from '../../config-CdV0J3rx.js';
2
+ import { _ as __awaiter } from '../../_tslib-D8eTVuhf.js';
3
+ import { c as config } from '../../config-CWaLe8x2.js';
4
4
  import Schema from 'async-validator';
5
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
5
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, computed, inject, watch, createVNode } from 'vue';
2
- import { W as Wrap } from '../../Wrap-DNaPAd76.js';
3
- import { c as isFun } from '../../utils-7wiLtX-v.js';
4
- import { c as config } from '../../config-CdV0J3rx.js';
5
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { W as Wrap } from '../../Wrap-BwmKeJ0Z.js';
3
+ import { c as isFun } from '../../utils-CXRNx5bZ.js';
4
+ import { c as config } from '../../config-CWaLe8x2.js';
5
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, createVNode } from 'vue';
2
- import { c as config } from '../../config-CdV0J3rx.js';
2
+ import { c as config } from '../../config-CWaLe8x2.js';
3
3
  import { Icon } from '@iconify/vue';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,7 +1,7 @@
1
1
  import { shallowRef, createApp, h } from 'vue';
2
- import { L as Loading } from '../../Loading-aE2-1kPL.js';
3
- import { c as config } from '../../config-CdV0J3rx.js';
4
- import '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { L as Loading } from '../../Loading-dsc4xtWj.js';
3
+ import { c as config } from '../../config-CWaLe8x2.js';
4
+ import '../../_plugin-vue_export-helper-B-aGZ5h0.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-7wiLtX-v.js';
2
+ import { k as debounce } from '../../utils-CXRNx5bZ.js';
3
3
  import Scroll from '../Scroll/Scroll.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.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-CdV0J3rx.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { c as config } from '../../config-CWaLe8x2.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.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-CdV0J3rx.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
5
- import '../../_tslib-D5mqZP_P.js';
6
- import '../../utils-7wiLtX-v.js';
3
+ import { c as config } from '../../config-CWaLe8x2.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
5
+ import '../../_tslib-D8eTVuhf.js';
6
+ import '../../utils-CXRNx5bZ.js';
7
7
  import '../Popover/Popover.js';
8
- import '../../Wrap-DNaPAd76.js';
8
+ import '../../Wrap-BwmKeJ0Z.js';
9
9
  import '../Input/Input.js';
10
10
  import '../Checkbox/Checkbox.js';
11
11
  import '../Scroll/Scroll.js';
12
- import '../../Loading-aE2-1kPL.js';
12
+ import '../../Loading-dsc4xtWj.js';
13
13
 
14
14
  var _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, shallowRef, ref, reactive, watch, createVNode, Teleport, nextTick } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, computed, createVNode } from 'vue';
2
- import { c as config } from '../../config-CdV0J3rx.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { c as config } from '../../config-CWaLe8x2.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, computed, createVNode } from 'vue';
2
- import { c as config } from '../../config-CdV0J3rx.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { c as config } from '../../config-CWaLe8x2.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, provide, computed, createVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  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-w6ik09fm.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.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-7wiLtX-v.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
2
+ import { k as debounce } from '../../utils-CXRNx5bZ.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
4
4
 
5
5
  /**
6
6
  * note:
@@ -1,14 +1,14 @@
1
1
  import { defineComponent, ref, shallowRef, reactive, watch, onMounted, createVNode, createTextVNode, nextTick, isVNode } from 'vue';
2
- import { _ as __awaiter } from '../../_tslib-D5mqZP_P.js';
3
- import { i as isArray, a as isObject, k as debounce } from '../../utils-7wiLtX-v.js';
2
+ import { _ as __awaiter } from '../../_tslib-D8eTVuhf.js';
3
+ import { i as isArray, a as isObject, k as debounce } from '../../utils-CXRNx5bZ.js';
4
4
  import Popover from '../Popover/Popover.js';
5
- import { W as Wrap } from '../../Wrap-DNaPAd76.js';
5
+ import { W as Wrap } from '../../Wrap-BwmKeJ0Z.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-CdV0J3rx.js';
10
- import { L as Loading } from '../../Loading-aE2-1kPL.js';
11
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
9
+ import { c as config } from '../../config-CWaLe8x2.js';
10
+ import { L as Loading } from '../../Loading-dsc4xtWj.js';
11
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.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-w6ik09fm.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.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-w6ik09fm.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.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, computed, nextTick, onMounted, watch, onBeforeMount, createVNode, createTextVNode } from 'vue';
2
- import { m as matchChildrenCoponent, k as debounce, t as throttle } from '../../utils-7wiLtX-v.js';
2
+ import { m as matchChildrenCoponent, k as debounce, t as throttle } from '../../utils-CXRNx5bZ.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-CdV0J3rx.js';
7
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
6
+ import { c as config } from '../../config-CWaLe8x2.js';
7
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.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-w6ik09fm.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.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-7wiLtX-v.js';
2
+ import { m as matchChildrenCoponent } from '../../utils-CXRNx5bZ.js';
3
3
  import Tab from '../Tab/Tab.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-w6ik09fm.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-B-aGZ5h0.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -27,7 +27,7 @@ import Radio from "./lib/RadioGroup/Radio.vue";
27
27
  import RadioButton from "./lib/RadioGroup/RadioButton.vue";
28
28
  import RadioGroup from "./lib/RadioGroup/RadioGroup.vue";
29
29
  import Confirm from "./lib/Confirm/Confirm";
30
- import Preview from "./lib/Preview/Preview.vue";
30
+ import VarPreview from "./lib/Preview/Preview";
31
31
  import { Icon } from "@iconify/vue";
32
32
  declare const VarMessage: {
33
33
  success: any;
@@ -39,8 +39,7 @@ declare const VarMessage: {
39
39
  declare const VarConfirm: typeof Confirm;
40
40
  declare const VarAlert: typeof Confirm;
41
41
  declare const VarLoading: import("vue").DefineComponent<{}, {}, any>;
42
- declare const VarPreview: import("vue").DefineComponent<{}, {}, any>;
43
- export { Scene, Card, Dialog, Divider, Button, Link, Input, Radio, RadioButton, RadioGroup, Checkbox, CheckboxGroup, Select, Date, Tab, Tabs, Table, TableColumn, Menu, Scroll, Skeleton, Switch, Pagination, Popover, Preview, Form, FormItem, Tree, VarMessage, VarConfirm, VarAlert, VarLoading, VarPreview, Icon, };
42
+ export { Scene, Card, Dialog, Divider, Button, Link, Input, Radio, RadioButton, RadioGroup, Checkbox, CheckboxGroup, Select, Date, Tab, Tabs, Table, TableColumn, Menu, Scroll, Skeleton, Switch, Pagination, Popover, Form, FormItem, Tree, VarMessage, VarConfirm, VarAlert, VarLoading, VarPreview, Icon, };
44
43
  export * from "./lib/utils";
45
44
  import "./src/styles/root.scss";
46
45
  import "./icomoon/style.css";
package/dist/vary-ui.js CHANGED
@@ -16,8 +16,8 @@ import Scene from './lib/Scene/Scene.js';
16
16
  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
- import { defineComponent, ref, watch, createVNode, onMounted, onBeforeUnmount, createTextVNode } from 'vue';
20
- import { _ as _export_sfc } from './_plugin-vue_export-helper-w6ik09fm.js';
19
+ import { defineComponent, ref, watch, createVNode, onMounted, onBeforeUnmount, createTextVNode, createApp, h } from 'vue';
20
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-B-aGZ5h0.js';
21
21
  import Tab from './lib/Tab/Tab.js';
22
22
  import Tabs from './lib/Tabs/Tabs.js';
23
23
  import Table from './lib/Table/Table.js';
@@ -28,13 +28,13 @@ import RadioGroup from './lib/RadioGroup/RadioGroup.js';
28
28
  import Message from './lib/Message/Message.js';
29
29
  import createConfirm from './lib/Confirm/Confirm.js';
30
30
  import './lib/Loading/Loading.js';
31
+ import { c as config, s as setConfig } from './config-CWaLe8x2.js';
31
32
  import { Icon } from '@iconify/vue';
32
33
  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-7wiLtX-v.js';
34
- import { s as setConfig } from './config-CdV0J3rx.js';
35
- import { L as Loading } from './Loading-aE2-1kPL.js';
36
- import './Wrap-DNaPAd76.js';
37
- import './_tslib-D5mqZP_P.js';
34
+ 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-CXRNx5bZ.js';
35
+ import { L as Loading } from './Loading-dsc4xtWj.js';
36
+ import './Wrap-BwmKeJ0Z.js';
37
+ import './_tslib-D8eTVuhf.js';
38
38
  import 'async-validator';
39
39
 
40
40
  var _sfc_main$2 = /* @__PURE__ */ defineComponent({
@@ -341,11 +341,40 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
341
341
 
342
342
  var Preview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/loki/Documents/office/aprojects/vary/vary-ui/lib/Preview/Preview.vue"]]);
343
343
 
344
+ const mountRoot = typeof window === "object"
345
+ ? document.createElement("div")
346
+ : {};
347
+ mountRoot.id = "preview_root";
348
+ const defaultOptions = {
349
+ current: 0,
350
+ zIndex: 30,
351
+ urls: [],
352
+ };
353
+ function createPreviewInstance(options) {
354
+ if (options.urls.length === 0) {
355
+ console.warn("preview urls is empty");
356
+ return;
357
+ }
358
+ if (!document.body.contains(mountRoot)) {
359
+ document.body.appendChild(mountRoot);
360
+ }
361
+ const previewInstance = createApp({
362
+ render() {
363
+ return h(Preview, Object.assign(Object.assign(Object.assign(Object.assign({ current: 0, zIndex: 20 }, defaultOptions), (config.preview || {})), { // 全局配置
364
+ onClose() {
365
+ // 组件内部出发的close事件
366
+ previewInstance.unmount();
367
+ } }), options));
368
+ },
369
+ });
370
+ previewInstance.mount(mountRoot);
371
+ }
372
+ Preview.show = createPreviewInstance;
373
+
344
374
  const VarMessage = Message;
345
375
  const VarConfirm = createConfirm;
346
376
  const VarAlert = createConfirm;
347
377
  const VarLoading = Loading;
348
- const VarPreview = Preview;
349
378
  const comps = {
350
379
  Scene,
351
380
  Card,
@@ -370,7 +399,6 @@ const comps = {
370
399
  Tree,
371
400
  Pagination,
372
401
  Popover,
373
- Preview,
374
402
  Menu,
375
403
  Scroll,
376
404
  Form,
@@ -394,4 +422,4 @@ const VaryUI = {
394
422
  },
395
423
  };
396
424
 
397
- export { Button, Card, Checkbox, CheckboxGroup, Date, Dialog, Divider, Form, FormItem, Input, Link, Menu, Pagination, Popover, Preview, Radio, RadioButton, RadioGroup, Scene, Scroll, Select, Skeleton, Switch, Tab, Table, TableColumn, Tabs, Tree, VarAlert, VarConfirm, VarLoading, VarMessage, VarPreview, VaryUI as default };
425
+ export { Button, Card, Checkbox, CheckboxGroup, Date, Dialog, Divider, Form, FormItem, Input, Link, Menu, Pagination, Popover, Radio, RadioButton, RadioGroup, Scene, Scroll, Select, Skeleton, Switch, Tab, Table, TableColumn, Tabs, Tree, VarAlert, VarConfirm, VarLoading, VarMessage, Preview as VarPreview, VaryUI as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vary-ui",
3
- "version": "3.22.32",
3
+ "version": "3.22.33",
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