@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
package/queue/index.mjs CHANGED
@@ -1,17 +1,5 @@
1
- import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var o = function() {
3
- var e = this, t = e.$createElement, n = e._self._c || t;
4
- return n("div", {
5
- class: ["avue-queue", {
6
- "avue-queue--block": e.block
7
- }]
8
- }, [n("div", {
9
- ref: "queue",
10
- staticClass: "animate__animated",
11
- class: e.animate
12
- }, [e._t("default")], 2)]);
13
- }, i = [];
14
- const l = {
1
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const s = {
15
3
  name: "Queue",
16
4
  props: {
17
5
  enter: {
@@ -42,30 +30,27 @@ const l = {
42
30
  },
43
31
  methods: {
44
32
  handleAnimate() {
45
- const e = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop, t = document.documentElement.clientHeight, n = this.$refs.queue;
46
- e + t > n.offsetTop ? setTimeout(() => {
33
+ const n = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop, e = document.documentElement.clientHeight, t = this.$refs.queue;
34
+ n + e > t.offsetTop ? setTimeout(() => {
47
35
  this.animate = [this.enter, "avue-opacity--active"];
48
36
  }, this.delay) : this.animate = ["avue-opacity"];
49
37
  }
50
38
  }
51
- }, a = {};
52
- var u = /* @__PURE__ */ s(
53
- l,
39
+ };
40
+ var o = function() {
41
+ var e = this, t = e._self._c;
42
+ return t("div", { class: ["avue-queue", { "avue-queue--block": e.block }] }, [t("div", { ref: "queue", staticClass: "animate__animated", class: e.animate }, [e._t("default")], 2)]);
43
+ }, l = [], i = /* @__PURE__ */ a(
44
+ s,
54
45
  o,
55
- i,
46
+ l,
56
47
  !1,
57
- c,
48
+ null,
58
49
  null,
59
50
  null,
60
51
  null
61
52
  );
62
- function c(e) {
63
- for (let t in a)
64
- this[t] = a[t];
65
- }
66
- const d = /* @__PURE__ */ function() {
67
- return u.exports;
68
- }();
53
+ const c = i.exports;
69
54
  export {
70
- d as default
55
+ c as default
71
56
  };
@@ -1,6 +1,6 @@
1
- import { s as r } from "../chunks/util.ae730cde.mjs";
2
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- let n = class {
1
+ import { s } from "../chunks/util.ae730cde.mjs";
2
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ let o = class {
4
4
  /**
5
5
  * 构造函数
6
6
  *
@@ -15,20 +15,20 @@ let n = class {
15
15
  * @return {Object} promise
16
16
  */
17
17
  init() {
18
- return new Promise((e, i) => {
18
+ return new Promise((e, t) => {
19
19
  navigator.mediaDevices.getUserMedia({
20
20
  audio: !0,
21
21
  video: !0
22
22
  // video: { width: this.videoWidth, height: this.videoHeight }
23
- }).then((s) => {
24
- this.video && ("srcObject" in this.video ? this.video.srcObject = s : this.video.src = window.URL.createObjectURL(s), this.video.addEventListener("loadmetadata", () => {
23
+ }).then((i) => {
24
+ this.video && ("srcObject" in this.video ? this.video.srcObject = i : this.video.src = window.URL.createObjectURL(i), this.video.addEventListener("loadmetadata", () => {
25
25
  var d;
26
26
  (d = this.video) == null || d.play();
27
- }), this.mediaRecorder = new MediaRecorder(s), this.mediaRecorder.addEventListener("dataavailable", (d) => {
27
+ }), this.mediaRecorder = new MediaRecorder(i), this.mediaRecorder.addEventListener("dataavailable", (d) => {
28
28
  this.chunks.push(d.data);
29
29
  }), e(!0));
30
- }).catch((s) => {
31
- i(s);
30
+ }).catch((i) => {
31
+ t(i);
32
32
  });
33
33
  });
34
34
  }
@@ -56,41 +56,7 @@ let n = class {
56
56
  return !0;
57
57
  }
58
58
  };
59
- var c = function() {
60
- var t = this, e = t.$createElement, i = t._self._c || e;
61
- return i("div", {
62
- staticClass: "avue-video",
63
- style: t.styleName
64
- }, [i("div", {
65
- staticClass: "avue-video__border"
66
- }, [i("span", {
67
- style: t.borderStyleName
68
- }), i("span", {
69
- style: t.borderStyleName
70
- }), i("span", {
71
- style: t.borderStyleName
72
- }), i("span", {
73
- style: t.borderStyleName
74
- })]), i("img", {
75
- staticClass: "avue-video__img",
76
- style: t.imgStyleName,
77
- attrs: {
78
- src: t.background,
79
- alt: ""
80
- }
81
- }), i("video", {
82
- ref: "main",
83
- staticClass: "avue-video__main",
84
- attrs: {
85
- autoplay: "",
86
- muted: ""
87
- },
88
- domProps: {
89
- muted: !0
90
- }
91
- })]);
92
- }, h = [];
93
- const l = {
59
+ const n = {
94
60
  name: "RecordVideo",
95
61
  props: {
96
62
  background: {
@@ -109,19 +75,19 @@ const l = {
109
75
  computed: {
110
76
  styleName() {
111
77
  return {
112
- width: r(this.width)
78
+ width: s(this.width)
113
79
  };
114
80
  },
115
81
  imgStyleName() {
116
82
  return {
117
- width: r(this.width / 2)
83
+ width: s(this.width / 2)
118
84
  };
119
85
  },
120
86
  borderStyleName() {
121
87
  return {
122
- width: r(this.width / 15),
123
- height: r(this.width / 15),
124
- borderWidth: r(5)
88
+ width: s(this.width / 15),
89
+ height: s(this.width / 15),
90
+ borderWidth: s(5)
125
91
  };
126
92
  }
127
93
  },
@@ -130,7 +96,7 @@ const l = {
130
96
  },
131
97
  methods: {
132
98
  init() {
133
- this.videoObj = new n(this.$refs.main), this.videoObj.init().then(() => {
99
+ this.videoObj = new o(this.$refs.main), this.videoObj.init().then(() => {
134
100
  this.videoObj.mediaRecorder.addEventListener("stop", this.getData, !1);
135
101
  });
136
102
  },
@@ -141,33 +107,30 @@ const l = {
141
107
  this.videoObj.stopRecord();
142
108
  },
143
109
  getData() {
144
- const t = new Blob(this.videoObj.chunks, {
110
+ const r = new Blob(this.videoObj.chunks, {
145
111
  type: "video/mp4"
146
112
  }), e = new FileReader();
147
- e.readAsDataURL(t), e.addEventListener("loadend", () => {
148
- const i = e.result;
149
- this.$emit("data-change", i);
113
+ e.readAsDataURL(r), e.addEventListener("loadend", () => {
114
+ const t = e.result;
115
+ this.$emit("data-change", t);
150
116
  });
151
117
  }
152
118
  }
153
- }, a = {};
154
- var v = /* @__PURE__ */ o(
155
- l,
119
+ };
120
+ var c = function() {
121
+ var e = this, t = e._self._c;
122
+ return t("div", { staticClass: "avue-video", style: e.styleName }, [t("div", { staticClass: "avue-video__border" }, [t("span", { style: e.borderStyleName }), t("span", { style: e.borderStyleName }), t("span", { style: e.borderStyleName }), t("span", { style: e.borderStyleName })]), t("img", { staticClass: "avue-video__img", style: e.imgStyleName, attrs: { src: e.background, alt: "" } }), t("video", { ref: "main", staticClass: "avue-video__main", attrs: { autoplay: "", muted: "" }, domProps: { muted: !0 } })]);
123
+ }, h = [], l = /* @__PURE__ */ a(
124
+ n,
156
125
  c,
157
126
  h,
158
127
  !1,
159
- u,
128
+ null,
160
129
  null,
161
130
  null,
162
131
  null
163
132
  );
164
- function u(t) {
165
- for (let e in a)
166
- this[e] = a[e];
167
- }
168
- const R = /* @__PURE__ */ function() {
169
- return v.exports;
170
- }();
133
+ const p = l.exports;
171
134
  export {
172
- R as default
135
+ p as default
173
136
  };
@@ -1,26 +1,17 @@
1
- import { j as o } from "../chunks/index.57f871af.mjs";
2
- import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var a = function() {
4
- var e = this, t = e.$createElement, r = e._self._c || t;
5
- return r("div", {
6
- staticClass: "resize-observer",
7
- attrs: {
8
- tabindex: "-1"
9
- }
10
- });
11
- }, l = [];
12
- let i;
13
- function s() {
14
- s.init || (s.init = !0, i = o() !== -1);
1
+ import { j as r } from "../chunks/index.57f871af.mjs";
2
+ import { n as o } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ let t;
4
+ function i() {
5
+ i.init || (i.init = !0, t = r() !== -1);
15
6
  }
16
- const c = {
7
+ const h = {
17
8
  name: "ResizeObserver",
18
9
  mounted() {
19
- s(), this.$nextTick(() => {
10
+ i(), this.$nextTick(() => {
20
11
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight;
21
12
  });
22
13
  const e = document.createElement("object");
23
- this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", i && this.$el.appendChild(e), e.data = "about:blank", i || this.$el.appendChild(e);
14
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", t && this.$el.appendChild(e), e.data = "about:blank", t || this.$el.appendChild(e);
24
15
  },
25
16
  beforeDestroy() {
26
17
  this.removeResizeHandlers();
@@ -36,27 +27,24 @@ const c = {
36
27
  this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
37
28
  },
38
29
  removeResizeHandlers() {
39
- this._resizeObject && this._resizeObject.onload && (!i && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
30
+ this._resizeObject && this._resizeObject.onload && (!t && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
40
31
  }
41
32
  }
42
- }, n = {};
43
- var d = /* @__PURE__ */ h(
44
- c,
33
+ };
34
+ var a = function() {
35
+ var s = this, n = s._self._c;
36
+ return n("div", { staticClass: "resize-observer", attrs: { tabindex: "-1" } });
37
+ }, l = [], d = /* @__PURE__ */ o(
38
+ h,
45
39
  a,
46
40
  l,
47
41
  !1,
48
- _,
42
+ null,
49
43
  null,
50
44
  null,
51
45
  null
52
46
  );
53
- function _(e) {
54
- for (let t in n)
55
- this[t] = n[t];
56
- }
57
- const m = /* @__PURE__ */ function() {
58
- return d.exports;
59
- }();
47
+ const f = d.exports;
60
48
  export {
61
- m as default
49
+ f as default
62
50
  };
package/search/index.mjs CHANGED
@@ -1,47 +1,10 @@
1
- import { a as i } from "../chunks/util.ae730cde.mjs";
2
- import { i as n } from "../chunks/init.47f219b4.mjs";
3
- import { isBlank as o } from "@web-utils/core";
4
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
- var h = function() {
6
- var t = this, e = t.$createElement, r = t._self._c || e;
7
- return r("ElRow", {
8
- class: ["avue-search", {
9
- "avue--card": t.isCard
10
- }],
11
- attrs: {
12
- span: 24
13
- }
14
- }, t._l(t.columnOption, function(s) {
15
- return r("ElCol", {
16
- key: s.prop,
17
- staticClass: "avue-search__item",
18
- attrs: {
19
- span: s.span || 24
20
- }
21
- }, [r("p", {
22
- staticClass: "avue-search__title"
23
- }, [t._v(t._s(s.label) + ":")]), r("div", {
24
- staticClass: "avue-search__content"
25
- }, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, {
26
- dic: t.DIC[s.prop]
27
- }) : t._l(t.DIC[s.prop], function(a) {
28
- return r("span", {
29
- key: t.getKey(a, s.props, t.valueKey),
30
- class: ["avue-search__tags", {
31
- "avue-search__tags--active": t.getActive(a, s)
32
- }],
33
- on: {
34
- click: function(v) {
35
- return t.handleClick(s, a);
36
- }
37
- }
38
- }, [t._v(t._s(t.getKey(a, s.props, t.labelKey)))]);
39
- })], 2)]);
40
- }), 1);
41
- }, u = [];
42
- const c = {
1
+ import { a as p } from "../chunks/util.ae730cde.mjs";
2
+ import { i } from "../chunks/init.47f219b4.mjs";
3
+ import { isBlank as n } from "@web-utils/core";
4
+ import { n as o } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
5
+ const l = {
43
6
  name: "Search",
44
- mixins: [n],
7
+ mixins: [i],
45
8
  props: {
46
9
  value: [String, Object, Number, Boolean, Array]
47
10
  },
@@ -50,24 +13,24 @@ const c = {
50
13
  get() {
51
14
  return this.value;
52
15
  },
53
- set(t) {
54
- this.setVal(t);
16
+ set(e) {
17
+ this.setVal(e);
55
18
  }
56
19
  },
57
20
  props() {
58
21
  return this.parentOption.props || {};
59
22
  },
60
23
  labelKey() {
61
- return i.label;
24
+ return p.label;
62
25
  },
63
26
  valueKey() {
64
- return i.value;
27
+ return p.value;
65
28
  },
66
29
  mainSlot() {
67
- const t = [];
68
- return this.propOption.forEach((e) => {
69
- this.$scopedSlots[e.prop] && t.push(e.prop);
70
- }), t;
30
+ const e = [];
31
+ return this.propOption.forEach((t) => {
32
+ this.$scopedSlots[t.prop] && e.push(t.prop);
33
+ }), e;
71
34
  },
72
35
  isCard() {
73
36
  return this.parentOption.card;
@@ -84,8 +47,8 @@ const c = {
84
47
  },
85
48
  watch: {
86
49
  value: {
87
- handler(t) {
88
- this.setVal(t);
50
+ handler(e) {
51
+ this.setVal(e);
89
52
  },
90
53
  deep: !0
91
54
  }
@@ -94,50 +57,53 @@ const c = {
94
57
  this.dataFormat();
95
58
  },
96
59
  methods: {
97
- setVal(t) {
98
- this.$emit("input", t), this.$emit("change", t);
60
+ setVal(e) {
61
+ this.$emit("input", e), this.$emit("change", e);
99
62
  },
100
- getKey(t = {}, e = {}, r) {
101
- return t[e[r] || this.props[r] || r];
63
+ getKey(e = {}, t = {}, r) {
64
+ return e[t[r] || this.props[r] || r];
102
65
  },
103
66
  dataFormat() {
104
- this.propOption.forEach((t) => {
105
- const e = t.prop;
106
- o(this.form[e]) && this.$set(this.form, e, t.multiple === !1 ? "" : []);
67
+ this.propOption.forEach((e) => {
68
+ const t = e.prop;
69
+ n(this.form[t]) && this.$set(this.form, t, e.multiple === !1 ? "" : []);
107
70
  });
108
71
  },
109
- getActive(t, e) {
110
- const r = this.getKey(t, e.props, this.valueKey);
111
- return e.multiple === !1 ? this.form[e.prop] === r : this.form[e.prop].includes(r);
112
- },
113
- handleClick(t, e) {
72
+ getActive(e, t) {
114
73
  const r = this.getKey(e, t.props, this.valueKey);
115
- if (t.multiple === !1)
116
- this.form[t.prop] = r;
74
+ return t.multiple === !1 ? this.form[t.prop] === r : this.form[t.prop].includes(r);
75
+ },
76
+ handleClick(e, t) {
77
+ const r = this.getKey(t, e.props, this.valueKey);
78
+ if (e.multiple === !1)
79
+ this.form[e.prop] = r;
117
80
  else {
118
- const s = this.form[t.prop].indexOf(r);
119
- s === -1 ? this.form[t.prop].push(r) : this.form[t.prop].splice(s, 1);
81
+ const s = this.form[e.prop].indexOf(r);
82
+ s === -1 ? this.form[e.prop].push(r) : this.form[e.prop].splice(s, 1);
120
83
  }
121
84
  }
122
85
  }
123
- }, p = {};
124
- var _ = /* @__PURE__ */ l(
125
- c,
86
+ };
87
+ var h = function() {
88
+ var t = this, r = t._self._c;
89
+ return r("ElRow", { class: ["avue-search", { "avue--card": t.isCard }], attrs: { span: 24 } }, t._l(t.columnOption, function(s) {
90
+ return r("ElCol", { key: s.prop, staticClass: "avue-search__item", attrs: { span: s.span || 24 } }, [r("p", { staticClass: "avue-search__title" }, [t._v(t._s(s.label) + ":")]), r("div", { staticClass: "avue-search__content" }, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, { dic: t.DIC[s.prop] }) : t._l(t.DIC[s.prop], function(a) {
91
+ return r("span", { key: t.getKey(a, s.props, t.valueKey), class: ["avue-search__tags", { "avue-search__tags--active": t.getActive(a, s) }], on: { click: function(_) {
92
+ return t.handleClick(s, a);
93
+ } } }, [t._v(t._s(t.getKey(a, s.props, t.labelKey)))]);
94
+ })], 2)]);
95
+ }), 1);
96
+ }, u = [], c = /* @__PURE__ */ o(
97
+ l,
126
98
  h,
127
99
  u,
128
100
  !1,
129
- f,
101
+ null,
130
102
  null,
131
103
  null,
132
104
  null
133
105
  );
134
- function f(t) {
135
- for (let e in p)
136
- this[e] = p[e];
137
- }
138
- const g = /* @__PURE__ */ function() {
139
- return _.exports;
140
- }();
106
+ const y = c.exports;
141
107
  export {
142
- g as default
108
+ y as default
143
109
  };