@web-utils/component 3.0.6 → 3.1.0

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 (172) hide show
  1. package/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,15 +1,5 @@
1
- import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var i = function() {
3
- var e = this, t = e.$createElement, s = e._self._c || t;
4
- return s("div", {
5
- staticClass: "el-collapse",
6
- attrs: {
7
- role: "tablist",
8
- "aria-multiselectable": "true"
9
- }
10
- }, [e._t("default")], 2);
11
- }, c = [];
12
- const l = {
1
+ import { n as s } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const i = {
13
3
  name: "EgdCollapse",
14
4
  componentName: "EgdCollapse",
15
5
  provide() {
@@ -51,29 +41,26 @@ const l = {
51
41
  (this.activeNames[0] || this.activeNames[0] === 0) && this.activeNames[0] === e.name ? "" : e.name
52
42
  );
53
43
  else {
54
- const t = this.activeNames.slice(0), s = t.indexOf(e.name);
55
- s > -1 ? t.splice(s, 1) : t.push(e.name), this.setActiveNames(t);
44
+ const t = this.activeNames.slice(0), a = t.indexOf(e.name);
45
+ a > -1 ? t.splice(a, 1) : t.push(e.name), this.setActiveNames(t);
56
46
  }
57
47
  }
58
48
  }
59
- }, a = {};
60
- var o = /* @__PURE__ */ n(
61
- l,
49
+ };
50
+ var n = function() {
51
+ var t = this, a = t._self._c;
52
+ return a("div", { staticClass: "el-collapse", attrs: { role: "tablist", "aria-multiselectable": "true" } }, [t._t("default")], 2);
53
+ }, c = [], l = /* @__PURE__ */ s(
62
54
  i,
55
+ n,
63
56
  c,
64
57
  !1,
65
- r,
58
+ null,
66
59
  null,
67
60
  null,
68
61
  null
69
62
  );
70
- function r(e) {
71
- for (let t in a)
72
- this[t] = a[t];
73
- }
74
- const u = /* @__PURE__ */ function() {
75
- return o.exports;
76
- }();
63
+ const r = l.exports;
77
64
  export {
78
- u as default
65
+ r as default
79
66
  };
@@ -1,78 +1,12 @@
1
- import a from "element-ui/src/mixins/emitter";
2
- import { generateId as n } from "element-ui/src/utils/util";
3
- import c from "element-ui/lib/transitions/collapse-transition";
4
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
- var r = function() {
6
- var e = this, s = e.$createElement, t = e._self._c || s;
7
- return t("div", {
8
- staticClass: "el-collapse-item",
9
- class: {
10
- "is-active": e.isActive,
11
- "is-disabled": e.disabled
12
- }
13
- }, [t("div", {
14
- attrs: {
15
- role: "tab",
16
- "aria-expanded": e.isActive,
17
- "aria-controls": `el-collapse-content-${e.id}`,
18
- "aria-describedby": `el-collapse-content-${e.id}`
19
- }
20
- }, [t("div", {
21
- staticClass: "el-collapse-item__header",
22
- class: {
23
- focusing: e.focusing,
24
- "is-active": e.isActive
25
- },
26
- attrs: {
27
- id: `el-collapse-head-${e.id}`,
28
- role: "button",
29
- tabindex: e.disabled ? void 0 : 0
30
- },
31
- on: {
32
- click: e.handleHeaderClick,
33
- keyup: function(i) {
34
- return !i.type.indexOf("key") && e._k(i.keyCode, "space", 32, i.key, [" ", "Spacebar"]) && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : (i.stopPropagation(), e.handleEnterClick.apply(null, arguments));
35
- },
36
- focus: e.handleFocus,
37
- blur: function(i) {
38
- e.focusing = !1;
39
- }
40
- }
41
- }, [t("i", {
42
- staticClass: "el-collapse-item__arrow el-icon-arrow-right",
43
- class: {
44
- "is-active": e.isActive
45
- },
46
- staticStyle: {
47
- margin: "0 4px 0 0"
48
- }
49
- }), e._t("title", function() {
50
- return [e._v(" " + e._s(e.title) + " ")];
51
- }, {
52
- title: e.title
53
- })], 2)]), t("ElCollapseTransition", [t("div", {
54
- directives: [{
55
- name: "show",
56
- rawName: "v-show",
57
- value: e.isActive,
58
- expression: "isActive"
59
- }],
60
- staticClass: "el-collapse-item__wrap",
61
- attrs: {
62
- id: `el-collapse-content-${e.id}`,
63
- role: "tabpanel",
64
- "aria-hidden": !e.isActive,
65
- "aria-labelledby": `el-collapse-head-${e.id}`
66
- }
67
- }, [t("div", {
68
- staticClass: "el-collapse-item__content"
69
- }, [e._t("default")], 2)])])], 1);
70
- }, d = [];
71
- const p = {
1
+ import s from "element-ui/src/mixins/emitter";
2
+ import { generateId as l } from "element-ui/src/utils/util";
3
+ import a from "element-ui/lib/transitions/collapse-transition";
4
+ import { n } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
5
+ const c = {
72
6
  name: "EgdCollapseItem",
73
- components: { ElCollapseTransition: c },
7
+ components: { ElCollapseTransition: a },
74
8
  componentName: "EgdCollapseItem",
75
- mixins: [a],
9
+ mixins: [s],
76
10
  inject: ["collapse"],
77
11
  props: {
78
12
  title: {
@@ -90,7 +24,7 @@ const p = {
90
24
  return {
91
25
  focusing: !1,
92
26
  isClick: !1,
93
- id: n()
27
+ id: l()
94
28
  };
95
29
  },
96
30
  computed: {
@@ -111,24 +45,30 @@ const p = {
111
45
  this.dispatch("EgdCollapse", "item-click", this);
112
46
  }
113
47
  }
114
- }, l = {};
115
- var u = /* @__PURE__ */ o(
116
- p,
48
+ };
49
+ var o = function() {
50
+ var e = this, i = e._self._c;
51
+ return i("div", { staticClass: "el-collapse-item", class: { "is-active": e.isActive, "is-disabled": e.disabled } }, [i("div", { attrs: { role: "tab", "aria-expanded": e.isActive, "aria-controls": `el-collapse-content-${e.id}`, "aria-describedby": `el-collapse-content-${e.id}` } }, [i("div", { staticClass: "el-collapse-item__header", class: {
52
+ focusing: e.focusing,
53
+ "is-active": e.isActive
54
+ }, attrs: { id: `el-collapse-head-${e.id}`, role: "button", tabindex: e.disabled ? void 0 : 0 }, on: { click: e.handleHeaderClick, keyup: function(t) {
55
+ return !t.type.indexOf("key") && e._k(t.keyCode, "space", 32, t.key, [" ", "Spacebar"]) && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : (t.stopPropagation(), e.handleEnterClick.apply(null, arguments));
56
+ }, focus: e.handleFocus, blur: function(t) {
57
+ e.focusing = !1;
58
+ } } }, [i("i", { staticClass: "el-collapse-item__arrow el-icon-arrow-right", class: { "is-active": e.isActive }, staticStyle: { margin: "0 4px 0 0" } }), e._t("title", function() {
59
+ return [e._v(" " + e._s(e.title) + " ")];
60
+ }, { title: e.title })], 2)]), i("ElCollapseTransition", [i("div", { directives: [{ name: "show", rawName: "v-show", value: e.isActive, expression: "isActive" }], staticClass: "el-collapse-item__wrap", attrs: { id: `el-collapse-content-${e.id}`, role: "tabpanel", "aria-hidden": !e.isActive, "aria-labelledby": `el-collapse-head-${e.id}` } }, [i("div", { staticClass: "el-collapse-item__content" }, [e._t("default")], 2)])])], 1);
61
+ }, r = [], d = /* @__PURE__ */ n(
62
+ c,
63
+ o,
117
64
  r,
118
- d,
119
65
  !1,
120
- m,
66
+ null,
121
67
  null,
122
68
  null,
123
69
  null
124
70
  );
125
- function m(e) {
126
- for (let s in l)
127
- this[s] = l[s];
128
- }
129
- const C = /* @__PURE__ */ function() {
130
- return u.exports;
131
- }();
71
+ const _ = d.exports;
132
72
  export {
133
- C as default
73
+ _ as default
134
74
  };
@@ -1,114 +1,36 @@
1
- var s = (e, l, t) => new Promise((i, r) => {
2
- var u = (o) => {
1
+ var g = Object.defineProperty, y = Object.defineProperties;
2
+ var _ = Object.getOwnPropertyDescriptors;
3
+ var d = Object.getOwnPropertySymbols;
4
+ var v = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
+ var p = (l, e, t) => e in l ? g(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, u = (l, e) => {
6
+ for (var t in e || (e = {}))
7
+ v.call(e, t) && p(l, t, e[t]);
8
+ if (d)
9
+ for (var t of d(e))
10
+ C.call(e, t) && p(l, t, e[t]);
11
+ return l;
12
+ }, c = (l, e) => y(l, _(e));
13
+ var a = (l, e, t) => new Promise((i, r) => {
14
+ var f = (o) => {
3
15
  try {
4
- a(t.next(o));
16
+ s(t.next(o));
5
17
  } catch (n) {
6
18
  r(n);
7
19
  }
8
- }, c = (o) => {
20
+ }, m = (o) => {
9
21
  try {
10
- a(t.throw(o));
22
+ s(t.throw(o));
11
23
  } catch (n) {
12
24
  r(n);
13
25
  }
14
- }, a = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(u, c);
15
- a((t = t.apply(e, l)).next());
26
+ }, s = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(f, m);
27
+ s((t = t.apply(l, e)).next());
16
28
  });
17
- import d from "element-ui/lib/dialog";
18
- import { dialogDrag as h } from "@web-utils/vue/directives/dialog-drag";
19
- import { getComputedHeight as f, isDef as m } from "@web-utils/core";
20
- import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
- var y = function() {
22
- var e = this, l = e.$createElement, t = e._self._c || l;
23
- return t("Transition", {
24
- attrs: {
25
- name: "dialog-fade"
26
- },
27
- on: {
28
- "after-enter": e.afterEnter,
29
- "after-leave": e.afterLeave
30
- }
31
- }, [t("div", {
32
- directives: [{
33
- name: "show",
34
- rawName: "v-show",
35
- value: e.visible,
36
- expression: "visible"
37
- }, {
38
- name: "dialog-drag",
39
- rawName: "v-dialog-drag:[fullScreen]",
40
- value: {
41
- onMove: e.updatePopper
42
- },
43
- expression: "{ onMove: updatePopper }",
44
- arg: e.fullScreen
45
- }],
46
- staticClass: "el-dialog__wrapper",
47
- on: {
48
- click: function(i) {
49
- return i.target !== i.currentTarget ? null : e.handleWrapperClick.apply(null, arguments);
50
- }
51
- }
52
- }, [t("div", {
53
- ref: "dialog",
54
- class: ["el-dialog", "element-dialog", "el-dialog-resizeable", "normalize", {
55
- "is-fullscreen": e.fullScreen,
56
- "el-dialog__body-padding": e.bodyPadding,
57
- "el-dialog--center": e.center,
58
- "el-dialog--flex-row": e.flexRow,
59
- "el-dialog--flex-column": e.flexColumn
60
- }, e.customClass],
61
- style: Object.assign({}, e.style, {
62
- top: e.marginTop
63
- }),
64
- attrs: {
65
- role: "dialog",
66
- "aria-modal": "true",
67
- "aria-label": e.title || "dialog"
68
- }
69
- }, [t("div", {
70
- staticClass: "el-dialog__header"
71
- }, [e._t("title", function() {
72
- return [t("span", {
73
- staticClass: "el-dialog__title"
74
- }, [e._v(e._s(e.title))])];
75
- }), t("div", {
76
- staticClass: "header-button-wrapper"
77
- }, [e._t("header-button"), e.showFullScreen ? t("ElButton", {
78
- staticClass: "header-button",
79
- attrs: {
80
- type: "text",
81
- icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen",
82
- size: "medium",
83
- title: e.fullScreen ? "还原" : "最大化"
84
- },
85
- on: {
86
- click: e.toggleFullScreen
87
- }
88
- }) : e._e(), e.showClose ? t("ElButton", {
89
- staticClass: "header-button header-dialog-close",
90
- attrs: {
91
- "aria-label": "Close",
92
- type: "text",
93
- title: "关闭",
94
- icon: "el-icon-close",
95
- size: "medium"
96
- },
97
- on: {
98
- click: e.handleClose
99
- }
100
- }) : e._e()], 2)], 2), e.rendered ? t("div", {
101
- staticClass: "el-dialog__body",
102
- style: {
103
- height: e.fullScreen ? "100%" : e.height
104
- }
105
- }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? t("div", {
106
- staticClass: "el-dialog__footer"
107
- }, [e._t("footer", null, {
108
- handleClose: e.handleClose
109
- })], 2) : e._e()])])]);
110
- }, _ = [];
111
- const v = {
29
+ import h from "element-ui/lib/dialog";
30
+ import { dialogDrag as S } from "@web-utils/vue/directives/dialog-drag";
31
+ import { getComputedHeight as b, isDef as w } from "@web-utils/core";
32
+ import { n as x } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
33
+ const B = {
112
34
  props: {
113
35
  visible: {
114
36
  type: Boolean,
@@ -143,12 +65,12 @@ const v = {
143
65
  default: "76vh"
144
66
  }
145
67
  }
146
- }, C = {
68
+ }, T = {
147
69
  name: "ElementDialog",
148
70
  directives: {
149
- dialogDrag: h
71
+ dialogDrag: S
150
72
  },
151
- mixins: [...d.mixins || d.default.mixins, v],
73
+ mixins: [...h.mixins || h.default.mixins, B],
152
74
  props: {
153
75
  title: {
154
76
  type: String,
@@ -208,20 +130,20 @@ const v = {
208
130
  },
209
131
  computed: {
210
132
  style() {
211
- const e = {
133
+ const l = {
212
134
  maxHeight: "100%"
213
135
  };
214
- return this.fullScreen || (this.width && (e.width = this.width), e.maxHeight = this.maxHeight), e;
136
+ return this.fullScreen || (this.width && (l.width = this.width), l.maxHeight = this.maxHeight), l;
215
137
  }
216
138
  },
217
139
  watch: {
218
- visible(e) {
219
- return s(this, null, function* () {
220
- e ? (this.closed = !1, this.$emit("open"), this.$el.addEventListener("scroll", this.updatePopper), yield this.$nextTick(), this.$refs.dialog.scrollTop = 0, yield this.computeTop(), this.appendToBody && document.body.appendChild(this.$el)) : (this.$el.removeEventListener("scroll", this.updatePopper), this.closed || this.$emit("close"));
140
+ visible(l) {
141
+ return a(this, null, function* () {
142
+ l ? (this.closed = !1, this.$emit("open"), this.$el.addEventListener("scroll", this.updatePopper), yield this.$nextTick(), this.$refs.dialog.scrollTop = 0, yield this.computeTop(), this.appendToBody && document.body.appendChild(this.$el)) : (this.$el.removeEventListener("scroll", this.updatePopper), this.closed || this.$emit("close"));
221
143
  });
222
144
  },
223
- fullScreen(e) {
224
- this.$emit("toggle-fullscreen", e);
145
+ fullScreen(l) {
146
+ this.$emit("toggle-fullscreen", l);
225
147
  }
226
148
  },
227
149
  created() {
@@ -232,7 +154,7 @@ const v = {
232
154
  );
233
155
  },
234
156
  mounted() {
235
- return s(this, null, function* () {
157
+ return a(this, null, function* () {
236
158
  this.visible && (this.rendered = !0, this.open(), yield this.computeTop(), this.appendToBody && document.body.appendChild(this.$el));
237
159
  });
238
160
  },
@@ -241,8 +163,8 @@ const v = {
241
163
  },
242
164
  methods: {
243
165
  computeTop() {
244
- return s(this, null, function* () {
245
- yield this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - f(this.$refs.dialog)) / 2 + (m(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
166
+ return a(this, null, function* () {
167
+ yield this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - b(this.$refs.dialog)) / 2 + (w(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
246
168
  });
247
169
  },
248
170
  toggleFullScreen() {
@@ -255,8 +177,8 @@ const v = {
255
177
  this.fullScreen = !1;
256
178
  },
257
179
  shouldShowFooter() {
258
- var e, l;
259
- return !!((l = (e = this.$scopedSlots).footer) != null && l.call(e));
180
+ var l, e;
181
+ return !!((e = (l = this.$scopedSlots).footer) != null && e.call(l));
260
182
  },
261
183
  handleWrapperClick() {
262
184
  this.closeOnClickModal && this.handleClose();
@@ -264,8 +186,8 @@ const v = {
264
186
  handleClose() {
265
187
  typeof this.beforeClose == "function" ? this.beforeClose(this.hide) : this.hide();
266
188
  },
267
- hide(e) {
268
- e !== !1 && (this.embed ? this.$parent.$emit("update:visible", !1) : this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
189
+ hide(l) {
190
+ l !== !1 && (this.embed ? this.$parent.$emit("update:visible", !1) : this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
269
191
  },
270
192
  updatePopper() {
271
193
  this.broadcast("ElSelectDropdown", "updatePopper"), this.broadcast("ElDropdownMenu", "updatePopper");
@@ -277,24 +199,38 @@ const v = {
277
199
  this.exitFullScreen(), this.$emit("closed");
278
200
  }
279
201
  }
280
- }, p = {};
281
- var S = /* @__PURE__ */ g(
282
- C,
283
- y,
284
- _,
202
+ };
203
+ var $ = function() {
204
+ var e = this, t = e._self._c;
205
+ return t("Transition", { attrs: { name: "dialog-fade" }, on: { "after-enter": e.afterEnter, "after-leave": e.afterLeave } }, [t("div", { directives: [{ name: "show", rawName: "v-show", value: e.visible, expression: "visible" }, { name: "dialog-drag", rawName: "v-dialog-drag:[fullScreen]", value: { onMove: e.updatePopper }, expression: "{ onMove: updatePopper }", arg: e.fullScreen }], staticClass: "el-dialog__wrapper", on: { click: function(i) {
206
+ return i.target !== i.currentTarget ? null : e.handleWrapperClick.apply(null, arguments);
207
+ } } }, [t("div", { ref: "dialog", class: [
208
+ "el-dialog",
209
+ "element-dialog",
210
+ "el-dialog-resizeable",
211
+ "normalize",
212
+ {
213
+ "is-fullscreen": e.fullScreen,
214
+ "el-dialog__body-padding": e.bodyPadding,
215
+ "el-dialog--center": e.center,
216
+ "el-dialog--flex-row": e.flexRow,
217
+ "el-dialog--flex-column": e.flexColumn
218
+ },
219
+ e.customClass
220
+ ], style: c(u({}, e.style), { top: e.marginTop }), attrs: { role: "dialog", "aria-modal": "true", "aria-label": e.title || "dialog" } }, [t("div", { staticClass: "el-dialog__header" }, [e._t("title", function() {
221
+ return [t("span", { staticClass: "el-dialog__title" }, [e._v(e._s(e.title))])];
222
+ }), t("div", { staticClass: "header-button-wrapper" }, [e._t("header-button"), e.showFullScreen ? t("ElButton", { staticClass: "header-button", attrs: { type: "text", icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen", size: "medium", title: e.fullScreen ? "还原" : "最大化" }, on: { click: e.toggleFullScreen } }) : e._e(), e.showClose ? t("ElButton", { staticClass: "header-button header-dialog-close", attrs: { "aria-label": "Close", type: "text", title: "关闭", icon: "el-icon-close", size: "medium" }, on: { click: e.handleClose } }) : e._e()], 2)], 2), e.rendered ? t("div", { staticClass: "el-dialog__body", style: { height: e.fullScreen ? "100%" : e.height } }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? t("div", { staticClass: "el-dialog__footer" }, [e._t("footer", null, { handleClose: e.handleClose })], 2) : e._e()])])]);
223
+ }, E = [], F = /* @__PURE__ */ x(
224
+ T,
225
+ $,
226
+ E,
285
227
  !1,
286
- b,
228
+ null,
287
229
  null,
288
230
  null,
289
231
  null
290
232
  );
291
- function b(e) {
292
- for (let l in p)
293
- this[l] = p[l];
294
- }
295
- const E = /* @__PURE__ */ function() {
296
- return S.exports;
297
- }();
233
+ const M = F.exports;
298
234
  export {
299
- E as default
235
+ M as default
300
236
  };
@@ -1,24 +1,5 @@
1
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var s = function() {
3
- var t = this, e = t.$createElement, n = t._self._c || e;
4
- return n("div", {
5
- staticClass: "empty-view",
6
- style: {
7
- fontSize: t.fontSize,
8
- height: t.height
9
- }
10
- }, [t._t("default", function() {
11
- return [n("div", {
12
- staticClass: "flex-column horizon-center"
13
- }, [t.showIcon ? n("i", {
14
- class: t.icon,
15
- style: {
16
- fontSize: t.iconSize
17
- }
18
- }) : t._e(), n("p", [t._v(t._s(t.emptyTips))])])];
19
- })], 2);
20
- }, l = [];
21
- const r = {
1
+ import { n } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const i = {
22
3
  name: "EmptyView",
23
4
  props: {
24
5
  emptyTips: {
@@ -46,24 +27,23 @@ const r = {
46
27
  default: "100%"
47
28
  }
48
29
  }
49
- }, i = {};
50
- var a = /* @__PURE__ */ o(
51
- r,
30
+ };
31
+ var o = function() {
32
+ var e = this, t = e._self._c;
33
+ return t("div", { staticClass: "empty-view", style: { fontSize: e.fontSize, height: e.height } }, [e._t("default", function() {
34
+ return [t("div", { staticClass: "flex-column horizon-center" }, [e.showIcon ? t("i", { class: e.icon, style: { fontSize: e.iconSize } }) : e._e(), t("p", [e._v(e._s(e.emptyTips))])])];
35
+ })], 2);
36
+ }, s = [], l = /* @__PURE__ */ n(
37
+ i,
38
+ o,
52
39
  s,
53
- l,
54
40
  !1,
55
- c,
41
+ null,
56
42
  null,
57
43
  null,
58
44
  null
59
45
  );
60
- function c(t) {
61
- for (let e in i)
62
- this[e] = i[e];
63
- }
64
- const p = /* @__PURE__ */ function() {
65
- return a.exports;
66
- }();
46
+ const p = l.exports;
67
47
  export {
68
48
  p as default
69
49
  };
@@ -1,24 +1,5 @@
1
- import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var o = function() {
3
- var e = this, t = e.$createElement, r = e._self._c || t;
4
- return r("div", {
5
- staticClass: "error-view",
6
- style: {
7
- fontSize: e.fontSize,
8
- height: e.height
9
- }
10
- }, [e._t("default", function() {
11
- return [r("div", {
12
- staticClass: "flex-column horizon-center"
13
- }, [r("i", {
14
- staticClass: "fa fa-frown-o",
15
- style: {
16
- fontSize: e.iconSize
17
- }
18
- }), r("p", [e._v(e._s(e.errorTips))])])];
19
- })], 2);
20
- }, s = [];
21
- const a = {
1
+ import { n as r } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const n = {
22
3
  name: "ErrorView",
23
4
  props: {
24
5
  errorTips: {
@@ -38,24 +19,23 @@ const a = {
38
19
  default: "100%"
39
20
  }
40
21
  }
41
- }, n = {};
42
- var l = /* @__PURE__ */ i(
43
- a,
22
+ };
23
+ var i = function() {
24
+ var e = this, t = e._self._c;
25
+ return t("div", { staticClass: "error-view", style: { fontSize: e.fontSize, height: e.height } }, [e._t("default", function() {
26
+ return [t("div", { staticClass: "flex-column horizon-center" }, [t("i", { staticClass: "fa fa-frown-o", style: { fontSize: e.iconSize } }), t("p", [e._v(e._s(e.errorTips))])])];
27
+ })], 2);
28
+ }, o = [], s = /* @__PURE__ */ r(
29
+ n,
30
+ i,
44
31
  o,
45
- s,
46
32
  !1,
47
- _,
33
+ null,
48
34
  null,
49
35
  null,
50
36
  null
51
37
  );
52
- function _(e) {
53
- for (let t in n)
54
- this[t] = n[t];
55
- }
56
- const f = /* @__PURE__ */ function() {
57
- return l.exports;
58
- }();
38
+ const _ = s.exports;
59
39
  export {
60
- f as default
40
+ _ as default
61
41
  };
@@ -1,17 +1,17 @@
1
- var u = Object.defineProperty, f = Object.defineProperties;
2
- var _ = Object.getOwnPropertyDescriptors;
1
+ var i = Object.defineProperty, u = Object.defineProperties;
2
+ var f = Object.getOwnPropertyDescriptors;
3
3
  var o = Object.getOwnPropertySymbols;
4
- var C = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
- var s = (t, e, n) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, a = (t, e) => {
4
+ var C = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
5
+ var a = (t, e, n) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, s = (t, e) => {
6
6
  for (var n in e || (e = {}))
7
- C.call(e, n) && s(t, n, e[n]);
7
+ C.call(e, n) && a(t, n, e[n]);
8
8
  if (o)
9
9
  for (var n of o(e))
10
- v.call(e, n) && s(t, n, e[n]);
10
+ m.call(e, n) && a(t, n, e[n]);
11
11
  return t;
12
- }, c = (t, e) => f(t, _(e));
12
+ }, c = (t, e) => u(t, f(e));
13
13
  import { g as h } from "../chunks/index.57f871af.mjs";
14
- import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
14
+ import { n as _ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
15
15
  const d = {
16
16
  name: "FlexColumn",
17
17
  functional: !0,
@@ -35,28 +35,20 @@ const d = {
35
35
  },
36
36
  render(t, { data: e, children: n, props: l }) {
37
37
  const r = h(e.class, "flex-column");
38
- return l.center || l.horizonCenter && l.verticalCenter ? (r.push("horizon-center"), r.push("vertical-center")) : (l.horizonCenter && r.push("horizon-center"), l.verticalCenter && r.push("vertical-center")), l.textCenter && r.push("text-center"), t("div", c(a({}, e), { class: r }), n);
38
+ return l.center || l.horizonCenter && l.verticalCenter ? (r.push("horizon-center"), r.push("vertical-center")) : (l.horizonCenter && r.push("horizon-center"), l.verticalCenter && r.push("vertical-center")), l.textCenter && r.push("text-center"), t("div", c(s({}, e), { class: r }), n);
39
39
  }
40
- };
41
- let x, p;
42
- const i = {};
43
- var z = /* @__PURE__ */ m(
40
+ }, v = null, x = null;
41
+ var p = /* @__PURE__ */ _(
44
42
  d,
43
+ v,
45
44
  x,
46
- p,
47
45
  !1,
48
- y,
46
+ null,
49
47
  null,
50
48
  null,
51
49
  null
52
50
  );
53
- function y(t) {
54
- for (let e in i)
55
- this[e] = i[e];
56
- }
57
- const j = /* @__PURE__ */ function() {
58
- return z.exports;
59
- }();
51
+ const F = p.exports;
60
52
  export {
61
- j as default
53
+ F as default
62
54
  };