@form-create/element-ui 3.3.4 → 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.
- package/dist/form-create.esm.js +201 -186
- package/dist/form-create.js +4 -4
- package/dist/form-create.min.js +4 -4
- package/package.json +3 -3
- package/src/style/index.css +18 -0
package/dist/form-create.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* FormCreate 低代码表单渲染器
|
|
3
|
-
* @form-create/element-ui v3.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)}})();
|
|
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
10
|
var $r = Object.defineProperty, vr = Object.defineProperties;
|
|
11
11
|
var _r = Object.getOwnPropertyDescriptors;
|
|
12
12
|
var gt = Object.getOwnPropertySymbols;
|
|
@@ -18,12 +18,12 @@ var yt = (t, e, r) => e in t ? $r(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
18
18
|
for (var r of gt(e))
|
|
19
19
|
Cr.call(e, r) && yt(t, r, e[r]);
|
|
20
20
|
return t;
|
|
21
|
-
},
|
|
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
|
|
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
|
|
26
|
+
function H(t) {
|
|
27
27
|
return Array.isArray(t) ? t : [null, void 0, ""].indexOf(t) > -1 ? [] : [t];
|
|
28
28
|
}
|
|
29
29
|
const Tr = "fcCheckbox", Lr = /* @__PURE__ */ re({
|
|
@@ -43,7 +43,7 @@ const Tr = "fcCheckbox", Lr = /* @__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 = [...
|
|
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) => {
|
|
@@ -155,7 +155,7 @@ const me = (t, e) => {
|
|
|
155
155
|
xmlns: "http://www.w3.org/2000/svg"
|
|
156
156
|
};
|
|
157
157
|
function Ur(t, e, r, n, s, i) {
|
|
158
|
-
return
|
|
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"
|
|
@@ -174,7 +174,7 @@ const qr = /* @__PURE__ */ me(Mr, [["render", Ur]]), Hr = {
|
|
|
174
174
|
xmlns: "http://www.w3.org/2000/svg"
|
|
175
175
|
};
|
|
176
176
|
function xr(t, e, r, n, s, i) {
|
|
177
|
-
return
|
|
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"
|
|
@@ -189,7 +189,7 @@ const Gr = /* @__PURE__ */ me(Hr, [["render", xr]]), Yr = {
|
|
|
189
189
|
xmlns: "http://www.w3.org/2000/svg"
|
|
190
190
|
};
|
|
191
191
|
function Wr(t, e, r, n, s, i) {
|
|
192
|
-
return
|
|
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"
|
|
@@ -204,7 +204,7 @@ const Jr = /* @__PURE__ */ me(Yr, [["render", Wr]]), Qr = {
|
|
|
204
204
|
xmlns: "http://www.w3.org/2000/svg"
|
|
205
205
|
};
|
|
206
206
|
function Zr(t, e, r, n, s, i) {
|
|
207
|
-
return
|
|
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"
|
|
@@ -219,7 +219,7 @@ const en = /* @__PURE__ */ me(Qr, [["render", Zr]]), tn = {
|
|
|
219
219
|
xmlns: "http://www.w3.org/2000/svg"
|
|
220
220
|
};
|
|
221
221
|
function nn(t, e, r, n, s, i) {
|
|
222
|
-
return
|
|
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"
|
|
@@ -343,7 +343,7 @@ const sn = /* @__PURE__ */ me(tn, [["render", nn]]), on = "fcFrame", an = /* @__
|
|
|
343
343
|
},
|
|
344
344
|
data() {
|
|
345
345
|
return {
|
|
346
|
-
fileList:
|
|
346
|
+
fileList: H(this.modelValue),
|
|
347
347
|
previewVisible: !1,
|
|
348
348
|
frameVisible: !1,
|
|
349
349
|
previewImage: "",
|
|
@@ -352,7 +352,7 @@ const sn = /* @__PURE__ */ me(tn, [["render", nn]]), on = "fcFrame", an = /* @__
|
|
|
352
352
|
},
|
|
353
353
|
watch: {
|
|
354
354
|
modelValue(t) {
|
|
355
|
-
this.fileList =
|
|
355
|
+
this.fileList = H(t);
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
358
|
methods: {
|
|
@@ -726,24 +726,24 @@ const fn = "fcSelect", cn = re({
|
|
|
726
726
|
});
|
|
727
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
|
|
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
|
-
(
|
|
736
|
-
t.hasProperty(u, "options") ? (
|
|
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
|
-
(
|
|
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"])) : (
|
|
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)),
|
|
@@ -784,7 +784,7 @@ const hn = /* @__PURE__ */ me(cn, [["render", dn]]), pn = "fcTree", mn = /* @__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(
|
|
787
|
+
this.type === "selected" ? this.$refs.tree.setCurrentKey(this.modelValue) : this.$refs.tree.setCheckedKeys(H(this.modelValue));
|
|
788
788
|
}
|
|
789
789
|
},
|
|
790
790
|
render() {
|
|
@@ -805,7 +805,7 @@ const hn = /* @__PURE__ */ me(cn, [["render", dn]]), pn = "fcTree", mn = /* @__P
|
|
|
805
805
|
xmlns: "http://www.w3.org/2000/svg"
|
|
806
806
|
};
|
|
807
807
|
function bn(t, e, r, n, s, i) {
|
|
808
|
-
return
|
|
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"
|
|
@@ -822,7 +822,7 @@ function _t(t, e) {
|
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
824
|
function wt(t) {
|
|
825
|
-
return
|
|
825
|
+
return U(_({}, t), {
|
|
826
826
|
file: t,
|
|
827
827
|
value: t
|
|
828
828
|
});
|
|
@@ -835,7 +835,7 @@ const _n = "fcUpload", wn = /* @__PURE__ */ re({
|
|
|
835
835
|
inheritAttrs: !1,
|
|
836
836
|
formCreateParser: {
|
|
837
837
|
toFormValue(t) {
|
|
838
|
-
return
|
|
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 _n = "fcUpload", wn = /* @__PURE__ */ re({
|
|
|
860
860
|
};
|
|
861
861
|
},
|
|
862
862
|
created() {
|
|
863
|
-
this.fileList =
|
|
863
|
+
this.fileList = H(this.modelValue).map(_t).map(wt);
|
|
864
864
|
},
|
|
865
865
|
watch: {
|
|
866
866
|
modelValue(t) {
|
|
867
|
-
this.fileList =
|
|
867
|
+
this.fileList = H(t).map(_t).map(wt);
|
|
868
868
|
}
|
|
869
869
|
},
|
|
870
870
|
methods: {
|
|
@@ -891,7 +891,7 @@ const _n = "fcUpload", wn = /* @__PURE__ */ re({
|
|
|
891
891
|
}
|
|
892
892
|
},
|
|
893
893
|
render() {
|
|
894
|
-
const t =
|
|
894
|
+
const t = H(this.modelValue).length;
|
|
895
895
|
return v("div", {
|
|
896
896
|
class: "_fc-upload"
|
|
897
897
|
}, [v(O("ElUpload"), x({
|
|
@@ -1372,7 +1372,7 @@ const On = "fcGroup", En = /* @__PURE__ */ re({
|
|
|
1372
1372
|
class: "_fc-group-content"
|
|
1373
1373
|
}, [v(r, x({
|
|
1374
1374
|
key: o
|
|
1375
|
-
},
|
|
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 On = "fcGroup", En = /* @__PURE__ */ re({
|
|
|
1388
1388
|
key: o
|
|
1389
1389
|
}, [v(r, x({
|
|
1390
1390
|
key: o
|
|
1391
|
-
},
|
|
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),
|
|
@@ -1482,7 +1482,7 @@ const On = "fcGroup", En = /* @__PURE__ */ re({
|
|
|
1482
1482
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1483
1483
|
};
|
|
1484
1484
|
function jn(t, e, r, n, s, i) {
|
|
1485
|
-
return
|
|
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"
|
|
@@ -1533,7 +1533,7 @@ const In = /* @__PURE__ */ me(Dn, [["render", jn]]), Pn = [
|
|
|
1533
1533
|
function Wt() {
|
|
1534
1534
|
return [...Kt, ...xt, ...Gt, ...Yt, ...ut, ...ft];
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function z(t) {
|
|
1537
1537
|
const e = t.replace(/(-[a-z])/g, function(r) {
|
|
1538
1538
|
return r.replace("-", "").toLocaleUpperCase();
|
|
1539
1539
|
});
|
|
@@ -1626,7 +1626,7 @@ 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 =
|
|
1629
|
+
r.indexOf("-") > 0 && (r = z(r));
|
|
1630
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;
|
|
@@ -1708,7 +1708,10 @@ const Ue = (t, e) => {
|
|
|
1708
1708
|
return Ue(t.parent, e);
|
|
1709
1709
|
}
|
|
1710
1710
|
};
|
|
1711
|
-
function Nn(
|
|
1711
|
+
function Nn() {
|
|
1712
|
+
return typeof document != "undefined" && typeof document.createElement == "function" && document.head != null;
|
|
1713
|
+
}
|
|
1714
|
+
function Un(t, e, r) {
|
|
1712
1715
|
return re({
|
|
1713
1716
|
name: "FormCreate" + (t.isMobile ? "Mobile" : ""),
|
|
1714
1717
|
components: e,
|
|
@@ -1772,21 +1775,21 @@ function Nn(t, e, r) {
|
|
|
1772
1775
|
const k = Ue(s, i);
|
|
1773
1776
|
if (k) {
|
|
1774
1777
|
let A;
|
|
1775
|
-
C ? (A =
|
|
1778
|
+
C ? (A = H(k.getSubForm()), A.push(y)) : A = y, k.subForm(A);
|
|
1776
1779
|
}
|
|
1777
1780
|
}
|
|
1778
1781
|
}, G = () => {
|
|
1779
1782
|
const k = Ue(s, i);
|
|
1780
1783
|
if (k)
|
|
1781
1784
|
if (C) {
|
|
1782
|
-
const A =
|
|
1785
|
+
const A = H(k.getSubForm()), W = A.indexOf(y);
|
|
1783
1786
|
W > -1 && A.splice(W, 1);
|
|
1784
1787
|
} else
|
|
1785
1788
|
k.subForm();
|
|
1786
1789
|
};
|
|
1787
1790
|
let P = null;
|
|
1788
1791
|
Er(() => {
|
|
1789
|
-
Rr(() => {
|
|
1792
|
+
Nn() && Rr(() => {
|
|
1790
1793
|
let k = "";
|
|
1791
1794
|
const A = n.option && n.option.globalClass || {};
|
|
1792
1795
|
Object.keys(A).forEach((W) => {
|
|
@@ -1809,7 +1812,7 @@ function Nn(t, e, r) {
|
|
|
1809
1812
|
return kr(() => {
|
|
1810
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();
|
|
1811
1814
|
}), Dr(() => {
|
|
1812
|
-
i && (y.top.bus.$off("$loadData.$form", N), y.top.bus.$off("change", Ve)), y !== y.scope && y.scope.bus.$off("$loadData.$scopeForm", Se), G(), c.destroyed = !0, p.unmount(), P &&
|
|
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);
|
|
1813
1816
|
}), Ar(() => {
|
|
1814
1817
|
p.updated();
|
|
1815
1818
|
}), F(), B(() => n.option, () => {
|
|
@@ -1826,7 +1829,7 @@ function Nn(t, e, r) {
|
|
|
1826
1829
|
y.clearValidateState();
|
|
1827
1830
|
});
|
|
1828
1831
|
});
|
|
1829
|
-
}, { flush: "sync" }),
|
|
1832
|
+
}, { flush: "sync" }), U(_({
|
|
1830
1833
|
fc: fe(p),
|
|
1831
1834
|
parent: i && fe(i),
|
|
1832
1835
|
top: fe(o),
|
|
@@ -1897,18 +1900,18 @@ function rr(t) {
|
|
|
1897
1900
|
});
|
|
1898
1901
|
}
|
|
1899
1902
|
rr(Wt());
|
|
1900
|
-
const
|
|
1901
|
-
function
|
|
1902
|
-
let n =
|
|
1903
|
+
const qn = T("");
|
|
1904
|
+
function Hn(t, e, r) {
|
|
1905
|
+
let n = qn("", e);
|
|
1903
1906
|
return n._data.type = t, n._data.title = r, n;
|
|
1904
1907
|
}
|
|
1905
|
-
function
|
|
1908
|
+
function zn() {
|
|
1906
1909
|
return {
|
|
1907
|
-
create:
|
|
1910
|
+
create: Hn,
|
|
1908
1911
|
factory: T
|
|
1909
1912
|
};
|
|
1910
1913
|
}
|
|
1911
|
-
function
|
|
1914
|
+
function xn(t, e, r) {
|
|
1912
1915
|
const n = `fail to ${t} ${r.status}'`, s = new Error(n);
|
|
1913
1916
|
return s.status = r.status, s.url = t, s;
|
|
1914
1917
|
}
|
|
@@ -1937,7 +1940,7 @@ function nr(t) {
|
|
|
1937
1940
|
t.onError(o);
|
|
1938
1941
|
}, e.onload = function() {
|
|
1939
1942
|
if (e.status < 200 || e.status >= 300)
|
|
1940
|
-
return t.onError(
|
|
1943
|
+
return t.onError(xn(r, t, e), Ot(e));
|
|
1941
1944
|
t.onSuccess(Ot(e));
|
|
1942
1945
|
}, e.open(t.method || "get", r, !0);
|
|
1943
1946
|
let n;
|
|
@@ -1951,7 +1954,7 @@ function nr(t) {
|
|
|
1951
1954
|
}
|
|
1952
1955
|
function Et(t, e, r) {
|
|
1953
1956
|
return new Promise((n, s) => {
|
|
1954
|
-
(e || nr)(
|
|
1957
|
+
(e || nr)(U(_({}, t), {
|
|
1955
1958
|
onSuccess(i) {
|
|
1956
1959
|
let o = (l) => l;
|
|
1957
1960
|
const a = te(t.parse);
|
|
@@ -1968,7 +1971,7 @@ function Et(t, e, r) {
|
|
|
1968
1971
|
function Oe(t) {
|
|
1969
1972
|
return ee(t);
|
|
1970
1973
|
}
|
|
1971
|
-
function
|
|
1974
|
+
function Gn(t) {
|
|
1972
1975
|
function e(i) {
|
|
1973
1976
|
return m.Undef(i) ? i = t.fields() : Array.isArray(i) || (i = [i]), i;
|
|
1974
1977
|
}
|
|
@@ -2485,7 +2488,7 @@ function xn(t) {
|
|
|
2485
2488
|
};
|
|
2486
2489
|
}), s.changeValue = s.changeField = s.setValue, s;
|
|
2487
2490
|
}
|
|
2488
|
-
function
|
|
2491
|
+
function Yn(t) {
|
|
2489
2492
|
w(t.prototype, {
|
|
2490
2493
|
initCache() {
|
|
2491
2494
|
this.clearCacheAll();
|
|
@@ -2517,7 +2520,7 @@ function Gn(t) {
|
|
|
2517
2520
|
}
|
|
2518
2521
|
});
|
|
2519
2522
|
}
|
|
2520
|
-
function
|
|
2523
|
+
function Kn(t) {
|
|
2521
2524
|
w(t.prototype, {
|
|
2522
2525
|
initRender() {
|
|
2523
2526
|
this.cacheConfig = {};
|
|
@@ -2534,12 +2537,24 @@ function Yn(t) {
|
|
|
2534
2537
|
render() {
|
|
2535
2538
|
if (!this.vm.setupState.isShow)
|
|
2536
2539
|
return;
|
|
2537
|
-
this.$manager.beforeRender();
|
|
2540
|
+
this.$manager.beforeRender(), this.applyShowNumber(this.$manager.rule);
|
|
2538
2541
|
const e = Le();
|
|
2539
2542
|
return this.sort.forEach((r) => {
|
|
2540
2543
|
this.renderSlot(e, this.$handle.ctxs[r]);
|
|
2541
2544
|
}), this.$manager.render(e);
|
|
2542
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
|
+
},
|
|
2543
2558
|
renderSlot(e, r, n) {
|
|
2544
2559
|
if (this.isFragment(r)) {
|
|
2545
2560
|
r.initProp(), this.mergeGlobal(r), r.initNone();
|
|
@@ -2795,9 +2810,9 @@ function Yn(t) {
|
|
|
2795
2810
|
if (n)
|
|
2796
2811
|
s = e.type;
|
|
2797
2812
|
else if (s = e.is, e.type) {
|
|
2798
|
-
s =
|
|
2813
|
+
s = z(e.type);
|
|
2799
2814
|
const a = this.vNode.aliasMap[s];
|
|
2800
|
-
a && (s =
|
|
2815
|
+
a && (s = z(a));
|
|
2801
2816
|
}
|
|
2802
2817
|
if (!s) return;
|
|
2803
2818
|
const i = Le();
|
|
@@ -2809,7 +2824,7 @@ function Yn(t) {
|
|
|
2809
2824
|
}
|
|
2810
2825
|
});
|
|
2811
2826
|
}
|
|
2812
|
-
let
|
|
2827
|
+
let Wn = 1;
|
|
2813
2828
|
function dt(t) {
|
|
2814
2829
|
w(this, {
|
|
2815
2830
|
$handle: t,
|
|
@@ -2819,7 +2834,7 @@ function dt(t) {
|
|
|
2819
2834
|
vNode: new t.fc.CreateNode(t),
|
|
2820
2835
|
force: !1,
|
|
2821
2836
|
tmpInput: null,
|
|
2822
|
-
id:
|
|
2837
|
+
id: Wn++
|
|
2823
2838
|
}), Zt(this, {
|
|
2824
2839
|
options() {
|
|
2825
2840
|
return t.options;
|
|
@@ -2829,9 +2844,9 @@ function dt(t) {
|
|
|
2829
2844
|
}
|
|
2830
2845
|
}), this.initCache(), this.initRender();
|
|
2831
2846
|
}
|
|
2832
|
-
Gn(dt);
|
|
2833
2847
|
Yn(dt);
|
|
2834
|
-
|
|
2848
|
+
Kn(dt);
|
|
2849
|
+
function Jn(t) {
|
|
2835
2850
|
w(t.prototype, {
|
|
2836
2851
|
parseInjectEvent(e, r) {
|
|
2837
2852
|
const n = e.inject || this.options.injectEvent;
|
|
@@ -2864,10 +2879,10 @@ function Wn(t) {
|
|
|
2864
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);
|
|
2865
2880
|
};
|
|
2866
2881
|
if (p.__emit = !0, !f && a === !1)
|
|
2867
|
-
r[
|
|
2882
|
+
r[z(u)] = p;
|
|
2868
2883
|
else {
|
|
2869
2884
|
let y = f || a || this.options.injectEvent;
|
|
2870
|
-
r[
|
|
2885
|
+
r[z(u)] = m.Undef(y) ? p : this.inject(n, p, y);
|
|
2871
2886
|
}
|
|
2872
2887
|
}
|
|
2873
2888
|
}), e.computed.on = r, r;
|
|
@@ -2946,12 +2961,12 @@ function Wn(t) {
|
|
|
2946
2961
|
});
|
|
2947
2962
|
}
|
|
2948
2963
|
const Rt = ["hook:updated", "hook:mounted"];
|
|
2949
|
-
function
|
|
2964
|
+
function Qn(t) {
|
|
2950
2965
|
w(t.prototype, {
|
|
2951
2966
|
usePage() {
|
|
2952
2967
|
const e = this.options.page;
|
|
2953
2968
|
if (!e) return;
|
|
2954
|
-
let r = 25, n =
|
|
2969
|
+
let r = 25, n = Xn(this.rules);
|
|
2955
2970
|
m.Object(e) && (e.first && (r = parseInt(e.first, 10) || r), e.limit && (n = parseInt(e.limit, 10) || n)), w(this, {
|
|
2956
2971
|
first: r,
|
|
2957
2972
|
limit: n,
|
|
@@ -2966,10 +2981,10 @@ function Jn(t) {
|
|
|
2966
2981
|
}
|
|
2967
2982
|
});
|
|
2968
2983
|
}
|
|
2969
|
-
function
|
|
2984
|
+
function Xn(t) {
|
|
2970
2985
|
return t.length < 31 ? 31 : Math.ceil(t.length / 3);
|
|
2971
2986
|
}
|
|
2972
|
-
function
|
|
2987
|
+
function Zn(t) {
|
|
2973
2988
|
w(t.prototype, {
|
|
2974
2989
|
clearNextTick() {
|
|
2975
2990
|
this.nextTick && clearTimeout(this.nextTick), this.nextTick = null;
|
|
@@ -2984,7 +2999,7 @@ function Xn(t) {
|
|
|
2984
2999
|
}
|
|
2985
3000
|
});
|
|
2986
3001
|
}
|
|
2987
|
-
function
|
|
3002
|
+
function ei(t) {
|
|
2988
3003
|
Object.defineProperties(t.origin, {
|
|
2989
3004
|
__fc__: st(fe(t))
|
|
2990
3005
|
}), t.rule !== t.origin && Object.defineProperties(t.rule, {
|
|
@@ -3020,7 +3035,7 @@ function ir(t, e, r) {
|
|
|
3020
3035
|
exportEl: void 0,
|
|
3021
3036
|
defaultValue: s ? ee(r) : void 0,
|
|
3022
3037
|
field: e.field || void 0
|
|
3023
|
-
}), this.updateKey(),
|
|
3038
|
+
}), this.updateKey(), ei(this), this.update(t, !0);
|
|
3024
3039
|
}
|
|
3025
3040
|
w(ir.prototype, {
|
|
3026
3041
|
getParentGroup() {
|
|
@@ -3095,7 +3110,7 @@ w(ir.prototype, {
|
|
|
3095
3110
|
this.key = He(), t && this.parent && this.parent.updateKey(t);
|
|
3096
3111
|
},
|
|
3097
3112
|
updateType() {
|
|
3098
|
-
this.originType = this.rule.type, this.type =
|
|
3113
|
+
this.originType = this.rule.type, this.type = z(this.rule.type), this.trueType = this.$handle.getType(this.originType);
|
|
3099
3114
|
},
|
|
3100
3115
|
setParser(t) {
|
|
3101
3116
|
this.parser = t, t.init(this);
|
|
@@ -3179,7 +3194,7 @@ w(ir.prototype, {
|
|
|
3179
3194
|
}), !e && this.unwatch(), this.watchTo(), this.link(), this.updateType();
|
|
3180
3195
|
}
|
|
3181
3196
|
});
|
|
3182
|
-
function
|
|
3197
|
+
function ti(t) {
|
|
3183
3198
|
w(t.prototype, {
|
|
3184
3199
|
nextRefresh(e) {
|
|
3185
3200
|
const r = this.loadedId;
|
|
@@ -3191,7 +3206,7 @@ function ei(t) {
|
|
|
3191
3206
|
const r = Ct(e);
|
|
3192
3207
|
return Object.defineProperties(r, {
|
|
3193
3208
|
__origin__: st(e)
|
|
3194
|
-
}),
|
|
3209
|
+
}), ri(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((n) => {
|
|
3195
3210
|
n && this.loadFn(n, r);
|
|
3196
3211
|
}), this.loadCtrl(r), r.update && (r.update = te(r.update)), r;
|
|
3197
3212
|
},
|
|
@@ -3276,16 +3291,16 @@ function ei(t) {
|
|
|
3276
3291
|
return e.input && e.rule.control && this.useCtrl(e);
|
|
3277
3292
|
},
|
|
3278
3293
|
useCtrl(e) {
|
|
3279
|
-
const r =
|
|
3294
|
+
const r = ni(e), n = [], s = this.api;
|
|
3280
3295
|
if (!r.length) return !1;
|
|
3281
3296
|
for (let a = 0; a < r.length; a++) {
|
|
3282
3297
|
const l = r[a], u = l.handle || function(c) {
|
|
3283
3298
|
return (Ce[l.condition || "=="] || Ce["=="])(c, l.value);
|
|
3284
3299
|
};
|
|
3285
3300
|
if (!m.trueArray(l.rule)) continue;
|
|
3286
|
-
const f =
|
|
3301
|
+
const f = U(_({}, l), {
|
|
3287
3302
|
valid: V(() => u(e.rule.value, s)),
|
|
3288
|
-
ctrl:
|
|
3303
|
+
ctrl: ii(e, l.rule),
|
|
3289
3304
|
isHidden: m.String(l.rule[0])
|
|
3290
3305
|
});
|
|
3291
3306
|
f.valid && f.ctrl || !f.valid && !f.ctrl && !f.isHidden || n.push(f);
|
|
@@ -3348,17 +3363,17 @@ function ei(t) {
|
|
|
3348
3363
|
}
|
|
3349
3364
|
});
|
|
3350
3365
|
}
|
|
3351
|
-
function
|
|
3366
|
+
function ri(t) {
|
|
3352
3367
|
const e = tr();
|
|
3353
3368
|
return Object.keys(e).forEach((r) => {
|
|
3354
3369
|
D(t, r) || (t[r] = e[r]);
|
|
3355
3370
|
}), t;
|
|
3356
3371
|
}
|
|
3357
|
-
function
|
|
3372
|
+
function ni(t) {
|
|
3358
3373
|
const e = t.rule.control || [];
|
|
3359
3374
|
return m.Object(e) ? [e] : e;
|
|
3360
3375
|
}
|
|
3361
|
-
function
|
|
3376
|
+
function ii(t, e) {
|
|
3362
3377
|
for (let r = 0; r < t.ctrlRule.length; r++) {
|
|
3363
3378
|
const n = t.ctrlRule[r];
|
|
3364
3379
|
if (n.children === e)
|
|
@@ -3368,7 +3383,7 @@ function ni(t, e) {
|
|
|
3368
3383
|
function kt(t) {
|
|
3369
3384
|
return !!t.rule.__ctrl;
|
|
3370
3385
|
}
|
|
3371
|
-
function
|
|
3386
|
+
function si(t) {
|
|
3372
3387
|
w(t.prototype, {
|
|
3373
3388
|
setValue(e, r, n, s) {
|
|
3374
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, {
|
|
@@ -3497,13 +3512,13 @@ const Re = {
|
|
|
3497
3512
|
},
|
|
3498
3513
|
mergeProp(t) {
|
|
3499
3514
|
}
|
|
3500
|
-
},
|
|
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;
|
|
3501
3516
|
function At(t, e) {
|
|
3502
3517
|
const r = t.join(",") + "|" + e;
|
|
3503
3518
|
let n = Ne.get(r);
|
|
3504
|
-
return n || (Ne.size >=
|
|
3519
|
+
return n || (Ne.size >= ui && Ne.clear(), n = new Function(...t, e), Ne.set(r, n)), n;
|
|
3505
3520
|
}
|
|
3506
|
-
function
|
|
3521
|
+
function fi(t) {
|
|
3507
3522
|
w(t.prototype, {
|
|
3508
3523
|
//computed 更新原先各自 setTimeout(0),N 个字段同时联动就会拆成 N 个宏任务,
|
|
3509
3524
|
//Vue 在任务之间各 flush 一次,render 被放大 N 倍。
|
|
@@ -3551,24 +3566,24 @@ function ui(t) {
|
|
|
3551
3566
|
getParser(e) {
|
|
3552
3567
|
const r = this.fc.parsers, n = this.fc.renderDriver;
|
|
3553
3568
|
if (n) {
|
|
3554
|
-
const s = n.parsers || {}, i = s[e.originType] || s[
|
|
3569
|
+
const s = n.parsers || {}, i = s[e.originType] || s[z(e.type)] || s[e.trueType];
|
|
3555
3570
|
if (i)
|
|
3556
3571
|
return i;
|
|
3557
3572
|
}
|
|
3558
|
-
return r[e.originType] || r[
|
|
3573
|
+
return r[e.originType] || r[z(e.type)] || r[e.trueType] || Re;
|
|
3559
3574
|
},
|
|
3560
3575
|
bindParser(e) {
|
|
3561
3576
|
e.setParser(this.getParser(e));
|
|
3562
3577
|
},
|
|
3563
3578
|
getType(e) {
|
|
3564
|
-
const r = this.fc.CreateNode.aliasMap, n = r[e] || r[
|
|
3565
|
-
return
|
|
3579
|
+
const r = this.fc.CreateNode.aliasMap, n = r[e] || r[z(e)] || e;
|
|
3580
|
+
return z(n);
|
|
3566
3581
|
},
|
|
3567
3582
|
noWatch(e) {
|
|
3568
3583
|
this.noWatchFn || (this.noWatchFn = e), V(e), this.noWatchFn === e && (this.noWatchFn = null);
|
|
3569
3584
|
},
|
|
3570
3585
|
watchCtx(e) {
|
|
3571
|
-
const r = Wt().filter((o) => o[0] !== "_" && o[0] !== "$" &&
|
|
3586
|
+
const r = Wt().filter((o) => o[0] !== "_" && o[0] !== "$" && oi.indexOf(o) === -1), n = {}, s = (o, a, l) => (u, f) => {
|
|
3572
3587
|
let c = a.value;
|
|
3573
3588
|
if (!this.isBreakWatch()) {
|
|
3574
3589
|
if (l && e.parser.loadChildren === !1) {
|
|
@@ -3619,7 +3634,7 @@ function ui(t) {
|
|
|
3619
3634
|
const l = a.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
|
|
3620
3635
|
return l ? this.api.t(l[1], { title: (f = (u = e.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value }) : a;
|
|
3621
3636
|
};
|
|
3622
|
-
return
|
|
3637
|
+
return H(e.rule.validate).map((a) => {
|
|
3623
3638
|
const l = _({}, a);
|
|
3624
3639
|
if (l.message && (l.message = o(l.message)), m.Function(l.validator)) {
|
|
3625
3640
|
const u = e;
|
|
@@ -3799,7 +3814,7 @@ function ui(t) {
|
|
|
3799
3814
|
else if (!c.mode)
|
|
3800
3815
|
return !0;
|
|
3801
3816
|
let C = c.compare;
|
|
3802
|
-
if (C && (C = Ft(C || "")), c.mode ? h = i(c) : Ce[c.condition] ? m.Function(c.handler) ? h = V(() => c.handler(this.api, e.rule)) : h = V(() => At(
|
|
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)
|
|
3803
3818
|
return !0;
|
|
3804
3819
|
l || (u = u && h);
|
|
3805
3820
|
}
|
|
@@ -3824,7 +3839,7 @@ function ui(t) {
|
|
|
3824
3839
|
fc: s.fc
|
|
3825
3840
|
}, ...l);
|
|
3826
3841
|
}, o), {});
|
|
3827
|
-
return V(() => At(
|
|
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);
|
|
3828
3843
|
},
|
|
3829
3844
|
updateChildren(e, r, n) {
|
|
3830
3845
|
this.deferSyncValue(() => {
|
|
@@ -3857,7 +3872,7 @@ function ui(t) {
|
|
|
3857
3872
|
}
|
|
3858
3873
|
});
|
|
3859
3874
|
}
|
|
3860
|
-
function
|
|
3875
|
+
function ci(t) {
|
|
3861
3876
|
w(t.prototype, {
|
|
3862
3877
|
mounted() {
|
|
3863
3878
|
const e = () => {
|
|
@@ -3869,7 +3884,7 @@ function fi(t) {
|
|
|
3869
3884
|
this.fc.targetFormDriver(e, this.api, this.fc), this.vm.emit(e, this.api), this.emitEvent(e, this.api);
|
|
3870
3885
|
},
|
|
3871
3886
|
emitEvent(e, ...r) {
|
|
3872
|
-
const n = this.options[e] || this.options[
|
|
3887
|
+
const n = this.options[e] || this.options[z("on-" + e)];
|
|
3873
3888
|
if (n) {
|
|
3874
3889
|
const s = te(n);
|
|
3875
3890
|
m.Function(s) && V(() => s(...r));
|
|
@@ -3880,7 +3895,7 @@ function fi(t) {
|
|
|
3880
3895
|
var l, u, f, c;
|
|
3881
3896
|
let s = (u = (l = e.prop) == null ? void 0 : l.hook) == null ? void 0 : u[r], i = (h, p) => {
|
|
3882
3897
|
h && (h = Array.isArray(h) ? h : [h], h.forEach((y) => {
|
|
3883
|
-
V(() => y(
|
|
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 })));
|
|
3884
3899
|
}));
|
|
3885
3900
|
};
|
|
3886
3901
|
i(s);
|
|
@@ -3892,13 +3907,13 @@ function fi(t) {
|
|
|
3892
3907
|
}
|
|
3893
3908
|
});
|
|
3894
3909
|
}
|
|
3895
|
-
function
|
|
3910
|
+
function di(t) {
|
|
3896
3911
|
w(t.prototype, {
|
|
3897
3912
|
useProvider() {
|
|
3898
3913
|
const e = this.fc.providers;
|
|
3899
3914
|
Object.keys(e).forEach((r) => {
|
|
3900
3915
|
let n = e[r];
|
|
3901
|
-
m.Function(n) && (n = n(this.fc)), n._c =
|
|
3916
|
+
m.Function(n) && (n = n(this.fc)), n._c = pi(n), this.onEffect(n, r), this.providers[r] = n;
|
|
3902
3917
|
});
|
|
3903
3918
|
},
|
|
3904
3919
|
onEffect(e, r) {
|
|
@@ -3968,15 +3983,15 @@ function ci(t) {
|
|
|
3968
3983
|
}
|
|
3969
3984
|
});
|
|
3970
3985
|
}
|
|
3971
|
-
function
|
|
3986
|
+
function hi(t) {
|
|
3972
3987
|
return t.filter(function(e, r, n) {
|
|
3973
3988
|
return n.indexOf(e, 0) === r;
|
|
3974
3989
|
});
|
|
3975
3990
|
}
|
|
3976
|
-
function
|
|
3991
|
+
function pi(t) {
|
|
3977
3992
|
const e = t.components;
|
|
3978
3993
|
if (Array.isArray(e)) {
|
|
3979
|
-
const r =
|
|
3994
|
+
const r = hi(e.filter((n) => n !== "*"));
|
|
3980
3995
|
return r.length ? r : !1;
|
|
3981
3996
|
} else return m.String(e) ? [e] : !1;
|
|
3982
3997
|
}
|
|
@@ -4018,7 +4033,7 @@ function ne(t) {
|
|
|
4018
4033
|
}), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new dt(this), this.api = t.extendApiFn.reduce((e, r) => {
|
|
4019
4034
|
const n = V(() => r(e, this));
|
|
4020
4035
|
return n && n !== e && w(e, n), e;
|
|
4021
|
-
},
|
|
4036
|
+
}, Gn(this));
|
|
4022
4037
|
}
|
|
4023
4038
|
w(ne.prototype, {
|
|
4024
4039
|
initData(t) {
|
|
@@ -4058,23 +4073,23 @@ w(ne.prototype, {
|
|
|
4058
4073
|
});
|
|
4059
4074
|
}
|
|
4060
4075
|
});
|
|
4061
|
-
Wn(ne);
|
|
4062
4076
|
Jn(ne);
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4077
|
+
Qn(ne);
|
|
4078
|
+
Zn(ne);
|
|
4079
|
+
ti(ne);
|
|
4080
|
+
si(ne);
|
|
4067
4081
|
fi(ne);
|
|
4068
4082
|
ci(ne);
|
|
4069
|
-
|
|
4070
|
-
|
|
4083
|
+
di(ne);
|
|
4084
|
+
const mi = "fcFragment", We = re({
|
|
4085
|
+
name: mi,
|
|
4071
4086
|
inheritAttrs: !1,
|
|
4072
4087
|
props: ["vnode"],
|
|
4073
4088
|
render() {
|
|
4074
4089
|
return this.vnode;
|
|
4075
4090
|
}
|
|
4076
4091
|
});
|
|
4077
|
-
function
|
|
4092
|
+
function gi(t) {
|
|
4078
4093
|
return Object.keys(t).map((e) => {
|
|
4079
4094
|
const r = t[e], n = Ir(e);
|
|
4080
4095
|
if (n)
|
|
@@ -4088,9 +4103,9 @@ function mi(t) {
|
|
|
4088
4103
|
}
|
|
4089
4104
|
function jt(t, e) {
|
|
4090
4105
|
let r = t.directives;
|
|
4091
|
-
return r ? (Array.isArray(r) || (r = [r]), jr(e, r.reduce((n, s) => n.concat(
|
|
4106
|
+
return r ? (Array.isArray(r) || (r = [r]), jr(e, r.reduce((n, s) => n.concat(gi(s)), []))) : e;
|
|
4092
4107
|
}
|
|
4093
|
-
function
|
|
4108
|
+
function yi() {
|
|
4094
4109
|
const t = {};
|
|
4095
4110
|
function e(r) {
|
|
4096
4111
|
this.vm = r.vm, this.handle = r;
|
|
@@ -4133,7 +4148,7 @@ function gi() {
|
|
|
4133
4148
|
}
|
|
4134
4149
|
}), e;
|
|
4135
4150
|
}
|
|
4136
|
-
function
|
|
4151
|
+
function bi(t) {
|
|
4137
4152
|
class e extends sr {
|
|
4138
4153
|
}
|
|
4139
4154
|
return Object.assign(e.prototype, t), e;
|
|
@@ -4199,13 +4214,13 @@ w(sr.prototype, {
|
|
|
4199
4214
|
render(t) {
|
|
4200
4215
|
}
|
|
4201
4216
|
});
|
|
4202
|
-
const
|
|
4217
|
+
const $i = function(t) {
|
|
4203
4218
|
const e = {
|
|
4204
4219
|
name: "loadData",
|
|
4205
4220
|
_fn: [],
|
|
4206
4221
|
loaded(r, n, s) {
|
|
4207
4222
|
this.deleted(r), I(() => {
|
|
4208
|
-
let i =
|
|
4223
|
+
let i = H(r.getValue());
|
|
4209
4224
|
const o = [];
|
|
4210
4225
|
i.forEach((a) => {
|
|
4211
4226
|
if (a && (a.attr || a.template || a.handler)) {
|
|
@@ -4230,7 +4245,7 @@ const bi = function(t) {
|
|
|
4230
4245
|
}
|
|
4231
4246
|
};
|
|
4232
4247
|
return e.watch = e.loaded, e;
|
|
4233
|
-
},
|
|
4248
|
+
}, vi = function(t) {
|
|
4234
4249
|
const e = {
|
|
4235
4250
|
name: "t",
|
|
4236
4251
|
_fn: [],
|
|
@@ -4267,7 +4282,7 @@ const bi = function(t) {
|
|
|
4267
4282
|
t.clearProp(), r.clearValidateState([e.field]);
|
|
4268
4283
|
else {
|
|
4269
4284
|
m.Object(n) || (n = { method: n });
|
|
4270
|
-
const s = n.method, i =
|
|
4285
|
+
const s = n.method, i = U(_({}, n), {
|
|
4271
4286
|
validator(...o) {
|
|
4272
4287
|
const a = Q(e);
|
|
4273
4288
|
if (a)
|
|
@@ -4284,7 +4299,7 @@ const bi = function(t) {
|
|
|
4284
4299
|
watch(...t) {
|
|
4285
4300
|
or.load(...t);
|
|
4286
4301
|
}
|
|
4287
|
-
},
|
|
4302
|
+
}, _i = function(t) {
|
|
4288
4303
|
function e(s) {
|
|
4289
4304
|
return m.String(s) && (s = {
|
|
4290
4305
|
action: s,
|
|
@@ -4318,7 +4333,7 @@ const bi = function(t) {
|
|
|
4318
4333
|
}
|
|
4319
4334
|
return;
|
|
4320
4335
|
}
|
|
4321
|
-
const p = t.$handle.loadFetchVar(ee(a), c, i), y =
|
|
4336
|
+
const p = t.$handle.loadFetchVar(ee(a), c, i), y = U(_({
|
|
4322
4337
|
headers: {}
|
|
4323
4338
|
}, p), {
|
|
4324
4339
|
onSuccess(C, F) {
|
|
@@ -4361,13 +4376,13 @@ const bi = function(t) {
|
|
|
4361
4376
|
}
|
|
4362
4377
|
};
|
|
4363
4378
|
return n;
|
|
4364
|
-
},
|
|
4365
|
-
fetch:
|
|
4366
|
-
loadData:
|
|
4367
|
-
t:
|
|
4379
|
+
}, wi = {
|
|
4380
|
+
fetch: _i,
|
|
4381
|
+
loadData: $i,
|
|
4382
|
+
t: vi,
|
|
4368
4383
|
componentValidate: or
|
|
4369
|
-
},
|
|
4370
|
-
name:
|
|
4384
|
+
}, Ci = "html", Si = {
|
|
4385
|
+
name: Ci,
|
|
4371
4386
|
loadChildren: !1,
|
|
4372
4387
|
render(t, e) {
|
|
4373
4388
|
return e.prop.props.innerHTML = t.default(), e.vNode.make(e.prop.props.tag || "div", e.prop);
|
|
@@ -4378,7 +4393,7 @@ const bi = function(t) {
|
|
|
4378
4393
|
};
|
|
4379
4394
|
}
|
|
4380
4395
|
};
|
|
4381
|
-
function
|
|
4396
|
+
function Vi(t) {
|
|
4382
4397
|
t = t + "=";
|
|
4383
4398
|
const r = decodeURIComponent(document.cookie).split(";");
|
|
4384
4399
|
for (let n = 0; n < r.length; n++) {
|
|
@@ -4396,7 +4411,7 @@ function Si(t) {
|
|
|
4396
4411
|
}
|
|
4397
4412
|
return null;
|
|
4398
4413
|
}
|
|
4399
|
-
function
|
|
4414
|
+
function Fi(t) {
|
|
4400
4415
|
const e = localStorage.getItem(t);
|
|
4401
4416
|
if (e)
|
|
4402
4417
|
try {
|
|
@@ -4406,7 +4421,7 @@ function Vi(t) {
|
|
|
4406
4421
|
}
|
|
4407
4422
|
return null;
|
|
4408
4423
|
}
|
|
4409
|
-
function
|
|
4424
|
+
function Oi(t) {
|
|
4410
4425
|
const e = sessionStorage.getItem(t);
|
|
4411
4426
|
if (e)
|
|
4412
4427
|
try {
|
|
@@ -4423,16 +4438,16 @@ function ht(t, e) {
|
|
|
4423
4438
|
let n = t(r.shift());
|
|
4424
4439
|
return r.length ? n == null ? null : M(n, r) : n;
|
|
4425
4440
|
}
|
|
4426
|
-
function Oi(t) {
|
|
4427
|
-
return ht(Si, t);
|
|
4428
|
-
}
|
|
4429
4441
|
function Ei(t) {
|
|
4430
4442
|
return ht(Vi, t);
|
|
4431
4443
|
}
|
|
4432
4444
|
function Ri(t) {
|
|
4433
4445
|
return ht(Fi, t);
|
|
4434
4446
|
}
|
|
4435
|
-
|
|
4447
|
+
function ki(t) {
|
|
4448
|
+
return ht(Oi, t);
|
|
4449
|
+
}
|
|
4450
|
+
const Di = {
|
|
4436
4451
|
en: {
|
|
4437
4452
|
required: "{title} is required",
|
|
4438
4453
|
validate: {
|
|
@@ -4482,30 +4497,30 @@ const ki = {
|
|
|
4482
4497
|
}
|
|
4483
4498
|
}
|
|
4484
4499
|
};
|
|
4485
|
-
function
|
|
4500
|
+
function Ai(t, e) {
|
|
4486
4501
|
let r;
|
|
4487
4502
|
return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
|
|
4488
4503
|
}
|
|
4489
4504
|
function Je() {
|
|
4490
|
-
return
|
|
4505
|
+
return Ai("name", ...arguments);
|
|
4491
4506
|
}
|
|
4492
|
-
function
|
|
4507
|
+
function ji(t) {
|
|
4493
4508
|
const e = t.key || [], r = t.array || [], n = t.normal || [];
|
|
4494
4509
|
Kt.push(...e), ut.push(...r), ft.push(...n), rr([...e, ...r, ...n]);
|
|
4495
4510
|
}
|
|
4496
|
-
let
|
|
4511
|
+
let Ii = 1;
|
|
4497
4512
|
const Y = {}, It = Symbol("defValue");
|
|
4498
4513
|
function ar(t) {
|
|
4499
4514
|
const e = {
|
|
4500
4515
|
[We.name]: We
|
|
4501
4516
|
}, r = {}, n = {}, s = {}, i = {}, o = [], a = [], l = [
|
|
4502
4517
|
t.extendApi
|
|
4503
|
-
], u = _({},
|
|
4518
|
+
], u = _({}, wi), f = zn();
|
|
4504
4519
|
let c = { global: {} };
|
|
4505
4520
|
const h = t.isMobile === !0, p = Z({
|
|
4506
4521
|
$mobile: h
|
|
4507
|
-
}), y =
|
|
4508
|
-
|
|
4522
|
+
}), y = yi(), C = {}, F = {};
|
|
4523
|
+
ji(t.attrs || {});
|
|
4509
4524
|
function G(d) {
|
|
4510
4525
|
const g = Y[d];
|
|
4511
4526
|
if (Array.isArray(g))
|
|
@@ -4522,7 +4537,7 @@ function ar(t) {
|
|
|
4522
4537
|
}
|
|
4523
4538
|
function Se() {
|
|
4524
4539
|
const d = Je(...arguments);
|
|
4525
|
-
d.id && d.prop && (u[d.id] = m.Function(d.prop) ? d.prop :
|
|
4540
|
+
d.id && d.prop && (u[d.id] = m.Function(d.prop) ? d.prop : U(_({}, d.prop), {
|
|
4526
4541
|
name: d.id
|
|
4527
4542
|
}));
|
|
4528
4543
|
}
|
|
@@ -4533,10 +4548,10 @@ function ar(t) {
|
|
|
4533
4548
|
if (arguments.length === 0)
|
|
4534
4549
|
return Re;
|
|
4535
4550
|
if (typeof d == "string" && arguments.length === 1)
|
|
4536
|
-
return r[
|
|
4551
|
+
return r[z(d)];
|
|
4537
4552
|
const g = Je(...arguments);
|
|
4538
4553
|
if (!g.id || !g.prop) return Re;
|
|
4539
|
-
const b =
|
|
4554
|
+
const b = z(g.id), $ = g.prop, S = $.merge === !0 ? r[b] : void 0;
|
|
4540
4555
|
r[b] = Me($, S || Re), f[b] = T(b), $.maker && w(f, $.maker);
|
|
4541
4556
|
}
|
|
4542
4557
|
function k(d, g) {
|
|
@@ -4547,11 +4562,11 @@ function ar(t) {
|
|
|
4547
4562
|
} else
|
|
4548
4563
|
b = d.displayName || d.name, g = d;
|
|
4549
4564
|
if (!b || !g) return;
|
|
4550
|
-
const $ =
|
|
4565
|
+
const $ = z(b);
|
|
4551
4566
|
e[b] = g, e[$] = g, delete y.aliasMap[b], delete y.aliasMap[$], delete r[b], delete r[$], g.formCreateParser && Ve(b, g.formCreateParser);
|
|
4552
4567
|
}
|
|
4553
4568
|
function A() {
|
|
4554
|
-
return
|
|
4569
|
+
return Un(Ge, e, n);
|
|
4555
4570
|
}
|
|
4556
4571
|
function W(d, g) {
|
|
4557
4572
|
const b = A();
|
|
@@ -4606,7 +4621,7 @@ function ar(t) {
|
|
|
4606
4621
|
const b = i[d] || {}, $ = b.parsers || {};
|
|
4607
4622
|
g.parsers && Object.keys(g.parsers).forEach((S) => {
|
|
4608
4623
|
$[S] = Me(g.parsers[S], Re);
|
|
4609
|
-
}), g.name = d, i[d] =
|
|
4624
|
+
}), g.name = d, i[d] = U(_(_({}, b), g), { parsers: $ });
|
|
4610
4625
|
}
|
|
4611
4626
|
function Ie(d) {
|
|
4612
4627
|
d && Object.keys(Y).forEach((g) => {
|
|
@@ -4643,10 +4658,10 @@ function ar(t) {
|
|
|
4643
4658
|
}
|
|
4644
4659
|
function Ge(d) {
|
|
4645
4660
|
w(this, {
|
|
4646
|
-
id:
|
|
4661
|
+
id: Ii++,
|
|
4647
4662
|
create: le,
|
|
4648
4663
|
vm: d,
|
|
4649
|
-
manager:
|
|
4664
|
+
manager: bi(t.manager),
|
|
4650
4665
|
parsers: r,
|
|
4651
4666
|
providers: u,
|
|
4652
4667
|
modelFields: s,
|
|
@@ -4744,7 +4759,7 @@ function ar(t) {
|
|
|
4744
4759
|
let g = this.vm.setupState.top.props.t, b = this.vm.setupState.top.props.locale, $;
|
|
4745
4760
|
if (g && ($ = V(() => g(d))), $ == null && b && typeof b == "object" && ($ = M(b, d)), $ == null) {
|
|
4746
4761
|
const S = this.options.value.language || {}, j = this.getLocale();
|
|
4747
|
-
$ = M(S[j] || {}, d), $ == null && ($ = M(
|
|
4762
|
+
$ = M(S[j] || {}, d), $ == null && ($ = M(Di[j] || {}, d));
|
|
4748
4763
|
}
|
|
4749
4764
|
return $;
|
|
4750
4765
|
},
|
|
@@ -4929,12 +4944,12 @@ function ar(t) {
|
|
|
4929
4944
|
}
|
|
4930
4945
|
});
|
|
4931
4946
|
}
|
|
4932
|
-
if (mt(F), yr(F), Pe("$cookie",
|
|
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) => {
|
|
4933
4948
|
g.mixin({
|
|
4934
4949
|
props: ["formCreateInject"],
|
|
4935
4950
|
emits: ["fc.updateValue", "fc.el"]
|
|
4936
4951
|
});
|
|
4937
|
-
}), Ve(
|
|
4952
|
+
}), Ve(Si), t.inherit) {
|
|
4938
4953
|
const d = t.inherit;
|
|
4939
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);
|
|
4940
4955
|
}
|
|
@@ -4960,7 +4975,7 @@ const Pt = {
|
|
|
4960
4975
|
monthrange: "YYYY-MM",
|
|
4961
4976
|
datetimerange: "YYYY-MM-DD HH:mm:ss",
|
|
4962
4977
|
year: "YYYY"
|
|
4963
|
-
}, Bt = "datePicker",
|
|
4978
|
+
}, Bt = "datePicker", Pi = {
|
|
4964
4979
|
name: Bt,
|
|
4965
4980
|
maker: function() {
|
|
4966
4981
|
return ["year", "month", "date", "dates", "week", "datetime", "datetimeRange", "dateRange", "monthRange"].reduce((t, e) => (t[e] = T(Bt, { type: e.toLowerCase() }), t), {});
|
|
@@ -4969,7 +4984,7 @@ const Pt = {
|
|
|
4969
4984
|
const e = t.prop.props;
|
|
4970
4985
|
e.valueFormat || (e.valueFormat = Pt[e.type] || Pt.date);
|
|
4971
4986
|
}
|
|
4972
|
-
}, Qe = "hidden",
|
|
4987
|
+
}, Qe = "hidden", Bi = {
|
|
4973
4988
|
name: Qe,
|
|
4974
4989
|
maker: {
|
|
4975
4990
|
[Qe]: (t, e) => T(Qe)("", t, e)
|
|
@@ -4977,7 +4992,7 @@ const Pt = {
|
|
|
4977
4992
|
render() {
|
|
4978
4993
|
return [];
|
|
4979
4994
|
}
|
|
4980
|
-
}, Xe = "input",
|
|
4995
|
+
}, Xe = "input", Ti = {
|
|
4981
4996
|
name: Xe,
|
|
4982
4997
|
maker: function() {
|
|
4983
4998
|
const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = T(Xe, { type: r }), e), {});
|
|
@@ -4987,13 +5002,13 @@ const Pt = {
|
|
|
4987
5002
|
let { props: e } = t.prop;
|
|
4988
5003
|
e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
|
|
4989
5004
|
}
|
|
4990
|
-
},
|
|
4991
|
-
name:
|
|
5005
|
+
}, Li = "textarea", Mi = {
|
|
5006
|
+
name: Li,
|
|
4992
5007
|
mergeProp(t) {
|
|
4993
5008
|
let { props: e } = t.prop;
|
|
4994
5009
|
e.type = "textarea", e && e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
|
|
4995
5010
|
}
|
|
4996
|
-
}, Tt = "slider",
|
|
5011
|
+
}, Tt = "slider", Ni = {
|
|
4997
5012
|
name: Tt,
|
|
4998
5013
|
maker: {
|
|
4999
5014
|
sliderRange: T(Tt, { range: !0 })
|
|
@@ -5002,7 +5017,7 @@ const Pt = {
|
|
|
5002
5017
|
let r = Array.isArray(t), n = e.prop.props, s = n.min || 0, i;
|
|
5003
5018
|
return n.range === !0 ? i = r ? t : [s, parseFloat(t) || s] : i = r ? parseFloat(t[0]) || s : parseFloat(t), i;
|
|
5004
5019
|
}
|
|
5005
|
-
}, Ze = "timePicker",
|
|
5020
|
+
}, Ze = "timePicker", Ui = {
|
|
5006
5021
|
name: Ze,
|
|
5007
5022
|
maker: {
|
|
5008
5023
|
time: T(Ze, (t) => t.props.isRange = !1),
|
|
@@ -5012,7 +5027,7 @@ const Pt = {
|
|
|
5012
5027
|
const e = t.prop.props;
|
|
5013
5028
|
e.valueFormat || (e.valueFormat = "HH:mm:ss");
|
|
5014
5029
|
}
|
|
5015
|
-
},
|
|
5030
|
+
}, qi = {
|
|
5016
5031
|
name: "FcRow",
|
|
5017
5032
|
render(t, e) {
|
|
5018
5033
|
return e.vNode.col({ props: { span: 24 } }, {
|
|
@@ -5021,21 +5036,21 @@ const Pt = {
|
|
|
5021
5036
|
]
|
|
5022
5037
|
});
|
|
5023
5038
|
}
|
|
5024
|
-
},
|
|
5025
|
-
name:
|
|
5039
|
+
}, Hi = "select", zi = {
|
|
5040
|
+
name: Hi,
|
|
5026
5041
|
toFormValue(t, e) {
|
|
5027
|
-
return e.prop.props.multiple && !Array.isArray(t) ?
|
|
5042
|
+
return e.prop.props.multiple && !Array.isArray(t) ? H(t) : t;
|
|
5028
5043
|
}
|
|
5029
|
-
},
|
|
5030
|
-
Ii,
|
|
5044
|
+
}, xi = [
|
|
5031
5045
|
Pi,
|
|
5032
5046
|
Bi,
|
|
5033
|
-
|
|
5047
|
+
Ti,
|
|
5034
5048
|
Mi,
|
|
5035
5049
|
Ni,
|
|
5036
5050
|
Ui,
|
|
5037
|
-
|
|
5038
|
-
|
|
5051
|
+
qi,
|
|
5052
|
+
zi
|
|
5053
|
+
], E = "el", Gi = {
|
|
5039
5054
|
button: E + "-button",
|
|
5040
5055
|
icon: E + "-icon",
|
|
5041
5056
|
slider: E + "-slider",
|
|
@@ -5074,7 +5089,7 @@ const Pt = {
|
|
|
5074
5089
|
object: "fc-sub-form",
|
|
5075
5090
|
subForm: "fc-sub-form"
|
|
5076
5091
|
};
|
|
5077
|
-
function
|
|
5092
|
+
function Yi() {
|
|
5078
5093
|
return {
|
|
5079
5094
|
form: {
|
|
5080
5095
|
inline: !1,
|
|
@@ -5107,7 +5122,7 @@ function Gi() {
|
|
|
5107
5122
|
}
|
|
5108
5123
|
};
|
|
5109
5124
|
}
|
|
5110
|
-
function
|
|
5125
|
+
function Ki(t) {
|
|
5111
5126
|
return t.type === "tooltip";
|
|
5112
5127
|
}
|
|
5113
5128
|
function Lt(t, e) {
|
|
@@ -5116,14 +5131,14 @@ function Lt(t, e) {
|
|
|
5116
5131
|
function ie(t) {
|
|
5117
5132
|
return t === !1;
|
|
5118
5133
|
}
|
|
5119
|
-
function
|
|
5134
|
+
function Wi(t, e) {
|
|
5120
5135
|
D(t, e) && !m.Object(t[e]) && (t[e] = { show: !!t[e] });
|
|
5121
5136
|
}
|
|
5122
5137
|
function et(t) {
|
|
5123
5138
|
const e = _({}, t);
|
|
5124
5139
|
return delete e.children, e;
|
|
5125
5140
|
}
|
|
5126
|
-
const
|
|
5141
|
+
const Ji = {
|
|
5127
5142
|
validate() {
|
|
5128
5143
|
const t = this.form();
|
|
5129
5144
|
return t ? t.validate() : new Promise((e) => e());
|
|
@@ -5147,7 +5162,7 @@ const Wi = {
|
|
|
5147
5162
|
},
|
|
5148
5163
|
tidyOptions(t) {
|
|
5149
5164
|
return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
|
|
5150
|
-
|
|
5165
|
+
Wi(t, e);
|
|
5151
5166
|
}), t;
|
|
5152
5167
|
},
|
|
5153
5168
|
tidyRule({ prop: t }) {
|
|
@@ -5169,7 +5184,7 @@ const Wi = {
|
|
|
5169
5184
|
});
|
|
5170
5185
|
},
|
|
5171
5186
|
getDefaultOptions() {
|
|
5172
|
-
return
|
|
5187
|
+
return Yi();
|
|
5173
5188
|
},
|
|
5174
5189
|
update() {
|
|
5175
5190
|
const t = this.options.form;
|
|
@@ -5197,7 +5212,7 @@ const Wi = {
|
|
|
5197
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;
|
|
5198
5213
|
delete r.wrap.class, delete r.wrap.title;
|
|
5199
5214
|
const f = (m.Undef(r.wrap.show) ? !t.input : ie(r.wrap.show)) ? e : this.$r(oe([r.wrap, {
|
|
5200
|
-
props:
|
|
5215
|
+
props: U(_({
|
|
5201
5216
|
labelWidth: o === void 0 ? o : Ut(o),
|
|
5202
5217
|
label: i ? r.title.title : void 0
|
|
5203
5218
|
}, et(r.wrap || {})), {
|
|
@@ -5218,7 +5233,7 @@ const Wi = {
|
|
|
5218
5233
|
},
|
|
5219
5234
|
makeInfo(t, e, r) {
|
|
5220
5235
|
var f, c, h, p, y, C;
|
|
5221
|
-
const n = _({}, t.title), s = _({}, t.info), i =
|
|
5236
|
+
const n = _({}, t.title), s = _({}, t.info), i = Ki(s), o = this.options.form, a = this.getSlot("title"), l = [a ? a({
|
|
5222
5237
|
title: (c = (f = r.refRule) == null ? void 0 : f.__$title) == null ? void 0 : c.value,
|
|
5223
5238
|
rule: r.rule,
|
|
5224
5239
|
options: this.options
|
|
@@ -5324,29 +5339,29 @@ const Wi = {
|
|
|
5324
5339
|
}, [e]);
|
|
5325
5340
|
}
|
|
5326
5341
|
}, pe = {};
|
|
5327
|
-
Ji(pe);
|
|
5328
5342
|
Qi(pe);
|
|
5329
5343
|
Xi(pe);
|
|
5330
5344
|
Zi(pe);
|
|
5331
5345
|
es(pe);
|
|
5332
5346
|
ts(pe);
|
|
5333
|
-
|
|
5347
|
+
rs(pe);
|
|
5348
|
+
function Qi(t) {
|
|
5334
5349
|
["group", "tree", "switch", "upload", "autoComplete", "checkbox", "cascader", "colorPicker", "datePicker", "frame", "inputNumber", "inputTag", "inputOtp", "mention", "transfer", "treeSelect", "radio", "rate"].forEach((e) => {
|
|
5335
5350
|
t[e] = T(e);
|
|
5336
5351
|
}), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker, t.tag = t.inputTag;
|
|
5337
5352
|
}
|
|
5338
|
-
function
|
|
5353
|
+
function Xi(t) {
|
|
5339
5354
|
t.treeSelectMultiple = T("treeSelect", { multiple: !0 });
|
|
5340
5355
|
}
|
|
5341
|
-
function
|
|
5356
|
+
function Zi(t) {
|
|
5342
5357
|
const e = "select", r = "multiple";
|
|
5343
5358
|
t.selectMultiple = T(e, { [r]: !0 }), t.selectOne = T(e, { [r]: !1 });
|
|
5344
5359
|
}
|
|
5345
|
-
function
|
|
5360
|
+
function es(t) {
|
|
5346
5361
|
const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
|
|
5347
5362
|
Object.keys(r).reduce((n, s) => (n[s] = T(e, { type: r[s] }), n), t);
|
|
5348
5363
|
}
|
|
5349
|
-
function
|
|
5364
|
+
function ts(t) {
|
|
5350
5365
|
const e = "upload", r = {
|
|
5351
5366
|
image: ["image", 0],
|
|
5352
5367
|
file: ["file", 0],
|
|
@@ -5355,7 +5370,7 @@ function es(t) {
|
|
|
5355
5370
|
};
|
|
5356
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;
|
|
5357
5372
|
}
|
|
5358
|
-
function
|
|
5373
|
+
function rs(t) {
|
|
5359
5374
|
const e = {
|
|
5360
5375
|
frameInputs: ["input", 0],
|
|
5361
5376
|
frameFiles: ["file", 0],
|
|
@@ -5369,7 +5384,7 @@ function ts(t) {
|
|
|
5369
5384
|
function Mt(t, e) {
|
|
5370
5385
|
return m.Boolean(t) ? t = { show: t } : !m.Undef(t) && !m.Object(t) && (t = { show: e }), t;
|
|
5371
5386
|
}
|
|
5372
|
-
function
|
|
5387
|
+
function ns(t, e) {
|
|
5373
5388
|
return {
|
|
5374
5389
|
formEl() {
|
|
5375
5390
|
return e.$manager.form();
|
|
@@ -5399,7 +5414,7 @@ function rs(t, e) {
|
|
|
5399
5414
|
return;
|
|
5400
5415
|
}
|
|
5401
5416
|
const l = e.subForm[a.id], u = [e.$manager.validateField(a.id)];
|
|
5402
|
-
|
|
5417
|
+
H(l).filter((f) => !f.isScope).forEach((f) => {
|
|
5403
5418
|
u.push(f.validate());
|
|
5404
5419
|
}), Promise.all(u).then(() => {
|
|
5405
5420
|
s(null), n && n(null);
|
|
@@ -5484,7 +5499,7 @@ function rs(t, e) {
|
|
|
5484
5499
|
const lr = {
|
|
5485
5500
|
name: "required",
|
|
5486
5501
|
load(t, e, r) {
|
|
5487
|
-
const n =
|
|
5502
|
+
const n = is(t.getValue());
|
|
5488
5503
|
let s;
|
|
5489
5504
|
if (n.required === !1)
|
|
5490
5505
|
t.clearProp(), r.clearValidateState([e.field]);
|
|
@@ -5513,13 +5528,13 @@ const lr = {
|
|
|
5513
5528
|
lr.load(...t);
|
|
5514
5529
|
}
|
|
5515
5530
|
};
|
|
5516
|
-
function
|
|
5531
|
+
function is(t) {
|
|
5517
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 : {};
|
|
5518
5533
|
}
|
|
5519
|
-
function
|
|
5520
|
-
t.componentAlias(
|
|
5534
|
+
function ss(t) {
|
|
5535
|
+
t.componentAlias(Gi), Pn.forEach((e) => {
|
|
5521
5536
|
t.component(e.name, e);
|
|
5522
|
-
}), t.register(lr),
|
|
5537
|
+
}), t.register(lr), xi.forEach((e) => {
|
|
5523
5538
|
t.parser(e);
|
|
5524
5539
|
}), Object.keys(pe).forEach((e) => {
|
|
5525
5540
|
t.maker[e] = pe[e];
|
|
@@ -5527,13 +5542,13 @@ function is(t) {
|
|
|
5527
5542
|
r.use(window.ElementPlus);
|
|
5528
5543
|
});
|
|
5529
5544
|
}
|
|
5530
|
-
function
|
|
5545
|
+
function os() {
|
|
5531
5546
|
return ar({
|
|
5532
5547
|
ui: "element-ui",
|
|
5533
|
-
version: "3.3.
|
|
5534
|
-
manager:
|
|
5535
|
-
extendApi:
|
|
5536
|
-
install:
|
|
5548
|
+
version: "3.3.5",
|
|
5549
|
+
manager: Ji,
|
|
5550
|
+
extendApi: ns,
|
|
5551
|
+
install: ss,
|
|
5537
5552
|
attrs: {
|
|
5538
5553
|
normal: ["col", "wrap"],
|
|
5539
5554
|
array: ["className"],
|
|
@@ -5541,10 +5556,10 @@ function ss() {
|
|
|
5541
5556
|
}
|
|
5542
5557
|
});
|
|
5543
5558
|
}
|
|
5544
|
-
const ur =
|
|
5559
|
+
const ur = os();
|
|
5545
5560
|
typeof window != "undefined" && (window.formCreate = ur);
|
|
5546
|
-
const
|
|
5561
|
+
const us = ur.maker;
|
|
5547
5562
|
export {
|
|
5548
5563
|
ur as default,
|
|
5549
|
-
|
|
5564
|
+
us as maker
|
|
5550
5565
|
};
|