@v2coding/ui 0.1.0 → 0.1.1

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.
@@ -434,8 +434,7 @@ var Router = {
434
434
  getRouter,
435
435
  addInterceptor,
436
436
  removeInterceptor,
437
- Interceptor,
438
- VueRouter
437
+ Interceptor
439
438
  };
440
439
 
441
440
  const SCRIPT_ID = 'iconfont';
@@ -1077,8 +1076,8 @@ var __vue_staticRenderFns__$x = [];
1077
1076
 
1078
1077
  const __vue_inject_styles__$y = function (inject) {
1079
1078
  if (!inject) return;
1080
- inject("data-v-18089e3c_0", {
1081
- source: ".ui-icon[data-v-18089e3c]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden;display:inline-block}.ui-icon.ui-icon-loading[data-v-18089e3c]{animation:rotating-data-v-18089e3c 2s linear infinite}@keyframes rotating-data-v-18089e3c{from{transform:rotate(0)}to{transform:rotate(1turn)}}",
1079
+ inject("data-v-135b2758_0", {
1080
+ source: ".ui-icon[data-v-135b2758]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden;display:inline-block}.ui-icon.ui-icon-loading[data-v-135b2758]{animation:rotating-data-v-135b2758 2s linear infinite}@keyframes rotating-data-v-135b2758{from{transform:rotate(0)}to{transform:rotate(1turn)}}",
1082
1081
  map: undefined,
1083
1082
  media: undefined
1084
1083
  });
@@ -1086,7 +1085,7 @@ const __vue_inject_styles__$y = function (inject) {
1086
1085
  /* scoped */
1087
1086
 
1088
1087
 
1089
- const __vue_scope_id__$y = "data-v-18089e3c";
1088
+ const __vue_scope_id__$y = "data-v-135b2758";
1090
1089
  /* module identifier */
1091
1090
 
1092
1091
  const __vue_module_identifier__$y = undefined;
@@ -1110,436 +1109,6 @@ var Icon = {
1110
1109
  }
1111
1110
  };
1112
1111
 
1113
- //
1114
- var script$w = {
1115
- name: 'ui-form',
1116
- inheritAttrs: false,
1117
-
1118
- provide() {
1119
- return {
1120
- uiForm: this
1121
- };
1122
- },
1123
-
1124
- props: {
1125
- disabled: Boolean,
1126
- labelWidth: {
1127
- type: String,
1128
- default: '105px'
1129
- },
1130
- fields: Array,
1131
- url: String,
1132
- method: {
1133
- type: String,
1134
- validator: val => ['get', 'post', 'put'].includes(val),
1135
- default: 'post'
1136
- },
1137
-
1138
- /**
1139
- * 是否显示 label 后面的冒号
1140
- */
1141
- colon: {
1142
- type: Boolean,
1143
- default: undefined
1144
- },
1145
- beforeSubmit: {
1146
- type: Function,
1147
- default: () => void 0
1148
- },
1149
- submitting: {
1150
- type: Boolean,
1151
- default: false
1152
- }
1153
- /**
1154
- * listeners:
1155
- * ready 所有表单项都准备好后触发
1156
- * submit 触发提交事件
1157
- * after-submit 配置 url 后触发submit事件时触发提交数据完成事件
1158
- * validate 任一表单项被校验后触发
1159
- **/
1160
-
1161
- },
1162
-
1163
- data() {
1164
- this.fieldStatus = []; // [{name,status,componentInstance}, ...]
1165
-
1166
- return {
1167
- fieldList: [] // [[name, value], ...]
1168
-
1169
- };
1170
- },
1171
-
1172
- created() {},
1173
-
1174
- computed: {
1175
- model() {
1176
- return Object.fromEntries(this.fieldList);
1177
- },
1178
-
1179
- listeners() {
1180
- // eslint-disable-next-line
1181
- const {
1182
- submit,
1183
- ready,
1184
- ...listeners
1185
- } = this.$listeners;
1186
- return listeners;
1187
- }
1188
-
1189
- },
1190
-
1191
- mounted() {
1192
- this.$el.addEventListener('reset', this.onReset);
1193
- this.checkFieldsReady();
1194
- },
1195
-
1196
- beforeDestroy() {
1197
- this.$el.removeEventListener('reset', this.onReset);
1198
- },
1199
-
1200
- methods: {
1201
- /**
1202
- * @public
1203
- */
1204
- validate() {
1205
- return this.$refs.form.validate(...arguments);
1206
- },
1207
-
1208
- /**
1209
- * @public
1210
- */
1211
- validateField() {
1212
- return this.$refs.form.validateField(...arguments);
1213
- },
1214
-
1215
- /**
1216
- * @public
1217
- */
1218
- clearValidate() {
1219
- return this.$refs.form.clearValidate(...arguments);
1220
- },
1221
-
1222
- /**
1223
- * @public
1224
- */
1225
- resetValues(values) {
1226
- if (!Objects.isObject(values)) {
1227
- values = {};
1228
- }
1229
-
1230
- this.fieldList.slice().forEach(_ref => {
1231
- let [name,, field] = _ref;
1232
-
1233
- if (Object.prototype.hasOwnProperty.call(values, name)) {
1234
- field.resetField(values[name]);
1235
- } else {
1236
- field.resetField();
1237
- }
1238
- });
1239
- },
1240
-
1241
- /**
1242
- * @public
1243
- */
1244
- setValues(values) {
1245
- if (!values || !Objects.isObject(values)) {
1246
- return;
1247
- }
1248
-
1249
- Object.entries(values).forEach(_ref2 => {
1250
- let [fieldName, fieldValue] = _ref2;
1251
- const fieldItem = this.fieldList.find(_ref3 => {
1252
- let [name] = _ref3;
1253
- return name === fieldName;
1254
- });
1255
-
1256
- if (!fieldItem) {
1257
- return;
1258
- }
1259
-
1260
- fieldItem[2].fieldValue = fieldValue;
1261
- });
1262
- },
1263
-
1264
- /**
1265
- * @public
1266
- */
1267
- getValues() {
1268
- return Object.fromEntries(this.fieldList);
1269
- },
1270
-
1271
- /**
1272
- * @private
1273
- */
1274
- addField(name) {
1275
- let defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1276
- let instance = arguments.length > 2 ? arguments[2] : undefined;
1277
-
1278
- if (!Object.hasOwnProperty.call(this.model, name)) {
1279
- this.onFieldChange(name, defaultValue, instance);
1280
- }
1281
- },
1282
-
1283
- /**
1284
- * (函数节流. 600ms内只执行一次, 防止 form 表单多次提交)
1285
- * @private
1286
- */
1287
- onSubmit: throttle(function () {
1288
- let formData = this.getValues();
1289
- const allow = this.beforeSubmit(formData);
1290
-
1291
- if (typeof allow === 'boolean' && allow === false) {
1292
- return;
1293
- }
1294
-
1295
- if (typeof allow === 'object') {
1296
- formData = allow;
1297
- }
1298
-
1299
- this.validate(valid => {
1300
- if (!valid) {
1301
- return;
1302
- }
1303
-
1304
- this.$emit('submit', formData);
1305
- this.doAction(formData);
1306
- });
1307
- }, 600, {
1308
- trailing: false
1309
- }),
1310
-
1311
- doAction(data) {
1312
- var _this = this;
1313
-
1314
- if (!this.url) {
1315
- return;
1316
- }
1317
-
1318
- let def;
1319
- this.$emit('update:submitting', true);
1320
-
1321
- if (this.method === 'get') {
1322
- def = this.getWithMessage(this.url, {
1323
- params: data
1324
- });
1325
- } else {
1326
- def = this.postWithMessage(this.url, data);
1327
- }
1328
-
1329
- def.then(function () {
1330
- _this.$emit('update:submitting', false);
1331
-
1332
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1333
- args[_key] = arguments[_key];
1334
- }
1335
-
1336
- _this.$emit('after-submit', ...args);
1337
- }).catch(function () {
1338
- _this.$emit('update:submitting', false);
1339
-
1340
- return Promise.reject(...arguments);
1341
- });
1342
- },
1343
-
1344
- /**
1345
- * @private
1346
- */
1347
- onReset(e) {
1348
- e.preventDefault();
1349
- this.resetValues();
1350
- this.$emit('reset');
1351
- },
1352
-
1353
- /**
1354
- * @private
1355
- */
1356
- trigger(event) {
1357
- if (typeof event !== 'string') {
1358
- return;
1359
- }
1360
-
1361
- const e = event.toLowerCase().replace(/( |^)[a-z]/g, L => L.toUpperCase());
1362
-
1363
- if (!this[`onField${e}`]) {
1364
- return;
1365
- }
1366
-
1367
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1368
- args[_key2 - 1] = arguments[_key2];
1369
- }
1370
-
1371
- this[`onField${e}`](...args);
1372
- },
1373
-
1374
- getAllFields() {
1375
- const getFormFields = components => {
1376
- if (!Array.isArray(components) || !components.length) {
1377
- return [];
1378
- }
1379
-
1380
- return components.reduce((total, component) => {
1381
- // ui-table-select-item mixins ui-form-item
1382
- if (['ui-form-item', 'ui-table-select-item'].includes(component.$options.name)) {
1383
- !component.ignore && component.name && total.push(component.name);
1384
- } else {
1385
- total.push(...getFormFields(component.$children));
1386
- }
1387
-
1388
- return total;
1389
- }, []);
1390
- };
1391
-
1392
- this.formFields = getFormFields(this.$children);
1393
- return this.formFields;
1394
- },
1395
-
1396
- /**
1397
- * @private
1398
- */
1399
- onFieldPending(component) {
1400
- if (component.name) {
1401
- this.fieldStatus.push({
1402
- name: component.name,
1403
- status: false,
1404
- instance: component
1405
- });
1406
- }
1407
- },
1408
-
1409
- /**
1410
- * @private
1411
- */
1412
- onFieldDestroy(component) {
1413
- if (component.name) {
1414
- const index = this.fieldStatus.findIndex(item => item.name === component.name);
1415
- index !== -1 && this.fieldStatus.splice(index, 1);
1416
- const i = this.fieldList.findIndex(item => item[0] === component.name);
1417
- this.fieldList.splice(i, 1);
1418
- }
1419
-
1420
- const formFields = this.getAllFields();
1421
-
1422
- if (formFields.length === this.fieldStatus.length) {
1423
- this.checkFieldsReady();
1424
- }
1425
- },
1426
-
1427
- /**
1428
- * @private
1429
- */
1430
- onFieldDone(component) {
1431
- if (!component.name) {
1432
- return;
1433
- }
1434
-
1435
- const index = this.fieldStatus.findIndex(item => item.name === component.name);
1436
-
1437
- if (index === -1) {
1438
- this.fieldStatus.push({
1439
- name: component.name,
1440
- status: true,
1441
- instance: component
1442
- });
1443
- } else {
1444
- this.fieldStatus.splice(index, 1, {
1445
- name: component.name,
1446
- status: true,
1447
- instance: component
1448
- });
1449
- }
1450
-
1451
- const formFields = this.getAllFields();
1452
-
1453
- if (formFields.length === this.fieldStatus.length) {
1454
- this.checkFieldsReady();
1455
- }
1456
- },
1457
-
1458
- onFieldChange(fieldName, fieldValue, instance) {
1459
- const index = this.fieldList.findIndex(item => item[0] === fieldName);
1460
- const current = Object.freeze([fieldName, fieldValue, instance]);
1461
-
1462
- if (index === -1) {
1463
- this.fieldList.push(current);
1464
- } else {
1465
- this.fieldList.splice(index, 1, current);
1466
- }
1467
- },
1468
-
1469
- checkFieldsReady() {
1470
- const isPending = this.fieldStatus.some(item => !item.status);
1471
-
1472
- if (!isPending) {
1473
- this.$emit('ready');
1474
- }
1475
- }
1476
-
1477
- }
1478
- };
1479
-
1480
- /* script */
1481
- const __vue_script__$x = script$w;
1482
- /* template */
1483
-
1484
- var __vue_render__$w = function () {
1485
- var _vm = this;
1486
-
1487
- var _h = _vm.$createElement;
1488
-
1489
- var _c = _vm._self._c || _h;
1490
-
1491
- return _c('el-form', _vm._g(_vm._b({
1492
- ref: "form",
1493
- attrs: {
1494
- "model": _vm.model,
1495
- "label-width": _vm.labelWidth
1496
- },
1497
- nativeOn: {
1498
- "submit": function ($event) {
1499
- $event.preventDefault();
1500
- return _vm.onSubmit.apply(null, arguments);
1501
- }
1502
- }
1503
- }, 'el-form', _vm.$attrs, false), _vm.listeners), [_vm._l(_vm.fields, function (field, i) {
1504
- return _c(field.componentName || 'ui-form-item', _vm._g(_vm._b({
1505
- key: i,
1506
- tag: "component"
1507
- }, 'component', field, false), field.listeners));
1508
- }), _vm._v(" "), _vm._t("default")], 2);
1509
- };
1510
-
1511
- var __vue_staticRenderFns__$w = [];
1512
- /* style */
1513
-
1514
- const __vue_inject_styles__$x = function (inject) {
1515
- if (!inject) return;
1516
- inject("data-v-6e1373ba_0", {
1517
- source: ".el-form--inline[data-v-6e1373ba] .el-form-item{display:inline-flex}",
1518
- map: undefined,
1519
- media: undefined
1520
- });
1521
- };
1522
- /* scoped */
1523
-
1524
-
1525
- const __vue_scope_id__$x = "data-v-6e1373ba";
1526
- /* module identifier */
1527
-
1528
- const __vue_module_identifier__$x = undefined;
1529
- /* functional template */
1530
-
1531
- const __vue_is_functional_template__$x = false;
1532
- /* style inject SSR */
1533
-
1534
- /* style inject shadow dom */
1535
-
1536
- const __vue_component__$x = /*#__PURE__*/normalizeComponent({
1537
- render: __vue_render__$w,
1538
- staticRenderFns: __vue_staticRenderFns__$w
1539
- }, __vue_inject_styles__$x, __vue_script__$x, __vue_scope_id__$x, __vue_is_functional_template__$x, __vue_module_identifier__$x, false, createInjector, undefined, undefined);
1540
-
1541
- var Form$1 = __vue_component__$x;
1542
-
1543
1112
  const ID_Card = {
1544
1113
  /** 最低年限 */
1545
1114
  MIN: 1930,
@@ -2161,10 +1730,6 @@ var FieldMixin = {
2161
1730
  return;
2162
1731
  }
2163
1732
 
2164
- if (this.ignore) {
2165
- return;
2166
- }
2167
-
2168
1733
  this.uiForm.trigger('destroy', this);
2169
1734
  },
2170
1735
 
@@ -2174,10 +1739,6 @@ var FieldMixin = {
2174
1739
  return;
2175
1740
  }
2176
1741
 
2177
- if (this.ignore) {
2178
- return;
2179
- }
2180
-
2181
1742
  this.uiForm.trigger('pending', this);
2182
1743
  },
2183
1744
 
@@ -2187,10 +1748,6 @@ var FieldMixin = {
2187
1748
  return;
2188
1749
  }
2189
1750
 
2190
- if (this.ignore) {
2191
- return;
2192
- }
2193
-
2194
1751
  this.$nextTick(() => this.uiForm.trigger('done', this));
2195
1752
  this.$emit('ready');
2196
1753
  },
@@ -2232,17 +1789,17 @@ var DisplayField = {
2232
1789
  };
2233
1790
 
2234
1791
  //
2235
- var script$v = {
1792
+ var script$w = {
2236
1793
  name: 'ui-field-autocomplete',
2237
1794
  inheritAttrs: false,
2238
1795
  mixins: [FieldMixin]
2239
1796
  };
2240
1797
 
2241
1798
  /* script */
2242
- const __vue_script__$w = script$v;
1799
+ const __vue_script__$x = script$w;
2243
1800
  /* template */
2244
1801
 
2245
- var __vue_render__$v = function () {
1802
+ var __vue_render__$w = function () {
2246
1803
  var _vm = this;
2247
1804
 
2248
1805
  var _h = _vm.$createElement;
@@ -2256,34 +1813,34 @@ var __vue_render__$v = function () {
2256
1813
  }, 'el-autocomplete', _vm.$attrs, false), _vm.$listeners));
2257
1814
  };
2258
1815
 
2259
- var __vue_staticRenderFns__$v = [];
1816
+ var __vue_staticRenderFns__$w = [];
2260
1817
  /* style */
2261
1818
 
2262
- const __vue_inject_styles__$w = undefined;
1819
+ const __vue_inject_styles__$x = undefined;
2263
1820
  /* scoped */
2264
1821
 
2265
- const __vue_scope_id__$w = undefined;
1822
+ const __vue_scope_id__$x = undefined;
2266
1823
  /* module identifier */
2267
1824
 
2268
- const __vue_module_identifier__$w = undefined;
1825
+ const __vue_module_identifier__$x = undefined;
2269
1826
  /* functional template */
2270
1827
 
2271
- const __vue_is_functional_template__$w = false;
1828
+ const __vue_is_functional_template__$x = false;
2272
1829
  /* style inject */
2273
1830
 
2274
1831
  /* style inject SSR */
2275
1832
 
2276
1833
  /* style inject shadow dom */
2277
1834
 
2278
- const __vue_component__$w = /*#__PURE__*/normalizeComponent({
2279
- render: __vue_render__$v,
2280
- staticRenderFns: __vue_staticRenderFns__$v
2281
- }, __vue_inject_styles__$w, __vue_script__$w, __vue_scope_id__$w, __vue_is_functional_template__$w, __vue_module_identifier__$w, false, undefined, undefined, undefined);
1835
+ const __vue_component__$x = /*#__PURE__*/normalizeComponent({
1836
+ render: __vue_render__$w,
1837
+ staticRenderFns: __vue_staticRenderFns__$w
1838
+ }, __vue_inject_styles__$x, __vue_script__$x, __vue_scope_id__$x, __vue_is_functional_template__$x, __vue_module_identifier__$x, false, undefined, undefined, undefined);
2282
1839
 
2283
- var AutocompleteField = __vue_component__$w;
1840
+ var AutocompleteField = __vue_component__$x;
2284
1841
 
2285
1842
  //
2286
- var script$u = {
1843
+ var script$v = {
2287
1844
  name: 'ui-field-text',
2288
1845
  inheritAttrs: false,
2289
1846
  mixins: [FieldMixin],
@@ -2327,10 +1884,10 @@ var script$u = {
2327
1884
  };
2328
1885
 
2329
1886
  /* script */
2330
- const __vue_script__$v = script$u;
1887
+ const __vue_script__$w = script$v;
2331
1888
  /* template */
2332
1889
 
2333
- var __vue_render__$u = function () {
1890
+ var __vue_render__$v = function () {
2334
1891
  var _vm = this;
2335
1892
 
2336
1893
  var _h = _vm.$createElement;
@@ -2350,10 +1907,10 @@ var __vue_render__$u = function () {
2350
1907
  }, 'el-input', _vm.$attrs, false), _vm.$listeners));
2351
1908
  };
2352
1909
 
2353
- var __vue_staticRenderFns__$u = [];
1910
+ var __vue_staticRenderFns__$v = [];
2354
1911
  /* style */
2355
1912
 
2356
- const __vue_inject_styles__$v = function (inject) {
1913
+ const __vue_inject_styles__$w = function (inject) {
2357
1914
  if (!inject) return;
2358
1915
  inject("data-v-5e8a712c_0", {
2359
1916
  source: ".el-input__suffix-inner{display:flex;align-items:center;height:100%}.el-input--large .el-input__count .el-input__count-inner{line-height:38px}.el-input--medium .el-input__count .el-input__count-inner{line-height:34px}.el-input--mini .el-input__count .el-input__count-inner{line-height:26px}",
@@ -2364,23 +1921,23 @@ const __vue_inject_styles__$v = function (inject) {
2364
1921
  /* scoped */
2365
1922
 
2366
1923
 
2367
- const __vue_scope_id__$v = undefined;
1924
+ const __vue_scope_id__$w = undefined;
2368
1925
  /* module identifier */
2369
1926
 
2370
- const __vue_module_identifier__$v = undefined;
1927
+ const __vue_module_identifier__$w = undefined;
2371
1928
  /* functional template */
2372
1929
 
2373
- const __vue_is_functional_template__$v = false;
1930
+ const __vue_is_functional_template__$w = false;
2374
1931
  /* style inject SSR */
2375
1932
 
2376
1933
  /* style inject shadow dom */
2377
1934
 
2378
- const __vue_component__$v = /*#__PURE__*/normalizeComponent({
2379
- render: __vue_render__$u,
2380
- staticRenderFns: __vue_staticRenderFns__$u
2381
- }, __vue_inject_styles__$v, __vue_script__$v, __vue_scope_id__$v, __vue_is_functional_template__$v, __vue_module_identifier__$v, false, createInjector, undefined, undefined);
1935
+ const __vue_component__$w = /*#__PURE__*/normalizeComponent({
1936
+ render: __vue_render__$v,
1937
+ staticRenderFns: __vue_staticRenderFns__$v
1938
+ }, __vue_inject_styles__$w, __vue_script__$w, __vue_scope_id__$w, __vue_is_functional_template__$w, __vue_module_identifier__$w, false, createInjector, undefined, undefined);
2382
1939
 
2383
- var TextField = __vue_component__$v;
1940
+ var TextField = __vue_component__$w;
2384
1941
 
2385
1942
  const mapLabelValue = (data, config) => {
2386
1943
  if (!Array.isArray(data)) {
@@ -2571,7 +2128,7 @@ var DataMixin = {
2571
2128
  };
2572
2129
 
2573
2130
  //
2574
- var script$t = {
2131
+ var script$u = {
2575
2132
  name: 'ui-field-radio',
2576
2133
  mixins: [FieldMixin, DataMixin],
2577
2134
  props: {
@@ -2639,10 +2196,10 @@ var script$t = {
2639
2196
  };
2640
2197
 
2641
2198
  /* script */
2642
- const __vue_script__$u = script$t;
2199
+ const __vue_script__$v = script$u;
2643
2200
  /* template */
2644
2201
 
2645
- var __vue_render__$t = function () {
2202
+ var __vue_render__$u = function () {
2646
2203
  var _vm = this;
2647
2204
 
2648
2205
  var _h = _vm.$createElement;
@@ -2692,10 +2249,10 @@ var __vue_render__$t = function () {
2692
2249
  }, [_vm._v("重新加载")])], 1) : _vm._e()], 1);
2693
2250
  };
2694
2251
 
2695
- var __vue_staticRenderFns__$t = [];
2252
+ var __vue_staticRenderFns__$u = [];
2696
2253
  /* style */
2697
2254
 
2698
- const __vue_inject_styles__$u = function (inject) {
2255
+ const __vue_inject_styles__$v = function (inject) {
2699
2256
  if (!inject) return;
2700
2257
  inject("data-v-f02e57a0_0", {
2701
2258
  source: ".ui-field-radio .empty[data-v-f02e57a0]{display:inline-flex;align-items:center;font-size:12px;color:#909399}.ui-field-radio>.el-radio-group[data-v-f02e57a0]{display:inline-flex;flex-direction:row;flex-wrap:wrap;align-items:center}.ui-field-radio>.el-radio-group .el-radio[data-v-f02e57a0]{line-height:36px}[data-v-f02e57a0] .el-loading-mask .el-loading-spinner{margin-top:-14px}",
@@ -2706,26 +2263,26 @@ const __vue_inject_styles__$u = function (inject) {
2706
2263
  /* scoped */
2707
2264
 
2708
2265
 
2709
- const __vue_scope_id__$u = "data-v-f02e57a0";
2266
+ const __vue_scope_id__$v = "data-v-f02e57a0";
2710
2267
  /* module identifier */
2711
2268
 
2712
- const __vue_module_identifier__$u = undefined;
2269
+ const __vue_module_identifier__$v = undefined;
2713
2270
  /* functional template */
2714
2271
 
2715
- const __vue_is_functional_template__$u = false;
2272
+ const __vue_is_functional_template__$v = false;
2716
2273
  /* style inject SSR */
2717
2274
 
2718
2275
  /* style inject shadow dom */
2719
2276
 
2720
- const __vue_component__$u = /*#__PURE__*/normalizeComponent({
2721
- render: __vue_render__$t,
2722
- staticRenderFns: __vue_staticRenderFns__$t
2723
- }, __vue_inject_styles__$u, __vue_script__$u, __vue_scope_id__$u, __vue_is_functional_template__$u, __vue_module_identifier__$u, false, createInjector, undefined, undefined);
2277
+ const __vue_component__$v = /*#__PURE__*/normalizeComponent({
2278
+ render: __vue_render__$u,
2279
+ staticRenderFns: __vue_staticRenderFns__$u
2280
+ }, __vue_inject_styles__$v, __vue_script__$v, __vue_scope_id__$v, __vue_is_functional_template__$v, __vue_module_identifier__$v, false, createInjector, undefined, undefined);
2724
2281
 
2725
- var RadioField = __vue_component__$u;
2282
+ var RadioField = __vue_component__$v;
2726
2283
 
2727
2284
  //
2728
- var script$s = {
2285
+ var script$t = {
2729
2286
  name: 'ui-field-checkbox',
2730
2287
  mixins: [FieldMixin, DataMixin],
2731
2288
  props: {
@@ -2806,10 +2363,10 @@ var script$s = {
2806
2363
  };
2807
2364
 
2808
2365
  /* script */
2809
- const __vue_script__$t = script$s;
2366
+ const __vue_script__$u = script$t;
2810
2367
  /* template */
2811
2368
 
2812
- var __vue_render__$s = function () {
2369
+ var __vue_render__$t = function () {
2813
2370
  var _vm = this;
2814
2371
 
2815
2372
  var _h = _vm.$createElement;
@@ -2896,10 +2453,10 @@ var __vue_render__$s = function () {
2896
2453
  }, [_vm._v("重新加载")])], 1) : _vm._e()], 1);
2897
2454
  };
2898
2455
 
2899
- var __vue_staticRenderFns__$s = [];
2456
+ var __vue_staticRenderFns__$t = [];
2900
2457
  /* style */
2901
2458
 
2902
- const __vue_inject_styles__$t = function (inject) {
2459
+ const __vue_inject_styles__$u = function (inject) {
2903
2460
  if (!inject) return;
2904
2461
  inject("data-v-fe03ce2a_0", {
2905
2462
  source: ".ui-field-checkbox .all[data-v-fe03ce2a]{display:flex}.ui-field-checkbox .all>.el-checkbox[data-v-fe03ce2a]{margin-right:0}.ui-field-checkbox .options[data-v-fe03ce2a]{display:flex;flex-direction:row;align-items:center}.ui-field-checkbox .empty[data-v-fe03ce2a]{display:inline-flex;align-items:center;font-size:12px;color:#909399}.ui-field-checkbox[data-v-fe03ce2a] .el-checkbox{margin:0 8px 0 0}.ui-field-checkbox[data-v-fe03ce2a] .el-checkbox.is-bordered+.el-checkbox.is-bordered{margin-left:0}.ui-field-checkbox[data-v-fe03ce2a] .el-divider{margin:0 10px}[data-v-fe03ce2a] .el-loading-mask .el-loading-spinner{margin-top:-14px}",
@@ -2910,26 +2467,26 @@ const __vue_inject_styles__$t = function (inject) {
2910
2467
  /* scoped */
2911
2468
 
2912
2469
 
2913
- const __vue_scope_id__$t = "data-v-fe03ce2a";
2470
+ const __vue_scope_id__$u = "data-v-fe03ce2a";
2914
2471
  /* module identifier */
2915
2472
 
2916
- const __vue_module_identifier__$t = undefined;
2473
+ const __vue_module_identifier__$u = undefined;
2917
2474
  /* functional template */
2918
2475
 
2919
- const __vue_is_functional_template__$t = false;
2476
+ const __vue_is_functional_template__$u = false;
2920
2477
  /* style inject SSR */
2921
2478
 
2922
2479
  /* style inject shadow dom */
2923
2480
 
2924
- const __vue_component__$t = /*#__PURE__*/normalizeComponent({
2925
- render: __vue_render__$s,
2926
- staticRenderFns: __vue_staticRenderFns__$s
2927
- }, __vue_inject_styles__$t, __vue_script__$t, __vue_scope_id__$t, __vue_is_functional_template__$t, __vue_module_identifier__$t, false, createInjector, undefined, undefined);
2481
+ const __vue_component__$u = /*#__PURE__*/normalizeComponent({
2482
+ render: __vue_render__$t,
2483
+ staticRenderFns: __vue_staticRenderFns__$t
2484
+ }, __vue_inject_styles__$u, __vue_script__$u, __vue_scope_id__$u, __vue_is_functional_template__$u, __vue_module_identifier__$u, false, createInjector, undefined, undefined);
2928
2485
 
2929
- var CheckboxField = __vue_component__$t;
2486
+ var CheckboxField = __vue_component__$u;
2930
2487
 
2931
2488
  //
2932
- var script$r = {
2489
+ var script$s = {
2933
2490
  name: 'ui-field-select',
2934
2491
  mixins: [FieldMixin, DataMixin],
2935
2492
  inheritAttrs: false,
@@ -3123,10 +2680,10 @@ var script$r = {
3123
2680
  };
3124
2681
 
3125
2682
  /* script */
3126
- const __vue_script__$s = script$r;
2683
+ const __vue_script__$t = script$s;
3127
2684
  /* template */
3128
2685
 
3129
- var __vue_render__$r = function () {
2686
+ var __vue_render__$s = function () {
3130
2687
  var _vm = this;
3131
2688
 
3132
2689
  var _h = _vm.$createElement;
@@ -3251,10 +2808,10 @@ var __vue_render__$r = function () {
3251
2808
  })], 1)], 1) : _vm._e()], 1);
3252
2809
  };
3253
2810
 
3254
- var __vue_staticRenderFns__$r = [];
2811
+ var __vue_staticRenderFns__$s = [];
3255
2812
  /* style */
3256
2813
 
3257
- const __vue_inject_styles__$s = function (inject) {
2814
+ const __vue_inject_styles__$t = function (inject) {
3258
2815
  if (!inject) return;
3259
2816
  inject("data-v-7c196bc6_0", {
3260
2817
  source: ".ui-field-select .el-select{width:100%}.ui-field-select .el-input-group--append .el-select .el-input.is-focus .el-input__inner{border-color:var(--color-primary)}.ui-field-select .empty{font-size:12px;color:#909399;display:flex;align-items:center}.ui-field-select .el-loading-mask .el-loading-spinner{margin-top:-14px}",
@@ -3265,26 +2822,26 @@ const __vue_inject_styles__$s = function (inject) {
3265
2822
  /* scoped */
3266
2823
 
3267
2824
 
3268
- const __vue_scope_id__$s = undefined;
2825
+ const __vue_scope_id__$t = undefined;
3269
2826
  /* module identifier */
3270
2827
 
3271
- const __vue_module_identifier__$s = undefined;
2828
+ const __vue_module_identifier__$t = undefined;
3272
2829
  /* functional template */
3273
2830
 
3274
- const __vue_is_functional_template__$s = false;
2831
+ const __vue_is_functional_template__$t = false;
3275
2832
  /* style inject SSR */
3276
2833
 
3277
2834
  /* style inject shadow dom */
3278
2835
 
3279
- const __vue_component__$s = /*#__PURE__*/normalizeComponent({
3280
- render: __vue_render__$r,
3281
- staticRenderFns: __vue_staticRenderFns__$r
3282
- }, __vue_inject_styles__$s, __vue_script__$s, __vue_scope_id__$s, __vue_is_functional_template__$s, __vue_module_identifier__$s, false, createInjector, undefined, undefined);
2836
+ const __vue_component__$t = /*#__PURE__*/normalizeComponent({
2837
+ render: __vue_render__$s,
2838
+ staticRenderFns: __vue_staticRenderFns__$s
2839
+ }, __vue_inject_styles__$t, __vue_script__$t, __vue_scope_id__$t, __vue_is_functional_template__$t, __vue_module_identifier__$t, false, createInjector, undefined, undefined);
3283
2840
 
3284
- var SelectField = __vue_component__$s;
2841
+ var SelectField = __vue_component__$t;
3285
2842
 
3286
2843
  //
3287
- var script$q = {
2844
+ var script$r = {
3288
2845
  name: 'ui-field-number',
3289
2846
  mixins: [FieldMixin],
3290
2847
  props: {
@@ -3315,10 +2872,10 @@ var script$q = {
3315
2872
  };
3316
2873
 
3317
2874
  /* script */
3318
- const __vue_script__$r = script$q;
2875
+ const __vue_script__$s = script$r;
3319
2876
  /* template */
3320
2877
 
3321
- var __vue_render__$q = function () {
2878
+ var __vue_render__$r = function () {
3322
2879
  var _vm = this;
3323
2880
 
3324
2881
  var _h = _vm.$createElement;
@@ -3334,10 +2891,10 @@ var __vue_render__$q = function () {
3334
2891
  }, 'el-input-number', _vm.$attrs, false), _vm.$listeners));
3335
2892
  };
3336
2893
 
3337
- var __vue_staticRenderFns__$q = [];
2894
+ var __vue_staticRenderFns__$r = [];
3338
2895
  /* style */
3339
2896
 
3340
- const __vue_inject_styles__$r = function (inject) {
2897
+ const __vue_inject_styles__$s = function (inject) {
3341
2898
  if (!inject) return;
3342
2899
  inject("data-v-53fd5ea2_0", {
3343
2900
  source: ".ui-number-field[data-v-53fd5ea2]{width:100%}.ui-number-field[data-v-53fd5ea2] input{text-align:initial}",
@@ -3348,23 +2905,23 @@ const __vue_inject_styles__$r = function (inject) {
3348
2905
  /* scoped */
3349
2906
 
3350
2907
 
3351
- const __vue_scope_id__$r = "data-v-53fd5ea2";
2908
+ const __vue_scope_id__$s = "data-v-53fd5ea2";
3352
2909
  /* module identifier */
3353
2910
 
3354
- const __vue_module_identifier__$r = undefined;
2911
+ const __vue_module_identifier__$s = undefined;
3355
2912
  /* functional template */
3356
2913
 
3357
- const __vue_is_functional_template__$r = false;
2914
+ const __vue_is_functional_template__$s = false;
3358
2915
  /* style inject SSR */
3359
2916
 
3360
2917
  /* style inject shadow dom */
3361
2918
 
3362
- const __vue_component__$r = /*#__PURE__*/normalizeComponent({
3363
- render: __vue_render__$q,
3364
- staticRenderFns: __vue_staticRenderFns__$q
3365
- }, __vue_inject_styles__$r, __vue_script__$r, __vue_scope_id__$r, __vue_is_functional_template__$r, __vue_module_identifier__$r, false, createInjector, undefined, undefined);
2919
+ const __vue_component__$s = /*#__PURE__*/normalizeComponent({
2920
+ render: __vue_render__$r,
2921
+ staticRenderFns: __vue_staticRenderFns__$r
2922
+ }, __vue_inject_styles__$s, __vue_script__$s, __vue_scope_id__$s, __vue_is_functional_template__$s, __vue_module_identifier__$s, false, createInjector, undefined, undefined);
3366
2923
 
3367
- var NumberField = __vue_component__$r;
2924
+ var NumberField = __vue_component__$s;
3368
2925
 
3369
2926
  const randomStr = length => {
3370
2927
  let str = Math.random().toString(36).substr(2);
@@ -3382,7 +2939,7 @@ var Strings = {
3382
2939
  };
3383
2940
 
3384
2941
  //
3385
- var script$p = {
2942
+ var script$q = {
3386
2943
  name: 'ui-field-cascade',
3387
2944
  mixins: [FieldMixin, DataMixin],
3388
2945
  props: {
@@ -3598,10 +3155,10 @@ var script$p = {
3598
3155
  };
3599
3156
 
3600
3157
  /* script */
3601
- const __vue_script__$q = script$p;
3158
+ const __vue_script__$r = script$q;
3602
3159
  /* template */
3603
3160
 
3604
- var __vue_render__$p = function () {
3161
+ var __vue_render__$q = function () {
3605
3162
  var _vm = this;
3606
3163
 
3607
3164
  var _h = _vm.$createElement;
@@ -3665,10 +3222,10 @@ var __vue_render__$p = function () {
3665
3222
  })], 1)], 1) : _vm._e()], 1);
3666
3223
  };
3667
3224
 
3668
- var __vue_staticRenderFns__$p = [];
3225
+ var __vue_staticRenderFns__$q = [];
3669
3226
  /* style */
3670
3227
 
3671
- const __vue_inject_styles__$q = function (inject) {
3228
+ const __vue_inject_styles__$r = function (inject) {
3672
3229
  if (!inject) return;
3673
3230
  inject("data-v-3e45255c_0", {
3674
3231
  source: ".ui-cascade-field[data-v-3e45255c]{width:100%}.ui-cascade-field-popper[data-v-3e45255c]{z-index:99999!important}.ui-cascade-field-popper .el-cascader-menu__item[data-v-3e45255c]{padding-right:30px}[data-v-3e45255c] .el-loading-mask .el-loading-spinner{margin-top:-14px}",
@@ -3679,23 +3236,23 @@ const __vue_inject_styles__$q = function (inject) {
3679
3236
  /* scoped */
3680
3237
 
3681
3238
 
3682
- const __vue_scope_id__$q = "data-v-3e45255c";
3239
+ const __vue_scope_id__$r = "data-v-3e45255c";
3683
3240
  /* module identifier */
3684
3241
 
3685
- const __vue_module_identifier__$q = undefined;
3242
+ const __vue_module_identifier__$r = undefined;
3686
3243
  /* functional template */
3687
3244
 
3688
- const __vue_is_functional_template__$q = false;
3245
+ const __vue_is_functional_template__$r = false;
3689
3246
  /* style inject SSR */
3690
3247
 
3691
3248
  /* style inject shadow dom */
3692
3249
 
3693
- const __vue_component__$q = /*#__PURE__*/normalizeComponent({
3694
- render: __vue_render__$p,
3695
- staticRenderFns: __vue_staticRenderFns__$p
3696
- }, __vue_inject_styles__$q, __vue_script__$q, __vue_scope_id__$q, __vue_is_functional_template__$q, __vue_module_identifier__$q, false, createInjector, undefined, undefined);
3250
+ const __vue_component__$r = /*#__PURE__*/normalizeComponent({
3251
+ render: __vue_render__$q,
3252
+ staticRenderFns: __vue_staticRenderFns__$q
3253
+ }, __vue_inject_styles__$r, __vue_script__$r, __vue_scope_id__$r, __vue_is_functional_template__$r, __vue_module_identifier__$r, false, createInjector, undefined, undefined);
3697
3254
 
3698
- var CascadeField = __vue_component__$q;
3255
+ var CascadeField = __vue_component__$r;
3699
3256
 
3700
3257
  /**
3701
3258
  * @param text
@@ -3757,7 +3314,7 @@ const DisabledDate = {
3757
3314
  };
3758
3315
 
3759
3316
  //
3760
- var script$o = {
3317
+ var script$p = {
3761
3318
  name: 'ui-field-date',
3762
3319
  mixins: [FieldMixin],
3763
3320
  props: {
@@ -3903,10 +3460,10 @@ var script$o = {
3903
3460
  };
3904
3461
 
3905
3462
  /* script */
3906
- const __vue_script__$p = script$o;
3463
+ const __vue_script__$q = script$p;
3907
3464
  /* template */
3908
3465
 
3909
- var __vue_render__$o = function () {
3466
+ var __vue_render__$p = function () {
3910
3467
  var _vm = this;
3911
3468
 
3912
3469
  var _h = _vm.$createElement;
@@ -3930,10 +3487,10 @@ var __vue_render__$o = function () {
3930
3487
  }, 'el-date-picker', _vm.$attrs, false), _vm._listeners));
3931
3488
  };
3932
3489
 
3933
- var __vue_staticRenderFns__$o = [];
3490
+ var __vue_staticRenderFns__$p = [];
3934
3491
  /* style */
3935
3492
 
3936
- const __vue_inject_styles__$p = function (inject) {
3493
+ const __vue_inject_styles__$q = function (inject) {
3937
3494
  if (!inject) return;
3938
3495
  inject("data-v-1409a14c_0", {
3939
3496
  source: ".ui-date-field.el-date-editor[data-v-1409a14c]{width:100%}",
@@ -3944,26 +3501,26 @@ const __vue_inject_styles__$p = function (inject) {
3944
3501
  /* scoped */
3945
3502
 
3946
3503
 
3947
- const __vue_scope_id__$p = "data-v-1409a14c";
3504
+ const __vue_scope_id__$q = "data-v-1409a14c";
3948
3505
  /* module identifier */
3949
3506
 
3950
- const __vue_module_identifier__$p = undefined;
3507
+ const __vue_module_identifier__$q = undefined;
3951
3508
  /* functional template */
3952
3509
 
3953
- const __vue_is_functional_template__$p = false;
3510
+ const __vue_is_functional_template__$q = false;
3954
3511
  /* style inject SSR */
3955
3512
 
3956
3513
  /* style inject shadow dom */
3957
3514
 
3958
- const __vue_component__$p = /*#__PURE__*/normalizeComponent({
3959
- render: __vue_render__$o,
3960
- staticRenderFns: __vue_staticRenderFns__$o
3961
- }, __vue_inject_styles__$p, __vue_script__$p, __vue_scope_id__$p, __vue_is_functional_template__$p, __vue_module_identifier__$p, false, createInjector, undefined, undefined);
3515
+ const __vue_component__$q = /*#__PURE__*/normalizeComponent({
3516
+ render: __vue_render__$p,
3517
+ staticRenderFns: __vue_staticRenderFns__$p
3518
+ }, __vue_inject_styles__$q, __vue_script__$q, __vue_scope_id__$q, __vue_is_functional_template__$q, __vue_module_identifier__$q, false, createInjector, undefined, undefined);
3962
3519
 
3963
- var DateField = __vue_component__$p;
3520
+ var DateField = __vue_component__$q;
3964
3521
 
3965
3522
  //
3966
- var script$n = {
3523
+ var script$o = {
3967
3524
  name: 'ui-field-timepicker',
3968
3525
  mixins: [FieldMixin],
3969
3526
  props: {
@@ -4029,10 +3586,10 @@ var script$n = {
4029
3586
  };
4030
3587
 
4031
3588
  /* script */
4032
- const __vue_script__$o = script$n;
3589
+ const __vue_script__$p = script$o;
4033
3590
  /* template */
4034
3591
 
4035
- var __vue_render__$n = function () {
3592
+ var __vue_render__$o = function () {
4036
3593
  var _vm = this;
4037
3594
 
4038
3595
  var _h = _vm.$createElement;
@@ -4054,10 +3611,10 @@ var __vue_render__$n = function () {
4054
3611
  }, 'el-time-picker', _vm.$attrs, false), _vm._listeners));
4055
3612
  };
4056
3613
 
4057
- var __vue_staticRenderFns__$n = [];
3614
+ var __vue_staticRenderFns__$o = [];
4058
3615
  /* style */
4059
3616
 
4060
- const __vue_inject_styles__$o = function (inject) {
3617
+ const __vue_inject_styles__$p = function (inject) {
4061
3618
  if (!inject) return;
4062
3619
  inject("data-v-18a65ed4_0", {
4063
3620
  source: ".ui-timepicker-field.el-date-editor[data-v-18a65ed4]{width:100%}",
@@ -4068,26 +3625,26 @@ const __vue_inject_styles__$o = function (inject) {
4068
3625
  /* scoped */
4069
3626
 
4070
3627
 
4071
- const __vue_scope_id__$o = "data-v-18a65ed4";
3628
+ const __vue_scope_id__$p = "data-v-18a65ed4";
4072
3629
  /* module identifier */
4073
3630
 
4074
- const __vue_module_identifier__$o = undefined;
3631
+ const __vue_module_identifier__$p = undefined;
4075
3632
  /* functional template */
4076
3633
 
4077
- const __vue_is_functional_template__$o = false;
3634
+ const __vue_is_functional_template__$p = false;
4078
3635
  /* style inject SSR */
4079
3636
 
4080
3637
  /* style inject shadow dom */
4081
3638
 
4082
- const __vue_component__$o = /*#__PURE__*/normalizeComponent({
4083
- render: __vue_render__$n,
4084
- staticRenderFns: __vue_staticRenderFns__$n
4085
- }, __vue_inject_styles__$o, __vue_script__$o, __vue_scope_id__$o, __vue_is_functional_template__$o, __vue_module_identifier__$o, false, createInjector, undefined, undefined);
3639
+ const __vue_component__$p = /*#__PURE__*/normalizeComponent({
3640
+ render: __vue_render__$o,
3641
+ staticRenderFns: __vue_staticRenderFns__$o
3642
+ }, __vue_inject_styles__$p, __vue_script__$p, __vue_scope_id__$p, __vue_is_functional_template__$p, __vue_module_identifier__$p, false, createInjector, undefined, undefined);
4086
3643
 
4087
- var TimePickerField = __vue_component__$o;
3644
+ var TimePickerField = __vue_component__$p;
4088
3645
 
4089
3646
  //
4090
- var script$m = {
3647
+ var script$n = {
4091
3648
  name: 'ui-field-timeselect',
4092
3649
  mixins: [FieldMixin],
4093
3650
  methods: {
@@ -4100,10 +3657,10 @@ var script$m = {
4100
3657
  };
4101
3658
 
4102
3659
  /* script */
4103
- const __vue_script__$n = script$m;
3660
+ const __vue_script__$o = script$n;
4104
3661
  /* template */
4105
3662
 
4106
- var __vue_render__$m = function () {
3663
+ var __vue_render__$n = function () {
4107
3664
  var _vm = this;
4108
3665
 
4109
3666
  var _h = _vm.$createElement;
@@ -4118,10 +3675,10 @@ var __vue_render__$m = function () {
4118
3675
  }, 'el-time-select', _vm.$attrs, false), _vm.$listeners));
4119
3676
  };
4120
3677
 
4121
- var __vue_staticRenderFns__$m = [];
3678
+ var __vue_staticRenderFns__$n = [];
4122
3679
  /* style */
4123
3680
 
4124
- const __vue_inject_styles__$n = function (inject) {
3681
+ const __vue_inject_styles__$o = function (inject) {
4125
3682
  if (!inject) return;
4126
3683
  inject("data-v-502897fb_0", {
4127
3684
  source: ".ui-timeselect-field.el-date-editor[data-v-502897fb]{width:100%}",
@@ -4132,23 +3689,23 @@ const __vue_inject_styles__$n = function (inject) {
4132
3689
  /* scoped */
4133
3690
 
4134
3691
 
4135
- const __vue_scope_id__$n = "data-v-502897fb";
3692
+ const __vue_scope_id__$o = "data-v-502897fb";
4136
3693
  /* module identifier */
4137
3694
 
4138
- const __vue_module_identifier__$n = undefined;
3695
+ const __vue_module_identifier__$o = undefined;
4139
3696
  /* functional template */
4140
3697
 
4141
- const __vue_is_functional_template__$n = false;
3698
+ const __vue_is_functional_template__$o = false;
4142
3699
  /* style inject SSR */
4143
3700
 
4144
3701
  /* style inject shadow dom */
4145
3702
 
4146
- const __vue_component__$n = /*#__PURE__*/normalizeComponent({
4147
- render: __vue_render__$m,
4148
- staticRenderFns: __vue_staticRenderFns__$m
4149
- }, __vue_inject_styles__$n, __vue_script__$n, __vue_scope_id__$n, __vue_is_functional_template__$n, __vue_module_identifier__$n, false, createInjector, undefined, undefined);
3703
+ const __vue_component__$o = /*#__PURE__*/normalizeComponent({
3704
+ render: __vue_render__$n,
3705
+ staticRenderFns: __vue_staticRenderFns__$n
3706
+ }, __vue_inject_styles__$o, __vue_script__$o, __vue_scope_id__$o, __vue_is_functional_template__$o, __vue_module_identifier__$o, false, createInjector, undefined, undefined);
4150
3707
 
4151
- var TimeSelectField = __vue_component__$n;
3708
+ var TimeSelectField = __vue_component__$o;
4152
3709
 
4153
3710
  //
4154
3711
 
@@ -4157,7 +3714,7 @@ Date.prototype.calendar = function () {
4157
3714
  return [this.getFullYear(), month < 10 ? "0" + month : month, this.getDate()].join("-");
4158
3715
  };
4159
3716
 
4160
- var script$l = {
3717
+ var script$m = {
4161
3718
  name: 'ui-field-datse',
4162
3719
  mixins: [FieldMixin],
4163
3720
  props: {
@@ -4211,10 +3768,10 @@ var script$l = {
4211
3768
  };
4212
3769
 
4213
3770
  /* script */
4214
- const __vue_script__$m = script$l;
3771
+ const __vue_script__$n = script$m;
4215
3772
  /* template */
4216
3773
 
4217
- var __vue_render__$l = function () {
3774
+ var __vue_render__$m = function () {
4218
3775
  var _vm = this;
4219
3776
 
4220
3777
  var _h = _vm.$createElement;
@@ -4260,10 +3817,10 @@ var __vue_render__$l = function () {
4260
3817
  })], 1);
4261
3818
  };
4262
3819
 
4263
- var __vue_staticRenderFns__$l = [];
3820
+ var __vue_staticRenderFns__$m = [];
4264
3821
  /* style */
4265
3822
 
4266
- const __vue_inject_styles__$m = function (inject) {
3823
+ const __vue_inject_styles__$n = function (inject) {
4267
3824
  if (!inject) return;
4268
3825
  inject("data-v-33f2225c_0", {
4269
3826
  source: ".ui-date-field.el-date-editor[data-v-33f2225c]{width:100%}.calendar[data-v-33f2225c]{margin-right:20px}.calendar .calendarItem[data-v-33f2225c]{display:inline-block;box-sizing:border-box;width:45px;height:35px;cursor:pointer;border-right:1px solid #e3e3ee;text-align:center;border:1px solid #e3e3e3;font-size:14px}.calendar .calendarItem[data-v-33f2225c]:first-of-type{border-right:none;border-top-left-radius:5px;border-bottom-left-radius:5px}.calendar .calendarItem[data-v-33f2225c]:last-of-type{border-left:none;border-top-right-radius:5px;border-bottom-right-radius:5px}.calendar .calendar-active[data-v-33f2225c]{color:#1890ff;background:#e3e3e3}.separator[data-v-33f2225c]{margin-right:10px;color:#333}",
@@ -4274,26 +3831,26 @@ const __vue_inject_styles__$m = function (inject) {
4274
3831
  /* scoped */
4275
3832
 
4276
3833
 
4277
- const __vue_scope_id__$m = "data-v-33f2225c";
3834
+ const __vue_scope_id__$n = "data-v-33f2225c";
4278
3835
  /* module identifier */
4279
3836
 
4280
- const __vue_module_identifier__$m = undefined;
3837
+ const __vue_module_identifier__$n = undefined;
4281
3838
  /* functional template */
4282
3839
 
4283
- const __vue_is_functional_template__$m = false;
3840
+ const __vue_is_functional_template__$n = false;
4284
3841
  /* style inject SSR */
4285
3842
 
4286
3843
  /* style inject shadow dom */
4287
3844
 
4288
- const __vue_component__$m = /*#__PURE__*/normalizeComponent({
4289
- render: __vue_render__$l,
4290
- staticRenderFns: __vue_staticRenderFns__$l
4291
- }, __vue_inject_styles__$m, __vue_script__$m, __vue_scope_id__$m, __vue_is_functional_template__$m, __vue_module_identifier__$m, false, createInjector, undefined, undefined);
3845
+ const __vue_component__$n = /*#__PURE__*/normalizeComponent({
3846
+ render: __vue_render__$m,
3847
+ staticRenderFns: __vue_staticRenderFns__$m
3848
+ }, __vue_inject_styles__$n, __vue_script__$n, __vue_scope_id__$n, __vue_is_functional_template__$n, __vue_module_identifier__$n, false, createInjector, undefined, undefined);
4292
3849
 
4293
- var DatecCalendarField = __vue_component__$m;
3850
+ var DatecCalendarField = __vue_component__$n;
4294
3851
 
4295
3852
  //
4296
- var script$k = {
3853
+ var script$l = {
4297
3854
  name: 'ui-field-slider',
4298
3855
  mixins: [FieldMixin],
4299
3856
  props: {
@@ -4363,10 +3920,10 @@ var script$k = {
4363
3920
  };
4364
3921
 
4365
3922
  /* script */
4366
- const __vue_script__$l = script$k;
3923
+ const __vue_script__$m = script$l;
4367
3924
  /* template */
4368
3925
 
4369
- var __vue_render__$k = function () {
3926
+ var __vue_render__$l = function () {
4370
3927
  var _vm = this;
4371
3928
 
4372
3929
  var _h = _vm.$createElement;
@@ -4392,43 +3949,43 @@ var __vue_render__$k = function () {
4392
3949
  }, 'el-slider', _vm.$attrs, false), _vm._listeners));
4393
3950
  };
4394
3951
 
4395
- var __vue_staticRenderFns__$k = [];
3952
+ var __vue_staticRenderFns__$l = [];
4396
3953
  /* style */
4397
3954
 
4398
- const __vue_inject_styles__$l = undefined;
3955
+ const __vue_inject_styles__$m = undefined;
4399
3956
  /* scoped */
4400
3957
 
4401
- const __vue_scope_id__$l = "data-v-1f3d5145";
3958
+ const __vue_scope_id__$m = "data-v-1f3d5145";
4402
3959
  /* module identifier */
4403
3960
 
4404
- const __vue_module_identifier__$l = undefined;
3961
+ const __vue_module_identifier__$m = undefined;
4405
3962
  /* functional template */
4406
3963
 
4407
- const __vue_is_functional_template__$l = false;
3964
+ const __vue_is_functional_template__$m = false;
4408
3965
  /* style inject */
4409
3966
 
4410
3967
  /* style inject SSR */
4411
3968
 
4412
3969
  /* style inject shadow dom */
4413
3970
 
4414
- const __vue_component__$l = /*#__PURE__*/normalizeComponent({
4415
- render: __vue_render__$k,
4416
- staticRenderFns: __vue_staticRenderFns__$k
4417
- }, __vue_inject_styles__$l, __vue_script__$l, __vue_scope_id__$l, __vue_is_functional_template__$l, __vue_module_identifier__$l, false, undefined, undefined, undefined);
3971
+ const __vue_component__$m = /*#__PURE__*/normalizeComponent({
3972
+ render: __vue_render__$l,
3973
+ staticRenderFns: __vue_staticRenderFns__$l
3974
+ }, __vue_inject_styles__$m, __vue_script__$m, __vue_scope_id__$m, __vue_is_functional_template__$m, __vue_module_identifier__$m, false, undefined, undefined, undefined);
4418
3975
 
4419
- var SliderField = __vue_component__$l;
3976
+ var SliderField = __vue_component__$m;
4420
3977
 
4421
3978
  //
4422
- var script$j = {
3979
+ var script$k = {
4423
3980
  name: 'ui-field-switch',
4424
3981
  mixins: [FieldMixin]
4425
3982
  };
4426
3983
 
4427
3984
  /* script */
4428
- const __vue_script__$k = script$j;
3985
+ const __vue_script__$l = script$k;
4429
3986
  /* template */
4430
3987
 
4431
- var __vue_render__$j = function () {
3988
+ var __vue_render__$k = function () {
4432
3989
  var _vm = this;
4433
3990
 
4434
3991
  var _h = _vm.$createElement;
@@ -4442,34 +3999,34 @@ var __vue_render__$j = function () {
4442
3999
  }, 'el-switch', _vm.$attrs, false), _vm.$listeners));
4443
4000
  };
4444
4001
 
4445
- var __vue_staticRenderFns__$j = [];
4002
+ var __vue_staticRenderFns__$k = [];
4446
4003
  /* style */
4447
4004
 
4448
- const __vue_inject_styles__$k = undefined;
4005
+ const __vue_inject_styles__$l = undefined;
4449
4006
  /* scoped */
4450
4007
 
4451
- const __vue_scope_id__$k = "data-v-0a1271ea";
4008
+ const __vue_scope_id__$l = "data-v-0a1271ea";
4452
4009
  /* module identifier */
4453
4010
 
4454
- const __vue_module_identifier__$k = undefined;
4011
+ const __vue_module_identifier__$l = undefined;
4455
4012
  /* functional template */
4456
4013
 
4457
- const __vue_is_functional_template__$k = false;
4014
+ const __vue_is_functional_template__$l = false;
4458
4015
  /* style inject */
4459
4016
 
4460
4017
  /* style inject SSR */
4461
4018
 
4462
4019
  /* style inject shadow dom */
4463
4020
 
4464
- const __vue_component__$k = /*#__PURE__*/normalizeComponent({
4465
- render: __vue_render__$j,
4466
- staticRenderFns: __vue_staticRenderFns__$j
4467
- }, __vue_inject_styles__$k, __vue_script__$k, __vue_scope_id__$k, __vue_is_functional_template__$k, __vue_module_identifier__$k, false, undefined, undefined, undefined);
4021
+ const __vue_component__$l = /*#__PURE__*/normalizeComponent({
4022
+ render: __vue_render__$k,
4023
+ staticRenderFns: __vue_staticRenderFns__$k
4024
+ }, __vue_inject_styles__$l, __vue_script__$l, __vue_scope_id__$l, __vue_is_functional_template__$l, __vue_module_identifier__$l, false, undefined, undefined, undefined);
4468
4025
 
4469
- var SwitchField = __vue_component__$k;
4026
+ var SwitchField = __vue_component__$l;
4470
4027
 
4471
4028
  //
4472
- var script$i = {
4029
+ var script$j = {
4473
4030
  name: 'ui-field-rate',
4474
4031
  mixins: [FieldMixin],
4475
4032
  props: {
@@ -4503,10 +4060,10 @@ var script$i = {
4503
4060
  };
4504
4061
 
4505
4062
  /* script */
4506
- const __vue_script__$j = script$i;
4063
+ const __vue_script__$k = script$j;
4507
4064
  /* template */
4508
4065
 
4509
- var __vue_render__$i = function () {
4066
+ var __vue_render__$j = function () {
4510
4067
  var _vm = this;
4511
4068
 
4512
4069
  var _h = _vm.$createElement;
@@ -4527,34 +4084,34 @@ var __vue_render__$i = function () {
4527
4084
  }, 'el-rate', _vm.$attrs, false), _vm._listeners));
4528
4085
  };
4529
4086
 
4530
- var __vue_staticRenderFns__$i = [];
4087
+ var __vue_staticRenderFns__$j = [];
4531
4088
  /* style */
4532
4089
 
4533
- const __vue_inject_styles__$j = undefined;
4090
+ const __vue_inject_styles__$k = undefined;
4534
4091
  /* scoped */
4535
4092
 
4536
- const __vue_scope_id__$j = "data-v-8027f8f8";
4093
+ const __vue_scope_id__$k = "data-v-8027f8f8";
4537
4094
  /* module identifier */
4538
4095
 
4539
- const __vue_module_identifier__$j = undefined;
4096
+ const __vue_module_identifier__$k = undefined;
4540
4097
  /* functional template */
4541
4098
 
4542
- const __vue_is_functional_template__$j = false;
4099
+ const __vue_is_functional_template__$k = false;
4543
4100
  /* style inject */
4544
4101
 
4545
4102
  /* style inject SSR */
4546
4103
 
4547
4104
  /* style inject shadow dom */
4548
4105
 
4549
- const __vue_component__$j = /*#__PURE__*/normalizeComponent({
4550
- render: __vue_render__$i,
4551
- staticRenderFns: __vue_staticRenderFns__$i
4552
- }, __vue_inject_styles__$j, __vue_script__$j, __vue_scope_id__$j, __vue_is_functional_template__$j, __vue_module_identifier__$j, false, undefined, undefined, undefined);
4106
+ const __vue_component__$k = /*#__PURE__*/normalizeComponent({
4107
+ render: __vue_render__$j,
4108
+ staticRenderFns: __vue_staticRenderFns__$j
4109
+ }, __vue_inject_styles__$k, __vue_script__$k, __vue_scope_id__$k, __vue_is_functional_template__$k, __vue_module_identifier__$k, false, undefined, undefined, undefined);
4553
4110
 
4554
- var RateField = __vue_component__$j;
4111
+ var RateField = __vue_component__$k;
4555
4112
 
4556
4113
  //
4557
- var script$h = {
4114
+ var script$i = {
4558
4115
  name: 'ui-field-color',
4559
4116
  mixins: [FieldMixin],
4560
4117
  props: {
@@ -4566,10 +4123,10 @@ var script$h = {
4566
4123
  };
4567
4124
 
4568
4125
  /* script */
4569
- const __vue_script__$i = script$h;
4126
+ const __vue_script__$j = script$i;
4570
4127
  /* template */
4571
4128
 
4572
- var __vue_render__$h = function () {
4129
+ var __vue_render__$i = function () {
4573
4130
  var _vm = this;
4574
4131
 
4575
4132
  var _h = _vm.$createElement;
@@ -4585,10 +4142,10 @@ var __vue_render__$h = function () {
4585
4142
  }, 'el-color-picker', _vm.$attrs, false), _vm.$listeners));
4586
4143
  };
4587
4144
 
4588
- var __vue_staticRenderFns__$h = [];
4145
+ var __vue_staticRenderFns__$i = [];
4589
4146
  /* style */
4590
4147
 
4591
- const __vue_inject_styles__$i = function (inject) {
4148
+ const __vue_inject_styles__$j = function (inject) {
4592
4149
  if (!inject) return;
4593
4150
  inject("data-v-ce10c0fa_0", {
4594
4151
  source: ".ui-field-color[data-v-ce10c0fa]{width:100%}",
@@ -4599,23 +4156,23 @@ const __vue_inject_styles__$i = function (inject) {
4599
4156
  /* scoped */
4600
4157
 
4601
4158
 
4602
- const __vue_scope_id__$i = "data-v-ce10c0fa";
4159
+ const __vue_scope_id__$j = "data-v-ce10c0fa";
4603
4160
  /* module identifier */
4604
4161
 
4605
- const __vue_module_identifier__$i = undefined;
4162
+ const __vue_module_identifier__$j = undefined;
4606
4163
  /* functional template */
4607
4164
 
4608
- const __vue_is_functional_template__$i = false;
4165
+ const __vue_is_functional_template__$j = false;
4609
4166
  /* style inject SSR */
4610
4167
 
4611
4168
  /* style inject shadow dom */
4612
4169
 
4613
- const __vue_component__$i = /*#__PURE__*/normalizeComponent({
4614
- render: __vue_render__$h,
4615
- staticRenderFns: __vue_staticRenderFns__$h
4616
- }, __vue_inject_styles__$i, __vue_script__$i, __vue_scope_id__$i, __vue_is_functional_template__$i, __vue_module_identifier__$i, false, createInjector, undefined, undefined);
4170
+ const __vue_component__$j = /*#__PURE__*/normalizeComponent({
4171
+ render: __vue_render__$i,
4172
+ staticRenderFns: __vue_staticRenderFns__$i
4173
+ }, __vue_inject_styles__$j, __vue_script__$j, __vue_scope_id__$j, __vue_is_functional_template__$j, __vue_module_identifier__$j, false, createInjector, undefined, undefined);
4617
4174
 
4618
- var ColorField = __vue_component__$i;
4175
+ var ColorField = __vue_component__$j;
4619
4176
 
4620
4177
  var Upload = {
4621
4178
  default: function (url) {
@@ -4844,21 +4401,12 @@ const RichField$1 = {
4844
4401
 
4845
4402
  }
4846
4403
  };
4847
- /**
4848
- * ui-form-item 添加 type="rich" 支持
4849
- */
4850
-
4851
- const attachToFormItem = () => {
4852
- addFieldType('rich', RichField$1);
4853
- };
4854
-
4855
- RichField$1.attachToFormItem = attachToFormItem;
4856
4404
 
4857
4405
  /* script */
4858
- const __vue_script__$h = RichField$1;
4406
+ const __vue_script__$i = RichField$1;
4859
4407
  /* template */
4860
4408
 
4861
- var __vue_render__$g = function () {
4409
+ var __vue_render__$h = function () {
4862
4410
  var _vm = this;
4863
4411
 
4864
4412
  var _h = _vm.$createElement;
@@ -4876,17 +4424,17 @@ var __vue_render__$g = function () {
4876
4424
  });
4877
4425
  };
4878
4426
 
4879
- var __vue_staticRenderFns__$g = [];
4427
+ var __vue_staticRenderFns__$h = [];
4880
4428
  /* style */
4881
4429
 
4882
- const __vue_inject_styles__$h = function (inject) {
4430
+ const __vue_inject_styles__$i = function (inject) {
4883
4431
  if (!inject) return;
4884
- inject("data-v-744c5c32_0", {
4432
+ inject("data-v-52e02522_0", {
4885
4433
  source: ".quill-editor .ql-font span[data-value=Arial]::before{content:\"Arial\"!important;font-family:Arial,serif}.quill-editor .ql-font span[data-value=FangSong]::before{content:\"仿宋\"!important;font-family:\"仿宋_GB2312\",FangSong_GB2312,\"宋体\",SimSun,STFangsong,STSong,serif}.quill-editor .ql-font span[data-value=HeiTi]::before{content:\"黑体\"!important;font-family:\"黑体\",SimHei,\"微软正黑体\",\"Microsoft JhengHei\",STHeiti,serif}.quill-editor .ql-font span[data-value=Microsoft]::before{content:\"微软雅黑\"!important;font-family:\"微软雅黑\",\"Microsoft YaHei\",serif}.quill-editor .ql-font-Arial{font-family:Arial,serif}.quill-editor .ql-font-FangSong{font-family:\"仿宋_GB2312\",FangSong_GB2312,\"宋体\",SimSun,STFangsong,STSong,serif}.quill-editor .ql-font-HeiTi{font-family:\"黑体\",SimHei,\"微软正黑体\",\"Microsoft JhengHei\",STHeiti,serif}.quill-editor .ql-font-Microsoft{font-family:\"微软雅黑\",\"Microsoft YaHei\",serif}",
4886
4434
  map: undefined,
4887
4435
  media: undefined
4888
- }), inject("data-v-744c5c32_1", {
4889
- source: ".quill-editor[data-v-744c5c32]{width:100%;display:flex;align-items:initial!important;flex-direction:column}.quill-editor .ql-toolbar[data-v-744c5c32]{flex:none}.quill-editor .ql-container[data-v-744c5c32]{flex:auto;height:initial;display:flex;flex-direction:column}.quill-editor .ql-container .ql-editor[data-v-744c5c32]{flex:auto}.quill-editor[data-v-744c5c32] .ql-editor{min-height:200px}",
4436
+ }), inject("data-v-52e02522_1", {
4437
+ source: ".quill-editor[data-v-52e02522]{width:100%;display:flex;align-items:initial!important;flex-direction:column}.quill-editor .ql-toolbar[data-v-52e02522]{flex:none}.quill-editor .ql-container[data-v-52e02522]{flex:auto;height:initial;display:flex;flex-direction:column}.quill-editor .ql-container .ql-editor[data-v-52e02522]{flex:auto}.quill-editor[data-v-52e02522] .ql-editor{min-height:200px}",
4890
4438
  map: undefined,
4891
4439
  media: undefined
4892
4440
  });
@@ -4894,23 +4442,23 @@ const __vue_inject_styles__$h = function (inject) {
4894
4442
  /* scoped */
4895
4443
 
4896
4444
 
4897
- const __vue_scope_id__$h = "data-v-744c5c32";
4445
+ const __vue_scope_id__$i = "data-v-52e02522";
4898
4446
  /* module identifier */
4899
4447
 
4900
- const __vue_module_identifier__$h = undefined;
4448
+ const __vue_module_identifier__$i = undefined;
4901
4449
  /* functional template */
4902
4450
 
4903
- const __vue_is_functional_template__$h = false;
4451
+ const __vue_is_functional_template__$i = false;
4904
4452
  /* style inject SSR */
4905
4453
 
4906
4454
  /* style inject shadow dom */
4907
4455
 
4908
- const __vue_component__$h = /*#__PURE__*/normalizeComponent({
4909
- render: __vue_render__$g,
4910
- staticRenderFns: __vue_staticRenderFns__$g
4911
- }, __vue_inject_styles__$h, __vue_script__$h, __vue_scope_id__$h, __vue_is_functional_template__$h, __vue_module_identifier__$h, false, createInjector, undefined, undefined);
4456
+ const __vue_component__$i = /*#__PURE__*/normalizeComponent({
4457
+ render: __vue_render__$h,
4458
+ staticRenderFns: __vue_staticRenderFns__$h
4459
+ }, __vue_inject_styles__$i, __vue_script__$i, __vue_scope_id__$i, __vue_is_functional_template__$i, __vue_module_identifier__$i, false, createInjector, undefined, undefined);
4912
4460
 
4913
- var RichField = __vue_component__$h;
4461
+ var RichField = __vue_component__$i;
4914
4462
 
4915
4463
  //
4916
4464
 
@@ -4928,7 +4476,7 @@ const getUrlSuffix = url => {
4928
4476
  return url.substring(index + 1);
4929
4477
  };
4930
4478
 
4931
- var script$g = {
4479
+ var script$h = {
4932
4480
  name: 'ui-field-upload-file',
4933
4481
  mixins: [FieldMixin],
4934
4482
  props: {
@@ -5091,10 +4639,10 @@ var script$g = {
5091
4639
  };
5092
4640
 
5093
4641
  /* script */
5094
- const __vue_script__$g = script$g;
4642
+ const __vue_script__$h = script$h;
5095
4643
  /* template */
5096
4644
 
5097
- var __vue_render__$f = function () {
4645
+ var __vue_render__$g = function () {
5098
4646
  var _vm = this;
5099
4647
 
5100
4648
  var _h = _vm.$createElement;
@@ -5151,10 +4699,10 @@ var __vue_render__$f = function () {
5151
4699
  })], 2)], 1);
5152
4700
  };
5153
4701
 
5154
- var __vue_staticRenderFns__$f = [];
4702
+ var __vue_staticRenderFns__$g = [];
5155
4703
  /* style */
5156
4704
 
5157
- const __vue_inject_styles__$g = function (inject) {
4705
+ const __vue_inject_styles__$h = function (inject) {
5158
4706
  if (!inject) return;
5159
4707
  inject("data-v-19ac5bf8_0", {
5160
4708
  source: ".ui-file-upload-field[data-v-19ac5bf8]{width:100%}.ui-file-upload-field .uploader[data-v-19ac5bf8]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-19ac5bf8] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-19ac5bf8] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-19ac5bf8]{padding:5px 10px;line-height:1;background-color:#409eff;color:#fff;font-size:12px;transition:background-color .3s}.ui-file-upload-field .upload-btn[data-v-19ac5bf8]:hover{background-color:#0d84ff}.ui-file-upload-field .files .file[data-v-19ac5bf8]{color:#606266;font-size:14px;transition:all .3s;cursor:pointer;line-height:28px;display:flex;align-items:center}.ui-file-upload-field .files .file a[data-v-19ac5bf8]{flex:1;color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-19ac5bf8]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-19ac5bf8]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-19ac5bf8]{color:#409eff}.ui-file-upload-field .files .file:hover .close[data-v-19ac5bf8]{color:#409eff;visibility:visible}",
@@ -5165,26 +4713,26 @@ const __vue_inject_styles__$g = function (inject) {
5165
4713
  /* scoped */
5166
4714
 
5167
4715
 
5168
- const __vue_scope_id__$g = "data-v-19ac5bf8";
4716
+ const __vue_scope_id__$h = "data-v-19ac5bf8";
5169
4717
  /* module identifier */
5170
4718
 
5171
- const __vue_module_identifier__$g = undefined;
4719
+ const __vue_module_identifier__$h = undefined;
5172
4720
  /* functional template */
5173
4721
 
5174
- const __vue_is_functional_template__$g = false;
4722
+ const __vue_is_functional_template__$h = false;
5175
4723
  /* style inject SSR */
5176
4724
 
5177
4725
  /* style inject shadow dom */
5178
4726
 
5179
- const __vue_component__$g = /*#__PURE__*/normalizeComponent({
5180
- render: __vue_render__$f,
5181
- staticRenderFns: __vue_staticRenderFns__$f
5182
- }, __vue_inject_styles__$g, __vue_script__$g, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, createInjector, undefined, undefined);
4727
+ const __vue_component__$h = /*#__PURE__*/normalizeComponent({
4728
+ render: __vue_render__$g,
4729
+ staticRenderFns: __vue_staticRenderFns__$g
4730
+ }, __vue_inject_styles__$h, __vue_script__$h, __vue_scope_id__$h, __vue_is_functional_template__$h, __vue_module_identifier__$h, false, createInjector, undefined, undefined);
5183
4731
 
5184
- var FileUploadField = __vue_component__$g;
4732
+ var FileUploadField = __vue_component__$h;
5185
4733
 
5186
4734
  //
5187
- var script$f = {
4735
+ var script$g = {
5188
4736
  name: 'ui-field-upload-image',
5189
4737
  mixins: [FileUploadField],
5190
4738
  props: {
@@ -5204,10 +4752,10 @@ var script$f = {
5204
4752
  };
5205
4753
 
5206
4754
  /* script */
5207
- const __vue_script__$f = script$f;
4755
+ const __vue_script__$g = script$g;
5208
4756
  /* template */
5209
4757
 
5210
- var __vue_render__$e = function () {
4758
+ var __vue_render__$f = function () {
5211
4759
  var _vm = this;
5212
4760
 
5213
4761
  var _h = _vm.$createElement;
@@ -5263,10 +4811,10 @@ var __vue_render__$e = function () {
5263
4811
  }), _vm._v(" "), _c('span', [_vm._v("上传图片")])])]) : _vm._e()], 2);
5264
4812
  };
5265
4813
 
5266
- var __vue_staticRenderFns__$e = [];
4814
+ var __vue_staticRenderFns__$f = [];
5267
4815
  /* style */
5268
4816
 
5269
- const __vue_inject_styles__$f = function (inject) {
4817
+ const __vue_inject_styles__$g = function (inject) {
5270
4818
  if (!inject) return;
5271
4819
  inject("data-v-65127316_0", {
5272
4820
  source: ".ui-image-upload-field[data-v-65127316]{width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.ui-image-upload-field .uploader.disabled[data-v-65127316] .el-upload{cursor:not-allowed;pointer-events:none}.ui-image-upload-field .uploader.disabled[data-v-65127316] .el-upload .upload-btn{background:#edeef0;color:#888c94}.ui-image-upload-field .item[data-v-65127316]{position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;width:140px;height:140px;margin-bottom:10px;margin-right:10px;border:1px dashed #d0d2d7;padding:8px;border-radius:2px;box-sizing:border-box}.ui-image-upload-field .item .remove[data-v-65127316]{position:absolute;top:0;right:0;width:24px;height:24px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 22px;cursor:pointer}.ui-image-upload-field .item .remove .el-icon-close[data-v-65127316]{position:absolute;top:4px;right:4px;color:#fff;font-size:14px}.ui-image-upload-field .item.upload-btn[data-v-65127316]{background:#f7f8f9;display:flex;flex-direction:column;align-items:center;justify-content:center;border:none;color:#409eff}.ui-image-upload-field .item.upload-btn>.el-icon-plus[data-v-65127316]{font-size:1.6em}.ui-image-upload-field .item.upload-btn>span[data-v-65127316]{font-size:16px;line-height:1.2;margin-top:5px}.ui-image-upload-field .item:hover .modal[data-v-65127316]{visibility:visible}.ui-image-upload-field[data-v-65127316] .preview{display:inline-block;width:auto;max-width:60%;left:50%;transform:translateX(-50%)}",
@@ -5277,26 +4825,26 @@ const __vue_inject_styles__$f = function (inject) {
5277
4825
  /* scoped */
5278
4826
 
5279
4827
 
5280
- const __vue_scope_id__$f = "data-v-65127316";
4828
+ const __vue_scope_id__$g = "data-v-65127316";
5281
4829
  /* module identifier */
5282
4830
 
5283
- const __vue_module_identifier__$f = undefined;
4831
+ const __vue_module_identifier__$g = undefined;
5284
4832
  /* functional template */
5285
4833
 
5286
- const __vue_is_functional_template__$f = false;
4834
+ const __vue_is_functional_template__$g = false;
5287
4835
  /* style inject SSR */
5288
4836
 
5289
4837
  /* style inject shadow dom */
5290
4838
 
5291
- const __vue_component__$f = /*#__PURE__*/normalizeComponent({
5292
- render: __vue_render__$e,
5293
- staticRenderFns: __vue_staticRenderFns__$e
5294
- }, __vue_inject_styles__$f, __vue_script__$f, __vue_scope_id__$f, __vue_is_functional_template__$f, __vue_module_identifier__$f, false, createInjector, undefined, undefined);
4839
+ const __vue_component__$g = /*#__PURE__*/normalizeComponent({
4840
+ render: __vue_render__$f,
4841
+ staticRenderFns: __vue_staticRenderFns__$f
4842
+ }, __vue_inject_styles__$g, __vue_script__$g, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, createInjector, undefined, undefined);
5295
4843
 
5296
- var ImageUploadField = __vue_component__$f;
4844
+ var ImageUploadField = __vue_component__$g;
5297
4845
 
5298
4846
  //
5299
- var script$e = {
4847
+ var script$f = {
5300
4848
  name: 'ui-field-trigger-dialog',
5301
4849
  mixins: [FieldMixin],
5302
4850
  props: {
@@ -5331,10 +4879,10 @@ var script$e = {
5331
4879
  };
5332
4880
 
5333
4881
  /* script */
5334
- const __vue_script__$e = script$e;
4882
+ const __vue_script__$f = script$f;
5335
4883
  /* template */
5336
4884
 
5337
- var __vue_render__$d = function () {
4885
+ var __vue_render__$e = function () {
5338
4886
  var _vm = this;
5339
4887
 
5340
4888
  var _h = _vm.$createElement;
@@ -5376,34 +4924,34 @@ var __vue_render__$d = function () {
5376
4924
  }, 'ui-dialog', _vm.dialog, false), _vm.$listeners), [_vm._t("default")], 2)], 1);
5377
4925
  };
5378
4926
 
5379
- var __vue_staticRenderFns__$d = [];
4927
+ var __vue_staticRenderFns__$e = [];
5380
4928
  /* style */
5381
4929
 
5382
- const __vue_inject_styles__$e = undefined;
4930
+ const __vue_inject_styles__$f = undefined;
5383
4931
  /* scoped */
5384
4932
 
5385
- const __vue_scope_id__$e = "data-v-60308614";
4933
+ const __vue_scope_id__$f = "data-v-60308614";
5386
4934
  /* module identifier */
5387
4935
 
5388
- const __vue_module_identifier__$e = undefined;
4936
+ const __vue_module_identifier__$f = undefined;
5389
4937
  /* functional template */
5390
4938
 
5391
- const __vue_is_functional_template__$e = false;
4939
+ const __vue_is_functional_template__$f = false;
5392
4940
  /* style inject */
5393
4941
 
5394
4942
  /* style inject SSR */
5395
4943
 
5396
4944
  /* style inject shadow dom */
5397
4945
 
5398
- const __vue_component__$e = /*#__PURE__*/normalizeComponent({
5399
- render: __vue_render__$d,
5400
- staticRenderFns: __vue_staticRenderFns__$d
5401
- }, __vue_inject_styles__$e, __vue_script__$e, __vue_scope_id__$e, __vue_is_functional_template__$e, __vue_module_identifier__$e, false, undefined, undefined, undefined);
4946
+ const __vue_component__$f = /*#__PURE__*/normalizeComponent({
4947
+ render: __vue_render__$e,
4948
+ staticRenderFns: __vue_staticRenderFns__$e
4949
+ }, __vue_inject_styles__$f, __vue_script__$f, __vue_scope_id__$f, __vue_is_functional_template__$f, __vue_module_identifier__$f, false, undefined, undefined, undefined);
5402
4950
 
5403
- var DialogTrigger = __vue_component__$e;
4951
+ var DialogTrigger = __vue_component__$f;
5404
4952
 
5405
4953
  //
5406
- var script$d = {
4954
+ var script$e = {
5407
4955
  name: 'ui-field-trigger-popover',
5408
4956
  mixins: [FieldMixin],
5409
4957
  props: {
@@ -5452,10 +5000,10 @@ var script$d = {
5452
5000
  };
5453
5001
 
5454
5002
  /* script */
5455
- const __vue_script__$d = script$d;
5003
+ const __vue_script__$e = script$e;
5456
5004
  /* template */
5457
5005
 
5458
- var __vue_render__$c = function () {
5006
+ var __vue_render__$d = function () {
5459
5007
  var _vm = this;
5460
5008
 
5461
5009
  var _h = _vm.$createElement;
@@ -5474,30 +5022,214 @@ var __vue_render__$c = function () {
5474
5022
  callback: function ($$v) {
5475
5023
  _vm.show = $$v;
5476
5024
  },
5477
- expression: "show"
5478
- }
5479
- }, 'el-popover', _vm.popover, false), _vm.$listeners), [_vm._t("default"), _vm._v(" "), _c('el-input', {
5480
- ref: "trigger",
5481
- attrs: {
5482
- "slot": "reference",
5483
- "placeholder": _vm.placeholder,
5484
- "value": _vm.value,
5485
- "readonly": ""
5486
- },
5487
- slot: "reference"
5488
- }, [_c('template', {
5489
- slot: "prepend"
5490
- }, [_c('ui-icon', {
5491
- attrs: {
5492
- "name": _vm.prefixIcon
5493
- }
5494
- })], 1), _vm._v(" "), _c('el-button', {
5495
- attrs: {
5496
- "slot": "append",
5497
- "icon": _vm.icon
5498
- },
5499
- slot: "append"
5500
- })], 2)], 2);
5025
+ expression: "show"
5026
+ }
5027
+ }, 'el-popover', _vm.popover, false), _vm.$listeners), [_vm._t("default"), _vm._v(" "), _c('el-input', {
5028
+ ref: "trigger",
5029
+ attrs: {
5030
+ "slot": "reference",
5031
+ "placeholder": _vm.placeholder,
5032
+ "value": _vm.value,
5033
+ "readonly": ""
5034
+ },
5035
+ slot: "reference"
5036
+ }, [_c('template', {
5037
+ slot: "prepend"
5038
+ }, [_c('ui-icon', {
5039
+ attrs: {
5040
+ "name": _vm.prefixIcon
5041
+ }
5042
+ })], 1), _vm._v(" "), _c('el-button', {
5043
+ attrs: {
5044
+ "slot": "append",
5045
+ "icon": _vm.icon
5046
+ },
5047
+ slot: "append"
5048
+ })], 2)], 2);
5049
+ };
5050
+
5051
+ var __vue_staticRenderFns__$d = [];
5052
+ /* style */
5053
+
5054
+ const __vue_inject_styles__$e = function (inject) {
5055
+ if (!inject) return;
5056
+ inject("data-v-17314b31_0", {
5057
+ source: ".ui-field-trigger-popover[data-v-17314b31]{width:100%}",
5058
+ map: undefined,
5059
+ media: undefined
5060
+ });
5061
+ };
5062
+ /* scoped */
5063
+
5064
+
5065
+ const __vue_scope_id__$e = "data-v-17314b31";
5066
+ /* module identifier */
5067
+
5068
+ const __vue_module_identifier__$e = undefined;
5069
+ /* functional template */
5070
+
5071
+ const __vue_is_functional_template__$e = false;
5072
+ /* style inject SSR */
5073
+
5074
+ /* style inject shadow dom */
5075
+
5076
+ const __vue_component__$e = /*#__PURE__*/normalizeComponent({
5077
+ render: __vue_render__$d,
5078
+ staticRenderFns: __vue_staticRenderFns__$d
5079
+ }, __vue_inject_styles__$e, __vue_script__$e, __vue_scope_id__$e, __vue_is_functional_template__$e, __vue_module_identifier__$e, false, createInjector, undefined, undefined);
5080
+
5081
+ var PopoverTrigger = __vue_component__$e;
5082
+
5083
+ var TriggerField = {
5084
+ name: 'ui-field-trigger',
5085
+ functional: true,
5086
+
5087
+ render(createElement, content) {
5088
+ const {
5089
+ props,
5090
+ data,
5091
+ children
5092
+ } = content; // 默认 dialog. dialog 和 popover 同时配置时 popover 优先
5093
+
5094
+ if (Objects.hasProp(props, 'popover')) {
5095
+ return createElement(PopoverTrigger, data, children);
5096
+ }
5097
+
5098
+ return createElement(DialogTrigger, data, children);
5099
+ }
5100
+
5101
+ };
5102
+
5103
+ //
5104
+ var script$d = {
5105
+ name: 'ui-field-icons',
5106
+ mixins: [FieldMixin],
5107
+ components: {
5108
+ Icon: Icon$1,
5109
+ TriggerField
5110
+ },
5111
+
5112
+ data() {
5113
+ return {
5114
+ filter: '',
5115
+ icons: [],
5116
+ iconsLoading: false,
5117
+ visible: false
5118
+ };
5119
+ },
5120
+
5121
+ computed: {
5122
+ filteredIcons() {
5123
+ return this.icons.filter(icon => icon.toLowerCase().indexOf(String(this.filter).toLowerCase()) !== -1);
5124
+ }
5125
+
5126
+ },
5127
+
5128
+ mounted() {
5129
+ this.initIcons();
5130
+ },
5131
+
5132
+ methods: {
5133
+ async initIcons() {
5134
+ this.iconsLoading = true;
5135
+ const icons = await Iconfont.getIcons();
5136
+ this.iconsLoading = false;
5137
+ this.icons = icons;
5138
+ },
5139
+
5140
+ onChange(val) {
5141
+ this.$emit('input', val);
5142
+ this.$emit('change', val);
5143
+ },
5144
+
5145
+ sel(icon) {
5146
+ this.onChange(icon);
5147
+ this.visible = false;
5148
+ },
5149
+
5150
+ onHide() {
5151
+ this.filter = '';
5152
+ },
5153
+
5154
+ focus() {
5155
+ this.visible = true;
5156
+ }
5157
+
5158
+ }
5159
+ };
5160
+
5161
+ /* script */
5162
+ const __vue_script__$d = script$d;
5163
+ /* template */
5164
+
5165
+ var __vue_render__$c = function () {
5166
+ var _vm = this;
5167
+
5168
+ var _h = _vm.$createElement;
5169
+
5170
+ var _c = _vm._self._c || _h;
5171
+
5172
+ return _c('trigger-field', _vm._b({
5173
+ attrs: {
5174
+ "popover": "",
5175
+ "value": _vm.value,
5176
+ "visible": _vm.visible,
5177
+ "prefix-icon": _vm.value
5178
+ },
5179
+ on: {
5180
+ "update:visible": function ($event) {
5181
+ _vm.visible = $event;
5182
+ },
5183
+ "hide": _vm.onHide
5184
+ }
5185
+ }, 'trigger-field', _vm.$attrs, false), [_c('div', {
5186
+ staticClass: "ui-field-icons"
5187
+ }, [_c('el-input', {
5188
+ staticClass: "filter",
5189
+ attrs: {
5190
+ "placeholder": "输入名称快速查找",
5191
+ "clearable": ""
5192
+ },
5193
+ model: {
5194
+ value: _vm.filter,
5195
+ callback: function ($$v) {
5196
+ _vm.filter = $$v;
5197
+ },
5198
+ expression: "filter"
5199
+ }
5200
+ }), _vm._v(" "), _c('div', {
5201
+ staticClass: "scroll"
5202
+ }, [_c('div', {
5203
+ directives: [{
5204
+ name: "loading",
5205
+ rawName: "v-loading",
5206
+ value: _vm.iconsLoading,
5207
+ expression: "iconsLoading"
5208
+ }],
5209
+ staticClass: "icons"
5210
+ }, _vm._l(_vm.filteredIcons, function (icon) {
5211
+ return _c('div', {
5212
+ key: icon,
5213
+ staticClass: "icon",
5214
+ class: {
5215
+ active: _vm.value === icon
5216
+ },
5217
+ attrs: {
5218
+ "title": icon
5219
+ },
5220
+ on: {
5221
+ "click": function ($event) {
5222
+ return _vm.sel(icon);
5223
+ }
5224
+ }
5225
+ }, [_c('icon', {
5226
+ attrs: {
5227
+ "name": icon
5228
+ }
5229
+ }), _vm._v(" "), _c('span', {
5230
+ staticClass: "ellipsis"
5231
+ }, [_vm._v(_vm._s(icon))])], 1);
5232
+ }), 0)])], 1)]);
5501
5233
  };
5502
5234
 
5503
5235
  var __vue_staticRenderFns__$c = [];
@@ -5505,8 +5237,8 @@ var __vue_staticRenderFns__$c = [];
5505
5237
 
5506
5238
  const __vue_inject_styles__$d = function (inject) {
5507
5239
  if (!inject) return;
5508
- inject("data-v-17314b31_0", {
5509
- source: ".ui-field-trigger-popover[data-v-17314b31]{width:100%}",
5240
+ inject("data-v-12b8c18e_0", {
5241
+ source: ".ui-field-icons .filter[data-v-12b8c18e]{margin-bottom:10px}.ui-field-icons .filter[data-v-12b8c18e] .el-input__validateIcon{display:none}.ui-field-icons .scroll[data-v-12b8c18e]{height:200px;overflow:auto}.ui-field-icons .icons[data-v-12b8c18e]{display:flex;flex-wrap:wrap}.ui-field-icons .icons .icon[data-v-12b8c18e]{flex:none;width:150px;height:28px;margin:2px;padding:4px;border-radius:2px;cursor:pointer;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:row;align-items:center}.ui-field-icons .icons .icon[data-v-12b8c18e]:hover{background:#eaeaea}.ui-field-icons .icons .icon.active[data-v-12b8c18e]{color:#409eff;box-shadow:inset 0 0 3px #666}.ui-field-icons .icons .icon .ui-icon[data-v-12b8c18e]{margin-right:4px}.ui-field-icons .icons .icon span[data-v-12b8c18e]{flex:1}",
5510
5242
  map: undefined,
5511
5243
  media: undefined
5512
5244
  });
@@ -5514,7 +5246,7 @@ const __vue_inject_styles__$d = function (inject) {
5514
5246
  /* scoped */
5515
5247
 
5516
5248
 
5517
- const __vue_scope_id__$d = "data-v-17314b31";
5249
+ const __vue_scope_id__$d = "data-v-12b8c18e";
5518
5250
  /* module identifier */
5519
5251
 
5520
5252
  const __vue_module_identifier__$d = undefined;
@@ -5530,81 +5262,266 @@ const __vue_component__$d = /*#__PURE__*/normalizeComponent({
5530
5262
  staticRenderFns: __vue_staticRenderFns__$c
5531
5263
  }, __vue_inject_styles__$d, __vue_script__$d, __vue_scope_id__$d, __vue_is_functional_template__$d, __vue_module_identifier__$d, false, createInjector, undefined, undefined);
5532
5264
 
5533
- var PopoverTrigger = __vue_component__$d;
5265
+ var IconsField = __vue_component__$d;
5534
5266
 
5535
- var TriggerField = {
5536
- name: 'ui-field-trigger',
5537
- functional: true,
5267
+ const fields = Object.create(null, {
5268
+ text: {
5269
+ enumerable: true,
5270
+ value: TextField
5271
+ },
5272
+ textarea: {
5273
+ enumerable: true,
5274
+ value: TextField
5275
+ },
5276
+ password: {
5277
+ enumerable: true,
5278
+ value: TextField
5279
+ }
5280
+ });
5281
+ /**
5282
+ *
5283
+ * @param type {string}
5284
+ * @param field
5285
+ */
5538
5286
 
5539
- render(createElement, content) {
5287
+ const addFieldType = (type, field) => {
5288
+ if (Objects.hasProp(fields, type)) {
5289
+ console.warn(`already have a ${type} field`);
5290
+ return;
5291
+ }
5292
+
5293
+ fields[type] = field;
5294
+ };
5295
+
5296
+ const initDefaultField = () => {
5297
+ addFieldType('hidden', HiddenField);
5298
+ addFieldType('display', DisplayField);
5299
+ addFieldType('autocomplete', AutocompleteField);
5300
+ addFieldType('radio', RadioField);
5301
+ addFieldType('checkbox', CheckboxField);
5302
+ addFieldType('select', SelectField);
5303
+ addFieldType('number', NumberField);
5304
+ addFieldType('cascade', CascadeField);
5305
+ addFieldType('year', DateField);
5306
+ addFieldType('month', DateField);
5307
+ addFieldType('monthrange', DateField);
5308
+ addFieldType('date', DateField);
5309
+ addFieldType('dates', DateField);
5310
+ addFieldType('week', DateField);
5311
+ addFieldType('datetime', DateField);
5312
+ addFieldType('datetimerange', DateField);
5313
+ addFieldType('daterange', DateField);
5314
+ addFieldType('datecCalendar', DatecCalendarField);
5315
+ addFieldType('timepicker', TimePickerField);
5316
+ addFieldType('timeselect', TimeSelectField);
5317
+ addFieldType('slider', SliderField);
5318
+ addFieldType('switch', SwitchField);
5319
+ addFieldType('rate', RateField);
5320
+ addFieldType('color', ColorField);
5321
+ addFieldType('rich', RichField); // 根据业务自己按需引入
5322
+
5323
+ addFieldType('file', FileUploadField);
5324
+ addFieldType('image', ImageUploadField);
5325
+ addFieldType('trigger', TriggerField);
5326
+ addFieldType('icons', IconsField);
5327
+ };
5328
+
5329
+ initDefaultField();
5330
+ var FormField = {
5331
+ name: 'ui-form-field',
5332
+ functional: true,
5333
+ render: (createElement, context) => {
5540
5334
  const {
5541
- props,
5542
- data,
5543
- children
5544
- } = content; // 默认 dialog. dialog 和 popover 同时配置时 popover 优先
5335
+ type
5336
+ } = context.props;
5337
+ const field = fields[type];
5545
5338
 
5546
- if (Objects.hasProp(props, 'popover')) {
5547
- return createElement(PopoverTrigger, data, children);
5339
+ if (field) {
5340
+ return createElement(field, context.data, context.children);
5341
+ } else {
5342
+ // 默认 TextField
5343
+ return createElement(TextField, context.data, context.children);
5548
5344
  }
5549
-
5550
- return createElement(DialogTrigger, data, children);
5551
5345
  }
5346
+ };
5347
+
5348
+ //
5349
+ var script$c = {
5350
+ name: 'ui-form-item',
5351
+ inheritAttrs: false,
5352
+ inject: ['uiForm'],
5353
+ components: {
5354
+ FormField
5355
+ },
5356
+ props: {
5357
+ value: null,
5358
+ defaultValue: {
5359
+ default: undefined
5360
+ },
5361
+ name: {
5362
+ type: String,
5363
+ required: true
5364
+ },
5365
+ prop: String,
5366
+ // ignore prop. 强制要求使用 name 配置
5367
+ label: {
5368
+ type: String,
5369
+ default: ''
5370
+ },
5371
+ type: {
5372
+ type: String,
5373
+ default: 'text'
5374
+ },
5375
+ showLabel: {
5376
+ type: Boolean,
5377
+ default: true
5378
+ },
5379
+ placeholder: String,
5380
+ vtype: [String, Array, Function],
5381
+ info: String,
5382
+ rules: null,
5383
+
5384
+ /**
5385
+ * 是否显示 label 后面的冒号
5386
+ * 默认显示
5387
+ */
5388
+ colon: {
5389
+ type: Boolean,
5390
+ default: undefined
5391
+ },
5392
+ disabled: {
5393
+ type: Boolean,
5394
+ default: undefined
5395
+ },
5396
+ ignore: {
5397
+ type: Boolean,
5398
+ default: false
5399
+ },
5400
+ message: String
5401
+ },
5402
+
5403
+ data() {
5404
+ return {
5405
+ fieldValue: this.defaultValue,
5406
+ lockedValue: this.defaultValue
5407
+ };
5408
+ },
5409
+
5410
+ computed: {
5411
+ realRules() {
5412
+ if (this.ignore) {
5413
+ return null;
5414
+ }
5415
+
5416
+ if (this.rules) {
5417
+ return this.rules;
5418
+ }
5419
+
5420
+ if (typeof this.vtype === 'function') {
5421
+ // this.vtype(rule, value, callback)
5422
+ return {
5423
+ validator: this.vtype
5424
+ };
5425
+ }
5426
+
5427
+ let vtypes = [];
5428
+
5429
+ if (typeof this.vtype === 'string') {
5430
+ vtypes = this.vtype.replace(/\s/g, '').split(',').filter(Boolean);
5431
+ } else if (Array.isArray(this.vtype) && this.vtype.length) {
5432
+ vtypes = this.vtype.filter(Boolean);
5433
+ }
5434
+
5435
+ return vtypes.reduce((rules, vtype) => {
5436
+ let rule = vtype;
5437
+
5438
+ if (typeof vtype === 'string') {
5439
+ const [type, ...args] = vtype.split(':');
5440
+ rule = VType$1[type](this.$props, ...args);
5441
+ }
5442
+
5443
+ rule && rules.push(rule);
5444
+ return rules;
5445
+ }, []);
5446
+ },
5447
+
5448
+ realPlaceHolder() {
5449
+ if (this.placeholder) {
5450
+ return this.placeholder;
5451
+ }
5452
+
5453
+ let input = getInputTypeText(this.type);
5454
+ return `请${input}${this.label}`;
5455
+ },
5456
+
5457
+ realColon() {
5458
+ if (!this.label) {
5459
+ return false;
5460
+ }
5461
+
5462
+ if (!Object.is(undefined, this.colon)) {
5463
+ return this.colon;
5464
+ }
5465
+
5466
+ if (!Object.is(undefined, this.uiForm.colon)) {
5467
+ return this.uiForm.colon;
5468
+ }
5469
+
5470
+ return true;
5471
+ },
5472
+
5473
+ realDisabled() {
5474
+ if (this.uiForm) {
5475
+ return this.uiForm.disabled || this.disabled;
5476
+ }
5552
5477
 
5553
- };
5478
+ return this.disabled;
5479
+ },
5554
5480
 
5555
- //
5556
- var script$c = {
5557
- name: 'ui-field-icons',
5558
- mixins: [FieldMixin],
5559
- components: {
5560
- Icon: Icon$1,
5561
- TriggerField
5562
- },
5481
+ listeners() {
5482
+ // eslint-disable-next-line
5483
+ const {
5484
+ change,
5485
+ input,
5486
+ ...listeners
5487
+ } = this.$listeners;
5488
+ return listeners;
5489
+ }
5563
5490
 
5564
- data() {
5565
- return {
5566
- filter: '',
5567
- icons: [],
5568
- iconsLoading: false,
5569
- visible: false
5570
- };
5571
5491
  },
5492
+ watch: {
5493
+ value(v) {
5494
+ this.fieldValue = v;
5495
+ },
5572
5496
 
5573
- computed: {
5574
- filteredIcons() {
5575
- return this.icons.filter(icon => icon.toLowerCase().indexOf(String(this.filter).toLowerCase()) !== -1);
5497
+ fieldValue(v) {
5498
+ this.uiForm.trigger('change', this.name, v, this);
5499
+ this.$emit('input', v);
5500
+ this.$emit('change', v);
5576
5501
  }
5577
5502
 
5578
5503
  },
5579
5504
 
5580
- mounted() {
5581
- this.initIcons();
5505
+ created() {
5506
+ this.registeredField();
5582
5507
  },
5583
5508
 
5584
5509
  methods: {
5585
- async initIcons() {
5586
- this.iconsLoading = true;
5587
- const icons = await Iconfont.getIcons();
5588
- this.iconsLoading = false;
5589
- this.icons = icons;
5590
- },
5591
-
5592
- onChange(val) {
5593
- this.$emit('input', val);
5594
- this.$emit('change', val);
5595
- },
5596
-
5597
- sel(icon) {
5598
- this.onChange(icon);
5599
- this.visible = false;
5510
+ registeredField() {
5511
+ this.uiForm.addField(this.name, this.fieldValue, this);
5600
5512
  },
5601
5513
 
5602
- onHide() {
5603
- this.filter = '';
5604
- },
5514
+ resetField() {
5515
+ if (arguments.length > 0) {
5516
+ this.fieldValue = arguments.length <= 0 ? undefined : arguments[0];
5517
+ } else if (this.fieldValue !== this.defaultValue) {
5518
+ this.fieldValue = this.defaultValue;
5519
+ }
5605
5520
 
5606
- focus() {
5607
- this.visible = true;
5521
+ this.lockedValue = this.fieldValue;
5522
+ this.$refs.formItem && this.$refs.formItem.$once('el.form.change', () => {
5523
+ this.$refs.formItem && this.$refs.formItem.clearValidate();
5524
+ });
5608
5525
  }
5609
5526
 
5610
5527
  }
@@ -5621,67 +5538,54 @@ var __vue_render__$b = function () {
5621
5538
 
5622
5539
  var _c = _vm._self._c || _h;
5623
5540
 
5624
- return _c('trigger-field', _vm._b({
5541
+ return _c('el-form-item', _vm._b({
5542
+ ref: "formItem",
5543
+ staticClass: "ui-form-item",
5544
+ class: {
5545
+ 'hidden-item': _vm.type === 'hidden'
5546
+ },
5625
5547
  attrs: {
5626
- "popover": "",
5627
- "value": _vm.value,
5628
- "visible": _vm.visible,
5629
- "prefix-icon": _vm.value
5548
+ "prop": _vm.name,
5549
+ "rules": _vm.realRules
5550
+ }
5551
+ }, 'el-form-item', _vm.$attrs, false), [_vm.$scopedSlots.prefix ? _c('div', {
5552
+ staticClass: "ui-form-item-prefix"
5553
+ }, [_vm._t("prefix")], 2) : _vm._e(), _vm._v(" "), _vm.showLabel && _vm.label ? _c('template', {
5554
+ slot: "label"
5555
+ }, [_vm._v("\n " + _vm._s(_vm.label) + "\n "), _c('el-tooltip', {
5556
+ attrs: {
5557
+ "effect": "dark",
5558
+ "content": _vm.info
5559
+ }
5560
+ }, [_vm.info ? _c('i', {
5561
+ staticClass: "el-icon-info info"
5562
+ }) : _vm._e()]), _vm._v("\n " + _vm._s(_vm.realColon ? ':' : '') + "\n ")], 1) : _vm._e(), _vm._v(" "), _c('form-field', _vm._g(_vm._b({
5563
+ attrs: {
5564
+ "name": _vm.name,
5565
+ "locked-value": _vm.lockedValue,
5566
+ "type": _vm.type,
5567
+ "disabled": _vm.realDisabled,
5568
+ "placeholder": _vm.realPlaceHolder,
5569
+ "ignore": _vm.ignore
5630
5570
  },
5631
5571
  on: {
5632
- "update:visible": function ($event) {
5633
- _vm.visible = $event;
5572
+ "update:lockedValue": function ($event) {
5573
+ _vm.lockedValue = $event;
5634
5574
  },
5635
- "hide": _vm.onHide
5636
- }
5637
- }, 'trigger-field', _vm.$attrs, false), [_c('div', {
5638
- staticClass: "ui-field-icons"
5639
- }, [_c('el-input', {
5640
- staticClass: "filter",
5641
- attrs: {
5642
- "placeholder": "输入名称快速查找",
5643
- "clearable": ""
5575
+ "update:locked-value": function ($event) {
5576
+ _vm.lockedValue = $event;
5577
+ }
5644
5578
  },
5645
5579
  model: {
5646
- value: _vm.filter,
5580
+ value: _vm.fieldValue,
5647
5581
  callback: function ($$v) {
5648
- _vm.filter = $$v;
5582
+ _vm.fieldValue = $$v;
5649
5583
  },
5650
- expression: "filter"
5584
+ expression: "fieldValue"
5651
5585
  }
5652
- }), _vm._v(" "), _c('div', {
5653
- staticClass: "scroll"
5654
- }, [_c('div', {
5655
- directives: [{
5656
- name: "loading",
5657
- rawName: "v-loading",
5658
- value: _vm.iconsLoading,
5659
- expression: "iconsLoading"
5660
- }],
5661
- staticClass: "icons"
5662
- }, _vm._l(_vm.filteredIcons, function (icon) {
5663
- return _c('div', {
5664
- key: icon,
5665
- staticClass: "icon",
5666
- class: {
5667
- active: _vm.value === icon
5668
- },
5669
- attrs: {
5670
- "title": icon
5671
- },
5672
- on: {
5673
- "click": function ($event) {
5674
- return _vm.sel(icon);
5675
- }
5676
- }
5677
- }, [_c('icon', {
5678
- attrs: {
5679
- "name": icon
5680
- }
5681
- }), _vm._v(" "), _c('span', {
5682
- staticClass: "ellipsis"
5683
- }, [_vm._v(_vm._s(icon))])], 1);
5684
- }), 0)])], 1)]);
5586
+ }, 'form-field', _vm.$attrs, false), _vm.listeners), [_vm._t("default")], 2), _vm._v(" "), _vm.$scopedSlots.suffix ? _c('div', {
5587
+ staticClass: "ui-form-item-suffix"
5588
+ }, [_vm._t("suffix")], 2) : _vm._e()], 2);
5685
5589
  };
5686
5590
 
5687
5591
  var __vue_staticRenderFns__$b = [];
@@ -5689,8 +5593,8 @@ var __vue_staticRenderFns__$b = [];
5689
5593
 
5690
5594
  const __vue_inject_styles__$c = function (inject) {
5691
5595
  if (!inject) return;
5692
- inject("data-v-12b8c18e_0", {
5693
- source: ".ui-field-icons .filter[data-v-12b8c18e]{margin-bottom:10px}.ui-field-icons .filter[data-v-12b8c18e] .el-input__validateIcon{display:none}.ui-field-icons .scroll[data-v-12b8c18e]{height:200px;overflow:auto}.ui-field-icons .icons[data-v-12b8c18e]{display:flex;flex-wrap:wrap}.ui-field-icons .icons .icon[data-v-12b8c18e]{flex:none;width:150px;height:28px;margin:2px;padding:4px;border-radius:2px;cursor:pointer;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:row;align-items:center}.ui-field-icons .icons .icon[data-v-12b8c18e]:hover{background:#eaeaea}.ui-field-icons .icons .icon.active[data-v-12b8c18e]{color:#409eff;box-shadow:inset 0 0 3px #666}.ui-field-icons .icons .icon .ui-icon[data-v-12b8c18e]{margin-right:4px}.ui-field-icons .icons .icon span[data-v-12b8c18e]{flex:1}",
5596
+ inject("data-v-abe604d6_0", {
5597
+ source: ".ui-form-item[data-v-abe604d6] .el-form-item__content{display:flex;flex-direction:row;align-items:center}.ui-form-item[data-v-abe604d6] .el-form-item__content>div{flex:1;display:flex;align-items:center}.ui-form-item[data-v-abe604d6] .el-form-item__content .ui-form-item-prefix,.ui-form-item[data-v-abe604d6] .el-form-item__content .ui-form-item-suffix{flex:none}.ui-form-item .info[data-v-abe604d6]{color:#909399;cursor:pointer;margin-left:4px}.ui-form-item.hidden-item[data-v-abe604d6]{display:none}.el-form--inline .ui-form-item[data-v-abe604d6] .el-form-item__label{flex:none;white-space:nowrap}.el-form--inline .ui-form-item[data-v-abe604d6] .el-form-item__content{display:inline-flex}",
5694
5598
  map: undefined,
5695
5599
  media: undefined
5696
5600
  });
@@ -5698,7 +5602,7 @@ const __vue_inject_styles__$c = function (inject) {
5698
5602
  /* scoped */
5699
5603
 
5700
5604
 
5701
- const __vue_scope_id__$c = "data-v-12b8c18e";
5605
+ const __vue_scope_id__$c = "data-v-abe604d6";
5702
5606
  /* module identifier */
5703
5607
 
5704
5608
  const __vue_module_identifier__$c = undefined;
@@ -5714,270 +5618,419 @@ const __vue_component__$c = /*#__PURE__*/normalizeComponent({
5714
5618
  staticRenderFns: __vue_staticRenderFns__$b
5715
5619
  }, __vue_inject_styles__$c, __vue_script__$c, __vue_scope_id__$c, __vue_is_functional_template__$c, __vue_module_identifier__$c, false, createInjector, undefined, undefined);
5716
5620
 
5717
- var IconsField = __vue_component__$c;
5718
-
5719
- const fields = Object.create(null, {
5720
- text: {
5721
- enumerable: true,
5722
- value: TextField
5723
- },
5724
- textarea: {
5725
- enumerable: true,
5726
- value: TextField
5727
- },
5728
- password: {
5729
- enumerable: true,
5730
- value: TextField
5731
- }
5732
- });
5733
- /**
5734
- *
5735
- * @param type {string}
5736
- * @param field
5737
- */
5738
-
5739
- const addFieldType = (type, field) => {
5740
- if (Objects.hasProp(fields, type)) {
5741
- console.warn(`already have a ${type} field`);
5742
- return;
5743
- }
5744
-
5745
- fields[type] = field;
5746
- };
5747
-
5748
- const initDefaultField = () => {
5749
- addFieldType('hidden', HiddenField);
5750
- addFieldType('display', DisplayField);
5751
- addFieldType('autocomplete', AutocompleteField);
5752
- addFieldType('radio', RadioField);
5753
- addFieldType('checkbox', CheckboxField);
5754
- addFieldType('select', SelectField);
5755
- addFieldType('number', NumberField);
5756
- addFieldType('cascade', CascadeField);
5757
- addFieldType('year', DateField);
5758
- addFieldType('month', DateField);
5759
- addFieldType('monthrange', DateField);
5760
- addFieldType('date', DateField);
5761
- addFieldType('dates', DateField);
5762
- addFieldType('week', DateField);
5763
- addFieldType('datetime', DateField);
5764
- addFieldType('datetimerange', DateField);
5765
- addFieldType('daterange', DateField);
5766
- addFieldType('datecCalendar', DatecCalendarField);
5767
- addFieldType('timepicker', TimePickerField);
5768
- addFieldType('timeselect', TimeSelectField);
5769
- addFieldType('slider', SliderField);
5770
- addFieldType('switch', SwitchField);
5771
- addFieldType('rate', RateField);
5772
- addFieldType('color', ColorField);
5773
- addFieldType('rich', RichField); // 根据业务自己按需引入
5774
-
5775
- addFieldType('file', FileUploadField);
5776
- addFieldType('image', ImageUploadField);
5777
- addFieldType('trigger', TriggerField);
5778
- addFieldType('icons', IconsField);
5779
- };
5780
-
5781
- initDefaultField();
5782
- var FormField = {
5783
- name: 'ui-form-field',
5784
- functional: true,
5785
- render: (createElement, context) => {
5786
- const {
5787
- type
5788
- } = context.props;
5789
- const field = fields[type];
5621
+ var FormItem = __vue_component__$c;
5790
5622
 
5791
- if (field) {
5792
- return createElement(field, context.data, context.children);
5793
- } else {
5794
- // 默认 TextField
5795
- return createElement(TextField, context.data, context.children);
5623
+ const Operator = {
5624
+ eq: '=',
5625
+ ne: '!=',
5626
+ gt: '>',
5627
+ lt: '<',
5628
+ ge: '>=',
5629
+ le: '<=',
5630
+ lk: 'like',
5631
+ ak: 'like',
5632
+ ek: 'like',
5633
+ nk: 'not like',
5634
+ in: 'in',
5635
+ isNull: 'is null',
5636
+ isNotNull: 'is not null',
5637
+ range: 'range'
5638
+ };
5639
+ const Sort = {
5640
+ asc: 'asc',
5641
+ desc: 'desc'
5642
+ };
5643
+ var TableSelectItem = {
5644
+ name: 'ui-table-select-item',
5645
+ mixins: [FormItem],
5646
+ props: {
5647
+ showLabel: {
5648
+ type: Boolean,
5649
+ default: true
5650
+ },
5651
+ sort: {
5652
+ type: String,
5653
+ validator: val => Object.keys(Sort).includes(val)
5654
+ },
5655
+ select: {
5656
+ type: String,
5657
+ validator: val => Object.keys(Operator).includes(val)
5658
+ },
5659
+ range: {
5660
+ type: Array,
5661
+ validator: val => val.length === 2 && val.every(v => ['gt', 'lt', 'ge', 'le', 'eq'].includes(v)),
5662
+ default: () => ['ge', 'le']
5663
+ },
5664
+ rangeNames: {
5665
+ type: Object,
5666
+ validator: val => Object.prototype.toString.call(val) === '[object Object]' && ['min', 'max'].every(item => Object.keys(val).includes(item))
5796
5667
  }
5797
5668
  }
5798
5669
  };
5799
5670
 
5800
5671
  //
5801
5672
  var script$b = {
5802
- name: 'ui-form-item',
5673
+ name: 'ui-form',
5803
5674
  inheritAttrs: false,
5804
- inject: ['uiForm'],
5805
- components: {
5806
- FormField
5675
+
5676
+ provide() {
5677
+ return {
5678
+ uiForm: this
5679
+ };
5807
5680
  },
5681
+
5808
5682
  props: {
5809
- value: null,
5810
- defaultValue: {
5811
- default: undefined
5812
- },
5813
- name: {
5814
- type: String,
5815
- required: true
5816
- },
5817
- prop: String,
5818
- // ignore prop. 强制要求使用 name 配置
5819
- label: {
5683
+ disabled: Boolean,
5684
+ labelWidth: {
5820
5685
  type: String,
5821
- default: ''
5686
+ default: '105px'
5822
5687
  },
5823
- type: {
5688
+ fields: Array,
5689
+ url: String,
5690
+ method: {
5824
5691
  type: String,
5825
- default: 'text'
5826
- },
5827
- showLabel: {
5828
- type: Boolean,
5829
- default: true
5692
+ validator: val => ['get', 'post', 'put'].includes(val),
5693
+ default: 'post'
5830
5694
  },
5831
- placeholder: String,
5832
- vtype: [String, Array, Function],
5833
- info: String,
5834
- rules: null,
5835
5695
 
5836
5696
  /**
5837
5697
  * 是否显示 label 后面的冒号
5838
- * 默认显示
5839
5698
  */
5840
5699
  colon: {
5841
5700
  type: Boolean,
5842
5701
  default: undefined
5843
5702
  },
5844
- disabled: {
5845
- type: Boolean,
5846
- default: undefined
5703
+ beforeSubmit: {
5704
+ type: Function,
5705
+ default: () => void 0
5847
5706
  },
5848
- ignore: {
5707
+ submitting: {
5849
5708
  type: Boolean,
5850
5709
  default: false
5851
- },
5852
- message: String
5710
+ }
5711
+ /**
5712
+ * listeners:
5713
+ * ready 所有表单项都准备好后触发
5714
+ * submit 触发提交事件
5715
+ * after-submit 配置 url 后触发submit事件时触发提交数据完成事件
5716
+ * validate 任一表单项被校验后触发
5717
+ **/
5718
+
5853
5719
  },
5854
5720
 
5855
5721
  data() {
5722
+ this.fieldStatus = []; // [{name,status,componentInstance}, ...]
5723
+
5856
5724
  return {
5857
- fieldValue: this.defaultValue,
5858
- lockedValue: this.defaultValue
5725
+ fieldList: [] // [[name, value], ...]
5726
+
5859
5727
  };
5860
5728
  },
5861
5729
 
5862
5730
  computed: {
5863
- realRules() {
5864
- if (this.ignore) {
5865
- return null;
5731
+ model() {
5732
+ return Object.fromEntries(this.fieldList);
5733
+ },
5734
+
5735
+ listeners() {
5736
+ // eslint-disable-next-line
5737
+ const {
5738
+ submit,
5739
+ ready,
5740
+ ...listeners
5741
+ } = this.$listeners;
5742
+ return listeners;
5743
+ }
5744
+
5745
+ },
5746
+
5747
+ beforeCreate() {
5748
+ this.isMounted = false;
5749
+ },
5750
+
5751
+ mounted() {
5752
+ this.isMounted = true;
5753
+ this.$el.addEventListener('reset', this.onReset);
5754
+ this.checkFieldsReady();
5755
+ },
5756
+
5757
+ beforeDestroy() {
5758
+ this.$el.removeEventListener('reset', this.onReset);
5759
+ },
5760
+
5761
+ methods: {
5762
+ /**
5763
+ * @public
5764
+ */
5765
+ validate() {
5766
+ return this.$refs.form.validate(...arguments);
5767
+ },
5768
+
5769
+ /**
5770
+ * @public
5771
+ */
5772
+ validateField() {
5773
+ return this.$refs.form.validateField(...arguments);
5774
+ },
5775
+
5776
+ /**
5777
+ * @public
5778
+ */
5779
+ clearValidate() {
5780
+ return this.$refs.form.clearValidate(...arguments);
5781
+ },
5782
+
5783
+ /**
5784
+ * @public
5785
+ */
5786
+ resetValues(values) {
5787
+ if (!Objects.isObject(values)) {
5788
+ values = {};
5866
5789
  }
5867
5790
 
5868
- if (this.rules) {
5869
- return this.rules;
5791
+ const formItems = this.getFormItems();
5792
+ formItems.forEach(item => {
5793
+ if (Object.prototype.hasOwnProperty.call(values, item.name)) {
5794
+ item.resetField(values[item.name]);
5795
+ } else {
5796
+ item.resetField();
5797
+ }
5798
+ });
5799
+ },
5800
+
5801
+ /**
5802
+ * @public
5803
+ */
5804
+ setValues(values) {
5805
+ if (!values || !Objects.isObject(values)) {
5806
+ return;
5870
5807
  }
5871
5808
 
5872
- if (typeof this.vtype === 'function') {
5873
- // this.vtype(rule, value, callback)
5874
- return {
5875
- validator: this.vtype
5809
+ const formItems = this.getFormItems();
5810
+ Object.entries(values).forEach(_ref => {
5811
+ let [fieldName, fieldValue] = _ref;
5812
+ const fieldItem = formItems.find(item => item.name === fieldName);
5813
+
5814
+ if (!fieldItem) {
5815
+ return;
5816
+ }
5817
+
5818
+ fieldItem.fieldValue = fieldValue;
5819
+ });
5820
+ },
5821
+
5822
+ /**
5823
+ * @public
5824
+ */
5825
+ getValues() {
5826
+ const formItems = this.getFormItems();
5827
+ return formItems.reduce((values, item) => {
5828
+ if (item.ignore === true) {
5829
+ return values;
5830
+ }
5831
+
5832
+ return { ...values,
5833
+ [item.name]: item.fieldValue
5876
5834
  };
5835
+ }, {});
5836
+ },
5837
+
5838
+ getFormItems() {
5839
+ const listSearchItem = items => {
5840
+ return items.reduce((results, item) => {
5841
+ // TableSelectItem mixins FormItem
5842
+ if ([FormItem.name, TableSelectItem.name].includes(item.$options.name)) {
5843
+ results.push(item);
5844
+ } else {
5845
+ results.push(...listSearchItem(item.$children || []));
5846
+ }
5847
+
5848
+ return results;
5849
+ }, []);
5850
+ };
5851
+
5852
+ return listSearchItem(this.$children);
5853
+ },
5854
+
5855
+ /**
5856
+ * @private
5857
+ */
5858
+ addField(name) {
5859
+ let defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
5860
+ let instance = arguments.length > 2 ? arguments[2] : undefined;
5861
+
5862
+ if (!Object.hasOwnProperty.call(this.model, name)) {
5863
+ this.onFieldChange(name, defaultValue, instance);
5877
5864
  }
5865
+ },
5878
5866
 
5879
- let vtypes = [];
5867
+ /**
5868
+ * (函数节流. 600ms内只执行一次, 防止 form 表单多次提交)
5869
+ * @private
5870
+ */
5871
+ onSubmit: throttle(function () {
5872
+ let formData = this.getValues();
5873
+ const allow = this.beforeSubmit(formData);
5874
+
5875
+ if (typeof allow === 'boolean' && allow === false) {
5876
+ return;
5877
+ }
5878
+
5879
+ if (typeof allow === 'object') {
5880
+ formData = allow;
5881
+ }
5882
+
5883
+ this.validate(valid => {
5884
+ if (!valid) {
5885
+ return;
5886
+ }
5887
+
5888
+ this.$emit('submit', formData);
5889
+ this.doAction(formData);
5890
+ });
5891
+ }, 600, {
5892
+ trailing: false
5893
+ }),
5894
+
5895
+ doAction(data) {
5896
+ var _this = this;
5897
+
5898
+ if (!this.url) {
5899
+ return;
5900
+ }
5901
+
5902
+ let def;
5903
+ this.$emit('update:submitting', true);
5880
5904
 
5881
- if (typeof this.vtype === 'string') {
5882
- vtypes = this.vtype.replace(/\s/g, '').split(',').filter(Boolean);
5883
- } else if (Array.isArray(this.vtype) && this.vtype.length) {
5884
- vtypes = this.vtype.filter(Boolean);
5905
+ if (this.method === 'get') {
5906
+ def = this.getWithMessage(this.url, {
5907
+ params: data
5908
+ });
5909
+ } else {
5910
+ def = this.postWithMessage(this.url, data);
5885
5911
  }
5886
5912
 
5887
- return vtypes.reduce((rules, vtype) => {
5888
- let rule = vtype;
5913
+ def.then(function () {
5914
+ _this.$emit('update:submitting', false);
5889
5915
 
5890
- if (typeof vtype === 'string') {
5891
- const [type, ...args] = vtype.split(':');
5892
- rule = VType$1[type](this.$props, ...args);
5916
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5917
+ args[_key] = arguments[_key];
5893
5918
  }
5894
5919
 
5895
- rule && rules.push(rule);
5896
- return rules;
5897
- }, []);
5898
- },
5920
+ _this.$emit('after-submit', ...args);
5921
+ }).catch(function () {
5922
+ _this.$emit('update:submitting', false);
5899
5923
 
5900
- realPlaceHolder() {
5901
- if (this.placeholder) {
5902
- return this.placeholder;
5903
- }
5924
+ return Promise.reject(...arguments);
5925
+ });
5926
+ },
5904
5927
 
5905
- let input = getInputTypeText(this.type);
5906
- return `请${input}${this.label}`;
5928
+ /**
5929
+ * @private
5930
+ */
5931
+ onReset(e) {
5932
+ e.preventDefault();
5933
+ this.resetValues();
5934
+ this.$emit('reset');
5907
5935
  },
5908
5936
 
5909
- realColon() {
5910
- if (!this.label) {
5911
- return false;
5937
+ /**
5938
+ * @private
5939
+ */
5940
+ trigger(event) {
5941
+ if (typeof event !== 'string') {
5942
+ return;
5912
5943
  }
5913
5944
 
5914
- if (!Object.is(undefined, this.colon)) {
5915
- return this.colon;
5945
+ const e = event.toLowerCase().replace(/( |^)[a-z]/g, L => L.toUpperCase());
5946
+
5947
+ if (!this[`onField${e}`]) {
5948
+ return;
5916
5949
  }
5917
5950
 
5918
- if (!Object.is(undefined, this.uiForm.colon)) {
5919
- return this.uiForm.colon;
5951
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
5952
+ args[_key2 - 1] = arguments[_key2];
5920
5953
  }
5921
5954
 
5922
- return true;
5955
+ this[`onField${e}`](...args);
5923
5956
  },
5924
5957
 
5925
- realDisabled() {
5926
- if (this.uiForm) {
5927
- return this.uiForm.disabled || this.disabled;
5958
+ /**
5959
+ * @private
5960
+ */
5961
+ onFieldPending(component) {
5962
+ if (!component.name) {
5963
+ return;
5928
5964
  }
5929
5965
 
5930
- return this.disabled;
5966
+ this.fieldStatus.push({
5967
+ name: component.name,
5968
+ status: false,
5969
+ instance: component
5970
+ });
5931
5971
  },
5932
5972
 
5933
- listeners() {
5934
- // eslint-disable-next-line
5935
- const {
5936
- change,
5937
- input,
5938
- ...listeners
5939
- } = this.$listeners;
5940
- return listeners;
5941
- }
5973
+ /**
5974
+ * @private
5975
+ */
5976
+ onFieldDestroy(component) {
5977
+ if (component.name) {
5978
+ const index = this.fieldStatus.findIndex(item => item.name === component.name);
5979
+ index !== -1 && this.fieldStatus.splice(index, 1);
5980
+ const i = this.fieldList.findIndex(item => item[0] === component.name);
5981
+ this.fieldList.splice(i, 1);
5982
+ }
5942
5983
 
5943
- },
5944
- watch: {
5945
- value(v) {
5946
- this.fieldValue = v;
5947
- },
5984
+ const formItems = this.getFormItems();
5948
5985
 
5949
- fieldValue(v) {
5950
- this.uiForm.trigger('change', this.name, v, this);
5951
- this.$emit('input', v);
5952
- this.$emit('change', v);
5953
- }
5986
+ if (formItems.length === this.fieldStatus.length) {
5987
+ this.checkFieldsReady();
5988
+ }
5989
+ },
5954
5990
 
5955
- },
5991
+ /**
5992
+ * @private
5993
+ */
5994
+ onFieldDone(component) {
5995
+ if (!component.name) {
5996
+ return;
5997
+ }
5956
5998
 
5957
- created() {
5958
- this.registeredField();
5959
- },
5999
+ const index = this.fieldStatus.findIndex(item => item.name === component.name);
6000
+ index !== -1 && this.fieldStatus.splice(index, 1, {
6001
+ name: component.name,
6002
+ status: true,
6003
+ instance: component
6004
+ });
6005
+ const formItems = this.getFormItems();
5960
6006
 
5961
- methods: {
5962
- registeredField() {
5963
- if (this.ignore) {
5964
- return;
6007
+ if (formItems.length === this.fieldStatus.length) {
6008
+ this.checkFieldsReady();
5965
6009
  }
6010
+ },
5966
6011
 
5967
- this.uiForm.addField(this.name, this.fieldValue, this);
6012
+ onFieldChange(fieldName, fieldValue, instance) {
6013
+ const index = this.fieldList.findIndex(item => item[0] === fieldName);
6014
+ const current = Object.freeze([fieldName, fieldValue, instance]);
6015
+
6016
+ if (index === -1) {
6017
+ this.fieldList.push(current);
6018
+ } else {
6019
+ this.fieldList.splice(index, 1, current);
6020
+ }
5968
6021
  },
5969
6022
 
5970
- resetField() {
5971
- if (arguments.length > 0) {
5972
- this.fieldValue = arguments.length <= 0 ? undefined : arguments[0];
5973
- } else if (this.fieldValue !== this.defaultValue) {
5974
- this.fieldValue = this.defaultValue;
6023
+ checkFieldsReady() {
6024
+ if (!this.isMounted) {
6025
+ return;
5975
6026
  }
5976
6027
 
5977
- this.lockedValue = this.fieldValue;
5978
- this.$refs.formItem && this.$refs.formItem.$once('el.form.change', () => {
5979
- this.$refs.formItem && this.$refs.formItem.clearValidate();
5980
- });
6028
+ const isPending = this.fieldStatus.some(item => !item.status);
6029
+
6030
+ if (!isPending && !this.isReady) {
6031
+ this.isReady = true;
6032
+ this.$emit('ready');
6033
+ }
5981
6034
  }
5982
6035
 
5983
6036
  }
@@ -5994,54 +6047,24 @@ var __vue_render__$a = function () {
5994
6047
 
5995
6048
  var _c = _vm._self._c || _h;
5996
6049
 
5997
- return _c('el-form-item', _vm._b({
5998
- ref: "formItem",
5999
- staticClass: "ui-form-item",
6000
- class: {
6001
- 'hidden-item': _vm.type === 'hidden'
6002
- },
6003
- attrs: {
6004
- "prop": _vm.name,
6005
- "rules": _vm.realRules
6006
- }
6007
- }, 'el-form-item', _vm.$attrs, false), [_vm.$scopedSlots.prefix ? _c('div', {
6008
- staticClass: "ui-form-item-prefix"
6009
- }, [_vm._t("prefix")], 2) : _vm._e(), _vm._v(" "), _vm.showLabel && _vm.label ? _c('template', {
6010
- slot: "label"
6011
- }, [_vm._v("\n " + _vm._s(_vm.label) + "\n "), _c('el-tooltip', {
6012
- attrs: {
6013
- "effect": "dark",
6014
- "content": _vm.info
6015
- }
6016
- }, [_vm.info ? _c('i', {
6017
- staticClass: "el-icon-info info"
6018
- }) : _vm._e()]), _vm._v("\n " + _vm._s(_vm.realColon ? ':' : '') + "\n ")], 1) : _vm._e(), _vm._v(" "), _c('form-field', _vm._g(_vm._b({
6050
+ return _c('el-form', _vm._g(_vm._b({
6051
+ ref: "form",
6019
6052
  attrs: {
6020
- "name": _vm.name,
6021
- "locked-value": _vm.lockedValue,
6022
- "type": _vm.type,
6023
- "disabled": _vm.realDisabled,
6024
- "placeholder": _vm.realPlaceHolder,
6025
- "ignore": _vm.ignore
6053
+ "model": _vm.model,
6054
+ "label-width": _vm.labelWidth
6026
6055
  },
6027
- on: {
6028
- "update:lockedValue": function ($event) {
6029
- _vm.lockedValue = $event;
6030
- },
6031
- "update:locked-value": function ($event) {
6032
- _vm.lockedValue = $event;
6056
+ nativeOn: {
6057
+ "submit": function ($event) {
6058
+ $event.preventDefault();
6059
+ return _vm.onSubmit.apply(null, arguments);
6033
6060
  }
6034
- },
6035
- model: {
6036
- value: _vm.fieldValue,
6037
- callback: function ($$v) {
6038
- _vm.fieldValue = $$v;
6039
- },
6040
- expression: "fieldValue"
6041
6061
  }
6042
- }, 'form-field', _vm.$attrs, false), _vm.listeners), [_vm._t("default")], 2), _vm._v(" "), _vm.$scopedSlots.suffix ? _c('div', {
6043
- staticClass: "ui-form-item-suffix"
6044
- }, [_vm._t("suffix")], 2) : _vm._e()], 2);
6062
+ }, 'el-form', _vm.$attrs, false), _vm.listeners), [_vm._l(_vm.fields, function (field, i) {
6063
+ return _c(field.componentName || 'ui-form-item', _vm._g(_vm._b({
6064
+ key: i,
6065
+ tag: "component"
6066
+ }, 'component', field, false), field.listeners));
6067
+ }), _vm._v(" "), _vm._t("default")], 2);
6045
6068
  };
6046
6069
 
6047
6070
  var __vue_staticRenderFns__$a = [];
@@ -6049,8 +6072,8 @@ var __vue_staticRenderFns__$a = [];
6049
6072
 
6050
6073
  const __vue_inject_styles__$b = function (inject) {
6051
6074
  if (!inject) return;
6052
- inject("data-v-1b19fc4a_0", {
6053
- source: ".ui-form-item[data-v-1b19fc4a] .el-form-item__content{display:flex;flex-direction:row;align-items:center}.ui-form-item[data-v-1b19fc4a] .el-form-item__content>div{flex:1;display:flex;align-items:center}.ui-form-item[data-v-1b19fc4a] .el-form-item__content .ui-form-item-prefix,.ui-form-item[data-v-1b19fc4a] .el-form-item__content .ui-form-item-suffix{flex:none}.ui-form-item .info[data-v-1b19fc4a]{color:#909399;cursor:pointer;margin-left:4px}.ui-form-item.hidden-item[data-v-1b19fc4a]{display:none}.el-form--inline .ui-form-item[data-v-1b19fc4a] .el-form-item__label{flex:none;white-space:nowrap}.el-form--inline .ui-form-item[data-v-1b19fc4a] .el-form-item__content{display:inline-flex}",
6075
+ inject("data-v-2a9aa6b4_0", {
6076
+ source: ".el-form--inline[data-v-2a9aa6b4] .el-form-item{display:inline-flex}",
6054
6077
  map: undefined,
6055
6078
  media: undefined
6056
6079
  });
@@ -6058,7 +6081,7 @@ const __vue_inject_styles__$b = function (inject) {
6058
6081
  /* scoped */
6059
6082
 
6060
6083
 
6061
- const __vue_scope_id__$b = "data-v-1b19fc4a";
6084
+ const __vue_scope_id__$b = "data-v-2a9aa6b4";
6062
6085
  /* module identifier */
6063
6086
 
6064
6087
  const __vue_module_identifier__$b = undefined;
@@ -6074,7 +6097,7 @@ const __vue_component__$b = /*#__PURE__*/normalizeComponent({
6074
6097
  staticRenderFns: __vue_staticRenderFns__$a
6075
6098
  }, __vue_inject_styles__$b, __vue_script__$b, __vue_scope_id__$b, __vue_is_functional_template__$b, __vue_module_identifier__$b, false, createInjector, undefined, undefined);
6076
6099
 
6077
- var FormItem = __vue_component__$b;
6100
+ var Form$1 = __vue_component__$b;
6078
6101
 
6079
6102
  //
6080
6103
  //
@@ -10108,54 +10131,6 @@ const __vue_component__$3 = /*#__PURE__*/normalizeComponent({
10108
10131
 
10109
10132
  var TablePagination = __vue_component__$3;
10110
10133
 
10111
- const Operator = {
10112
- eq: '=',
10113
- ne: '!=',
10114
- gt: '>',
10115
- lt: '<',
10116
- ge: '>=',
10117
- le: '<=',
10118
- lk: 'like',
10119
- ak: 'like',
10120
- ek: 'like',
10121
- nk: 'not like',
10122
- in: 'in',
10123
- isNull: 'is null',
10124
- isNotNull: 'is not null',
10125
- range: 'range'
10126
- };
10127
- const Sort = {
10128
- asc: 'asc',
10129
- desc: 'desc'
10130
- };
10131
- var TableSelectItem = {
10132
- name: 'ui-table-select-item',
10133
- mixins: [FormItem],
10134
- props: {
10135
- showLabel: {
10136
- type: Boolean,
10137
- default: true
10138
- },
10139
- sort: {
10140
- type: String,
10141
- validator: val => Object.keys(Sort).includes(val)
10142
- },
10143
- select: {
10144
- type: String,
10145
- validator: val => Object.keys(Operator).includes(val)
10146
- },
10147
- range: {
10148
- type: Array,
10149
- validator: val => val.length === 2 && val.every(v => ['gt', 'lt', 'ge', 'le', 'eq'].includes(v)),
10150
- default: () => ['ge', 'le']
10151
- },
10152
- rangeNames: {
10153
- type: Object,
10154
- validator: val => Object.prototype.toString.call(val) === '[object Object]' && ['min', 'max'].every(item => Object.keys(val).includes(item))
10155
- }
10156
- }
10157
- };
10158
-
10159
10134
  //
10160
10135
  const SEARCH_PREFIX = 'select';
10161
10136
  const SORT_PREFIX = 'sort';
@@ -10254,7 +10229,7 @@ var script$2 = {
10254
10229
  const listSearchItem = items => {
10255
10230
  return items.reduce((results, item) => {
10256
10231
  if (item.$options.name === TableSelectItem.name) {
10257
- if (item.ignore === false) {
10232
+ if (!item.ignore) {
10258
10233
  results.push(item);
10259
10234
  }
10260
10235
  } else {
@@ -10344,7 +10319,7 @@ var __vue_staticRenderFns__$2 = [];
10344
10319
 
10345
10320
  const __vue_inject_styles__$2 = function (inject) {
10346
10321
  if (!inject) return;
10347
- inject("data-v-1ccdf4ca_0", {
10322
+ inject("data-v-1bff1b12_0", {
10348
10323
  source: ".ui-table-select{display:flex;align-items:center;flex-wrap:wrap}.ui-table-select .el-row{width:100%}.ui-table-select .fill{flex:1}.ui-table-select .el-form-item{margin-bottom:10px}.ui-table-select .el-form-item:last-child{margin-right:0}.ui-table-select .el-form-item,.ui-table-select .el-form-item.el-form-item--mini{margin-bottom:10px}",
10349
10324
  map: undefined,
10350
10325
  media: undefined