@form-create/element-ui 3.3.3 → 3.3.5

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.5
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
- (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;
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}.form-create.is-numbered{counter-reset:q}.form-create.is-numbered .fc-form-title{counter-increment:q}.form-create.is-numbered .fc-form-title:before{content:counter(q) ". ";color:var(--fc-number-color, inherit);font-weight:600}.form-create.is-numbered.is-number-chinese .fc-form-title:before{content:counter(q,simp-chinese-informal) "、"}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
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
+ }, U = (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 q, 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
- function q(t) {
26
+ function H(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,
@@ -43,7 +43,7 @@ const Lr = "fcCheckbox", Mr = /* @__PURE__ */ re({
43
43
  emits: ["update:modelValue", "fc.el"],
44
44
  setup(t, e) {
45
45
  const r = L(t.formCreateInject, "options", []), n = L(t, "options"), s = L(t, "modelValue"), i = L(t, "inputValue", ""), o = ot(i.value), a = L(t, "input", !1), l = (c) => {
46
- const h = [...q(s.value)], p = h.indexOf(o.value);
46
+ const h = [...H(s.value)], p = h.indexOf(o.value);
47
47
  o.value = c, p > -1 && (h.splice(p, 1), h.push(c), f(h));
48
48
  };
49
49
  B(i, (c) => {
@@ -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 q(), 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 q(), 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 q(), 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 q(), 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 q(), 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,21 +338,21 @@ 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 {
346
- fileList: q(this.modelValue),
346
+ fileList: H(this.modelValue),
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: {
354
354
  modelValue(t) {
355
- this.fileList = q(t);
355
+ this.fileList = H(t);
356
356
  }
357
357
  },
358
358
  methods: {
@@ -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,36 +724,36 @@ 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
- return U(), Te(l, x(t.$attrs, {
729
+ return q(), Te(l, x(t.$attrs, {
730
730
  "model-value": t.value,
731
731
  "onUpdate:modelValue": t.handleUpdate,
732
732
  ref: "el"
733
733
  }), {
734
734
  default: bt(() => [
735
- (U(!0), X(Ye, null, $t(t.options, (u, f) => (U(), X(Ye, null, [
736
- t.hasProperty(u, "options") ? (U(), Te(a, {
735
+ (q(!0), X(Ye, null, $t(t.options, (u, f) => (q(), X(Ye, null, [
736
+ t.hasProperty(u, "options") ? (q(), Te(a, {
737
737
  label: u.label,
738
738
  key: `${f}-${u.label}`
739
739
  }, {
740
740
  default: bt(() => [
741
- (U(!0), X(Ye, null, $t(t.is.trueArray(u.options) ? u.options : [], (c, h) => (U(), Te(o, x({
741
+ (q(!0), X(Ye, null, $t(t.is.trueArray(u.options) ? u.options : [], (c, h) => (q(), Te(o, x({
742
742
  key: `${h}-${c.value}`
743
743
  }, { ref_for: !0 }, c), null, 16))), 128))
744
744
  ]),
745
745
  _: 2
746
- }, 1032, ["label"])) : (U(), Te(o, x({
746
+ }, 1032, ["label"])) : (q(), Te(o, x({
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) {
@@ -784,7 +784,7 @@ const pn = /* @__PURE__ */ me(dn, [["render", hn]]), mn = "fcTree", gn = /* @__P
784
784
  },
785
785
  setValue() {
786
786
  if (!this.$refs.tree) return;
787
- this.type === "selected" ? this.$refs.tree.setCurrentKey(this.modelValue) : this.$refs.tree.setCheckedKeys(q(this.modelValue));
787
+ this.type === "selected" ? this.$refs.tree.setCurrentKey(this.modelValue) : this.$refs.tree.setCheckedKeys(H(this.modelValue));
788
788
  }
789
789
  },
790
790
  render() {
@@ -797,45 +797,45 @@ 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 q(), 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
  }
824
824
  function wt(t) {
825
- return z(_({}, t), {
825
+ return U(_({}, t), {
826
826
  file: 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) {
838
- return q(t);
838
+ return H(t);
839
839
  },
840
840
  toValue(t, e) {
841
841
  return e.prop.props.limit === 1 ? t[0] || "" : t;
@@ -860,11 +860,11 @@ const wn = "fcUpload", Cn = /* @__PURE__ */ re({
860
860
  };
861
861
  },
862
862
  created() {
863
- this.fileList = q(this.modelValue).map(_t).map(wt);
863
+ this.fileList = H(this.modelValue).map(_t).map(wt);
864
864
  },
865
865
  watch: {
866
866
  modelValue(t) {
867
- this.fileList = q(t).map(_t).map(wt);
867
+ this.fileList = H(t).map(_t).map(wt);
868
868
  }
869
869
  },
870
870
  methods: {
@@ -891,7 +891,7 @@ const wn = "fcUpload", Cn = /* @__PURE__ */ re({
891
891
  }
892
892
  },
893
893
  render() {
894
- const t = q(this.modelValue).length;
894
+ const t = H(this.modelValue).length;
895
895
  return v("div", {
896
896
  class: "_fc-upload"
897
897
  }, [v(O("ElUpload"), x({
@@ -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,
@@ -1372,7 +1372,7 @@ const En = "fcGroup", Rn = /* @__PURE__ */ re({
1372
1372
  class: "_fc-group-content"
1373
1373
  }, [v(r, x({
1374
1374
  key: o
1375
- }, z(_({}, this.$attrs), {
1375
+ }, U(_({}, this.$attrs), {
1376
1376
  disabled: n,
1377
1377
  "onUpdate:modelValue": (h) => this.formData(o, h),
1378
1378
  "onUpdate:api": (h) => this.add$f(a, o, h),
@@ -1388,7 +1388,7 @@ const En = "fcGroup", Rn = /* @__PURE__ */ re({
1388
1388
  key: o
1389
1389
  }, [v(r, x({
1390
1390
  key: o
1391
- }, z(_({}, this.$attrs), {
1391
+ }, U(_({}, this.$attrs), {
1392
1392
  disabled: n,
1393
1393
  "onUpdate:modelValue": (h) => this.formData(o, h),
1394
1394
  "onUpdate:api": (h) => this.add$f(a, o, h),
@@ -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 q(), 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
- function H(t) {
1536
+ function z(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
  }
@@ -1626,8 +1626,8 @@ function Le() {
1626
1626
  function St(t) {
1627
1627
  const e = _({}, t.props || {});
1628
1628
  return Object.keys(t.on || {}).forEach((r) => {
1629
- r.indexOf("-") > 0 && (r = H(r));
1630
- const n = `on${Ht(r)}`;
1629
+ r.indexOf("-") > 0 && (r = z(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,10 @@ 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);
1711
+ function Nn() {
1712
+ return typeof document != "undefined" && typeof document.createElement == "function" && document.head != null;
1718
1713
  }
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) {
1714
+ function Un(t, e, r) {
1734
1715
  return re({
1735
1716
  name: "FormCreate" + (t.isMobile ? "Mobile" : ""),
1736
1717
  components: e,
@@ -1773,8 +1754,8 @@ function qn(t, e, r) {
1773
1754
  },
1774
1755
  setup(n) {
1775
1756
  const s = tt();
1776
- Or("parentFC", s);
1777
- const i = Er("parentFC", null);
1757
+ Fr("parentFC", s);
1758
+ const i = Or("parentFC", null);
1778
1759
  let o = i;
1779
1760
  if (i)
1780
1761
  for (; o.setupState.parent; )
@@ -1788,35 +1769,35 @@ function qn(t, e, r) {
1788
1769
  unique: 1,
1789
1770
  renderRule: [...a.value || []]
1790
1771
  });
1791
- let h = l.value || {};
1772
+ let h = JSON.stringify(l.value || {});
1792
1773
  const p = new t(s), y = p.api(), C = f.value, F = () => {
1793
1774
  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);
1775
+ const k = Ue(s, i);
1776
+ if (k) {
1777
+ let A;
1778
+ C ? (A = H(k.getSubForm()), A.push(y)) : A = y, k.subForm(A);
1798
1779
  }
1799
1780
  }
1800
1781
  }, G = () => {
1801
- const R = Ue(s, i);
1802
- if (R)
1782
+ const k = Ue(s, i);
1783
+ if (k)
1803
1784
  if (C) {
1804
- const j = q(R.getSubForm()), W = j.indexOf(y);
1805
- W > -1 && j.splice(W, 1);
1785
+ const A = H(k.getSubForm()), W = A.indexOf(y);
1786
+ W > -1 && A.splice(W, 1);
1806
1787
  } else
1807
- R.subForm();
1788
+ k.subForm();
1808
1789
  };
1809
1790
  let P = null;
1810
- Rr(() => {
1811
- kr(() => {
1812
- let R = "";
1813
- const j = n.option && n.option.globalClass || {};
1814
- Object.keys(j).forEach((W) => {
1791
+ Er(() => {
1792
+ Nn() && Rr(() => {
1793
+ let k = "";
1794
+ const A = n.option && n.option.globalClass || {};
1795
+ Object.keys(A).forEach((W) => {
1815
1796
  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 || "";
1797
+ A[W].style && Object.keys(A[W].style).forEach((je) => {
1798
+ Fe += ke(je) + ":" + A[W].style[je] + ";";
1799
+ }), A[W].content && (Fe += A[W].content + ";"), Fe && (k += `.${W}{${Fe}}`);
1800
+ }), 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
1801
  });
1821
1802
  });
1822
1803
  const N = ce(() => {
@@ -1825,30 +1806,30 @@ function qn(t, e, r) {
1825
1806
  p.bus.$emit("$loadData.$scopeForm");
1826
1807
  }, 100), ze = ce(() => {
1827
1808
  p.bus.$emit("$loadData.$form");
1828
- }, 100), Ve = (R) => {
1829
- p.bus.$emit("change-$form." + R);
1809
+ }, 100), Ve = (k) => {
1810
+ p.bus.$emit("change-$form." + k);
1830
1811
  };
1831
- return Dr(() => {
1812
+ return kr(() => {
1832
1813
  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();
1814
+ }), Dr(() => {
1815
+ 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.parentNode.removeChild(P);
1833
1816
  }), Ar(() => {
1834
- 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(() => {
1836
1817
  p.updated();
1837
1818
  }), F(), B(() => n.option, () => {
1838
1819
  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());
1820
+ }, { deep: !0, flush: "sync" }), B(() => [...a.value], (k) => {
1821
+ 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
1822
  }), B(() => [n.disabled, n.preview], () => {
1842
1823
  y.refresh();
1843
- }), B(l, (R) => {
1844
- Ot(R || {}, h) || (y.config.forceCoverValue ? y.coverValue(R || {}) : y.setValue(R || {}));
1824
+ }), B(l, (k) => {
1825
+ De(k || {}) !== h && (y.config.forceCoverValue ? y.coverValue(k || {}) : y.setValue(k || {}));
1845
1826
  }, { deep: !0, flush: "post" }), B(() => n.index, () => {
1846
1827
  y.coverValue({}), p.$handle.updateAppendData(), I(() => {
1847
1828
  I(() => {
1848
1829
  y.clearValidateState();
1849
1830
  });
1850
1831
  });
1851
- }, { flush: "sync" }), z(_({
1832
+ }, { flush: "sync" }), U(_({
1852
1833
  fc: fe(p),
1853
1834
  parent: i && fe(i),
1854
1835
  top: fe(o),
@@ -1861,8 +1842,10 @@ function qn(t, e, r) {
1861
1842
  renderRule() {
1862
1843
  c.renderRule = [...a.value || []];
1863
1844
  },
1864
- updateValue(R) {
1865
- c.destroyed || Ot(R, h) || (h = R, s.emit("update:modelValue", R), I(() => {
1845
+ updateValue(k) {
1846
+ if (c.destroyed) return;
1847
+ const A = De(k);
1848
+ h !== A && (h = A, s.emit("update:modelValue", k), I(() => {
1866
1849
  ze(), i ? u.value || Se() : (N(), Se());
1867
1850
  }));
1868
1851
  }
@@ -1874,7 +1857,7 @@ function qn(t, e, r) {
1874
1857
  }
1875
1858
  });
1876
1859
  }
1877
- function rr() {
1860
+ function tr() {
1878
1861
  return {
1879
1862
  props: {},
1880
1863
  on: {},
@@ -1892,7 +1875,7 @@ function T(t, e) {
1892
1875
  };
1893
1876
  }
1894
1877
  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;
1878
+ this._data = w(tr(), { type: t, title: e, field: r, value: n, props: s || {} }), this.event = this.on;
1896
1879
  }
1897
1880
  w(ct.prototype, {
1898
1881
  getRule() {
@@ -1906,33 +1889,33 @@ w(ct.prototype, {
1906
1889
  },
1907
1890
  _clone() {
1908
1891
  const t = new this.constructor();
1909
- return t._data = Xt(this._data), t;
1892
+ return t._data = Qt(this._data), t;
1910
1893
  }
1911
1894
  });
1912
- function nr(t) {
1895
+ function rr(t) {
1913
1896
  t.forEach((e) => {
1914
1897
  ct.prototype[e] = function(r) {
1915
1898
  return ae(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1916
1899
  };
1917
1900
  });
1918
1901
  }
1919
- nr(Jt());
1920
- const Hn = T("");
1921
- function zn(t, e, r) {
1922
- let n = Hn("", e);
1902
+ rr(Wt());
1903
+ const qn = T("");
1904
+ function Hn(t, e, r) {
1905
+ let n = qn("", e);
1923
1906
  return n._data.type = t, n._data.title = r, n;
1924
1907
  }
1925
- function xn() {
1908
+ function zn() {
1926
1909
  return {
1927
- create: zn,
1910
+ create: Hn,
1928
1911
  factory: T
1929
1912
  };
1930
1913
  }
1931
- function Gn(t, e, r) {
1914
+ function xn(t, e, r) {
1932
1915
  const n = `fail to ${t} ${r.status}'`, s = new Error(n);
1933
1916
  return s.status = r.status, s.url = t, s;
1934
1917
  }
1935
- function Et(t) {
1918
+ function Ot(t) {
1936
1919
  const e = t.responseText || t.response;
1937
1920
  if (!e)
1938
1921
  return e;
@@ -1942,7 +1925,7 @@ function Et(t) {
1942
1925
  return e;
1943
1926
  }
1944
1927
  }
1945
- function ir(t) {
1928
+ function nr(t) {
1946
1929
  if (typeof XMLHttpRequest == "undefined")
1947
1930
  return;
1948
1931
  const e = new XMLHttpRequest();
@@ -1957,8 +1940,8 @@ function ir(t) {
1957
1940
  t.onError(o);
1958
1941
  }, e.onload = function() {
1959
1942
  if (e.status < 200 || e.status >= 300)
1960
- return t.onError(Gn(r, t, e), Et(e));
1961
- t.onSuccess(Et(e));
1943
+ return t.onError(xn(r, t, e), Ot(e));
1944
+ t.onSuccess(Ot(e));
1962
1945
  }, e.open(t.method || "get", r, !0);
1963
1946
  let n;
1964
1947
  (t.data || t.file) && (t.file || (t.dataType || "").toLowerCase() !== "json" ? (n = new FormData(), Object.keys(t.data || {}).map((i) => {
@@ -1969,9 +1952,9 @@ function ir(t) {
1969
1952
  s[i] != null && e.setRequestHeader(i, s[i]);
1970
1953
  }), e.send(n);
1971
1954
  }
1972
- function Rt(t, e, r) {
1955
+ function Et(t, e, r) {
1973
1956
  return new Promise((n, s) => {
1974
- (e || ir)(z(_({}, t), {
1957
+ (e || nr)(U(_({}, t), {
1975
1958
  onSuccess(i) {
1976
1959
  let o = (l) => l;
1977
1960
  const a = te(t.parse);
@@ -1988,7 +1971,7 @@ function Rt(t, e, r) {
1988
1971
  function Oe(t) {
1989
1972
  return ee(t);
1990
1973
  }
1991
- function Yn(t) {
1974
+ function Gn(t) {
1992
1975
  function e(i) {
1993
1976
  return m.Undef(i) ? i = t.fields() : Array.isArray(i) || (i = [i]), i;
1994
1977
  }
@@ -2313,7 +2296,7 @@ function Yn(t) {
2313
2296
  method(i, o) {
2314
2297
  const a = s.el(i);
2315
2298
  if (!a || !a[o])
2316
- throw new Error(zt("err", `${o} 方法不存在`));
2299
+ throw new Error(Ht("err", `${o} 方法不存在`));
2317
2300
  return (...l) => a[o](...l);
2318
2301
  },
2319
2302
  exec(i, o, ...a) {
@@ -2448,7 +2431,7 @@ function Yn(t) {
2448
2431
  const u = (f) => {
2449
2432
  V(() => l.onError && l.onError(f)), a(f);
2450
2433
  };
2451
- t.beforeFetch(l).then(() => Rt(l, t.fc.create.fetch, s).then((f) => {
2434
+ t.beforeFetch(l).then(() => Et(l, t.fc.create.fetch, s).then((f) => {
2452
2435
  V(() => l.onSuccess && l.onSuccess(f)), o(f);
2453
2436
  }).catch((f) => {
2454
2437
  u(f);
@@ -2465,7 +2448,7 @@ function Yn(t) {
2465
2448
  const h = (p) => {
2466
2449
  V(() => c.onError && c.onError(p)), a && a(p);
2467
2450
  };
2468
- t.beforeFetch(c).then(() => Rt(c, t.fc.create.fetch, s).then((p) => {
2451
+ t.beforeFetch(c).then(() => Et(c, t.fc.create.fetch, s).then((p) => {
2469
2452
  V(() => c.onSuccess && c.onSuccess(p)), o && o(p, f);
2470
2453
  }).catch((p) => {
2471
2454
  h(p);
@@ -2505,7 +2488,7 @@ function Yn(t) {
2505
2488
  };
2506
2489
  }), s.changeValue = s.changeField = s.setValue, s;
2507
2490
  }
2508
- function Kn(t) {
2491
+ function Yn(t) {
2509
2492
  w(t.prototype, {
2510
2493
  initCache() {
2511
2494
  this.clearCacheAll();
@@ -2537,7 +2520,7 @@ function Kn(t) {
2537
2520
  }
2538
2521
  });
2539
2522
  }
2540
- function Wn(t) {
2523
+ function Kn(t) {
2541
2524
  w(t.prototype, {
2542
2525
  initRender() {
2543
2526
  this.cacheConfig = {};
@@ -2554,12 +2537,24 @@ function Wn(t) {
2554
2537
  render() {
2555
2538
  if (!this.vm.setupState.isShow)
2556
2539
  return;
2557
- this.$manager.beforeRender();
2540
+ this.$manager.beforeRender(), this.applyShowNumber(this.$manager.rule);
2558
2541
  const e = Le();
2559
2542
  return this.sort.forEach((r) => {
2560
2543
  this.renderSlot(e, this.$handle.ctxs[r]);
2561
2544
  }), this.$manager.render(e);
2562
2545
  },
2546
+ applyShowNumber(e) {
2547
+ const r = this.$handle.options || {};
2548
+ if (!r.showNumber || !e)
2549
+ return;
2550
+ e.class = this.mergeClass(e.class, "is-numbered"), r.showNumber === "chinese" && (e.class = this.mergeClass(e.class, "is-number-chinese"));
2551
+ const n = r.numberColor, s = (r.form || {}).style;
2552
+ if (!n) {
2553
+ e.style = s;
2554
+ return;
2555
+ }
2556
+ m.String(s) ? e.style = `${s};--fc-number-color:${n}` : Array.isArray(s) ? e.style = s.concat({ "--fc-number-color": n }) : e.style = U(_({}, s || {}), { "--fc-number-color": n });
2557
+ },
2563
2558
  renderSlot(e, r, n) {
2564
2559
  if (this.isFragment(r)) {
2565
2560
  r.initProp(), this.mergeGlobal(r), r.initNone();
@@ -2796,7 +2791,7 @@ function Wn(t) {
2796
2791
  },
2797
2792
  defaultRender(e, r) {
2798
2793
  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);
2794
+ 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
2795
  },
2801
2796
  createChildrenVnodes(e, r, n) {
2802
2797
  this.force = n !== !1, this.tmpInput = r;
@@ -2815,9 +2810,9 @@ function Wn(t) {
2815
2810
  if (n)
2816
2811
  s = e.type;
2817
2812
  else if (s = e.is, e.type) {
2818
- s = H(e.type);
2813
+ s = z(e.type);
2819
2814
  const a = this.vNode.aliasMap[s];
2820
- a && (s = H(a));
2815
+ a && (s = z(a));
2821
2816
  }
2822
2817
  if (!s) return;
2823
2818
  const i = Le();
@@ -2829,7 +2824,7 @@ function Wn(t) {
2829
2824
  }
2830
2825
  });
2831
2826
  }
2832
- let Jn = 1;
2827
+ let Wn = 1;
2833
2828
  function dt(t) {
2834
2829
  w(this, {
2835
2830
  $handle: t,
@@ -2839,8 +2834,8 @@ function dt(t) {
2839
2834
  vNode: new t.fc.CreateNode(t),
2840
2835
  force: !1,
2841
2836
  tmpInput: null,
2842
- id: Jn++
2843
- }), er(this, {
2837
+ id: Wn++
2838
+ }), Zt(this, {
2844
2839
  options() {
2845
2840
  return t.options;
2846
2841
  },
@@ -2849,9 +2844,9 @@ function dt(t) {
2849
2844
  }
2850
2845
  }), this.initCache(), this.initRender();
2851
2846
  }
2847
+ Yn(dt);
2852
2848
  Kn(dt);
2853
- Wn(dt);
2854
- function Qn(t) {
2849
+ function Jn(t) {
2855
2850
  w(t.prototype, {
2856
2851
  parseInjectEvent(e, r) {
2857
2852
  const n = e.inject || this.options.injectEvent;
@@ -2884,10 +2879,10 @@ function Qn(t) {
2884
2879
  this.vm.emitsOptions && !this.vm.emitsOptions[h] && (this.vm.emitsOptions[h] = null), this.vm.emit(h, ...y), this.vm.emit("emit-event", h, ...y), this.bus.$emit(h, ...y);
2885
2880
  };
2886
2881
  if (p.__emit = !0, !f && a === !1)
2887
- r[H(u)] = p;
2882
+ r[z(u)] = p;
2888
2883
  else {
2889
2884
  let y = f || a || this.options.injectEvent;
2890
- r[H(u)] = m.Undef(y) ? p : this.inject(n, p, y);
2885
+ r[z(u)] = m.Undef(y) ? p : this.inject(n, p, y);
2891
2886
  }
2892
2887
  }
2893
2888
  }), e.computed.on = r, r;
@@ -2917,7 +2912,7 @@ function Qn(t) {
2917
2912
  },
2918
2913
  loadStrVar(e, r, n) {
2919
2914
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2920
- const s = e, i = Nn(e), o = (u) => {
2915
+ const s = e, i = Mn(e), o = (u) => {
2921
2916
  let f = !1, c;
2922
2917
  if (n && u.indexOf("$form.") === 0) {
2923
2918
  const h = u.split(".");
@@ -2941,7 +2936,7 @@ function Qn(t) {
2941
2936
  if (i.forEach((u) => {
2942
2937
  const f = u.split("||"), c = f[0].trim();
2943
2938
  if (c) {
2944
- const h = (f[1] || "").trim(), p = tr(c);
2939
+ const h = (f[1] || "").trim(), p = er(c);
2945
2940
  let y = V(() => a(p));
2946
2941
  (y == null || y === "") && f.length > 1 && (y = h), l = y, e = e.replaceAll(`{{${u}}}`, y == null ? "" : y);
2947
2942
  }
@@ -2965,13 +2960,13 @@ function Qn(t) {
2965
2960
  }
2966
2961
  });
2967
2962
  }
2968
- const kt = ["hook:updated", "hook:mounted"];
2969
- function Xn(t) {
2963
+ const Rt = ["hook:updated", "hook:mounted"];
2964
+ function Qn(t) {
2970
2965
  w(t.prototype, {
2971
2966
  usePage() {
2972
2967
  const e = this.options.page;
2973
2968
  if (!e) return;
2974
- let r = 25, n = Zn(this.rules);
2969
+ let r = 25, n = Xn(this.rules);
2975
2970
  m.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (n = parseInt(e.limit, 10) || n)), w(this, {
2976
2971
  first: r,
2977
2972
  limit: n,
@@ -2980,16 +2975,16 @@ function Xn(t) {
2980
2975
  },
2981
2976
  pageLoad() {
2982
2977
  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());
2978
+ 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
2979
  };
2985
- this.bus.$on(kt, e);
2980
+ this.bus.$on(Rt, e);
2986
2981
  }
2987
2982
  });
2988
2983
  }
2989
- function Zn(t) {
2984
+ function Xn(t) {
2990
2985
  return t.length < 31 ? 31 : Math.ceil(t.length / 3);
2991
2986
  }
2992
- function ei(t) {
2987
+ function Zn(t) {
2993
2988
  w(t.prototype, {
2994
2989
  clearNextTick() {
2995
2990
  this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
@@ -3004,14 +2999,14 @@ function ei(t) {
3004
2999
  }
3005
3000
  });
3006
3001
  }
3007
- function ti(t) {
3002
+ function ei(t) {
3008
3003
  Object.defineProperties(t.origin, {
3009
3004
  __fc__: st(fe(t))
3010
3005
  }), t.rule !== t.origin && Object.defineProperties(t.rule, {
3011
3006
  __fc__: st(fe(t))
3012
3007
  });
3013
3008
  }
3014
- function sr(t, e, r) {
3009
+ function ir(t, e, r) {
3015
3010
  const n = He(), s = !!e.field;
3016
3011
  w(this, {
3017
3012
  id: n,
@@ -3040,9 +3035,9 @@ function sr(t, e, r) {
3040
3035
  exportEl: void 0,
3041
3036
  defaultValue: s ? ee(r) : void 0,
3042
3037
  field: e.field || void 0
3043
- }), this.updateKey(), ti(this), this.update(t, !0);
3038
+ }), this.updateKey(), ei(this), this.update(t, !0);
3044
3039
  }
3045
- w(sr.prototype, {
3040
+ w(ir.prototype, {
3046
3041
  getParentGroup() {
3047
3042
  let t = this.parent;
3048
3043
  for (; t; ) {
@@ -3115,7 +3110,7 @@ w(sr.prototype, {
3115
3110
  this.key = He(), t && this.parent && this.parent.updateKey(t);
3116
3111
  },
3117
3112
  updateType() {
3118
- this.originType = this.rule.type, this.type = H(this.rule.type), this.trueType = this.$handle.getType(this.originType);
3113
+ this.originType = this.rule.type, this.type = z(this.rule.type), this.trueType = this.$handle.getType(this.originType);
3119
3114
  },
3120
3115
  setParser(t) {
3121
3116
  this.parser = t, t.init(this);
@@ -3199,7 +3194,7 @@ w(sr.prototype, {
3199
3194
  }), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
3200
3195
  }
3201
3196
  });
3202
- function ri(t) {
3197
+ function ti(t) {
3203
3198
  w(t.prototype, {
3204
3199
  nextRefresh(e) {
3205
3200
  const r = this.loadedId;
@@ -3211,7 +3206,7 @@ function ri(t) {
3211
3206
  const r = Ct(e);
3212
3207
  return Object.defineProperties(r, {
3213
3208
  __origin__: st(e)
3214
- }), ni(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((n) => {
3209
+ }), ri(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((n) => {
3215
3210
  n && this.loadFn(n, r);
3216
3211
  }), this.loadCtrl(r), r.update && (r.update = te(r.update)), r;
3217
3212
  },
@@ -3264,20 +3259,20 @@ function ri(t) {
3264
3259
  let f, c = !1, h = !!o.__fc__, p = l.value;
3265
3260
  if (h) {
3266
3261
  if (f = o.__fc__, p = f.defaultValue, f.deleted) {
3267
- if (Dt(f))
3262
+ if (kt(f))
3268
3263
  return;
3269
3264
  f.update(this);
3270
3265
  } else if (!f.check(this)) {
3271
- if (Dt(f))
3266
+ if (kt(f))
3272
3267
  return;
3273
- e[a] = o = o._clone ? o._clone() : xt(De(o)), f = null, c = !0;
3268
+ e[a] = o = o._clone ? o._clone() : zt(De(o)), f = null, c = !0;
3274
3269
  }
3275
3270
  }
3276
3271
  if (f)
3277
3272
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3278
3273
  else {
3279
3274
  const F = this.parseRule(o);
3280
- f = new sr(this, F, p), this.bindParser(f);
3275
+ f = new ir(this, F, p), this.bindParser(f);
3281
3276
  }
3282
3277
  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
3278
  const y = f.loadChildrenPending();
@@ -3296,16 +3291,16 @@ function ri(t) {
3296
3291
  return e.input && e.rule.control && this.useCtrl(e);
3297
3292
  },
3298
3293
  useCtrl(e) {
3299
- const r = ii(e), n = [], s = this.api;
3294
+ const r = ni(e), n = [], s = this.api;
3300
3295
  if (!r.length) return !1;
3301
3296
  for (let a = 0; a < r.length; a++) {
3302
3297
  const l = r[a], u = l.handle || function(c) {
3303
3298
  return (Ce[l.condition || "=="] || Ce["=="])(c, l.value);
3304
3299
  };
3305
3300
  if (!m.trueArray(l.rule)) continue;
3306
- const f = z(_({}, l), {
3301
+ const f = U(_({}, l), {
3307
3302
  valid: V(() => u(e.rule.value, s)),
3308
- ctrl: si(e, l.rule),
3303
+ ctrl: ii(e, l.rule),
3309
3304
  isHidden: m.String(l.rule[0])
3310
3305
  });
3311
3306
  f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || n.push(f);
@@ -3368,27 +3363,27 @@ function ri(t) {
3368
3363
  }
3369
3364
  });
3370
3365
  }
3371
- function ni(t) {
3372
- const e = rr();
3366
+ function ri(t) {
3367
+ const e = tr();
3373
3368
  return Object.keys(e).forEach((r) => {
3374
3369
  D(t, r) || (t[r] = e[r]);
3375
3370
  }), t;
3376
3371
  }
3377
- function ii(t) {
3372
+ function ni(t) {
3378
3373
  const e = t.rule.control || [];
3379
3374
  return m.Object(e) ? [e] : e;
3380
3375
  }
3381
- function si(t, e) {
3376
+ function ii(t, e) {
3382
3377
  for (let r = 0; r < t.ctrlRule.length; r++) {
3383
3378
  const n = t.ctrlRule[r];
3384
3379
  if (n.children === e)
3385
3380
  return n;
3386
3381
  }
3387
3382
  }
3388
- function Dt(t) {
3383
+ function kt(t) {
3389
3384
  return !!t.rule.__ctrl;
3390
3385
  }
3391
- function oi(t) {
3386
+ function si(t) {
3392
3387
  w(t.prototype, {
3393
3388
  setValue(e, r, n, s) {
3394
3389
  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 +3457,7 @@ function oi(t) {
3462
3457
  if (n === r)
3463
3458
  return !1;
3464
3459
  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);
3460
+ 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
3461
  },
3467
3462
  isQuote(e, r) {
3468
3463
  return (r instanceof Function || m.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3495,7 +3490,7 @@ function oi(t) {
3495
3490
  }
3496
3491
  });
3497
3492
  }
3498
- function At(t, e) {
3493
+ function Dt(t, e) {
3499
3494
  return typeof e == "function" ? "" + e : e;
3500
3495
  }
3501
3496
  const Re = {
@@ -3517,13 +3512,13 @@ const Re = {
3517
3512
  },
3518
3513
  mergeProp(t) {
3519
3514
  }
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) {
3515
+ }, oi = ["field", "value", "vm", "template", "name", "config", "control", "inject", "sync", "payload", "optionsTo", "update", "slotUpdate", "computed", "component", "cache"], Ee = Symbol("oldValue"), ai = ["$condition", "$variableVal", "$val", "$form", "$scope", "$group", "$rule"], li = ["$formulas", "$form", "$scope", "$group", "$rule", "$api"], Ne = /* @__PURE__ */ new Map(), ui = 1e3;
3516
+ function At(t, e) {
3522
3517
  const r = t.join(",") + "|" + e;
3523
3518
  let n = Ne.get(r);
3524
- return n || (Ne.size >= fi && Ne.clear(), n = new Function(...t, e), Ne.set(r, n)), n;
3519
+ return n || (Ne.size >= ui && Ne.clear(), n = new Function(...t, e), Ne.set(r, n)), n;
3525
3520
  }
3526
- function ci(t) {
3521
+ function fi(t) {
3527
3522
  w(t.prototype, {
3528
3523
  //computed 更新原先各自 setTimeout(0),N 个字段同时联动就会拆成 N 个宏任务,
3529
3524
  //Vue 在任务之间各 flush 一次,render 被放大 N 倍。
@@ -3571,24 +3566,24 @@ function ci(t) {
3571
3566
  getParser(e) {
3572
3567
  const r = this.fc.parsers, n = this.fc.renderDriver;
3573
3568
  if (n) {
3574
- const s = n.parsers || {}, i = s[e.originType] || s[H(e.type)] || s[e.trueType];
3569
+ const s = n.parsers || {}, i = s[e.originType] || s[z(e.type)] || s[e.trueType];
3575
3570
  if (i)
3576
3571
  return i;
3577
3572
  }
3578
- return r[e.originType] || r[H(e.type)] || r[e.trueType] || Re;
3573
+ return r[e.originType] || r[z(e.type)] || r[e.trueType] || Re;
3579
3574
  },
3580
3575
  bindParser(e) {
3581
3576
  e.setParser(this.getParser(e));
3582
3577
  },
3583
3578
  getType(e) {
3584
- const r = this.fc.CreateNode.aliasMap, n = r[e] || r[H(e)] || e;
3585
- return H(n);
3579
+ const r = this.fc.CreateNode.aliasMap, n = r[e] || r[z(e)] || e;
3580
+ return z(n);
3586
3581
  },
3587
3582
  noWatch(e) {
3588
3583
  this.noWatchFn || (this.noWatchFn = e), V(e), this.noWatchFn === e && (this.noWatchFn = null);
3589
3584
  },
3590
3585
  watchCtx(e) {
3591
- const r = Jt().filter((o) => o[0] !== "_" && o[0] !== "$" && ai.indexOf(o) === -1), n = {}, s = (o, a, l) => (u, f) => {
3586
+ const r = Wt().filter((o) => o[0] !== "_" && o[0] !== "$" && oi.indexOf(o) === -1), n = {}, s = (o, a, l) => (u, f) => {
3592
3587
  let c = a.value;
3593
3588
  if (!this.isBreakWatch()) {
3594
3589
  if (l && e.parser.loadChildren === !1) {
@@ -3639,7 +3634,7 @@ function ci(t) {
3639
3634
  const l = a.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3640
3635
  return l ? this.api.t(l[1], { title: (f = (u = e.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value }) : a;
3641
3636
  };
3642
- return q(e.rule.validate).map((a) => {
3637
+ return H(e.rule.validate).map((a) => {
3643
3638
  const l = _({}, a);
3644
3639
  if (l.message && (l.message = o(l.message)), m.Function(l.validator)) {
3645
3640
  const u = e;
@@ -3819,7 +3814,7 @@ function ci(t) {
3819
3814
  else if (!c.mode)
3820
3815
  return !0;
3821
3816
  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)
3817
+ 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(ai, `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
3818
  return !0;
3824
3819
  l || (u = u && h);
3825
3820
  }
@@ -3844,7 +3839,7 @@ function ci(t) {
3844
3839
  fc: s.fc
3845
3840
  }, ...l);
3846
3841
  }, 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);
3842
+ return V(() => At(li, `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
3843
  },
3849
3844
  updateChildren(e, r, n) {
3850
3845
  this.deferSyncValue(() => {
@@ -3877,7 +3872,7 @@ function ci(t) {
3877
3872
  }
3878
3873
  });
3879
3874
  }
3880
- function di(t) {
3875
+ function ci(t) {
3881
3876
  w(t.prototype, {
3882
3877
  mounted() {
3883
3878
  const e = () => {
@@ -3889,7 +3884,7 @@ function di(t) {
3889
3884
  this.fc.targetFormDriver(e, this.api, this.fc), this.vm.emit(e, this.api), this.emitEvent(e, this.api);
3890
3885
  },
3891
3886
  emitEvent(e, ...r) {
3892
- const n = this.options[e] || this.options[H("on-" + e)];
3887
+ const n = this.options[e] || this.options[z("on-" + e)];
3893
3888
  if (n) {
3894
3889
  const s = te(n);
3895
3890
  m.Function(s) && V(() => s(...r));
@@ -3900,11 +3895,11 @@ function di(t) {
3900
3895
  var l, u, f, c;
3901
3896
  let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], i = (h, p) => {
3902
3897
  h && (h = Array.isArray(h) ? h : [h], h.forEach((y) => {
3903
- V(() => y(z(_({ args: Object.values(n || {}) }, n || {}), { self: e.rule, rule: e.rule, parent: p == null ? void 0 : p.rule, $f: this.api, api: this.api, option: this.vm.props.option })));
3898
+ V(() => y(U(_({ args: Object.values(n || {}) }, n || {}), { self: e.rule, rule: e.rule, parent: p == null ? void 0 : p.rule, $f: this.api, api: this.api, option: this.vm.props.option })));
3904
3899
  }));
3905
3900
  };
3906
3901
  i(s);
3907
- let o = "deep" + Ht(r), a = e.parent;
3902
+ let o = "deep" + qt(r), a = e.parent;
3908
3903
  for (; a; ) {
3909
3904
  let h = (c = (f = a.prop) == null ? void 0 : f.hook) == null ? void 0 : c[o];
3910
3905
  i(h, a), a = a.parent;
@@ -3912,13 +3907,13 @@ function di(t) {
3912
3907
  }
3913
3908
  });
3914
3909
  }
3915
- function hi(t) {
3910
+ function di(t) {
3916
3911
  w(t.prototype, {
3917
3912
  useProvider() {
3918
3913
  const e = this.fc.providers;
3919
3914
  Object.keys(e).forEach((r) => {
3920
3915
  let n = e[r];
3921
- m.Function(n) && (n = n(this.fc)), n._c = mi(n), this.onEffect(n, r), this.providers[r] = n;
3916
+ m.Function(n) && (n = n(this.fc)), n._c = pi(n), this.onEffect(n, r), this.providers[r] = n;
3922
3917
  });
3923
3918
  },
3924
3919
  onEffect(e, r) {
@@ -3988,20 +3983,20 @@ function hi(t) {
3988
3983
  }
3989
3984
  });
3990
3985
  }
3991
- function pi(t) {
3986
+ function hi(t) {
3992
3987
  return t.filter(function(e, r, n) {
3993
3988
  return n.indexOf(e, 0) === r;
3994
3989
  });
3995
3990
  }
3996
- function mi(t) {
3991
+ function pi(t) {
3997
3992
  const e = t.components;
3998
3993
  if (Array.isArray(e)) {
3999
- const r = pi(e.filter((n) => n !== "*"));
3994
+ const r = hi(e.filter((n) => n !== "*"));
4000
3995
  return r.length ? r : !1;
4001
3996
  } else return m.String(e) ? [e] : !1;
4002
3997
  }
4003
3998
  function ne(t) {
4004
- er(this, {
3999
+ Zt(this, {
4005
4000
  options() {
4006
4001
  return t.options.value || {};
4007
4002
  },
@@ -4038,7 +4033,7 @@ function ne(t) {
4038
4033
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new dt(this), this.api = t.extendApiFn.reduce((e, r) => {
4039
4034
  const n = V(() => r(e, this));
4040
4035
  return n && n !== e && w(e, n), e;
4041
- }, Yn(this));
4036
+ }, Gn(this));
4042
4037
  }
4043
4038
  w(ne.prototype, {
4044
4039
  initData(t) {
@@ -4078,25 +4073,25 @@ w(ne.prototype, {
4078
4073
  });
4079
4074
  }
4080
4075
  });
4076
+ Jn(ne);
4081
4077
  Qn(ne);
4082
- Xn(ne);
4083
- ei(ne);
4084
- ri(ne);
4085
- oi(ne);
4078
+ Zn(ne);
4079
+ ti(ne);
4080
+ si(ne);
4081
+ fi(ne);
4086
4082
  ci(ne);
4087
4083
  di(ne);
4088
- hi(ne);
4089
- const gi = "fcFragment", We = re({
4090
- name: gi,
4084
+ const mi = "fcFragment", We = re({
4085
+ name: mi,
4091
4086
  inheritAttrs: !1,
4092
4087
  props: ["vnode"],
4093
4088
  render() {
4094
4089
  return this.vnode;
4095
4090
  }
4096
4091
  });
4097
- function yi(t) {
4092
+ function gi(t) {
4098
4093
  return Object.keys(t).map((e) => {
4099
- const r = t[e], n = Pr(e);
4094
+ const r = t[e], n = Ir(e);
4100
4095
  if (n)
4101
4096
  return [
4102
4097
  n,
@@ -4106,22 +4101,22 @@ function yi(t) {
4106
4101
  ];
4107
4102
  }).filter((e) => !!e);
4108
4103
  }
4109
- function It(t, e) {
4104
+ function jt(t, e) {
4110
4105
  let r = t.directives;
4111
- return r ? (Array.isArray(r) || (r = [r]), Ir(e, r.reduce((n, s) => n.concat(yi(s)), []))) : e;
4106
+ return r ? (Array.isArray(r) || (r = [r]), jr(e, r.reduce((n, s) => n.concat(gi(s)), []))) : e;
4112
4107
  }
4113
- function bi() {
4108
+ function yi() {
4114
4109
  const t = {};
4115
4110
  function e(r) {
4116
4111
  this.vm = r.vm, this.handle = r;
4117
4112
  }
4118
4113
  return w(e.prototype, {
4119
4114
  make(r, n, s) {
4120
- return It(n, this.h(r, St(n), s));
4115
+ return jt(n, this.h(r, St(n), s));
4121
4116
  },
4122
4117
  makeComponent(r, n, s) {
4123
4118
  try {
4124
- return It(n, v(r, St(n), s));
4119
+ return jt(n, v(r, St(n), s));
4125
4120
  } catch (i) {
4126
4121
  return console.error(i), v("");
4127
4122
  }
@@ -4143,7 +4138,7 @@ function bi() {
4143
4138
  },
4144
4139
  use(r) {
4145
4140
  Object.keys(r).forEach((n) => {
4146
- const s = ke(n), i = qt(n).toLocaleLowerCase(), o = r[n];
4141
+ const s = ke(n), i = Ut(n).toLocaleLowerCase(), o = r[n];
4147
4142
  e.alias(n, o), [n, s, i].forEach((a) => {
4148
4143
  e.prototype[a] = function(l, u) {
4149
4144
  return this.make(t[n] || a, l, u);
@@ -4153,12 +4148,12 @@ function bi() {
4153
4148
  }
4154
4149
  }), e;
4155
4150
  }
4156
- function $i(t) {
4157
- class e extends or {
4151
+ function bi(t) {
4152
+ class e extends sr {
4158
4153
  }
4159
4154
  return Object.assign(e.prototype, t), e;
4160
4155
  }
4161
- function or(t) {
4156
+ function sr(t) {
4162
4157
  w(this, {
4163
4158
  $handle: t,
4164
4159
  vm: t.vm,
@@ -4169,7 +4164,7 @@ function or(t) {
4169
4164
  }
4170
4165
  }), this.updateKey(), this.init();
4171
4166
  }
4172
- w(or.prototype, {
4167
+ w(sr.prototype, {
4173
4168
  __init() {
4174
4169
  this.$render = this.$handle.$render, this.$r = (...t) => this.$render.renderRule(...t);
4175
4170
  },
@@ -4219,13 +4214,13 @@ w(or.prototype, {
4219
4214
  render(t) {
4220
4215
  }
4221
4216
  });
4222
- const vi = function(t) {
4217
+ const $i = function(t) {
4223
4218
  const e = {
4224
4219
  name: "loadData",
4225
4220
  _fn: [],
4226
4221
  loaded(r, n, s) {
4227
4222
  this.deleted(r), I(() => {
4228
- let i = q(r.getValue());
4223
+ let i = H(r.getValue());
4229
4224
  const o = [];
4230
4225
  i.forEach((a) => {
4231
4226
  if (a && (a.attr || a.template || a.handler)) {
@@ -4250,7 +4245,7 @@ const vi = function(t) {
4250
4245
  }
4251
4246
  };
4252
4247
  return e.watch = e.loaded, e;
4253
- }, _i = function(t) {
4248
+ }, vi = function(t) {
4254
4249
  const e = {
4255
4250
  name: "t",
4256
4251
  _fn: [],
@@ -4279,7 +4274,7 @@ const vi = function(t) {
4279
4274
  }
4280
4275
  };
4281
4276
  return e.watch = e.loaded, e;
4282
- }, ar = {
4277
+ }, or = {
4283
4278
  name: "componentValidate",
4284
4279
  load(t, e, r) {
4285
4280
  let n = t.getValue();
@@ -4287,7 +4282,7 @@ const vi = function(t) {
4287
4282
  t.clearProp(), r.clearValidateState([e.field]);
4288
4283
  else {
4289
4284
  m.Object(n) || (n = { method: n });
4290
- const s = n.method, i = z(_({}, n), {
4285
+ const s = n.method, i = U(_({}, n), {
4291
4286
  validator(...o) {
4292
4287
  const a = Q(e);
4293
4288
  if (a)
@@ -4302,9 +4297,9 @@ const vi = function(t) {
4302
4297
  }
4303
4298
  },
4304
4299
  watch(...t) {
4305
- ar.load(...t);
4300
+ or.load(...t);
4306
4301
  }
4307
- }, wi = function(t) {
4302
+ }, _i = function(t) {
4308
4303
  function e(s) {
4309
4304
  return m.String(s) && (s = {
4310
4305
  action: s,
@@ -4338,7 +4333,7 @@ const vi = function(t) {
4338
4333
  }
4339
4334
  return;
4340
4335
  }
4341
- const p = t.$handle.loadFetchVar(ee(a), c, i), y = z(_({
4336
+ const p = t.$handle.loadFetchVar(ee(a), c, i), y = U(_({
4342
4337
  headers: {}
4343
4338
  }, p), {
4344
4339
  onSuccess(C, F) {
@@ -4381,13 +4376,13 @@ const vi = function(t) {
4381
4376
  }
4382
4377
  };
4383
4378
  return n;
4384
- }, Ci = {
4385
- fetch: wi,
4386
- loadData: vi,
4387
- t: _i,
4388
- componentValidate: ar
4389
- }, Si = "html", Vi = {
4390
- name: Si,
4379
+ }, wi = {
4380
+ fetch: _i,
4381
+ loadData: $i,
4382
+ t: vi,
4383
+ componentValidate: or
4384
+ }, Ci = "html", Si = {
4385
+ name: Ci,
4391
4386
  loadChildren: !1,
4392
4387
  render(t, e) {
4393
4388
  return e.prop.props.innerHTML = t.default(), e.vNode.make(e.prop.props.tag || "div", e.prop);
@@ -4398,7 +4393,7 @@ const vi = function(t) {
4398
4393
  };
4399
4394
  }
4400
4395
  };
4401
- function Fi(t) {
4396
+ function Vi(t) {
4402
4397
  t = t + "=";
4403
4398
  const r = decodeURIComponent(document.cookie).split(";");
4404
4399
  for (let n = 0; n < r.length; n++) {
@@ -4416,7 +4411,7 @@ function Fi(t) {
4416
4411
  }
4417
4412
  return null;
4418
4413
  }
4419
- function Oi(t) {
4414
+ function Fi(t) {
4420
4415
  const e = localStorage.getItem(t);
4421
4416
  if (e)
4422
4417
  try {
@@ -4426,7 +4421,7 @@ function Oi(t) {
4426
4421
  }
4427
4422
  return null;
4428
4423
  }
4429
- function Ei(t) {
4424
+ function Oi(t) {
4430
4425
  const e = sessionStorage.getItem(t);
4431
4426
  if (e)
4432
4427
  try {
@@ -4443,16 +4438,16 @@ function ht(t, e) {
4443
4438
  let n = t(r.shift());
4444
4439
  return r.length ? n == null ? null : M(n, r) : n;
4445
4440
  }
4441
+ function Ei(t) {
4442
+ return ht(Vi, t);
4443
+ }
4446
4444
  function Ri(t) {
4447
4445
  return ht(Fi, t);
4448
4446
  }
4449
4447
  function ki(t) {
4450
4448
  return ht(Oi, t);
4451
4449
  }
4452
- function Di(t) {
4453
- return ht(Ei, t);
4454
- }
4455
- const Ai = {
4450
+ const Di = {
4456
4451
  en: {
4457
4452
  required: "{title} is required",
4458
4453
  validate: {
@@ -4502,30 +4497,30 @@ const Ai = {
4502
4497
  }
4503
4498
  }
4504
4499
  };
4505
- function ji(t, e) {
4500
+ function Ai(t, e) {
4506
4501
  let r;
4507
4502
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4508
4503
  }
4509
4504
  function Je() {
4510
- return ji("name", ...arguments);
4505
+ return Ai("name", ...arguments);
4511
4506
  }
4512
- function Ii(t) {
4507
+ function ji(t) {
4513
4508
  const e = t.key || [], r = t.array || [], n = t.normal || [];
4514
- Wt.push(...e), ut.push(...r), ft.push(...n), nr([...e, ...r, ...n]);
4509
+ Kt.push(...e), ut.push(...r), ft.push(...n), rr([...e, ...r, ...n]);
4515
4510
  }
4516
- let Pi = 1;
4517
- const Y = {}, Pt = Symbol("defValue");
4518
- function lr(t) {
4511
+ let Ii = 1;
4512
+ const Y = {}, It = Symbol("defValue");
4513
+ function ar(t) {
4519
4514
  const e = {
4520
4515
  [We.name]: We
4521
4516
  }, r = {}, n = {}, s = {}, i = {}, o = [], a = [], l = [
4522
4517
  t.extendApi
4523
- ], u = _({}, Ci), f = xn();
4518
+ ], u = _({}, wi), f = zn();
4524
4519
  let c = { global: {} };
4525
4520
  const h = t.isMobile === !0, p = Z({
4526
4521
  $mobile: h
4527
- }), y = bi(), C = {}, F = {};
4528
- Ii(t.attrs || {});
4522
+ }), y = yi(), C = {}, F = {};
4523
+ ji(t.attrs || {});
4529
4524
  function G(d) {
4530
4525
  const g = Y[d];
4531
4526
  if (Array.isArray(g))
@@ -4542,7 +4537,7 @@ function lr(t) {
4542
4537
  }
4543
4538
  function Se() {
4544
4539
  const d = Je(...arguments);
4545
- d.id && d.prop && (u[d.id] = m.Function(d.prop) ? d.prop : z(_({}, d.prop), {
4540
+ d.id && d.prop && (u[d.id] = m.Function(d.prop) ? d.prop : U(_({}, d.prop), {
4546
4541
  name: d.id
4547
4542
  }));
4548
4543
  }
@@ -4553,13 +4548,13 @@ function lr(t) {
4553
4548
  if (arguments.length === 0)
4554
4549
  return Re;
4555
4550
  if (typeof d == "string" && arguments.length === 1)
4556
- return r[H(d)];
4551
+ return r[z(d)];
4557
4552
  const g = Je(...arguments);
4558
4553
  if (!g.id || !g.prop) return Re;
4559
- const b = H(g.id), $ = g.prop, S = $.merge === !0 ? r[b] : void 0;
4554
+ const b = z(g.id), $ = g.prop, S = $.merge === !0 ? r[b] : void 0;
4560
4555
  r[b] = Me($, S || Re), f[b] = T(b), $.maker && w(f, $.maker);
4561
4556
  }
4562
- function R(d, g) {
4557
+ function k(d, g) {
4563
4558
  let b;
4564
4559
  if (m.String(d)) {
4565
4560
  if (b = d, g === void 0)
@@ -4567,15 +4562,15 @@ function lr(t) {
4567
4562
  } else
4568
4563
  b = d.displayName || d.name, g = d;
4569
4564
  if (!b || !g) return;
4570
- const $ = H(b);
4565
+ const $ = z(b);
4571
4566
  e[b] = g, e[$] = g, delete y.aliasMap[b], delete y.aliasMap[$], delete r[b], delete r[$], g.formCreateParser && Ve(b, g.formCreateParser);
4572
4567
  }
4573
- function j() {
4574
- return qn(Ge, e, n);
4568
+ function A() {
4569
+ return Un(Ge, e, n);
4575
4570
  }
4576
4571
  function W(d, g) {
4577
- const b = j();
4578
- return Br({
4572
+ const b = A();
4573
+ return Pr({
4579
4574
  data() {
4580
4575
  return Z({
4581
4576
  rule: d,
@@ -4583,7 +4578,7 @@ function lr(t) {
4583
4578
  });
4584
4579
  },
4585
4580
  render() {
4586
- return Tr(b, _({ ref: "fc" }, this.$data));
4581
+ return Br(b, _({ ref: "fc" }, this.$data));
4587
4582
  }
4588
4583
  });
4589
4584
  }
@@ -4595,14 +4590,14 @@ function lr(t) {
4595
4590
  }
4596
4591
  function le(d, g) {
4597
4592
  let b = W(d, g || {});
4598
- o.forEach((A) => {
4599
- V(() => A(le, b));
4593
+ o.forEach((j) => {
4594
+ V(() => j(le, b));
4600
4595
  });
4601
4596
  const $ = document.createElement("div");
4602
4597
  return ((g == null ? void 0 : g.el) || document.body).appendChild($), b.mount($).$refs.fc.fapi;
4603
4598
  }
4604
4599
  Me(le, F);
4605
- function cr(d) {
4600
+ function fr(d) {
4606
4601
  let g = _({}, t);
4607
4602
  return d ? g.inherit = {
4608
4603
  components: e,
@@ -4614,19 +4609,19 @@ function lr(t) {
4614
4609
  maker: f,
4615
4610
  formulas: C,
4616
4611
  loadData: p
4617
- } : delete g.inherit, lr(g);
4612
+ } : delete g.inherit, ar(g);
4618
4613
  }
4619
- function dr(d, g) {
4614
+ function cr(d, g) {
4620
4615
  s[d] = g;
4621
4616
  }
4622
- function hr(d, g) {
4617
+ function dr(d, g) {
4623
4618
  C[d] = g;
4624
4619
  }
4625
- function pr(d, g) {
4620
+ function hr(d, g) {
4626
4621
  const b = i[d] || {}, $ = b.parsers || {};
4627
4622
  g.parsers && Object.keys(g.parsers).forEach((S) => {
4628
4623
  $[S] = Me(g.parsers[S], Re);
4629
- }), g.name = d, i[d] = z(_(_({}, b), g), { parsers: $ });
4624
+ }), g.name = d, i[d] = U(_(_({}, b), g), { parsers: $ });
4630
4625
  }
4631
4626
  function Ie(d) {
4632
4627
  d && Object.keys(Y).forEach((g) => {
@@ -4646,27 +4641,27 @@ function lr(t) {
4646
4641
  const b = (d || "").split(".");
4647
4642
  d = b.shift();
4648
4643
  const $ = b.join(".");
4649
- if (D(p, d) || (p[d] = Pt), p[d] !== Pt) {
4644
+ if (D(p, d) || (p[d] = It), p[d] !== It) {
4650
4645
  let S = p[d];
4651
4646
  return S && S._driver ? S = S($) : b.length && (S = M(S, b)), S == null || S === "" ? g : S;
4652
4647
  } else
4653
4648
  return g;
4654
4649
  }
4655
- function mr(d) {
4650
+ function pr(d) {
4656
4651
  l.push(d);
4657
4652
  }
4658
- function gr(d) {
4653
+ function mr(d) {
4659
4654
  delete p[d], Ie(d);
4660
4655
  }
4661
- function yr(d, g) {
4656
+ function gr(d, g) {
4662
4657
  a.push({ name: d, callback: g });
4663
4658
  }
4664
4659
  function Ge(d) {
4665
4660
  w(this, {
4666
- id: Pi++,
4661
+ id: Ii++,
4667
4662
  create: le,
4668
4663
  vm: d,
4669
- manager: $i(t.manager),
4664
+ manager: bi(t.manager),
4670
4665
  parsers: r,
4671
4666
  providers: u,
4672
4667
  modelFields: s,
@@ -4685,7 +4680,7 @@ function lr(t) {
4685
4680
  refreshData: Ie,
4686
4681
  loadData: p,
4687
4682
  CreateNode: y,
4688
- bus: new Ut(),
4683
+ bus: new Nt(),
4689
4684
  //使用 Set 保存,停止侦听时可以自行摘除,避免长期运行下无限堆积
4690
4685
  unwatch: /* @__PURE__ */ new Set(),
4691
4686
  options: ot({}),
@@ -4713,8 +4708,8 @@ function lr(t) {
4713
4708
  t(d, g, b) {
4714
4709
  let $ = b ? b("$t." + d) : this.globalLanguageDriver(d);
4715
4710
  return $ == null && ($ = ""), $ && g && Object.keys(g).forEach((S) => {
4716
- const A = new RegExp(`{${S}}`, "g");
4717
- $ = $.replace(A, g[S]);
4711
+ const j = new RegExp(`{${S}}`, "g");
4712
+ $ = $.replace(j, g[S]);
4718
4713
  }), $;
4719
4714
  },
4720
4715
  globalDataDriver(d) {
@@ -4725,14 +4720,14 @@ function lr(t) {
4725
4720
  return M($.data, g);
4726
4721
  {
4727
4722
  let S;
4728
- const A = this.fetchCache.get($);
4729
- if (A) {
4730
- if (A.status && (S = M(A.data, g)), !A.loading)
4723
+ const j = this.fetchCache.get($);
4724
+ if (j) {
4725
+ if (j.status && (S = M(j.data, g)), !j.loading)
4731
4726
  return S;
4732
- A.loading = !1, this.fetchCache.set($, A);
4727
+ j.loading = !1, this.fetchCache.set($, j);
4733
4728
  } else
4734
4729
  this.fetchCache.set($, { status: !1 });
4735
- const k = ce(() => {
4730
+ const R = ce(() => {
4736
4731
  be();
4737
4732
  const J = this.fetchCache.get($);
4738
4733
  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 +4737,7 @@ function lr(t) {
4742
4737
  if ($e && $.watch === !1)
4743
4738
  return be();
4744
4739
  if ($e) {
4745
- k();
4740
+ R();
4746
4741
  return;
4747
4742
  }
4748
4743
  const ve = this.$handle.loadFetchVar(rt($), J);
@@ -4763,8 +4758,8 @@ function lr(t) {
4763
4758
  globalLanguageDriver(d) {
4764
4759
  let g = this.vm.setupState.top.props.t, b = this.vm.setupState.top.props.locale, $;
4765
4760
  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));
4761
+ const S = this.options.value.language || {}, j = this.getLocale();
4762
+ $ = M(S[j] || {}, d), $ == null && ($ = M(Di[j] || {}, d));
4768
4763
  }
4769
4764
  return $;
4770
4765
  },
@@ -4774,8 +4769,8 @@ function lr(t) {
4774
4769
  if ($) {
4775
4770
  const S = m.Function($) ? $ : te($.handle);
4776
4771
  if (S) {
4777
- let A = S((...k) => this.$handle.api.getData(...k), this.$handle.api);
4778
- return M(A, g);
4772
+ let j = S((...R) => this.$handle.api.getData(...R), this.$handle.api);
4773
+ return M(j, g);
4779
4774
  }
4780
4775
  }
4781
4776
  },
@@ -4816,34 +4811,34 @@ function lr(t) {
4816
4811
  },
4817
4812
  watchLoadData(d, g) {
4818
4813
  let b = {};
4819
- const $ = (k) => {
4814
+ const $ = (R) => {
4820
4815
  this.get || (this.get = S), V(() => {
4821
- d(S, k);
4816
+ d(S, R);
4822
4817
  }), this.get === S && (this.get = void 0);
4823
- }, S = (k, ge) => {
4818
+ }, S = (R, ge) => {
4824
4819
  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));
4820
+ if (typeof R == "object" && (ye = R.getValue, R = R.id), b[R])
4821
+ return b[R].val;
4822
+ const be = se(() => ye ? ye() : this.getLoadData(R, ge)), J = R.split("."), $e = J.shift(), ve = J.shift() || "", ue = ce(() => {
4823
+ const _e = ye ? ye() : this.getLoadData(R, ge);
4824
+ if (b[R])
4825
+ ((_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
4826
  else return;
4832
- }, g || 0), $r = B(be, (_e) => {
4827
+ }, g || 0), br = B(be, (_e) => {
4833
4828
  ue();
4834
4829
  });
4835
- return this.bus.$on("$loadData." + $e, ue), ve && this.bus.$on("$loadData." + $e + "." + ve, ue), b[k] = {
4830
+ return this.bus.$on("$loadData." + $e, ue), ve && this.bus.$on("$loadData." + $e + "." + ve, ue), b[R] = {
4836
4831
  fn: () => {
4837
- this.bus.$off("$loadData." + $e, ue), ve && this.bus.$off("$loadData." + $e + "." + ve, ue), $r();
4832
+ this.bus.$off("$loadData." + $e, ue), ve && this.bus.$off("$loadData." + $e + "." + ve, ue), br();
4838
4833
  },
4839
4834
  val: be.value
4840
4835
  }, be.value;
4841
4836
  };
4842
4837
  $(!1);
4843
- const A = () => {
4844
- Object.keys(b).forEach((k) => b[k].fn()), b = {}, this.unwatch.delete(A);
4838
+ const j = () => {
4839
+ Object.keys(b).forEach((R) => b[R].fn()), b = {}, this.unwatch.delete(j);
4845
4840
  };
4846
- return this.unwatch.add(A), A;
4841
+ return this.unwatch.add(j), j;
4847
4842
  },
4848
4843
  isSub() {
4849
4844
  return this.vm.setupState.parent && this.vm.props.extendOption;
@@ -4865,7 +4860,7 @@ function lr(t) {
4865
4860
  mergeOptions(d, g, b) {
4866
4861
  return g = _({}, g || {}), b && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "beforeUnmount", "beforeSubmit", "onBeforeUnmount", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach(($) => {
4867
4862
  delete g[$];
4868
- }), g.global && (d.global = Mn(d.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], d), d;
4863
+ }), g.global && (d.global = Ln(d.global, g.global), delete g.global), this.$handle.$manager.mergeOptions([g], d), d;
4869
4864
  },
4870
4865
  updateOptions(d) {
4871
4866
  this.options.value = this.mergeOptions(this.options.value, d), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4899,38 +4894,38 @@ function lr(t) {
4899
4894
  version: t.version,
4900
4895
  ui: t.ui,
4901
4896
  isMobile: h,
4902
- extendApi: mr,
4897
+ extendApi: pr,
4903
4898
  getData: pt,
4904
4899
  setDataDriver: Pe,
4905
4900
  setData: xe,
4906
- removeData: gr,
4901
+ removeData: mr,
4907
4902
  refreshData: Ie,
4908
4903
  maker: f,
4909
- component: R,
4904
+ component: k,
4910
4905
  directive: N,
4911
- setModelField: dr,
4912
- setFormula: hr,
4913
- setDriver: pr,
4906
+ setModelField: cr,
4907
+ setFormula: dr,
4908
+ setDriver: hr,
4914
4909
  register: Se,
4915
4910
  $vnode: Fe,
4916
4911
  parser: Ve,
4917
4912
  use: je,
4918
- factory: cr,
4913
+ factory: fr,
4919
4914
  componentAlias: ze,
4920
- copyRule: Xt,
4921
- copyRules: Zt,
4915
+ copyRule: Qt,
4916
+ copyRules: Xt,
4922
4917
  mergeRule: ae,
4923
- fetch: ir,
4924
- $form: j,
4918
+ fetch: nr,
4919
+ $form: A,
4925
4920
  parseFn: te,
4926
- parseJson: xt,
4921
+ parseJson: zt,
4927
4922
  toJson: De,
4928
4923
  useApp: P,
4929
4924
  getApi: G,
4930
- on: yr
4925
+ on: gr
4931
4926
  });
4932
4927
  }
4933
- function br(d) {
4928
+ function yr(d) {
4934
4929
  w(d, {
4935
4930
  create: le,
4936
4931
  install(g, b) {
@@ -4938,27 +4933,27 @@ function lr(t) {
4938
4933
  const $ = `_installedFormCreate${h ? "Mobile" : ""}_${t.ui}`;
4939
4934
  if (g[$] === !0) return;
4940
4935
  g[$] = !0;
4941
- const S = function(k, ge = {}) {
4942
- return le(k, ge);
4936
+ const S = function(R, ge = {}) {
4937
+ return le(R, ge);
4943
4938
  };
4944
4939
  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));
4940
+ const j = A();
4941
+ g.component(j.name, j), o.forEach((R) => {
4942
+ V(() => R(d, g));
4948
4943
  });
4949
4944
  }
4950
4945
  });
4951
4946
  }
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) => {
4947
+ if (mt(F), yr(F), Pe("$cookie", Ei), Pe("$localStorage", Ri), Pe("$sessionStorage", ki), y.use({ fragment: "fcFragment" }), t.install && le.use(t), P((d, g) => {
4953
4948
  g.mixin({
4954
4949
  props: ["formCreateInject"],
4955
4950
  emits: ["fc.updateValue", "fc.el"]
4956
4951
  });
4957
- }), Ve(Vi), t.inherit) {
4952
+ }), Ve(Si), t.inherit) {
4958
4953
  const d = t.inherit;
4959
4954
  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
4955
  }
4961
- const Be = j();
4956
+ const Be = A();
4962
4957
  return Me(Be, F), Object.defineProperties(Be, {
4963
4958
  fetch: {
4964
4959
  get() {
@@ -4970,7 +4965,7 @@ function lr(t) {
4970
4965
  }
4971
4966
  }), Be.util = F, Be;
4972
4967
  }
4973
- const Bt = {
4968
+ const Pt = {
4974
4969
  date: "YYYY-MM-DD",
4975
4970
  month: "YYYY-MM",
4976
4971
  week: "YYYY-wo",
@@ -4980,16 +4975,16 @@ const Bt = {
4980
4975
  monthrange: "YYYY-MM",
4981
4976
  datetimerange: "YYYY-MM-DD HH:mm:ss",
4982
4977
  year: "YYYY"
4983
- }, Tt = "datePicker", Bi = {
4984
- name: Tt,
4978
+ }, Bt = "datePicker", Pi = {
4979
+ name: Bt,
4985
4980
  maker: function() {
4986
- return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(Tt, { type: e.toLowerCase() }), t), {});
4981
+ return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(Bt, { type: e.toLowerCase() }), t), {});
4987
4982
  }(),
4988
4983
  mergeProp(t) {
4989
4984
  const e = t.prop.props;
4990
- e.valueFormat || (e.valueFormat = Bt[e.type] || Bt.date);
4985
+ e.valueFormat || (e.valueFormat = Pt[e.type] || Pt.date);
4991
4986
  }
4992
- }, Qe = "hidden", Ti = {
4987
+ }, Qe = "hidden", Bi = {
4993
4988
  name: Qe,
4994
4989
  maker: {
4995
4990
  [Qe]: (t, e) => T(Qe)("", t, e)
@@ -4997,7 +4992,7 @@ const Bt = {
4997
4992
  render() {
4998
4993
  return [];
4999
4994
  }
5000
- }, Xe = "input", Li = {
4995
+ }, Xe = "input", Ti = {
5001
4996
  name: Xe,
5002
4997
  maker: function() {
5003
4998
  const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(Xe, { type: r }), e), {});
@@ -5007,22 +5002,22 @@ const Bt = {
5007
5002
  let { props: e } = t.prop;
5008
5003
  e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
5009
5004
  }
5010
- }, Mi = "textarea", Ni = {
5011
- name: Mi,
5005
+ }, Li = "textarea", Mi = {
5006
+ name: Li,
5012
5007
  mergeProp(t) {
5013
5008
  let { props: e } = t.prop;
5014
5009
  e.type = "textarea", e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
5015
5010
  }
5016
- }, Lt = "slider", Ui = {
5017
- name: Lt,
5011
+ }, Tt = "slider", Ni = {
5012
+ name: Tt,
5018
5013
  maker: {
5019
- sliderRange: T(Lt, { range: !0 })
5014
+ sliderRange: T(Tt, { range: !0 })
5020
5015
  },
5021
5016
  toFormValue(t, e) {
5022
5017
  let r = Array.isArray(t), n = e.prop.props, s = n.min || 0, i;
5023
5018
  return n.range === !0 ? i = r ? t : [s, parseFloat(t) || s] : i = r ? parseFloat(t[0]) || s : parseFloat(t), i;
5024
5019
  }
5025
- }, Ze = "timePicker", qi = {
5020
+ }, Ze = "timePicker", Ui = {
5026
5021
  name: Ze,
5027
5022
  maker: {
5028
5023
  time: T(Ze, (t) => t.props.isRange = !1),
@@ -5032,7 +5027,7 @@ const Bt = {
5032
5027
  const e = t.prop.props;
5033
5028
  e.valueFormat || (e.valueFormat = "HH:mm:ss");
5034
5029
  }
5035
- }, Hi = {
5030
+ }, qi = {
5036
5031
  name: "FcRow",
5037
5032
  render(t, e) {
5038
5033
  return e.vNode.col({ props: { span: 24 } }, {
@@ -5041,21 +5036,21 @@ const Bt = {
5041
5036
  ]
5042
5037
  });
5043
5038
  }
5044
- }, zi = "select", xi = {
5045
- name: zi,
5039
+ }, Hi = "select", zi = {
5040
+ name: Hi,
5046
5041
  toFormValue(t, e) {
5047
- return e.prop.props.multiple && !Array.isArray(t) ? q(t) : t;
5042
+ return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
5048
5043
  }
5049
- }, Gi = [
5044
+ }, xi = [
5045
+ Pi,
5050
5046
  Bi,
5051
5047
  Ti,
5052
- Li,
5048
+ Mi,
5053
5049
  Ni,
5054
5050
  Ui,
5055
5051
  qi,
5056
- Hi,
5057
- xi
5058
- ], E = "el", Yi = {
5052
+ zi
5053
+ ], E = "el", Gi = {
5059
5054
  button: E + "-button",
5060
5055
  icon: E + "-icon",
5061
5056
  slider: E + "-slider",
@@ -5094,7 +5089,7 @@ const Bt = {
5094
5089
  object: "fc-sub-form",
5095
5090
  subForm: "fc-sub-form"
5096
5091
  };
5097
- function Ki() {
5092
+ function Yi() {
5098
5093
  return {
5099
5094
  form: {
5100
5095
  inline: !1,
@@ -5127,23 +5122,23 @@ function Ki() {
5127
5122
  }
5128
5123
  };
5129
5124
  }
5130
- function Wi(t) {
5125
+ function Ki(t) {
5131
5126
  return t.type === "tooltip";
5132
5127
  }
5133
- function Mt(t, e) {
5128
+ function Lt(t, e) {
5134
5129
  D(t, e) && m.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
5135
5130
  }
5136
5131
  function ie(t) {
5137
5132
  return t === !1;
5138
5133
  }
5139
- function Ji(t, e) {
5134
+ function Wi(t, e) {
5140
5135
  D(t, e) && !m.Object(t[e]) && (t[e] = { show: !!t[e] });
5141
5136
  }
5142
5137
  function et(t) {
5143
5138
  const e = _({}, t);
5144
5139
  return delete e.children, e;
5145
5140
  }
5146
- const Qi = {
5141
+ const Ji = {
5147
5142
  validate() {
5148
5143
  const t = this.form();
5149
5144
  return t ? t.validate() : new Promise((e) => e());
@@ -5167,11 +5162,11 @@ const Qi = {
5167
5162
  },
5168
5163
  tidyOptions(t) {
5169
5164
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
5170
- Ji(t, e);
5165
+ Wi(t, e);
5171
5166
  }), t;
5172
5167
  },
5173
5168
  tidyRule({ prop: t }) {
5174
- return Mt(t, "title"), Mt(t, "info"), t;
5169
+ return Lt(t, "title"), Lt(t, "info"), t;
5175
5170
  },
5176
5171
  mergeProp(t) {
5177
5172
  const e = {
@@ -5189,7 +5184,7 @@ const Qi = {
5189
5184
  });
5190
5185
  },
5191
5186
  getDefaultOptions() {
5192
- return Ki();
5187
+ return Yi();
5193
5188
  },
5194
5189
  update() {
5195
5190
  const t = this.options.form;
@@ -5217,8 +5212,8 @@ const Qi = {
5217
5212
  const r = t.prop, n = `${this.key}${t.key}`, s = r.col, i = this.isTitle(r) && r.wrap.title !== !1, o = !(s != null && s.labelWidth) && !i ? 0 : s == null ? void 0 : s.labelWidth, { inline: a, col: l } = this.rule.props, u = r.wrap.class;
5218
5213
  delete r.wrap.class, delete r.wrap.title;
5219
5214
  const f = (m.Undef(r.wrap.show) ? !t.input : ie(r.wrap.show)) ? e : this.$r(oe([r.wrap, {
5220
- props: z(_({
5221
- labelWidth: o === void 0 ? o : qt(o),
5215
+ props: U(_({
5216
+ labelWidth: o === void 0 ? o : Ut(o),
5222
5217
  label: i ? r.title.title : void 0
5223
5218
  }, et(r.wrap || {})), {
5224
5219
  prop: t.id,
@@ -5238,7 +5233,7 @@ const Qi = {
5238
5233
  },
5239
5234
  makeInfo(t, e, r) {
5240
5235
  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({
5236
+ const n = _({}, t.title), s = _({}, t.info), i = Ki(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
5242
5237
  title: (c = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : c.value,
5243
5238
  rule: r.rule,
5244
5239
  options: this.options
@@ -5344,29 +5339,29 @@ const Qi = {
5344
5339
  }, [e]);
5345
5340
  }
5346
5341
  }, pe = {};
5342
+ Qi(pe);
5347
5343
  Xi(pe);
5348
5344
  Zi(pe);
5349
5345
  es(pe);
5350
5346
  ts(pe);
5351
5347
  rs(pe);
5352
- ns(pe);
5353
- function Xi(t) {
5348
+ function Qi(t) {
5354
5349
  ["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "inputTag", "inputOtp", "mention", "transfer", "treeSelect", "radio", "rate"].forEach((e) => {
5355
5350
  t[e] = T(e);
5356
5351
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker, t.tag = t.inputTag;
5357
5352
  }
5358
- function Zi(t) {
5353
+ function Xi(t) {
5359
5354
  t.treeSelectMultiple = T("treeSelect", { multiple: !0 });
5360
5355
  }
5361
- function es(t) {
5356
+ function Zi(t) {
5362
5357
  const e = "select", r = "multiple";
5363
5358
  t.selectMultiple = T(e, { [r]: !0 }), t.selectOne = T(e, { [r]: !1 });
5364
5359
  }
5365
- function ts(t) {
5360
+ function es(t) {
5366
5361
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
5367
5362
  Object.keys(r).reduce((n, s) => (n[s] = T(e, { type: r[s] }), n), t);
5368
5363
  }
5369
- function rs(t) {
5364
+ function ts(t) {
5370
5365
  const e = "upload", r = {
5371
5366
  image: ["image", 0],
5372
5367
  file: ["file", 0],
@@ -5375,7 +5370,7 @@ function rs(t) {
5375
5370
  };
5376
5371
  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
5372
  }
5378
- function ns(t) {
5373
+ function rs(t) {
5379
5374
  const e = {
5380
5375
  frameInputs: ["input", 0],
5381
5376
  frameFiles: ["file", 0],
@@ -5386,10 +5381,10 @@ function ns(t) {
5386
5381
  };
5387
5382
  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
5383
  }
5389
- function Nt(t, e) {
5384
+ function Mt(t, e) {
5390
5385
  return m.Boolean(t) ? t = { show: t } : !m.Undef(t) && !m.Object(t) && (t = { show: e }), t;
5391
5386
  }
5392
- function is(t, e) {
5387
+ function ns(t, e) {
5393
5388
  return {
5394
5389
  formEl() {
5395
5390
  return e.$manager.form();
@@ -5419,7 +5414,7 @@ function is(t, e) {
5419
5414
  return;
5420
5415
  }
5421
5416
  const l = e.subForm[a.id], u = [e.$manager.validateField(a.id)];
5422
- q(l).filter((f) => !f.isScope).forEach((f) => {
5417
+ H(l).filter((f) => !f.isScope).forEach((f) => {
5423
5418
  u.push(f.validate());
5424
5419
  }), Promise.all(u).then(() => {
5425
5420
  s(null), n && n(null);
@@ -5479,11 +5474,11 @@ function is(t, e) {
5479
5474
  }
5480
5475
  },
5481
5476
  submitBtnProps: (r = {}) => {
5482
- let n = Nt(e.options.submitBtn, !0);
5477
+ let n = Mt(e.options.submitBtn, !0);
5483
5478
  w(n, r), e.options.submitBtn = n, t.refreshOptions();
5484
5479
  },
5485
5480
  resetBtnProps: (r = {}) => {
5486
- let n = Nt(e.options.resetBtn, !1);
5481
+ let n = Mt(e.options.resetBtn, !1);
5487
5482
  w(n, r), e.options.resetBtn = n, t.refreshOptions();
5488
5483
  },
5489
5484
  submit(r, n) {
@@ -5501,10 +5496,10 @@ function is(t, e) {
5501
5496
  }
5502
5497
  };
5503
5498
  }
5504
- const ur = {
5499
+ const lr = {
5505
5500
  name: "required",
5506
5501
  load(t, e, r) {
5507
- const n = ss(t.getValue());
5502
+ const n = is(t.getValue());
5508
5503
  let s;
5509
5504
  if (n.required === !1)
5510
5505
  t.clearProp(), r.clearValidateState([e.field]);
@@ -5530,16 +5525,16 @@ const ur = {
5530
5525
  r.sync(e);
5531
5526
  },
5532
5527
  watch(...t) {
5533
- ur.load(...t);
5528
+ lr.load(...t);
5534
5529
  }
5535
5530
  };
5536
- function ss(t) {
5531
+ function is(t) {
5537
5532
  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
5533
  }
5539
- function os(t) {
5540
- t.componentAlias(Yi), Bn.forEach((e) => {
5534
+ function ss(t) {
5535
+ t.componentAlias(Gi), Pn.forEach((e) => {
5541
5536
  t.component(e.name, e);
5542
- }), t.register(ur), Gi.forEach((e) => {
5537
+ }), t.register(lr), xi.forEach((e) => {
5543
5538
  t.parser(e);
5544
5539
  }), Object.keys(pe).forEach((e) => {
5545
5540
  t.maker[e] = pe[e];
@@ -5547,13 +5542,13 @@ function os(t) {
5547
5542
  r.use(window.ElementPlus);
5548
5543
  });
5549
5544
  }
5550
- function as() {
5551
- return lr({
5545
+ function os() {
5546
+ return ar({
5552
5547
  ui: "element-ui",
5553
- version: "3.3.3",
5554
- manager: Qi,
5555
- extendApi: is,
5556
- install: os,
5548
+ version: "3.3.5",
5549
+ manager: Ji,
5550
+ extendApi: ns,
5551
+ install: ss,
5557
5552
  attrs: {
5558
5553
  normal: ["col", "wrap"],
5559
5554
  array: ["className"],
@@ -5561,10 +5556,10 @@ function as() {
5561
5556
  }
5562
5557
  });
5563
5558
  }
5564
- const fr = as();
5565
- typeof window != "undefined" && (window.formCreate = fr);
5566
- const fs = fr.maker;
5559
+ const ur = os();
5560
+ typeof window != "undefined" && (window.formCreate = ur);
5561
+ const us = ur.maker;
5567
5562
  export {
5568
- fr as default,
5569
- fs as maker
5563
+ ur as default,
5564
+ us as maker
5570
5565
  };