@form-create/component-elm-group 3.2.34 → 3.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,272 +1,94 @@
1
1
  /*!
2
- * @form-create/component-elm-group v3.2.34
3
- * (c) 2018-2025 xaboy
4
- * Github https://github.com/xaboy/form-create with group
2
+ * FormCreate 低代码表单渲染器
3
+ * @form-create/component-elm-group v3.3.0
4
+ * (c) 2018-2026 xaboy
5
+ * Github https://github.com/xaboy/form-create
6
+ * Site https://form-create.com/
5
7
  * Released under the MIT License.
6
8
  */
7
- import { defineComponent, markRaw, nextTick, createVNode, mergeProps } from 'vue';
8
-
9
- function ownKeys(object, enumerableOnly) {
10
- var keys = Object.keys(object);
11
-
12
- if (Object.getOwnPropertySymbols) {
13
- var symbols = Object.getOwnPropertySymbols(object);
14
-
15
- if (enumerableOnly) {
16
- symbols = symbols.filter(function (sym) {
17
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
18
- });
19
- }
20
-
21
- keys.push.apply(keys, symbols);
22
- }
23
-
24
- return keys;
25
- }
26
-
27
- function _objectSpread2(target) {
28
- for (var i = 1; i < arguments.length; i++) {
29
- var source = arguments[i] != null ? arguments[i] : {};
30
-
31
- if (i % 2) {
32
- ownKeys(Object(source), true).forEach(function (key) {
33
- _defineProperty(target, key, source[key]);
34
- });
35
- } else if (Object.getOwnPropertyDescriptors) {
36
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
37
- } else {
38
- ownKeys(Object(source)).forEach(function (key) {
39
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
40
- });
41
- }
42
- }
43
-
44
- return target;
45
- }
46
-
47
- function _typeof(obj) {
48
- "@babel/helpers - typeof";
49
-
50
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
51
- _typeof = function (obj) {
52
- return typeof obj;
53
- };
54
- } else {
55
- _typeof = function (obj) {
56
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
57
- };
58
- }
59
-
60
- return _typeof(obj);
61
- }
62
-
63
- function _defineProperty(obj, key, value) {
64
- if (key in obj) {
65
- Object.defineProperty(obj, key, {
66
- value: value,
67
- enumerable: true,
68
- configurable: true,
69
- writable: true
70
- });
71
- } else {
72
- obj[key] = value;
73
- }
74
-
75
- return obj;
76
- }
77
-
78
- function _toConsumableArray(arr) {
79
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
80
- }
81
-
82
- function _arrayWithoutHoles(arr) {
83
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
84
- }
85
-
86
- function _iterableToArray(iter) {
87
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
88
- }
89
-
90
- function _unsupportedIterableToArray(o, minLen) {
91
- if (!o) return;
92
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
93
- var n = Object.prototype.toString.call(o).slice(8, -1);
94
- if (n === "Object" && o.constructor) n = o.constructor.name;
95
- if (n === "Map" || n === "Set") return Array.from(o);
96
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
97
- }
98
-
99
- function _arrayLikeToArray(arr, len) {
100
- if (len == null || len > arr.length) len = arr.length;
101
-
102
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
103
-
104
- return arr2;
105
- }
106
-
107
- function _nonIterableSpread() {
108
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
109
- }
110
-
111
- var is = {
112
- type: function type(arg, _type) {
113
- return Object.prototype.toString.call(arg) === '[object ' + _type + ']';
9
+ (function(){"use strict";try{if(typeof document!="undefined"){var r=document.createElement("style");r.appendChild(document.createTextNode('._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}}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
10
+ var O = Object.defineProperty, v = Object.defineProperties;
11
+ var A = Object.getOwnPropertyDescriptors;
12
+ var R = Object.getOwnPropertySymbols;
13
+ var I = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
14
+ var $ = (t, e, s) => e in t ? O(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, h = (t, e) => {
15
+ for (var s in e || (e = {}))
16
+ I.call(e, s) && $(t, s, e[s]);
17
+ if (R)
18
+ for (var s of R(e))
19
+ B.call(e, s) && $(t, s, e[s]);
20
+ return t;
21
+ }, m = (t, e) => v(t, A(e));
22
+ import { defineComponent as C, createVNode as o, mergeProps as j, nextTick as g, markRaw as D } from "vue";
23
+ const c = {
24
+ type(t, e) {
25
+ return Object.prototype.toString.call(t) === "[object " + e + "]";
114
26
  },
115
- Undef: function Undef(v) {
116
- return v === undefined || v === null;
27
+ Undef(t) {
28
+ return t == null;
117
29
  },
118
- Element: function Element(arg) {
119
- return _typeof(arg) === 'object' && arg !== null && arg.nodeType === 1 && !is.Object(arg);
30
+ Element(t) {
31
+ return typeof t == "object" && t !== null && t.nodeType === 1 && !c.Object(t);
120
32
  },
121
- trueArray: function trueArray(data) {
122
- return Array.isArray(data) && data.length > 0;
33
+ trueArray(t) {
34
+ return Array.isArray(t) && t.length > 0;
123
35
  },
124
- Function: function Function(v) {
125
- var type = this.getType(v);
126
- return type === 'Function' || type === 'AsyncFunction';
36
+ Function(t) {
37
+ const e = this.getType(t);
38
+ return e === "Function" || e === "AsyncFunction";
127
39
  },
128
- getType: function getType(v) {
129
- var str = Object.prototype.toString.call(v);
130
- return /^\[object (.*)\]$/.exec(str)[1];
40
+ getType(t) {
41
+ const e = Object.prototype.toString.call(t);
42
+ return /^\[object (.*)\]$/.exec(e)[1];
131
43
  },
132
- empty: function empty(value) {
133
- if (value === undefined || value === null) {
134
- return true;
135
- }
136
-
137
- if (Array.isArray(value) && Array.isArray(value) && !value.length) {
138
- return true;
139
- }
140
-
141
- return typeof value === 'string' && !value;
44
+ empty(t) {
45
+ return t == null || Array.isArray(t) && Array.isArray(t) && !t.length ? !0 : typeof t == "string" && !t;
142
46
  }
143
47
  };
144
- ['Date', 'Object', 'String', 'Boolean', 'Array', 'Number'].forEach(function (t) {
145
- is[t] = function (arg) {
146
- return is.type(arg, t);
48
+ ["Date", "Object", "String", "Boolean", "Array", "Number"].forEach((t) => {
49
+ c[t] = function(e) {
50
+ return c.type(e, t);
147
51
  };
148
52
  });
149
- function hasProperty(rule, k) {
150
- return {}.hasOwnProperty.call(rule, k);
53
+ function S(t, e) {
54
+ return {}.hasOwnProperty.call(t, e);
151
55
  }
152
-
153
- function $set(target, field, value) {
154
- target[field] = value;
56
+ function d(t, e, s) {
57
+ t[e] = s;
155
58
  }
156
-
157
- function deepExtend(origin) {
158
- var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
159
- var mode = arguments.length > 2 ? arguments[2] : undefined;
160
- var isArr = false;
161
-
162
- for (var key in target) {
163
- if (Object.prototype.hasOwnProperty.call(target, key)) {
164
- var clone = target[key];
165
-
166
- if ((isArr = Array.isArray(clone)) || is.Object(clone)) {
167
- var nst = origin[key] === undefined;
168
-
169
- if (isArr) {
170
- isArr = false;
171
- nst && $set(origin, key, []);
172
- } else if (clone._clone && mode !== undefined) {
173
- if (mode) {
174
- clone = clone.getRule();
175
- nst && $set(origin, key, {});
176
- } else {
177
- $set(origin, key, clone._clone());
178
- continue;
179
- }
180
- } else {
181
- nst && $set(origin, key, {});
182
- }
183
-
184
- origin[key] = deepExtend(origin[key], clone, mode);
185
- } else {
186
- $set(origin, key, clone);
187
-
188
- if (!is.Undef(clone)) {
189
- if (!is.Undef(clone.__json)) {
190
- origin[key].__json = clone.__json;
191
- }
192
-
193
- if (!is.Undef(clone.__origin)) {
194
- origin[key].__origin = clone.__origin;
195
- }
196
- }
197
- }
59
+ function _(t, e = {}, s) {
60
+ let i = !1;
61
+ for (let l in e)
62
+ if (Object.prototype.hasOwnProperty.call(e, l)) {
63
+ let r = e[l];
64
+ if ((i = Array.isArray(r)) || c.Object(r)) {
65
+ let n = t[l] === void 0;
66
+ i ? (i = !1, n && d(t, l, [])) : r._clone && s !== void 0 || n && d(t, l, {}), t[l] = _(t[l], r, s);
67
+ } else
68
+ d(t, l, r), c.Undef(r) || (c.Undef(r.__json) || (t[l].__json = r.__json), c.Undef(r.__origin) || (t[l].__origin = r.__origin));
198
69
  }
199
- }
200
-
201
- return mode !== undefined && Array.isArray(origin) ? origin.filter(function (v) {
202
- return !v || !v.__ctrl;
203
- }) : origin;
70
+ return s !== void 0 && Array.isArray(t) ? t.filter((l) => !l || !l.__ctrl) : t;
204
71
  }
205
- function deepCopy(value) {
206
- return deepExtend({}, {
207
- value: value
208
- }).value;
72
+ function y(t) {
73
+ return _({}, { value: t }).value;
209
74
  }
210
-
211
- var _extends = Object.assign || function (a) {
212
- for (var b, c = 1; c < arguments.length; c++) {
213
- for (var d in b = arguments[c], b) {
214
- Object.prototype.hasOwnProperty.call(b, d) && $set(a, d, b[d]);
215
- }
216
- }
217
-
218
- return a;
75
+ const w = Object.assign || function(t) {
76
+ for (let e, s = 1; s < arguments.length; s++)
77
+ for (let i in e = arguments[s], e)
78
+ Object.prototype.hasOwnProperty.call(e, i) && d(t, i, e[i]);
79
+ return t;
219
80
  };
220
-
221
- function extend() {
222
- return _extends.apply(this, arguments);
223
- }
224
-
225
- function styleInject(css, ref) {
226
- if ( ref === void 0 ) ref = {};
227
- var insertAt = ref.insertAt;
228
-
229
- if (!css || typeof document === 'undefined') { return; }
230
-
231
- var head = document.head || document.getElementsByTagName('head')[0];
232
- var style = document.createElement('style');
233
- style.type = 'text/css';
234
-
235
- if (insertAt === 'top') {
236
- if (head.firstChild) {
237
- head.insertBefore(style, head.firstChild);
238
- } else {
239
- head.appendChild(style);
240
- }
241
- } else {
242
- head.appendChild(style);
243
- }
244
-
245
- if (style.styleSheet) {
246
- style.styleSheet.cssText = css;
247
- } else {
248
- style.appendChild(document.createTextNode(css));
249
- }
81
+ function U() {
82
+ return w.apply(this, arguments);
250
83
  }
251
-
252
- var css_248z = "._fc-group{display:flex;flex-direction:column;justify-content:center;min-height:38px;width:100%}._fc-group-disabled ._fc-group-add,._fc-group-disabled ._fc-group-btn{cursor:not-allowed}._fc-group-handle{background-color:#fff;border:1px dashed #d9d9d9;border-radius:15px;bottom:-15px;display:flex;flex-direction:row;padding:3px 8px;position:absolute;right:30px}._fc-group-btn{cursor:pointer}._fc-group-idx{align-items:center;background:#eee;border-radius:15px;bottom:-15px;display:flex;font-weight:700;height:30px;justify-content:center;left:10px;position:absolute;width:30px}._fc-group-handle ._fc-group-btn+._fc-group-btn{margin-left:7px}._fc-group-container{border:1px dashed #d9d9d9;border-radius:5px;display:flex;flex-direction:column;margin:5px 5px 25px;padding:20px 20px 25px;position:relative}._fc-group-arrow{height:20px;position:relative;width:20px}._fc-group-arrow:before{border-left:2px solid #999;border-top:2px solid #999;content:\"\";height:9px;left:5px;position:absolute;top:8px;transform:rotate(45deg);width:9px}._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group-plus-minus{cursor:pointer;height:20px;position:relative;width:20px}._fc-group-plus-minus:after,._fc-group-plus-minus:before{background-color:#409eff;content:\"\";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:60%}._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{border:1px solid rgba(64,158,255,.5);border-radius:15px;cursor:pointer;height:25px;width:25px}._fc-group-add._fc-group-plus-minus:after,._fc-group-add._fc-group-plus-minus:before{width:50%}._fc-group._fc-group-card{display:flex;flex-direction:column;gap:16px;width:100%}._fc-group._fc-group-card._fc-group-disabled ._fc-group-add,._fc-group._fc-group-card._fc-group-disabled ._fc-group-btn{cursor:not-allowed;opacity:.5}._fc-group._fc-group-card ._fc-group-container{background:#fff;border:1px solid #f0f0f0;border-radius:6px;display:flex;flex-direction:column;margin:0;overflow:hidden;padding:0;position:relative}._fc-group._fc-group-card ._fc-group-header{align-items:center;background:#fafafa;border-bottom:1px solid #f0f0f0;display:flex;justify-content:space-between;padding:16px 20px 12px}._fc-group._fc-group-card ._fc-group-idx{align-items:center;background:#f0f0f0;border:1px solid #e0e0e0;border-radius:6px;color:#666;display:flex;flex-shrink:0;font-size:12px;font-weight:500;height:24px;justify-content:center;margin-right:12px;position:static;width:24px}._fc-group._fc-group-card ._fc-group-title{color:rgba(0,0,0,.85);flex:1;font-size:14px;font-weight:500;line-height:1.5715}._fc-group._fc-group-card ._fc-group-handle{align-items:center;background-color:transparent;border:none;border-radius:0;bottom:auto;display:flex;flex-direction:row;flex-shrink:0;gap:4px;margin-left:12px;padding:0;position:static;right:auto}._fc-group._fc-group-card ._fc-group-btn{align-items:center;background:#fff;border:1px solid #d9d9d9;border-radius:4px;color:rgba(0,0,0,.45);cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px}._fc-group._fc-group-card ._fc-group-btn:hover{background:#f0f8ff;border-color:#1890ff;color:#1890ff}._fc-group._fc-group-card ._fc-group-btn:active{border-color:#096dd9;color:#096dd9}._fc-group._fc-group-card ._fc-group-arrow{position:relative}._fc-group._fc-group-card ._fc-group-arrow:before{border-left:1px solid;border-top:1px solid;content:\"\";height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) rotate(45deg);width:5px}._fc-group._fc-group-card ._fc-group-arrow._fc-group-down{transform:rotate(180deg)}._fc-group._fc-group-card ._fc-group-sort{align-items:center;display:flex;flex-direction:column;height:24px;justify-content:center;position:relative}._fc-group._fc-group-card ._fc-group-sort:after,._fc-group._fc-group-card ._fc-group-sort:before{border-left:1px solid;border-top:1px solid;content:\"\";height:4px;left:50%;position:absolute;transform:translateX(-50%);width:4px}._fc-group._fc-group-card ._fc-group-sort:before{top:6px;transform:translateX(-50%) rotate(45deg)}._fc-group._fc-group-card ._fc-group-sort:after{bottom:6px;transform:translateX(-50%) rotate(225deg)}._fc-group._fc-group-card ._fc-group-sort-down,._fc-group._fc-group-card ._fc-group-sort-up{cursor:pointer;height:12px;left:0;position:absolute;right:0;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-down:hover,._fc-group._fc-group-card ._fc-group-sort-up:hover{background:rgba(24,144,255,.1)}._fc-group._fc-group-card ._fc-group-plus-minus{background:#409eff;border-color:#409eff;color:#fff;height:24px;position:relative;width: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:after,._fc-group._fc-group-card ._fc-group-plus-minus:before{background-color:currentColor;content:\"\";height:1px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}._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{align-items:center;background:#fff;border:1px solid #d9d9d9;border-radius:4px;color:rgba(0,0,0,.45);cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px}._fc-group._fc-group-card ._fc-group-add:hover{background:#f0f8ff;border-color:#409eff;color:#409eff}._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus{background:#409eff;border-color:#409eff;color:#fff;height:24px;width:24px}._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:after,._fc-group._fc-group-card ._fc-group-add._fc-group-plus-minus:before{background-color:currentColor;content:\"\";height:1px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}._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{color:rgba(0,0,0,.45);font-size:14px;padding:40px 20px;text-align:center}@media (max-width:768px){._fc-group._fc-group-card ._fc-group-container{border-left:none;border-radius:0;border-right:none;margin:0 -8px}._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{height:22px;width:22px}}";
253
- styleInject(css_248z);
254
-
255
- function isPromise(value) {
256
- return value && _typeof(value) === 'object' && typeof value.then === 'function';
84
+ function F(t) {
85
+ return t && typeof t == "object" && typeof t.then == "function";
257
86
  }
258
-
259
- function toPromise(value) {
260
- if (isPromise(value)) {
261
- return value;
262
- }
263
-
264
- return Promise.resolve(value);
87
+ function k(t) {
88
+ return F(t) ? t : Promise.resolve(t);
265
89
  }
266
-
267
- var NAME = 'fcGroup';
268
- var Group = defineComponent({
269
- name: NAME,
90
+ const N = "fcGroup", E = /* @__PURE__ */ C({
91
+ name: N,
270
92
  props: {
271
93
  field: String,
272
94
  rule: Array,
@@ -274,498 +96,324 @@ var Group = defineComponent({
274
96
  options: Object,
275
97
  button: {
276
98
  type: Boolean,
277
- "default": true
99
+ default: !0
278
100
  },
279
101
  max: {
280
102
  type: Number,
281
- "default": 0
103
+ default: 0
282
104
  },
283
105
  min: {
284
106
  type: Number,
285
- "default": 0
107
+ default: 0
286
108
  },
287
109
  modelValue: {
288
110
  type: Array,
289
- "default": function _default() {
290
- return [];
291
- }
111
+ default: () => []
292
112
  },
293
113
  defaultValue: Object,
294
114
  sortBtn: {
295
115
  type: Boolean,
296
- "default": true
116
+ default: !0
297
117
  },
298
118
  disabled: {
299
119
  type: Boolean,
300
- "default": false
120
+ default: !1
301
121
  },
302
122
  syncDisabled: {
303
123
  type: Boolean,
304
- "default": true
124
+ default: !0
305
125
  },
306
126
  title: {
307
127
  type: [String, Function],
308
- "default": null
128
+ default: null
309
129
  },
310
130
  type: {
311
131
  type: String,
312
- "default": 'default'
132
+ default: "default"
313
133
  },
314
134
  onBeforeRemove: {
315
135
  type: Function,
316
- "default": function _default() {}
136
+ default: () => {
137
+ }
317
138
  },
318
139
  onBeforeAdd: {
319
140
  type: Function,
320
- "default": function _default() {}
141
+ default: () => {
142
+ }
321
143
  },
322
144
  formCreateInject: Object,
323
145
  parse: Function
324
146
  },
325
- data: function data() {
147
+ data() {
326
148
  return {
327
149
  len: 0,
328
150
  cacheRule: {},
329
151
  cacheValue: {},
330
152
  sort: [],
331
- form: markRaw(this.formCreateInject.form.$form())
153
+ form: D(this.formCreateInject.form.$form())
332
154
  };
333
155
  },
334
- emits: ['update:modelValue', 'change', 'itemMounted', 'remove', 'add'],
156
+ emits: ["update:modelValue", "change", "itemMounted", "remove", "add"],
335
157
  watch: {
336
158
  rule: {
337
- handler: function handler(n, o) {
338
- var _this = this;
339
-
340
- Object.keys(this.cacheRule).forEach(function (v) {
341
- var item = _this.cacheRule[v];
342
-
343
- if (item.$f) {
344
- var val = item.$f.formData();
345
-
346
- if (n === o) {
347
- item.$f.deferSyncValue(function () {
348
- deepExtend(item.rule, n);
349
- item.$f.setValue(val);
350
- }, true);
351
- } else {
352
- var _val = item.$f.formData();
353
-
354
- item.$f.once('reloading', function () {
355
- item.$f.setValue(_val);
356
- });
357
- item.rule = deepCopy(n);
159
+ handler(t, e) {
160
+ Object.keys(this.cacheRule).forEach((s) => {
161
+ const i = this.cacheRule[s];
162
+ if (i.$f) {
163
+ const l = i.$f.formData();
164
+ if (t === e)
165
+ i.$f.deferSyncValue(() => {
166
+ _(i.rule, t), i.$f.setValue(l);
167
+ }, !0);
168
+ else {
169
+ const r = i.$f.formData();
170
+ i.$f.once("reloading", () => {
171
+ i.$f.setValue(r);
172
+ }), i.rule = y(t);
358
173
  }
359
174
  }
360
175
  });
361
176
  },
362
- deep: true
177
+ deep: !0
363
178
  },
364
- expand: function expand(n) {
365
- var d = n - this.modelValue.length;
366
-
367
- if (d > 0) {
368
- this.expandRule(d);
369
- }
179
+ expand(t) {
180
+ let e = t - this.modelValue.length;
181
+ e > 0 && this.expandRule(e);
370
182
  },
371
183
  modelValue: {
372
- handler: function handler(n) {
373
- var _this2 = this;
374
-
375
- n = n || [];
376
- var keys = this.sort,
377
- total = keys.length,
378
- len = total - n.length;
379
-
380
- if (len < 0) {
381
- for (var i = len; i < 0; i++) {
382
- this.addRule(n.length + i, true);
383
- }
384
-
385
- for (var _i = 0; _i < total; _i++) {
386
- this.setValue(keys[_i], n[_i]);
387
- }
184
+ handler(t) {
185
+ t = t || [];
186
+ let e = this.sort, s = e.length, i = s - t.length;
187
+ if (i < 0) {
188
+ for (let l = i; l < 0; l++)
189
+ this.addRule(t.length + l, !0);
190
+ for (let l = 0; l < s; l++)
191
+ this.setValue(e[l], t[l]);
388
192
  } else {
389
- if (len > 0) {
390
- for (var _i2 = 0; _i2 < len; _i2++) {
391
- this.removeRule(keys[total - _i2 - 1]);
392
- }
393
- }
394
-
395
- n.forEach(function (val, i) {
396
- _this2.setValue(keys[i], n[i]);
193
+ if (i > 0)
194
+ for (let l = 0; l < i; l++)
195
+ this.removeRule(e[s - l - 1]);
196
+ t.forEach((l, r) => {
197
+ this.setValue(e[r], t[r]);
397
198
  });
398
199
  }
399
200
  },
400
- deep: true
201
+ deep: !0
401
202
  }
402
203
  },
403
204
  methods: {
404
- _value: function _value(v) {
405
- return v && hasProperty(v, this.field) ? v[this.field] : v;
205
+ _value(t) {
206
+ return t && S(t, this.field) ? t[this.field] : t;
406
207
  },
407
- cache: function cache(k, val) {
408
- this.cacheValue[k] = JSON.stringify(val);
208
+ cache(t, e) {
209
+ this.cacheValue[t] = JSON.stringify(e);
409
210
  },
410
- input: function input(value) {
411
- this.$emit('update:modelValue', value);
412
- this.$emit('change', value);
211
+ input(t) {
212
+ this.$emit("update:modelValue", t), this.$emit("change", t);
413
213
  },
414
- formData: function formData(key, _formData) {
415
- var _this3 = this;
416
-
417
- var cacheRule = this.cacheRule;
418
- var keys = this.sort;
419
-
420
- if (keys.filter(function (k) {
421
- return cacheRule[k] && cacheRule[k].$f;
422
- }).length !== keys.length) {
214
+ formData(t, e) {
215
+ const s = this.cacheRule, i = this.sort;
216
+ if (i.filter((r) => s[r] && s[r].$f).length !== i.length)
423
217
  return;
424
- }
425
-
426
- var value = keys.map(function (k) {
427
- var data = key === k ? _formData : _objectSpread2({}, _this3.cacheRule[k].$f.form);
428
- var value = _this3.field ? data[_this3.field] || null : data;
429
-
430
- _this3.cache(k, value);
431
-
432
- return value;
218
+ const l = i.map((r) => {
219
+ const n = t === r ? e : h({}, this.cacheRule[r].$f.form), u = this.field ? c.Undef(n[this.field]) ? null : n[this.field] : n;
220
+ return this.cache(r, u), u;
433
221
  });
434
- this.input(value);
222
+ this.input(l);
435
223
  },
436
- setValue: function setValue(key, value) {
437
- var field = this.field;
438
-
439
- if (field) {
440
- value = _defineProperty({}, field, this._value(value));
441
- }
442
-
443
- if (this.cacheValue[key] === JSON.stringify(field ? value[field] : value)) {
444
- return;
445
- }
446
-
447
- this.cacheRule[key].$f && this.cacheRule[key].$f.coverValue(value);
448
- this.cache(key, value);
224
+ setValue(t, e) {
225
+ const s = this.field;
226
+ s && (e = {
227
+ [s]: this._value(e)
228
+ }), this.cacheValue[t] !== JSON.stringify(s ? e[s] : e) && (this.cacheRule[t].$f && this.cacheRule[t].$f.coverValue(e), this.cache(t, e));
449
229
  },
450
- addRule: function addRule(i, emit) {
451
- var _this4 = this;
452
-
453
- var rule = this.formCreateInject.form.copyRules(this.rule || []);
454
- var options = this.options ? _objectSpread2({}, this.options) : {
455
- submitBtn: false,
456
- resetBtn: false
230
+ addRule(t, e) {
231
+ const s = this.formCreateInject.form.copyRules(this.rule || []), i = this.options ? h({}, this.options) : {
232
+ submitBtn: !1,
233
+ resetBtn: !1
457
234
  };
458
-
459
235
  if (this.defaultValue) {
460
- if (!options.formData) options.formData = {};
461
- var defVal = deepCopy(this.defaultValue);
462
- extend(options.formData, this.field ? _defineProperty({}, this.field, defVal) : defVal);
236
+ i.formData || (i.formData = {});
237
+ const l = y(this.defaultValue);
238
+ U(i.formData, this.field ? {
239
+ [this.field]: l
240
+ } : l);
463
241
  }
464
-
465
242
  this.parse && this.parse({
466
- rule: rule,
467
- options: options,
243
+ rule: s,
244
+ options: i,
468
245
  index: this.sort.length
469
- });
470
- this.cacheRule[++this.len] = {
471
- rule: rule,
472
- options: options
473
- };
474
- this.sort = Object.keys(this.cacheRule);
475
-
476
- if (emit) {
477
- nextTick(function () {
478
- return _this4.$emit('add', rule, Object.keys(_this4.cacheRule).length - 1);
479
- });
480
- }
246
+ }), this.cacheRule[++this.len] = {
247
+ rule: s,
248
+ options: i
249
+ }, this.sort = Object.keys(this.cacheRule), e && g(() => this.$emit("add", s, Object.keys(this.cacheRule).length - 1));
481
250
  },
482
- add$f: function add$f(i, key, $f) {
483
- var _this5 = this;
484
-
485
- this.cacheRule[key].$f = $f;
486
- nextTick(function () {
487
- _this5.$emit('itemMounted', $f, Object.keys(_this5.cacheRule).indexOf(key));
251
+ add$f(t, e, s) {
252
+ this.cacheRule[e].$f = s, g(() => {
253
+ this.$emit("itemMounted", s, Object.keys(this.cacheRule).indexOf(e));
488
254
  });
489
255
  },
490
- removeRule: function removeRule(key, emit) {
491
- var _this6 = this;
492
-
493
- var index = Object.keys(this.cacheRule).indexOf(key);
494
- delete this.cacheRule[key];
495
- delete this.cacheValue[key];
496
- this.sort = Object.keys(this.cacheRule);
497
-
498
- if (emit) {
499
- nextTick(function () {
500
- return _this6.$emit('remove', index);
501
- });
502
- }
256
+ removeRule(t, e) {
257
+ const s = Object.keys(this.cacheRule).indexOf(t);
258
+ delete this.cacheRule[t], delete this.cacheValue[t], this.sort = Object.keys(this.cacheRule), e && g(() => this.$emit("remove", s));
503
259
  },
504
- add: function add(i) {
505
- if (this.disabled || false === this.onBeforeAdd(this.modelValue)) {
260
+ add(t) {
261
+ if (this.disabled || this.onBeforeAdd(this.modelValue) === !1)
506
262
  return;
507
- }
508
-
509
- var value = _toConsumableArray(this.modelValue);
510
-
511
- value.push(this.defaultValue ? deepCopy(this.defaultValue) : this.field ? null : {});
512
- this.input(value);
263
+ const e = [...this.modelValue];
264
+ e.push(this.defaultValue ? y(this.defaultValue) : this.field ? null : {}), this.input(e);
513
265
  },
514
- del: function del(index, key) {
515
- var _this7 = this;
516
-
517
- if (this.disabled) {
266
+ del(t, e) {
267
+ if (this.disabled)
518
268
  return;
519
- }
520
-
521
- var del = function del() {
522
- _this7.removeRule(key, true);
523
-
524
- var value = _toConsumableArray(_this7.modelValue);
525
-
526
- value.splice(index, 1);
527
-
528
- _this7.input(value);
269
+ const s = () => {
270
+ this.removeRule(e, !0);
271
+ const i = [...this.modelValue];
272
+ i.splice(t, 1), this.input(i);
529
273
  };
530
-
531
- toPromise(this.onBeforeRemove(this.modelValue, index)).then(function (res) {
532
- if (false !== res) {
533
- del();
534
- }
274
+ k(this.onBeforeRemove(this.modelValue, t)).then((i) => {
275
+ i !== !1 && s();
535
276
  });
536
277
  },
537
- addIcon: function addIcon(key) {
538
- return createVNode("div", {
539
- "class": "_fc-group-btn _fc-group-plus-minus",
540
- "onClick": this.add
278
+ addIcon(t) {
279
+ return o("div", {
280
+ class: "_fc-group-btn _fc-group-plus-minus",
281
+ onClick: this.add
541
282
  }, null);
542
283
  },
543
- delIcon: function delIcon(index, key) {
544
- var _this8 = this;
545
-
546
- return createVNode("div", {
547
- "class": "_fc-group-btn _fc-group-plus-minus _fc-group-minus",
548
- "onClick": function onClick() {
549
- return _this8.del(index, key);
550
- }
284
+ delIcon(t, e) {
285
+ return o("div", {
286
+ class: "_fc-group-btn _fc-group-plus-minus _fc-group-minus",
287
+ onClick: () => this.del(t, e)
551
288
  }, null);
552
289
  },
553
- sortUpIcon: function sortUpIcon(index) {
554
- var _this9 = this;
555
-
556
- return createVNode("div", {
557
- "class": "_fc-group-btn _fc-group-arrow _fc-group-up",
558
- "onClick": function onClick() {
559
- return _this9.changeSort(index, -1);
560
- }
290
+ sortUpIcon(t) {
291
+ return o("div", {
292
+ class: "_fc-group-btn _fc-group-arrow _fc-group-up",
293
+ onClick: () => this.changeSort(t, -1)
561
294
  }, null);
562
295
  },
563
- sortDownIcon: function sortDownIcon(index) {
564
- var _this10 = this;
565
-
566
- return createVNode("div", {
567
- "class": "_fc-group-btn _fc-group-arrow _fc-group-down",
568
- "onClick": function onClick() {
569
- return _this10.changeSort(index, 1);
570
- }
296
+ sortDownIcon(t) {
297
+ return o("div", {
298
+ class: "_fc-group-btn _fc-group-arrow _fc-group-down",
299
+ onClick: () => this.changeSort(t, 1)
571
300
  }, null);
572
301
  },
573
- changeSort: function changeSort(index, sort) {
574
- var _this11 = this;
575
-
576
- var a = this.sort[index];
577
- this.sort[index] = this.sort[index + sort];
578
- this.sort[index + sort] = a;
579
- this.formCreateInject.subForm(this.sort.map(function (k) {
580
- return _this11.cacheRule[k].$f;
581
- }));
582
- this.formData(0);
302
+ changeSort(t, e) {
303
+ const s = this.sort[t];
304
+ this.sort[t] = this.sort[t + e], this.sort[t + e] = s, this.formCreateInject.subForm(this.sort.map((i) => this.cacheRule[i].$f)), this.formData(0);
583
305
  },
584
- sortIcon: function sortIcon(index, total) {
585
- var _this12 = this;
586
-
587
- var canMoveUp = index > 0;
588
- var canMoveDown = index < total - 1;
589
-
590
- if (!canMoveUp && !canMoveDown) {
591
- return null;
592
- }
593
-
594
- if (canMoveUp && canMoveDown) {
595
- // 显示合并的上下箭头按钮
596
- return createVNode("div", {
597
- "class": "_fc-group-btn _fc-group-sort"
598
- }, [createVNode("div", {
599
- "class": "_fc-group-sort-up",
600
- "onClick": function onClick() {
601
- return _this12.changeSort(index, -1);
602
- }
603
- }, null), createVNode("div", {
604
- "class": "_fc-group-sort-down",
605
- "onClick": function onClick() {
606
- return _this12.changeSort(index, 1);
607
- }
608
- }, null)]);
609
- }
610
-
611
- if (canMoveUp) {
612
- return this.sortUpIcon(index);
613
- }
614
-
615
- if (canMoveDown) {
616
- return this.sortDownIcon(index);
617
- }
306
+ sortIcon(t, e) {
307
+ const s = t > 0, i = t < e - 1, l = [];
308
+ return !s && !i ? l : this.type === "card" && s && i ? (l.push(o("div", {
309
+ class: "_fc-group-btn _fc-group-sort"
310
+ }, [o("div", {
311
+ class: " _fc-group-sort-up",
312
+ onClick: () => this.changeSort(t, -1)
313
+ }, null), o("div", {
314
+ class: " _fc-group-sort-down",
315
+ onClick: () => this.changeSort(t, 1)
316
+ }, null)])), l) : (s && l.push(this.sortUpIcon(t)), i && l.push(this.sortDownIcon(t)), l);
618
317
  },
619
- makeIcon: function makeIcon(total, index, key) {
620
- var _this13 = this;
621
-
622
- if (this.$slots.button) {
318
+ makeIcon(t, e, s) {
319
+ if (this.$slots.button)
623
320
  return this.$slots.button({
624
- total: total,
625
- index: index,
321
+ total: t,
322
+ index: e,
626
323
  vm: this,
627
- key: key,
628
- del: function del() {
629
- return _this13.del(index, key);
630
- },
324
+ key: s,
325
+ del: () => this.del(e, s),
631
326
  add: this.add
632
327
  });
328
+ const i = [];
329
+ if ((!this.max || t < this.max) && t === e + 1 && i.push(this.addIcon(s)), t > this.min && i.push(this.delIcon(e, s)), this.sortBtn) {
330
+ const l = this.sortIcon(e, t);
331
+ l && i.push(...l);
633
332
  }
634
-
635
- var btn = [];
636
-
637
- if ((!this.max || total < this.max) && total === index + 1) {
638
- btn.push(this.addIcon(key));
639
- }
640
-
641
- if (total > this.min) {
642
- btn.push(this.delIcon(index, key));
643
- }
644
-
645
- if (this.sortBtn) {
646
- var sortBtn = this.sortIcon(index, total);
647
-
648
- if (sortBtn) {
649
- btn.push(sortBtn);
650
- }
651
- }
652
-
653
- return btn;
333
+ return i;
654
334
  },
655
- expandRule: function expandRule(n) {
656
- for (var i = 0; i < n; i++) {
335
+ expandRule(t) {
336
+ for (let e = 0; e < t; e++)
657
337
  this.modelValue.push(this.field ? null : {});
658
- }
659
-
660
- this.input(_toConsumableArray(this.modelValue));
338
+ this.input([...this.modelValue]);
661
339
  },
662
- getTitle: function getTitle(index, key) {
663
- if (typeof this.title === 'function') {
664
- return this.title(index, this.modelValue[index], key);
665
- }
666
-
667
- if (typeof this.title === 'string') {
668
- return this.title.replace('{index}', index + 1);
669
- }
670
-
671
- return false;
340
+ getTitle(t, e) {
341
+ return typeof this.title == "function" ? this.title(t, this.modelValue[t], e) : typeof this.title == "string" ? this.title.replace("{index}", t + 1) : !1;
672
342
  }
673
343
  },
674
- created: function created() {
675
- var d = (this.expand || 0) - this.modelValue.length;
676
-
677
- for (var i = 0; i < this.modelValue.length; i++) {
678
- this.addRule(i);
679
- }
680
-
681
- if (d > 0) {
682
- this.expandRule(d);
683
- }
344
+ created() {
345
+ const t = (this.expand || 0) - this.modelValue.length;
346
+ for (let e = 0; e < this.modelValue.length; e++)
347
+ this.addRule(e);
348
+ t > 0 && this.expandRule(t);
684
349
  },
685
- render: function render() {
686
- var _this14 = this;
687
-
688
- var keys = this.sort;
689
- var button = this.button;
690
- var Type = this.form;
691
- var disabled = this.disabled;
692
- var isCardType = this.type === 'card';
693
- var children = keys.length === 0 ? this.$slots["default"] ? this.$slots["default"]({
350
+ render() {
351
+ const t = this.sort, e = this.button, s = this.form, i = this.disabled, l = this.type === "card", r = t.length === 0 ? this.$slots.default ? this.$slots.default({
694
352
  vm: this,
695
353
  add: this.add
696
- }) : createVNode("div", {
697
- "key": 'a_def',
698
- "class": "_fc-group-plus-minus _fc-group-add fc-clock",
699
- "onClick": this.add
700
- }, null) : keys.map(function (key, index) {
701
- var _this14$cacheRule$key = _this14.cacheRule[key],
702
- rule = _this14$cacheRule$key.rule,
703
- options = _this14$cacheRule$key.options;
704
- var btn = button && !disabled ? _this14.makeIcon(keys.length, index, key) : [];
705
-
706
- var title = _this14.getTitle(index, key);
707
-
708
- if (isCardType) {
709
- return createVNode("div", {
710
- "class": "_fc-group-container",
711
- "key": key
712
- }, [createVNode("div", {
713
- "class": "_fc-group-header"
714
- }, [title === false ? createVNode("div", {
715
- "class": "_fc-group-idx"
716
- }, [index + 1]) : null, title !== false ? createVNode("div", {
717
- "class": "_fc-group-title"
718
- }, [title]) : null, createVNode("div", {
719
- "class": "_fc-group-handle fc-clock"
720
- }, [btn.length ? btn : null])]), createVNode("div", {
721
- "class": "_fc-group-content"
722
- }, [createVNode(Type, mergeProps({
723
- "key": key
724
- }, _objectSpread2(_objectSpread2({}, _this14.$attrs), {}, {
725
- disabled: disabled,
726
- 'onUpdate:modelValue': function onUpdateModelValue(formData) {
727
- return _this14.formData(key, formData);
728
- },
729
- 'onUpdate:api': function onUpdateApi($f) {
730
- return _this14.add$f(index, key, $f);
731
- },
732
- inFor: true,
733
- modelValue: _this14.field ? _defineProperty({}, _this14.field, _this14._value(_this14.modelValue[index])) : _this14.modelValue[index],
734
- rule: rule,
735
- option: options,
736
- extendOption: true
737
- })), null)])]);
738
- } else {
739
- return createVNode("div", {
740
- "class": "_fc-group-container",
741
- "key": key
742
- }, [createVNode(Type, mergeProps({
743
- "key": key
744
- }, _objectSpread2(_objectSpread2({}, _this14.$attrs), {}, {
745
- disabled: disabled,
746
- 'onUpdate:modelValue': function onUpdateModelValue(formData) {
747
- return _this14.formData(key, formData);
748
- },
749
- 'onUpdate:api': function onUpdateApi($f) {
750
- return _this14.add$f(index, key, $f);
751
- },
752
- inFor: true,
753
- modelValue: _this14.field ? _defineProperty({}, _this14.field, _this14._value(_this14.modelValue[index])) : _this14.modelValue[index],
754
- rule: rule,
755
- option: options,
756
- extendOption: true
757
- })), null), createVNode("div", {
758
- "class": "_fc-group-idx"
759
- }, [index + 1]), btn.length ? createVNode("div", {
760
- "class": "_fc-group-handle fc-clock"
761
- }, [btn]) : null]);
762
- }
354
+ }) : o("div", {
355
+ key: "a_def",
356
+ class: "_fc-group-plus-minus _fc-group-add fc-clock",
357
+ onClick: this.add
358
+ }, null) : t.map((n, u) => {
359
+ const {
360
+ rule: b,
361
+ options: V
362
+ } = this.cacheRule[n], f = e && !i ? this.makeIcon(t.length, u, n) : [], p = this.getTitle(u, n);
363
+ return l ? o("div", {
364
+ class: "_fc-group-container",
365
+ key: n
366
+ }, [o("div", {
367
+ class: "_fc-group-header"
368
+ }, [p === !1 ? o("div", {
369
+ class: "_fc-group-idx"
370
+ }, [u + 1]) : null, p !== !1 ? o("div", {
371
+ class: "_fc-group-title"
372
+ }, [p]) : null, o("div", {
373
+ class: "_fc-group-handle fc-clock"
374
+ }, [f.length ? f : null])]), o("div", {
375
+ class: "_fc-group-content"
376
+ }, [o(s, j({
377
+ key: n
378
+ }, m(h({}, this.$attrs), {
379
+ disabled: i,
380
+ "onUpdate:modelValue": (a) => this.formData(n, a),
381
+ "onUpdate:api": (a) => this.add$f(u, n, a),
382
+ inFor: !0,
383
+ modelValue: this.field ? {
384
+ [this.field]: this._value(this.modelValue[u])
385
+ } : this.modelValue[u],
386
+ rule: b,
387
+ option: V,
388
+ extendOption: !0
389
+ })), null)])]) : o("div", {
390
+ class: "_fc-group-container",
391
+ key: n
392
+ }, [o(s, j({
393
+ key: n
394
+ }, m(h({}, this.$attrs), {
395
+ disabled: i,
396
+ "onUpdate:modelValue": (a) => this.formData(n, a),
397
+ "onUpdate:api": (a) => this.add$f(u, n, a),
398
+ inFor: !0,
399
+ modelValue: this.field ? {
400
+ [this.field]: this._value(this.modelValue[u])
401
+ } : this.modelValue[u],
402
+ rule: b,
403
+ option: V,
404
+ extendOption: !0
405
+ })), null), o("div", {
406
+ class: "_fc-group-idx"
407
+ }, [u + 1]), f.length ? o("div", {
408
+ class: "_fc-group-handle fc-clock"
409
+ }, [f]) : null]);
763
410
  });
764
- return createVNode("div", {
765
- "key": 'con',
766
- "class": '_fc-group ' + (disabled ? '_fc-group-disabled' : '') + (isCardType ? ' _fc-group-card' : '')
767
- }, [children]);
411
+ return o("div", {
412
+ key: "con",
413
+ class: "_fc-group " + (i ? "_fc-group-disabled" : "") + (l ? " _fc-group-card" : "")
414
+ }, [r]);
768
415
  }
769
416
  });
770
-
771
- export { Group as default };
417
+ export {
418
+ E as default
419
+ };