backend-management-ui 1.7.15 → 1.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/index.common.js +25 -28
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -518,7 +518,6 @@ export default {
|
|
|
518
518
|
| cancelText | 取消按钮的文案 | string | - | 取消 |
|
|
519
519
|
| showConfirm | 是否展示确定按钮,defaultFooter为true时可用 | boolean | - | true |
|
|
520
520
|
| confirmText | 确定按钮的文案 | string | - | 确定 |
|
|
521
|
-
| customFooter | 是否使用自定的弹框footer | boolean | - | false |
|
|
522
521
|
| 其他参数同el-dialog | - | - | - | - |
|
|
523
522
|
|
|
524
523
|
#### methods
|
|
@@ -530,6 +529,14 @@ export default {
|
|
|
530
529
|
| close | 关闭弹框的回调 | - |
|
|
531
530
|
| 其他事件同el-dialog | - | - |
|
|
532
531
|
|
|
532
|
+
#### slots
|
|
533
|
+
|
|
534
|
+
| 插槽名 | 说明 | 参数 |
|
|
535
|
+
| ----- | ---- | ---- |
|
|
536
|
+
| headerPrefix | 标题前面的修饰插槽 | - |
|
|
537
|
+
| headerSuffix | 标题后面的修饰插槽 | - |
|
|
538
|
+
| customFooter | 自定义footer,可以和defaultFooter配和使用 | - |
|
|
539
|
+
|
|
533
540
|
-----------------------------------
|
|
534
541
|
|
|
535
542
|
### ui-virtual-select
|
package/index.common.js
CHANGED
|
@@ -14,12 +14,12 @@ var _regeneratorRuntime = require('@babel/runtime-corejs3/regenerator');
|
|
|
14
14
|
var _everyInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
15
15
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
16
16
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
17
|
+
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
17
18
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
18
19
|
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
19
20
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
20
21
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
21
22
|
var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
22
|
-
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
23
23
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
24
24
|
var _findIndexInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find-index');
|
|
25
25
|
var _spliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/splice');
|
|
@@ -43,12 +43,12 @@ var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regenerat
|
|
|
43
43
|
var _everyInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_everyInstanceProperty);
|
|
44
44
|
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_includesInstanceProperty);
|
|
45
45
|
var _Object$assign__default = /*#__PURE__*/_interopDefaultLegacy(_Object$assign);
|
|
46
|
+
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_concatInstanceProperty);
|
|
46
47
|
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_mapInstanceProperty);
|
|
47
48
|
var _someInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_someInstanceProperty);
|
|
48
49
|
var _Object$keys__default = /*#__PURE__*/_interopDefaultLegacy(_Object$keys);
|
|
49
50
|
var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_startsWithInstanceProperty);
|
|
50
51
|
var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_endsWithInstanceProperty);
|
|
51
|
-
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_concatInstanceProperty);
|
|
52
52
|
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_filterInstanceProperty);
|
|
53
53
|
var _findIndexInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_findIndexInstanceProperty);
|
|
54
54
|
var _spliceInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_spliceInstanceProperty);
|
|
@@ -2271,8 +2271,8 @@ var _deepcopy = function deepcopy(obj) {
|
|
|
2271
2271
|
}
|
|
2272
2272
|
};
|
|
2273
2273
|
|
|
2274
|
-
function _createForOfIteratorHelperLoose$1(r, e) { var
|
|
2275
|
-
function _unsupportedIterableToArray$1(r, a) { if (r) { var
|
|
2274
|
+
function _createForOfIteratorHelperLoose$1(r, e) { var _context0; var t = "undefined" != typeof _Symbol__default["default"] && _getIteratorMethod__default["default"](r) || r["@@iterator"]; if (t) return _bindInstanceProperty__default["default"](_context0 = (t = t.call(r)).next).call(_context0, t); if (_Array$isArray__default["default"](r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2275
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { var _context9; if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = _sliceInstanceProperty__default["default"](_context9 = {}.toString.call(r)).call(_context9, 8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? _Array$from__default["default"](r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
2276
2276
|
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2277
2277
|
var componentMap = {
|
|
2278
2278
|
input: "el-input",
|
|
@@ -2388,45 +2388,47 @@ var script$6 = {
|
|
|
2388
2388
|
initOptions: function initOptions() {
|
|
2389
2389
|
var _this = this;
|
|
2390
2390
|
return _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
|
|
2391
|
-
var _iterator, _step,
|
|
2392
|
-
return _regeneratorRuntime__default["default"].wrap(function (
|
|
2393
|
-
while (1) switch (
|
|
2391
|
+
var _iterator, _step, item, apiConfig, optionsRequired, preOptions, hasAll, _context6, _ref, url, _ref$params, params, res, options;
|
|
2392
|
+
return _regeneratorRuntime__default["default"].wrap(function (_context7) {
|
|
2393
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
2394
2394
|
case 0:
|
|
2395
2395
|
_iterator = _createForOfIteratorHelperLoose$1(_this.tempFormConfig);
|
|
2396
2396
|
case 1:
|
|
2397
2397
|
if ((_step = _iterator()).done) {
|
|
2398
|
-
|
|
2398
|
+
_context7.next = 6;
|
|
2399
2399
|
break;
|
|
2400
2400
|
}
|
|
2401
2401
|
item = _step.value;
|
|
2402
2402
|
apiConfig = item.api || _this.apiMapConfig[item.prop];
|
|
2403
2403
|
optionsRequired = _this.isSelectComponent(item.component) || _this.isRadioGroupComponent(item.component) || _this.isVirtualSelectComponent(item.component);
|
|
2404
|
-
|
|
2405
|
-
|
|
2404
|
+
preOptions = (item == null ? void 0 : item.options) || [];
|
|
2405
|
+
hasAll = preOptions.length === 1 && preOptions[0].value === null;
|
|
2406
|
+
if (!(optionsRequired && apiConfig && (!preOptions.length || hasAll))) {
|
|
2407
|
+
_context7.next = 5;
|
|
2406
2408
|
break;
|
|
2407
2409
|
}
|
|
2408
|
-
|
|
2410
|
+
_context7.prev = 2;
|
|
2409
2411
|
_ref = typeof apiConfig === "function" ? {
|
|
2410
2412
|
url: apiConfig
|
|
2411
2413
|
} : apiConfig, url = _ref.url, _ref$params = _ref.params, params = _ref$params === void 0 ? {} : _ref$params;
|
|
2412
|
-
|
|
2414
|
+
_context7.next = 3;
|
|
2413
2415
|
return url(params);
|
|
2414
2416
|
case 3:
|
|
2415
|
-
res =
|
|
2417
|
+
res = _context7.sent;
|
|
2416
2418
|
options = item.format ? item.format(res) : (res == null ? void 0 : res.data) || [];
|
|
2417
|
-
_this.$set(item, "options", options);
|
|
2418
|
-
|
|
2419
|
+
_this.$set(item, "options", _concatInstanceProperty__default["default"](_context6 = []).call(_context6, preOptions, options));
|
|
2420
|
+
_context7.next = 5;
|
|
2419
2421
|
break;
|
|
2420
2422
|
case 4:
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
+
_context7.prev = 4;
|
|
2424
|
+
_context7["catch"](2);
|
|
2423
2425
|
_this.$set(item, "options", []);
|
|
2424
2426
|
case 5:
|
|
2425
|
-
|
|
2427
|
+
_context7.next = 1;
|
|
2426
2428
|
break;
|
|
2427
2429
|
case 6:
|
|
2428
2430
|
case "end":
|
|
2429
|
-
return
|
|
2431
|
+
return _context7.stop();
|
|
2430
2432
|
}
|
|
2431
2433
|
}, _callee, null, [[2, 4]]);
|
|
2432
2434
|
}))();
|
|
@@ -2436,9 +2438,9 @@ var script$6 = {
|
|
|
2436
2438
|
this.$emit("reset");
|
|
2437
2439
|
},
|
|
2438
2440
|
getOptions: function getOptions() {
|
|
2439
|
-
var
|
|
2441
|
+
var _context8;
|
|
2440
2442
|
var propOptionsMap = {};
|
|
2441
|
-
_forEachInstanceProperty__default["default"](
|
|
2443
|
+
_forEachInstanceProperty__default["default"](_context8 = this.tempFormConfig).call(_context8, function (row) {
|
|
2442
2444
|
if (row.options) {
|
|
2443
2445
|
propOptionsMap[row.prop] = row.options;
|
|
2444
2446
|
}
|
|
@@ -3439,10 +3441,6 @@ var script$4 = {
|
|
|
3439
3441
|
confirmText: {
|
|
3440
3442
|
type: String,
|
|
3441
3443
|
default: '确定'
|
|
3442
|
-
},
|
|
3443
|
-
customFooter: {
|
|
3444
|
-
type: Boolean,
|
|
3445
|
-
default: false
|
|
3446
3444
|
}
|
|
3447
3445
|
},
|
|
3448
3446
|
computed: {
|
|
@@ -3455,8 +3453,7 @@ var script$4 = {
|
|
|
3455
3453
|
if (!val) this.$emit('close');
|
|
3456
3454
|
}
|
|
3457
3455
|
}
|
|
3458
|
-
}
|
|
3459
|
-
methods: {}
|
|
3456
|
+
}
|
|
3460
3457
|
};
|
|
3461
3458
|
|
|
3462
3459
|
/* script */
|
|
@@ -3506,7 +3503,7 @@ var __vue_render__$4 = function __vue_render__() {
|
|
|
3506
3503
|
return _vm.$emit('confirm');
|
|
3507
3504
|
}
|
|
3508
3505
|
}
|
|
3509
|
-
}, [_vm._v(" " + _vm._s(_vm.confirmText))]) : _vm._e()] : _vm._e(), _vm._v(" "), _vm.customFooter
|
|
3506
|
+
}, [_vm._v(" " + _vm._s(_vm.confirmText))]) : _vm._e()] : _vm._e(), _vm._v(" "), _vm._t("customFooter")];
|
|
3510
3507
|
},
|
|
3511
3508
|
proxy: true
|
|
3512
3509
|
}], null, true)
|