@ajaxjs/ui 1.6.1 → 1.6.2

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.
@@ -1,11 +1,12 @@
1
- import require$$0, { openBlock, createElementBlock, defineComponent, createElementVNode, createStaticVNode, normalizeClass, resolveComponent, createVNode, withCtx, toDisplayString, createTextVNode, withDefaults, defineProps, createBlock, createCommentVNode, Fragment, renderList, h, ref, renderSlot, withDirectives, vShow } from "vue";
2
- const _sfc_main$c = {}, _export_sfc = (m, f) => {
3
- const p = m.__vccOpts || m;
4
- for (const [t, $] of f)
5
- p[t] = $;
6
- return p;
1
+ import * as vue from "vue";
2
+ import { openBlock, createElementBlock, defineComponent, createElementVNode, createStaticVNode, normalizeClass, resolveComponent, createVNode, withCtx, toDisplayString, createTextVNode, withDefaults, defineProps, createBlock, createCommentVNode, Fragment, renderList, h, ref, renderSlot, withDirectives, vShow } from "vue";
3
+ const _sfc_main$c = {}, _export_sfc = (p, f) => {
4
+ const m = p.__vccOpts || p;
5
+ for (const [t, B] of f)
6
+ m[t] = B;
7
+ return m;
7
8
  };
8
- function _sfc_render$b(m, f, p, t, $, O) {
9
+ function _sfc_render$b(p, f, m, t, B, O) {
9
10
  return openBlock(), createElementBlock("button", null, "hihi");
10
11
  }
11
12
  const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]]), _sfc_main$b = defineComponent({
@@ -28,11 +29,11 @@ const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_rende
28
29
  };
29
30
  },
30
31
  mounted() {
31
- this.iframeEl = this.$el.querySelector("iframe"), this.sourceEditor = this.$el.querySelector("textarea"), this.iframeEl.contentWindow.onload = (m) => {
32
- this.iframeDoc = this.iframeEl.contentWindow.document, this.iframeDoc.designMode = "on", this.iframeDoc.addEventListener("paste", onImagePaste.bind(this)), new MutationObserver((f, p) => {
32
+ this.iframeEl = this.$el.querySelector("iframe"), this.sourceEditor = this.$el.querySelector("textarea"), this.iframeEl.contentWindow.onload = (p) => {
33
+ this.iframeDoc = this.iframeEl.contentWindow.document, this.iframeDoc.designMode = "on", this.iframeDoc.addEventListener("paste", onImagePaste.bind(this)), new MutationObserver((f, m) => {
33
34
  this.isShowCode || (this.sourceEditor.value = this.iframeDoc.body.innerHTML, this.$emit("onchange", this.sourceEditor.value)), this.$emit("update:modelValue", this.iframeDoc.body.innerHTML);
34
35
  }).observe(this.iframeDoc.body, { attributes: !0, childList: !0, subtree: !0, characterData: !0 });
35
- }, this.sourceEditor.oninput = (m) => {
36
+ }, this.sourceEditor.oninput = (p) => {
36
37
  this.isShowCode && this.sourceEditor.value && (this.setIframeBody(this.sourceEditor.value), this.$emit("onchange", this.sourceEditor.value));
37
38
  };
38
39
  },
@@ -42,8 +43,8 @@ const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_rende
42
43
  *
43
44
  * @param html
44
45
  */
45
- setIframeBody(m) {
46
- this.iframeDoc && this.iframeDoc.body && (this.iframeDoc.body.innerHTML = m);
46
+ setIframeBody(p) {
47
+ this.iframeDoc && this.iframeDoc.body && (this.iframeDoc.body.innerHTML = p);
47
48
  },
48
49
  /**
49
50
  * 获取内容的 HTML
@@ -51,17 +52,17 @@ const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_rende
51
52
  * @param cleanWord 是否清理冗余标签
52
53
  * @param encode 是否 URL 编码
53
54
  */
54
- getValue(m, f) {
55
- let p = this.iframeDoc.body.innerHTML;
56
- return m && (p = cleanPaste(p)), f && (p = encodeURIComponent(p)), p;
55
+ getValue(p, f) {
56
+ let m = this.iframeDoc.body.innerHTML;
57
+ return p && (m = cleanPaste(m)), f && (m = encodeURIComponent(m)), m;
57
58
  },
58
59
  createLink() {
59
- const m = prompt("请输入 URL 地址");
60
- m && this.format("createLink", m);
60
+ const p = prompt("请输入 URL 地址");
61
+ p && this.format("createLink", p);
61
62
  },
62
63
  insertImage() {
63
- window.isCreate ? alert("请保存记录后再上传图片。") : this.uploadImgMgr.show((m) => {
64
- m && m.isOk && this.format("insertImage", m.fullUrl);
64
+ window.isCreate ? alert("请保存记录后再上传图片。") : this.uploadImgMgr.show((p) => {
65
+ p && p.isOk && this.format("insertImage", p.fullUrl);
65
66
  });
66
67
  },
67
68
  /**
@@ -74,21 +75,21 @@ const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_rende
74
75
  * 一键存图
75
76
  */
76
77
  saveRemoteImage2Local() {
77
- const m = this.iframeDoc.querySelectorAll("img"), f = new Array(), p = [];
78
- for (let t = 0, $ = m.length; t < $; t++) {
79
- const O = m[t], N = O.getAttribute("src");
80
- N != null && /^http/.test(N) && (f.push(O), p.push(N));
78
+ const p = this.iframeDoc.querySelectorAll("img"), f = new Array(), m = [];
79
+ for (let t = 0, B = p.length; t < B; t++) {
80
+ const O = p[t], N = O.getAttribute("src");
81
+ N != null && /^http/.test(N) && (f.push(O), m.push(N));
81
82
  }
82
- p.length || console.log("未发现有远程图片");
83
+ m.length || console.log("未发现有远程图片");
83
84
  },
84
85
  /**
85
86
  * 当工具条点击的时候触发
86
87
  *
87
88
  * @param ev
88
89
  */
89
- onCmdClk(m) {
90
- const f = m.target, p = f.className.split(" ").shift();
91
- this.format(p);
90
+ onCmdClk(p) {
91
+ const f = p.target, m = f.className.split(" ").shift();
92
+ this.format(m);
92
93
  },
93
94
  /**
94
95
  * 通过 document.execCommand() 来操纵可编辑内容区域的元素
@@ -96,18 +97,18 @@ const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_rende
96
97
  * @param type 命令的名称
97
98
  * @param para 一些命令(例如 insertImage)需要额外的参数(insertImage 需要提供插入 image 的 url),默认为 null
98
99
  */
99
- format(m, f) {
100
- f ? this.iframeDoc.execCommand(m, !1, f) : this.iframeDoc.execCommand(m, !1);
100
+ format(p, f) {
101
+ f ? this.iframeDoc.execCommand(p, !1, f) : this.iframeDoc.execCommand(p, !1);
101
102
  },
102
103
  /**
103
104
  * 选择字号大小
104
105
  *
105
106
  * @param ev
106
107
  */
107
- onFontsizeChoserClk(m) {
108
- const f = m.target, p = m.currentTarget.children;
109
- let t, $;
110
- for (t = 0, $ = p.length; t < $ && f != p[t]; t++)
108
+ onFontsizeChoserClk(p) {
109
+ const f = p.target, m = p.currentTarget.children;
110
+ let t, B;
111
+ for (t = 0, B = m.length; t < B && f != m[t]; t++)
111
112
  ;
112
113
  this.format("fontsize", t + "");
113
114
  },
@@ -116,28 +117,28 @@ const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_rende
116
117
  *
117
118
  * @param ev
118
119
  */
119
- onFontfamilyChoserClk(m) {
120
- const f = m.target;
120
+ onFontfamilyChoserClk(p) {
121
+ const f = p.target;
121
122
  this.format("fontname", f.innerHTML);
122
- const p = f.parentNode;
123
- p.style.display = "none", setTimeout(() => p.style.display = "", 300);
123
+ const m = f.parentNode;
124
+ m.style.display = "none", setTimeout(() => m.style.display = "", 300);
124
125
  },
125
126
  /**
126
127
  * 创建颜色选择器
127
128
  */
128
129
  createColorPickerHTML() {
129
- const m = ["00", "33", "66", "99", "CC", "FF"];
130
- let f, p, t, $;
130
+ const p = ["00", "33", "66", "99", "CC", "FF"];
131
+ let f, m, t, B;
131
132
  const O = ['<div class="colorhead"><span class="colortitle">颜色选择</span></div><div class="colorbody"><table cellspaci="0" cellpadding="0"><tr>'];
132
133
  for (let N = 0; N < 6; ++N) {
133
134
  O.push('<td><table class="colorpanel" cellspacing="0" cellpadding="0">');
134
- for (let S = 0, ye = m[N]; S < 6; ++S) {
135
+ for (let S = 0, ye = p[N]; S < 6; ++S) {
135
136
  O.push("<tr>");
136
- for (let Ee = 0, _e = m[S]; Ee < 6; ++Ee)
137
- f = m[Ee], t = Ee == 5 && N != 2 && N != 5 ? ";border-right:none;" : "", $ = S == 5 && N < 3 ? ";border-bottom:none" : "", p = "#" + ye + f + _e, O.push('<td unselectable="on" style="background-color: ' + p + t + $ + '" title="' + p + '"></td>');
137
+ for (let Ee = 0, _e = p[S]; Ee < 6; ++Ee)
138
+ f = p[Ee], t = Ee == 5 && N != 2 && N != 5 ? ";border-right:none;" : "", B = S == 5 && N < 3 ? ";border-bottom:none" : "", m = "#" + ye + f + _e, O.push('<td unselectable="on" style="background-color: ' + m + t + B + '" title="' + m + '"></td>');
138
139
  O.push("</tr>");
139
140
  }
140
- O.push("</table></td>"), m[N] == "66" && O.push("</tr><tr>");
141
+ O.push("</table></td>"), p[N] == "66" && O.push("</tr><tr>");
141
142
  }
142
143
  return O.push("</tr></table></div>"), O.join("");
143
144
  }
@@ -148,61 +149,61 @@ const MyButton = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_rende
148
149
  // if (!oldHtml) // 当没有值的时候输入,就是在初始化的时候(第一次)
149
150
  // this.setIframeBody(newHtml);
150
151
  // },
151
- modelValue(m, f) {
152
- f || this.setIframeBody(m);
152
+ modelValue(p, f) {
153
+ f || this.setIframeBody(p);
153
154
  },
154
155
  /**
155
156
  * 切換 HTML 編輯 or 可視化編輯
156
157
  *
157
158
  * @param n
158
159
  */
159
- isShowCode(m) {
160
- m ? (this.iframeEl.classList.add("hide"), this.sourceEditor.classList.add("show"), grayImg.call(this, !0)) : (this.iframeEl.classList.remove("hide"), this.sourceEditor.classList.remove("show"), grayImg.call(this, !1));
160
+ isShowCode(p) {
161
+ p ? (this.iframeEl.classList.add("hide"), this.sourceEditor.classList.add("show"), grayImg.call(this, !0)) : (this.iframeEl.classList.remove("hide"), this.sourceEditor.classList.remove("show"), grayImg.call(this, !1));
161
162
  }
162
163
  }
163
164
  });
164
- function onImagePaste(m) {
165
+ function onImagePaste(p) {
165
166
  if (!this.uploadImageActionUrl) {
166
167
  alert("未提供图片上传地址");
167
168
  return;
168
169
  }
169
- const f = m.clipboardData && m.clipboardData.items;
170
+ const f = p.clipboardData && p.clipboardData.items;
170
171
  if (!f || !f.length)
171
172
  return;
172
- let p = null;
173
+ let m = null;
173
174
  for (let O = 0; O < f.length; O++) {
174
175
  const N = f[O];
175
176
  if (N.type.indexOf("image") !== -1) {
176
- p = N.getAsFile();
177
+ m = N.getAsFile();
177
178
  break;
178
179
  }
179
180
  }
180
- if (!p)
181
+ if (!m)
181
182
  return;
182
- m.preventDefault();
183
+ p.preventDefault();
183
184
  const t = new FormData();
184
- t.append("file", p, p.name);
185
- const $ = new XMLHttpRequest();
186
- $.addEventListener("load", (O) => {
187
- if ($.status >= 200 && $.status < 300) {
188
- const N = JSON.parse($.responseText);
185
+ t.append("file", m, m.name);
186
+ const B = new XMLHttpRequest();
187
+ B.addEventListener("load", (O) => {
188
+ if (B.status >= 200 && B.status < 300) {
189
+ const N = JSON.parse(B.responseText);
189
190
  console.log("Success:", N), this.format("insertImage", N.data.url);
190
191
  } else
191
- console.error("Upload failed with status:", $.status), alert("Upload failed!");
192
- }), $.addEventListener("error", function(O) {
192
+ console.error("Upload failed with status:", B.status), alert("Upload failed!");
193
+ }), B.addEventListener("error", function(O) {
193
194
  console.error("Network error during upload:", O), alert("Upload failed due to a network error!");
194
- }), $.open("POST", this.uploadImageActionUrl), $.send(t);
195
+ }), B.open("POST", this.uploadImageActionUrl), B.send(t);
195
196
  }
196
- function grayImg(m) {
197
+ function grayImg(p) {
197
198
  this.$el.querySelectorAll(".toolbar i").forEach((f) => {
198
- f.className.indexOf("switchMode") == -1 && (f.style.color = m ? "lightgray" : "");
199
+ f.className.indexOf("switchMode") == -1 && (f.style.color = p ? "lightgray" : "");
199
200
  });
200
201
  }
201
- function cleanPaste(m) {
202
- return m = m.replace(/<(\/)*(\\?xml:|meta|link|span|font|del|ins|st1:|[ovwxp]:)((.|\s)*?)>/gi, ""), m = m.replace(/(class|style|type|start)=("(.*?)"|(\w*))/gi, ""), m = m.replace(/<style(.*?)style>/gi, ""), m = m.replace(/<script(.*?)script>/gi, ""), m = m.replace(/<!--(.*?)-->/gi, ""), m;
202
+ function cleanPaste(p) {
203
+ return p = p.replace(/<(\/)*(\\?xml:|meta|link|span|font|del|ins|st1:|[ovwxp]:)((.|\s)*?)>/gi, ""), p = p.replace(/(class|style|type|start)=("(.*?)"|(\w*))/gi, ""), p = p.replace(/<style(.*?)style>/gi, ""), p = p.replace(/<script(.*?)script>/gi, ""), p = p.replace(/<!--(.*?)-->/gi, ""), p;
203
204
  }
204
205
  const _hoisted_1$5 = { class: "aj-form-html-editor" }, _hoisted_2$5 = { class: "toolbar" }, _hoisted_3$4 = { class: "dorpdown" }, _hoisted_4$2 = { class: "dorpdown" }, _hoisted_5$2 = { class: "dorpdown" }, _hoisted_6$2 = ["innerHTML"], _hoisted_7$2 = { class: "dorpdown" }, _hoisted_8$1 = ["innerHTML"];
205
- function _sfc_render$a(m, f, p, t, $, O) {
206
+ function _sfc_render$a(p, f, m, t, B, O) {
206
207
  return openBlock(), createElementBlock("div", _hoisted_1$5, [
207
208
  createElementVNode("ul", _hoisted_2$5, [
208
209
  createElementVNode("li", _hoisted_3$4, [
@@ -212,7 +213,7 @@ function _sfc_render$a(m, f, p, t, $, O) {
212
213
  }, "A", -1)),
213
214
  createElementVNode("div", {
214
215
  class: "fontfamilyChoser",
215
- onClick: f[0] || (f[0] = (...N) => m.onFontfamilyChoserClk && m.onFontfamilyChoserClk(...N))
216
+ onClick: f[0] || (f[0] = (...N) => p.onFontfamilyChoserClk && p.onFontfamilyChoserClk(...N))
216
217
  }, [...f[19] || (f[19] = [
217
218
  createStaticVNode('<a style="font-family:&#39;宋体&#39;;">宋体</a><a style="font-family:&#39;黑体&#39;;">黑体</a><a style="font-family:&#39;楷体&#39;;">楷体</a><a style="font-family:&#39;隶书&#39;;">隶书</a><a style="font-family:&#39;幼圆&#39;;">幼圆</a><a style="font-family:&#39;Microsoft YaHei&#39;;">Microsoft YaHei</a><a style="font-family:Arial;">Arial</a><a style="font-family:&#39;Arial Narrow&#39;;">Arial Narrow</a><a style="font-family:&#39;Arial Black&#39;;">Arial Black</a><a style="font-family:&#39;Comic Sans MS&#39;;">Comic Sans MS</a><a style="font-family:Courier;">Courier</a><a style="font-family:System;">System</a><a style="font-family:&#39;Times New Roman&#39;;">Times New Roman</a><a style="font-family:Verdana;">Verdana</a>', 14)
218
219
  ])])
@@ -224,13 +225,13 @@ function _sfc_render$a(m, f, p, t, $, O) {
224
225
  }, "H", -1)),
225
226
  createElementVNode("div", {
226
227
  class: "fontsizeChoser",
227
- onClick: f[1] || (f[1] = (...N) => m.onFontsizeChoserClk && m.onFontsizeChoserClk(...N))
228
+ onClick: f[1] || (f[1] = (...N) => p.onFontsizeChoserClk && p.onFontsizeChoserClk(...N))
228
229
  }, [...f[21] || (f[21] = [
229
230
  createStaticVNode('<a style="font-size:xx-small;">极小</a><a style="font-size:x-small;">特小</a><a style="font-size:small;">小</a><a style="font-size:medium;">中</a><a style="font-size:large;">大</a><a style="font-size:x-large;">特大</a><a style="font-size:xx-large;line-height:140%;">极大</a>', 7)
230
231
  ])])
231
232
  ]),
232
233
  createElementVNode("li", {
233
- onClick: f[2] || (f[2] = (...N) => m.onCmdClk && m.onCmdClk(...N))
234
+ onClick: f[2] || (f[2] = (...N) => p.onCmdClk && p.onCmdClk(...N))
234
235
  }, [...f[23] || (f[23] = [
235
236
  createElementVNode("i", {
236
237
  title: "加粗",
@@ -238,7 +239,7 @@ function _sfc_render$a(m, f, p, t, $, O) {
238
239
  }, "B", -1)
239
240
  ])]),
240
241
  createElementVNode("li", {
241
- onClick: f[3] || (f[3] = (...N) => m.onCmdClk && m.onCmdClk(...N))
242
+ onClick: f[3] || (f[3] = (...N) => p.onCmdClk && p.onCmdClk(...N))
242
243
  }, [...f[24] || (f[24] = [
243
244
  createElementVNode("i", {
244
245
  title: "斜体",
@@ -247,7 +248,7 @@ function _sfc_render$a(m, f, p, t, $, O) {
247
248
  }, "I", -1)
248
249
  ])]),
249
250
  createElementVNode("li", {
250
- onClick: f[4] || (f[4] = (...N) => m.onCmdClk && m.onCmdClk(...N))
251
+ onClick: f[4] || (f[4] = (...N) => p.onCmdClk && p.onCmdClk(...N))
251
252
  }, [...f[25] || (f[25] = [
252
253
  createElementVNode("i", {
253
254
  title: "下划线",
@@ -256,121 +257,121 @@ function _sfc_render$a(m, f, p, t, $, O) {
256
257
  }, "U", -1)
257
258
  ])]),
258
259
  createElementVNode("li", {
259
- onClick: f[5] || (f[5] = (...N) => m.onCmdClk && m.onCmdClk(...N))
260
+ onClick: f[5] || (f[5] = (...N) => p.onCmdClk && p.onCmdClk(...N))
260
261
  }, [
261
262
  createElementVNode("i", {
262
263
  title: "左对齐",
263
- class: normalizeClass("justifyleft " + (m.isIonicons ? "ivu-icon ivu-icon-bingo-menu-fold" : "fontAwesome fa-align-left"))
264
+ class: normalizeClass("justifyleft " + (p.isIonicons ? "ivu-icon ivu-icon-bingo-menu-fold" : "fontAwesome fa-align-left"))
264
265
  }, null, 2)
265
266
  ]),
266
267
  createElementVNode("li", {
267
- onClick: f[6] || (f[6] = (...N) => m.onCmdClk && m.onCmdClk(...N))
268
+ onClick: f[6] || (f[6] = (...N) => p.onCmdClk && p.onCmdClk(...N))
268
269
  }, [
269
270
  createElementVNode("i", {
270
271
  title: "中间对齐",
271
- class: normalizeClass("justifycenter " + (m.isIonicons ? "ivu-icon ivu-icon-md-menu" : "fontAwesome fa-align-center"))
272
+ class: normalizeClass("justifycenter " + (p.isIonicons ? "ivu-icon ivu-icon-md-menu" : "fontAwesome fa-align-center"))
272
273
  }, null, 2)
273
274
  ]),
274
275
  createElementVNode("li", {
275
- onClick: f[7] || (f[7] = (...N) => m.onCmdClk && m.onCmdClk(...N))
276
+ onClick: f[7] || (f[7] = (...N) => p.onCmdClk && p.onCmdClk(...N))
276
277
  }, [
277
278
  createElementVNode("i", {
278
279
  title: "右对齐",
279
- class: normalizeClass("justifyright " + (m.isIonicons ? "ivu-icon ivu-icon-bingo-menu-unfold" : "fontAwesome fa-align-right"))
280
+ class: normalizeClass("justifyright " + (p.isIonicons ? "ivu-icon ivu-icon-bingo-menu-unfold" : "fontAwesome fa-align-right"))
280
281
  }, null, 2)
281
282
  ]),
282
283
  createElementVNode("li", {
283
- onClick: f[8] || (f[8] = (...N) => m.onCmdClk && m.onCmdClk(...N))
284
+ onClick: f[8] || (f[8] = (...N) => p.onCmdClk && p.onCmdClk(...N))
284
285
  }, [
285
286
  createElementVNode("i", {
286
287
  title: "数字编号",
287
- class: normalizeClass("insertorderedlist " + (m.isIonicons ? "ivu-icon ivu-icon-md-list" : "fontAwesome fa-list-ol"))
288
+ class: normalizeClass("insertorderedlist " + (p.isIonicons ? "ivu-icon ivu-icon-md-list" : "fontAwesome fa-list-ol"))
288
289
  }, null, 2)
289
290
  ]),
290
291
  createElementVNode("li", {
291
- onClick: f[9] || (f[9] = (...N) => m.onCmdClk && m.onCmdClk(...N))
292
+ onClick: f[9] || (f[9] = (...N) => p.onCmdClk && p.onCmdClk(...N))
292
293
  }, [
293
294
  createElementVNode("i", {
294
295
  title: "项目编号",
295
- class: normalizeClass("insertunorderedlist " + (m.isIonicons ? "ivu-icon ivu-icon-ios-list" : "fontAwesome fa-list-ul"))
296
+ class: normalizeClass("insertunorderedlist " + (p.isIonicons ? "ivu-icon ivu-icon-ios-list" : "fontAwesome fa-list-ul"))
296
297
  }, null, 2)
297
298
  ]),
298
299
  createElementVNode("li", {
299
- onClick: f[10] || (f[10] = (...N) => m.onCmdClk && m.onCmdClk(...N))
300
+ onClick: f[10] || (f[10] = (...N) => p.onCmdClk && p.onCmdClk(...N))
300
301
  }, [
301
302
  createElementVNode("i", {
302
303
  title: "增加缩进",
303
- class: normalizeClass("outdent " + (m.isIonicons ? "ivu-icon ivu-icon-ios-return-left" : "fontAwesome fa-outdent"))
304
+ class: normalizeClass("outdent " + (p.isIonicons ? "ivu-icon ivu-icon-ios-return-left" : "fontAwesome fa-outdent"))
304
305
  }, null, 2)
305
306
  ]),
306
307
  createElementVNode("li", {
307
- onClick: f[11] || (f[11] = (...N) => m.onCmdClk && m.onCmdClk(...N))
308
+ onClick: f[11] || (f[11] = (...N) => p.onCmdClk && p.onCmdClk(...N))
308
309
  }, [
309
310
  createElementVNode("i", {
310
311
  title: "减少缩进",
311
- class: normalizeClass("indent " + (m.isIonicons ? "ivu-icon ivu-icon-ios-return-right" : "fontAwesome fa-indent"))
312
+ class: normalizeClass("indent " + (p.isIonicons ? "ivu-icon ivu-icon-ios-return-right" : "fontAwesome fa-indent"))
312
313
  }, null, 2)
313
314
  ]),
314
315
  createElementVNode("li", _hoisted_5$2, [
315
316
  createElementVNode("i", {
316
317
  title: "字体颜色",
317
- class: normalizeClass(m.isIonicons ? "ivu-icon ivu-icon-md-brush" : "fontAwesome fa-paint-brush")
318
+ class: normalizeClass(p.isIonicons ? "ivu-icon ivu-icon-md-brush" : "fontAwesome fa-paint-brush")
318
319
  }, null, 2),
319
320
  createElementVNode("div", {
320
321
  class: "colorPicker",
321
- innerHTML: m.createColorPickerHTML(),
322
- onClick: f[12] || (f[12] = (N) => m.format("foreColor", N.target.title))
322
+ innerHTML: p.createColorPickerHTML(),
323
+ onClick: f[12] || (f[12] = (N) => p.format("foreColor", N.target.title))
323
324
  }, null, 8, _hoisted_6$2)
324
325
  ]),
325
326
  createElementVNode("li", _hoisted_7$2, [
326
327
  createElementVNode("i", {
327
328
  title: "背景颜色",
328
- class: normalizeClass(m.isIonicons ? "ivu-icon ivu-icon-ios-brush-outline" : "fontAwesome fa-pencil")
329
+ class: normalizeClass(p.isIonicons ? "ivu-icon ivu-icon-ios-brush-outline" : "fontAwesome fa-pencil")
329
330
  }, null, 2),
330
331
  createElementVNode("div", {
331
332
  class: "colorPicker",
332
- innerHTML: m.createColorPickerHTML(),
333
- onClick: f[13] || (f[13] = (N) => m.format("backColor", N.target.title))
333
+ innerHTML: p.createColorPickerHTML(),
334
+ onClick: f[13] || (f[13] = (N) => p.format("backColor", N.target.title))
334
335
  }, null, 8, _hoisted_8$1)
335
336
  ]),
336
337
  createElementVNode("li", {
337
- onClick: f[14] || (f[14] = (...N) => m.createLink && m.createLink(...N))
338
+ onClick: f[14] || (f[14] = (...N) => p.createLink && p.createLink(...N))
338
339
  }, [
339
340
  createElementVNode("i", {
340
341
  title: "增加链接",
341
- class: normalizeClass(m.isIonicons ? "ivu-icon ivu-icon-ios-link" : "fontAwesome fa-link")
342
+ class: normalizeClass(p.isIonicons ? "ivu-icon ivu-icon-ios-link" : "fontAwesome fa-link")
342
343
  }, null, 2)
343
344
  ]),
344
345
  createElementVNode("li", {
345
- onClick: f[15] || (f[15] = (...N) => m.insertImage && m.insertImage(...N))
346
+ onClick: f[15] || (f[15] = (...N) => p.insertImage && p.insertImage(...N))
346
347
  }, [
347
348
  createElementVNode("i", {
348
349
  title: "增加图片",
349
- class: normalizeClass(m.isIonicons ? "ivu-icon ivu-icon-md-images" : "fontAwesome fa-regular fa-image")
350
+ class: normalizeClass(p.isIonicons ? "ivu-icon ivu-icon-md-images" : "fontAwesome fa-regular fa-image")
350
351
  }, null, 2)
351
352
  ]),
352
353
  createElementVNode("li", {
353
- onClick: f[16] || (f[16] = (...N) => m.saveRemoteImage2Local && m.saveRemoteImage2Local(...N))
354
+ onClick: f[16] || (f[16] = (...N) => p.saveRemoteImage2Local && p.saveRemoteImage2Local(...N))
354
355
  }, [
355
356
  createElementVNode("i", {
356
357
  title: "一键存图",
357
- class: normalizeClass(m.isIonicons ? "ivu-icon ivu-icon-md-photos" : "fontAwesome fa-camera")
358
+ class: normalizeClass(p.isIonicons ? "ivu-icon ivu-icon-md-photos" : "fontAwesome fa-camera")
358
359
  }, null, 2)
359
360
  ]),
360
361
  createElementVNode("li", {
361
- onClick: f[17] || (f[17] = (...N) => m.cleanHTML && m.cleanHTML(...N))
362
+ onClick: f[17] || (f[17] = (...N) => p.cleanHTML && p.cleanHTML(...N))
362
363
  }, [
363
364
  createElementVNode("i", {
364
365
  title: "清理 HTML",
365
- class: normalizeClass(m.isIonicons ? "ivu-icon ivu-icon-md-done-all" : "fontAwesome fa-eraser")
366
+ class: normalizeClass(p.isIonicons ? "ivu-icon ivu-icon-md-done-all" : "fontAwesome fa-eraser")
366
367
  }, null, 2)
367
368
  ]),
368
369
  createElementVNode("li", {
369
- onClick: f[18] || (f[18] = (N) => m.isShowCode = !m.isShowCode)
370
+ onClick: f[18] || (f[18] = (N) => p.isShowCode = !p.isShowCode)
370
371
  }, [
371
372
  createElementVNode("i", {
372
373
  title: "切换到代码",
373
- class: normalizeClass((m.isIonicons ? "ivu-icon ivu-icon-md-code" : "fontAwesome fa-code") + " switchMode")
374
+ class: normalizeClass((p.isIonicons ? "ivu-icon ivu-icon-md-code" : "fontAwesome fa-code") + " switchMode")
374
375
  }, null, 2)
375
376
  ])
376
377
  ]),
@@ -381,22 +382,22 @@ function _sfc_render$a(m, f, p, t, $, O) {
381
382
  ]);
382
383
  }
383
384
  const HtmlEditor = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]);
384
- function getQueryParam(m, f) {
385
+ function getQueryParam(p, f) {
385
386
  const t = (f ? parent.location : window.location).search.substring(1).split("&");
386
- for (let $ = 0; $ < t.length; $++) {
387
- const O = t[$].split("=");
388
- if (O[0] == m)
387
+ for (let B = 0; B < t.length; B++) {
388
+ const O = t[B].split("=");
389
+ if (O[0] == p)
389
390
  return O[1];
390
391
  }
391
392
  return null;
392
393
  }
393
394
  const _sfc_main$a = {};
394
- function _sfc_render$9(m, f) {
395
+ function _sfc_render$9(p, f) {
395
396
  return openBlock(), createElementBlock("div", null, "hi");
396
397
  }
397
398
  const HomePage = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]);
398
- function formatDate(m = "yyyy-MM-dd hh:mm") {
399
- let f, p = {
399
+ function formatDate(p = "yyyy-MM-dd hh:mm") {
400
+ let f, m = {
400
401
  "M+": this.getMonth() + 1,
401
402
  // 月份,从0开始算
402
403
  "d+": this.getDate(),
@@ -411,73 +412,73 @@ function formatDate(m = "yyyy-MM-dd hh:mm") {
411
412
  "q+": Math.floor((this.getMonth() + 3) / 3),
412
413
  S: this.getMilliseconds()
413
414
  // 千秒
414
- }, t, $;
415
- /(y+)/.test(m) && (f = RegExp.$1, m = m.replace(f, String(this.getFullYear()).substr(4 - f)));
416
- for (t in p)
417
- new RegExp("(" + t + ")").test(m) && (f = RegExp.$1, // @ts-ignore
418
- $ = String(p[t]), $ = f.length == 1 ? $ : ("00" + $).substr($.length), m = m.replace(f, $));
419
- return m;
415
+ }, t, B;
416
+ /(y+)/.test(p) && (f = RegExp.$1, p = p.replace(f, String(this.getFullYear()).substr(4 - f)));
417
+ for (t in m)
418
+ new RegExp("(" + t + ")").test(p) && (f = RegExp.$1, // @ts-ignore
419
+ B = String(m[t]), B = f.length == 1 ? B : ("00" + B).substr(B.length), p = p.replace(f, B));
420
+ return p;
420
421
  }
421
- function dateFormat(m, f = "yyyy-MM-dd hh:mm") {
422
- return formatDate.call(new Date(m), f);
422
+ function dateFormat(p, f = "yyyy-MM-dd hh:mm") {
423
+ return formatDate.call(new Date(p), f);
423
424
  }
424
- function now(m = "yyyy-MM-dd hh:mm") {
425
- return formatDate.call(/* @__PURE__ */ new Date(), m);
425
+ function now(p = "yyyy-MM-dd hh:mm") {
426
+ return formatDate.call(/* @__PURE__ */ new Date(), p);
426
427
  }
427
428
  var date_format = /* @__PURE__ */ Object.freeze({
428
429
  __proto__: null,
429
430
  dateFormat,
430
431
  now
431
432
  });
432
- function request(m, f, p, t, $) {
433
+ function request(p, f, m, t, B) {
433
434
  let O = {};
434
- if ($)
435
- for (const S in $)
436
- O[S] = $[S];
435
+ if (B)
436
+ for (const S in B)
437
+ O[S] = B[S];
437
438
  f = f.toUpperCase();
438
- let N = p;
439
- p && (f === "POST" || f === "PUT") && (O["Content-Type"] == "application/json" ? N = JSON.stringify(p) : O["Content-Type"] == "application/x-www-form-urlencoded" && (N = json2formParams(p))), fetch(m, {
439
+ let N = m;
440
+ m && (f === "POST" || f === "PUT") && (O["Content-Type"] == "application/json" ? N = JSON.stringify(m) : O["Content-Type"] == "application/x-www-form-urlencoded" && (N = json2formParams(m))), fetch(p, {
440
441
  method: f,
441
442
  headers: O,
442
443
  body: N,
443
444
  credentials: "include"
444
445
  }).then((S) => {
445
446
  if (S.status === 404)
446
- throw new Error("Not found 404: " + m);
447
+ throw new Error("Not found 404: " + p);
447
448
  if (S.status === 500)
448
- throw new Error("Server error: " + m);
449
+ throw new Error("Server error: " + p);
449
450
  if (!S.ok)
450
451
  throw new Error(`Unexpected status: ${S.status}`);
451
452
  return S.json();
452
453
  }).then((S) => {
453
454
  t && t(S);
454
455
  }).catch((S) => {
455
- console.error("Network error when fetching from: " + m, S);
456
+ console.error("Network error when fetching from: " + p, S);
456
457
  });
457
458
  }
458
- function json2formParams(m) {
459
+ function json2formParams(p) {
459
460
  const f = [];
460
- for (const [p, t] of Object.entries(m))
461
- t != null && typeof t != "function" && f.push(`${encodeURIComponent(p)}=${encodeURIComponent(String(t))}`);
461
+ for (const [m, t] of Object.entries(p))
462
+ t != null && typeof t != "function" && f.push(`${encodeURIComponent(m)}=${encodeURIComponent(String(t))}`);
462
463
  return f.join("&");
463
464
  }
464
- function get(m, f, p) {
465
- request(m, "GET", null, f, p);
465
+ function get(p, f, m) {
466
+ request(p, "GET", null, f, m);
466
467
  }
467
- function post(m, f, p, t) {
468
- request(m, "POST", f, p, Object.assign({ "Content-Type": "application/json" }, t));
468
+ function post(p, f, m, t) {
469
+ request(p, "POST", f, m, Object.assign({ "Content-Type": "application/json" }, t));
469
470
  }
470
- function postForm(m, f, p, t) {
471
- request(m, "POST", f, p, Object.assign({ "Content-Type": "application/x-www-form-urlencoded" }, t));
471
+ function postForm(p, f, m, t) {
472
+ request(p, "POST", f, m, Object.assign({ "Content-Type": "application/x-www-form-urlencoded" }, t));
472
473
  }
473
- function put(m, f, p, t) {
474
- request(m, "PUT", f, p, Object.assign({ "Content-Type": "application/json" }, t));
474
+ function put(p, f, m, t) {
475
+ request(p, "PUT", f, m, Object.assign({ "Content-Type": "application/json" }, t));
475
476
  }
476
- function putForm(m, f, p, t) {
477
- request(m, "PUT", f, p, Object.assign({ "Content-Type": "application/x-www-form-urlencoded" }, t));
477
+ function putForm(p, f, m, t) {
478
+ request(p, "PUT", f, m, Object.assign({ "Content-Type": "application/x-www-form-urlencoded" }, t));
478
479
  }
479
- function del(m, f, p) {
480
- request(m, "DELETE", null, f, p);
480
+ function del(p, f, m) {
481
+ request(p, "DELETE", null, f, m);
481
482
  }
482
483
  var xhr_fetch = /* @__PURE__ */ Object.freeze({
483
484
  __proto__: null,
@@ -499,15 +500,15 @@ const _sfc_main$9 = defineComponent({
499
500
  hide() {
500
501
  this.$emit("hide");
501
502
  },
502
- handleSubmit(m, { username: f, password: p }) {
503
- if (m) {
504
- const t = { grant_type: "password", username: f, password: p, client_id: "fvccgrfl3fzA7lrFyCpDA", client_secret: "zKvmM4Km8ghCIijl9ubqpHm1" };
505
- xhr_fetch.postForm("/iam_api/oidc/ropc_token", t, ($) => {
506
- $.status ? xhr_fetch.get("/iam_api/user/info", (O) => {
503
+ handleSubmit(p, { username: f, password: m }) {
504
+ if (p) {
505
+ const t = { grant_type: "password", username: f, password: m, client_id: "fvccgrfl3fzA7lrFyCpDA", client_secret: "zKvmM4Km8ghCIijl9ubqpHm1" };
506
+ xhr_fetch.postForm("/iam_api/oidc/ropc_token", t, (B) => {
507
+ B.status ? xhr_fetch.get("/iam_api/user/info", (O) => {
507
508
  console.log(O), this.msg = "登录成功", localStorage.setItem("isLoggedIn", "true"), localStorage.setItem("userInfo", JSON.stringify(O.data)), setTimeout(() => {
508
509
  this.$router.push("/?login_ok=1");
509
510
  }, 2e3);
510
- }) : this.msg = $.message || "登录失败";
511
+ }) : this.msg = B.message || "登录失败";
511
512
  });
512
513
  }
513
514
  },
@@ -516,11 +517,11 @@ const _sfc_main$9 = defineComponent({
516
517
  }
517
518
  }
518
519
  }), _hoisted_1$4 = { class: "mask" }, _hoisted_2$4 = { class: "auto-login" }, _hoisted_3$3 = { class: "msg" };
519
- function _sfc_render$8(m, f, p, t, $, O) {
520
+ function _sfc_render$8(p, f, m, t, B, O) {
520
521
  const N = resolveComponent("UserName"), S = resolveComponent("Password"), ye = resolveComponent("Submit"), Ee = resolveComponent("Login", !0);
521
522
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
522
523
  createVNode(Ee, {
523
- onOnSubmit: m.handleSubmit,
524
+ onOnSubmit: p.handleSubmit,
524
525
  class: "login"
525
526
  }, {
526
527
  default: withCtx(() => [
@@ -528,10 +529,10 @@ function _sfc_render$8(m, f, p, t, $, O) {
528
529
  createVNode(N, { name: "username" }),
529
530
  createVNode(S, { name: "password" }),
530
531
  createElementVNode("div", _hoisted_2$4, [
531
- createElementVNode("span", _hoisted_3$3, toDisplayString(m.msg), 1),
532
+ createElementVNode("span", _hoisted_3$3, toDisplayString(p.msg), 1),
532
533
  f[1] || (f[1] = createTextVNode("   ", -1)),
533
534
  createElementVNode("a", {
534
- onClick: f[0] || (f[0] = (..._e) => m.forgetPsw && m.forgetPsw(..._e))
535
+ onClick: f[0] || (f[0] = (..._e) => p.forgetPsw && p.forgetPsw(..._e))
535
536
  }, "忘记密码")
536
537
  ]),
537
538
  createVNode(ye)
@@ -541,20 +542,47 @@ function _sfc_render$8(m, f, p, t, $, O) {
541
542
  ]);
542
543
  }
543
544
  const Login = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8], ["__scopeId", "data-v-2149b790"]]);
544
- var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, viewuiplus_min$1 = { exports: {} }, viewuiplus_min = viewuiplus_min$1.exports, hasRequiredViewuiplus_min;
545
+ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
546
+ function getAugmentedNamespace(p) {
547
+ if (Object.prototype.hasOwnProperty.call(p, "__esModule")) return p;
548
+ var f = p.default;
549
+ if (typeof f == "function") {
550
+ var m = function t() {
551
+ var B = !1;
552
+ try {
553
+ B = this instanceof t;
554
+ } catch {
555
+ }
556
+ return B ? Reflect.construct(f, arguments, this.constructor) : f.apply(this, arguments);
557
+ };
558
+ m.prototype = f.prototype;
559
+ } else m = {};
560
+ return Object.defineProperty(m, "__esModule", { value: !0 }), Object.keys(p).forEach(function(t) {
561
+ var B = Object.getOwnPropertyDescriptor(p, t);
562
+ Object.defineProperty(m, t, B.get ? B : {
563
+ enumerable: !0,
564
+ get: function() {
565
+ return p[t];
566
+ }
567
+ });
568
+ }), m;
569
+ }
570
+ var viewuiplus_min$1 = { exports: {} };
571
+ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(vue);
572
+ var viewuiplus_min = viewuiplus_min$1.exports, hasRequiredViewuiplus_min;
545
573
  function requireViewuiplus_min() {
546
- return hasRequiredViewuiplus_min || (hasRequiredViewuiplus_min = 1, (function(m, f) {
547
- (function(p, t) {
574
+ return hasRequiredViewuiplus_min || (hasRequiredViewuiplus_min = 1, (function(p, f) {
575
+ (function(m, t) {
548
576
  t(f, require$$0);
549
- })(viewuiplus_min, function(p, t) {
550
- const $ = typeof window < "u", O = (function() {
551
- return $ && document.addEventListener ? function(e, n, i, a = !1) {
577
+ })(viewuiplus_min, function(m, t) {
578
+ const B = typeof window < "u", O = (function() {
579
+ return B && document.addEventListener ? function(e, n, i, a = !1) {
552
580
  e && n && i && e.addEventListener(n, i, a);
553
581
  } : function(e, n, i) {
554
582
  e && n && i && e.attachEvent("on" + n, i);
555
583
  };
556
584
  })(), N = (function() {
557
- return $ && document.removeEventListener ? function(e, n, i, a = !1) {
585
+ return B && document.removeEventListener ? function(e, n, i, a = !1) {
558
586
  e && n && e.removeEventListener(n, i, a);
559
587
  } : function(e, n, i) {
560
588
  e && n && e.detachEvent("on" + n, i);
@@ -569,10 +597,10 @@ function requireViewuiplus_min() {
569
597
  function Ee(e, n) {
570
598
  const i = n ? "pageYOffset" : "pageXOffset", a = n ? "scrollTop" : "scrollLeft";
571
599
  let o = e[i];
572
- return $ && typeof o != "number" && (o = window.document.documentElement[a]), o;
600
+ return B && typeof o != "number" && (o = window.document.documentElement[a]), o;
573
601
  }
574
602
  function _e(e) {
575
- if (!$) return;
603
+ if (!B) return;
576
604
  const n = e.getBoundingClientRect(), i = Ee(window, !0), a = Ee(window), o = window.document.body, l = o.clientTop || 0, r = o.clientLeft || 0;
577
605
  return { top: n.top + i - l, left: n.left + a - r };
578
606
  }
@@ -590,7 +618,7 @@ function requireViewuiplus_min() {
590
618
  }, beforeUnmount() {
591
619
  N(window, "scroll", this.handleScroll, this.useCapture), N(window, "resize", this.handleScroll, this.useCapture);
592
620
  }, methods: { handleScroll() {
593
- if (!$) return;
621
+ if (!B) return;
594
622
  const e = this.affix, n = Ee(window, !0), i = _e(this.$el), a = window.innerHeight, o = this.$el.getElementsByTagName("div")[0].offsetHeight;
595
623
  i.top - this.offsetTop < n && this.offsetType == "top" && !e ? (this.affix = !0, this.slotStyle = { width: this.$refs.point.clientWidth + "px", height: this.$refs.point.clientHeight + "px" }, this.slot = !0, this.styles = { top: `${this.offsetTop}px`, left: `${i.left}px`, width: `${this.$el.offsetWidth}px` }, this.$emit("on-change", !0)) : i.top - this.offsetTop > n && this.offsetType == "top" && e && (this.slot = !1, this.slotStyle = {}, this.affix = !1, this.styles = null, this.$emit("on-change", !1)), i.top + this.offsetBottom + o > n + a && this.offsetType == "bottom" && !e ? (this.affix = !0, this.styles = { bottom: `${this.offsetBottom}px`, left: `${i.left}px`, width: `${this.$el.offsetWidth}px` }, this.$emit("on-change", !0)) : i.top + this.offsetBottom + o < n + a && this.offsetType == "bottom" && e && (this.affix = !1, this.styles = null, this.$emit("on-change", !1));
596
624
  } } };
@@ -614,7 +642,7 @@ function requireViewuiplus_min() {
614
642
  }
615
643
  let dn;
616
644
  function ue(e) {
617
- if ($ && dn === void 0) {
645
+ if (B && dn === void 0) {
618
646
  const n = document.createElement("div");
619
647
  n.style.width = "100%", n.style.height = "200px";
620
648
  const i = document.createElement("div"), a = i.style;
@@ -626,14 +654,14 @@ function requireViewuiplus_min() {
626
654
  }
627
655
  return dn;
628
656
  }
629
- const hn = $ && (window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver) || !1, Jc = /([\:\-\_]+(.))/g, Xc = /^moz([A-Z])/;
657
+ const hn = B && (window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver) || !1, Jc = /([\:\-\_]+(.))/g, Xc = /^moz([A-Z])/;
630
658
  function Zc(e) {
631
659
  return e.replace(Jc, function(n, i, a, o) {
632
660
  return o ? a.toUpperCase() : a;
633
661
  }).replace(Xc, "Moz$1");
634
662
  }
635
663
  function wt(e, n) {
636
- if ($) {
664
+ if (B) {
637
665
  if (!e || !n) return null;
638
666
  n = Zc(n), n === "float" && (n = "cssFloat");
639
667
  try {
@@ -661,7 +689,7 @@ function requireViewuiplus_min() {
661
689
  return i;
662
690
  }
663
691
  function zl(e, n = 0, i, a = 500, o) {
664
- if (!$) return;
692
+ if (!B) return;
665
693
  window.requestAnimationFrame || (window.requestAnimationFrame = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || function(u) {
666
694
  return window.setTimeout(u, 1e3 / 60);
667
695
  });
@@ -717,7 +745,7 @@ function requireViewuiplus_min() {
717
745
  }
718
746
  const tu = { xs: "480px", sm: "576px", md: "768px", lg: "992px", xl: "1200px", xxl: "1600px" };
719
747
  function nu() {
720
- if (!$) return;
748
+ if (!B) return;
721
749
  const e = (n) => ({ media: n, matches: !1, on() {
722
750
  }, off() {
723
751
  } });
@@ -725,7 +753,7 @@ function requireViewuiplus_min() {
725
753
  }
726
754
  const iu = /#([^#]+)$/;
727
755
  async function lu(e, n = "unnamed") {
728
- if (!$) return Promise.reject();
756
+ if (!B) return Promise.reject();
729
757
  try {
730
758
  const i = await (await fetch(e)).blob();
731
759
  if (!i) return Promise.reject();
@@ -789,7 +817,7 @@ function requireViewuiplus_min() {
789
817
  }, titlesOffsetArr() {
790
818
  const e = this.links.map((i) => i.link.href).map((i) => i.split("#")[1]);
791
819
  let n = [];
792
- return $ && e.forEach((i) => {
820
+ return B && e.forEach((i) => {
793
821
  const a = document.getElementById(i);
794
822
  a && n.push({ link: `#${i}`, offset: a.offsetTop - this.scrollElement.offsetTop });
795
823
  }), n;
@@ -797,14 +825,14 @@ function requireViewuiplus_min() {
797
825
  this.isAffixed = this.affix && e;
798
826
  }, handleScroll(e) {
799
827
  if (this.upperFirstTitle = !!this.titlesOffsetArr[0] && e.target.scrollTop < this.titlesOffsetArr[0].offset, this.animating) return;
800
- const n = $ ? document.documentElement.scrollTop || document.body.scrollTop || e.target.scrollTop : 0;
828
+ const n = B ? document.documentElement.scrollTop || document.body.scrollTop || e.target.scrollTop : 0;
801
829
  this.getCurrentScrollAtTitleId(n);
802
830
  }, handleHashChange() {
803
- if (!$) return;
831
+ if (!B) return;
804
832
  const e = window.location.href, n = iu.exec(e);
805
833
  !n || (this.currentLink = n[0], this.currentId = n[1]);
806
834
  }, handleScrollTo() {
807
- if (!$) return;
835
+ if (!B) return;
808
836
  const e = document.getElementById(this.currentId), n = document.querySelector(`a[data-href="${this.currentLink}"]`);
809
837
  let i = this.scrollOffset;
810
838
  if (n && (i = parseFloat(n.getAttribute("data-scroll-offset"))), !e) return;
@@ -813,7 +841,7 @@ function requireViewuiplus_min() {
813
841
  this.animating = !1;
814
842
  }), this.handleSetInkTop();
815
843
  }, handleSetInkTop() {
816
- if (!$) return;
844
+ if (!B) return;
817
845
  const e = document.querySelector(`a[data-href="${this.currentLink}"]`);
818
846
  if (!e) return;
819
847
  const n = e.offsetTop, i = n < 0 ? this.offsetTop : n;
@@ -829,7 +857,7 @@ function requireViewuiplus_min() {
829
857
  }
830
858
  this.currentLink = a.link, this.handleSetInkTop();
831
859
  }, getContainer() {
832
- !$ || (this.scrollContainer = this.container ? typeof this.container == "string" ? document.querySelector(this.container) : this.container : window, this.scrollElement = this.container ? this.scrollContainer : document.documentElement || document.body);
860
+ !B || (this.scrollContainer = this.container ? typeof this.container == "string" ? document.querySelector(this.container) : this.container : window, this.scrollElement = this.container ? this.scrollContainer : document.documentElement || document.body);
833
861
  }, removeListener() {
834
862
  N(this.scrollContainer, "scroll", this.handleScroll), N(window, "hashchange", this.handleHashChange);
835
863
  }, init() {
@@ -874,7 +902,7 @@ function requireViewuiplus_min() {
874
902
  return [`${this.prefix}-title`];
875
903
  } }, methods: { goAnchor() {
876
904
  this.currentLink = this.href, this.AnchorInstance.handleHashChange(), this.AnchorInstance.handleScrollTo(), this.AnchorInstance.$emit("on-select", this.href), this.$router ? this.$router.push(this.href, () => {
877
- }) : $ && (window.location.href = this.href);
905
+ }) : B && (window.location.href = this.href);
878
906
  } }, mounted() {
879
907
  this.AnchorInstance.addLink(this.id, this), t.nextTick(() => {
880
908
  this.AnchorInstance.init();
@@ -897,7 +925,7 @@ function requireViewuiplus_min() {
897
925
  }
898
926
  return this.to;
899
927
  } }, methods: { handleOpenTo() {
900
- if (!$) return;
928
+ if (!B) return;
901
929
  const e = this.$router;
902
930
  let n = this.to;
903
931
  if (e) {
@@ -907,7 +935,7 @@ function requireViewuiplus_min() {
907
935
  typeof this.to != "string" && window.open(n);
908
936
  }, handleClick(e = !1) {
909
937
  const n = this.$router;
910
- !$ || (e ? this.handleOpenTo() : n ? typeof this.to == "string" && this.to.includes("//") ? window.location.href = this.to : this.replace ? this.$router.replace(this.to, () => {
938
+ !B || (e ? this.handleOpenTo() : n ? typeof this.to == "string" && this.to.includes("//") ? window.location.href = this.to : this.replace ? this.$router.replace(this.to, () => {
911
939
  }) : this.$router.push(this.to, () => {
912
940
  }) : window.location.href = this.to);
913
941
  }, handleCheckClick(e, n = !1) {
@@ -977,8 +1005,8 @@ function requireViewuiplus_min() {
977
1005
  }
978
1006
  function c(g, k) {
979
1007
  if (g.nodeType !== 1) return [];
980
- var x = g.ownerDocument.defaultView, B = x.getComputedStyle(g, null);
981
- return k ? B[k] : B;
1008
+ var x = g.ownerDocument.defaultView, $ = x.getComputedStyle(g, null);
1009
+ return k ? $[k] : $;
982
1010
  }
983
1011
  function d(g) {
984
1012
  return g.nodeName === "HTML" ? g : g.parentNode || g.host;
@@ -992,8 +1020,8 @@ function requireViewuiplus_min() {
992
1020
  case "#document":
993
1021
  return g.body;
994
1022
  }
995
- var k = c(g), x = k.overflow, B = k.overflowX, F = k.overflowY;
996
- return /(auto|scroll|overlay)/.test(x + F + B) ? g : C(d(g));
1023
+ var k = c(g), x = k.overflow, $ = k.overflowX, F = k.overflowY;
1024
+ return /(auto|scroll|overlay)/.test(x + F + $) ? g : C(d(g));
997
1025
  }
998
1026
  function w(g) {
999
1027
  return g && g.referenceNode ? g.referenceNode : g;
@@ -1005,8 +1033,8 @@ function requireViewuiplus_min() {
1005
1033
  function E(g) {
1006
1034
  if (!g) return document.documentElement;
1007
1035
  for (var k = y(10) ? document.body : null, x = g.offsetParent || null; x === k && g.nextElementSibling; ) x = (g = g.nextElementSibling).offsetParent;
1008
- var B = x && x.nodeName;
1009
- return !B || B === "BODY" || B === "HTML" ? g ? g.ownerDocument.documentElement : document.documentElement : ["TH", "TD", "TABLE"].indexOf(x.nodeName) !== -1 && c(x, "position") === "static" ? E(x) : x;
1036
+ var $ = x && x.nodeName;
1037
+ return !$ || $ === "BODY" || $ === "HTML" ? g ? g.ownerDocument.documentElement : document.documentElement : ["TH", "TD", "TABLE"].indexOf(x.nodeName) !== -1 && c(x, "position") === "static" ? E(x) : x;
1010
1038
  }
1011
1039
  function Z(g) {
1012
1040
  var k = g.nodeName;
@@ -1017,54 +1045,54 @@ function requireViewuiplus_min() {
1017
1045
  }
1018
1046
  function U(g, k) {
1019
1047
  if (!g || !g.nodeType || !k || !k.nodeType) return document.documentElement;
1020
- var x = g.compareDocumentPosition(k) & Node.DOCUMENT_POSITION_FOLLOWING, B = x ? g : k, F = x ? k : g, z = document.createRange();
1021
- z.setStart(B, 0), z.setEnd(F, 0);
1048
+ var x = g.compareDocumentPosition(k) & Node.DOCUMENT_POSITION_FOLLOWING, $ = x ? g : k, F = x ? k : g, z = document.createRange();
1049
+ z.setStart($, 0), z.setEnd(F, 0);
1022
1050
  var P = z.commonAncestorContainer;
1023
- if (g !== P && k !== P || B.contains(F)) return Z(P) ? P : E(P);
1051
+ if (g !== P && k !== P || $.contains(F)) return Z(P) ? P : E(P);
1024
1052
  var L = A(g);
1025
1053
  return L.host ? U(L.host, k) : U(g, A(k).host);
1026
1054
  }
1027
1055
  function T(g) {
1028
- var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top", x = k === "top" ? "scrollTop" : "scrollLeft", B = g.nodeName;
1029
- if (B === "BODY" || B === "HTML") {
1056
+ var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top", x = k === "top" ? "scrollTop" : "scrollLeft", $ = g.nodeName;
1057
+ if ($ === "BODY" || $ === "HTML") {
1030
1058
  var F = g.ownerDocument.documentElement, z = g.ownerDocument.scrollingElement || F;
1031
1059
  return z[x];
1032
1060
  }
1033
1061
  return g[x];
1034
1062
  }
1035
1063
  function V(g, k) {
1036
- var x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, B = T(k, "top"), F = T(k, "left"), z = x ? -1 : 1;
1037
- return g.top += B * z, g.bottom += B * z, g.left += F * z, g.right += F * z, g;
1064
+ var x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, $ = T(k, "top"), F = T(k, "left"), z = x ? -1 : 1;
1065
+ return g.top += $ * z, g.bottom += $ * z, g.left += F * z, g.right += F * z, g;
1038
1066
  }
1039
1067
  function M(g, k) {
1040
- var x = k === "x" ? "Left" : "Top", B = x === "Left" ? "Right" : "Bottom";
1041
- return parseFloat(g["border" + x + "Width"]) + parseFloat(g["border" + B + "Width"]);
1068
+ var x = k === "x" ? "Left" : "Top", $ = x === "Left" ? "Right" : "Bottom";
1069
+ return parseFloat(g["border" + x + "Width"]) + parseFloat(g["border" + $ + "Width"]);
1042
1070
  }
1043
- function I(g, k, x, B) {
1044
- return Math.max(k["offset" + g], k["scroll" + g], x["client" + g], x["offset" + g], x["scroll" + g], y(10) ? parseInt(x["offset" + g]) + parseInt(B["margin" + (g === "Height" ? "Top" : "Left")]) + parseInt(B["margin" + (g === "Height" ? "Bottom" : "Right")]) : 0);
1071
+ function I(g, k, x, $) {
1072
+ return Math.max(k["offset" + g], k["scroll" + g], x["client" + g], x["offset" + g], x["scroll" + g], y(10) ? parseInt(x["offset" + g]) + parseInt($["margin" + (g === "Height" ? "Top" : "Left")]) + parseInt($["margin" + (g === "Height" ? "Bottom" : "Right")]) : 0);
1045
1073
  }
1046
1074
  function ee(g) {
1047
- var k = g.body, x = g.documentElement, B = y(10) && getComputedStyle(x);
1048
- return { height: I("Height", k, x, B), width: I("Width", k, x, B) };
1075
+ var k = g.body, x = g.documentElement, $ = y(10) && getComputedStyle(x);
1076
+ return { height: I("Height", k, x, $), width: I("Width", k, x, $) };
1049
1077
  }
1050
1078
  var te = function(g, k) {
1051
1079
  if (!(g instanceof k)) throw new TypeError("Cannot call a class as a function");
1052
1080
  }, q = /* @__PURE__ */ (function() {
1053
1081
  function g(k, x) {
1054
- for (var B = 0; B < x.length; B++) {
1055
- var F = x[B];
1082
+ for (var $ = 0; $ < x.length; $++) {
1083
+ var F = x[$];
1056
1084
  F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(k, F.key, F);
1057
1085
  }
1058
1086
  }
1059
- return function(k, x, B) {
1060
- return x && g(k.prototype, x), B && g(k, B), k;
1087
+ return function(k, x, $) {
1088
+ return x && g(k.prototype, x), $ && g(k, $), k;
1061
1089
  };
1062
1090
  })(), j = function(g, k, x) {
1063
1091
  return k in g ? Object.defineProperty(g, k, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : g[k] = x, g;
1064
1092
  }, G = Object.assign || function(g) {
1065
1093
  for (var k = 1; k < arguments.length; k++) {
1066
1094
  var x = arguments[k];
1067
- for (var B in x) Object.prototype.hasOwnProperty.call(x, B) && (g[B] = x[B]);
1095
+ for (var $ in x) Object.prototype.hasOwnProperty.call(x, $) && (g[$] = x[$]);
1068
1096
  }
1069
1097
  return g;
1070
1098
  };
@@ -1076,8 +1104,8 @@ function requireViewuiplus_min() {
1076
1104
  try {
1077
1105
  if (y(10)) {
1078
1106
  k = g.getBoundingClientRect();
1079
- var x = T(g, "top"), B = T(g, "left");
1080
- k.top += x, k.left += B, k.bottom += x, k.right += B;
1107
+ var x = T(g, "top"), $ = T(g, "left");
1108
+ k.top += x, k.left += $, k.bottom += x, k.right += $;
1081
1109
  } else k = g.getBoundingClientRect();
1082
1110
  } catch {
1083
1111
  }
@@ -1089,17 +1117,17 @@ function requireViewuiplus_min() {
1089
1117
  return le(F);
1090
1118
  }
1091
1119
  function R(g, k) {
1092
- var x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, B = y(10), F = k.nodeName === "HTML", z = Y(g), P = Y(k), L = C(g), W = c(k), ie = parseFloat(W.borderTopWidth), oe = parseFloat(W.borderLeftWidth);
1120
+ var x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, $ = y(10), F = k.nodeName === "HTML", z = Y(g), P = Y(k), L = C(g), W = c(k), ie = parseFloat(W.borderTopWidth), oe = parseFloat(W.borderLeftWidth);
1093
1121
  x && F && (P.top = Math.max(P.top, 0), P.left = Math.max(P.left, 0));
1094
1122
  var Q = le({ top: z.top - P.top - ie, left: z.left - P.left - oe, width: z.width, height: z.height });
1095
- if (Q.marginTop = 0, Q.marginLeft = 0, !B && F) {
1123
+ if (Q.marginTop = 0, Q.marginLeft = 0, !$ && F) {
1096
1124
  var ae = parseFloat(W.marginTop), pe = parseFloat(W.marginLeft);
1097
1125
  Q.top -= ie - ae, Q.bottom -= ie - ae, Q.left -= oe - pe, Q.right -= oe - pe, Q.marginTop = ae, Q.marginLeft = pe;
1098
1126
  }
1099
- return (B && !x ? k.contains(L) : k === L && L.nodeName !== "BODY") && (Q = V(Q, k)), Q;
1127
+ return ($ && !x ? k.contains(L) : k === L && L.nodeName !== "BODY") && (Q = V(Q, k)), Q;
1100
1128
  }
1101
1129
  function _(g) {
1102
- var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, x = g.ownerDocument.documentElement, B = R(g, x), F = Math.max(x.clientWidth, window.innerWidth || 0), z = Math.max(x.clientHeight, window.innerHeight || 0), P = k ? 0 : T(x), L = k ? 0 : T(x, "left"), W = { top: P - B.top + B.marginTop, left: L - B.left + B.marginLeft, width: F, height: z };
1130
+ var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, x = g.ownerDocument.documentElement, $ = R(g, x), F = Math.max(x.clientWidth, window.innerWidth || 0), z = Math.max(x.clientHeight, window.innerHeight || 0), P = k ? 0 : T(x), L = k ? 0 : T(x, "left"), W = { top: P - $.top + $.marginTop, left: L - $.left + $.marginLeft, width: F, height: z };
1103
1131
  return le(W);
1104
1132
  }
1105
1133
  function J(g) {
@@ -1114,12 +1142,12 @@ function requireViewuiplus_min() {
1114
1142
  for (var k = g.parentElement; k && c(k, "transform") === "none"; ) k = k.parentElement;
1115
1143
  return k || document.documentElement;
1116
1144
  }
1117
- function se(g, k, x, B) {
1145
+ function se(g, k, x, $) {
1118
1146
  var F = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, z = { top: 0, left: 0 }, P = F ? H(g) : U(g, w(k));
1119
- if (B === "viewport") z = _(P, F);
1147
+ if ($ === "viewport") z = _(P, F);
1120
1148
  else {
1121
1149
  var L = void 0;
1122
- B === "scrollParent" ? (L = C(d(k)), L.nodeName === "BODY" && (L = g.ownerDocument.documentElement)) : B === "window" ? L = g.ownerDocument.documentElement : L = B;
1150
+ $ === "scrollParent" ? (L = C(d(k)), L.nodeName === "BODY" && (L = g.ownerDocument.documentElement)) : $ === "window" ? L = g.ownerDocument.documentElement : L = $;
1123
1151
  var W = R(L, P, F);
1124
1152
  if (L.nodeName === "HTML" && !J(P)) {
1125
1153
  var ie = ee(g.ownerDocument), oe = ie.height, Q = ie.width;
@@ -1134,10 +1162,10 @@ function requireViewuiplus_min() {
1134
1162
  var k = g.width, x = g.height;
1135
1163
  return k * x;
1136
1164
  }
1137
- function fe(g, k, x, B, F) {
1165
+ function fe(g, k, x, $, F) {
1138
1166
  var z = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
1139
1167
  if (g.indexOf("auto") === -1) return g;
1140
- var P = se(x, B, z, F), L = { top: { width: P.width, height: k.top - P.top }, right: { width: P.right - k.right, height: P.height }, bottom: { width: P.width, height: P.bottom - k.bottom }, left: { width: k.left - P.left, height: P.height } }, W = Object.keys(L).map(function(ae) {
1168
+ var P = se(x, $, z, F), L = { top: { width: P.width, height: k.top - P.top }, right: { width: P.right - k.right, height: P.height }, bottom: { width: P.width, height: P.bottom - k.bottom }, left: { width: k.left - P.left, height: P.height } }, W = Object.keys(L).map(function(ae) {
1141
1169
  return G({ key: ae }, L[ae], { area: ce(L[ae]) });
1142
1170
  }).sort(function(ae, pe) {
1143
1171
  return pe.area - ae.area;
@@ -1148,11 +1176,11 @@ function requireViewuiplus_min() {
1148
1176
  return oe + (Q ? "-" + Q : "");
1149
1177
  }
1150
1178
  function ve(g, k, x) {
1151
- var B = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, F = B ? H(k) : U(k, w(x));
1152
- return R(x, F, B);
1179
+ var $ = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, F = $ ? H(k) : U(k, w(x));
1180
+ return R(x, F, $);
1153
1181
  }
1154
1182
  function Se(g) {
1155
- var k = g.ownerDocument.defaultView, x = k.getComputedStyle(g), B = parseFloat(x.marginTop || 0) + parseFloat(x.marginBottom || 0), F = parseFloat(x.marginLeft || 0) + parseFloat(x.marginRight || 0), z = { width: g.offsetWidth + F, height: g.offsetHeight + B };
1183
+ var k = g.ownerDocument.defaultView, x = k.getComputedStyle(g), $ = parseFloat(x.marginTop || 0) + parseFloat(x.marginBottom || 0), F = parseFloat(x.marginLeft || 0) + parseFloat(x.marginRight || 0), z = { width: g.offsetWidth + F, height: g.offsetHeight + $ };
1156
1184
  return z;
1157
1185
  }
1158
1186
  function Be(g) {
@@ -1163,8 +1191,8 @@ function requireViewuiplus_min() {
1163
1191
  }
1164
1192
  function Le(g, k, x) {
1165
1193
  x = x.split("-")[0];
1166
- var B = Se(g), F = { width: B.width, height: B.height }, z = ["right", "left"].indexOf(x) !== -1, P = z ? "top" : "left", L = z ? "left" : "top", W = z ? "height" : "width", ie = z ? "width" : "height";
1167
- return F[P] = k[P] + k[W] / 2 - B[W] / 2, x === L ? F[L] = k[L] - B[ie] : F[L] = k[Be(L)], F;
1194
+ var $ = Se(g), F = { width: $.width, height: $.height }, z = ["right", "left"].indexOf(x) !== -1, P = z ? "top" : "left", L = z ? "left" : "top", W = z ? "height" : "width", ie = z ? "width" : "height";
1195
+ return F[P] = k[P] + k[W] / 2 - $[W] / 2, x === L ? F[L] = k[L] - $[ie] : F[L] = k[Be(L)], F;
1168
1196
  }
1169
1197
  function Je(g, k) {
1170
1198
  return Array.prototype.find ? g.find(k) : g.filter(k)[0];
@@ -1173,14 +1201,14 @@ function requireViewuiplus_min() {
1173
1201
  if (Array.prototype.findIndex) return g.findIndex(function(F) {
1174
1202
  return F[k] === x;
1175
1203
  });
1176
- var B = Je(g, function(F) {
1204
+ var $ = Je(g, function(F) {
1177
1205
  return F[k] === x;
1178
1206
  });
1179
- return g.indexOf(B);
1207
+ return g.indexOf($);
1180
1208
  }
1181
1209
  function gt(g, k, x) {
1182
- var B = x === void 0 ? g : g.slice(0, ft(g, "name", x));
1183
- return B.forEach(function(F) {
1210
+ var $ = x === void 0 ? g : g.slice(0, ft(g, "name", x));
1211
+ return $.forEach(function(F) {
1184
1212
  F.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
1185
1213
  var z = F.function || F.fn;
1186
1214
  F.enabled && u(z) && (k.offsets.popper = le(k.offsets.popper), k.offsets.reference = le(k.offsets.reference), k = z(k, F));
@@ -1194,13 +1222,13 @@ function requireViewuiplus_min() {
1194
1222
  }
1195
1223
  function re(g, k) {
1196
1224
  return g.some(function(x) {
1197
- var B = x.name, F = x.enabled;
1198
- return F && B === k;
1225
+ var $ = x.name, F = x.enabled;
1226
+ return F && $ === k;
1199
1227
  });
1200
1228
  }
1201
1229
  function he(g) {
1202
- for (var k = [!1, "ms", "Webkit", "Moz", "O"], x = g.charAt(0).toUpperCase() + g.slice(1), B = 0; B < k.length; B++) {
1203
- var F = k[B], z = F ? "" + F + x : g;
1230
+ for (var k = [!1, "ms", "Webkit", "Moz", "O"], x = g.charAt(0).toUpperCase() + g.slice(1), $ = 0; $ < k.length; $++) {
1231
+ var F = k[$], z = F ? "" + F + x : g;
1204
1232
  if (typeof document.body.style[z] < "u") return z;
1205
1233
  }
1206
1234
  return null;
@@ -1212,12 +1240,12 @@ function requireViewuiplus_min() {
1212
1240
  var k = g.ownerDocument;
1213
1241
  return k ? k.defaultView : window;
1214
1242
  }
1215
- function Rt(g, k, x, B) {
1243
+ function Rt(g, k, x, $) {
1216
1244
  var F = g.nodeName === "BODY", z = F ? g.ownerDocument.defaultView : g;
1217
- z.addEventListener(k, x, { passive: !0 }), F || Rt(C(z.parentNode), k, x, B), B.push(z);
1245
+ z.addEventListener(k, x, { passive: !0 }), F || Rt(C(z.parentNode), k, x, $), $.push(z);
1218
1246
  }
1219
- function rn(g, k, x, B) {
1220
- x.updateBound = B, qe(g).addEventListener("resize", x.updateBound, { passive: !0 });
1247
+ function rn(g, k, x, $) {
1248
+ x.updateBound = $, qe(g).addEventListener("resize", x.updateBound, { passive: !0 });
1221
1249
  var F = C(g);
1222
1250
  return Rt(F, "scroll", x.updateBound, x.scrollParents), x.scrollElement = F, x.eventsEnabled = !0, x;
1223
1251
  }
@@ -1237,36 +1265,36 @@ function requireViewuiplus_min() {
1237
1265
  }
1238
1266
  function ot(g, k) {
1239
1267
  Object.keys(k).forEach(function(x) {
1240
- var B = "";
1241
- ["width", "height", "top", "right", "bottom", "left"].indexOf(x) !== -1 && yt(k[x]) && (B = "px"), g.style[x] = k[x] + B;
1268
+ var $ = "";
1269
+ ["width", "height", "top", "right", "bottom", "left"].indexOf(x) !== -1 && yt(k[x]) && ($ = "px"), g.style[x] = k[x] + $;
1242
1270
  });
1243
1271
  }
1244
1272
  function Ct(g, k) {
1245
1273
  Object.keys(k).forEach(function(x) {
1246
- var B = k[x];
1247
- B !== !1 ? g.setAttribute(x, k[x]) : g.removeAttribute(x);
1274
+ var $ = k[x];
1275
+ $ !== !1 ? g.setAttribute(x, k[x]) : g.removeAttribute(x);
1248
1276
  });
1249
1277
  }
1250
1278
  function qn(g) {
1251
1279
  return ot(g.instance.popper, g.styles), Ct(g.instance.popper, g.attributes), g.arrowElement && Object.keys(g.arrowStyles).length && ot(g.arrowElement, g.arrowStyles), g;
1252
1280
  }
1253
- function Vl(g, k, x, B, F) {
1281
+ function Vl(g, k, x, $, F) {
1254
1282
  var z = ve(F, k, g, x.positionFixed), P = fe(x.placement, z, k, g, x.modifiers.flip.boundariesElement, x.modifiers.flip.padding);
1255
1283
  return k.setAttribute("x-placement", P), ot(k, { position: x.positionFixed ? "fixed" : "absolute" }), x;
1256
1284
  }
1257
1285
  function Yn(g, k) {
1258
- var x = g.offsets, B = x.popper, F = x.reference, z = Math.round, P = Math.floor, L = function(Dt) {
1286
+ var x = g.offsets, $ = x.popper, F = x.reference, z = Math.round, P = Math.floor, L = function(Dt) {
1259
1287
  return Dt;
1260
- }, W = z(F.width), ie = z(B.width), oe = ["left", "right"].indexOf(g.placement) !== -1, Q = g.placement.indexOf("-") !== -1, ae = W % 2 === ie % 2, pe = W % 2 === 1 && ie % 2 === 1, me = k ? oe || Q || ae ? z : P : L, ze = k ? z : L;
1261
- return { left: me(pe && !Q && k ? B.left - 1 : B.left), top: ze(B.top), bottom: ze(B.bottom), right: me(B.right) };
1288
+ }, W = z(F.width), ie = z($.width), oe = ["left", "right"].indexOf(g.placement) !== -1, Q = g.placement.indexOf("-") !== -1, ae = W % 2 === ie % 2, pe = W % 2 === 1 && ie % 2 === 1, me = k ? oe || Q || ae ? z : P : L, ze = k ? z : L;
1289
+ return { left: me(pe && !Q && k ? $.left - 1 : $.left), top: ze($.top), bottom: ze($.bottom), right: me($.right) };
1262
1290
  }
1263
1291
  var Dl = i && /Firefox/i.test(navigator.userAgent);
1264
1292
  function Nl(g, k) {
1265
- var x = k.x, B = k.y, F = g.offsets.popper, z = Je(g.instance.modifiers, function(Bn) {
1293
+ var x = k.x, $ = k.y, F = g.offsets.popper, z = Je(g.instance.modifiers, function(Bn) {
1266
1294
  return Bn.name === "applyStyle";
1267
1295
  }).gpuAcceleration;
1268
1296
  z !== void 0 && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
1269
- var P = z !== void 0 ? z : k.gpuAcceleration, L = E(g.instance.popper), W = Y(L), ie = { position: F.position }, oe = Yn(g, window.devicePixelRatio < 2 || !Dl), Q = x === "bottom" ? "top" : "bottom", ae = B === "right" ? "left" : "right", pe = he("transform"), me = void 0, ze = void 0;
1297
+ var P = z !== void 0 ? z : k.gpuAcceleration, L = E(g.instance.popper), W = Y(L), ie = { position: F.position }, oe = Yn(g, window.devicePixelRatio < 2 || !Dl), Q = x === "bottom" ? "top" : "bottom", ae = $ === "right" ? "left" : "right", pe = he("transform"), me = void 0, ze = void 0;
1270
1298
  if (Q === "bottom" ? L.nodeName === "HTML" ? ze = -L.clientHeight + oe.bottom : ze = -W.height + oe.bottom : ze = oe.top, ae === "right" ? L.nodeName === "HTML" ? me = -L.clientWidth + oe.right : me = -W.width + oe.right : me = oe.left, P && pe) ie[pe] = "translate3d(" + me + "px, " + ze + "px, 0)", ie[Q] = 0, ie[ae] = 0, ie.willChange = "transform";
1271
1299
  else {
1272
1300
  var Dt = Q === "bottom" ? -1 : 1, Gn = ae === "right" ? -1 : 1;
@@ -1276,11 +1304,11 @@ function requireViewuiplus_min() {
1276
1304
  return g.attributes = G({}, ct, g.attributes), g.styles = G({}, ie, g.styles), g.arrowStyles = G({}, g.offsets.arrow, g.arrowStyles), g;
1277
1305
  }
1278
1306
  function zi(g, k, x) {
1279
- var B = Je(g, function(L) {
1307
+ var $ = Je(g, function(L) {
1280
1308
  var W = L.name;
1281
1309
  return W === k;
1282
- }), F = !!B && g.some(function(L) {
1283
- return L.name === x && L.enabled && L.order < B.order;
1310
+ }), F = !!$ && g.some(function(L) {
1311
+ return L.name === x && L.enabled && L.order < $.order;
1284
1312
  });
1285
1313
  if (!F) {
1286
1314
  var z = "`" + k + "`", P = "`" + x + "`";
@@ -1291,57 +1319,57 @@ function requireViewuiplus_min() {
1291
1319
  function Ne(g, k) {
1292
1320
  var x;
1293
1321
  if (!zi(g.instance.modifiers, "arrow", "keepTogether")) return g;
1294
- var B = k.element;
1295
- if (typeof B == "string") {
1296
- if (B = g.instance.popper.querySelector(B), !B) return g;
1297
- } else if (!g.instance.popper.contains(B)) return console.warn("WARNING: `arrow.element` must be child of its popper element!"), g;
1298
- var F = g.placement.split("-")[0], z = g.offsets, P = z.popper, L = z.reference, W = ["left", "right"].indexOf(F) !== -1, ie = W ? "height" : "width", oe = W ? "Top" : "Left", Q = oe.toLowerCase(), ae = W ? "left" : "top", pe = W ? "bottom" : "right", me = Se(B)[ie];
1322
+ var $ = k.element;
1323
+ if (typeof $ == "string") {
1324
+ if ($ = g.instance.popper.querySelector($), !$) return g;
1325
+ } else if (!g.instance.popper.contains($)) return console.warn("WARNING: `arrow.element` must be child of its popper element!"), g;
1326
+ var F = g.placement.split("-")[0], z = g.offsets, P = z.popper, L = z.reference, W = ["left", "right"].indexOf(F) !== -1, ie = W ? "height" : "width", oe = W ? "Top" : "Left", Q = oe.toLowerCase(), ae = W ? "left" : "top", pe = W ? "bottom" : "right", me = Se($)[ie];
1299
1327
  L[pe] - me < P[Q] && (g.offsets.popper[Q] -= P[Q] - (L[pe] - me)), L[Q] + me > P[pe] && (g.offsets.popper[Q] += L[Q] + me - P[pe]), g.offsets.popper = le(g.offsets.popper);
1300
1328
  var ze = L[Q] + L[ie] / 2 - me / 2, Dt = c(g.instance.popper), Gn = parseFloat(Dt["margin" + oe]), ct = parseFloat(Dt["border" + oe + "Width"]), Bn = ze - g.offsets.popper[Q] - Gn - ct;
1301
- return Bn = Math.max(Math.min(P[ie] - me, Bn), 0), g.arrowElement = B, g.offsets.arrow = (x = {}, j(x, Q, Math.round(Bn)), j(x, ae, ""), x), g;
1329
+ return Bn = Math.max(Math.min(P[ie] - me, Bn), 0), g.arrowElement = $, g.offsets.arrow = (x = {}, j(x, Q, Math.round(Bn)), j(x, ae, ""), x), g;
1302
1330
  }
1303
1331
  function vt(g) {
1304
1332
  return g === "end" ? "start" : g === "start" ? "end" : g;
1305
1333
  }
1306
1334
  var Wt = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"], bt = Wt.slice(3);
1307
1335
  function Tl(g) {
1308
- var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, x = bt.indexOf(g), B = bt.slice(x + 1).concat(bt.slice(0, x));
1309
- return k ? B.reverse() : B;
1336
+ var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, x = bt.indexOf(g), $ = bt.slice(x + 1).concat(bt.slice(0, x));
1337
+ return k ? $.reverse() : $;
1310
1338
  }
1311
1339
  var sn = { FLIP: "flip", CLOCKWISE: "clockwise", COUNTERCLOCKWISE: "counterclockwise" };
1312
1340
  function Go(g, k) {
1313
1341
  if (re(g.instance.modifiers, "inner") || g.flipped && g.placement === g.originalPlacement) return g;
1314
- var x = se(g.instance.popper, g.instance.reference, k.padding, k.boundariesElement, g.positionFixed), B = g.placement.split("-")[0], F = Be(B), z = g.placement.split("-")[1] || "", P = [];
1342
+ var x = se(g.instance.popper, g.instance.reference, k.padding, k.boundariesElement, g.positionFixed), $ = g.placement.split("-")[0], F = Be($), z = g.placement.split("-")[1] || "", P = [];
1315
1343
  switch (k.behavior) {
1316
1344
  case sn.FLIP:
1317
- P = [B, F];
1345
+ P = [$, F];
1318
1346
  break;
1319
1347
  case sn.CLOCKWISE:
1320
- P = Tl(B);
1348
+ P = Tl($);
1321
1349
  break;
1322
1350
  case sn.COUNTERCLOCKWISE:
1323
- P = Tl(B, !0);
1351
+ P = Tl($, !0);
1324
1352
  break;
1325
1353
  default:
1326
1354
  P = k.behavior;
1327
1355
  }
1328
1356
  return P.forEach(function(L, W) {
1329
- if (B !== L || P.length === W + 1) return g;
1330
- B = g.placement.split("-")[0], F = Be(B);
1331
- var ie = g.offsets.popper, oe = g.offsets.reference, Q = Math.floor, ae = B === "left" && Q(ie.right) > Q(oe.left) || B === "right" && Q(ie.left) < Q(oe.right) || B === "top" && Q(ie.bottom) > Q(oe.top) || B === "bottom" && Q(ie.top) < Q(oe.bottom), pe = Q(ie.left) < Q(x.left), me = Q(ie.right) > Q(x.right), ze = Q(ie.top) < Q(x.top), Dt = Q(ie.bottom) > Q(x.bottom), Gn = B === "left" && pe || B === "right" && me || B === "top" && ze || B === "bottom" && Dt, ct = ["top", "bottom"].indexOf(B) !== -1, Bn = !!k.flipVariations && (ct && z === "start" && pe || ct && z === "end" && me || !ct && z === "start" && ze || !ct && z === "end" && Dt), J1 = !!k.flipVariationsByContent && (ct && z === "start" && me || ct && z === "end" && pe || !ct && z === "start" && Dt || !ct && z === "end" && ze), Gc = Bn || J1;
1332
- (ae || Gn || Gc) && (g.flipped = !0, (ae || Gn) && (B = P[W + 1]), Gc && (z = vt(z)), g.placement = B + (z ? "-" + z : ""), g.offsets.popper = G({}, g.offsets.popper, Le(g.instance.popper, g.offsets.reference, g.placement)), g = gt(g.instance.modifiers, g, "flip"));
1357
+ if ($ !== L || P.length === W + 1) return g;
1358
+ $ = g.placement.split("-")[0], F = Be($);
1359
+ var ie = g.offsets.popper, oe = g.offsets.reference, Q = Math.floor, ae = $ === "left" && Q(ie.right) > Q(oe.left) || $ === "right" && Q(ie.left) < Q(oe.right) || $ === "top" && Q(ie.bottom) > Q(oe.top) || $ === "bottom" && Q(ie.top) < Q(oe.bottom), pe = Q(ie.left) < Q(x.left), me = Q(ie.right) > Q(x.right), ze = Q(ie.top) < Q(x.top), Dt = Q(ie.bottom) > Q(x.bottom), Gn = $ === "left" && pe || $ === "right" && me || $ === "top" && ze || $ === "bottom" && Dt, ct = ["top", "bottom"].indexOf($) !== -1, Bn = !!k.flipVariations && (ct && z === "start" && pe || ct && z === "end" && me || !ct && z === "start" && ze || !ct && z === "end" && Dt), J1 = !!k.flipVariationsByContent && (ct && z === "start" && me || ct && z === "end" && pe || !ct && z === "start" && Dt || !ct && z === "end" && ze), Gc = Bn || J1;
1360
+ (ae || Gn || Gc) && (g.flipped = !0, (ae || Gn) && ($ = P[W + 1]), Gc && (z = vt(z)), g.placement = $ + (z ? "-" + z : ""), g.offsets.popper = G({}, g.offsets.popper, Le(g.instance.popper, g.offsets.reference, g.placement)), g = gt(g.instance.modifiers, g, "flip"));
1333
1361
  }), g;
1334
1362
  }
1335
1363
  function Fi(g) {
1336
- var k = g.offsets, x = k.popper, B = k.reference, F = g.placement.split("-")[0], z = Math.floor, P = ["top", "bottom"].indexOf(F) !== -1, L = P ? "right" : "bottom", W = P ? "left" : "top", ie = P ? "width" : "height";
1337
- return x[L] < z(B[W]) && (g.offsets.popper[W] = z(B[W]) - x[ie]), x[W] > z(B[L]) && (g.offsets.popper[W] = z(B[L])), g;
1364
+ var k = g.offsets, x = k.popper, $ = k.reference, F = g.placement.split("-")[0], z = Math.floor, P = ["top", "bottom"].indexOf(F) !== -1, L = P ? "right" : "bottom", W = P ? "left" : "top", ie = P ? "width" : "height";
1365
+ return x[L] < z($[W]) && (g.offsets.popper[W] = z($[W]) - x[ie]), x[W] > z($[L]) && (g.offsets.popper[W] = z($[L])), g;
1338
1366
  }
1339
- function Jo(g, k, x, B) {
1367
+ function Jo(g, k, x, $) {
1340
1368
  var F = g.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), z = +F[1], P = F[2];
1341
1369
  if (!z) return g;
1342
1370
  if (P.indexOf("%") === 0) {
1343
1371
  var L = void 0;
1344
- P === "%p" ? L = x : L = B;
1372
+ P === "%p" ? L = x : L = $;
1345
1373
  var W = le(L);
1346
1374
  return W[k] / 100 * z;
1347
1375
  } else if (P === "vh" || P === "vw") {
@@ -1349,8 +1377,8 @@ function requireViewuiplus_min() {
1349
1377
  return P === "vh" ? ie = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) : ie = Math.max(document.documentElement.clientWidth, window.innerWidth || 0), ie / 100 * z;
1350
1378
  } else return z;
1351
1379
  }
1352
- function W1(g, k, x, B) {
1353
- var F = [0, 0], z = ["right", "left"].indexOf(B) !== -1, P = g.split(/(\+|\-)/).map(function(oe) {
1380
+ function W1(g, k, x, $) {
1381
+ var F = [0, 0], z = ["right", "left"].indexOf($) !== -1, P = g.split(/(\+|\-)/).map(function(oe) {
1354
1382
  return oe.trim();
1355
1383
  }), L = P.indexOf(Je(P, function(oe) {
1356
1384
  return oe.search(/,|\s/) !== -1;
@@ -1371,16 +1399,16 @@ function requireViewuiplus_min() {
1371
1399
  }), F;
1372
1400
  }
1373
1401
  function H1(g, k) {
1374
- var x = k.offset, B = g.placement, F = g.offsets, z = F.popper, P = F.reference, L = B.split("-")[0], W = void 0;
1402
+ var x = k.offset, $ = g.placement, F = g.offsets, z = F.popper, P = F.reference, L = $.split("-")[0], W = void 0;
1375
1403
  return yt(+x) ? W = [+x, 0] : W = W1(x, z, P, L), L === "left" ? (z.top += W[0], z.left -= W[1]) : L === "right" ? (z.top += W[0], z.left += W[1]) : L === "top" ? (z.left += W[0], z.top -= W[1]) : L === "bottom" && (z.left += W[0], z.top += W[1]), g.popper = z, g;
1376
1404
  }
1377
1405
  function U1(g, k) {
1378
1406
  var x = k.boundariesElement || E(g.instance.popper);
1379
1407
  g.instance.reference === x && (x = E(x));
1380
- var B = he("transform"), F = g.instance.popper.style, z = F.top, P = F.left, L = F[B];
1381
- F.top = "", F.left = "", F[B] = "";
1408
+ var $ = he("transform"), F = g.instance.popper.style, z = F.top, P = F.left, L = F[$];
1409
+ F.top = "", F.left = "", F[$] = "";
1382
1410
  var W = se(g.instance.popper, g.instance.reference, k.padding, x, g.positionFixed);
1383
- F.top = z, F.left = P, F[B] = L, k.boundaries = W;
1411
+ F.top = z, F.left = P, F[$] = L, k.boundaries = W;
1384
1412
  var ie = k.priority, oe = g.offsets.popper, Q = { primary: function(ae) {
1385
1413
  var pe = oe[ae];
1386
1414
  return oe[ae] < W[ae] && !k.escapeWithReference && (pe = Math.max(oe[ae], W[ae])), j({}, ae, pe);
@@ -1394,17 +1422,17 @@ function requireViewuiplus_min() {
1394
1422
  }), g.offsets.popper = oe, g;
1395
1423
  }
1396
1424
  function j1(g) {
1397
- var k = g.placement, x = k.split("-")[0], B = k.split("-")[1];
1398
- if (B) {
1425
+ var k = g.placement, x = k.split("-")[0], $ = k.split("-")[1];
1426
+ if ($) {
1399
1427
  var F = g.offsets, z = F.reference, P = F.popper, L = ["bottom", "top"].indexOf(x) !== -1, W = L ? "left" : "top", ie = L ? "width" : "height", oe = { start: j({}, W, z[W]), end: j({}, W, z[W] + z[ie] - P[ie]) };
1400
- g.offsets.popper = G({}, P, oe[B]);
1428
+ g.offsets.popper = G({}, P, oe[$]);
1401
1429
  }
1402
1430
  return g;
1403
1431
  }
1404
1432
  function K1(g) {
1405
1433
  if (!zi(g.instance.modifiers, "hide", "preventOverflow")) return g;
1406
- var k = g.offsets.reference, x = Je(g.instance.modifiers, function(B) {
1407
- return B.name === "preventOverflow";
1434
+ var k = g.offsets.reference, x = Je(g.instance.modifiers, function($) {
1435
+ return $.name === "preventOverflow";
1408
1436
  }).boundaries;
1409
1437
  if (k.bottom < x.top || k.left > x.right || k.top > x.bottom || k.right < x.left) {
1410
1438
  if (g.hide === !0) return g;
@@ -1416,24 +1444,24 @@ function requireViewuiplus_min() {
1416
1444
  return g;
1417
1445
  }
1418
1446
  function q1(g) {
1419
- var k = g.placement, x = k.split("-")[0], B = g.offsets, F = B.popper, z = B.reference, P = ["left", "right"].indexOf(x) !== -1, L = ["top", "left"].indexOf(x) === -1;
1447
+ var k = g.placement, x = k.split("-")[0], $ = g.offsets, F = $.popper, z = $.reference, P = ["left", "right"].indexOf(x) !== -1, L = ["top", "left"].indexOf(x) === -1;
1420
1448
  return F[P ? "left" : "top"] = z[x] - (L ? F[P ? "width" : "height"] : 0), g.placement = Be(k), g.offsets.popper = le(F), g;
1421
1449
  }
1422
1450
  var Y1 = { shift: { order: 100, enabled: !0, fn: j1 }, offset: { order: 200, enabled: !0, fn: H1, offset: 0 }, preventOverflow: { order: 300, enabled: !0, fn: U1, priority: ["left", "right", "top", "bottom"], padding: 5, boundariesElement: "scrollParent" }, keepTogether: { order: 400, enabled: !0, fn: Fi }, arrow: { order: 500, enabled: !0, fn: Ne, element: "[x-arrow]" }, flip: { order: 600, enabled: !0, fn: Go, behavior: "flip", padding: 5, boundariesElement: "viewport", flipVariations: !1, flipVariationsByContent: !1 }, inner: { order: 700, enabled: !1, fn: q1 }, hide: { order: 800, enabled: !0, fn: K1 }, computeStyle: { order: 850, enabled: !0, fn: Nl, gpuAcceleration: !0, x: "bottom", y: "right" }, applyStyle: { order: 900, enabled: !0, fn: qn, onLoad: Vl, gpuAcceleration: void 0 } }, G1 = { placement: "bottom", positionFixed: !1, eventsEnabled: !0, removeOnDestroy: !1, onCreate: function() {
1423
1451
  }, onUpdate: function() {
1424
1452
  }, modifiers: Y1 }, Il = (function() {
1425
1453
  function g(k, x) {
1426
- var B = this, F = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1454
+ var $ = this, F = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1427
1455
  te(this, g), this.scheduleUpdate = function() {
1428
- return requestAnimationFrame(B.update);
1456
+ return requestAnimationFrame($.update);
1429
1457
  }, this.update = s(this.update.bind(this)), this.options = G({}, g.Defaults, F), this.state = { isDestroyed: !1, isCreated: !1, scrollParents: [] }, this.reference = k && k.jquery ? k[0] : k, this.popper = x && x.jquery ? x[0] : x, this.options.modifiers = {}, Object.keys(G({}, g.Defaults.modifiers, F.modifiers)).forEach(function(P) {
1430
- B.options.modifiers[P] = G({}, g.Defaults.modifiers[P] || {}, F.modifiers ? F.modifiers[P] : {});
1458
+ $.options.modifiers[P] = G({}, g.Defaults.modifiers[P] || {}, F.modifiers ? F.modifiers[P] : {});
1431
1459
  }), this.modifiers = Object.keys(this.options.modifiers).map(function(P) {
1432
- return G({ name: P }, B.options.modifiers[P]);
1460
+ return G({ name: P }, $.options.modifiers[P]);
1433
1461
  }).sort(function(P, L) {
1434
1462
  return P.order - L.order;
1435
1463
  }), this.modifiers.forEach(function(P) {
1436
- P.enabled && u(P.onLoad) && P.onLoad(B.reference, B.popper, B.options, P, B.state);
1464
+ P.enabled && u(P.onLoad) && P.onLoad($.reference, $.popper, $.options, P, $.state);
1437
1465
  }), this.update();
1438
1466
  var z = this.options.eventsEnabled;
1439
1467
  z && this.enableEventListeners(), this.state.eventsEnabled = z;
@@ -1504,7 +1532,7 @@ function requireViewuiplus_min() {
1504
1532
  }
1505
1533
  var $n = S(fu, [["render", gu]]);
1506
1534
  function yu(e) {
1507
- $ && typeof window.viewuiplus < "u" && ("langs" in viewuiplus || (viewuiplus.langs = {}), viewuiplus.langs[e.i.locale] = e);
1535
+ B && typeof window.viewuiplus < "u" && ("langs" in viewuiplus || (viewuiplus.langs = {}), viewuiplus.langs[e.i.locale] = e);
1508
1536
  }
1509
1537
  const Pl = { i: { locale: "zh-CN", select: { placeholder: "请选择", noMatch: "无匹配数据", loading: "加载中" }, table: { noDataText: "暂无数据", noFilteredDataText: "暂无筛选结果", confirmFilter: "筛选", resetFilter: "重置", clearFilter: "全部", sumText: "合计" }, datepicker: { selectDate: "选择日期", selectTime: "选择时间", startTime: "开始时间", endTime: "结束时间", clear: "清空", ok: "确定", datePanelLabel: "[yyyy年] [m月]", month: "月", month1: "1 月", month2: "2 月", month3: "3 月", month4: "4 月", month5: "5 月", month6: "6 月", month7: "7 月", month8: "8 月", month9: "9 月", month10: "10 月", month11: "11 月", month12: "12 月", year: "年", weekStartDay: "0", weeks: { sun: "日", mon: "一", tue: "二", wed: "三", thu: "四", fri: "五", sat: "六" }, months: { m1: "1月", m2: "2月", m3: "3月", m4: "4月", m5: "5月", m6: "6月", m7: "7月", m8: "8月", m9: "9月", m10: "10月", m11: "11月", m12: "12月" } }, transfer: { titles: { source: "源列表", target: "目的列表" }, filterPlaceholder: "请输入搜索内容", notFoundText: "列表为空" }, modal: { okText: "确定", cancelText: "取消" }, poptip: { okText: "确定", cancelText: "取消" }, page: { prev: "上一页", next: "下一页", total: "共", item: "条", items: "条", prev5: "向前 5 页", next5: "向后 5 页", page: "条/页", goto: "跳至", p: "页" }, rate: { star: "星", stars: "星" }, time: { before: "前", after: "后", just: "刚刚", seconds: "秒", minutes: "分钟", hours: "小时", days: "天" }, tree: { emptyText: "暂无数据" }, image: { zoomIn: "放大", zoomOut: "缩小", rotateLeft: "左旋转", rotateRight: "右旋转", fail: "失败", preview: "预览" } } };
1510
1538
  yu(Pl);
@@ -1902,7 +1930,7 @@ function requireViewuiplus_min() {
1902
1930
  this.filterQueryChange = !1;
1903
1931
  }, da);
1904
1932
  }, onQueryChange(e) {
1905
- if (this.isTyping = !0, e.length > 0 && e !== this.query) if ($ && this.autoComplete) {
1933
+ if (this.isTyping = !0, e.length > 0 && e !== this.query) if (B && this.autoComplete) {
1906
1934
  let n = document.hasFocus && document.hasFocus() && document.activeElement === this.$el.querySelector("input");
1907
1935
  this.visible = n;
1908
1936
  } else this.visible = !0;
@@ -2054,14 +2082,14 @@ function requireViewuiplus_min() {
2054
2082
  `, Gu = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing"];
2055
2083
  let Ll = {}, xt;
2056
2084
  function Ju(e, n = !1) {
2057
- if (!$) return;
2085
+ if (!B) return;
2058
2086
  const i = e.getAttribute("id") || e.getAttribute("data-reactid") || e.getAttribute("name");
2059
2087
  if (n && Ll[i]) return Ll[i];
2060
2088
  const a = window.getComputedStyle(e), o = a.getPropertyValue("box-sizing") || a.getPropertyValue("-moz-box-sizing") || a.getPropertyValue("-webkit-box-sizing"), l = parseFloat(a.getPropertyValue("padding-bottom")) + parseFloat(a.getPropertyValue("padding-top")), r = parseFloat(a.getPropertyValue("border-bottom-width")) + parseFloat(a.getPropertyValue("border-top-width")), s = { sizingStyle: Gu.map((u) => `${u}:${a.getPropertyValue(u)}`).join(";"), paddingSize: l, borderSize: r, boxSizing: o };
2061
2089
  return n && i && (Ll[i] = s), s;
2062
2090
  }
2063
2091
  function Xu(e, n = null, i = null, a = !1) {
2064
- $ && !xt && (xt = document.createElement("textarea"), document.body.appendChild(xt)), e.getAttribute("wrap") ? xt.setAttribute("wrap", e.getAttribute("wrap")) : xt.removeAttribute("wrap");
2092
+ B && !xt && (xt = document.createElement("textarea"), document.body.appendChild(xt)), e.getAttribute("wrap") ? xt.setAttribute("wrap", e.getAttribute("wrap")) : xt.removeAttribute("wrap");
2065
2093
  let { paddingSize: o, borderSize: l, boxSizing: r, sizingStyle: s } = Ju(e, a);
2066
2094
  xt.setAttribute("style", `${s};${Yu}`), xt.value = e.value || e.placeholder || "";
2067
2095
  let u = Number.MIN_SAFE_INTEGER, c = Number.MAX_SAFE_INTEGER, d = xt.scrollHeight, C;
@@ -2373,9 +2401,9 @@ function requireViewuiplus_min() {
2373
2401
  }, innerClasses() {
2374
2402
  return `${_l}-inner`;
2375
2403
  } }, methods: { handleScroll() {
2376
- !$ || (this.backTop = window.pageYOffset >= this.height);
2404
+ !B || (this.backTop = window.pageYOffset >= this.height);
2377
2405
  }, back() {
2378
- if (!$) return;
2406
+ if (!B) return;
2379
2407
  const e = document.documentElement.scrollTop || document.body.scrollTop;
2380
2408
  zl(window, e, 0, this.duration), this.$emit("on-click");
2381
2409
  } } };
@@ -3744,7 +3772,7 @@ function requireViewuiplus_min() {
3744
3772
  const a = this.currentIndex;
3745
3773
  e === this.trigger && i !== n && (this.updateTrackIndex(n), this.$emit("on-change", a, this.currentIndex), this.$emit("update:modelValue", n), this.setAutoplay());
3746
3774
  }, setAutoplay() {
3747
- !$ || (window.clearInterval(this.timer), this.autoplay && (this.timer = window.setInterval(() => {
3775
+ !B || (window.clearInterval(this.timer), this.autoplay && (this.timer = window.setInterval(() => {
3748
3776
  this.add(1);
3749
3777
  }, this.autoplaySpeed)));
3750
3778
  }, updateOffset() {
@@ -3899,9 +3927,9 @@ function requireViewuiplus_min() {
3899
3927
  if (e.contains(o.target)) return !1;
3900
3928
  n.value(o);
3901
3929
  }
3902
- e.__vueClickOutside__ = a, $ && document.addEventListener("click", a);
3930
+ e.__vueClickOutside__ = a, B && document.addEventListener("click", a);
3903
3931
  }, unmounted(e, n) {
3904
- $ && document.removeEventListener("click", e.__vueClickOutside__), delete e.__vueClickOutside__;
3932
+ B && document.removeEventListener("click", e.__vueClickOutside__), delete e.__vueClickOutside__;
3905
3933
  } };
3906
3934
  const Yt = "ivu-cascader", Op = "ivu-select", Lp = { name: "Cascader", mixins: [ke, Ve, Ut], components: { iInput: at, Drop: $n, Icon: ne, Caspanel: Pp }, directives: { clickOutside: Xl }, emits: ["on-change", "on-visible-change", "update:modelValue"], provide() {
3907
3935
  return { CascaderInstance: this };
@@ -4879,11 +4907,11 @@ function requireViewuiplus_min() {
4879
4907
  }, unbindEventListeners() {
4880
4908
  N(window, "mousemove", this.handleChange), N(window, "mouseup", this.handleMouseUp), setTimeout(() => this.ColorPickerInstance.handleOnDragging(!1), 1);
4881
4909
  }, getLeft(e) {
4882
- if (!$) return;
4910
+ if (!B) return;
4883
4911
  const { container: n } = this.$refs, i = n.getBoundingClientRect().left + window.pageXOffset;
4884
4912
  return (e.pageX || ir(e, "PageX")) - i;
4885
4913
  }, getTop(e) {
4886
- if (!$) return;
4914
+ if (!B) return;
4887
4915
  const { container: n } = this.$refs, i = n.getBoundingClientRect().top + window.pageYOffset;
4888
4916
  return (e.pageY || ir(e, "PageY")) - i;
4889
4917
  } } };
@@ -5143,7 +5171,7 @@ function requireViewuiplus_min() {
5143
5171
  }, handleEnter(e) {
5144
5172
  this.type === "message" && (e.style.height = e.scrollHeight + "px");
5145
5173
  }, handleLeave(e) {
5146
- this.type === "message" && $ && document.getElementsByClassName("ivu-message-notice").length !== 1 && (e.style.height = 0, e.style.paddingTop = 0, e.style.paddingBottom = 0);
5174
+ this.type === "message" && B && document.getElementsByClassName("ivu-message-notice").length !== 1 && (e.style.height = 0, e.style.paddingTop = 0, e.style.paddingBottom = 0);
5147
5175
  } }, mounted() {
5148
5176
  if (this.handleEnter(this.$el), this.clearCloseTimer(), this.duration !== 0 && (this.closeTimer = setTimeout(() => {
5149
5177
  this.close();
@@ -5195,7 +5223,7 @@ function requireViewuiplus_min() {
5195
5223
  }
5196
5224
  var Qi = S(t0, [["render", n0]]);
5197
5225
  Qi.newInstance = (e) => {
5198
- if (!$) return;
5226
+ if (!B) return;
5199
5227
  const n = e || {};
5200
5228
  let i = null;
5201
5229
  const a = t.createApp({ render() {
@@ -5214,7 +5242,7 @@ function requireViewuiplus_min() {
5214
5242
  i.refs.notification.close(r);
5215
5243
  });
5216
5244
  }, component: l, destroy(r) {
5217
- $ && setTimeout(function() {
5245
+ B && setTimeout(function() {
5218
5246
  i.refs.notification.closeAll();
5219
5247
  const s = document.querySelectorAll(`.${r}`)[0];
5220
5248
  o && s && o.removeChild(s);
@@ -5264,7 +5292,7 @@ function requireViewuiplus_min() {
5264
5292
  } };
5265
5293
  const o0 = "复制成功", a0 = "复制失败";
5266
5294
  function tl({ text: e = "", successTip: n = o0, errorTip: i = a0, success: a, error: o, showTip: l = !0 }) {
5267
- if (!$) return;
5295
+ if (!B) return;
5268
5296
  const r = document.documentElement.getAttribute("dir") === "rtl", s = document.createElement("textarea");
5269
5297
  s.style.fontSize = "12pt", s.style.border = "0", s.style.padding = "0", s.style.margin = "0", s.style.position = "absolute", s.style[r ? "right" : "left"] = "-9999px";
5270
5298
  let u = window.pageYOffset || document.documentElement.scrollTop;
@@ -6065,7 +6093,7 @@ function requireViewuiplus_min() {
6065
6093
  this.timeDisabled || (this.$emit("on-pick-toggle-time"), this.PickerInstance.handleOnFocusInput(), this.PickerInstance.handleOnUpdatePopper());
6066
6094
  }, handleTab(e) {
6067
6095
  const n = [...this.$el.children][e.shiftKey ? "shift" : "pop"]();
6068
- $ && document.activeElement === n && (e.preventDefault(), e.stopPropagation(), this.PickerInstance.handleOnFocusInput());
6096
+ B && document.activeElement === n && (e.preventDefault(), e.stopPropagation(), this.PickerInstance.handleOnFocusInput());
6069
6097
  } } };
6070
6098
  function H0(e, n, i, a, o, l) {
6071
6099
  const r = t.resolveComponent("i-button");
@@ -6369,7 +6397,7 @@ function requireViewuiplus_min() {
6369
6397
  return t.openBlock(), t.createElementBlock("div", { class: t.normalizeClass(l.classes) }, [l.hasSlot ? (t.openBlock(), t.createElementBlock("span", { key: 0, class: t.normalizeClass(l.slotClasses) }, [t.renderSlot(e.$slots, "default")], 2)) : t.createCommentVNode("", !0)], 2);
6370
6398
  }
6371
6399
  var sl = S(fg, [["render", gg]]), go = { props: { lockScroll: { type: Boolean, default: !0 } }, methods: { checkScrollBar() {
6372
- if (!$) return;
6400
+ if (!B) return;
6373
6401
  let e = window.innerWidth;
6374
6402
  if (!e) {
6375
6403
  const n = document.documentElement.getBoundingClientRect();
@@ -6377,16 +6405,16 @@ function requireViewuiplus_min() {
6377
6405
  }
6378
6406
  this.bodyIsOverflowing = document.body.clientWidth < e, this.bodyIsOverflowing && (this.scrollBarWidth = ue());
6379
6407
  }, checkMaskInVisible() {
6380
- let e = $ ? document.getElementsByClassName("ivu-modal-mask") || [] : [];
6408
+ let e = B ? document.getElementsByClassName("ivu-modal-mask") || [] : [];
6381
6409
  return Array.from(e).every((n) => n.style.display === "none" || n.classList.contains("fade-leave-to"));
6382
6410
  }, setScrollBar() {
6383
- $ && this.bodyIsOverflowing && this.scrollBarWidth !== void 0 && (document.body.style.paddingRight = `${this.scrollBarWidth}px`);
6411
+ B && this.bodyIsOverflowing && this.scrollBarWidth !== void 0 && (document.body.style.paddingRight = `${this.scrollBarWidth}px`);
6384
6412
  }, resetScrollBar() {
6385
- $ && (document.body.style.paddingRight = "");
6413
+ B && (document.body.style.paddingRight = "");
6386
6414
  }, addScrollEffect() {
6387
- !this.lockScroll || (this.checkScrollBar(), this.setScrollBar(), $ && (document.body.style.overflow = "hidden"));
6415
+ !this.lockScroll || (this.checkScrollBar(), this.setScrollBar(), B && (document.body.style.overflow = "hidden"));
6388
6416
  }, removeScrollEffect() {
6389
- !this.lockScroll || $ && this.checkMaskInVisible() && (document.body.style.overflow = "", this.resetScrollBar());
6417
+ !this.lockScroll || B && this.checkMaskInVisible() && (document.body.style.overflow = "", this.resetScrollBar());
6390
6418
  } } };
6391
6419
  const Ke = "ivu-drawer", yg = { name: "Drawer", mixins: [go], components: { Icon: ne }, emits: ["on-close", "on-resize-width", "on-visible-change", "update:modelValue", "on-drag"], provide() {
6392
6420
  return { DrawerInstance: this };
@@ -7484,9 +7512,9 @@ function requireViewuiplus_min() {
7484
7512
  }), handleMouseup() {
7485
7513
  this.transition = !0, N(document, "mousemove", this.handleMousemove), N(document, "mouseup", this.handleMouseup);
7486
7514
  }, getBodyOverflow() {
7487
- return $ ? document.body.style.overflow : "";
7515
+ return B ? document.body.style.overflow : "";
7488
7516
  }, setBodyOverflow(e) {
7489
- !$ || (document.body.style.overflow = e);
7517
+ !B || (document.body.style.overflow = e);
7490
7518
  }, handleImageLoad() {
7491
7519
  this.status = "loaded";
7492
7520
  }, handleImageError() {
@@ -7537,7 +7565,7 @@ function requireViewuiplus_min() {
7537
7565
  }, loadingType() {
7538
7566
  return this.lazy ? "lazy" : "eager";
7539
7567
  } }, mounted() {
7540
- $ && this.handleImageEvent();
7568
+ B && this.handleImageEvent();
7541
7569
  }, methods: { handleLazy() {
7542
7570
  const e = this.$refs.image;
7543
7571
  (this.observer = new IntersectionObserver(this.handlerObserveImage, { root: this.scrollElement, rootMargin: "0px", threshold: 0 })).observe(e);
@@ -7574,7 +7602,7 @@ function requireViewuiplus_min() {
7574
7602
  }
7575
7603
  var hs = S(nC, [["render", rC]]);
7576
7604
  Qt.newInstance = (e) => {
7577
- if (!$) return;
7605
+ if (!B) return;
7578
7606
  const n = e || {};
7579
7607
  let i = null;
7580
7608
  const a = t.createApp({ data() {
@@ -7893,7 +7921,7 @@ function requireViewuiplus_min() {
7893
7921
  }
7894
7922
  let bs = vs();
7895
7923
  it.newInstance = (e) => {
7896
- if (!$) return;
7924
+ if (!B) return;
7897
7925
  const n = e || {};
7898
7926
  let i = null;
7899
7927
  const a = t.createApp({ data() {
@@ -7991,7 +8019,7 @@ function requireViewuiplus_min() {
7991
8019
  }
7992
8020
  var So = S(MC, [["render", PC]]);
7993
8021
  So.newInstance = (e) => {
7994
- if (!$) return;
8022
+ if (!B) return;
7995
8023
  const n = e || {};
7996
8024
  let i = null;
7997
8025
  const a = t.createApp({ data() {
@@ -8277,7 +8305,7 @@ function requireViewuiplus_min() {
8277
8305
  }, handleMoveMove(e) {
8278
8306
  if (!this.dragData.dragging || this.fullscreen) return !1;
8279
8307
  const n = { x: e.clientX, y: e.clientY }, i = { x: n.x - this.dragData.dragX, y: n.y - this.dragData.dragY };
8280
- if ($ && this.sticky) {
8308
+ if (B && this.sticky) {
8281
8309
  const a = document.documentElement.clientWidth, o = document.documentElement.clientHeight;
8282
8310
  this.dragData.x + i.x <= this.stickyDistance && i.x < 0 ? this.dragData.x = 0 : this.dragData.x + this.dragData.rect.width - a > -this.stickyDistance && i.x > 0 ? this.dragData.x = a - this.dragData.rect.width : this.dragData.x += i.x, this.dragData.y + i.y <= this.stickyDistance && i.y < 0 ? this.dragData.y = 0 : this.dragData.y + this.dragData.rect.height - o > -this.stickyDistance && i.y > 0 ? this.dragData.y = o - this.dragData.rect.height : this.dragData.y += i.y;
8283
8311
  } else this.dragData.x += i.x, this.dragData.y += i.y;
@@ -8321,9 +8349,9 @@ function requireViewuiplus_min() {
8321
8349
  } }, mounted() {
8322
8350
  this.visible && (this.wrapShow = !0);
8323
8351
  let e = !0;
8324
- this.$slots.header === void 0 && !this.title && (e = !1), this.showHead = e, this.addModal(), $ && document.addEventListener("keydown", this.EscClose);
8352
+ this.$slots.header === void 0 && !this.title && (e = !1), this.showHead = e, this.addModal(), B && document.addEventListener("keydown", this.EscClose);
8325
8353
  }, beforeUnmount() {
8326
- this.removeModal(), $ && document.removeEventListener("keydown", this.EscClose), this.removeScrollEffect();
8354
+ this.removeModal(), B && document.removeEventListener("keydown", this.EscClose), this.removeScrollEffect();
8327
8355
  } };
8328
8356
  function GC(e, n, i, a, o, l) {
8329
8357
  const r = t.resolveComponent("Icon"), s = t.resolveComponent("i-button");
@@ -8332,7 +8360,7 @@ function requireViewuiplus_min() {
8332
8360
  var st = S(YC, [["render", GC]]);
8333
8361
  const Lt = "ivu-modal-confirm";
8334
8362
  st.newInstance = (e) => {
8335
- if (!$) return;
8363
+ if (!B) return;
8336
8364
  const n = e || {}, i = document.createElement("div");
8337
8365
  document.body.appendChild(i);
8338
8366
  let a = null;
@@ -8481,7 +8509,7 @@ function requireViewuiplus_min() {
8481
8509
  e.focus();
8482
8510
  } catch {
8483
8511
  }
8484
- if ($ && document.activeElement == e && e !== n) return !0;
8512
+ if (B && document.activeElement == e && e !== n) return !0;
8485
8513
  const i = e.children;
8486
8514
  for (let a of i) if (Us(a, n)) return !0;
8487
8515
  return !1;
@@ -8630,7 +8658,7 @@ function requireViewuiplus_min() {
8630
8658
  }, handleResize() {
8631
8659
  this.updateNavScroll();
8632
8660
  }, isInsideHiddenElement() {
8633
- if (!$) return;
8661
+ if (!B) return;
8634
8662
  let e = this.$el.parentNode;
8635
8663
  for (; e && e !== document.body; ) {
8636
8664
  if (e.style && e.style.display === "none") return e;
@@ -8764,7 +8792,7 @@ function requireViewuiplus_min() {
8764
8792
  } }, watch: { time() {
8765
8793
  this.setTime();
8766
8794
  } }, methods: { handleClick() {
8767
- $ && this.hash !== "" && (window.location.hash = this.hash);
8795
+ B && this.hash !== "" && (window.location.hash = this.hash);
8768
8796
  }, setTime() {
8769
8797
  const e = typeof this.time;
8770
8798
  let n;
@@ -9669,14 +9697,14 @@ function requireViewuiplus_min() {
9669
9697
  var sc = S(ik, [["render", lk]]);
9670
9698
  const ok = "COMPLETE", cc = "CANCELED";
9671
9699
  function ak(e) {
9672
- if ($ && "requestAnimationFrame" in window) return window.requestAnimationFrame(e);
9700
+ if (B && "requestAnimationFrame" in window) return window.requestAnimationFrame(e);
9673
9701
  setTimeout(e, 16);
9674
9702
  }
9675
9703
  function uc(e, n, i) {
9676
9704
  e === window ? e.scrollTo(n, i) : (e.scrollLeft = n, e.scrollTop = i);
9677
9705
  }
9678
9706
  function rk(e, n, i) {
9679
- if (!$) return;
9707
+ if (!B) return;
9680
9708
  let a = e.getBoundingClientRect(), o = null, l = null, r = null, s = null, u = null, c = null, d = null, C = i && i.left != null ? i.left : 0.5, w = i && i.top != null ? i.top : 0.5, b = i && i.leftOffset != null ? i.leftOffset : 0, v = i && i.topOffset != null ? i.topOffset : 0, y = C, E = w;
9681
9709
  if (n === window) c = Math.min(a.width, window.innerWidth), d = Math.min(a.height, window.innerHeight), l = a.left + window.pageXOffset - window.innerWidth * y + c * y, r = a.top + window.pageYOffset - window.innerHeight * E + d * E, l -= b, r -= v, s = l - window.pageXOffset, u = r - window.pageYOffset;
9682
9710
  else {
@@ -9705,7 +9733,7 @@ function requireViewuiplus_min() {
9705
9733
  n.scrollOption = { startTime: l ? l.startTime : Date.now(), target: e, time: i.time + (l ? r - l.startTime : 0), ease: i.ease, align: i.align, end: u }, s = u.bind(null, cc), n.addEventListener("touchstart", s), o && dc(n);
9706
9734
  }
9707
9735
  function hc(e) {
9708
- if ($) return e === window || (e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth) && getComputedStyle(e).overflow !== "hidden";
9736
+ if (B) return e === window || (e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth) && getComputedStyle(e).overflow !== "hidden";
9709
9737
  }
9710
9738
  function ck() {
9711
9739
  return !0;
@@ -9726,7 +9754,7 @@ function requireViewuiplus_min() {
9726
9754
  }
9727
9755
  }
9728
9756
  function uk(e) {
9729
- if ($ && "requestAnimationFrame" in window) return window.requestAnimationFrame(e);
9757
+ if (B && "requestAnimationFrame" in window) return window.requestAnimationFrame(e);
9730
9758
  setTimeout(e, 16);
9731
9759
  }
9732
9760
  function Oo(e, n, i) {
@@ -9771,7 +9799,7 @@ function requireViewuiplus_min() {
9771
9799
  let e = this.collapsible ? !this.modelValue : !1;
9772
9800
  this.$emit("update:modelValue", e);
9773
9801
  }, matchMedia() {
9774
- if (!$) return;
9802
+ if (!B) return;
9775
9803
  let e;
9776
9804
  window.matchMedia && (e = window.matchMedia);
9777
9805
  let n = this.mediaMatched;
@@ -10346,7 +10374,7 @@ function requireViewuiplus_min() {
10346
10374
  return this.columns.filter((a) => a.__id === i)[0];
10347
10375
  } else return this.headRows[e][n];
10348
10376
  }, handleMouseDown(e, n) {
10349
- if (!this.$isServer && $ && this.draggingColumn) {
10377
+ if (!this.$isServer && B && this.draggingColumn) {
10350
10378
  this.dragging = !0;
10351
10379
  const i = this.$parent, a = i.$el.getBoundingClientRect().left, o = this.$el.querySelector(`th.ivu-table-column-${e.__id}`).getBoundingClientRect(), l = o.left - a + 30;
10352
10380
  i.showResizeLine = !0, this.dragState = { startMouseLeft: n.clientX, startLeft: o.right - a, startColumnLeft: o.left - a, tableLeft: a };
@@ -10362,23 +10390,23 @@ function requireViewuiplus_min() {
10362
10390
  }, u = () => {
10363
10391
  if (this.dragging) {
10364
10392
  const { startColumnLeft: c, startLeft: d } = this.dragState, C = parseInt(r.style.left, 10) - c, w = i.allColumns.find((b) => b.__id === e.__id);
10365
- w && (w.width = C, e.width = C, i.handleResize()), i.$emit("on-column-width-resize", w.width, d - c, e, n), $ && (document.body.style.cursor = ""), this.dragging = !1, this.draggingColumn = null, this.dragState = {}, i.showResizeLine = !1;
10393
+ w && (w.width = C, e.width = C, i.handleResize()), i.$emit("on-column-width-resize", w.width, d - c, e, n), B && (document.body.style.cursor = ""), this.dragging = !1, this.draggingColumn = null, this.dragState = {}, i.showResizeLine = !1;
10366
10394
  }
10367
- !$ || (document.removeEventListener("mousemove", s), document.removeEventListener("mouseup", u), document.onselectstart = null, document.ondragstart = null);
10395
+ !B || (document.removeEventListener("mousemove", s), document.removeEventListener("mouseup", u), document.onselectstart = null, document.ondragstart = null);
10368
10396
  };
10369
- if (!$) return;
10397
+ if (!B) return;
10370
10398
  document.addEventListener("mousemove", s), document.addEventListener("mouseup", u);
10371
10399
  }
10372
10400
  }, handleMouseMove(e, n) {
10373
10401
  let i = n.target;
10374
10402
  for (; i && i.tagName !== "TH"; ) i = i.parentNode;
10375
- if (!(!e || !e.resizable) && $ && !this.dragging) {
10403
+ if (!(!e || !e.resizable) && B && !this.dragging) {
10376
10404
  let a = i.getBoundingClientRect();
10377
10405
  const o = document.body.style;
10378
10406
  a.width > 12 && a.right - n.pageX < 8 ? (o.cursor = "col-resize", this.draggingColumn = e) : this.dragging || (o.cursor = "", this.draggingColumn = null);
10379
10407
  }
10380
10408
  }, handleMouseOut() {
10381
- this.$isServer || $ && (document.body.style.cursor = "");
10409
+ this.$isServer || B && (document.body.style.cursor = "");
10382
10410
  }, isChildrenSelected(e, n) {
10383
10411
  let i = n;
10384
10412
  return e.children && e.children.length && e.children.forEach((a) => {
@@ -10456,7 +10484,7 @@ function requireViewuiplus_min() {
10456
10484
  this.$parent.$parent.$parent.toggleExpand(this.index);
10457
10485
  }, handleClick() {
10458
10486
  }, handleTooltipIn() {
10459
- if (!$) return;
10487
+ if (!B) return;
10460
10488
  const e = this.$refs.content;
10461
10489
  let n = document.createRange();
10462
10490
  n.setStart(e, 0), n.setEnd(e, e.childNodes.length);
@@ -10636,12 +10664,12 @@ function requireViewuiplus_min() {
10636
10664
  }, _isEdge() {
10637
10665
  return /Edge/.test(navigator.userAgent);
10638
10666
  }, _getDownloadUrl(e) {
10639
- if ($ && window.Blob && window.URL && window.URL.createObjectURL) {
10667
+ if (B && window.Blob && window.URL && window.URL.createObjectURL) {
10640
10668
  const i = new Blob(["\uFEFF" + e], { type: "text/csv" });
10641
10669
  return URL.createObjectURL(i);
10642
10670
  } else return "data:attachment/csv;charset=utf-8,\uFEFF" + encodeURIComponent(e);
10643
10671
  }, download(e, n) {
10644
- if ($) if (Ko() && Ko() < 10) {
10672
+ if (B) if (Ko() && Ko() < 10) {
10645
10673
  const i = window.top.open("about:blank", "_blank");
10646
10674
  i.document.charset = "utf-8", i.document.write(n), i.document.close(), i.document.execCommand("SaveAs", e), i.close();
10647
10675
  } else if (Ko() === 10 || this._isIE11() || this._isEdge()) {
@@ -11890,7 +11918,7 @@ function requireViewuiplus_min() {
11890
11918
  const n = window["viewuiplus/locale"].default;
11891
11919
  e === n.i.locale ? Xn.use(n) : console.log(`The ${e} language pack is not loaded.`);
11892
11920
  }, R1 = { version: jc, locale: Kc, i18n: qc, install: Yo, lang: Yc, ...Wc };
11893
- p.Affix = He, p.Alert = Zo, p.Anchor = Qo, p.AnchorLink = ea, p.Auth = ta, p.AutoComplete = ha, p.Avatar = ei, p.AvatarList = fa, p.BackTop = ga, p.Badge = Wi, p.Breadcrumb = Al, p.BreadcrumbItem = Rl, p.Button = Ue, p.ButtonGroup = Wl, p.Calendar = Ba, p.Captcha = za, p.Card = Ma, p.Carousel = Pa, p.CarouselItem = Oa, p.Cascader = La, p.Cell = _a, p.CellGroup = Aa, p.Checkbox = zn, p.CheckboxGroup = Zl, p.Circle = Gi, p.City = Ua, p.Col = Et, p.Collapse = Ka, p.ColorPicker = lr, p.Content = to, p.Copy = tl, p.CountDown = dr, p.CountUp = hr, p.DatePicker = Wr, p.Description = Hr, p.DescriptionList = Ur, p.Divider = sl, p.Drawer = jr, p.Dropdown = vn, p.DropdownItem = Kr, p.DropdownMenu = bn, p.Ellipsis = qr, p.Email = Yr, p.Exception = Gr, p.Footer = yo, p.FooterToolbar = Jr, p.Form = hl, p.FormItem = Yi, p.GlobalFooter = Xr, p.Grid = us, p.GridItem = ds, p.Header = wo, p.Icon = ne, p.Image = hs, p.ImagePreview = Qt, p.Input = at, p.InputNumber = xo, p.Layout = ms, p.Link = Cs, p.List = ws, p.ListItem = xs, p.ListItemMeta = Ss, p.LoadingBar = Eo, p.Login = Ts, p.Menu = $o, p.MenuGroup = Is, p.MenuItem = zs, p.Message = mi, p.Mobile = Fs, p.Modal = st, p.Notice = Do, p.Notification = js, p.NotificationItem = Ys, p.NotificationTab = Gs, p.NumberInfo = Js, p.Numeral = Zs, p.Option = Vn, p.OptionGroup = Qs, p.Page = ec, p.PageHeader = tc, p.Panel = nc, p.Paragraph = ic, p.Password = lc, p.Poptip = Fo, p.Progress = El, p.Radio = ji, p.RadioGroup = Ui, p.Rate = oc, p.Result = ac, p.Row = Kt, p.Scroll = sc, p.ScrollIntoView = Po, p.ScrollTop = Oo, p.Select = fn, p.Sider = pc, p.Skeleton = mc, p.SkeletonItem = Lo, p.Slider = fc, p.Space = gc, p.Spin = it, p.Split = yc, p.Step = vc, p.Steps = bc, p.Submenu = kc, p.Submit = wc, p.Switch = Ao, p.TabPane = Sl, p.Table = $l, p.TablePaste = Sc, p.Tabs = wl, p.Tag = Fn, p.TagSelect = Ec, p.TagSelectOption = Bc, p.Text = $c, p.Time = xl, p.TimePicker = Tc, p.Timeline = Dc, p.TimelineItem = Nc, p.Title = Ic, p.Tooltip = zt, p.Transfer = Mc, p.Tree = qo, p.TreeSelect = Pc, p.Trend = To, p.Typography = Oc, p.Upload = _c, p.UserName = Ac, p.WordCount = Rc, p.default = R1, p.i18n = qc, p.install = Yo, p.lang = Yc, p.locale = Kc, p.version = jc, Object.defineProperties(p, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } });
11921
+ m.Affix = He, m.Alert = Zo, m.Anchor = Qo, m.AnchorLink = ea, m.Auth = ta, m.AutoComplete = ha, m.Avatar = ei, m.AvatarList = fa, m.BackTop = ga, m.Badge = Wi, m.Breadcrumb = Al, m.BreadcrumbItem = Rl, m.Button = Ue, m.ButtonGroup = Wl, m.Calendar = Ba, m.Captcha = za, m.Card = Ma, m.Carousel = Pa, m.CarouselItem = Oa, m.Cascader = La, m.Cell = _a, m.CellGroup = Aa, m.Checkbox = zn, m.CheckboxGroup = Zl, m.Circle = Gi, m.City = Ua, m.Col = Et, m.Collapse = Ka, m.ColorPicker = lr, m.Content = to, m.Copy = tl, m.CountDown = dr, m.CountUp = hr, m.DatePicker = Wr, m.Description = Hr, m.DescriptionList = Ur, m.Divider = sl, m.Drawer = jr, m.Dropdown = vn, m.DropdownItem = Kr, m.DropdownMenu = bn, m.Ellipsis = qr, m.Email = Yr, m.Exception = Gr, m.Footer = yo, m.FooterToolbar = Jr, m.Form = hl, m.FormItem = Yi, m.GlobalFooter = Xr, m.Grid = us, m.GridItem = ds, m.Header = wo, m.Icon = ne, m.Image = hs, m.ImagePreview = Qt, m.Input = at, m.InputNumber = xo, m.Layout = ms, m.Link = Cs, m.List = ws, m.ListItem = xs, m.ListItemMeta = Ss, m.LoadingBar = Eo, m.Login = Ts, m.Menu = $o, m.MenuGroup = Is, m.MenuItem = zs, m.Message = mi, m.Mobile = Fs, m.Modal = st, m.Notice = Do, m.Notification = js, m.NotificationItem = Ys, m.NotificationTab = Gs, m.NumberInfo = Js, m.Numeral = Zs, m.Option = Vn, m.OptionGroup = Qs, m.Page = ec, m.PageHeader = tc, m.Panel = nc, m.Paragraph = ic, m.Password = lc, m.Poptip = Fo, m.Progress = El, m.Radio = ji, m.RadioGroup = Ui, m.Rate = oc, m.Result = ac, m.Row = Kt, m.Scroll = sc, m.ScrollIntoView = Po, m.ScrollTop = Oo, m.Select = fn, m.Sider = pc, m.Skeleton = mc, m.SkeletonItem = Lo, m.Slider = fc, m.Space = gc, m.Spin = it, m.Split = yc, m.Step = vc, m.Steps = bc, m.Submenu = kc, m.Submit = wc, m.Switch = Ao, m.TabPane = Sl, m.Table = $l, m.TablePaste = Sc, m.Tabs = wl, m.Tag = Fn, m.TagSelect = Ec, m.TagSelectOption = Bc, m.Text = $c, m.Time = xl, m.TimePicker = Tc, m.Timeline = Dc, m.TimelineItem = Nc, m.Title = Ic, m.Tooltip = zt, m.Transfer = Mc, m.Tree = qo, m.TreeSelect = Pc, m.Trend = To, m.Typography = Oc, m.Upload = _c, m.UserName = Ac, m.WordCount = Rc, m.default = R1, m.i18n = qc, m.install = Yo, m.lang = Yc, m.locale = Kc, m.version = jc, Object.defineProperties(m, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } });
11894
11922
  });
11895
11923
  })(viewuiplus_min$1, viewuiplus_min$1.exports)), viewuiplus_min$1.exports;
11896
11924
  }
@@ -11909,41 +11937,41 @@ const _sfc_main$8 = {
11909
11937
  return { _v: this.value };
11910
11938
  },
11911
11939
  watch: {
11912
- value(m) {
11913
- this._v = m;
11940
+ value(p) {
11941
+ this._v = p;
11914
11942
  }
11915
11943
  },
11916
11944
  methods: {
11917
11945
  downloadFile() {
11918
11946
  downloadFile(this._v);
11919
11947
  },
11920
- showFile(m) {
11921
- console.log(m);
11948
+ showFile(p) {
11949
+ console.log(p);
11922
11950
  },
11923
- onSuccess(m, f) {
11924
- console.log(m);
11925
- let p = f.size;
11926
- p = p / 1024;
11927
- const t = p.toFixed(2);
11928
- this.$Message.success(`上传成功:${f.name},大小:${t}kb`), m.status && (this._v = m.data.url);
11951
+ onSuccess(p, f) {
11952
+ console.log(p);
11953
+ let m = f.size;
11954
+ m = m / 1024;
11955
+ const t = m.toFixed(2);
11956
+ this.$Message.success(`上传成功:${f.name},大小:${t}kb`), p.status && (this._v = p.data.url);
11929
11957
  },
11930
11958
  fireData() {
11931
11959
  this._v && this.$emit("update:modelValue", this._v);
11932
11960
  }
11933
11961
  }
11934
11962
  };
11935
- function downloadFile(m) {
11936
- if (!window.open(m, "_blank"))
11963
+ function downloadFile(p) {
11964
+ if (!window.open(p, "_blank"))
11937
11965
  throw console.warn("Pop-up window was blocked. Please allow pop-ups for this site."), new Error("Download failed: Pop-up window was blocked by the browser.");
11938
11966
  }
11939
- function _sfc_render$7(m, f, p, t, $, O) {
11967
+ function _sfc_render$7(p, f, m, t, B, O) {
11940
11968
  const N = resolveComponent("Button"), S = resolveComponent("Upload"), ye = resolveComponent("Space"), Ee = resolveComponent("Input");
11941
11969
  return openBlock(), createElementBlock("span", null, [
11942
11970
  createVNode(Ee, {
11943
11971
  readonly: "",
11944
11972
  placeholder: "请上传文件",
11945
- modelValue: $._v,
11946
- "onUpdate:modelValue": f[1] || (f[1] = (_e) => $._v = _e),
11973
+ modelValue: B._v,
11974
+ "onUpdate:modelValue": f[1] || (f[1] = (_e) => B._v = _e),
11947
11975
  "on-change": O.fireData()
11948
11976
  }, {
11949
11977
  append: withCtx(() => [
@@ -11953,7 +11981,7 @@ function _sfc_render$7(m, f, p, t, $, O) {
11953
11981
  }, {
11954
11982
  default: withCtx(() => [
11955
11983
  createVNode(S, {
11956
- action: p.uploadUrl,
11984
+ action: m.uploadUrl,
11957
11985
  "before-upload": O.showFile,
11958
11986
  "show-upload-list": !1,
11959
11987
  "on-success": O.onSuccess
@@ -12012,9 +12040,9 @@ const _sfc_main$7 = {
12012
12040
  * 打开数据字典选择器
12013
12041
  * @param fieldName 字段名
12014
12042
  */
12015
- showDataDict(m) {
12016
- const { dataDictId: f, dataDictIdField: p } = this.item?.ext_attribs;
12017
- console.log(f), console.log(this.data), console.log(m);
12043
+ showDataDict(p) {
12044
+ const { dataDictId: f, dataDictIdField: m } = this.item?.ext_attribs;
12045
+ console.log(f), console.log(this.data), console.log(p);
12018
12046
  },
12019
12047
  /**
12020
12048
  * 子组件触发父组件的事件,保存值。该函数可通用
@@ -12022,85 +12050,85 @@ const _sfc_main$7 = {
12022
12050
  * @param e
12023
12051
  * @param name
12024
12052
  */
12025
- handleModelUpdate(m, f) {
12026
- this.data[f] = m;
12053
+ handleModelUpdate(p, f) {
12054
+ this.data[f] = p;
12027
12055
  }
12028
12056
  }
12029
12057
  }, _hoisted_1$3 = { key: 0 }, _hoisted_2$3 = ["innerHTML"], _hoisted_3$2 = { key: 1 }, _hoisted_4$1 = { key: 1 }, _hoisted_5$1 = { key: 7 }, _hoisted_6$1 = { key: 12 }, _hoisted_7$1 = { key: 14 }, _hoisted_8 = ["src"];
12030
- function _sfc_render$6(m, f, p, t, $, O) {
12058
+ function _sfc_render$6(p, f, m, t, B, O) {
12031
12059
  const N = resolveComponent("Input"), S = resolveComponent("DatePicker"), ye = resolveComponent("Slider"), Ee = resolveComponent("i-Switch"), _e = resolveComponent("Tooltip"), Nt = resolveComponent("Option"), cn = resolveComponent("Select"), He = resolveComponent("Radio"), Ce = resolveComponent("RadioGroup"), kt = resolveComponent("Button"), un = resolveComponent("Checkbox"), ne = resolveComponent("CheckboxGroup"), D = resolveComponent("FileUpload"), dn = resolveComponent("FormItem");
12032
12060
  return openBlock(), createBlock(dn, {
12033
- label: p.item.label
12061
+ label: m.item.label
12034
12062
  }, {
12035
12063
  default: withCtx(() => [
12036
- p.status === 0 ? (openBlock(), createElementBlock("span", _hoisted_1$3, [
12037
- p.item.uiType == 8 ? (openBlock(), createElementBlock("span", {
12064
+ m.status === 0 ? (openBlock(), createElementBlock("span", _hoisted_1$3, [
12065
+ m.item.uiType == 8 ? (openBlock(), createElementBlock("span", {
12038
12066
  key: 0,
12039
- innerHTML: p.data[p.item.name],
12067
+ innerHTML: m.data[m.item.name],
12040
12068
  class: "html-content"
12041
- }, null, 8, _hoisted_2$3)) : (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(p.data[p.item.name]), 1))
12069
+ }, null, 8, _hoisted_2$3)) : (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(m.data[m.item.name]), 1))
12042
12070
  ])) : createCommentVNode("", !0),
12043
- p.status !== 0 ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
12044
- p.item.uiType == 1 ? (openBlock(), createBlock(N, {
12071
+ m.status !== 0 ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
12072
+ m.item.uiType == 1 ? (openBlock(), createBlock(N, {
12045
12073
  key: 0,
12046
12074
  type: "text",
12047
- modelValue: p.data[p.item.name],
12048
- "onUpdate:modelValue": f[0] || (f[0] = (ue) => p.data[p.item.name] = ue),
12049
- placeholder: p.item.comment,
12050
- readonly: p.item.ext_attribs && p.item.ext_attribs.isReadonly
12075
+ modelValue: m.data[m.item.name],
12076
+ "onUpdate:modelValue": f[0] || (f[0] = (ue) => m.data[m.item.name] = ue),
12077
+ placeholder: m.item.comment,
12078
+ readonly: m.item.ext_attribs && m.item.ext_attribs.isReadonly
12051
12079
  }, null, 8, ["modelValue", "placeholder", "readonly"])) : createCommentVNode("", !0),
12052
- p.item.uiType == 6 ? (openBlock(), createBlock(N, {
12080
+ m.item.uiType == 6 ? (openBlock(), createBlock(N, {
12053
12081
  key: 1,
12054
12082
  type: "textarea",
12055
- modelValue: p.data[p.item.name],
12056
- "onUpdate:modelValue": f[1] || (f[1] = (ue) => p.data[p.item.name] = ue),
12057
- placeholder: p.item.comment
12083
+ modelValue: m.data[m.item.name],
12084
+ "onUpdate:modelValue": f[1] || (f[1] = (ue) => m.data[m.item.name] = ue),
12085
+ placeholder: m.item.comment
12058
12086
  }, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", !0),
12059
- p.item.uiType == 11 ? (openBlock(), createBlock(N, {
12087
+ m.item.uiType == 11 ? (openBlock(), createBlock(N, {
12060
12088
  key: 2,
12061
12089
  type: "number",
12062
- modelValue: p.data[p.item.name],
12063
- "onUpdate:modelValue": f[2] || (f[2] = (ue) => p.data[p.item.name] = ue),
12064
- placeholder: p.item.comment
12090
+ modelValue: m.data[m.item.name],
12091
+ "onUpdate:modelValue": f[2] || (f[2] = (ue) => m.data[m.item.name] = ue),
12092
+ placeholder: m.item.comment
12065
12093
  }, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", !0),
12066
- p.item.uiType == 18 ? (openBlock(), createBlock(N, {
12094
+ m.item.uiType == 18 ? (openBlock(), createBlock(N, {
12067
12095
  key: 3,
12068
12096
  type: "password",
12069
- modelValue: p.data[p.item.name],
12070
- "onUpdate:modelValue": f[3] || (f[3] = (ue) => p.data[p.item.name] = ue),
12071
- placeholder: p.item.comment
12097
+ modelValue: m.data[m.item.name],
12098
+ "onUpdate:modelValue": f[3] || (f[3] = (ue) => m.data[m.item.name] = ue),
12099
+ placeholder: m.item.comment
12072
12100
  }, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", !0),
12073
- p.item.uiType == 12 ? (openBlock(), createBlock(N, {
12101
+ m.item.uiType == 12 ? (openBlock(), createBlock(N, {
12074
12102
  key: 4,
12075
12103
  type: "email",
12076
- modelValue: p.data[p.item.name],
12077
- "onUpdate:modelValue": f[4] || (f[4] = (ue) => p.data[p.item.name] = ue),
12078
- placeholder: p.item.comment
12104
+ modelValue: m.data[m.item.name],
12105
+ "onUpdate:modelValue": f[4] || (f[4] = (ue) => m.data[m.item.name] = ue),
12106
+ placeholder: m.item.comment
12079
12107
  }, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", !0),
12080
- p.item.uiType == 5 ? (openBlock(), createBlock(S, {
12108
+ m.item.uiType == 5 ? (openBlock(), createBlock(S, {
12081
12109
  key: 5,
12082
12110
  type: "date",
12083
- modelValue: p.data[p.item.name],
12084
- "onUpdate:modelValue": f[5] || (f[5] = (ue) => p.data[p.item.name] = ue),
12111
+ modelValue: m.data[m.item.name],
12112
+ "onUpdate:modelValue": f[5] || (f[5] = (ue) => m.data[m.item.name] = ue),
12085
12113
  placeholder: "选择日期",
12086
12114
  style: { width: "200px" }
12087
12115
  }, null, 8, ["modelValue"])) : createCommentVNode("", !0),
12088
- p.item.uiType == 10 ? (openBlock(), createBlock(ye, {
12116
+ m.item.uiType == 10 ? (openBlock(), createBlock(ye, {
12089
12117
  key: 6,
12090
- modelValue: m.value2,
12091
- "onUpdate:modelValue": f[6] || (f[6] = (ue) => m.value2 = ue),
12118
+ modelValue: p.value2,
12119
+ "onUpdate:modelValue": f[6] || (f[6] = (ue) => p.value2 = ue),
12092
12120
  range: ""
12093
12121
  }, null, 8, ["modelValue"])) : createCommentVNode("", !0),
12094
- p.item.uiType == 7 ? (openBlock(), createElementBlock("span", _hoisted_5$1, [
12122
+ m.item.uiType == 7 ? (openBlock(), createElementBlock("span", _hoisted_5$1, [
12095
12123
  createVNode(Ee, {
12096
- modelValue: p.data[p.item.name],
12097
- "onUpdate:modelValue": f[7] || (f[7] = (ue) => p.data[p.item.name] = ue),
12124
+ modelValue: m.data[m.item.name],
12125
+ "onUpdate:modelValue": f[7] || (f[7] = (ue) => m.data[m.item.name] = ue),
12098
12126
  size: "middle"
12099
12127
  }, null, 8, ["modelValue"]),
12100
12128
  f[17] || (f[17] = createTextVNode("   ", -1)),
12101
- p.item.comment ? (openBlock(), createBlock(_e, {
12129
+ m.item.comment ? (openBlock(), createBlock(_e, {
12102
12130
  key: 0,
12103
- content: p.item.comment,
12131
+ content: m.item.comment,
12104
12132
  placement: "right"
12105
12133
  }, {
12106
12134
  default: withCtx(() => [...f[16] || (f[16] = [
@@ -12109,13 +12137,13 @@ function _sfc_render$6(m, f, p, t, $, O) {
12109
12137
  _: 1
12110
12138
  }, 8, ["content"])) : createCommentVNode("", !0)
12111
12139
  ])) : createCommentVNode("", !0),
12112
- p.item.uiType == 2 && p.item.ext_attribs ? (openBlock(), createBlock(cn, {
12140
+ m.item.uiType == 2 && m.item.ext_attribs ? (openBlock(), createBlock(cn, {
12113
12141
  key: 8,
12114
- modelValue: p.data[p.item.name],
12115
- "onUpdate:modelValue": f[8] || (f[8] = (ue) => p.data[p.item.name] = ue)
12142
+ modelValue: m.data[m.item.name],
12143
+ "onUpdate:modelValue": f[8] || (f[8] = (ue) => m.data[m.item.name] = ue)
12116
12144
  }, {
12117
12145
  default: withCtx(() => [
12118
- (openBlock(!0), createElementBlock(Fragment, null, renderList(p.item.ext_attribs.candidateData, (ue, hn) => (openBlock(), createBlock(Nt, {
12146
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(m.item.ext_attribs.candidateData, (ue, hn) => (openBlock(), createBlock(Nt, {
12119
12147
  key: hn,
12120
12148
  value: ue.value
12121
12149
  }, {
@@ -12127,13 +12155,13 @@ function _sfc_render$6(m, f, p, t, $, O) {
12127
12155
  ]),
12128
12156
  _: 1
12129
12157
  }, 8, ["modelValue"])) : createCommentVNode("", !0),
12130
- p.item.uiType == 3 && p.item.ext_attribs ? (openBlock(), createBlock(Ce, {
12158
+ m.item.uiType == 3 && m.item.ext_attribs ? (openBlock(), createBlock(Ce, {
12131
12159
  key: 9,
12132
- modelValue: p.data[p.item.name],
12133
- "onUpdate:modelValue": f[9] || (f[9] = (ue) => p.data[p.item.name] = ue)
12160
+ modelValue: m.data[m.item.name],
12161
+ "onUpdate:modelValue": f[9] || (f[9] = (ue) => m.data[m.item.name] = ue)
12134
12162
  }, {
12135
12163
  default: withCtx(() => [
12136
- (openBlock(!0), createElementBlock(Fragment, null, renderList(p.item.ext_attribs.candidateData, (ue, hn) => (openBlock(), createBlock(He, {
12164
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(m.item.ext_attribs.candidateData, (ue, hn) => (openBlock(), createBlock(He, {
12137
12165
  key: hn,
12138
12166
  label: ue.value
12139
12167
  }, {
@@ -12145,10 +12173,10 @@ function _sfc_render$6(m, f, p, t, $, O) {
12145
12173
  ]),
12146
12174
  _: 1
12147
12175
  }, 8, ["modelValue"])) : createCommentVNode("", !0),
12148
- p.item.uiType == 15 ? (openBlock(), createBlock(Ce, {
12176
+ m.item.uiType == 15 ? (openBlock(), createBlock(Ce, {
12149
12177
  key: 10,
12150
- modelValue: p.data[p.item.name],
12151
- "onUpdate:modelValue": f[10] || (f[10] = (ue) => p.data[p.item.name] = ue)
12178
+ modelValue: m.data[m.item.name],
12179
+ "onUpdate:modelValue": f[10] || (f[10] = (ue) => m.data[m.item.name] = ue)
12152
12180
  }, {
12153
12181
  default: withCtx(() => [
12154
12182
  createVNode(He, { label: "1" }, {
@@ -12172,10 +12200,10 @@ function _sfc_render$6(m, f, p, t, $, O) {
12172
12200
  ]),
12173
12201
  _: 1
12174
12202
  }, 8, ["modelValue"])) : createCommentVNode("", !0),
12175
- p.item.uiType == 19 ? (openBlock(), createBlock(Ce, {
12203
+ m.item.uiType == 19 ? (openBlock(), createBlock(Ce, {
12176
12204
  key: 11,
12177
- modelValue: p.data[p.item.name],
12178
- "onUpdate:modelValue": f[11] || (f[11] = (ue) => p.data[p.item.name] = ue)
12205
+ modelValue: m.data[m.item.name],
12206
+ "onUpdate:modelValue": f[11] || (f[11] = (ue) => m.data[m.item.name] = ue)
12179
12207
  }, {
12180
12208
  default: withCtx(() => [
12181
12209
  createVNode(He, { label: -1 }, {
@@ -12205,37 +12233,37 @@ function _sfc_render$6(m, f, p, t, $, O) {
12205
12233
  ]),
12206
12234
  _: 1
12207
12235
  }, 8, ["modelValue"])) : createCommentVNode("", !0),
12208
- p.item.uiType == 21 ? (openBlock(), createElementBlock("span", _hoisted_6$1, toDisplayString(p.data[p.item.name] | m.formatDateLong), 1)) : createCommentVNode("", !0),
12209
- p.item.uiType == 22 ? (openBlock(), createBlock(N, {
12236
+ m.item.uiType == 21 ? (openBlock(), createElementBlock("span", _hoisted_6$1, toDisplayString(m.data[m.item.name] | p.formatDateLong), 1)) : createCommentVNode("", !0),
12237
+ m.item.uiType == 22 ? (openBlock(), createBlock(N, {
12210
12238
  key: 13,
12211
12239
  readonly: "",
12212
- modelValue: p.data[p.item.name],
12213
- "onUpdate:modelValue": f[13] || (f[13] = (ue) => p.data[p.item.name] = ue),
12214
- placeholder: p.item.comment
12240
+ modelValue: m.data[m.item.name],
12241
+ "onUpdate:modelValue": f[13] || (f[13] = (ue) => m.data[m.item.name] = ue),
12242
+ placeholder: m.item.comment
12215
12243
  }, {
12216
12244
  append: withCtx(() => [
12217
12245
  createVNode(kt, {
12218
12246
  icon: "md-bookmarks",
12219
12247
  title: "数据字典",
12220
- onClick: f[12] || (f[12] = (ue) => O.showDataDict(p.item.name))
12248
+ onClick: f[12] || (f[12] = (ue) => O.showDataDict(m.item.name))
12221
12249
  })
12222
12250
  ]),
12223
12251
  _: 1
12224
12252
  }, 8, ["modelValue", "placeholder"])) : createCommentVNode("", !0),
12225
- p.item.uiType == 17 ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
12253
+ m.item.uiType == 17 ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
12226
12254
  createElementVNode("img", {
12227
- src: p.data[p.item.name],
12255
+ src: m.data[m.item.name],
12228
12256
  alt: "图片",
12229
12257
  style: { "max-width": "90%" }
12230
12258
  }, null, 8, _hoisted_8)
12231
12259
  ])) : createCommentVNode("", !0),
12232
- p.item.uiType == 4 && p.item.ext_attribs ? (openBlock(), createBlock(ne, {
12260
+ m.item.uiType == 4 && m.item.ext_attribs ? (openBlock(), createBlock(ne, {
12233
12261
  key: 15,
12234
- modelValue: p.data[p.item.name],
12235
- "onUpdate:modelValue": f[14] || (f[14] = (ue) => p.data[p.item.name] = ue)
12262
+ modelValue: m.data[m.item.name],
12263
+ "onUpdate:modelValue": f[14] || (f[14] = (ue) => m.data[m.item.name] = ue)
12236
12264
  }, {
12237
12265
  default: withCtx(() => [
12238
- (openBlock(!0), createElementBlock(Fragment, null, renderList(p.item.ext_attribs.candidateData, (ue, hn) => (openBlock(), createBlock(un, {
12266
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(m.item.ext_attribs.candidateData, (ue, hn) => (openBlock(), createBlock(un, {
12239
12267
  key: hn,
12240
12268
  label: ue.value
12241
12269
  }, {
@@ -12247,11 +12275,11 @@ function _sfc_render$6(m, f, p, t, $, O) {
12247
12275
  ]),
12248
12276
  _: 1
12249
12277
  }, 8, ["modelValue"])) : createCommentVNode("", !0),
12250
- p.item.uiType == 9 ? (openBlock(), createBlock(D, {
12278
+ m.item.uiType == 9 ? (openBlock(), createBlock(D, {
12251
12279
  key: 16,
12252
- "upload-url": p.item.ext_attribs.uploadUrl,
12253
- value: p.data[p.item.name],
12254
- "onUpdate:modelValue": f[15] || (f[15] = (ue) => O.handleModelUpdate(ue, p.item.name))
12280
+ "upload-url": m.item.ext_attribs.uploadUrl,
12281
+ value: m.data[m.item.name],
12282
+ "onUpdate:modelValue": f[15] || (f[15] = (ue) => O.handleModelUpdate(ue, m.item.name))
12255
12283
  }, null, 8, ["upload-url", "value"])) : createCommentVNode("", !0)
12256
12284
  ])) : createCommentVNode("", !0)
12257
12285
  ]),
@@ -12278,16 +12306,16 @@ const ItemRender = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_ren
12278
12306
  render() {
12279
12307
  if (!this.cfg.fields || !this.cfg.fields.length)
12280
12308
  return;
12281
- let m = [], f = [], p = [];
12282
- for (let $ = 0, O = this.cfg.fields.length; $ < O; $++) {
12283
- let N = this.cfg.fields[$];
12309
+ let p = [], f = [], m = [];
12310
+ for (let B = 0, O = this.cfg.fields.length; B < O; B++) {
12311
+ let N = this.cfg.fields[B];
12284
12312
  if (N.isShow) {
12285
12313
  let S = N.uiLayout, ye = [h(ItemRender, { item: N, data: this.data, status: this.status })];
12286
- S == 1 ? m.push([h(viewuiplus_minExports.Col, { span: 24 }, { default: () => ye })]) : S == 2 ? (f.push([h(viewuiplus_minExports.Col, { span: 12 }, { default: () => ye })]), f.length == 2 && (m.push(f), f = [])) : S == 3 && (p.push([h(viewuiplus_minExports.Col, { span: 8 }, { default: () => ye })]), p.length == 3 && (m.push(p), p = []));
12314
+ S == 1 ? p.push([h(viewuiplus_minExports.Col, { span: 24 }, { default: () => ye })]) : S == 2 ? (f.push([h(viewuiplus_minExports.Col, { span: 12 }, { default: () => ye })]), f.length == 2 && (p.push(f), f = [])) : S == 3 && (m.push([h(viewuiplus_minExports.Col, { span: 8 }, { default: () => ye })]), m.length == 3 && (p.push(m), m = []));
12287
12315
  }
12288
12316
  }
12289
12317
  const t = [];
12290
- return m.forEach(($) => t.push(h(viewuiplus_minExports.Row, $))), h(viewuiplus_minExports.Form, { ref: "formDynamic", "label-width": this.cfg.labelWidth || 80, "label-colon": this.status === 0 }, { default: () => t });
12318
+ return p.forEach((B) => t.push(h(viewuiplus_minExports.Row, B))), h(viewuiplus_minExports.Form, { ref: "formDynamic", "label-width": this.cfg.labelWidth || 80, "label-colon": this.status === 0 }, { default: () => t });
12291
12319
  },
12292
12320
  methods: {
12293
12321
  handleAdd() {
@@ -12332,8 +12360,8 @@ const ItemRender = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_ren
12332
12360
  * 加载表单配置
12333
12361
  */
12334
12362
  load() {
12335
- console.log("加载表单配置"), this.entityId ? this.status = 2 : (this.status = 1, this.FromRenderer.data = {}), xhr_fetch.get(`${window.config.dsApiRoot}/common_api/ds_widget_config/${this.formId}`, (m) => {
12336
- m && m.status ? (this.cfg = m.data.config, this.entityId && this.loadInfo()) : this.$Message.error("获取表单配置失败");
12363
+ console.log("加载表单配置"), this.entityId ? this.status = 2 : (this.status = 1, this.FromRenderer.data = {}), xhr_fetch.get(`${window.config.dsApiRoot}/common_api/ds_widget_config/${this.formId}`, (p) => {
12364
+ p && p.status ? (this.cfg = p.data.config, this.entityId && this.loadInfo()) : this.$Message.error("获取表单配置失败");
12337
12365
  });
12338
12366
  },
12339
12367
  /**
@@ -12346,63 +12374,63 @@ const ItemRender = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_ren
12346
12374
  * 创建
12347
12375
  */
12348
12376
  create() {
12349
- const m = this.cfg.infoApi;
12350
- if (!m) {
12377
+ const p = this.cfg.infoApi;
12378
+ if (!p) {
12351
12379
  console.error("API doesn't exist");
12352
12380
  return;
12353
12381
  }
12354
12382
  const f = this._getSaveData();
12355
- delete f.id, xhr_fetch.post(window.config.dsApiRoot + m, f, (p) => {
12356
- p.status ? (this.status = 2, this.$Message.success("创建成功")) : this.$Message.error(p.message || "失败,原因未知!");
12383
+ delete f.id, xhr_fetch.post(window.config.dsApiRoot + p, f, (m) => {
12384
+ m.status ? (this.status = 2, this.$Message.success("创建成功")) : this.$Message.error(m.message || "失败,原因未知!");
12357
12385
  });
12358
12386
  },
12359
12387
  /**
12360
12388
  * 更新
12361
12389
  */
12362
12390
  update() {
12363
- const m = this.cfg.infoApi;
12364
- if (!m) {
12391
+ const p = this.cfg.infoApi;
12392
+ if (!p) {
12365
12393
  console.error("API doesn't exist");
12366
12394
  return;
12367
12395
  }
12368
12396
  const f = this._getSaveData();
12369
- xhr_fetch.put(window.config.dsApiRoot + m, f, (p) => {
12370
- p.status ? this.$Message.success("保存成功") : this.$Message.error(p.message || "失败,原因未知!");
12397
+ xhr_fetch.put(window.config.dsApiRoot + p, f, (m) => {
12398
+ m.status ? this.$Message.success("保存成功") : this.$Message.error(m.message || "失败,原因未知!");
12371
12399
  });
12372
12400
  },
12373
12401
  _getSaveData() {
12374
- let m = {};
12375
- Object.assign(m, this.FromRenderer.data);
12376
- for (let f in m) {
12377
- const p = m[f];
12378
- p instanceof Date && (m[f] = date_format.formatDate.call(p));
12402
+ let p = {};
12403
+ Object.assign(p, this.FromRenderer.data);
12404
+ for (let f in p) {
12405
+ const m = p[f];
12406
+ m instanceof Date && (p[f] = date_format.formatDate.call(m));
12379
12407
  }
12380
- return delete m.creator, delete m.creatorId, delete m.createDate, delete m.updater, delete m.createDate, delete m.updaterId, delete m.updateDate, m = camelToSnake(m), m;
12408
+ return delete p.creator, delete p.creatorId, delete p.createDate, delete p.updater, delete p.createDate, delete p.updaterId, delete p.updateDate, p = camelToSnake(p), p;
12381
12409
  },
12382
12410
  /**
12383
12411
  * 加载详情
12384
12412
  */
12385
12413
  loadInfo() {
12386
- const m = this.cfg.infoApi;
12387
- if (!m) {
12414
+ const p = this.cfg.infoApi;
12415
+ if (!p) {
12388
12416
  console.error("API doesn't exist");
12389
12417
  return;
12390
12418
  }
12391
- xhr_fetch.get(window.config.dsApiRoot + m + "/" + this.entityId, (f) => {
12419
+ xhr_fetch.get(window.config.dsApiRoot + p + "/" + this.entityId, (f) => {
12392
12420
  f && f.status && (console.log(f.data), this.FromRenderer.data = f.data, this.status = 2);
12393
12421
  });
12394
12422
  }
12395
12423
  }
12396
12424
  });
12397
- function camelToSnake(m) {
12398
- if (m == null || typeof m != "object")
12399
- return m;
12400
- if (Array.isArray(m))
12401
- return m.map((p) => camelToSnake(p));
12425
+ function camelToSnake(p) {
12426
+ if (p == null || typeof p != "object")
12427
+ return p;
12428
+ if (Array.isArray(p))
12429
+ return p.map((m) => camelToSnake(m));
12402
12430
  const f = {};
12403
- for (const [p, t] of Object.entries(m)) {
12404
- const $ = p.replace(/[A-Z]/g, (O) => `_${O.toLowerCase()}`);
12405
- f[$] = camelToSnake(t);
12431
+ for (const [m, t] of Object.entries(p)) {
12432
+ const B = m.replace(/[A-Z]/g, (O) => `_${O.toLowerCase()}`);
12433
+ f[B] = camelToSnake(t);
12406
12434
  }
12407
12435
  return f;
12408
12436
  }
@@ -12410,24 +12438,24 @@ const _hoisted_1$2 = {
12410
12438
  key: 0,
12411
12439
  class: "btns"
12412
12440
  }, _hoisted_2$2 = { key: 0 };
12413
- function _sfc_render$5(m, f, p, t, $, O) {
12441
+ function _sfc_render$5(p, f, m, t, B, O) {
12414
12442
  const N = resolveComponent("FromRenderer"), S = resolveComponent("Input"), ye = resolveComponent("Button");
12415
12443
  return openBlock(), createElementBlock("div", null, [
12416
12444
  createVNode(N, {
12417
12445
  ref: "FromRenderer",
12418
- cfg: m.cfg
12446
+ cfg: p.cfg
12419
12447
  }, null, 8, ["cfg"]),
12420
- m.isShowBtns ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
12421
- m.isShowInfoBtn ? (openBlock(), createElementBlock("span", _hoisted_2$2, [
12448
+ p.isShowBtns ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
12449
+ p.isShowInfoBtn ? (openBlock(), createElementBlock("span", _hoisted_2$2, [
12422
12450
  createVNode(S, {
12423
12451
  style: { width: "50px" },
12424
- modelValue: m.entityId,
12425
- "onUpdate:modelValue": f[0] || (f[0] = (Ee) => m.entityId = Ee)
12452
+ modelValue: p.entityId,
12453
+ "onUpdate:modelValue": f[0] || (f[0] = (Ee) => p.entityId = Ee)
12426
12454
  }, null, 8, ["modelValue"]),
12427
12455
  f[3] || (f[3] = createTextVNode()),
12428
12456
  createVNode(ye, {
12429
12457
  style: { width: "90px" },
12430
- onClick: m.loadInfo
12458
+ onClick: p.loadInfo
12431
12459
  }, {
12432
12460
  default: withCtx(() => [...f[2] || (f[2] = [
12433
12461
  createTextVNode("加载", -1)
@@ -12435,29 +12463,29 @@ function _sfc_render$5(m, f, p, t, $, O) {
12435
12463
  _: 1
12436
12464
  }, 8, ["onClick"])
12437
12465
  ])) : createCommentVNode("", !0),
12438
- m.status === 1 ? (openBlock(), createBlock(ye, {
12466
+ p.status === 1 ? (openBlock(), createBlock(ye, {
12439
12467
  key: 1,
12440
12468
  type: "primary",
12441
- onClick: m.create
12469
+ onClick: p.create
12442
12470
  }, {
12443
12471
  default: withCtx(() => [...f[4] || (f[4] = [
12444
12472
  createTextVNode("创建", -1)
12445
12473
  ])]),
12446
12474
  _: 1
12447
12475
  }, 8, ["onClick"])) : createCommentVNode("", !0),
12448
- m.status === 2 ? (openBlock(), createBlock(ye, {
12476
+ p.status === 2 ? (openBlock(), createBlock(ye, {
12449
12477
  key: 2,
12450
12478
  type: "primary",
12451
- onClick: m.update
12479
+ onClick: p.update
12452
12480
  }, {
12453
12481
  default: withCtx(() => [...f[5] || (f[5] = [
12454
12482
  createTextVNode("保存", -1)
12455
12483
  ])]),
12456
12484
  _: 1
12457
12485
  }, 8, ["onClick"])) : createCommentVNode("", !0),
12458
- m.status !== 0 ? (openBlock(), createBlock(ye, {
12486
+ p.status !== 0 ? (openBlock(), createBlock(ye, {
12459
12487
  key: 3,
12460
- onClick: m.resetFields
12488
+ onClick: p.resetFields
12461
12489
  }, {
12462
12490
  default: withCtx(() => [...f[6] || (f[6] = [
12463
12491
  createTextVNode("重置", -1)
@@ -12465,7 +12493,7 @@ function _sfc_render$5(m, f, p, t, $, O) {
12465
12493
  _: 1
12466
12494
  }, 8, ["onClick"])) : createCommentVNode("", !0),
12467
12495
  createVNode(ye, {
12468
- onClick: f[1] || (f[1] = (Ee) => m.$router.back())
12496
+ onClick: f[1] || (f[1] = (Ee) => p.$router.back())
12469
12497
  }, {
12470
12498
  default: withCtx(() => [...f[7] || (f[7] = [
12471
12499
  createTextVNode("返回", -1)
@@ -12528,49 +12556,49 @@ const FormLoader = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_ren
12528
12556
  * 加载列定义
12529
12557
  */
12530
12558
  getRemoteColDef() {
12531
- xhr_fetch.get(`${window.config.dsApiRoot}/common_api/ds_widget_config/${this.colDefId}`, (m) => {
12532
- this.list.loading = !1, m.status ? (this.widgetName_ = m.data.name, this.renderConfig(m.data.config)) : this.$Message.warning(m.message || "获取列表失败");
12559
+ xhr_fetch.get(`${window.config.dsApiRoot}/common_api/ds_widget_config/${this.colDefId}`, (p) => {
12560
+ this.list.loading = !1, p.status ? (this.widgetName_ = p.data.name, this.renderConfig(p.data.config)) : this.$Message.warning(p.message || "获取列表失败");
12533
12561
  });
12534
12562
  },
12535
- renderConfig(m) {
12536
- this.bindingFormId = m.bindingFormId || 0, this.listApiUrl_ = m.dataBinding.url.replace("{project_prefix}", this.apiPrefix);
12537
- const f = m.fields;
12538
- this.list.columns = [], f.forEach((p) => {
12539
- if (p.isShow) {
12540
- const t = { title: p.title, key: p.key, width: p.width, minWidth: p.minWidth, align: p.align };
12541
- cellRender(t, p), this.list.columns.push(t);
12563
+ renderConfig(p) {
12564
+ this.bindingFormId = p.bindingFormId || 0, this.listApiUrl_ = p.dataBinding.url.replace("{project_prefix}", this.apiPrefix);
12565
+ const f = p.fields;
12566
+ this.list.columns = [], f.forEach((m) => {
12567
+ if (m.isShow) {
12568
+ const t = { title: m.title, key: m.key, width: m.width, minWidth: m.minWidth, align: m.align };
12569
+ cellRender(t, m), this.list.columns.push(t);
12542
12570
  }
12543
12571
  }), this.defaultAction && this.list.columns.push({ title: "操作", slot: "action", align: "center", width: 200 }), this.getData();
12544
12572
  },
12545
12573
  getData() {
12546
12574
  this.list.loading = !0;
12547
- let m = this.listApiUrl_;
12548
- m += (m.indexOf("?") > -1 ? "&" : "?") + `pageNo=${this.list.pageNo}&pageSize=${this.list.pageSize}`, xhr_fetch.get(m, (f) => {
12575
+ let p = this.listApiUrl_;
12576
+ p += (p.indexOf("?") > -1 ? "&" : "?") + `pageNo=${this.list.pageNo}&pageSize=${this.list.pageSize}`, xhr_fetch.get(p, (f) => {
12549
12577
  this.list.loading = !1, f.status ? f.data.zero ? this.$Message.warning("暂无数据") : (this.list.data = f.data.list, this.list.total = f.data.totalCount) : this.$Message.warning(f.message || "获取列表失败");
12550
12578
  });
12551
12579
  },
12552
- onPageNoChange(m) {
12553
- this.list.pageNo = m, this.getData();
12580
+ onPageNoChange(p) {
12581
+ this.list.pageNo = p, this.getData();
12554
12582
  },
12555
12583
  /**
12556
12584
  * 分页记录数
12557
12585
  */
12558
- handleChangePageSize(m) {
12559
- this.list.limit = this.list.pageSize = m, this.getData();
12586
+ handleChangePageSize(p) {
12587
+ this.list.limit = this.list.pageSize = p, this.getData();
12560
12588
  },
12561
12589
  reset() {
12562
- for (const m in this.search)
12563
- this.search[m] = "";
12590
+ for (const p in this.search)
12591
+ this.search[p] = "";
12564
12592
  this.getData();
12565
12593
  },
12566
12594
  /**
12567
12595
  * 新建
12568
12596
  */
12569
- onCreate(m) {
12597
+ onCreate(p) {
12570
12598
  if (this.createRoute)
12571
12599
  this.$router.push({ path: this.createRoute });
12572
12600
  else if (this.$parent.onCreate)
12573
- this.$parent.edit(m);
12601
+ this.$parent.edit(p);
12574
12602
  else if (this.modalInfo) {
12575
12603
  this.isShowForm = !0;
12576
12604
  const f = this.$refs.FormLoader;
@@ -12580,15 +12608,15 @@ const FormLoader = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_ren
12580
12608
  /**
12581
12609
  * 编辑
12582
12610
  */
12583
- onEdit(m) {
12611
+ onEdit(p) {
12584
12612
  if (this.editRoute)
12585
- this.$router.push({ path: this.editRoute, query: { id: m } });
12613
+ this.$router.push({ path: this.editRoute, query: { id: p } });
12586
12614
  else if (this.$parent.onEdit)
12587
- this.$parent.edit(m);
12615
+ this.$parent.edit(p);
12588
12616
  else {
12589
12617
  this.isShowForm = !0;
12590
12618
  const f = this.$refs.FormLoader;
12591
- this.modalInfo ? (f.formId = this.bindingFormId, f.entityId = m, f.load()) : setTimeout(() => {
12619
+ this.modalInfo ? (f.formId = this.bindingFormId, f.entityId = p, f.load()) : setTimeout(() => {
12592
12620
  this.$refs.FormLoader2a.formId = this.bindingFormId, this.$refs.FormLoader2a.load();
12593
12621
  });
12594
12622
  }
@@ -12608,12 +12636,12 @@ const FormLoader = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_ren
12608
12636
  // this.list.start = (v - 1) * this.list.limit;
12609
12637
  // this.getData();
12610
12638
  // },
12611
- colDefId(m) {
12639
+ colDefId(p) {
12612
12640
  this.getRemoteColDef();
12613
12641
  },
12614
12642
  cfg: {
12615
- handler(m) {
12616
- this.renderConfig(m);
12643
+ handler(p) {
12644
+ this.renderConfig(p);
12617
12645
  },
12618
12646
  deep: !0
12619
12647
  }
@@ -12624,36 +12652,36 @@ function cellRender(rendererColDef, item) {
12624
12652
  if (item.render == "email" && (rendererColDef.render = email), item.render == "link" && (rendererColDef.render = link), item.render == "link_http" && (rendererColDef.render = link_http, item.isOneLine = !0, rendererColDef.ellipsis = !0, rendererColDef.tooltip = !0, rendererColDef.minWidth = item.minWidth = 150), item.render == "sex" && (rendererColDef.render = sex), item.render == "date" && (rendererColDef.render = date), item.render == "short_date" && (rendererColDef.render = short_date), item.render == "long_date" && (rendererColDef.render = long_date), item.render == "thumb" && (rendererColDef.render = thumb), item.render == "stat" && (rendererColDef.render = state), item.render == "boolean_value" && (rendererColDef.render = booleanValue), item.render == "price" && (rendererColDef.render = price), item.render == "clk_event" && item.clkEvent)
12625
12653
  try {
12626
12654
  rendererColDef.render = clk_event(eval(item.clkEvent));
12627
- } catch (m) {
12655
+ } catch (p) {
12628
12656
  alert("eval 代码错误,请检查配置 code: " + item.clkEvent);
12629
12657
  }
12630
12658
  item.render == "render" && (item.isCode && item.customRender && (rendererColDef.render = eval(item.customRender)), !item.isCode && item.customRenderKV && (rendererColDef.render = customRender(item.customRenderKV)));
12631
12659
  }
12632
12660
  }
12633
- function state(m, f) {
12634
- const p = f.row[f.column.key], t = "•";
12635
- switch (p) {
12661
+ function state(p, f) {
12662
+ const m = f.row[f.column.key], t = "•";
12663
+ switch (m) {
12636
12664
  case 0:
12637
- return m("div", {
12665
+ return p("div", {
12638
12666
  style: { color: "#52c41a", fontSize: "20px" },
12639
12667
  attrs: { title: "正常" }
12640
12668
  }, t);
12641
12669
  case -1:
12642
- return m("div", {
12670
+ return p("div", {
12643
12671
  style: { color: "red", fontSize: "20px" },
12644
12672
  attrs: { title: "已删除" }
12645
12673
  }, t);
12646
12674
  default:
12647
- return m("div", {
12675
+ return p("div", {
12648
12676
  style: { color: "yellow", fontSize: "20px" },
12649
12677
  attrs: { title: "已禁用/已下线" }
12650
12678
  }, t);
12651
12679
  }
12652
12680
  }
12653
- function sex(m, f) {
12654
- const p = f.row[f.column.key];
12681
+ function sex(p, f) {
12682
+ const m = f.row[f.column.key];
12655
12683
  let t = "";
12656
- switch (p) {
12684
+ switch (m) {
12657
12685
  case "MALE":
12658
12686
  t = "男";
12659
12687
  break;
@@ -12663,109 +12691,109 @@ function sex(m, f) {
12663
12691
  default:
12664
12692
  t = "未知";
12665
12693
  }
12666
- return m("span", t);
12694
+ return p("span", t);
12667
12695
  }
12668
- function email(m, f) {
12669
- const p = f.row[f.column.key];
12670
- return p ? m("a", { href: "mailto://" + p }, p) : "";
12696
+ function email(p, f) {
12697
+ const m = f.row[f.column.key];
12698
+ return m ? p("a", { href: "mailto://" + m }, m) : "";
12671
12699
  }
12672
- function link(m, f) {
12673
- const p = f.row[f.column.key];
12674
- return p ? m("a", { href: p, target: "_blank", title: p }, "超链接") : "";
12700
+ function link(p, f) {
12701
+ const m = f.row[f.column.key];
12702
+ return m ? p("a", { href: m, target: "_blank", title: m }, "超链接") : "";
12675
12703
  }
12676
- function link_http(m, f) {
12677
- const p = f.row[f.column.key];
12678
- return p ? m("a", { href: p, target: "_blank", title: p }, p) : "";
12704
+ function link_http(p, f) {
12705
+ const m = f.row[f.column.key];
12706
+ return m ? p("a", { href: m, target: "_blank", title: m }, m) : "";
12679
12707
  }
12680
- function date(m, f) {
12681
- const p = f.row[f.column.key];
12682
- if (p)
12683
- if (p.indexOf(":") != -1) {
12684
- const t = p.split(":");
12685
- return t.pop(), t.pop(), p ? t.join("").replace(/\s\d+$/, "") : "";
12708
+ function date(p, f) {
12709
+ const m = f.row[f.column.key];
12710
+ if (m)
12711
+ if (m.indexOf(":") != -1) {
12712
+ const t = m.split(":");
12713
+ return t.pop(), t.pop(), m ? t.join("").replace(/\s\d+$/, "") : "";
12686
12714
  } else
12687
- return p;
12715
+ return m;
12688
12716
  else
12689
12717
  return "";
12690
12718
  }
12691
- function long_date(m, f) {
12692
- const p = f.row[f.column.key];
12693
- return p && isoDateTimeRegex.test(p) ? m("span", convertDateLong(p)) : p ? m("span", p) : "";
12719
+ function long_date(p, f) {
12720
+ const m = f.row[f.column.key];
12721
+ return m && isoDateTimeRegex.test(m) ? p("span", convertDateLong(m)) : m ? p("span", m) : "";
12694
12722
  }
12695
12723
  const isoDateTimeRegex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:.\d*)?)$/;
12696
- function convertDate(m) {
12697
- const f = new Date(m), p = f.getFullYear(), t = f.getMonth() + 1, $ = f.getDate(), O = f.getHours(), N = f.getMinutes() === 0 ? "00" : f.getMinutes();
12698
- return `${p}-${t}-${$} ${O}:${N}`;
12724
+ function convertDate(p) {
12725
+ const f = new Date(p), m = f.getFullYear(), t = f.getMonth() + 1, B = f.getDate(), O = f.getHours(), N = f.getMinutes() === 0 ? "00" : f.getMinutes();
12726
+ return `${m}-${t}-${B} ${O}:${N}`;
12699
12727
  }
12700
- function convertDateLong(m) {
12701
- const f = new Date(m), p = f.getFullYear(), t = f.getMonth() + 1, $ = f.getDate(), O = f.getHours(), N = f.getMinutes() === 0 ? "00" : f.getMinutes(), S = f.getSeconds();
12702
- return `${p}-${t}-${$} ${O}:${N}:${S}`;
12728
+ function convertDateLong(p) {
12729
+ const f = new Date(p), m = f.getFullYear(), t = f.getMonth() + 1, B = f.getDate(), O = f.getHours(), N = f.getMinutes() === 0 ? "00" : f.getMinutes(), S = f.getSeconds();
12730
+ return `${m}-${t}-${B} ${O}:${N}:${S}`;
12703
12731
  }
12704
- function short_date(m, f) {
12705
- const p = f.row[f.column.key];
12706
- if (p) {
12707
- if (isoDateTimeRegex.test(p))
12708
- return m("span", convertDate(p));
12709
- const t = p.split(":");
12710
- return t.pop(), p ? m("span", t.join(":")) : "";
12732
+ function short_date(p, f) {
12733
+ const m = f.row[f.column.key];
12734
+ if (m) {
12735
+ if (isoDateTimeRegex.test(m))
12736
+ return p("span", convertDate(m));
12737
+ const t = m.split(":");
12738
+ return t.pop(), m ? p("span", t.join(":")) : "";
12711
12739
  } else
12712
12740
  return "";
12713
12741
  }
12714
- function thumb(m, f) {
12715
- const p = f.row[f.column.key];
12716
- if (!p)
12742
+ function thumb(p, f) {
12743
+ const m = f.row[f.column.key];
12744
+ if (!m)
12717
12745
  return "";
12718
- const t = p.startsWith("iVBOR") || p.startsWith("/9j");
12719
- return m("a", t ? { href: "javascript:void(0);" } : { href: p, target: "_blank", title: p }, [
12720
- m("img", {
12721
- src: t ? "data:image/;base64," + p : p,
12746
+ const t = m.startsWith("iVBOR") || m.startsWith("/9j");
12747
+ return p("a", t ? { href: "javascript:void(0);" } : { href: m, target: "_blank", title: m }, [
12748
+ p("img", {
12749
+ src: t ? "data:image/;base64," + m : m,
12722
12750
  // 对于内联样式,可以直接传递字符串或对象
12723
12751
  style: "max-width:100px;max-height:50px;margin-top:5px"
12724
12752
  })
12725
12753
  ]);
12726
12754
  }
12727
- function clk_event(m) {
12728
- return (f, p) => {
12729
- const t = p.row[p.column.key];
12755
+ function clk_event(p) {
12756
+ return (f, m) => {
12757
+ const t = m.row[m.column.key];
12730
12758
  return t ? f("a", {
12731
- on: { click: () => m(p.row) }
12759
+ on: { click: () => p(m.row) }
12732
12760
  }, t) : "";
12733
12761
  };
12734
12762
  }
12735
- function booleanValue(m, f) {
12763
+ function booleanValue(p, f) {
12736
12764
  return f.row[f.column.key] ? "是" : "否";
12737
12765
  }
12738
- function price(m, f) {
12739
- const p = f.row[f.column.key];
12740
- return p ? (p / 100).toFixed(2) : "";
12766
+ function price(p, f) {
12767
+ const m = f.row[f.column.key];
12768
+ return m ? (m / 100).toFixed(2) : "";
12741
12769
  }
12742
- function customRender(m) {
12770
+ function customRender(p) {
12743
12771
  const f = {};
12744
- return m.forEach((p) => f[p.value + ""] = p.name), (p, t) => {
12745
- const $ = t.row[t.column.key];
12746
- return $ == "0" || $ ? p("span", f[$]) : "";
12772
+ return p.forEach((m) => f[m.value + ""] = m.name), (m, t) => {
12773
+ const B = t.row[t.column.key];
12774
+ return B == "0" || B ? m("span", f[B]) : "";
12747
12775
  };
12748
12776
  }
12749
12777
  const _hoisted_1$1 = { key: 0 }, _hoisted_2$1 = { style: { margin: "20px 0", overflow: "hidden" } }, _hoisted_3$1 = {
12750
12778
  key: 0,
12751
12779
  class: "common-search-panel"
12752
12780
  }, _hoisted_4 = { style: { float: "right" } }, _hoisted_5 = { class: "toolbar" }, _hoisted_6 = ["onClick"], _hoisted_7 = { key: 2 };
12753
- function _sfc_render$4(m, f, p, t, $, O) {
12781
+ function _sfc_render$4(p, f, m, t, B, O) {
12754
12782
  const N = resolveComponent("Button"), S = resolveComponent("Input"), ye = resolveComponent("Icon"), Ee = resolveComponent("Tooltip"), _e = resolveComponent("Divider"), Nt = resolveComponent("Poptip"), cn = resolveComponent("Table"), He = resolveComponent("Page"), Ce = resolveComponent("Card"), kt = resolveComponent("FormLoader"), un = resolveComponent("Modal");
12755
12783
  return openBlock(), createElementBlock("div", null, [
12756
- m.modalInfo || !m.isShowForm ? (openBlock(), createElementBlock("span", _hoisted_1$1, [
12784
+ p.modalInfo || !p.isShowForm ? (openBlock(), createElementBlock("span", _hoisted_1$1, [
12757
12785
  createVNode(Ce, {
12758
12786
  bordered: !1,
12759
12787
  "dis-hover": ""
12760
12788
  }, {
12761
12789
  default: withCtx(() => [
12762
12790
  createElementVNode("div", _hoisted_2$1, [
12763
- m.showSearch ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
12791
+ p.showSearch ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
12764
12792
  createElementVNode("span", _hoisted_4, [
12765
12793
  createVNode(N, {
12766
12794
  type: "primary",
12767
12795
  icon: "ios-search",
12768
- onClick: f[0] || (f[0] = (ne) => m.$parent.getData())
12796
+ onClick: f[0] || (f[0] = (ne) => p.$parent.getData())
12769
12797
  }, {
12770
12798
  default: withCtx(() => [...f[4] || (f[4] = [
12771
12799
  createTextVNode("查询", -1)
@@ -12774,7 +12802,7 @@ function _sfc_render$4(m, f, p, t, $, O) {
12774
12802
  }),
12775
12803
  createVNode(N, {
12776
12804
  style: { "margin-left": "10px" },
12777
- onClick: m.reset
12805
+ onClick: p.reset
12778
12806
  }, {
12779
12807
  default: withCtx(() => [...f[5] || (f[5] = [
12780
12808
  createTextVNode("重置", -1)
@@ -12784,11 +12812,11 @@ function _sfc_render$4(m, f, p, t, $, O) {
12784
12812
  ]),
12785
12813
  createVNode(S, {
12786
12814
  suffix: "ios-search",
12787
- modelValue: m.list.search.name,
12788
- "onUpdate:modelValue": f[1] || (f[1] = (ne) => m.list.search.name = ne),
12789
- onOnEnter: m.getData,
12815
+ modelValue: p.list.search.name,
12816
+ "onUpdate:modelValue": f[1] || (f[1] = (ne) => p.list.search.name = ne),
12817
+ onOnEnter: p.getData,
12790
12818
  clearable: "",
12791
- placeholder: "请输入" + m.widgetName_ + "名称"
12819
+ placeholder: "请输入" + p.widgetName_ + "名称"
12792
12820
  }, null, 8, ["modelValue", "onOnEnter", "placeholder"])
12793
12821
  ])) : createCommentVNode("", !0),
12794
12822
  createElementVNode("div", _hoisted_5, [
@@ -12801,21 +12829,21 @@ function _sfc_render$4(m, f, p, t, $, O) {
12801
12829
  createVNode(ye, {
12802
12830
  size: "20",
12803
12831
  type: "ios-refresh",
12804
- onClick: m.getData,
12832
+ onClick: p.getData,
12805
12833
  style: { cursor: "pointer" }
12806
12834
  }, null, 8, ["onClick"])
12807
12835
  ]),
12808
12836
  _: 1
12809
12837
  }),
12810
- renderSlot(m.$slots, "toolbar", {}, void 0, !0),
12811
- m.showCreateBtn ? (openBlock(), createBlock(N, {
12838
+ renderSlot(p.$slots, "toolbar", {}, void 0, !0),
12839
+ p.showCreateBtn ? (openBlock(), createBlock(N, {
12812
12840
  key: 0,
12813
12841
  type: "primary",
12814
12842
  icon: "md-add",
12815
- onClick: m.onCreate
12843
+ onClick: p.onCreate
12816
12844
  }, {
12817
12845
  default: withCtx(() => [
12818
- createTextVNode("新建" + toDisplayString(m.widgetName_), 1)
12846
+ createTextVNode("新建" + toDisplayString(p.widgetName_), 1)
12819
12847
  ]),
12820
12848
  _: 1
12821
12849
  }, 8, ["onClick"])) : createCommentVNode("", !0)
@@ -12823,18 +12851,18 @@ function _sfc_render$4(m, f, p, t, $, O) {
12823
12851
  ]),
12824
12852
  createVNode(cn, {
12825
12853
  style: { clear: "both" },
12826
- columns: m.list.columns,
12827
- data: m.list.data,
12828
- loading: m.list.loading
12854
+ columns: p.list.columns,
12855
+ data: p.list.data,
12856
+ loading: p.list.loading
12829
12857
  }, {
12830
12858
  action: withCtx(({ row: ne, index: D }) => [
12831
- renderSlot(m.$slots, "list_action", { item: ne }, void 0, !0),
12832
- m.showEditBtn ? (openBlock(), createElementBlock("a", {
12859
+ renderSlot(p.$slots, "list_action", { item: ne }, void 0, !0),
12860
+ p.showEditBtn ? (openBlock(), createElementBlock("a", {
12833
12861
  key: 0,
12834
12862
  style: { color: "green" },
12835
- onClick: (dn) => m.onEdit(ne.id)
12836
- }, toDisplayString(m.editBtnAsView ? "查看" : "编辑"), 9, _hoisted_6)) : createCommentVNode("", !0),
12837
- m.showEditBtn ? (openBlock(), createBlock(_e, {
12863
+ onClick: (dn) => p.onEdit(ne.id)
12864
+ }, toDisplayString(p.editBtnAsView ? "查看" : "编辑"), 9, _hoisted_6)) : createCommentVNode("", !0),
12865
+ p.showEditBtn ? (openBlock(), createBlock(_e, {
12838
12866
  key: 1,
12839
12867
  type: "vertical"
12840
12868
  })) : createCommentVNode("", !0),
@@ -12842,7 +12870,7 @@ function _sfc_render$4(m, f, p, t, $, O) {
12842
12870
  confirm: "",
12843
12871
  transfer: "",
12844
12872
  title: "是否要删除此行?",
12845
- onOnOk: (dn) => m.deleteInfo(ne.id, D)
12873
+ onOnOk: (dn) => p.deleteInfo(ne.id, D)
12846
12874
  }, {
12847
12875
  default: withCtx(() => [...f[6] || (f[6] = [
12848
12876
  createElementVNode("a", { style: { color: "red" } }, "删除", -1)
@@ -12854,22 +12882,22 @@ function _sfc_render$4(m, f, p, t, $, O) {
12854
12882
  }, 8, ["columns", "data", "loading"]),
12855
12883
  createVNode(He, {
12856
12884
  class: "ivu-mt ivu-text-right",
12857
- total: m.list.total,
12858
- current: m.list.pageNo,
12885
+ total: p.list.total,
12886
+ current: p.list.pageNo,
12859
12887
  "show-total": "",
12860
12888
  "show-sizer": "",
12861
- "page-size": m.list.limit,
12862
- onOnChange: m.onPageNoChange,
12863
- onOnPageSizeChange: m.handleChangePageSize
12889
+ "page-size": p.list.limit,
12890
+ onOnChange: p.onPageNoChange,
12891
+ onOnPageSizeChange: p.handleChangePageSize
12864
12892
  }, null, 8, ["total", "current", "page-size", "onOnChange", "onOnPageSizeChange"])
12865
12893
  ]),
12866
12894
  _: 3
12867
12895
  })
12868
12896
  ])) : createCommentVNode("", !0),
12869
- m.modalInfo ? (openBlock(), createBlock(un, {
12897
+ p.modalInfo ? (openBlock(), createBlock(un, {
12870
12898
  key: 1,
12871
- modelValue: m.isShowForm,
12872
- "onUpdate:modelValue": f[2] || (f[2] = (ne) => m.isShowForm = ne),
12899
+ modelValue: p.isShowForm,
12900
+ "onUpdate:modelValue": f[2] || (f[2] = (ne) => p.isShowForm = ne),
12873
12901
  title: "预览",
12874
12902
  width: "800",
12875
12903
  "ok-text": "关闭",
@@ -12878,15 +12906,15 @@ function _sfc_render$4(m, f, p, t, $, O) {
12878
12906
  default: withCtx(() => [
12879
12907
  createVNode(kt, {
12880
12908
  ref: "FormLoader",
12881
- "api-prefix": m.apiPrefix
12909
+ "api-prefix": p.apiPrefix
12882
12910
  }, null, 8, ["api-prefix"])
12883
12911
  ]),
12884
12912
  _: 1
12885
12913
  }, 8, ["modelValue"])) : createCommentVNode("", !0),
12886
- !m.modalInfo && m.isShowForm ? (openBlock(), createElementBlock("span", _hoisted_7, [
12914
+ !p.modalInfo && p.isShowForm ? (openBlock(), createElementBlock("span", _hoisted_7, [
12887
12915
  createElementVNode("a", {
12888
12916
  href: "#",
12889
- onClick: f[3] || (f[3] = (ne) => m.isShowForm = !1)
12917
+ onClick: f[3] || (f[3] = (ne) => p.isShowForm = !1)
12890
12918
  }, "返回列表")
12891
12919
  ])) : createCommentVNode("", !0)
12892
12920
  ]);
@@ -12896,7 +12924,7 @@ const ListLoader = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_ren
12896
12924
  ListLoader
12897
12925
  }
12898
12926
  };
12899
- function _sfc_render$3(m, f, p, t, $, O) {
12927
+ function _sfc_render$3(p, f, m, t, B, O) {
12900
12928
  const N = resolveComponent("ListLoader");
12901
12929
  return openBlock(), createBlock(N, {
12902
12930
  id: 103,
@@ -12914,21 +12942,21 @@ const Article = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render
12914
12942
  };
12915
12943
  },
12916
12944
  watch: {
12917
- treeJson(m) {
12945
+ treeJson(p) {
12918
12946
  let f = JSON.parse(JSON.stringify(this.treeJson));
12919
12947
  prepare(f), this.data = [], plat(this.data, f);
12920
12948
  }
12921
12949
  }
12922
12950
  }, stack = [];
12923
- function prepare(m) {
12924
- if (!(!m || !m.length)) {
12925
- stack.push(m);
12926
- for (let f = 0, p = m.length; f < p; f++) {
12927
- let t = m[f], $ = stack.length;
12928
- if (t.level = $, $ == 1) t.indent = "";
12951
+ function prepare(p) {
12952
+ if (!(!p || !p.length)) {
12953
+ stack.push(p);
12954
+ for (let f = 0, m = p.length; f < m; f++) {
12955
+ let t = p[f], B = stack.length;
12956
+ if (t.level = B, B == 1) t.indent = "";
12929
12957
  else {
12930
- console.log(Math.pow($ - 1, 2));
12931
- let O = new Array(Math.pow($ + 1, 2)), N = new Array(Math.pow($ - 2, 2));
12958
+ console.log(Math.pow(B - 1, 2));
12959
+ let O = new Array(Math.pow(B + 1, 2)), N = new Array(Math.pow(B - 2, 2));
12932
12960
  t.indent = O.join(" ") + "└─" + N.join("─");
12933
12961
  }
12934
12962
  prepare(t.children);
@@ -12936,20 +12964,20 @@ function prepare(m) {
12936
12964
  stack.pop();
12937
12965
  }
12938
12966
  }
12939
- function plat(m, f) {
12940
- for (let p = 0, t = f.length; p < t; p++) {
12941
- let $ = f[p];
12942
- m.push($), $.children && $.children.length && plat(m, $.children);
12967
+ function plat(p, f) {
12968
+ for (let m = 0, t = f.length; m < t; m++) {
12969
+ let B = f[m];
12970
+ p.push(B), B.children && B.children.length && plat(p, B.children);
12943
12971
  }
12944
12972
  }
12945
- function _sfc_render$2(m, f, p, t, $, O) {
12973
+ function _sfc_render$2(p, f, m, t, B, O) {
12946
12974
  const N = resolveComponent("Option"), S = resolveComponent("Select");
12947
12975
  return openBlock(), createBlock(S, {
12948
- modelValue: $.selectId,
12949
- "onUpdate:modelValue": f[0] || (f[0] = (ye) => $.selectId = ye)
12976
+ modelValue: B.selectId,
12977
+ "onUpdate:modelValue": f[0] || (f[0] = (ye) => B.selectId = ye)
12950
12978
  }, {
12951
12979
  default: withCtx(() => [
12952
- (openBlock(!0), createElementBlock(Fragment, null, renderList($.data, (ye, Ee) => (openBlock(), createBlock(N, {
12980
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(B.data, (ye, Ee) => (openBlock(), createBlock(N, {
12953
12981
  value: ye.id,
12954
12982
  key: Ee,
12955
12983
  size: "small"
@@ -12976,7 +13004,7 @@ const TreeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
12976
13004
  } }
12977
13005
  },
12978
13006
  data() {
12979
- let m = [
13007
+ let p = [
12980
13008
  // 动态传入 列配置
12981
13009
  {
12982
13010
  title: "#",
@@ -12989,9 +13017,9 @@ const TreeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
12989
13017
  title: "修改日期",
12990
13018
  align: "center",
12991
13019
  width: 150,
12992
- render(f, { row: p }) {
12993
- if (p.updateDate) {
12994
- let t = p.updateDate.split(":");
13020
+ render(f, { row: m }) {
13021
+ if (m.updateDate) {
13022
+ let t = m.updateDate.split(":");
12995
13023
  return t.pop(), f("span", t.join(":"));
12996
13024
  }
12997
13025
  }
@@ -13020,7 +13048,7 @@ const TreeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
13020
13048
  parent: "",
13021
13049
  parentId: 0
13022
13050
  },
13023
- columns16: m,
13051
+ columns16: p,
13024
13052
  data: [
13025
13053
  {
13026
13054
  id: "100",
@@ -13083,8 +13111,8 @@ const TreeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
13083
13111
  },
13084
13112
  methods: {
13085
13113
  getData() {
13086
- xhr_fetch.get(`${this.api.list}`, (m) => {
13087
- this.data = tranListToTreeData(m.result);
13114
+ xhr_fetch.get(`${this.api.list}`, (p) => {
13115
+ this.data = tranListToTreeData(p.result);
13088
13116
  });
13089
13117
  },
13090
13118
  /**
@@ -13093,8 +13121,8 @@ const TreeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
13093
13121
  * @param name 父节点的名称
13094
13122
  * @param id 父节点的 id
13095
13123
  */
13096
- createTreeNode(m, f, p) {
13097
- this.isCreateTop = !1, this.isUpdate = !1, this.edit.isShowEdit = !0, this.edit.parent = m, this.edit.parentId = f, this.edit.row = {}, this.$refs.selectParent.selectId = f;
13124
+ createTreeNode(p, f, m) {
13125
+ this.isCreateTop = !1, this.isUpdate = !1, this.edit.isShowEdit = !0, this.edit.parent = p, this.edit.parentId = f, this.edit.row = {}, this.$refs.selectParent.selectId = f;
13098
13126
  },
13099
13127
  /**
13100
13128
  * 编辑节点
@@ -13102,8 +13130,8 @@ const TreeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
13102
13130
  * @param name 父节点的名称
13103
13131
  * @param id 父节点的 id
13104
13132
  */
13105
- editTreeNode(m) {
13106
- this.isCreateTop = !1, this.isUpdate = !0, this.edit.isShowEdit = !0, this.edit.parent = m.name, this.edit.parentId = m.id, this.edit.row = m, this.$refs.selectParent.selectId = m.parentId;
13133
+ editTreeNode(p) {
13134
+ this.isCreateTop = !1, this.isUpdate = !0, this.edit.isShowEdit = !0, this.edit.parent = p.name, this.edit.parentId = p.id, this.edit.row = p, this.$refs.selectParent.selectId = p.parentId;
13107
13135
  },
13108
13136
  /**
13109
13137
  * 创建顶级节点
@@ -13116,25 +13144,25 @@ const TreeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
13116
13144
  */
13117
13145
  save() {
13118
13146
  if (this.isUpdate) {
13119
- let m = Object.assign({}, this.edit.row);
13120
- delete m._index, delete m._rowKey, delete m.children, delete m._showChildren, m.parentId = this.$refs.selectParent.selectId, xhr_fetch.put(`${this.api.update}`, (f) => {
13147
+ let p = Object.assign({}, this.edit.row);
13148
+ delete p._index, delete p._rowKey, delete p.children, delete p._showChildren, p.parentId = this.$refs.selectParent.selectId, xhr_fetch.put(`${this.api.update}`, (f) => {
13121
13149
  f.status ? (this.getData(), this.$Message.success(f.message)) : this.$Message.error(f.message || "修改失败");
13122
- }, m);
13150
+ }, p);
13123
13151
  } else if (this.isCreateTop)
13124
- this.edit.row.parentId = 0, xhr_fetch.post(`${this.api.create}`, (m) => {
13125
- m.status ? (this.getData(), this.$Message.success(m.message)) : this.$Message.error(m.message || "创建失败");
13152
+ this.edit.row.parentId = 0, xhr_fetch.post(`${this.api.create}`, (p) => {
13153
+ p.status ? (this.getData(), this.$Message.success(p.message)) : this.$Message.error(p.message || "创建失败");
13126
13154
  }, this.edit.row);
13127
13155
  else {
13128
- let m = Object.assign({}, this.edit.row);
13129
- m.parentId = this.$refs.selectParent.selectId, xhr_fetch.post(`${this.api.create}`, (f) => {
13156
+ let p = Object.assign({}, this.edit.row);
13157
+ p.parentId = this.$refs.selectParent.selectId, xhr_fetch.post(`${this.api.create}`, (f) => {
13130
13158
  f.status ? (this.getData(), this.$Message.success(f.message)) : this.$Message.error(f.message || "创建失败");
13131
- }, m);
13159
+ }, p);
13132
13160
  }
13133
13161
  },
13134
- delTreeNode({ id: m }) {
13162
+ delTreeNode({ id: p }) {
13135
13163
  xhr_fetch.del(`${this.api.delete}`, (f) => {
13136
13164
  f.status ? (this.getData(), this.$Message.success(f.message)) : this.$Message.error(f.message || "创建失败");
13137
- }, { id: m });
13165
+ }, { id: p });
13138
13166
  },
13139
13167
  delAllTreeNode() {
13140
13168
  alert(9);
@@ -13146,33 +13174,33 @@ const TreeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
13146
13174
  }
13147
13175
  }
13148
13176
  };
13149
- function tranListToTreeData(m) {
13150
- let f = [], p = {};
13151
- return m.forEach((t) => {
13152
- t.children || (t.children = []), t._showChildren = !0, p[t.id] = t;
13153
- }), m.forEach((t) => {
13154
- let $ = p[t.parentId];
13155
- $ ? $.children.push(t) : f.push(t);
13177
+ function tranListToTreeData(p) {
13178
+ let f = [], m = {};
13179
+ return p.forEach((t) => {
13180
+ t.children || (t.children = []), t._showChildren = !0, m[t.id] = t;
13181
+ }), p.forEach((t) => {
13182
+ let B = m[t.parentId];
13183
+ B ? B.children.push(t) : f.push(t);
13156
13184
  }), f;
13157
13185
  }
13158
13186
  const _hoisted_1 = { style: { "text-align": "center" } }, _hoisted_2 = { key: 0 }, _hoisted_3 = { key: 1 };
13159
- function _sfc_render$1(m, f, p, t, $, O) {
13187
+ function _sfc_render$1(p, f, m, t, B, O) {
13160
13188
  const N = resolveComponent("Button"), S = resolveComponent("Poptip"), ye = resolveComponent("Table"), Ee = resolveComponent("TreeSelector"), _e = resolveComponent("FormItem"), Nt = resolveComponent("Input"), cn = resolveComponent("Form"), He = resolveComponent("Modal");
13161
13189
  return openBlock(), createElementBlock("div", null, [
13162
13190
  createVNode(N, {
13163
13191
  type: "primary",
13164
13192
  style: { "margin-bottom": "10px" },
13165
- onClick: m.createTop
13193
+ onClick: p.createTop
13166
13194
  }, {
13167
13195
  default: withCtx(() => [
13168
- createTextVNode("新建顶级" + toDisplayString(m.name), 1)
13196
+ createTextVNode("新建顶级" + toDisplayString(p.name), 1)
13169
13197
  ]),
13170
13198
  _: 1
13171
13199
  }, 8, ["onClick"]),
13172
13200
  createVNode(ye, {
13173
13201
  "row-key": "id",
13174
- columns: m.columns16,
13175
- data: m.data,
13202
+ columns: p.columns16,
13203
+ data: p.data,
13176
13204
  border: "",
13177
13205
  size: "small"
13178
13206
  }, {
@@ -13181,7 +13209,7 @@ function _sfc_render$1(m, f, p, t, $, O) {
13181
13209
  size: "small",
13182
13210
  icon: "md-add",
13183
13211
  type: "success",
13184
- onClick: (kt) => m.createTreeNode(Ce.name, Ce.id, Ce.parentId)
13212
+ onClick: (kt) => p.createTreeNode(Ce.name, Ce.id, Ce.parentId)
13185
13213
  }, {
13186
13214
  default: withCtx(() => [...f[4] || (f[4] = [
13187
13215
  createTextVNode("新建", -1)
@@ -13192,7 +13220,7 @@ function _sfc_render$1(m, f, p, t, $, O) {
13192
13220
  size: "small",
13193
13221
  icon: "md-create",
13194
13222
  type: "info",
13195
- onClick: (kt) => m.editTreeNode(Ce)
13223
+ onClick: (kt) => p.editTreeNode(Ce)
13196
13224
  }, {
13197
13225
  default: withCtx(() => [...f[5] || (f[5] = [
13198
13226
  createTextVNode("编辑", -1)
@@ -13205,27 +13233,27 @@ function _sfc_render$1(m, f, p, t, $, O) {
13205
13233
  }, {
13206
13234
  content: withCtx(() => [
13207
13235
  f[7] || (f[7] = createElementVNode("b", null, "请选择删除模式:", -1)),
13208
- createElementVNode("p", null, "- 删除该" + toDisplayString(m.name) + ",如有子" + toDisplayString(m.name) + "调整到原父亲" + toDisplayString(m.name) + "上;", 1),
13209
- createElementVNode("p", null, "- 删除该" + toDisplayString(m.name) + "以及所有子" + toDisplayString(m.name) + ",删除该节点并包括下级" + toDisplayString(m.name), 1),
13236
+ createElementVNode("p", null, "- 删除该" + toDisplayString(p.name) + ",如有子" + toDisplayString(p.name) + "调整到原父亲" + toDisplayString(p.name) + "上;", 1),
13237
+ createElementVNode("p", null, "- 删除该" + toDisplayString(p.name) + "以及所有子" + toDisplayString(p.name) + ",删除该节点并包括下级" + toDisplayString(p.name), 1),
13210
13238
  f[8] || (f[8] = createElementVNode("br", null, null, -1)),
13211
13239
  createElementVNode("div", _hoisted_1, [
13212
13240
  createVNode(N, {
13213
13241
  size: "small",
13214
13242
  type: "primary",
13215
- onClick: (kt) => m.delTreeNode(Ce)
13243
+ onClick: (kt) => p.delTreeNode(Ce)
13216
13244
  }, {
13217
13245
  default: withCtx(() => [
13218
- createTextVNode("删除该" + toDisplayString(m.name), 1)
13246
+ createTextVNode("删除该" + toDisplayString(p.name), 1)
13219
13247
  ]),
13220
13248
  _: 1
13221
13249
  }, 8, ["onClick"]),
13222
13250
  createVNode(N, {
13223
13251
  size: "small",
13224
13252
  type: "primary",
13225
- onClick: m.delAllTreeNode
13253
+ onClick: p.delAllTreeNode
13226
13254
  }, {
13227
13255
  default: withCtx(() => [
13228
- createTextVNode("删除所有" + toDisplayString(m.name), 1)
13256
+ createTextVNode("删除所有" + toDisplayString(p.name), 1)
13229
13257
  ]),
13230
13258
  _: 1
13231
13259
  }, 8, ["onClick"])
@@ -13249,51 +13277,51 @@ function _sfc_render$1(m, f, p, t, $, O) {
13249
13277
  _: 1
13250
13278
  }, 8, ["columns", "data"]),
13251
13279
  createVNode(He, {
13252
- modelValue: m.edit.isShowEdit,
13253
- "onUpdate:modelValue": f[3] || (f[3] = (Ce) => m.edit.isShowEdit = Ce),
13254
- title: m.getTitle,
13280
+ modelValue: p.edit.isShowEdit,
13281
+ "onUpdate:modelValue": f[3] || (f[3] = (Ce) => p.edit.isShowEdit = Ce),
13282
+ title: p.getTitle,
13255
13283
  width: "650",
13256
13284
  "ok-text": "保存",
13257
- onOnOk: m.save
13285
+ onOnOk: p.save
13258
13286
  }, {
13259
13287
  default: withCtx(() => [
13260
- m.isCreateTop ? (openBlock(), createElementBlock("p", _hoisted_2, "你将新建顶级的" + toDisplayString(m.name) + "。", 1)) : createCommentVNode("", !0),
13261
- !m.isUpdate && !m.isCreateTop ? (openBlock(), createElementBlock("p", _hoisted_3, "你将在" + toDisplayString(m.name) + "[" + toDisplayString(m.edit.parent) + "]下面传新建子" + toDisplayString(m.name) + "。", 1)) : createCommentVNode("", !0),
13288
+ p.isCreateTop ? (openBlock(), createElementBlock("p", _hoisted_2, "你将新建顶级的" + toDisplayString(p.name) + "。", 1)) : createCommentVNode("", !0),
13289
+ !p.isUpdate && !p.isCreateTop ? (openBlock(), createElementBlock("p", _hoisted_3, "你将在" + toDisplayString(p.name) + "[" + toDisplayString(p.edit.parent) + "]下面传新建子" + toDisplayString(p.name) + "。", 1)) : createCommentVNode("", !0),
13262
13290
  createVNode(cn, {
13263
13291
  "label-width": 100,
13264
- modelValue: m.edit.row,
13265
- "onUpdate:modelValue": f[2] || (f[2] = (Ce) => m.edit.row = Ce),
13292
+ modelValue: p.edit.row,
13293
+ "onUpdate:modelValue": f[2] || (f[2] = (Ce) => p.edit.row = Ce),
13266
13294
  style: { margin: "5%" }
13267
13295
  }, {
13268
13296
  default: withCtx(() => [
13269
13297
  withDirectives(createVNode(_e, {
13270
- label: "父亲" + m.name
13298
+ label: "父亲" + p.name
13271
13299
  }, {
13272
13300
  default: withCtx(() => [
13273
13301
  createVNode(Ee, {
13274
13302
  ref: "selectParent",
13275
- "tree-json": m.data
13303
+ "tree-json": p.data
13276
13304
  }, null, 8, ["tree-json"])
13277
13305
  ]),
13278
13306
  _: 1
13279
13307
  }, 8, ["label"]), [
13280
- [vShow, !m.isCreateTop]
13308
+ [vShow, !p.isCreateTop]
13281
13309
  ]),
13282
13310
  createVNode(_e, {
13283
- label: m.name + "名称",
13311
+ label: p.name + "名称",
13284
13312
  prop: "name"
13285
13313
  }, {
13286
13314
  default: withCtx(() => [
13287
13315
  createVNode(Nt, {
13288
13316
  type: "text",
13289
- modelValue: m.edit.row.name,
13290
- "onUpdate:modelValue": f[0] || (f[0] = (Ce) => m.edit.row.name = Ce),
13317
+ modelValue: p.edit.row.name,
13318
+ "onUpdate:modelValue": f[0] || (f[0] = (Ce) => p.edit.row.name = Ce),
13291
13319
  placeholder: "名称为必填"
13292
13320
  }, null, 8, ["modelValue"])
13293
13321
  ]),
13294
13322
  _: 1
13295
13323
  }, 8, ["label"]),
13296
- (openBlock(!0), createElementBlock(Fragment, null, renderList(m.formFields, (Ce, kt) => (openBlock(), createBlock(_e, {
13324
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(p.formFields, (Ce, kt) => (openBlock(), createBlock(_e, {
13297
13325
  key: kt,
13298
13326
  label: Ce.name,
13299
13327
  prop: Ce.prop
@@ -13301,22 +13329,22 @@ function _sfc_render$1(m, f, p, t, $, O) {
13301
13329
  default: withCtx(() => [
13302
13330
  createVNode(Nt, {
13303
13331
  type: "text",
13304
- modelValue: m.edit.row[Ce.key],
13305
- "onUpdate:modelValue": (un) => m.edit.row[Ce.key] = un,
13332
+ modelValue: p.edit.row[Ce.key],
13333
+ "onUpdate:modelValue": (un) => p.edit.row[Ce.key] = un,
13306
13334
  placeholder: Ce.placeholder
13307
13335
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
13308
13336
  ]),
13309
13337
  _: 2
13310
13338
  }, 1032, ["label", "prop"]))), 128)),
13311
13339
  createVNode(_e, {
13312
- label: m.name + "说明",
13340
+ label: p.name + "说明",
13313
13341
  prop: "content"
13314
13342
  }, {
13315
13343
  default: withCtx(() => [
13316
13344
  createVNode(Nt, {
13317
13345
  type: "textarea",
13318
- modelValue: m.edit.row.content,
13319
- "onUpdate:modelValue": f[1] || (f[1] = (Ce) => m.edit.row.content = Ce),
13346
+ modelValue: p.edit.row.content,
13347
+ "onUpdate:modelValue": f[1] || (f[1] = (Ce) => p.edit.row.content = Ce),
13320
13348
  rows: 4,
13321
13349
  placeholder: "简介、说明、备注,选填"
13322
13350
  }, null, 8, ["modelValue"])
@@ -13363,10 +13391,10 @@ const TreeTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rend
13363
13391
  title: "创建日期",
13364
13392
  align: "center",
13365
13393
  width: 150,
13366
- render(m, { row: f }) {
13394
+ render(p, { row: f }) {
13367
13395
  if (f.createDate) {
13368
- let p = f.createDate.split(":");
13369
- return p.pop(), m("span", p.join(":"));
13396
+ let m = f.createDate.split(":");
13397
+ return m.pop(), p("span", m.join(":"));
13370
13398
  }
13371
13399
  }
13372
13400
  // key: 'createDate'
@@ -13379,15 +13407,15 @@ const TreeTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rend
13379
13407
  };
13380
13408
  }
13381
13409
  };
13382
- function _sfc_render(m, f, p, t, $, O) {
13410
+ function _sfc_render(p, f, m, t, B, O) {
13383
13411
  const N = resolveComponent("TreeTable");
13384
13412
  return openBlock(), createElementBlock("div", null, [
13385
13413
  f[0] || (f[0] = createElementVNode("h1", null, "数据字典", -1)),
13386
13414
  createVNode(N, {
13387
13415
  name: "组织机构",
13388
- list: $.list,
13389
- api: $.api,
13390
- "form-fields": $.formFields
13416
+ list: B.list,
13417
+ api: B.api,
13418
+ "form-fields": B.formFields
13391
13419
  }, null, 8, ["list", "api", "form-fields"])
13392
13420
  ]);
13393
13421
  }