@form-create/element-ui 3.3.3 → 3.3.4

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,33 +1,33 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/element-ui v3.3.3
3
+ * @form-create/element-ui v3.3.4
4
4
  * (c) 2018-2026 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
7
7
  * Released under the MIT License.
8
8
  */
9
9
  (function(){"use strict";try{if(typeof document!="undefined"){var r=document.createElement("style");r.appendChild(document.createTextNode('._fc-frame ._fc-files img{width:100%;height:100%;display:inline-block;vertical-align:top}._fc-frame ._fc-upload-btn{border:1px dashed #c0ccda;cursor:pointer}._fc-frame._fc-disabled ._fc-upload-btn,._fc-frame._fc-disabled .el-button{cursor:not-allowed!important;color:#999}._fc-frame ._fc-upload-cover{opacity:0;position:absolute;inset:0;background:#0009;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}._fc-frame ._fc-upload-cover i{color:#fff;font-size:20px;cursor:pointer;margin:0 2px}._fc-frame ._fc-files:hover ._fc-upload-cover{opacity:1}._fc-frame .el-upload{display:block}._fc-frame ._fc-upload-icon{cursor:pointer}._fc-frame ._fc-upload-btn,._fc-files{display:inline-block;width:58px;height:58px;text-align:center;line-height:58px;border:1px solid #c0ccda;border-radius:4px;overflow:hidden;background:#fff;position:relative;-webkit-box-shadow:2px 2px 5px rgba(0,0,0,.1);box-shadow:2px 2px 5px #0000001a;margin-right:4px;-webkit-box-sizing:border-box;box-sizing:border-box}._fc-upload{width:100%}._fc-exceed .el-upload{display:none}.el-upload-list.is-disabled .el-upload{cursor:not-allowed!important}._fc-group{display:flex;min-height:38px;justify-content:center;flex-direction:column;width:100%}._fc-group-disabled ._fc-group-btn,._fc-group-disabled ._fc-group-add{cursor:not-allowed}._fc-group-handle{display:flex;flex-direction:row;position:absolute;bottom:-15px;right:30px;border-radius:15px;border:1px dashed #d9d9d9;padding:3px 8px;background-color:#fff}._fc-group-btn{cursor:pointer}._fc-group-idx{position:absolute;bottom:-15px;left:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#eee;border-radius:15px;font-weight:700}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{position:relative;display:flex;flex-direction:column;border:1px dashed #d9d9d9;border-radius:5px;margin:5px 5px 25px;padding:20px 20px 25px}._fc-group-arrow{position:relative;width:20px;height:20px}._fc-group-arrow:before{content:"";position:absolute;top:8px;left:5px;width:9px;height:9px;border-left:2px solid #999;border-top:2px solid #999}._fc-group-arrow:before{transform:rotate(45deg)}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{width:20px;height:20px;position:relative;cursor:pointer}._fc-group-plus-minus:before,._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:60%;height:2px;background-color:#409eff;transform:translate(-50%,-50%)}._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group-plus-minus._fc-group-minus:after{background-color:#f56c6c}._fc-group-add{cursor:pointer;width:25px;height:25px;border:1px solid rgb(64 158 255 / 50%);border-radius:15px}._fc-group-add._fc-group-plus-minus:before,._fc-group-add._fc-group-plus-minus:after{width:50%}._fc-group._fc-group-card{display:flex;flex-direction:column;width:100%;gap:16px}._fc-group._fc-group-card._fc-group-disabled ._fc-group-btn,._fc-group._fc-group-card._fc-group-disabled ._fc-group-add{cursor:not-allowed;opacity:.5}._fc-group._fc-group-card ._fc-group-container{position:relative;background:#fff;border:1px solid #f0f0f0;border-radius:6px;overflow:hidden;display:flex;flex-direction:column;padding:0;margin:0}._fc-group._fc-group-card ._fc-group-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 12px;border-bottom:1px solid #f0f0f0;background:#fafafa}._fc-group._fc-group-card ._fc-group-idx{display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:#f0f0f0;color:#666;border-radius:6px;font-size:12px;font-weight:500;margin-right:12px;flex-shrink:0;position:static;border:1px solid #e0e0e0}._fc-group._fc-group-card ._fc-group-title{flex:1;font-size:14px;font-weight:500;color:#000000d9;line-height:1.5715}._fc-group._fc-group-card ._fc-group-handle{display:flex;align-items:center;gap:4px;margin-left:12px;flex-shrink:0;position:static;bottom:auto;right:auto;border-radius:0;border:none;padding:0;background-color:transparent;flex-direction:row}._fc-group._fc-group-card ._fc-group-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:4px;border:1px solid #d9d9d9;background:#fff;color:#00000073;position:relative}._fc-group._fc-group-card ._fc-group-btn:hover{color:#1890ff;border-color:#1890ff;background:#f0f8ff}._fc-group._fc-group-card ._fc-group-btn:active{color:#096dd9;border-color:#096dd9}._fc-group._fc-group-card ._fc-group-arrow{position:relative}._fc-group._fc-group-card ._fc-group-arrow:before{content:"";position:absolute;top:50%;left:50%;width:5px;height:5px;border-left:1px solid currentColor;border-top:1px solid currentColor;transform:translate(-50%,-50%) rotate(45deg)}._fc-group._fc-group-card ._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group._fc-group-card ._fc-group-sort{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:24px}._fc-group._fc-group-card ._fc-group-sort:before,._fc-group._fc-group-card ._fc-group-sort:after{content:"";position:absolute;left:50%;width:4px;height:4px;border-left:1px solid currentColor;border-top:1px solid currentColor;transform:translate(-50%)}._fc-group._fc-group-card ._fc-group-sort:before{top:6px;transform:translate(-50%) rotate(45deg)}._fc-group._fc-group-card ._fc-group-sort:after{bottom:6px;transform:translate(-50%) rotate(225deg)}._fc-group._fc-group-card ._fc-group-sort-up,._fc-group._fc-group-card ._fc-group-sort-down{position:absolute;left:0;right:0;height:12px;cursor:pointer;z-index:1}._fc-group._fc-group-card ._fc-group-sort-up{top:0}._fc-group._fc-group-card ._fc-group-sort-down{bottom:0}._fc-group._fc-group-card ._fc-group-sort-up:hover,._fc-group._fc-group-card ._fc-group-sort-down:hover{background:#1890ff1a}._fc-group._fc-group-card ._fc-group-plus-minus{position:relative;background:#409eff;border-color:#409eff;color:#fff;width:24px;height:24px}._fc-group._fc-group-card ._fc-group-plus-minus:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}._fc-group._fc-group-card ._fc-group-plus-minus:before,._fc-group._fc-group-card ._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:8px;height:1px;background-color:currentColor;transform:translate(-50%,-50%)}._fc-group._fc-group-card ._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group._fc-group-card ._fc-group-plus-minus._fc-group-minus{background:#f56c6c;border-color:#f56c6c}._fc-group._fc-group-card ._fc-group-plus-minus._fc-group-minus:hover{background:#f78989;border-color:#f78989}._fc-group._fc-group-card ._fc-group-plus-minus._fc-group-minus:before{display:none}._fc-group._fc-group-card ._fc-group-content{padding:20px}._fc-group._fc-group-card ._fc-group-add{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:4px;border:1px solid #d9d9d9;background:#fff;color:#00000073;position:relative}._fc-group._fc-group-card ._fc-group-add:hover{color:#409eff;border-color:#409eff;background:#f0f8ff}._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus{width:24px;height:24px;background:#409eff;border-color:#409eff;color:#fff}._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus:before,._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus:after{content:"";position:absolute;top:50%;left:50%;width:8px;height:1px;background-color:currentColor;transform:translate(-50%,-50%)}._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-group._fc-group-card ._fc-group-empty{text-align:center;padding:40px 20px;color:#00000073;font-size:14px}@media (max-width: 768px){._fc-group._fc-group-card ._fc-group-container{margin:0 -8px;border-radius:0;border-left:none;border-right:none}._fc-group._fc-group-card ._fc-group-header{padding:12px 16px 8px}._fc-group._fc-group-card ._fc-group-content{padding:16px}._fc-group._fc-group-card ._fc-group-handle{gap:2px}._fc-group._fc-group-card ._fc-group-btn{width:22px;height:22px}}.form-create .form-create .el-form-item{margin-bottom:22px}.form-create{width:100%}.form-create.is-preview .fc-clock,.form-create .fc-none,.form-create.is-preview .el-form-item.is-required>.el-form-item__label-wrap>.el-form-item__label:before,.form-create.is-preview .el-form-item.is-required>.el-form-item__label:before{display:none!important}.fc-wrap-right>.el-form-item__label{display:flex;justify-content:flex-end}.fc-wrap-left>.el-form-item__label{display:flex;justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item>.el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left;float:unset}.el-form--large .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item>.el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item>.el-form-item__label{line-height:20px;margin-bottom:4px}.fc-form-footer{margin-top:12px}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
10
- var vr = Object.defineProperty, _r = Object.defineProperties;
11
- var wr = Object.getOwnPropertyDescriptors;
10
+ var $r = Object.defineProperty, vr = Object.defineProperties;
11
+ var _r = Object.getOwnPropertyDescriptors;
12
12
  var gt = Object.getOwnPropertySymbols;
13
- var Cr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable;
14
- var yt = (t, e, r) => e in t ? vr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e) => {
13
+ var wr = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable;
14
+ var yt = (t, e, r) => e in t ? $r(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
- Cr.call(e, r) && yt(t, r, e[r]);
16
+ wr.call(e, r) && yt(t, r, e[r]);
17
17
  if (gt)
18
18
  for (var r of gt(e))
19
- Sr.call(e, r) && yt(t, r, e[r]);
19
+ Cr.call(e, r) && yt(t, r, e[r]);
20
20
  return t;
21
- }, z = (t, e) => _r(t, wr(e));
22
- import { defineComponent as re, resolveComponent as O, createVNode as v, mergeProps as x, toRef as L, ref as ot, watch as B, computed as se, openBlock as U, createElementBlock as X, createElementVNode as de, nextTick as I, createBlock as Te, withCtx as bt, Fragment as Ye, renderList as $t, renderSlot as Vr, markRaw as fe, reactive as Z, isVNode as Fr, getCurrentInstance as tt, provide as Or, inject as Er, toRefs as vt, onBeforeMount as Rr, watchEffect as kr, onMounted as Dr, onBeforeUnmount as Ar, onUpdated as jr, withDirectives as Ir, resolveDirective as Pr, createApp as Br, h as Tr } from "vue";
21
+ }, z = (t, e) => vr(t, _r(e));
22
+ import { defineComponent as re, resolveComponent as O, createVNode as v, mergeProps as x, toRef as L, ref as ot, watch as B, computed as se, openBlock as U, createElementBlock as X, createElementVNode as de, nextTick as I, createBlock as Te, withCtx as bt, Fragment as Ye, renderList as $t, renderSlot as Sr, markRaw as fe, reactive as Z, isVNode as Vr, getCurrentInstance as tt, provide as Fr, inject as Or, toRefs as vt, onBeforeMount as Er, watchEffect as Rr, onMounted as kr, onBeforeUnmount as Dr, onUpdated as Ar, withDirectives as jr, resolveDirective as Ir, createApp as Pr, h as Br } from "vue";
23
23
  function at(t, e) {
24
24
  return Object.keys(t).reduce((r, n) => ((!e || e.indexOf(n) === -1) && (r[n] = t[n]), r), {});
25
25
  }
26
26
  function q(t) {
27
27
  return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
28
28
  }
29
- const Lr = "fcCheckbox", Mr = /* @__PURE__ */ re({
30
- name: Lr,
29
+ const Tr = "fcCheckbox", Lr = /* @__PURE__ */ re({
30
+ name: Tr,
31
31
  inheritAttrs: !1,
32
32
  props: {
33
33
  formCreateInject: Object,
@@ -118,7 +118,7 @@ const Lr = "fcCheckbox", Mr = /* @__PURE__ */ re({
118
118
  this.$emit("fc.el", this.$refs.el);
119
119
  }
120
120
  });
121
- function Ut(t) {
121
+ function Nt(t) {
122
122
  t = t || /* @__PURE__ */ new Map();
123
123
  const e = {
124
124
  $on(r, n) {
@@ -147,15 +147,15 @@ const me = (t, e) => {
147
147
  for (const [n, s] of e)
148
148
  r[n] = s;
149
149
  return r;
150
- }, Nr = {
150
+ }, Mr = {
151
151
  name: "IconCircleClose"
152
- }, Ur = {
152
+ }, Nr = {
153
153
  class: "icon",
154
154
  viewBox: "0 0 1024 1024",
155
155
  xmlns: "http://www.w3.org/2000/svg"
156
156
  };
157
- function qr(t, e, r, n, s, i) {
158
- return U(), X("svg", Ur, [...e[0] || (e[0] = [
157
+ function Ur(t, e, r, n, s, i) {
158
+ return U(), X("svg", Nr, [...e[0] || (e[0] = [
159
159
  de("path", {
160
160
  fill: "currentColor",
161
161
  d: "M466.752 512l-90.496-90.496a32 32 0 0145.248-45.248L512 466.752l90.496-90.496a32 32 0 1145.248 45.248L557.248 512l90.496 90.496a32 32 0 11-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 01-45.248-45.248L466.752 512z"
@@ -166,68 +166,68 @@ function qr(t, e, r, n, s, i) {
166
166
  }, null, -1)
167
167
  ])]);
168
168
  }
169
- const Hr = /* @__PURE__ */ me(Nr, [["render", qr]]), zr = {
169
+ const qr = /* @__PURE__ */ me(Mr, [["render", Ur]]), Hr = {
170
170
  name: "IconDocument"
171
- }, xr = {
171
+ }, zr = {
172
172
  class: "icon",
173
173
  viewBox: "0 0 1024 1024",
174
174
  xmlns: "http://www.w3.org/2000/svg"
175
175
  };
176
- function Gr(t, e, r, n, s, i) {
177
- return U(), X("svg", xr, [...e[0] || (e[0] = [
176
+ function xr(t, e, r, n, s, i) {
177
+ return U(), X("svg", zr, [...e[0] || (e[0] = [
178
178
  de("path", {
179
179
  fill: "currentColor",
180
180
  d: "M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 01-32 32H160a32 32 0 01-32-32V96a32 32 0 0132-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"
181
181
  }, null, -1)
182
182
  ])]);
183
183
  }
184
- const Yr = /* @__PURE__ */ me(zr, [["render", Gr]]), Kr = {
184
+ const Gr = /* @__PURE__ */ me(Hr, [["render", xr]]), Yr = {
185
185
  name: "IconDelete"
186
- }, Wr = {
186
+ }, Kr = {
187
187
  class: "icon",
188
188
  viewBox: "0 0 1024 1024",
189
189
  xmlns: "http://www.w3.org/2000/svg"
190
190
  };
191
- function Jr(t, e, r, n, s, i) {
192
- return U(), X("svg", Wr, [...e[0] || (e[0] = [
191
+ function Wr(t, e, r, n, s, i) {
192
+ return U(), X("svg", Kr, [...e[0] || (e[0] = [
193
193
  de("path", {
194
194
  fill: "currentColor",
195
195
  d: "M160 256H96a32 32 0 010-64h256V95.936a32 32 0 0132-32h256a32 32 0 0132 32V192h256a32 32 0 110 64h-64v672a32 32 0 01-32 32H192a32 32 0 01-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32zm192 0a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32z"
196
196
  }, null, -1)
197
197
  ])]);
198
198
  }
199
- const Qr = /* @__PURE__ */ me(Kr, [["render", Jr]]), Xr = {
199
+ const Jr = /* @__PURE__ */ me(Yr, [["render", Wr]]), Qr = {
200
200
  name: "IconView"
201
- }, Zr = {
201
+ }, Xr = {
202
202
  class: "icon",
203
203
  viewBox: "0 0 1024 1024",
204
204
  xmlns: "http://www.w3.org/2000/svg"
205
205
  };
206
- function en(t, e, r, n, s, i) {
207
- return U(), X("svg", Zr, [...e[0] || (e[0] = [
206
+ function Zr(t, e, r, n, s, i) {
207
+ return U(), X("svg", Xr, [...e[0] || (e[0] = [
208
208
  de("path", {
209
209
  fill: "currentColor",
210
210
  d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 110 448 224 224 0 010-448zm0 64a160.192 160.192 0 00-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"
211
211
  }, null, -1)
212
212
  ])]);
213
213
  }
214
- const tn = /* @__PURE__ */ me(Xr, [["render", en]]), rn = {
214
+ const en = /* @__PURE__ */ me(Qr, [["render", Zr]]), tn = {
215
215
  name: "IconFolderOpened"
216
- }, nn = {
216
+ }, rn = {
217
217
  class: "icon",
218
218
  viewBox: "0 0 1024 1024",
219
219
  xmlns: "http://www.w3.org/2000/svg"
220
220
  };
221
- function sn(t, e, r, n, s, i) {
222
- return U(), X("svg", nn, [...e[0] || (e[0] = [
221
+ function nn(t, e, r, n, s, i) {
222
+ return U(), X("svg", rn, [...e[0] || (e[0] = [
223
223
  de("path", {
224
224
  fill: "currentColor",
225
225
  d: "M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 01216.96 384H832zm-24.96 512H96a32 32 0 01-32-32V160a32 32 0 0132-32h287.872l128.384 128H864a32 32 0 0132 32v96h23.04a32 32 0 0131.04 39.744l-112 448A32 32 0 01807.04 896z"
226
226
  }, null, -1)
227
227
  ])]);
228
228
  }
229
- const on = /* @__PURE__ */ me(rn, [["render", sn]]), an = "fcFrame", ln = /* @__PURE__ */ re({
230
- name: an,
229
+ const sn = /* @__PURE__ */ me(tn, [["render", nn]]), on = "fcFrame", an = /* @__PURE__ */ re({
230
+ name: on,
231
231
  props: {
232
232
  type: {
233
233
  type: String,
@@ -338,8 +338,8 @@ const on = /* @__PURE__ */ me(rn, [["render", sn]]), an = "fcFrame", ln = /* @__
338
338
  },
339
339
  emits: ["update:modelValue", "change"],
340
340
  components: {
341
- IconFolderOpened: on,
342
- IconView: tn
341
+ IconFolderOpened: sn,
342
+ IconView: en
343
343
  },
344
344
  data() {
345
345
  return {
@@ -347,7 +347,7 @@ const on = /* @__PURE__ */ me(rn, [["render", sn]]), an = "fcFrame", ln = /* @__
347
347
  previewVisible: !1,
348
348
  frameVisible: !1,
349
349
  previewImage: "",
350
- bus: new Ut()
350
+ bus: new Nt()
351
351
  };
352
352
  },
353
353
  watch: {
@@ -390,7 +390,7 @@ const on = /* @__PURE__ */ me(rn, [["render", sn]]), an = "fcFrame", ln = /* @__
390
390
  this.fileList = [], this.input();
391
391
  }
392
392
  }, {
393
- default: () => [v(Hr, null, null)]
393
+ default: () => [v(qr, null, null)]
394
394
  }) : null
395
395
  });
396
396
  },
@@ -433,14 +433,14 @@ const on = /* @__PURE__ */ me(rn, [["render", sn]]), an = "fcFrame", ln = /* @__
433
433
  onClick: () => this.handleRemove(t),
434
434
  key: "6" + e
435
435
  }, {
436
- default: () => [v(Qr, null, null)]
436
+ default: () => [v(Jr, null, null)]
437
437
  });
438
438
  },
439
439
  makeFiles() {
440
440
  return this.makeGroup(this.fileList.map((t, e) => this.makeItem(e, [v(O("ElIcon"), {
441
441
  onClick: () => this.handleClick(t)
442
442
  }, {
443
- default: () => [v(Yr, null, null)]
443
+ default: () => [v(Gr, null, null)]
444
444
  }), this.makeIcons(t, e)])));
445
445
  },
446
446
  makeImages() {
@@ -576,8 +576,8 @@ const on = /* @__PURE__ */ me(rn, [["render", sn]]), an = "fcFrame", ln = /* @__
576
576
  } = this.formCreateInject;
577
577
  t && r.off("fc:closeModal:" + t, this.close), e && r.off("fc:closeModal:" + e, this.close);
578
578
  }
579
- }), un = "fcRadio", fn = /* @__PURE__ */ re({
580
- name: un,
579
+ }), ln = "fcRadio", un = /* @__PURE__ */ re({
580
+ name: ln,
581
581
  inheritAttrs: !1,
582
582
  props: {
583
583
  formCreateInject: Object,
@@ -696,8 +696,8 @@ const on = /* @__PURE__ */ me(rn, [["render", sn]]), an = "fcFrame", ln = /* @__
696
696
  function D(t, e) {
697
697
  return {}.hasOwnProperty.call(t, e);
698
698
  }
699
- const cn = "fcSelect", dn = re({
700
- name: cn,
699
+ const fn = "fcSelect", cn = re({
700
+ name: fn,
701
701
  inheritAttrs: !1,
702
702
  props: {
703
703
  formCreateInject: Object,
@@ -724,7 +724,7 @@ const cn = "fcSelect", dn = re({
724
724
  this.$emit("fc.el", this.$refs.el);
725
725
  }
726
726
  });
727
- function hn(t, e, r, n, s, i) {
727
+ function dn(t, e, r, n, s, i) {
728
728
  const o = O("el-option"), a = O("el-option-group"), l = O("el-select");
729
729
  return U(), Te(l, x(t.$attrs, {
730
730
  "model-value": t.value,
@@ -747,13 +747,13 @@ function hn(t, e, r, n, s, i) {
747
747
  key: `${f}-${u.value}`
748
748
  }, { ref_for: !0 }, u), null, 16))
749
749
  ], 64))), 256)),
750
- Vr(t.$slots, "default")
750
+ Sr(t.$slots, "default")
751
751
  ]),
752
752
  _: 3
753
753
  }, 16, ["model-value", "onUpdate:modelValue"]);
754
754
  }
755
- const pn = /* @__PURE__ */ me(dn, [["render", hn]]), mn = "fcTree", gn = /* @__PURE__ */ re({
756
- name: mn,
755
+ const hn = /* @__PURE__ */ me(cn, [["render", dn]]), pn = "fcTree", mn = /* @__PURE__ */ re({
756
+ name: pn,
757
757
  inheritAttrs: !1,
758
758
  formCreateParser: {
759
759
  mergeProp(t) {
@@ -797,27 +797,27 @@ const pn = /* @__PURE__ */ me(dn, [["render", hn]]), mn = "fcTree", gn = /* @__P
797
797
  mounted() {
798
798
  this.setValue(), this.$emit("fc.el", this.$refs.tree);
799
799
  }
800
- }), yn = {
800
+ }), gn = {
801
801
  name: "IconUpload"
802
- }, bn = {
802
+ }, yn = {
803
803
  class: "icon",
804
804
  viewBox: "0 0 1024 1024",
805
805
  xmlns: "http://www.w3.org/2000/svg"
806
806
  };
807
- function $n(t, e, r, n, s, i) {
808
- return U(), X("svg", bn, [...e[0] || (e[0] = [
807
+ function bn(t, e, r, n, s, i) {
808
+ return U(), X("svg", yn, [...e[0] || (e[0] = [
809
809
  de("path", {
810
810
  fill: "currentColor",
811
811
  d: "M160 832h704a32 32 0 110 64H160a32 32 0 110-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"
812
812
  }, null, -1)
813
813
  ])]);
814
814
  }
815
- const vn = /* @__PURE__ */ me(yn, [["render", $n]]);
815
+ const $n = /* @__PURE__ */ me(gn, [["render", bn]]);
816
816
  function _t(t, e) {
817
817
  return typeof t == "object" ? t : {
818
818
  url: t,
819
819
  is_string: !0,
820
- name: _n(t),
820
+ name: vn(t),
821
821
  uid: e
822
822
  };
823
823
  }
@@ -827,11 +827,11 @@ function wt(t) {
827
827
  value: t
828
828
  });
829
829
  }
830
- function _n(t) {
830
+ function vn(t) {
831
831
  return ("" + t).split("/").pop();
832
832
  }
833
- const wn = "fcUpload", Cn = /* @__PURE__ */ re({
834
- name: wn,
833
+ const _n = "fcUpload", wn = /* @__PURE__ */ re({
834
+ name: _n,
835
835
  inheritAttrs: !1,
836
836
  formCreateParser: {
837
837
  toFormValue(t) {
@@ -911,7 +911,7 @@ const wn = "fcUpload", Cn = /* @__PURE__ */ re({
911
911
  default: () => {
912
912
  var e, r;
913
913
  return [((r = (e = this.$slots).default) == null ? void 0 : r.call(e)) || (["text", "picture"].indexOf(this.listType) === -1 ? v(O("ElIcon"), null, {
914
- default: () => [v(vn, null, null)]
914
+ default: () => [v($n, null, null)]
915
915
  }) : v(O("ElButton"), {
916
916
  type: "primary"
917
917
  }, {
@@ -968,14 +968,14 @@ function Ae(t, e = {}, r) {
968
968
  function ee(t) {
969
969
  return Ae({}, { value: t }).value;
970
970
  }
971
- const Sn = Object.assign || function(t) {
971
+ const Cn = Object.assign || function(t) {
972
972
  for (let e, r = 1; r < arguments.length; r++)
973
973
  for (let n in e = arguments[r], e)
974
974
  Object.prototype.hasOwnProperty.call(e, n) && K(t, n, e[n]);
975
975
  return t;
976
976
  };
977
977
  function w() {
978
- return Sn.apply(this, arguments);
978
+ return Cn.apply(this, arguments);
979
979
  }
980
980
  function rt(t) {
981
981
  return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : _({}, t);
@@ -986,29 +986,29 @@ function ce(t, e) {
986
986
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...n), e);
987
987
  };
988
988
  }
989
- function qt(t) {
989
+ function Ut(t) {
990
990
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
991
991
  }
992
- function Vn(t) {
992
+ function Sn(t) {
993
993
  return t && typeof t == "object" && typeof t.then == "function";
994
994
  }
995
995
  function qe(t) {
996
- return Vn(t) ? t : Promise.resolve(t);
996
+ return Sn(t) ? t : Promise.resolve(t);
997
997
  }
998
998
  function ke(t) {
999
999
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1000
1000
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1001
1001
  }
1002
- function Ht(t) {
1002
+ function qt(t) {
1003
1003
  return t.replace(t[0], t[0].toLocaleUpperCase());
1004
1004
  }
1005
- function zt(t, e, r) {
1005
+ function Ht(t, e, r) {
1006
1006
  return `[form-create ${t}]: ${e}`;
1007
1007
  }
1008
1008
  function lt(t, e) {
1009
- console.error(zt("err", t));
1009
+ console.error(Ht("err", t));
1010
1010
  }
1011
- function Fn(t) {
1011
+ function Vn(t) {
1012
1012
  lt(t.toString()), console.error(t);
1013
1013
  }
1014
1014
  const nt = "[[FORM-CREATE-PREFIX-", it = "-FORM-CREATE-SUFFIX]]";
@@ -1068,14 +1068,14 @@ err: ${s}`);
1068
1068
  }
1069
1069
  return t;
1070
1070
  }
1071
- function xt(t, e) {
1071
+ function zt(t, e) {
1072
1072
  return JSON.parse(t, function(r, n) {
1073
1073
  return m.Undef(n) || !n.indexOf ? n : te(n, e);
1074
1074
  });
1075
1075
  }
1076
- let On = 0;
1076
+ let Fn = 0;
1077
1077
  function He() {
1078
- const t = 370 + ++On;
1078
+ const t = 370 + ++Fn;
1079
1079
  return "F" + Math.random().toString(36).substr(3, 3) + (+`${Date.now()}`).toString(36) + t.toString(36) + "c";
1080
1080
  }
1081
1081
  function he(t, e, r) {
@@ -1084,8 +1084,8 @@ function he(t, e, r) {
1084
1084
  s && ((!n[s] || typeof n[s] != "object") && (n[s] = {}), n = n[s]), s = i;
1085
1085
  }), n[s] = r, n;
1086
1086
  }
1087
- const En = "fcGroup", Rn = /* @__PURE__ */ re({
1088
- name: En,
1087
+ const On = "fcGroup", En = /* @__PURE__ */ re({
1088
+ name: On,
1089
1089
  props: {
1090
1090
  field: String,
1091
1091
  rule: Array,
@@ -1410,8 +1410,8 @@ const En = "fcGroup", Rn = /* @__PURE__ */ re({
1410
1410
  class: "_fc-group " + (n ? "_fc-group-disabled" : "") + (s ? " _fc-group-card" : "")
1411
1411
  }, [i]);
1412
1412
  }
1413
- }), kn = "fcSubForm", Dn = /* @__PURE__ */ re({
1414
- name: kn,
1413
+ }), Rn = "fcSubForm", kn = /* @__PURE__ */ re({
1414
+ name: Rn,
1415
1415
  props: {
1416
1416
  rule: Array,
1417
1417
  options: {
@@ -1474,33 +1474,33 @@ const En = "fcGroup", Rn = /* @__PURE__ */ re({
1474
1474
  extendOption: !0
1475
1475
  }, null);
1476
1476
  }
1477
- }), An = {
1477
+ }), Dn = {
1478
1478
  name: "IconWarning"
1479
- }, jn = {
1479
+ }, An = {
1480
1480
  class: "icon",
1481
1481
  viewBox: "0 0 1024 1024",
1482
1482
  xmlns: "http://www.w3.org/2000/svg"
1483
1483
  };
1484
- function In(t, e, r, n, s, i) {
1485
- return U(), X("svg", jn, [...e[0] || (e[0] = [
1484
+ function jn(t, e, r, n, s, i) {
1485
+ return U(), X("svg", An, [...e[0] || (e[0] = [
1486
1486
  de("path", {
1487
1487
  fill: "currentColor",
1488
1488
  d: "M512 64a448 448 0 110 896 448 448 0 010-896zm0 832a384 384 0 000-768 384 384 0 000 768zm48-176a48 48 0 11-96 0 48 48 0 0196 0zm-48-464a32 32 0 0132 32v288a32 32 0 01-64 0V288a32 32 0 0132-32z"
1489
1489
  }, null, -1)
1490
1490
  ])]);
1491
1491
  }
1492
- const Pn = /* @__PURE__ */ me(An, [["render", In]]), Bn = [
1493
- Mr,
1494
- ln,
1495
- fn,
1496
- pn,
1497
- gn,
1498
- Cn,
1499
- Rn,
1500
- Dn,
1501
- Pn
1502
- ], Gt = ["props"], Yt = ["class", "style", "directives"], Kt = ["on", "hook"], oe = (t, e = {}, r = {}) => {
1503
- const n = [...Gt, ...r.normal || []], s = [...Yt, ...r.array || []], i = [...Kt, ...r.functional || []], o = r.props || [];
1492
+ const In = /* @__PURE__ */ me(Dn, [["render", jn]]), Pn = [
1493
+ Lr,
1494
+ an,
1495
+ un,
1496
+ hn,
1497
+ mn,
1498
+ wn,
1499
+ En,
1500
+ kn,
1501
+ In
1502
+ ], xt = ["props"], Gt = ["class", "style", "directives"], Yt = ["on", "hook"], oe = (t, e = {}, r = {}) => {
1503
+ const n = [...xt, ...r.normal || []], s = [...Gt, ...r.array || []], i = [...Yt, ...r.functional || []], o = r.props || [];
1504
1504
  return t.reduce((a, l) => {
1505
1505
  for (const u in l)
1506
1506
  if (a[u])
@@ -1520,26 +1520,26 @@ const Pn = /* @__PURE__ */ me(An, [["render", In]]), Bn = [
1520
1520
  a[u][f] = l[u][f];
1521
1521
  else if (u === "hook")
1522
1522
  for (let f in l[u])
1523
- a[u][f] ? a[u][f] = Tn(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1523
+ a[u][f] ? a[u][f] = Bn(a[u][f], l[u][f]) : a[u][f] = l[u][f];
1524
1524
  else
1525
1525
  a[u] = l[u];
1526
1526
  else
1527
1527
  n.indexOf(u) > -1 || i.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = _({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? _({}, l[u]) : l[u] : a[u] = l[u];
1528
1528
  return a;
1529
1529
  }, e);
1530
- }, Tn = (t, e) => function() {
1530
+ }, Bn = (t, e) => function() {
1531
1531
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1532
- }, Wt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache", "modelEmit"], ut = ["validate", "children", "control"], ft = ["effect", "deep", "renderSlots"];
1533
- function Jt() {
1534
- return [...Wt, ...Gt, ...Yt, ...Kt, ...ut, ...ft];
1532
+ }, Kt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache", "modelEmit"], ut = ["validate", "children", "control"], ft = ["effect", "deep", "renderSlots"];
1533
+ function Wt() {
1534
+ return [...Kt, ...xt, ...Gt, ...Yt, ...ut, ...ft];
1535
1535
  }
1536
1536
  function H(t) {
1537
1537
  const e = t.replace(/(-[a-z])/g, function(r) {
1538
1538
  return r.replace("-", "").toLocaleUpperCase();
1539
1539
  });
1540
- return Qt(e);
1540
+ return Jt(e);
1541
1541
  }
1542
- function Qt(t) {
1542
+ function Jt(t) {
1543
1543
  return t.replace(t[0], t[0].toLowerCase());
1544
1544
  }
1545
1545
  function st(t, e) {
@@ -1550,26 +1550,26 @@ function st(t, e) {
1550
1550
  writable: !0
1551
1551
  };
1552
1552
  }
1553
- function Xt(t, e) {
1554
- return Zt([t], e || !1)[0];
1553
+ function Qt(t, e) {
1554
+ return Xt([t], e || !1)[0];
1555
1555
  }
1556
- function Zt(t, e) {
1556
+ function Xt(t, e) {
1557
1557
  return Ae([], [...t], e || !1);
1558
1558
  }
1559
- const Ln = { array: ut, normal: ft };
1559
+ const Tn = { array: ut, normal: ft };
1560
1560
  function ae(t, e) {
1561
- return oe(Array.isArray(e) ? e : [e], t, Ln), t;
1561
+ return oe(Array.isArray(e) ? e : [e], t, Tn), t;
1562
1562
  }
1563
1563
  function Ct(t) {
1564
1564
  const e = m.Function(t.getRule) ? t.getRule() : t;
1565
1565
  return e.type || (e.type = "input"), e;
1566
1566
  }
1567
- function Mn(t, e) {
1567
+ function Ln(t, e) {
1568
1568
  return t ? (Object.keys(e || {}).forEach((r) => {
1569
1569
  e[r] && (t[r] = ae(t[r] || {}, e[r]));
1570
1570
  }), t) : e;
1571
1571
  }
1572
- function er(t, e) {
1572
+ function Zt(t, e) {
1573
1573
  Object.defineProperties(t, Object.keys(e).reduce((r, n) => (r[n] = {
1574
1574
  get() {
1575
1575
  return e[n]();
@@ -1583,7 +1583,7 @@ function V(t, e) {
1583
1583
  try {
1584
1584
  e = t();
1585
1585
  } catch (r) {
1586
- Fn(r);
1586
+ Vn(r);
1587
1587
  }
1588
1588
  return e;
1589
1589
  }
@@ -1617,7 +1617,7 @@ function Le() {
1617
1617
  mergeBag(r) {
1618
1618
  if (!r) return this;
1619
1619
  const n = m.Function(r.getSlots) ? r.getSlots() : r;
1620
- return Array.isArray(r) || Fr(r) ? this.setSlot(void 0, () => r) : Object.keys(n).forEach((s) => {
1620
+ return Array.isArray(r) || Vr(r) ? this.setSlot(void 0, () => r) : Object.keys(n).forEach((s) => {
1621
1621
  this.setSlot(s, n[s]);
1622
1622
  }), this;
1623
1623
  }
@@ -1627,7 +1627,7 @@ function St(t) {
1627
1627
  const e = _({}, t.props || {});
1628
1628
  return Object.keys(t.on || {}).forEach((r) => {
1629
1629
  r.indexOf("-") > 0 && (r = H(r));
1630
- const n = `on${Ht(r)}`;
1630
+ const n = `on${qt(r)}`;
1631
1631
  Array.isArray(e[n]) ? e[n] = [...e[n], t.on[r]] : e[n] ? e[n] = [e[n], t.on[r]] : e[n] = t.on[r];
1632
1632
  }), e.key = t.key, e.ref = t.ref, e.class = t.class, e.id = t.id, e.style = t.style, e.slot && delete e.slot, e;
1633
1633
  }
@@ -1674,7 +1674,7 @@ function M(t, e) {
1674
1674
  t != null && (t = t[r]);
1675
1675
  }), t;
1676
1676
  }
1677
- function Nn(t) {
1677
+ function Mn(t) {
1678
1678
  const e = /{{\s*(.*?)\s*}}/g;
1679
1679
  let r;
1680
1680
  const n = {};
@@ -1688,14 +1688,14 @@ function Ft(t) {
1688
1688
  i === 0 ? n = s : n += "." + s, r.push(n);
1689
1689
  }), r.join(" && ");
1690
1690
  }
1691
- function tr(t) {
1691
+ function er(t) {
1692
1692
  const e = [];
1693
1693
  let r = "", n = 0;
1694
1694
  for (let s = 0; s < t.length; s++) {
1695
1695
  const i = t[s];
1696
1696
  i === "[" ? (n === 0 && r && (e.push({ type: "key", value: r }), r = ""), n++, r += i) : i === "]" ? (n--, r += i, n === 0 && (e.push({
1697
1697
  type: "bracket",
1698
- value: tr(r.slice(1, -1))
1698
+ value: er(r.slice(1, -1))
1699
1699
  }), r = "")) : i === "." && n === 0 ? r && (e.push({ type: "key", value: r }), r = "") : r += i;
1700
1700
  }
1701
1701
  return r && e.push({ type: "key", value: r }), e.map((s) => s.type === "key" ? { key: s.value } : { children: s.value });
@@ -1708,29 +1708,7 @@ const Ue = (t, e) => {
1708
1708
  return Ue(t.parent, e);
1709
1709
  }
1710
1710
  };
1711
- function Un(t, e) {
1712
- if (t === e)
1713
- return !0;
1714
- if (t == null || e == null)
1715
- return t === e;
1716
- const r = typeof t;
1717
- return r !== typeof e || r === "string" || r === "boolean" ? !1 : r === "number" ? Number.isNaN(t) && Number.isNaN(e) : De(t) === De(e);
1718
- }
1719
- function Ot(t, e) {
1720
- if (t === e)
1721
- return !0;
1722
- t = t || {}, e = e || {};
1723
- const r = Object.keys(t), n = Object.keys(e);
1724
- if (r.length !== n.length)
1725
- return !1;
1726
- for (let s = 0; s < r.length; s++) {
1727
- const i = r[s];
1728
- if (!Object.prototype.hasOwnProperty.call(e, i) || !Un(t[i], e[i]))
1729
- return !1;
1730
- }
1731
- return !0;
1732
- }
1733
- function qn(t, e, r) {
1711
+ function Nn(t, e, r) {
1734
1712
  return re({
1735
1713
  name: "FormCreate" + (t.isMobile ? "Mobile" : ""),
1736
1714
  components: e,
@@ -1773,8 +1751,8 @@ function qn(t, e, r) {
1773
1751
  },
1774
1752
  setup(n) {
1775
1753
  const s = tt();
1776
- Or("parentFC", s);
1777
- const i = Er("parentFC", null);
1754
+ Fr("parentFC", s);
1755
+ const i = Or("parentFC", null);
1778
1756
  let o = i;
1779
1757
  if (i)
1780
1758
  for (; o.setupState.parent; )
@@ -1788,35 +1766,35 @@ function qn(t, e, r) {
1788
1766
  unique: 1,
1789
1767
  renderRule: [...a.value || []]
1790
1768
  });
1791
- let h = l.value || {};
1769
+ let h = JSON.stringify(l.value || {});
1792
1770
  const p = new t(s), y = p.api(), C = f.value, F = () => {
1793
1771
  if (i) {
1794
- const R = Ue(s, i);
1795
- if (R) {
1796
- let j;
1797
- C ? (j = q(R.getSubForm()), j.push(y)) : j = y, R.subForm(j);
1772
+ const k = Ue(s, i);
1773
+ if (k) {
1774
+ let A;
1775
+ C ? (A = q(k.getSubForm()), A.push(y)) : A = y, k.subForm(A);
1798
1776
  }
1799
1777
  }
1800
1778
  }, G = () => {
1801
- const R = Ue(s, i);
1802
- if (R)
1779
+ const k = Ue(s, i);
1780
+ if (k)
1803
1781
  if (C) {
1804
- const j = q(R.getSubForm()), W = j.indexOf(y);
1805
- W > -1 && j.splice(W, 1);
1782
+ const A = q(k.getSubForm()), W = A.indexOf(y);
1783
+ W > -1 && A.splice(W, 1);
1806
1784
  } else
1807
- R.subForm();
1785
+ k.subForm();
1808
1786
  };
1809
1787
  let P = null;
1810
- Rr(() => {
1811
- kr(() => {
1812
- let R = "";
1813
- const j = n.option && n.option.globalClass || {};
1814
- Object.keys(j).forEach((W) => {
1788
+ Er(() => {
1789
+ Rr(() => {
1790
+ let k = "";
1791
+ const A = n.option && n.option.globalClass || {};
1792
+ Object.keys(A).forEach((W) => {
1815
1793
  let Fe = "";
1816
- j[W].style && Object.keys(j[W].style).forEach((je) => {
1817
- Fe += ke(je) + ":" + j[W].style[je] + ";";
1818
- }), j[W].content && (Fe += j[W].content + ";"), Fe && (R += `.${W}{${Fe}}`);
1819
- }), n.option && n.option.style && (R += n.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = R || "";
1794
+ A[W].style && Object.keys(A[W].style).forEach((je) => {
1795
+ Fe += ke(je) + ":" + A[W].style[je] + ";";
1796
+ }), A[W].content && (Fe += A[W].content + ";"), Fe && (k += `.${W}{${Fe}}`);
1797
+ }), n.option && n.option.style && (k += n.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = k || "";
1820
1798
  });
1821
1799
  });
1822
1800
  const N = ce(() => {
@@ -1825,23 +1803,23 @@ function qn(t, e, r) {
1825
1803
  p.bus.$emit("$loadData.$scopeForm");
1826
1804
  }, 100), ze = ce(() => {
1827
1805
  p.bus.$emit("$loadData.$form");
1828
- }, 100), Ve = (R) => {
1829
- p.bus.$emit("change-$form." + R);
1806
+ }, 100), Ve = (k) => {
1807
+ p.bus.$emit("change-$form." + k);
1830
1808
  };
1831
- return Dr(() => {
1809
+ return kr(() => {
1832
1810
  i && (y.top.bus.$on("$loadData.$form", N), y.top.bus.$on("change", Ve)), y !== y.scope && y.scope.bus.$on("$loadData.$scopeForm", Se), p.mounted();
1833
- }), Ar(() => {
1811
+ }), Dr(() => {
1834
1812
  i && (y.top.bus.$off("$loadData.$form", N), y.top.bus.$off("change", Ve)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", Se), G(), c.destroyed = !0, p.unmount(), P && (P.parentNode || P.parentElement) && document.head.removeChild(P);
1835
- }), jr(() => {
1813
+ }), Ar(() => {
1836
1814
  p.updated();
1837
1815
  }), F(), B(() => n.option, () => {
1838
1816
  p.initOptions(), y.refresh();
1839
- }, { deep: !0, flush: "sync" }), B(() => [...a.value], (R) => {
1840
- p.$handle.isBreakWatch() || R.length === c.renderRule.length && R.every((j) => c.renderRule.indexOf(j) > -1) || (p.$handle.updateAppendData(), p.$handle.reloadRule(a.value), s.setupState.renderRule());
1817
+ }, { deep: !0, flush: "sync" }), B(() => [...a.value], (k) => {
1818
+ p.$handle.isBreakWatch() || k.length === c.renderRule.length && k.every((A) => c.renderRule.indexOf(A) > -1) || (p.$handle.updateAppendData(), p.$handle.reloadRule(a.value), s.setupState.renderRule());
1841
1819
  }), B(() => [n.disabled, n.preview], () => {
1842
1820
  y.refresh();
1843
- }), B(l, (R) => {
1844
- Ot(R || {}, h) || (y.config.forceCoverValue ? y.coverValue(R || {}) : y.setValue(R || {}));
1821
+ }), B(l, (k) => {
1822
+ De(k || {}) !== h && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1845
1823
  }, { deep: !0, flush: "post" }), B(() => n.index, () => {
1846
1824
  y.coverValue({}), p.$handle.updateAppendData(), I(() => {
1847
1825
  I(() => {
@@ -1861,8 +1839,10 @@ function qn(t, e, r) {
1861
1839
  renderRule() {
1862
1840
  c.renderRule = [...a.value || []];
1863
1841
  },
1864
- updateValue(R) {
1865
- c.destroyed || Ot(R, h) || (h = R, s.emit("update:modelValue", R), I(() => {
1842
+ updateValue(k) {
1843
+ if (c.destroyed) return;
1844
+ const A = De(k);
1845
+ h !== A && (h = A, s.emit("update:modelValue", k), I(() => {
1866
1846
  ze(), i ? u.value || Se() : (N(), Se());
1867
1847
  }));
1868
1848
  }
@@ -1874,7 +1854,7 @@ function qn(t, e, r) {
1874
1854
  }
1875
1855
  });
1876
1856
  }
1877
- function rr() {
1857
+ function tr() {
1878
1858
  return {
1879
1859
  props: {},
1880
1860
  on: {},
@@ -1892,7 +1872,7 @@ function T(t, e) {
1892
1872
  };
1893
1873
  }
1894
1874
  function ct(t, e, r, n, s) {
1895
- this._data = w(rr(), { type: t, title: e, field: r, value: n, props: s || {} }), this.event = this.on;
1875
+ this._data = w(tr(), { type: t, title: e, field: r, value: n, props: s || {} }), this.event = this.on;
1896
1876
  }
1897
1877
  w(ct.prototype, {
1898
1878
  getRule() {
@@ -1906,33 +1886,33 @@ w(ct.prototype, {
1906
1886
  },
1907
1887
  _clone() {
1908
1888
  const t = new this.constructor();
1909
- return t._data = Xt(this._data), t;
1889
+ return t._data = Qt(this._data), t;
1910
1890
  }
1911
1891
  });
1912
- function nr(t) {
1892
+ function rr(t) {
1913
1893
  t.forEach((e) => {
1914
1894
  ct.prototype[e] = function(r) {
1915
1895
  return ae(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1916
1896
  };
1917
1897
  });
1918
1898
  }
1919
- nr(Jt());
1920
- const Hn = T("");
1921
- function zn(t, e, r) {
1922
- let n = Hn("", e);
1899
+ rr(Wt());
1900
+ const Un = T("");
1901
+ function qn(t, e, r) {
1902
+ let n = Un("", e);
1923
1903
  return n._data.type = t, n._data.title = r, n;
1924
1904
  }
1925
- function xn() {
1905
+ function Hn() {
1926
1906
  return {
1927
- create: zn,
1907
+ create: qn,
1928
1908
  factory: T
1929
1909
  };
1930
1910
  }
1931
- function Gn(t, e, r) {
1911
+ function zn(t, e, r) {
1932
1912
  const n = `fail to ${t} ${r.status}'`, s = new Error(n);
1933
1913
  return s.status = r.status, s.url = t, s;
1934
1914
  }
1935
- function Et(t) {
1915
+ function Ot(t) {
1936
1916
  const e = t.responseText || t.response;
1937
1917
  if (!e)
1938
1918
  return e;
@@ -1942,7 +1922,7 @@ function Et(t) {
1942
1922
  return e;
1943
1923
  }
1944
1924
  }
1945
- function ir(t) {
1925
+ function nr(t) {
1946
1926
  if (typeof XMLHttpRequest == "undefined")
1947
1927
  return;
1948
1928
  const e = new XMLHttpRequest();
@@ -1957,8 +1937,8 @@ function ir(t) {
1957
1937
  t.onError(o);
1958
1938
  }, e.onload = function() {
1959
1939
  if (e.status < 200 || e.status >= 300)
1960
- return t.onError(Gn(r, t, e), Et(e));
1961
- t.onSuccess(Et(e));
1940
+ return t.onError(zn(r, t, e), Ot(e));
1941
+ t.onSuccess(Ot(e));
1962
1942
  }, e.open(t.method || "get", r, !0);
1963
1943
  let n;
1964
1944
  (t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (n = new FormData(), Object.keys(t.data || {}).map((i) => {
@@ -1969,9 +1949,9 @@ function ir(t) {
1969
1949
  s[i] != null && e.setRequestHeader(i, s[i]);
1970
1950
  }), e.send(n);
1971
1951
  }
1972
- function Rt(t, e, r) {
1952
+ function Et(t, e, r) {
1973
1953
  return new Promise((n, s) => {
1974
- (e || ir)(z(_({}, t), {
1954
+ (e || nr)(z(_({}, t), {
1975
1955
  onSuccess(i) {
1976
1956
  let o = (l) => l;
1977
1957
  const a = te(t.parse);
@@ -1988,7 +1968,7 @@ function Rt(t, e, r) {
1988
1968
  function Oe(t) {
1989
1969
  return ee(t);
1990
1970
  }
1991
- function Yn(t) {
1971
+ function xn(t) {
1992
1972
  function e(i) {
1993
1973
  return m.Undef(i) ? i = t.fields() : Array.isArray(i) || (i = [i]), i;
1994
1974
  }
@@ -2313,7 +2293,7 @@ function Yn(t) {
2313
2293
  method(i, o) {
2314
2294
  const a = s.el(i);
2315
2295
  if (!a || !a[o])
2316
- throw new Error(zt("err", `${o} 方法不存在`));
2296
+ throw new Error(Ht("err", `${o} 方法不存在`));
2317
2297
  return (...l) => a[o](...l);
2318
2298
  },
2319
2299
  exec(i, o, ...a) {
@@ -2448,7 +2428,7 @@ function Yn(t) {
2448
2428
  const u = (f) => {
2449
2429
  V(() => l.onError && l.onError(f)), a(f);
2450
2430
  };
2451
- t.beforeFetch(l).then(() => Rt(l, t.fc.create.fetch, s).then((f) => {
2431
+ t.beforeFetch(l).then(() => Et(l, t.fc.create.fetch, s).then((f) => {
2452
2432
  V(() => l.onSuccess && l.onSuccess(f)), o(f);
2453
2433
  }).catch((f) => {
2454
2434
  u(f);
@@ -2465,7 +2445,7 @@ function Yn(t) {
2465
2445
  const h = (p) => {
2466
2446
  V(() => c.onError && c.onError(p)), a && a(p);
2467
2447
  };
2468
- t.beforeFetch(c).then(() => Rt(c, t.fc.create.fetch, s).then((p) => {
2448
+ t.beforeFetch(c).then(() => Et(c, t.fc.create.fetch, s).then((p) => {
2469
2449
  V(() => c.onSuccess && c.onSuccess(p)), o && o(p, f);
2470
2450
  }).catch((p) => {
2471
2451
  h(p);
@@ -2505,7 +2485,7 @@ function Yn(t) {
2505
2485
  };
2506
2486
  }), s.changeValue = s.changeField = s.setValue, s;
2507
2487
  }
2508
- function Kn(t) {
2488
+ function Gn(t) {
2509
2489
  w(t.prototype, {
2510
2490
  initCache() {
2511
2491
  this.clearCacheAll();
@@ -2537,7 +2517,7 @@ function Kn(t) {
2537
2517
  }
2538
2518
  });
2539
2519
  }
2540
- function Wn(t) {
2520
+ function Yn(t) {
2541
2521
  w(t.prototype, {
2542
2522
  initRender() {
2543
2523
  this.cacheConfig = {};
@@ -2796,7 +2776,7 @@ function Wn(t) {
2796
2776
  },
2797
2777
  defaultRender(e, r) {
2798
2778
  const n = e.prop;
2799
- return n.component ? typeof n.component == "string" ? this.vNode.make(n.component, n, r) : this.vNode.makeComponent(n.component, n, r) : this.vNode[e.type] ? this.vNode[e.type](n, r) : this.vNode[e.originType] ? this.vNode[e.originType](n, r) : this.vNode.make(Qt(n.type), n, r);
2779
+ return n.component ? typeof n.component == "string" ? this.vNode.make(n.component, n, r) : this.vNode.makeComponent(n.component, n, r) : this.vNode[e.type] ? this.vNode[e.type](n, r) : this.vNode[e.originType] ? this.vNode[e.originType](n, r) : this.vNode.make(Jt(n.type), n, r);
2800
2780
  },
2801
2781
  createChildrenVnodes(e, r, n) {
2802
2782
  this.force = n !== !1, this.tmpInput = r;
@@ -2829,7 +2809,7 @@ function Wn(t) {
2829
2809
  }
2830
2810
  });
2831
2811
  }
2832
- let Jn = 1;
2812
+ let Kn = 1;
2833
2813
  function dt(t) {
2834
2814
  w(this, {
2835
2815
  $handle: t,
@@ -2839,8 +2819,8 @@ function dt(t) {
2839
2819
  vNode: new t.fc.CreateNode(t),
2840
2820
  force: !1,
2841
2821
  tmpInput: null,
2842
- id: Jn++
2843
- }), er(this, {
2822
+ id: Kn++
2823
+ }), Zt(this, {
2844
2824
  options() {
2845
2825
  return t.options;
2846
2826
  },
@@ -2849,9 +2829,9 @@ function dt(t) {
2849
2829
  }
2850
2830
  }), this.initCache(), this.initRender();
2851
2831
  }
2852
- Kn(dt);
2853
- Wn(dt);
2854
- function Qn(t) {
2832
+ Gn(dt);
2833
+ Yn(dt);
2834
+ function Wn(t) {
2855
2835
  w(t.prototype, {
2856
2836
  parseInjectEvent(e, r) {
2857
2837
  const n = e.inject || this.options.injectEvent;
@@ -2917,7 +2897,7 @@ function Qn(t) {
2917
2897
  },
2918
2898
  loadStrVar(e, r, n) {
2919
2899
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2920
- const s = e, i = Nn(e), o = (u) => {
2900
+ const s = e, i = Mn(e), o = (u) => {
2921
2901
  let f = !1, c;
2922
2902
  if (n && u.indexOf("$form.") === 0) {
2923
2903
  const h = u.split(".");
@@ -2941,7 +2921,7 @@ function Qn(t) {
2941
2921
  if (i.forEach((u) => {
2942
2922
  const f = u.split("||"), c = f[0].trim();
2943
2923
  if (c) {
2944
- const h = (f[1] || "").trim(), p = tr(c);
2924
+ const h = (f[1] || "").trim(), p = er(c);
2945
2925
  let y = V(() => a(p));
2946
2926
  (y == null || y === "") && f.length > 1 && (y = h), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2947
2927
  }
@@ -2965,13 +2945,13 @@ function Qn(t) {
2965
2945
  }
2966
2946
  });
2967
2947
  }
2968
- const kt = ["hook:updated", "hook:mounted"];
2969
- function Xn(t) {
2948
+ const Rt = ["hook:updated", "hook:mounted"];
2949
+ function Jn(t) {
2970
2950
  w(t.prototype, {
2971
2951
  usePage() {
2972
2952
  const e = this.options.page;
2973
2953
  if (!e) return;
2974
- let r = 25, n = Zn(this.rules);
2954
+ let r = 25, n = Qn(this.rules);
2975
2955
  m.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (n = parseInt(e.limit, 10) || n)), w(this, {
2976
2956
  first: r,
2977
2957
  limit: n,
@@ -2980,16 +2960,16 @@ function Xn(t) {
2980
2960
  },
2981
2961
  pageLoad() {
2982
2962
  const e = () => {
2983
- this.pageEnd ? (this.bus.$off(kt, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2963
+ this.pageEnd ? (this.bus.$off(Rt, e), this.bus.$emit("page-end")) : (this.first += this.limit, this.pageEnd = this.rules.length <= this.first, this.loadRule(), this.refresh());
2984
2964
  };
2985
- this.bus.$on(kt, e);
2965
+ this.bus.$on(Rt, e);
2986
2966
  }
2987
2967
  });
2988
2968
  }
2989
- function Zn(t) {
2969
+ function Qn(t) {
2990
2970
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2991
2971
  }
2992
- function ei(t) {
2972
+ function Xn(t) {
2993
2973
  w(t.prototype, {
2994
2974
  clearNextTick() {
2995
2975
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -3004,14 +2984,14 @@ function ei(t) {
3004
2984
  }
3005
2985
  });
3006
2986
  }
3007
- function ti(t) {
2987
+ function Zn(t) {
3008
2988
  Object.defineProperties(t.origin, {
3009
2989
  __fc__: st(fe(t))
3010
2990
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
3011
2991
  __fc__: st(fe(t))
3012
2992
  });
3013
2993
  }
3014
- function sr(t, e, r) {
2994
+ function ir(t, e, r) {
3015
2995
  const n = He(), s = !!e.field;
3016
2996
  w(this, {
3017
2997
  id: n,
@@ -3040,9 +3020,9 @@ function sr(t, e, r) {
3040
3020
  exportEl: void 0,
3041
3021
  defaultValue: s ? ee(r) : void 0,
3042
3022
  field: e.field || void 0
3043
- }), this.updateKey(), ti(this), this.update(t, !0);
3023
+ }), this.updateKey(), Zn(this), this.update(t, !0);
3044
3024
  }
3045
- w(sr.prototype, {
3025
+ w(ir.prototype, {
3046
3026
  getParentGroup() {
3047
3027
  let t = this.parent;
3048
3028
  for (; t; ) {
@@ -3199,7 +3179,7 @@ w(sr.prototype, {
3199
3179
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3200
3180
  }
3201
3181
  });
3202
- function ri(t) {
3182
+ function ei(t) {
3203
3183
  w(t.prototype, {
3204
3184
  nextRefresh(e) {
3205
3185
  const r = this.loadedId;
@@ -3211,7 +3191,7 @@ function ri(t) {
3211
3191
  const r = Ct(e);
3212
3192
  return Object.defineProperties(r, {
3213
3193
  __origin__: st(e)
3214
- }), ni(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((n) => {
3194
+ }), ti(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((n) => {
3215
3195
  n && this.loadFn(n, r);
3216
3196
  }), this.loadCtrl(r), r.update && (r.update = te(r.update)), r;
3217
3197
  },
@@ -3264,20 +3244,20 @@ function ri(t) {
3264
3244
  let f, c = !1, h = !!o.__fc__, p = l.value;
3265
3245
  if (h) {
3266
3246
  if (f = o.__fc__, p = f.defaultValue, f.deleted) {
3267
- if (Dt(f))
3247
+ if (kt(f))
3268
3248
  return;
3269
3249
  f.update(this);
3270
3250
  } else if (!f.check(this)) {
3271
- if (Dt(f))
3251
+ if (kt(f))
3272
3252
  return;
3273
- e[a] = o = o._clone ? o._clone() : xt(De(o)), f = null, c = !0;
3253
+ e[a] = o = o._clone ? o._clone() : zt(De(o)), f = null, c = !0;
3274
3254
  }
3275
3255
  }
3276
3256
  if (f)
3277
3257
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3278
3258
  else {
3279
3259
  const F = this.parseRule(o);
3280
- f = new sr(this, F, p), this.bindParser(f);
3260
+ f = new ir(this, F, p), this.bindParser(f);
3281
3261
  }
3282
3262
  this.parseEmit(f), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !c && !h && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3283
3263
  const y = f.loadChildrenPending();
@@ -3296,7 +3276,7 @@ function ri(t) {
3296
3276
  return e.input && e.rule.control && this.useCtrl(e);
3297
3277
  },
3298
3278
  useCtrl(e) {
3299
- const r = ii(e), n = [], s = this.api;
3279
+ const r = ri(e), n = [], s = this.api;
3300
3280
  if (!r.length) return !1;
3301
3281
  for (let a = 0; a < r.length; a++) {
3302
3282
  const l = r[a], u = l.handle || function(c) {
@@ -3305,7 +3285,7 @@ function ri(t) {
3305
3285
  if (!m.trueArray(l.rule)) continue;
3306
3286
  const f = z(_({}, l), {
3307
3287
  valid: V(() => u(e.rule.value, s)),
3308
- ctrl: si(e, l.rule),
3288
+ ctrl: ni(e, l.rule),
3309
3289
  isHidden: m.String(l.rule[0])
3310
3290
  });
3311
3291
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || n.push(f);
@@ -3368,27 +3348,27 @@ function ri(t) {
3368
3348
  }
3369
3349
  });
3370
3350
  }
3371
- function ni(t) {
3372
- const e = rr();
3351
+ function ti(t) {
3352
+ const e = tr();
3373
3353
  return Object.keys(e).forEach((r) => {
3374
3354
  D(t, r) || (t[r] = e[r]);
3375
3355
  }), t;
3376
3356
  }
3377
- function ii(t) {
3357
+ function ri(t) {
3378
3358
  const e = t.rule.control || [];
3379
3359
  return m.Object(e) ? [e] : e;
3380
3360
  }
3381
- function si(t, e) {
3361
+ function ni(t, e) {
3382
3362
  for (let r = 0; r < t.ctrlRule.length; r++) {
3383
3363
  const n = t.ctrlRule[r];
3384
3364
  if (n.children === e)
3385
3365
  return n;
3386
3366
  }
3387
3367
  }
3388
- function Dt(t) {
3368
+ function kt(t) {
3389
3369
  return !!t.rule.__ctrl;
3390
3370
  }
3391
- function oi(t) {
3371
+ function ii(t) {
3392
3372
  w(t.prototype, {
3393
3373
  setValue(e, r, n, s) {
3394
3374
  e.deleted || (e.rule.value = r, this.changeStatus = !0, this.setFormData(e, n), this.$render.clearCache(e), this.nextRefresh(), this.syncValue(), this.valueChange(e, r), this.vm.emit("change", e.field, r, e.origin, this.api, s || !1), this.effect(e, "value"), this.targetHook(e, "value", { value: r }), this.emitEvent("change", e.field, r, {
@@ -3462,7 +3442,7 @@ function oi(t) {
3462
3442
  if (n === r)
3463
3443
  return !1;
3464
3444
  const s = typeof n;
3465
- return s === typeof r && (s === "string" || s === "boolean" || s === "number" && Number.isFinite(n) && Number.isFinite(r)) ? !0 : JSON.stringify(n, At) !== JSON.stringify(r, At);
3445
+ return s === typeof r && (s === "string" || s === "boolean" || s === "number" && Number.isFinite(n) && Number.isFinite(r)) ? !0 : JSON.stringify(n, Dt) !== JSON.stringify(r, Dt);
3466
3446
  },
3467
3447
  isQuote(e, r) {
3468
3448
  return (r instanceof Function || m.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3495,7 +3475,7 @@ function oi(t) {
3495
3475
  }
3496
3476
  });
3497
3477
  }
3498
- function At(t, e) {
3478
+ function Dt(t, e) {
3499
3479
  return typeof e == "function" ? "" + e : e;
3500
3480
  }
3501
3481
  const Re = {
@@ -3517,13 +3497,13 @@ const Re = {
3517
3497
  },
3518
3498
  mergeProp(t) {
3519
3499
  }
3520
- }, ai = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Ee = Symbol("oldValue"), li = ["$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule"], ui = ["$formulas", "$form", "$scope", "$group", "$rule", "$api"], Ne = /* @__PURE__ */ new Map(), fi = 1e3;
3521
- function jt(t, e) {
3500
+ }, si = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Ee = Symbol("oldValue"), oi = ["$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule"], ai = ["$formulas", "$form", "$scope", "$group", "$rule", "$api"], Ne = /* @__PURE__ */ new Map(), li = 1e3;
3501
+ function At(t, e) {
3522
3502
  const r = t.join(",") + "|" + e;
3523
3503
  let n = Ne.get(r);
3524
- return n || (Ne.size >= fi && Ne.clear(), n = new Function(...t, e), Ne.set(r, n)), n;
3504
+ return n || (Ne.size >= li && Ne.clear(), n = new Function(...t, e), Ne.set(r, n)), n;
3525
3505
  }
3526
- function ci(t) {
3506
+ function ui(t) {
3527
3507
  w(t.prototype, {
3528
3508
  //computed 更新原先各自 setTimeout(0),N 个字段同时联动就会拆成 N 个宏任务,
3529
3509
  //Vue 在任务之间各 flush 一次,render 被放大 N 倍。
@@ -3588,7 +3568,7 @@ function ci(t) {
3588
3568
  this.noWatchFn || (this.noWatchFn = e), V(e), this.noWatchFn === e && (this.noWatchFn = null);
3589
3569
  },
3590
3570
  watchCtx(e) {
3591
- const r = Jt().filter((o) => o[0] !== "_" && o[0] !== "$" && ai.indexOf(o) === -1), n = {}, s = (o, a, l) => (u, f) => {
3571
+ const r = Wt().filter((o) => o[0] !== "_" && o[0] !== "$" && si.indexOf(o) === -1), n = {}, s = (o, a, l) => (u, f) => {
3592
3572
  let c = a.value;
3593
3573
  if (!this.isBreakWatch()) {
3594
3574
  if (l && e.parser.loadChildren === !1) {
@@ -3819,7 +3799,7 @@ function ci(t) {
3819
3799
  else if (!c.mode)
3820
3800
  return !0;
3821
3801
  let C = c.compare;
3822
- if (C && (C = Ft(C || "")), c.mode ? h = i(c) : Ce[c.condition] ? m.Function(c.handler) ? h = V(() => c.handler(this.api, e.rule)) : h = V(() => jt(li, `with($form){with($scope){with(this){with($group){ return $condition['${c.condition}'](${c.variable ? "$variableVal" : p}, ${C || "$val"}); }}}}`).call(this.api.form, Ce, y, c.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : h = !1, l && h)
3802
+ if (C && (C = Ft(C || "")), c.mode ? h = i(c) : Ce[c.condition] ? m.Function(c.handler) ? h = V(() => c.handler(this.api, e.rule)) : h = V(() => At(oi, `with($form){with($scope){with(this){with($group){ return $condition['${c.condition}'](${c.variable ? "$variableVal" : p}, ${C || "$val"}); }}}}`).call(this.api.form, Ce, y, c.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : h = !1, l && h)
3823
3803
  return !0;
3824
3804
  l || (u = u && h);
3825
3805
  }
@@ -3844,7 +3824,7 @@ function ci(t) {
3844
3824
  fc: s.fc
3845
3825
  }, ...l);
3846
3826
  }, o), {});
3847
- return V(() => jt(ui, `with($form){with($scope){with(this){with($group){with($formulas){ return ${e} }}}}}`).call(this.api.form, i, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, n ? this.subRuleData[n.id] || {} : {}, r.rule, this.api), void 0);
3827
+ return V(() => At(ai, `with($form){with($scope){with(this){with($group){with($formulas){ return ${e} }}}}}`).call(this.api.form, i, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, n ? this.subRuleData[n.id] || {} : {}, r.rule, this.api), void 0);
3848
3828
  },
3849
3829
  updateChildren(e, r, n) {
3850
3830
  this.deferSyncValue(() => {
@@ -3877,7 +3857,7 @@ function ci(t) {
3877
3857
  }
3878
3858
  });
3879
3859
  }
3880
- function di(t) {
3860
+ function fi(t) {
3881
3861
  w(t.prototype, {
3882
3862
  mounted() {
3883
3863
  const e = () => {
@@ -3904,7 +3884,7 @@ function di(t) {
3904
3884
  }));
3905
3885
  };
3906
3886
  i(s);
3907
- let o = "deep" + Ht(r), a = e.parent;
3887
+ let o = "deep" + qt(r), a = e.parent;
3908
3888
  for (; a; ) {
3909
3889
  let h = (c = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : c[o];
3910
3890
  i(h, a), a = a.parent;
@@ -3912,13 +3892,13 @@ function di(t) {
3912
3892
  }
3913
3893
  });
3914
3894
  }
3915
- function hi(t) {
3895
+ function ci(t) {
3916
3896
  w(t.prototype, {
3917
3897
  useProvider() {
3918
3898
  const e = this.fc.providers;
3919
3899
  Object.keys(e).forEach((r) => {
3920
3900
  let n = e[r];
3921
- m.Function(n) && (n = n(this.fc)), n._c = mi(n), this.onEffect(n, r), this.providers[r] = n;
3901
+ m.Function(n) && (n = n(this.fc)), n._c = hi(n), this.onEffect(n, r), this.providers[r] = n;
3922
3902
  });
3923
3903
  },
3924
3904
  onEffect(e, r) {
@@ -3988,20 +3968,20 @@ function hi(t) {
3988
3968
  }
3989
3969
  });
3990
3970
  }
3991
- function pi(t) {
3971
+ function di(t) {
3992
3972
  return t.filter(function(e, r, n) {
3993
3973
  return n.indexOf(e, 0) === r;
3994
3974
  });
3995
3975
  }
3996
- function mi(t) {
3976
+ function hi(t) {
3997
3977
  const e = t.components;
3998
3978
  if (Array.isArray(e)) {
3999
- const r = pi(e.filter((n) => n !== "*"));
3979
+ const r = di(e.filter((n) => n !== "*"));
4000
3980
  return r.length ? r : !1;
4001
3981
  } else return m.String(e) ? [e] : !1;
4002
3982
  }
4003
3983
  function ne(t) {
4004
- er(this, {
3984
+ Zt(this, {
4005
3985
  options() {
4006
3986
  return t.options.value || {};
4007
3987
  },
@@ -4038,7 +4018,7 @@ function ne(t) {
4038
4018
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new dt(this), this.api = t.extendApiFn.reduce((e, r) => {
4039
4019
  const n = V(() => r(e, this));
4040
4020
  return n && n !== e && w(e, n), e;
4041
- }, Yn(this));
4021
+ }, xn(this));
4042
4022
  }
4043
4023
  w(ne.prototype, {
4044
4024
  initData(t) {
@@ -4078,25 +4058,25 @@ w(ne.prototype, {
4078
4058
  });
4079
4059
  }
4080
4060
  });
4081
- Qn(ne);
4061
+ Wn(ne);
4062
+ Jn(ne);
4082
4063
  Xn(ne);
4083
4064
  ei(ne);
4084
- ri(ne);
4085
- oi(ne);
4065
+ ii(ne);
4066
+ ui(ne);
4067
+ fi(ne);
4086
4068
  ci(ne);
4087
- di(ne);
4088
- hi(ne);
4089
- const gi = "fcFragment", We = re({
4090
- name: gi,
4069
+ const pi = "fcFragment", We = re({
4070
+ name: pi,
4091
4071
  inheritAttrs: !1,
4092
4072
  props: ["vnode"],
4093
4073
  render() {
4094
4074
  return this.vnode;
4095
4075
  }
4096
4076
  });
4097
- function yi(t) {
4077
+ function mi(t) {
4098
4078
  return Object.keys(t).map((e) => {
4099
- const r = t[e], n = Pr(e);
4079
+ const r = t[e], n = Ir(e);
4100
4080
  if (n)
4101
4081
  return [
4102
4082
  n,
@@ -4106,22 +4086,22 @@ function yi(t) {
4106
4086
  ];
4107
4087
  }).filter((e) => !!e);
4108
4088
  }
4109
- function It(t, e) {
4089
+ function jt(t, e) {
4110
4090
  let r = t.directives;
4111
- return r ? (Array.isArray(r) || (r = [r]), Ir(e, r.reduce((n, s) => n.concat(yi(s)), []))) : e;
4091
+ return r ? (Array.isArray(r) || (r = [r]), jr(e, r.reduce((n, s) => n.concat(mi(s)), []))) : e;
4112
4092
  }
4113
- function bi() {
4093
+ function gi() {
4114
4094
  const t = {};
4115
4095
  function e(r) {
4116
4096
  this.vm = r.vm, this.handle = r;
4117
4097
  }
4118
4098
  return w(e.prototype, {
4119
4099
  make(r, n, s) {
4120
- return It(n, this.h(r, St(n), s));
4100
+ return jt(n, this.h(r, St(n), s));
4121
4101
  },
4122
4102
  makeComponent(r, n, s) {
4123
4103
  try {
4124
- return It(n, v(r, St(n), s));
4104
+ return jt(n, v(r, St(n), s));
4125
4105
  } catch (i) {
4126
4106
  return console.error(i), v("");
4127
4107
  }
@@ -4143,7 +4123,7 @@ function bi() {
4143
4123
  },
4144
4124
  use(r) {
4145
4125
  Object.keys(r).forEach((n) => {
4146
- const s = ke(n), i = qt(n).toLocaleLowerCase(), o = r[n];
4126
+ const s = ke(n), i = Ut(n).toLocaleLowerCase(), o = r[n];
4147
4127
  e.alias(n, o), [n, s, i].forEach((a) => {
4148
4128
  e.prototype[a] = function(l, u) {
4149
4129
  return this.make(t[n] || a, l, u);
@@ -4153,12 +4133,12 @@ function bi() {
4153
4133
  }
4154
4134
  }), e;
4155
4135
  }
4156
- function $i(t) {
4157
- class e extends or {
4136
+ function yi(t) {
4137
+ class e extends sr {
4158
4138
  }
4159
4139
  return Object.assign(e.prototype, t), e;
4160
4140
  }
4161
- function or(t) {
4141
+ function sr(t) {
4162
4142
  w(this, {
4163
4143
  $handle: t,
4164
4144
  vm: t.vm,
@@ -4169,7 +4149,7 @@ function or(t) {
4169
4149
  }
4170
4150
  }), this.updateKey(), this.init();
4171
4151
  }
4172
- w(or.prototype, {
4152
+ w(sr.prototype, {
4173
4153
  __init() {
4174
4154
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
4175
4155
  },
@@ -4219,7 +4199,7 @@ w(or.prototype, {
4219
4199
  render(t) {
4220
4200
  }
4221
4201
  });
4222
- const vi = function(t) {
4202
+ const bi = function(t) {
4223
4203
  const e = {
4224
4204
  name: "loadData",
4225
4205
  _fn: [],
@@ -4250,7 +4230,7 @@ const vi = function(t) {
4250
4230
  }
4251
4231
  };
4252
4232
  return e.watch = e.loaded, e;
4253
- }, _i = function(t) {
4233
+ }, $i = function(t) {
4254
4234
  const e = {
4255
4235
  name: "t",
4256
4236
  _fn: [],
@@ -4279,7 +4259,7 @@ const vi = function(t) {
4279
4259
  }
4280
4260
  };
4281
4261
  return e.watch = e.loaded, e;
4282
- }, ar = {
4262
+ }, or = {
4283
4263
  name: "componentValidate",
4284
4264
  load(t, e, r) {
4285
4265
  let n = t.getValue();
@@ -4302,9 +4282,9 @@ const vi = function(t) {
4302
4282
  }
4303
4283
  },
4304
4284
  watch(...t) {
4305
- ar.load(...t);
4285
+ or.load(...t);
4306
4286
  }
4307
- }, wi = function(t) {
4287
+ }, vi = function(t) {
4308
4288
  function e(s) {
4309
4289
  return m.String(s) && (s = {
4310
4290
  action: s,
@@ -4381,13 +4361,13 @@ const vi = function(t) {
4381
4361
  }
4382
4362
  };
4383
4363
  return n;
4384
- }, Ci = {
4385
- fetch: wi,
4386
- loadData: vi,
4387
- t: _i,
4388
- componentValidate: ar
4389
- }, Si = "html", Vi = {
4390
- name: Si,
4364
+ }, _i = {
4365
+ fetch: vi,
4366
+ loadData: bi,
4367
+ t: $i,
4368
+ componentValidate: or
4369
+ }, wi = "html", Ci = {
4370
+ name: wi,
4391
4371
  loadChildren: !1,
4392
4372
  render(t, e) {
4393
4373
  return e.prop.props.innerHTML = t.default(), e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4398,7 +4378,7 @@ const vi = function(t) {
4398
4378
  };
4399
4379
  }
4400
4380
  };
4401
- function Fi(t) {
4381
+ function Si(t) {
4402
4382
  t = t + "=";
4403
4383
  const r = decodeURIComponent(document.cookie).split(";");
4404
4384
  for (let n = 0; n < r.length; n++) {
@@ -4416,7 +4396,7 @@ function Fi(t) {
4416
4396
  }
4417
4397
  return null;
4418
4398
  }
4419
- function Oi(t) {
4399
+ function Vi(t) {
4420
4400
  const e = localStorage.getItem(t);
4421
4401
  if (e)
4422
4402
  try {
@@ -4426,7 +4406,7 @@ function Oi(t) {
4426
4406
  }
4427
4407
  return null;
4428
4408
  }
4429
- function Ei(t) {
4409
+ function Fi(t) {
4430
4410
  const e = sessionStorage.getItem(t);
4431
4411
  if (e)
4432
4412
  try {
@@ -4443,16 +4423,16 @@ function ht(t, e) {
4443
4423
  let n = t(r.shift());
4444
4424
  return r.length ? n == null ? null : M(n, r) : n;
4445
4425
  }
4446
- function Ri(t) {
4447
- return ht(Fi, t);
4426
+ function Oi(t) {
4427
+ return ht(Si, t);
4448
4428
  }
4449
- function ki(t) {
4450
- return ht(Oi, t);
4429
+ function Ei(t) {
4430
+ return ht(Vi, t);
4451
4431
  }
4452
- function Di(t) {
4453
- return ht(Ei, t);
4432
+ function Ri(t) {
4433
+ return ht(Fi, t);
4454
4434
  }
4455
- const Ai = {
4435
+ const ki = {
4456
4436
  en: {
4457
4437
  required: "{title} is required",
4458
4438
  validate: {
@@ -4502,30 +4482,30 @@ const Ai = {
4502
4482
  }
4503
4483
  }
4504
4484
  };
4505
- function ji(t, e) {
4485
+ function Di(t, e) {
4506
4486
  let r;
4507
4487
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4508
4488
  }
4509
4489
  function Je() {
4510
- return ji("name", ...arguments);
4490
+ return Di("name", ...arguments);
4511
4491
  }
4512
- function Ii(t) {
4492
+ function Ai(t) {
4513
4493
  const e = t.key || [], r = t.array || [], n = t.normal || [];
4514
- Wt.push(...e), ut.push(...r), ft.push(...n), nr([...e, ...r, ...n]);
4494
+ Kt.push(...e), ut.push(...r), ft.push(...n), rr([...e, ...r, ...n]);
4515
4495
  }
4516
- let Pi = 1;
4517
- const Y = {}, Pt = Symbol("defValue");
4518
- function lr(t) {
4496
+ let ji = 1;
4497
+ const Y = {}, It = Symbol("defValue");
4498
+ function ar(t) {
4519
4499
  const e = {
4520
4500
  [We.name]: We
4521
4501
  }, r = {}, n = {}, s = {}, i = {}, o = [], a = [], l = [
4522
4502
  t.extendApi
4523
- ], u = _({}, Ci), f = xn();
4503
+ ], u = _({}, _i), f = Hn();
4524
4504
  let c = { global: {} };
4525
4505
  const h = t.isMobile === !0, p = Z({
4526
4506
  $mobile: h
4527
- }), y = bi(), C = {}, F = {};
4528
- Ii(t.attrs || {});
4507
+ }), y = gi(), C = {}, F = {};
4508
+ Ai(t.attrs || {});
4529
4509
  function G(d) {
4530
4510
  const g = Y[d];
4531
4511
  if (Array.isArray(g))
@@ -4559,7 +4539,7 @@ function lr(t) {
4559
4539
  const b = H(g.id), $ = g.prop, S = $.merge === !0 ? r[b] : void 0;
4560
4540
  r[b] = Me($, S || Re), f[b] = T(b), $.maker && w(f, $.maker);
4561
4541
  }
4562
- function R(d, g) {
4542
+ function k(d, g) {
4563
4543
  let b;
4564
4544
  if (m.String(d)) {
4565
4545
  if (b = d, g === void 0)
@@ -4570,12 +4550,12 @@ function lr(t) {
4570
4550
  const $ = H(b);
4571
4551
  e[b] = g, e[$] = g, delete y.aliasMap[b], delete y.aliasMap[$], delete r[b], delete r[$], g.formCreateParser && Ve(b, g.formCreateParser);
4572
4552
  }
4573
- function j() {
4574
- return qn(Ge, e, n);
4553
+ function A() {
4554
+ return Nn(Ge, e, n);
4575
4555
  }
4576
4556
  function W(d, g) {
4577
- const b = j();
4578
- return Br({
4557
+ const b = A();
4558
+ return Pr({
4579
4559
  data() {
4580
4560
  return Z({
4581
4561
  rule: d,
@@ -4583,7 +4563,7 @@ function lr(t) {
4583
4563
  });
4584
4564
  },
4585
4565
  render() {
4586
- return Tr(b, _({ ref: "fc" }, this.$data));
4566
+ return Br(b, _({ ref: "fc" }, this.$data));
4587
4567
  }
4588
4568
  });
4589
4569
  }
@@ -4595,14 +4575,14 @@ function lr(t) {
4595
4575
  }
4596
4576
  function le(d, g) {
4597
4577
  let b = W(d, g || {});
4598
- o.forEach((A) => {
4599
- V(() => A(le, b));
4578
+ o.forEach((j) => {
4579
+ V(() => j(le, b));
4600
4580
  });
4601
4581
  const $ = document.createElement("div");
4602
4582
  return ((g == null ? void 0 : g.el) || document.body).appendChild($), b.mount($).$refs.fc.fapi;
4603
4583
  }
4604
4584
  Me(le, F);
4605
- function cr(d) {
4585
+ function fr(d) {
4606
4586
  let g = _({}, t);
4607
4587
  return d ? g.inherit = {
4608
4588
  components: e,
@@ -4614,15 +4594,15 @@ function lr(t) {
4614
4594
  maker: f,
4615
4595
  formulas: C,
4616
4596
  loadData: p
4617
- } : delete g.inherit, lr(g);
4597
+ } : delete g.inherit, ar(g);
4618
4598
  }
4619
- function dr(d, g) {
4599
+ function cr(d, g) {
4620
4600
  s[d] = g;
4621
4601
  }
4622
- function hr(d, g) {
4602
+ function dr(d, g) {
4623
4603
  C[d] = g;
4624
4604
  }
4625
- function pr(d, g) {
4605
+ function hr(d, g) {
4626
4606
  const b = i[d] || {}, $ = b.parsers || {};
4627
4607
  g.parsers && Object.keys(g.parsers).forEach((S) => {
4628
4608
  $[S] = Me(g.parsers[S], Re);
@@ -4646,27 +4626,27 @@ function lr(t) {
4646
4626
  const b = (d || "").split(".");
4647
4627
  d = b.shift();
4648
4628
  const $ = b.join(".");
4649
- if (D(p, d) || (p[d] = Pt), p[d] !== Pt) {
4629
+ if (D(p, d) || (p[d] = It), p[d] !== It) {
4650
4630
  let S = p[d];
4651
4631
  return S && S._driver ? S = S($) : b.length && (S = M(S, b)), S == null || S === "" ? g : S;
4652
4632
  } else
4653
4633
  return g;
4654
4634
  }
4655
- function mr(d) {
4635
+ function pr(d) {
4656
4636
  l.push(d);
4657
4637
  }
4658
- function gr(d) {
4638
+ function mr(d) {
4659
4639
  delete p[d], Ie(d);
4660
4640
  }
4661
- function yr(d, g) {
4641
+ function gr(d, g) {
4662
4642
  a.push({ name: d, callback: g });
4663
4643
  }
4664
4644
  function Ge(d) {
4665
4645
  w(this, {
4666
- id: Pi++,
4646
+ id: ji++,
4667
4647
  create: le,
4668
4648
  vm: d,
4669
- manager: $i(t.manager),
4649
+ manager: yi(t.manager),
4670
4650
  parsers: r,
4671
4651
  providers: u,
4672
4652
  modelFields: s,
@@ -4685,7 +4665,7 @@ function lr(t) {
4685
4665
  refreshData: Ie,
4686
4666
  loadData: p,
4687
4667
  CreateNode: y,
4688
- bus: new Ut(),
4668
+ bus: new Nt(),
4689
4669
  //使用 Set 保存,停止侦听时可以自行摘除,避免长期运行下无限堆积
4690
4670
  unwatch: /* @__PURE__ */ new Set(),
4691
4671
  options: ot({}),
@@ -4713,8 +4693,8 @@ function lr(t) {
4713
4693
  t(d, g, b) {
4714
4694
  let $ = b ? b("$t." + d) : this.globalLanguageDriver(d);
4715
4695
  return $ == null && ($ = ""), $ && g && Object.keys(g).forEach((S) => {
4716
- const A = new RegExp(`{${S}}`, "g");
4717
- $ = $.replace(A, g[S]);
4696
+ const j = new RegExp(`{${S}}`, "g");
4697
+ $ = $.replace(j, g[S]);
4718
4698
  }), $;
4719
4699
  },
4720
4700
  globalDataDriver(d) {
@@ -4725,14 +4705,14 @@ function lr(t) {
4725
4705
  return M($.data, g);
4726
4706
  {
4727
4707
  let S;
4728
- const A = this.fetchCache.get($);
4729
- if (A) {
4730
- if (A.status && (S = M(A.data, g)), !A.loading)
4708
+ const j = this.fetchCache.get($);
4709
+ if (j) {
4710
+ if (j.status && (S = M(j.data, g)), !j.loading)
4731
4711
  return S;
4732
- A.loading = !1, this.fetchCache.set($, A);
4712
+ j.loading = !1, this.fetchCache.set($, j);
4733
4713
  } else
4734
4714
  this.fetchCache.set($, { status: !1 });
4735
- const k = ce(() => {
4715
+ const R = ce(() => {
4736
4716
  be();
4737
4717
  const J = this.fetchCache.get($);
4738
4718
  this.options.value.globalData && Object.values(this.options.value.globalData).indexOf($) !== -1 ? (J && (J.loading = !0, this.fetchCache.set($, J)), this.bus.$emit("$loadData.$globalData." + b)) : this.fetchCache.delete($);
@@ -4742,7 +4722,7 @@ function lr(t) {
4742
4722
  if ($e && $.watch === !1)
4743
4723
  return be();
4744
4724
  if ($e) {
4745
- k();
4725
+ R();
4746
4726
  return;
4747
4727
  }
4748
4728
  const ve = this.$handle.loadFetchVar(rt($), J);
@@ -4763,8 +4743,8 @@ function lr(t) {
4763
4743
  globalLanguageDriver(d) {
4764
4744
  let g = this.vm.setupState.top.props.t, b = this.vm.setupState.top.props.locale, $;
4765
4745
  if (g && ($ = V(() => g(d))), $ == null && b && typeof b == "object" && ($ = M(b, d)), $ == null) {
4766
- const S = this.options.value.language || {}, A = this.getLocale();
4767
- $ = M(S[A] || {}, d), $ == null && ($ = M(Ai[A] || {}, d));
4746
+ const S = this.options.value.language || {}, j = this.getLocale();
4747
+ $ = M(S[j] || {}, d), $ == null && ($ = M(ki[j] || {}, d));
4768
4748
  }
4769
4749
  return $;
4770
4750
  },
@@ -4774,8 +4754,8 @@ function lr(t) {
4774
4754
  if ($) {
4775
4755
  const S = m.Function($) ? $ : te($.handle);
4776
4756
  if (S) {
4777
- let A = S((...k) => this.$handle.api.getData(...k), this.$handle.api);
4778
- return M(A, g);
4757
+ let j = S((...R) => this.$handle.api.getData(...R), this.$handle.api);
4758
+ return M(j, g);
4779
4759
  }
4780
4760
  }
4781
4761
  },
@@ -4816,34 +4796,34 @@ function lr(t) {
4816
4796
  },
4817
4797
  watchLoadData(d, g) {
4818
4798
  let b = {};
4819
- const $ = (k) => {
4799
+ const $ = (R) => {
4820
4800
  this.get || (this.get = S), V(() => {
4821
- d(S, k);
4801
+ d(S, R);
4822
4802
  }), this.get === S && (this.get = void 0);
4823
- }, S = (k, ge) => {
4803
+ }, S = (R, ge) => {
4824
4804
  let ye;
4825
- if (typeof k == "object" && (ye = k.getValue, k = k.id), b[k])
4826
- return b[k].val;
4827
- const be = se(() => ye ? ye() : this.getLoadData(k, ge)), J = k.split("."), $e = J.shift(), ve = J.shift() || "", ue = ce(() => {
4828
- const _e = ye ? ye() : this.getLoadData(k, ge);
4829
- if (b[k])
4830
- ((_e instanceof Function || m.Object(_e) || Array.isArray(_e)) && _e === b[k].val || JSON.stringify(_e) !== JSON.stringify(b[k].val)) && (b[k].val = _e, $(!0));
4805
+ if (typeof R == "object" && (ye = R.getValue, R = R.id), b[R])
4806
+ return b[R].val;
4807
+ const be = se(() => ye ? ye() : this.getLoadData(R, ge)), J = R.split("."), $e = J.shift(), ve = J.shift() || "", ue = ce(() => {
4808
+ const _e = ye ? ye() : this.getLoadData(R, ge);
4809
+ if (b[R])
4810
+ ((_e instanceof Function || m.Object(_e) || Array.isArray(_e)) && _e === b[R].val || JSON.stringify(_e) !== JSON.stringify(b[R].val)) && (b[R].val = _e, $(!0));
4831
4811
  else return;
4832
- }, g || 0), $r = B(be, (_e) => {
4812
+ }, g || 0), br = B(be, (_e) => {
4833
4813
  ue();
4834
4814
  });
4835
- return this.bus.$on("$loadData." + $e, ue), ve && this.bus.$on("$loadData." + $e + "." + ve, ue), b[k] = {
4815
+ return this.bus.$on("$loadData." + $e, ue), ve && this.bus.$on("$loadData." + $e + "." + ve, ue), b[R] = {
4836
4816
  fn: () => {
4837
- this.bus.$off("$loadData." + $e, ue), ve && this.bus.$off("$loadData." + $e + "." + ve, ue), $r();
4817
+ this.bus.$off("$loadData." + $e, ue), ve && this.bus.$off("$loadData." + $e + "." + ve, ue), br();
4838
4818
  },
4839
4819
  val: be.value
4840
4820
  }, be.value;
4841
4821
  };
4842
4822
  $(!1);
4843
- const A = () => {
4844
- Object.keys(b).forEach((k) => b[k].fn()), b = {}, this.unwatch.delete(A);
4823
+ const j = () => {
4824
+ Object.keys(b).forEach((R) => b[R].fn()), b = {}, this.unwatch.delete(j);
4845
4825
  };
4846
- return this.unwatch.add(A), A;
4826
+ return this.unwatch.add(j), j;
4847
4827
  },
4848
4828
  isSub() {
4849
4829
  return this.vm.setupState.parent && this.vm.props.extendOption;
@@ -4865,7 +4845,7 @@ function lr(t) {
4865
4845
  mergeOptions(d, g, b) {
4866
4846
  return g = _({}, g || {}), b && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "beforeUnmount", "beforeSubmit", "onBeforeUnmount", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach(($) => {
4867
4847
  delete g[$];
4868
- }), g.global && (d.global = Mn(d.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], d), d;
4848
+ }), g.global && (d.global = Ln(d.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], d), d;
4869
4849
  },
4870
4850
  updateOptions(d) {
4871
4851
  this.options.value = this.mergeOptions(this.options.value, d), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4899,38 +4879,38 @@ function lr(t) {
4899
4879
  version: t.version,
4900
4880
  ui: t.ui,
4901
4881
  isMobile: h,
4902
- extendApi: mr,
4882
+ extendApi: pr,
4903
4883
  getData: pt,
4904
4884
  setDataDriver: Pe,
4905
4885
  setData: xe,
4906
- removeData: gr,
4886
+ removeData: mr,
4907
4887
  refreshData: Ie,
4908
4888
  maker: f,
4909
- component: R,
4889
+ component: k,
4910
4890
  directive: N,
4911
- setModelField: dr,
4912
- setFormula: hr,
4913
- setDriver: pr,
4891
+ setModelField: cr,
4892
+ setFormula: dr,
4893
+ setDriver: hr,
4914
4894
  register: Se,
4915
4895
  $vnode: Fe,
4916
4896
  parser: Ve,
4917
4897
  use: je,
4918
- factory: cr,
4898
+ factory: fr,
4919
4899
  componentAlias: ze,
4920
- copyRule: Xt,
4921
- copyRules: Zt,
4900
+ copyRule: Qt,
4901
+ copyRules: Xt,
4922
4902
  mergeRule: ae,
4923
- fetch: ir,
4924
- $form: j,
4903
+ fetch: nr,
4904
+ $form: A,
4925
4905
  parseFn: te,
4926
- parseJson: xt,
4906
+ parseJson: zt,
4927
4907
  toJson: De,
4928
4908
  useApp: P,
4929
4909
  getApi: G,
4930
- on: yr
4910
+ on: gr
4931
4911
  });
4932
4912
  }
4933
- function br(d) {
4913
+ function yr(d) {
4934
4914
  w(d, {
4935
4915
  create: le,
4936
4916
  install(g, b) {
@@ -4938,27 +4918,27 @@ function lr(t) {
4938
4918
  const $ = `_installedFormCreate${h ? "Mobile" : ""}_${t.ui}`;
4939
4919
  if (g[$] === !0) return;
4940
4920
  g[$] = !0;
4941
- const S = function(k, ge = {}) {
4942
- return le(k, ge);
4921
+ const S = function(R, ge = {}) {
4922
+ return le(R, ge);
4943
4923
  };
4944
4924
  mt(S), g.config.globalProperties.$formCreate = S;
4945
- const A = j();
4946
- g.component(A.name, A), o.forEach((k) => {
4947
- V(() => k(d, g));
4925
+ const j = A();
4926
+ g.component(j.name, j), o.forEach((R) => {
4927
+ V(() => R(d, g));
4948
4928
  });
4949
4929
  }
4950
4930
  });
4951
4931
  }
4952
- if (mt(F), br(F), Pe("$cookie", Ri), Pe("$localStorage", ki), Pe("$sessionStorage", Di), y.use({ fragment: "fcFragment" }), t.install && le.use(t), P((d, g) => {
4932
+ if (mt(F), yr(F), Pe("$cookie", Oi), Pe("$localStorage", Ei), Pe("$sessionStorage", Ri), y.use({ fragment: "fcFragment" }), t.install && le.use(t), P((d, g) => {
4953
4933
  g.mixin({
4954
4934
  props: ["formCreateInject"],
4955
4935
  emits: ["fc.updateValue", "fc.el"]
4956
4936
  });
4957
- }), Ve(Vi), t.inherit) {
4937
+ }), Ve(Ci), t.inherit) {
4958
4938
  const d = t.inherit;
4959
4939
  d.components && w(e, d.components), d.parsers && w(r, d.parsers), d.directives && w(n, d.directives), d.modelFields && w(s, d.modelFields), d.providers && w(u, d.providers), d.useApps && w(o, d.useApps), d.maker && w(f, d.maker), d.loadData && w(p, d.loadData), d.formulas && w(C, d.formulas);
4960
4940
  }
4961
- const Be = j();
4941
+ const Be = A();
4962
4942
  return Me(Be, F), Object.defineProperties(Be, {
4963
4943
  fetch: {
4964
4944
  get() {
@@ -4970,7 +4950,7 @@ function lr(t) {
4970
4950
  }
4971
4951
  }), Be.util = F, Be;
4972
4952
  }
4973
- const Bt = {
4953
+ const Pt = {
4974
4954
  date: "YYYY-MM-DD",
4975
4955
  month: "YYYY-MM",
4976
4956
  week: "YYYY-wo",
@@ -4980,16 +4960,16 @@ const Bt = {
4980
4960
  monthrange: "YYYY-MM",
4981
4961
  datetimerange: "YYYY-MM-DD HH:mm:ss",
4982
4962
  year: "YYYY"
4983
- }, Tt = "datePicker", Bi = {
4984
- name: Tt,
4963
+ }, Bt = "datePicker", Ii = {
4964
+ name: Bt,
4985
4965
  maker: function() {
4986
- return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(Tt, { type: e.toLowerCase() }), t), {});
4966
+ return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(Bt, { type: e.toLowerCase() }), t), {});
4987
4967
  }(),
4988
4968
  mergeProp(t) {
4989
4969
  const e = t.prop.props;
4990
- e.valueFormat || (e.valueFormat = Bt[e.type] || Bt.date);
4970
+ e.valueFormat || (e.valueFormat = Pt[e.type] || Pt.date);
4991
4971
  }
4992
- }, Qe = "hidden", Ti = {
4972
+ }, Qe = "hidden", Pi = {
4993
4973
  name: Qe,
4994
4974
  maker: {
4995
4975
  [Qe]: (t, e) => T(Qe)("", t, e)
@@ -4997,7 +4977,7 @@ const Bt = {
4997
4977
  render() {
4998
4978
  return [];
4999
4979
  }
5000
- }, Xe = "input", Li = {
4980
+ }, Xe = "input", Bi = {
5001
4981
  name: Xe,
5002
4982
  maker: function() {
5003
4983
  const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(Xe, { type: r }), e), {});
@@ -5007,22 +4987,22 @@ const Bt = {
5007
4987
  let { props: e } = t.prop;
5008
4988
  e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
5009
4989
  }
5010
- }, Mi = "textarea", Ni = {
5011
- name: Mi,
4990
+ }, Ti = "textarea", Li = {
4991
+ name: Ti,
5012
4992
  mergeProp(t) {
5013
4993
  let { props: e } = t.prop;
5014
4994
  e.type = "textarea", e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
5015
4995
  }
5016
- }, Lt = "slider", Ui = {
5017
- name: Lt,
4996
+ }, Tt = "slider", Mi = {
4997
+ name: Tt,
5018
4998
  maker: {
5019
- sliderRange: T(Lt, { range: !0 })
4999
+ sliderRange: T(Tt, { range: !0 })
5020
5000
  },
5021
5001
  toFormValue(t, e) {
5022
5002
  let r = Array.isArray(t), n = e.prop.props, s = n.min || 0, i;
5023
5003
  return n.range === !0 ? i = r ? t : [s, parseFloat(t) || s] : i = r ? parseFloat(t[0]) || s : parseFloat(t), i;
5024
5004
  }
5025
- }, Ze = "timePicker", qi = {
5005
+ }, Ze = "timePicker", Ni = {
5026
5006
  name: Ze,
5027
5007
  maker: {
5028
5008
  time: T(Ze, (t) => t.props.isRange = !1),
@@ -5032,7 +5012,7 @@ const Bt = {
5032
5012
  const e = t.prop.props;
5033
5013
  e.valueFormat || (e.valueFormat = "HH:mm:ss");
5034
5014
  }
5035
- }, Hi = {
5015
+ }, Ui = {
5036
5016
  name: "FcRow",
5037
5017
  render(t, e) {
5038
5018
  return e.vNode.col({ props: { span: 24 } }, {
@@ -5041,21 +5021,21 @@ const Bt = {
5041
5021
  ]
5042
5022
  });
5043
5023
  }
5044
- }, zi = "select", xi = {
5045
- name: zi,
5024
+ }, qi = "select", Hi = {
5025
+ name: qi,
5046
5026
  toFormValue(t, e) {
5047
5027
  return e.prop.props.multiple && !Array.isArray(t) ? q(t) : t;
5048
5028
  }
5049
- }, Gi = [
5029
+ }, zi = [
5030
+ Ii,
5031
+ Pi,
5050
5032
  Bi,
5051
- Ti,
5052
5033
  Li,
5034
+ Mi,
5053
5035
  Ni,
5054
5036
  Ui,
5055
- qi,
5056
- Hi,
5057
- xi
5058
- ], E = "el", Yi = {
5037
+ Hi
5038
+ ], E = "el", xi = {
5059
5039
  button: E + "-button",
5060
5040
  icon: E + "-icon",
5061
5041
  slider: E + "-slider",
@@ -5094,7 +5074,7 @@ const Bt = {
5094
5074
  object: "fc-sub-form",
5095
5075
  subForm: "fc-sub-form"
5096
5076
  };
5097
- function Ki() {
5077
+ function Gi() {
5098
5078
  return {
5099
5079
  form: {
5100
5080
  inline: !1,
@@ -5127,23 +5107,23 @@ function Ki() {
5127
5107
  }
5128
5108
  };
5129
5109
  }
5130
- function Wi(t) {
5110
+ function Yi(t) {
5131
5111
  return t.type === "tooltip";
5132
5112
  }
5133
- function Mt(t, e) {
5113
+ function Lt(t, e) {
5134
5114
  D(t, e) && m.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
5135
5115
  }
5136
5116
  function ie(t) {
5137
5117
  return t === !1;
5138
5118
  }
5139
- function Ji(t, e) {
5119
+ function Ki(t, e) {
5140
5120
  D(t, e) && !m.Object(t[e]) && (t[e] = { show: !!t[e] });
5141
5121
  }
5142
5122
  function et(t) {
5143
5123
  const e = _({}, t);
5144
5124
  return delete e.children, e;
5145
5125
  }
5146
- const Qi = {
5126
+ const Wi = {
5147
5127
  validate() {
5148
5128
  const t = this.form();
5149
5129
  return t ? t.validate() : new Promise((e) => e());
@@ -5167,11 +5147,11 @@ const Qi = {
5167
5147
  },
5168
5148
  tidyOptions(t) {
5169
5149
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
5170
- Ji(t, e);
5150
+ Ki(t, e);
5171
5151
  }), t;
5172
5152
  },
5173
5153
  tidyRule({ prop: t }) {
5174
- return Mt(t, "title"), Mt(t, "info"), t;
5154
+ return Lt(t, "title"), Lt(t, "info"), t;
5175
5155
  },
5176
5156
  mergeProp(t) {
5177
5157
  const e = {
@@ -5189,7 +5169,7 @@ const Qi = {
5189
5169
  });
5190
5170
  },
5191
5171
  getDefaultOptions() {
5192
- return Ki();
5172
+ return Gi();
5193
5173
  },
5194
5174
  update() {
5195
5175
  const t = this.options.form;
@@ -5218,7 +5198,7 @@ const Qi = {
5218
5198
  delete r.wrap.class, delete r.wrap.title;
5219
5199
  const f = (m.Undef(r.wrap.show) ? !t.input : ie(r.wrap.show)) ? e : this.$r(oe([r.wrap, {
5220
5200
  props: z(_({
5221
- labelWidth: o === void 0 ? o : qt(o),
5201
+ labelWidth: o === void 0 ? o : Ut(o),
5222
5202
  label: i ? r.title.title : void 0
5223
5203
  }, et(r.wrap || {})), {
5224
5204
  prop: t.id,
@@ -5238,7 +5218,7 @@ const Qi = {
5238
5218
  },
5239
5219
  makeInfo(t, e, r) {
5240
5220
  var f, c, h, p, y, C;
5241
- const n = _({}, t.title), s = _({}, t.info), i = Wi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5221
+ const n = _({}, t.title), s = _({}, t.info), i = Yi(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5242
5222
  title: (c = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : c.value,
5243
5223
  rule: r.rule,
5244
5224
  options: this.options
@@ -5344,29 +5324,29 @@ const Qi = {
5344
5324
  }, [e]);
5345
5325
  }
5346
5326
  }, pe = {};
5327
+ Ji(pe);
5328
+ Qi(pe);
5347
5329
  Xi(pe);
5348
5330
  Zi(pe);
5349
5331
  es(pe);
5350
5332
  ts(pe);
5351
- rs(pe);
5352
- ns(pe);
5353
- function Xi(t) {
5333
+ function Ji(t) {
5354
5334
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "inputTag", "inputOtp", "mention", "transfer", "treeSelect", "radio", "rate"].forEach((e) => {
5355
5335
  t[e] = T(e);
5356
5336
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker, t.tag = t.inputTag;
5357
5337
  }
5358
- function Zi(t) {
5338
+ function Qi(t) {
5359
5339
  t.treeSelectMultiple = T("treeSelect", { multiple: !0 });
5360
5340
  }
5361
- function es(t) {
5341
+ function Xi(t) {
5362
5342
  const e = "select", r = "multiple";
5363
5343
  t.selectMultiple = T(e, { [r]: !0 }), t.selectOne = T(e, { [r]: !1 });
5364
5344
  }
5365
- function ts(t) {
5345
+ function Zi(t) {
5366
5346
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5367
5347
  Object.keys(r).reduce((n, s) => (n[s] = T(e, { type: r[s] }), n), t);
5368
5348
  }
5369
- function rs(t) {
5349
+ function es(t) {
5370
5350
  const e = "upload", r = {
5371
5351
  image: ["image", 0],
5372
5352
  file: ["file", 0],
@@ -5375,7 +5355,7 @@ function rs(t) {
5375
5355
  };
5376
5356
  Object.keys(r).reduce((n, s) => (n[s] = T(e, (i) => i.props({ uploadType: r[s][0], maxLength: r[s][1] })), n), t), t.uploadImage = t.image, t.uploadFile = t.file;
5377
5357
  }
5378
- function ns(t) {
5358
+ function ts(t) {
5379
5359
  const e = {
5380
5360
  frameInputs: ["input", 0],
5381
5361
  frameFiles: ["file", 0],
@@ -5386,10 +5366,10 @@ function ns(t) {
5386
5366
  };
5387
5367
  return Object.keys(e).reduce((r, n) => (r[n] = T("frame", (s) => s.props({ type: e[n][0], maxLength: e[n][1] })), r), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages, t;
5388
5368
  }
5389
- function Nt(t, e) {
5369
+ function Mt(t, e) {
5390
5370
  return m.Boolean(t) ? t = { show: t } : !m.Undef(t) && !m.Object(t) && (t = { show: e }), t;
5391
5371
  }
5392
- function is(t, e) {
5372
+ function rs(t, e) {
5393
5373
  return {
5394
5374
  formEl() {
5395
5375
  return e.$manager.form();
@@ -5479,11 +5459,11 @@ function is(t, e) {
5479
5459
  }
5480
5460
  },
5481
5461
  submitBtnProps: (r = {}) => {
5482
- let n = Nt(e.options.submitBtn, !0);
5462
+ let n = Mt(e.options.submitBtn, !0);
5483
5463
  w(n, r), e.options.submitBtn = n, t.refreshOptions();
5484
5464
  },
5485
5465
  resetBtnProps: (r = {}) => {
5486
- let n = Nt(e.options.resetBtn, !1);
5466
+ let n = Mt(e.options.resetBtn, !1);
5487
5467
  w(n, r), e.options.resetBtn = n, t.refreshOptions();
5488
5468
  },
5489
5469
  submit(r, n) {
@@ -5501,10 +5481,10 @@ function is(t, e) {
5501
5481
  }
5502
5482
  };
5503
5483
  }
5504
- const ur = {
5484
+ const lr = {
5505
5485
  name: "required",
5506
5486
  load(t, e, r) {
5507
- const n = ss(t.getValue());
5487
+ const n = ns(t.getValue());
5508
5488
  let s;
5509
5489
  if (n.required === !1)
5510
5490
  t.clearProp(), r.clearValidateState([e.field]);
@@ -5530,16 +5510,16 @@ const ur = {
5530
5510
  r.sync(e);
5531
5511
  },
5532
5512
  watch(...t) {
5533
- ur.load(...t);
5513
+ lr.load(...t);
5534
5514
  }
5535
5515
  };
5536
- function ss(t) {
5516
+ function ns(t) {
5537
5517
  return m.Boolean(t) ? { required: t } : m.String(t) ? { message: t } : m.Undef(t) ? { required: !1 } : m.Function(t) ? { validator: t } : m.Object(t) ? t : {};
5538
5518
  }
5539
- function os(t) {
5540
- t.componentAlias(Yi), Bn.forEach((e) => {
5519
+ function is(t) {
5520
+ t.componentAlias(xi), Pn.forEach((e) => {
5541
5521
  t.component(e.name, e);
5542
- }), t.register(ur), Gi.forEach((e) => {
5522
+ }), t.register(lr), zi.forEach((e) => {
5543
5523
  t.parser(e);
5544
5524
  }), Object.keys(pe).forEach((e) => {
5545
5525
  t.maker[e] = pe[e];
@@ -5547,13 +5527,13 @@ function os(t) {
5547
5527
  r.use(window.ElementPlus);
5548
5528
  });
5549
5529
  }
5550
- function as() {
5551
- return lr({
5530
+ function ss() {
5531
+ return ar({
5552
5532
  ui: "element-ui",
5553
- version: "3.3.3",
5554
- manager: Qi,
5555
- extendApi: is,
5556
- install: os,
5533
+ version: "3.3.4",
5534
+ manager: Wi,
5535
+ extendApi: rs,
5536
+ install: is,
5557
5537
  attrs: {
5558
5538
  normal: ["col", "wrap"],
5559
5539
  array: ["className"],
@@ -5561,10 +5541,10 @@ function as() {
5561
5541
  }
5562
5542
  });
5563
5543
  }
5564
- const fr = as();
5565
- typeof window != "undefined" && (window.formCreate = fr);
5566
- const fs = fr.maker;
5544
+ const ur = ss();
5545
+ typeof window != "undefined" && (window.formCreate = ur);
5546
+ const ls = ur.maker;
5567
5547
  export {
5568
- fr as default,
5569
- fs as maker
5548
+ ur as default,
5549
+ ls as maker
5570
5550
  };