bm-admin-ui 1.0.18-alpha → 1.0.20-alpha
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/es/components/feedback/index.js +4 -4
- package/es/components/input-tags-display/index.js +61 -26
- package/es/components/multi-cascader-compose/index.js +4 -4
- package/es/components/search-filter/index.js +7 -5
- package/es/components/shops-filter/index.js +4 -4
- package/es/components/staffs-selector/index.js +4 -4
- package/es/components/upload/index.js +89 -30
- package/index.esm.js +469 -760
- package/index.js +389 -680
- package/lib/components/feedback/index.js +4 -4
- package/lib/components/input-tags-display/index.js +60 -25
- package/lib/components/multi-cascader-compose/index.js +4 -4
- package/lib/components/search-filter/index.js +7 -5
- package/lib/components/shops-filter/index.js +4 -4
- package/lib/components/staffs-selector/index.js +4 -4
- package/lib/components/upload/index.js +89 -30
- package/package.json +1 -1
- package/es/components/button/index.d.ts +0 -307
- package/es/components/button/src/button.d.ts +0 -12
- package/es/components/button/src/button.vue.d.ts +0 -308
- package/es/components/feedback/index.d.ts +0 -1037
- package/es/components/feedback/src/bmAlert.vue.d.ts +0 -193
- package/es/components/feedback/src/bmModal.vue.d.ts +0 -839
- package/es/components/float-table/index.d.ts +0 -70
- package/es/components/float-table/src/float-table.vue.d.ts +0 -69
- package/es/components/flow-designer/index.d.ts +0 -7
- package/es/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
- package/es/components/form-designer/index.d.ts +0 -9
- package/es/components/form-designer/src/form-designer.vue.d.ts +0 -8
- package/es/components/index.d.ts +0 -13
- package/es/components/input-tags-display/index.d.ts +0 -72
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -69
- package/es/components/multi-cascader-compose/index.d.ts +0 -164
- package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
- package/es/components/multi-cascader-compose/src/props.d.ts +0 -40
- package/es/components/multi-cascader-compose/types.d.ts +0 -10
- package/es/components/over-tooltips/index.d.ts +0 -35
- package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
- package/es/components/search-filter/index.d.ts +0 -194
- package/es/components/search-filter/src/search-filter.d.ts +0 -57
- package/es/components/search-filter/src/search-filter.vue.d.ts +0 -193
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +0 -50
- package/es/components/shops-filter/index.d.ts +0 -99
- package/es/components/shops-filter/src/shops-filter.d.ts +0 -25
- package/es/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
- package/es/components/staffs-selector/index.d.ts +0 -109
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
- package/es/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
- package/es/components/timeline/index.d.ts +0 -107
- package/es/components/timeline/src/props.d.ts +0 -24
- package/es/components/timeline/src/timeline-item.vue.d.ts +0 -65
- package/es/components/timeline/src/timeline.vue.d.ts +0 -42
- package/es/components/upload/index.d.ts +0 -135
- package/es/components/upload/src/icons.d.ts +0 -13
- package/es/components/upload/src/upload.vue.d.ts +0 -134
- package/es/components/upload/utils/index.d.ts +0 -7
- package/es/index.d.ts +0 -6
- package/es/utils/bm-admin-ui-resolver.d.ts +0 -9
- package/es/utils/vxe-table.d.ts +0 -6
- package/es/utils/with-install.d.ts +0 -3
- package/lib/components/button/index.d.ts +0 -307
- package/lib/components/button/src/button.d.ts +0 -12
- package/lib/components/button/src/button.vue.d.ts +0 -308
- package/lib/components/feedback/index.d.ts +0 -1037
- package/lib/components/feedback/src/bmAlert.vue.d.ts +0 -193
- package/lib/components/feedback/src/bmModal.vue.d.ts +0 -839
- package/lib/components/float-table/index.d.ts +0 -70
- package/lib/components/float-table/src/float-table.vue.d.ts +0 -69
- package/lib/components/flow-designer/index.d.ts +0 -7
- package/lib/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
- package/lib/components/form-designer/index.d.ts +0 -9
- package/lib/components/form-designer/src/form-designer.vue.d.ts +0 -8
- package/lib/components/index.d.ts +0 -13
- package/lib/components/input-tags-display/index.d.ts +0 -72
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -69
- package/lib/components/multi-cascader-compose/index.d.ts +0 -164
- package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
- package/lib/components/multi-cascader-compose/src/props.d.ts +0 -40
- package/lib/components/multi-cascader-compose/types.d.ts +0 -10
- package/lib/components/over-tooltips/index.d.ts +0 -35
- package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
- package/lib/components/search-filter/index.d.ts +0 -194
- package/lib/components/search-filter/src/search-filter.d.ts +0 -57
- package/lib/components/search-filter/src/search-filter.vue.d.ts +0 -193
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +0 -50
- package/lib/components/shops-filter/index.d.ts +0 -99
- package/lib/components/shops-filter/src/shops-filter.d.ts +0 -25
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
- package/lib/components/staffs-selector/index.d.ts +0 -109
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
- package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
- package/lib/components/timeline/index.d.ts +0 -107
- package/lib/components/timeline/src/props.d.ts +0 -24
- package/lib/components/timeline/src/timeline-item.vue.d.ts +0 -65
- package/lib/components/timeline/src/timeline.vue.d.ts +0 -42
- package/lib/components/upload/index.d.ts +0 -135
- package/lib/components/upload/src/icons.d.ts +0 -13
- package/lib/components/upload/src/upload.vue.d.ts +0 -134
- package/lib/components/upload/utils/index.d.ts +0 -7
- package/lib/index.d.ts +0 -6
- package/lib/utils/bm-admin-ui-resolver.d.ts +0 -9
- package/lib/utils/vxe-table.d.ts +0 -6
- package/lib/utils/with-install.d.ts +0 -3
- package/types/components/button/index.d.ts +0 -307
- package/types/components/button/src/button.d.ts +0 -12
- package/types/components/button/src/button.vue.d.ts +0 -308
- package/types/components/feedback/index.d.ts +0 -1037
- package/types/components/feedback/src/bmAlert.vue.d.ts +0 -193
- package/types/components/feedback/src/bmModal.vue.d.ts +0 -839
- package/types/components/float-table/index.d.ts +0 -70
- package/types/components/float-table/src/float-table.vue.d.ts +0 -69
- package/types/components/flow-designer/index.d.ts +0 -7
- package/types/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
- package/types/components/form-designer/index.d.ts +0 -9
- package/types/components/form-designer/src/form-designer.vue.d.ts +0 -8
- package/types/components/index.d.ts +0 -13
- package/types/components/input-tags-display/index.d.ts +0 -72
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -69
- package/types/components/multi-cascader-compose/index.d.ts +0 -164
- package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
- package/types/components/multi-cascader-compose/src/props.d.ts +0 -40
- package/types/components/multi-cascader-compose/types.d.ts +0 -10
- package/types/components/over-tooltips/index.d.ts +0 -35
- package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
- package/types/components/search-filter/index.d.ts +0 -194
- package/types/components/search-filter/src/search-filter.d.ts +0 -57
- package/types/components/search-filter/src/search-filter.vue.d.ts +0 -193
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +0 -50
- package/types/components/shops-filter/index.d.ts +0 -99
- package/types/components/shops-filter/src/shops-filter.d.ts +0 -25
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
- package/types/components/staffs-selector/index.d.ts +0 -109
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
- package/types/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
- package/types/components/timeline/index.d.ts +0 -107
- package/types/components/timeline/src/props.d.ts +0 -24
- package/types/components/timeline/src/timeline-item.vue.d.ts +0 -65
- package/types/components/timeline/src/timeline.vue.d.ts +0 -42
- package/types/components/upload/index.d.ts +0 -135
- package/types/components/upload/src/icons.d.ts +0 -13
- package/types/components/upload/src/upload.vue.d.ts +0 -134
- package/types/components/upload/utils/index.d.ts +0 -7
- package/types/index.d.ts +0 -6
- package/types/utils/bm-admin-ui-resolver.d.ts +0 -9
- package/types/utils/vxe-table.d.ts +0 -6
- package/types/utils/with-install.d.ts +0 -3
package/index.js
CHANGED
|
@@ -127,7 +127,7 @@ var process = {
|
|
|
127
127
|
|
|
128
128
|
(function (module) {
|
|
129
129
|
function _extends() {
|
|
130
|
-
module.exports = _extends = Object.assign
|
|
130
|
+
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
131
131
|
for (var i = 1; i < arguments.length; i++) {
|
|
132
132
|
var source = arguments[i];
|
|
133
133
|
|
|
@@ -3186,7 +3186,7 @@ var process = {
|
|
|
3186
3186
|
*/
|
|
3187
3187
|
function convertToPercentage(n) {
|
|
3188
3188
|
if (n <= 1) {
|
|
3189
|
-
return Number(n) * 100
|
|
3189
|
+
return "".concat(Number(n) * 100, "%");
|
|
3190
3190
|
}
|
|
3191
3191
|
return n;
|
|
3192
3192
|
}
|
|
@@ -3652,12 +3652,12 @@ var process = {
|
|
|
3652
3652
|
// <http://www.w3.org/TR/css3-values/#number-value>
|
|
3653
3653
|
var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
|
|
3654
3654
|
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
|
|
3655
|
-
var CSS_UNIT = "(?:"
|
|
3655
|
+
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
|
|
3656
3656
|
// Actual matching.
|
|
3657
3657
|
// Parentheses and commas are optional, but not required.
|
|
3658
3658
|
// Whitespace can take the place of commas or opening paren
|
|
3659
|
-
var PERMISSIVE_MATCH3 = "[\\s|\\(]+("
|
|
3660
|
-
var PERMISSIVE_MATCH4 = "[\\s|\\(]+("
|
|
3659
|
+
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
3660
|
+
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
3661
3661
|
var matchers = {
|
|
3662
3662
|
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
3663
3663
|
rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
|
|
@@ -3883,7 +3883,7 @@ var process = {
|
|
|
3883
3883
|
var h = Math.round(hsv.h * 360);
|
|
3884
3884
|
var s = Math.round(hsv.s * 100);
|
|
3885
3885
|
var v = Math.round(hsv.v * 100);
|
|
3886
|
-
return this.a === 1 ? "hsv("
|
|
3886
|
+
return this.a === 1 ? "hsv(".concat(h, ", ").concat(s, "%, ").concat(v, "%)") : "hsva(".concat(h, ", ").concat(s, "%, ").concat(v, "%, ").concat(this.roundA, ")");
|
|
3887
3887
|
};
|
|
3888
3888
|
/**
|
|
3889
3889
|
* Returns the object as a HSLA object.
|
|
@@ -3901,7 +3901,7 @@ var process = {
|
|
|
3901
3901
|
var h = Math.round(hsl.h * 360);
|
|
3902
3902
|
var s = Math.round(hsl.s * 100);
|
|
3903
3903
|
var l = Math.round(hsl.l * 100);
|
|
3904
|
-
return this.a === 1 ? "hsl("
|
|
3904
|
+
return this.a === 1 ? "hsl(".concat(h, ", ").concat(s, "%, ").concat(l, "%)") : "hsla(".concat(h, ", ").concat(s, "%, ").concat(l, "%, ").concat(this.roundA, ")");
|
|
3905
3905
|
};
|
|
3906
3906
|
/**
|
|
3907
3907
|
* Returns the hex value of the color.
|
|
@@ -3954,13 +3954,13 @@ var process = {
|
|
|
3954
3954
|
var r = Math.round(this.r);
|
|
3955
3955
|
var g = Math.round(this.g);
|
|
3956
3956
|
var b = Math.round(this.b);
|
|
3957
|
-
return this.a === 1 ? "rgb("
|
|
3957
|
+
return this.a === 1 ? "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ")") : "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(this.roundA, ")");
|
|
3958
3958
|
};
|
|
3959
3959
|
/**
|
|
3960
3960
|
* Returns the object as a RGBA object.
|
|
3961
3961
|
*/
|
|
3962
3962
|
TinyColor.prototype.toPercentageRgb = function () {
|
|
3963
|
-
var fmt = function (x) { return Math.round(bound01(x, 255) * 100)
|
|
3963
|
+
var fmt = function (x) { return "".concat(Math.round(bound01(x, 255) * 100), "%"); };
|
|
3964
3964
|
return {
|
|
3965
3965
|
r: fmt(this.r),
|
|
3966
3966
|
g: fmt(this.g),
|
|
@@ -3974,8 +3974,8 @@ var process = {
|
|
|
3974
3974
|
TinyColor.prototype.toPercentageRgbString = function () {
|
|
3975
3975
|
var rnd = function (x) { return Math.round(bound01(x, 255) * 100); };
|
|
3976
3976
|
return this.a === 1
|
|
3977
|
-
? "rgb("
|
|
3978
|
-
: "rgba("
|
|
3977
|
+
? "rgb(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%)")
|
|
3978
|
+
: "rgba(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%, ").concat(this.roundA, ")");
|
|
3979
3979
|
};
|
|
3980
3980
|
/**
|
|
3981
3981
|
* The 'real' name of the color -if there is one.
|
|
@@ -4343,7 +4343,7 @@ var process = {
|
|
|
4343
4343
|
var s = new TinyColor(secondColor);
|
|
4344
4344
|
secondHex8String = '#' + rgbaToArgbHex(s.r, s.g, s.b, s.a);
|
|
4345
4345
|
}
|
|
4346
|
-
return "progid:DXImageTransform.Microsoft.gradient("
|
|
4346
|
+
return "progid:DXImageTransform.Microsoft.gradient(".concat(gradientType, "startColorstr=").concat(hex8String, ",endColorstr=").concat(secondHex8String, ")");
|
|
4347
4347
|
}
|
|
4348
4348
|
|
|
4349
4349
|
/**
|
|
@@ -5795,765 +5795,379 @@ var process = {
|
|
|
5795
5795
|
|
|
5796
5796
|
var notification$1 = {};
|
|
5797
5797
|
|
|
5798
|
-
var
|
|
5799
|
-
|
|
5800
|
-
/**
|
|
5801
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
5802
|
-
*
|
|
5803
|
-
* This source code is licensed under the MIT license found in the
|
|
5804
|
-
* LICENSE file in the root directory of this source tree.
|
|
5805
|
-
*/
|
|
5798
|
+
var regeneratorRuntime$1 = {exports: {}};
|
|
5806
5799
|
|
|
5807
5800
|
(function (module) {
|
|
5808
|
-
var
|
|
5801
|
+
var _typeof = _typeof$c.exports["default"];
|
|
5809
5802
|
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
var
|
|
5803
|
+
function _regeneratorRuntime() {
|
|
5804
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
5805
|
+
|
|
5806
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
5807
|
+
return exports;
|
|
5808
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
5809
|
+
var exports = {},
|
|
5810
|
+
Op = Object.prototype,
|
|
5811
|
+
hasOwn = Op.hasOwnProperty,
|
|
5812
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
5813
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
5814
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
5815
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
5817
5816
|
|
|
5818
5817
|
function define(obj, key, value) {
|
|
5819
|
-
Object.defineProperty(obj, key, {
|
|
5818
|
+
return Object.defineProperty(obj, key, {
|
|
5820
5819
|
value: value,
|
|
5821
|
-
enumerable:
|
|
5822
|
-
configurable:
|
|
5823
|
-
writable:
|
|
5824
|
-
});
|
|
5825
|
-
return obj[key];
|
|
5820
|
+
enumerable: !0,
|
|
5821
|
+
configurable: !0,
|
|
5822
|
+
writable: !0
|
|
5823
|
+
}), obj[key];
|
|
5826
5824
|
}
|
|
5825
|
+
|
|
5827
5826
|
try {
|
|
5828
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
5829
5827
|
define({}, "");
|
|
5830
5828
|
} catch (err) {
|
|
5831
|
-
define = function(obj, key, value) {
|
|
5829
|
+
define = function define(obj, key, value) {
|
|
5832
5830
|
return obj[key] = value;
|
|
5833
5831
|
};
|
|
5834
5832
|
}
|
|
5835
5833
|
|
|
5836
5834
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5835
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
5836
|
+
generator = Object.create(protoGenerator.prototype),
|
|
5837
|
+
context = new Context(tryLocsList || []);
|
|
5838
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
5839
|
+
var state = "suspendedStart";
|
|
5840
|
+
return function (method, arg) {
|
|
5841
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
5842
|
+
|
|
5843
|
+
if ("completed" === state) {
|
|
5844
|
+
if ("throw" === method) throw arg;
|
|
5845
|
+
return doneResult();
|
|
5846
|
+
}
|
|
5847
|
+
|
|
5848
|
+
for (context.method = method, context.arg = arg;;) {
|
|
5849
|
+
var delegate = context.delegate;
|
|
5841
5850
|
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
5851
|
+
if (delegate) {
|
|
5852
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
5845
5853
|
|
|
5846
|
-
|
|
5854
|
+
if (delegateResult) {
|
|
5855
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
5856
|
+
return delegateResult;
|
|
5857
|
+
}
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
5861
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
5862
|
+
context.dispatchException(context.arg);
|
|
5863
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
5864
|
+
state = "executing";
|
|
5865
|
+
var record = tryCatch(innerFn, self, context);
|
|
5866
|
+
|
|
5867
|
+
if ("normal" === record.type) {
|
|
5868
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
5869
|
+
return {
|
|
5870
|
+
value: record.arg,
|
|
5871
|
+
done: context.done
|
|
5872
|
+
};
|
|
5873
|
+
}
|
|
5874
|
+
|
|
5875
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
5876
|
+
}
|
|
5877
|
+
};
|
|
5878
|
+
}(innerFn, self, context), generator;
|
|
5847
5879
|
}
|
|
5848
|
-
exports.wrap = wrap;
|
|
5849
5880
|
|
|
5850
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
5851
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
5852
|
-
// have been (and was previously) designed to take a closure to be
|
|
5853
|
-
// invoked without arguments, but in all the cases we care about we
|
|
5854
|
-
// already have an existing method we want to call, so there's no need
|
|
5855
|
-
// to create a new function object. We can even get away with assuming
|
|
5856
|
-
// the method takes exactly one argument, since that happens to be true
|
|
5857
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
5858
|
-
// only additional allocation required is the completion record, which
|
|
5859
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
5860
5881
|
function tryCatch(fn, obj, arg) {
|
|
5861
5882
|
try {
|
|
5862
|
-
return {
|
|
5883
|
+
return {
|
|
5884
|
+
type: "normal",
|
|
5885
|
+
arg: fn.call(obj, arg)
|
|
5886
|
+
};
|
|
5863
5887
|
} catch (err) {
|
|
5864
|
-
return {
|
|
5888
|
+
return {
|
|
5889
|
+
type: "throw",
|
|
5890
|
+
arg: err
|
|
5891
|
+
};
|
|
5865
5892
|
}
|
|
5866
5893
|
}
|
|
5867
5894
|
|
|
5868
|
-
|
|
5869
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
5870
|
-
var GenStateExecuting = "executing";
|
|
5871
|
-
var GenStateCompleted = "completed";
|
|
5872
|
-
|
|
5873
|
-
// Returning this object from the innerFn has the same effect as
|
|
5874
|
-
// breaking out of the dispatch switch statement.
|
|
5895
|
+
exports.wrap = wrap;
|
|
5875
5896
|
var ContinueSentinel = {};
|
|
5876
5897
|
|
|
5877
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
5878
|
-
// .constructor.prototype properties for functions that return Generator
|
|
5879
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
5880
|
-
// minifier not to mangle the names of these two functions.
|
|
5881
5898
|
function Generator() {}
|
|
5899
|
+
|
|
5882
5900
|
function GeneratorFunction() {}
|
|
5901
|
+
|
|
5883
5902
|
function GeneratorFunctionPrototype() {}
|
|
5884
5903
|
|
|
5885
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
5886
|
-
// don't natively support it.
|
|
5887
5904
|
var IteratorPrototype = {};
|
|
5888
5905
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
5889
5906
|
return this;
|
|
5890
5907
|
});
|
|
5908
|
+
var getProto = Object.getPrototypeOf,
|
|
5909
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
5910
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
5911
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
5891
5912
|
|
|
5892
|
-
var getProto = Object.getPrototypeOf;
|
|
5893
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
5894
|
-
if (NativeIteratorPrototype &&
|
|
5895
|
-
NativeIteratorPrototype !== Op &&
|
|
5896
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
5897
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
5898
|
-
// of the polyfill.
|
|
5899
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
5900
|
-
}
|
|
5901
|
-
|
|
5902
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
5903
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
5904
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
5905
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
5906
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
5907
|
-
GeneratorFunction.displayName = define(
|
|
5908
|
-
GeneratorFunctionPrototype,
|
|
5909
|
-
toStringTagSymbol,
|
|
5910
|
-
"GeneratorFunction"
|
|
5911
|
-
);
|
|
5912
|
-
|
|
5913
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
5914
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
5915
5913
|
function defineIteratorMethods(prototype) {
|
|
5916
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
5917
|
-
define(prototype, method, function(arg) {
|
|
5914
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
5915
|
+
define(prototype, method, function (arg) {
|
|
5918
5916
|
return this._invoke(method, arg);
|
|
5919
5917
|
});
|
|
5920
5918
|
});
|
|
5921
5919
|
}
|
|
5922
5920
|
|
|
5923
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
5924
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
5925
|
-
return ctor
|
|
5926
|
-
? ctor === GeneratorFunction ||
|
|
5927
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
5928
|
-
// do is to check its .name property.
|
|
5929
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
5930
|
-
: false;
|
|
5931
|
-
};
|
|
5932
|
-
|
|
5933
|
-
exports.mark = function(genFun) {
|
|
5934
|
-
if (Object.setPrototypeOf) {
|
|
5935
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
5936
|
-
} else {
|
|
5937
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
5938
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
5939
|
-
}
|
|
5940
|
-
genFun.prototype = Object.create(Gp);
|
|
5941
|
-
return genFun;
|
|
5942
|
-
};
|
|
5943
|
-
|
|
5944
|
-
// Within the body of any async function, `await x` is transformed to
|
|
5945
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
5946
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
5947
|
-
// meant to be awaited.
|
|
5948
|
-
exports.awrap = function(arg) {
|
|
5949
|
-
return { __await: arg };
|
|
5950
|
-
};
|
|
5951
|
-
|
|
5952
5921
|
function AsyncIterator(generator, PromiseImpl) {
|
|
5953
5922
|
function invoke(method, arg, resolve, reject) {
|
|
5954
5923
|
var record = tryCatch(generator[method], generator, arg);
|
|
5955
|
-
if (record.type === "throw") {
|
|
5956
|
-
reject(record.arg);
|
|
5957
|
-
} else {
|
|
5958
|
-
var result = record.arg;
|
|
5959
|
-
var value = result.value;
|
|
5960
|
-
if (value &&
|
|
5961
|
-
typeof value === "object" &&
|
|
5962
|
-
hasOwn.call(value, "__await")) {
|
|
5963
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
5964
|
-
invoke("next", value, resolve, reject);
|
|
5965
|
-
}, function(err) {
|
|
5966
|
-
invoke("throw", err, resolve, reject);
|
|
5967
|
-
});
|
|
5968
|
-
}
|
|
5969
5924
|
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5925
|
+
if ("throw" !== record.type) {
|
|
5926
|
+
var result = record.arg,
|
|
5927
|
+
value = result.value;
|
|
5928
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
5929
|
+
invoke("next", value, resolve, reject);
|
|
5930
|
+
}, function (err) {
|
|
5931
|
+
invoke("throw", err, resolve, reject);
|
|
5932
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
5933
|
+
result.value = unwrapped, resolve(result);
|
|
5934
|
+
}, function (error) {
|
|
5979
5935
|
return invoke("throw", error, resolve, reject);
|
|
5980
5936
|
});
|
|
5981
5937
|
}
|
|
5938
|
+
|
|
5939
|
+
reject(record.arg);
|
|
5982
5940
|
}
|
|
5983
5941
|
|
|
5984
5942
|
var previousPromise;
|
|
5985
5943
|
|
|
5986
|
-
function
|
|
5944
|
+
this._invoke = function (method, arg) {
|
|
5987
5945
|
function callInvokeWithMethodAndArg() {
|
|
5988
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
5946
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
5989
5947
|
invoke(method, arg, resolve, reject);
|
|
5990
5948
|
});
|
|
5991
5949
|
}
|
|
5992
5950
|
|
|
5993
|
-
return previousPromise =
|
|
5994
|
-
// If enqueue has been called before, then we want to wait until
|
|
5995
|
-
// all previous Promises have been resolved before calling invoke,
|
|
5996
|
-
// so that results are always delivered in the correct order. If
|
|
5997
|
-
// enqueue has not been called before, then it is important to
|
|
5998
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
5999
|
-
// so that the async generator function has the opportunity to do
|
|
6000
|
-
// any necessary setup in a predictable way. This predictability
|
|
6001
|
-
// is why the Promise constructor synchronously invokes its
|
|
6002
|
-
// executor callback, and why async functions synchronously
|
|
6003
|
-
// execute code before the first await. Since we implement simple
|
|
6004
|
-
// async functions in terms of async generators, it is especially
|
|
6005
|
-
// important to get this right, even though it requires care.
|
|
6006
|
-
previousPromise ? previousPromise.then(
|
|
6007
|
-
callInvokeWithMethodAndArg,
|
|
6008
|
-
// Avoid propagating failures to Promises returned by later
|
|
6009
|
-
// invocations of the iterator.
|
|
6010
|
-
callInvokeWithMethodAndArg
|
|
6011
|
-
) : callInvokeWithMethodAndArg();
|
|
6012
|
-
}
|
|
6013
|
-
|
|
6014
|
-
// Define the unified helper method that is used to implement .next,
|
|
6015
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
6016
|
-
this._invoke = enqueue;
|
|
6017
|
-
}
|
|
6018
|
-
|
|
6019
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
6020
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
6021
|
-
return this;
|
|
6022
|
-
});
|
|
6023
|
-
exports.AsyncIterator = AsyncIterator;
|
|
6024
|
-
|
|
6025
|
-
// Note that simple async functions are implemented on top of
|
|
6026
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
6027
|
-
// the final result produced by the iterator.
|
|
6028
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
6029
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
6030
|
-
|
|
6031
|
-
var iter = new AsyncIterator(
|
|
6032
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
6033
|
-
PromiseImpl
|
|
6034
|
-
);
|
|
6035
|
-
|
|
6036
|
-
return exports.isGeneratorFunction(outerFn)
|
|
6037
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
6038
|
-
: iter.next().then(function(result) {
|
|
6039
|
-
return result.done ? result.value : iter.next();
|
|
6040
|
-
});
|
|
6041
|
-
};
|
|
6042
|
-
|
|
6043
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
6044
|
-
var state = GenStateSuspendedStart;
|
|
6045
|
-
|
|
6046
|
-
return function invoke(method, arg) {
|
|
6047
|
-
if (state === GenStateExecuting) {
|
|
6048
|
-
throw new Error("Generator is already running");
|
|
6049
|
-
}
|
|
6050
|
-
|
|
6051
|
-
if (state === GenStateCompleted) {
|
|
6052
|
-
if (method === "throw") {
|
|
6053
|
-
throw arg;
|
|
6054
|
-
}
|
|
6055
|
-
|
|
6056
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
6057
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
6058
|
-
return doneResult();
|
|
6059
|
-
}
|
|
6060
|
-
|
|
6061
|
-
context.method = method;
|
|
6062
|
-
context.arg = arg;
|
|
6063
|
-
|
|
6064
|
-
while (true) {
|
|
6065
|
-
var delegate = context.delegate;
|
|
6066
|
-
if (delegate) {
|
|
6067
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
6068
|
-
if (delegateResult) {
|
|
6069
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
6070
|
-
return delegateResult;
|
|
6071
|
-
}
|
|
6072
|
-
}
|
|
6073
|
-
|
|
6074
|
-
if (context.method === "next") {
|
|
6075
|
-
// Setting context._sent for legacy support of Babel's
|
|
6076
|
-
// function.sent implementation.
|
|
6077
|
-
context.sent = context._sent = context.arg;
|
|
6078
|
-
|
|
6079
|
-
} else if (context.method === "throw") {
|
|
6080
|
-
if (state === GenStateSuspendedStart) {
|
|
6081
|
-
state = GenStateCompleted;
|
|
6082
|
-
throw context.arg;
|
|
6083
|
-
}
|
|
6084
|
-
|
|
6085
|
-
context.dispatchException(context.arg);
|
|
6086
|
-
|
|
6087
|
-
} else if (context.method === "return") {
|
|
6088
|
-
context.abrupt("return", context.arg);
|
|
6089
|
-
}
|
|
6090
|
-
|
|
6091
|
-
state = GenStateExecuting;
|
|
6092
|
-
|
|
6093
|
-
var record = tryCatch(innerFn, self, context);
|
|
6094
|
-
if (record.type === "normal") {
|
|
6095
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
6096
|
-
// GenStateExecuting and loop back for another invocation.
|
|
6097
|
-
state = context.done
|
|
6098
|
-
? GenStateCompleted
|
|
6099
|
-
: GenStateSuspendedYield;
|
|
6100
|
-
|
|
6101
|
-
if (record.arg === ContinueSentinel) {
|
|
6102
|
-
continue;
|
|
6103
|
-
}
|
|
6104
|
-
|
|
6105
|
-
return {
|
|
6106
|
-
value: record.arg,
|
|
6107
|
-
done: context.done
|
|
6108
|
-
};
|
|
6109
|
-
|
|
6110
|
-
} else if (record.type === "throw") {
|
|
6111
|
-
state = GenStateCompleted;
|
|
6112
|
-
// Dispatch the exception by looping back around to the
|
|
6113
|
-
// context.dispatchException(context.arg) call above.
|
|
6114
|
-
context.method = "throw";
|
|
6115
|
-
context.arg = record.arg;
|
|
6116
|
-
}
|
|
6117
|
-
}
|
|
5951
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
6118
5952
|
};
|
|
6119
5953
|
}
|
|
6120
5954
|
|
|
6121
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
6122
|
-
// result, either by returning a { value, done } result from the
|
|
6123
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
6124
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
6125
5955
|
function maybeInvokeDelegate(delegate, context) {
|
|
6126
5956
|
var method = delegate.iterator[context.method];
|
|
6127
|
-
if (method === undefined$1) {
|
|
6128
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
6129
|
-
// method always terminates the yield* loop.
|
|
6130
|
-
context.delegate = null;
|
|
6131
|
-
|
|
6132
|
-
if (context.method === "throw") {
|
|
6133
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
6134
|
-
if (delegate.iterator["return"]) {
|
|
6135
|
-
// If the delegate iterator has a return method, give it a
|
|
6136
|
-
// chance to clean up.
|
|
6137
|
-
context.method = "return";
|
|
6138
|
-
context.arg = undefined$1;
|
|
6139
|
-
maybeInvokeDelegate(delegate, context);
|
|
6140
|
-
|
|
6141
|
-
if (context.method === "throw") {
|
|
6142
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
6143
|
-
// "return" to "throw", let that override the TypeError below.
|
|
6144
|
-
return ContinueSentinel;
|
|
6145
|
-
}
|
|
6146
|
-
}
|
|
6147
5957
|
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
5958
|
+
if (undefined === method) {
|
|
5959
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
5960
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
5961
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
6151
5962
|
}
|
|
6152
5963
|
|
|
6153
5964
|
return ContinueSentinel;
|
|
6154
5965
|
}
|
|
6155
5966
|
|
|
6156
5967
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
6157
|
-
|
|
6158
|
-
if (record.type === "throw") {
|
|
6159
|
-
context.method = "throw";
|
|
6160
|
-
context.arg = record.arg;
|
|
6161
|
-
context.delegate = null;
|
|
6162
|
-
return ContinueSentinel;
|
|
6163
|
-
}
|
|
6164
|
-
|
|
5968
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
6165
5969
|
var info = record.arg;
|
|
6166
|
-
|
|
6167
|
-
if (! info) {
|
|
6168
|
-
context.method = "throw";
|
|
6169
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
6170
|
-
context.delegate = null;
|
|
6171
|
-
return ContinueSentinel;
|
|
6172
|
-
}
|
|
6173
|
-
|
|
6174
|
-
if (info.done) {
|
|
6175
|
-
// Assign the result of the finished delegate to the temporary
|
|
6176
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
6177
|
-
context[delegate.resultName] = info.value;
|
|
6178
|
-
|
|
6179
|
-
// Resume execution at the desired location (see delegateYield).
|
|
6180
|
-
context.next = delegate.nextLoc;
|
|
6181
|
-
|
|
6182
|
-
// If context.method was "throw" but the delegate handled the
|
|
6183
|
-
// exception, let the outer generator proceed normally. If
|
|
6184
|
-
// context.method was "next", forget context.arg since it has been
|
|
6185
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
6186
|
-
// "return", allow the original .return call to continue in the
|
|
6187
|
-
// outer generator.
|
|
6188
|
-
if (context.method !== "return") {
|
|
6189
|
-
context.method = "next";
|
|
6190
|
-
context.arg = undefined$1;
|
|
6191
|
-
}
|
|
6192
|
-
|
|
6193
|
-
} else {
|
|
6194
|
-
// Re-yield the result returned by the delegate method.
|
|
6195
|
-
return info;
|
|
6196
|
-
}
|
|
6197
|
-
|
|
6198
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
6199
|
-
// the outer generator.
|
|
6200
|
-
context.delegate = null;
|
|
6201
|
-
return ContinueSentinel;
|
|
5970
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
6202
5971
|
}
|
|
6203
5972
|
|
|
6204
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
6205
|
-
// unified ._invoke helper method.
|
|
6206
|
-
defineIteratorMethods(Gp);
|
|
6207
|
-
|
|
6208
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
6209
|
-
|
|
6210
|
-
// A Generator should always return itself as the iterator object when the
|
|
6211
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
6212
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
6213
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
6214
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
6215
|
-
define(Gp, iteratorSymbol, function() {
|
|
6216
|
-
return this;
|
|
6217
|
-
});
|
|
6218
|
-
|
|
6219
|
-
define(Gp, "toString", function() {
|
|
6220
|
-
return "[object Generator]";
|
|
6221
|
-
});
|
|
6222
|
-
|
|
6223
5973
|
function pushTryEntry(locs) {
|
|
6224
|
-
var entry = {
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
}
|
|
6229
|
-
|
|
6230
|
-
if (2 in locs) {
|
|
6231
|
-
entry.finallyLoc = locs[2];
|
|
6232
|
-
entry.afterLoc = locs[3];
|
|
6233
|
-
}
|
|
6234
|
-
|
|
6235
|
-
this.tryEntries.push(entry);
|
|
5974
|
+
var entry = {
|
|
5975
|
+
tryLoc: locs[0]
|
|
5976
|
+
};
|
|
5977
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
6236
5978
|
}
|
|
6237
5979
|
|
|
6238
5980
|
function resetTryEntry(entry) {
|
|
6239
5981
|
var record = entry.completion || {};
|
|
6240
|
-
record.type = "normal";
|
|
6241
|
-
delete record.arg;
|
|
6242
|
-
entry.completion = record;
|
|
5982
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
6243
5983
|
}
|
|
6244
5984
|
|
|
6245
5985
|
function Context(tryLocsList) {
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
6250
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
6251
|
-
this.reset(true);
|
|
5986
|
+
this.tryEntries = [{
|
|
5987
|
+
tryLoc: "root"
|
|
5988
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
6252
5989
|
}
|
|
6253
5990
|
|
|
6254
|
-
exports.keys = function(object) {
|
|
6255
|
-
var keys = [];
|
|
6256
|
-
for (var key in object) {
|
|
6257
|
-
keys.push(key);
|
|
6258
|
-
}
|
|
6259
|
-
keys.reverse();
|
|
6260
|
-
|
|
6261
|
-
// Rather than returning an object with a next method, we keep
|
|
6262
|
-
// things simple and return the next function itself.
|
|
6263
|
-
return function next() {
|
|
6264
|
-
while (keys.length) {
|
|
6265
|
-
var key = keys.pop();
|
|
6266
|
-
if (key in object) {
|
|
6267
|
-
next.value = key;
|
|
6268
|
-
next.done = false;
|
|
6269
|
-
return next;
|
|
6270
|
-
}
|
|
6271
|
-
}
|
|
6272
|
-
|
|
6273
|
-
// To avoid creating an additional object, we just hang the .value
|
|
6274
|
-
// and .done properties off the next function object itself. This
|
|
6275
|
-
// also ensures that the minifier will not anonymize the function.
|
|
6276
|
-
next.done = true;
|
|
6277
|
-
return next;
|
|
6278
|
-
};
|
|
6279
|
-
};
|
|
6280
|
-
|
|
6281
5991
|
function values(iterable) {
|
|
6282
5992
|
if (iterable) {
|
|
6283
5993
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
6284
|
-
if (iteratorMethod)
|
|
6285
|
-
|
|
6286
|
-
}
|
|
6287
|
-
|
|
6288
|
-
if (typeof iterable.next === "function") {
|
|
6289
|
-
return iterable;
|
|
6290
|
-
}
|
|
5994
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
5995
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
6291
5996
|
|
|
6292
5997
|
if (!isNaN(iterable.length)) {
|
|
6293
|
-
var i = -1,
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
next.done = false;
|
|
6298
|
-
return next;
|
|
6299
|
-
}
|
|
5998
|
+
var i = -1,
|
|
5999
|
+
next = function next() {
|
|
6000
|
+
for (; ++i < iterable.length;) {
|
|
6001
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
6300
6002
|
}
|
|
6301
6003
|
|
|
6302
|
-
next.value = undefined
|
|
6303
|
-
next.done = true;
|
|
6304
|
-
|
|
6305
|
-
return next;
|
|
6004
|
+
return next.value = undefined, next.done = !0, next;
|
|
6306
6005
|
};
|
|
6307
6006
|
|
|
6308
6007
|
return next.next = next;
|
|
6309
6008
|
}
|
|
6310
6009
|
}
|
|
6311
6010
|
|
|
6312
|
-
|
|
6313
|
-
|
|
6011
|
+
return {
|
|
6012
|
+
next: doneResult
|
|
6013
|
+
};
|
|
6314
6014
|
}
|
|
6315
|
-
exports.values = values;
|
|
6316
6015
|
|
|
6317
6016
|
function doneResult() {
|
|
6318
|
-
return {
|
|
6017
|
+
return {
|
|
6018
|
+
value: undefined,
|
|
6019
|
+
done: !0
|
|
6020
|
+
};
|
|
6319
6021
|
}
|
|
6320
6022
|
|
|
6321
|
-
|
|
6322
|
-
constructor
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
this[name] = undefined$1;
|
|
6345
|
-
}
|
|
6346
|
-
}
|
|
6347
|
-
}
|
|
6348
|
-
},
|
|
6023
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
6024
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
6025
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
6026
|
+
}, exports.mark = function (genFun) {
|
|
6027
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
6028
|
+
}, exports.awrap = function (arg) {
|
|
6029
|
+
return {
|
|
6030
|
+
__await: arg
|
|
6031
|
+
};
|
|
6032
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
6033
|
+
return this;
|
|
6034
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
6035
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
6036
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
6037
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
6038
|
+
return result.done ? result.value : iter.next();
|
|
6039
|
+
});
|
|
6040
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
6041
|
+
return this;
|
|
6042
|
+
}), define(Gp, "toString", function () {
|
|
6043
|
+
return "[object Generator]";
|
|
6044
|
+
}), exports.keys = function (object) {
|
|
6045
|
+
var keys = [];
|
|
6349
6046
|
|
|
6350
|
-
|
|
6351
|
-
|
|
6047
|
+
for (var key in object) {
|
|
6048
|
+
keys.push(key);
|
|
6049
|
+
}
|
|
6352
6050
|
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6051
|
+
return keys.reverse(), function next() {
|
|
6052
|
+
for (; keys.length;) {
|
|
6053
|
+
var key = keys.pop();
|
|
6054
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
6357
6055
|
}
|
|
6358
6056
|
|
|
6057
|
+
return next.done = !0, next;
|
|
6058
|
+
};
|
|
6059
|
+
}, exports.values = values, Context.prototype = {
|
|
6060
|
+
constructor: Context,
|
|
6061
|
+
reset: function reset(skipTempReset) {
|
|
6062
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
|
|
6063
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
6064
|
+
}
|
|
6065
|
+
},
|
|
6066
|
+
stop: function stop() {
|
|
6067
|
+
this.done = !0;
|
|
6068
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
6069
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
6359
6070
|
return this.rval;
|
|
6360
6071
|
},
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
if (this.done) {
|
|
6364
|
-
throw exception;
|
|
6365
|
-
}
|
|
6366
|
-
|
|
6072
|
+
dispatchException: function dispatchException(exception) {
|
|
6073
|
+
if (this.done) throw exception;
|
|
6367
6074
|
var context = this;
|
|
6368
|
-
function handle(loc, caught) {
|
|
6369
|
-
record.type = "throw";
|
|
6370
|
-
record.arg = exception;
|
|
6371
|
-
context.next = loc;
|
|
6372
|
-
|
|
6373
|
-
if (caught) {
|
|
6374
|
-
// If the dispatched exception was caught by a catch block,
|
|
6375
|
-
// then let that catch block handle the exception normally.
|
|
6376
|
-
context.method = "next";
|
|
6377
|
-
context.arg = undefined$1;
|
|
6378
|
-
}
|
|
6379
6075
|
|
|
6380
|
-
|
|
6076
|
+
function handle(loc, caught) {
|
|
6077
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
6381
6078
|
}
|
|
6382
6079
|
|
|
6383
6080
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
6384
|
-
var entry = this.tryEntries[i]
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
if (entry.tryLoc === "root") {
|
|
6388
|
-
// Exception thrown outside of any try block that could handle
|
|
6389
|
-
// it, so set the completion value of the entire function to
|
|
6390
|
-
// throw the exception.
|
|
6391
|
-
return handle("end");
|
|
6392
|
-
}
|
|
6081
|
+
var entry = this.tryEntries[i],
|
|
6082
|
+
record = entry.completion;
|
|
6083
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
6393
6084
|
|
|
6394
6085
|
if (entry.tryLoc <= this.prev) {
|
|
6395
|
-
var hasCatch = hasOwn.call(entry, "catchLoc")
|
|
6396
|
-
|
|
6086
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
6087
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
6397
6088
|
|
|
6398
6089
|
if (hasCatch && hasFinally) {
|
|
6399
|
-
if (this.prev < entry.catchLoc)
|
|
6400
|
-
|
|
6401
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
6402
|
-
return handle(entry.finallyLoc);
|
|
6403
|
-
}
|
|
6404
|
-
|
|
6090
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
6091
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
6405
6092
|
} else if (hasCatch) {
|
|
6406
|
-
if (this.prev < entry.catchLoc)
|
|
6407
|
-
return handle(entry.catchLoc, true);
|
|
6408
|
-
}
|
|
6409
|
-
|
|
6410
|
-
} else if (hasFinally) {
|
|
6411
|
-
if (this.prev < entry.finallyLoc) {
|
|
6412
|
-
return handle(entry.finallyLoc);
|
|
6413
|
-
}
|
|
6414
|
-
|
|
6093
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
6415
6094
|
} else {
|
|
6416
|
-
throw new Error("try statement without catch or finally");
|
|
6095
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
6096
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
6417
6097
|
}
|
|
6418
6098
|
}
|
|
6419
6099
|
}
|
|
6420
6100
|
},
|
|
6421
|
-
|
|
6422
|
-
abrupt: function(type, arg) {
|
|
6101
|
+
abrupt: function abrupt(type, arg) {
|
|
6423
6102
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
6424
6103
|
var entry = this.tryEntries[i];
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
this.prev < entry.finallyLoc) {
|
|
6104
|
+
|
|
6105
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
6428
6106
|
var finallyEntry = entry;
|
|
6429
6107
|
break;
|
|
6430
6108
|
}
|
|
6431
6109
|
}
|
|
6432
6110
|
|
|
6433
|
-
|
|
6434
|
-
(type === "break" ||
|
|
6435
|
-
type === "continue") &&
|
|
6436
|
-
finallyEntry.tryLoc <= arg &&
|
|
6437
|
-
arg <= finallyEntry.finallyLoc) {
|
|
6438
|
-
// Ignore the finally entry if control is not jumping to a
|
|
6439
|
-
// location outside the try/catch block.
|
|
6440
|
-
finallyEntry = null;
|
|
6441
|
-
}
|
|
6442
|
-
|
|
6111
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
6443
6112
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
6444
|
-
record.type = type;
|
|
6445
|
-
record.arg = arg;
|
|
6446
|
-
|
|
6447
|
-
if (finallyEntry) {
|
|
6448
|
-
this.method = "next";
|
|
6449
|
-
this.next = finallyEntry.finallyLoc;
|
|
6450
|
-
return ContinueSentinel;
|
|
6451
|
-
}
|
|
6452
|
-
|
|
6453
|
-
return this.complete(record);
|
|
6113
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
6454
6114
|
},
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
throw record.arg;
|
|
6459
|
-
}
|
|
6460
|
-
|
|
6461
|
-
if (record.type === "break" ||
|
|
6462
|
-
record.type === "continue") {
|
|
6463
|
-
this.next = record.arg;
|
|
6464
|
-
} else if (record.type === "return") {
|
|
6465
|
-
this.rval = this.arg = record.arg;
|
|
6466
|
-
this.method = "return";
|
|
6467
|
-
this.next = "end";
|
|
6468
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
6469
|
-
this.next = afterLoc;
|
|
6470
|
-
}
|
|
6471
|
-
|
|
6472
|
-
return ContinueSentinel;
|
|
6115
|
+
complete: function complete(record, afterLoc) {
|
|
6116
|
+
if ("throw" === record.type) throw record.arg;
|
|
6117
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
6473
6118
|
},
|
|
6474
|
-
|
|
6475
|
-
finish: function(finallyLoc) {
|
|
6119
|
+
finish: function finish(finallyLoc) {
|
|
6476
6120
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
6477
6121
|
var entry = this.tryEntries[i];
|
|
6478
|
-
if (entry.finallyLoc === finallyLoc)
|
|
6479
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
6480
|
-
resetTryEntry(entry);
|
|
6481
|
-
return ContinueSentinel;
|
|
6482
|
-
}
|
|
6122
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
6483
6123
|
}
|
|
6484
6124
|
},
|
|
6485
|
-
|
|
6486
|
-
"catch": function(tryLoc) {
|
|
6125
|
+
"catch": function _catch(tryLoc) {
|
|
6487
6126
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
6488
6127
|
var entry = this.tryEntries[i];
|
|
6128
|
+
|
|
6489
6129
|
if (entry.tryLoc === tryLoc) {
|
|
6490
6130
|
var record = entry.completion;
|
|
6491
|
-
|
|
6131
|
+
|
|
6132
|
+
if ("throw" === record.type) {
|
|
6492
6133
|
var thrown = record.arg;
|
|
6493
6134
|
resetTryEntry(entry);
|
|
6494
6135
|
}
|
|
6136
|
+
|
|
6495
6137
|
return thrown;
|
|
6496
6138
|
}
|
|
6497
6139
|
}
|
|
6498
6140
|
|
|
6499
|
-
// The context.catch method must only be called with a location
|
|
6500
|
-
// argument that corresponds to a known catch block.
|
|
6501
6141
|
throw new Error("illegal catch attempt");
|
|
6502
6142
|
},
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
this.delegate = {
|
|
6143
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
6144
|
+
return this.delegate = {
|
|
6506
6145
|
iterator: values(iterable),
|
|
6507
6146
|
resultName: resultName,
|
|
6508
6147
|
nextLoc: nextLoc
|
|
6509
|
-
};
|
|
6510
|
-
|
|
6511
|
-
if (this.method === "next") {
|
|
6512
|
-
// Deliberately forget the last sent value so that we don't
|
|
6513
|
-
// accidentally pass it on to the delegate.
|
|
6514
|
-
this.arg = undefined$1;
|
|
6515
|
-
}
|
|
6516
|
-
|
|
6517
|
-
return ContinueSentinel;
|
|
6148
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
6518
6149
|
}
|
|
6519
|
-
};
|
|
6150
|
+
}, exports;
|
|
6151
|
+
}
|
|
6520
6152
|
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
6524
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
6525
|
-
return exports;
|
|
6153
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6154
|
+
}(regeneratorRuntime$1));
|
|
6526
6155
|
|
|
6527
|
-
|
|
6528
|
-
// If this script is executing as a CommonJS module, use module.exports
|
|
6529
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
6530
|
-
// object. Either way, the resulting object will be used to initialize
|
|
6531
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
6532
|
-
module.exports
|
|
6533
|
-
));
|
|
6156
|
+
// TODO(Babel 8): Remove this file.
|
|
6534
6157
|
|
|
6158
|
+
var runtime = regeneratorRuntime$1.exports();
|
|
6159
|
+
var regenerator = runtime;
|
|
6160
|
+
|
|
6161
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
6535
6162
|
try {
|
|
6536
6163
|
regeneratorRuntime = runtime;
|
|
6537
6164
|
} catch (accidentalStrictMode) {
|
|
6538
|
-
// This module should not be running in strict mode, so the above
|
|
6539
|
-
// assignment should always work unless something is misconfigured. Just
|
|
6540
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
6541
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
6542
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
6543
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
6544
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
6545
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
6546
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
6547
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
6548
6165
|
if (typeof globalThis === "object") {
|
|
6549
6166
|
globalThis.regeneratorRuntime = runtime;
|
|
6550
6167
|
} else {
|
|
6551
6168
|
Function("r", "regeneratorRuntime = r")(runtime);
|
|
6552
6169
|
}
|
|
6553
6170
|
}
|
|
6554
|
-
}(runtime));
|
|
6555
|
-
|
|
6556
|
-
var regenerator = runtime.exports;
|
|
6557
6171
|
|
|
6558
6172
|
var CheckCircleOutlined$5 = {};
|
|
6559
6173
|
|
|
@@ -8743,7 +8357,7 @@ var process = {
|
|
|
8743
8357
|
}
|
|
8744
8358
|
|
|
8745
8359
|
function _extends$1() {
|
|
8746
|
-
_extends$1 = Object.assign
|
|
8360
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
8747
8361
|
for (var i = 1; i < arguments.length; i++) {
|
|
8748
8362
|
var source = arguments[i];
|
|
8749
8363
|
|
|
@@ -8756,7 +8370,6 @@ var process = {
|
|
|
8756
8370
|
|
|
8757
8371
|
return target;
|
|
8758
8372
|
};
|
|
8759
|
-
|
|
8760
8373
|
return _extends$1.apply(this, arguments);
|
|
8761
8374
|
}
|
|
8762
8375
|
|
|
@@ -12771,8 +12384,8 @@ var process = {
|
|
|
12771
12384
|
// 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
|
|
12772
12385
|
// 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
|
|
12773
12386
|
|
|
12774
|
-
x = box.left;
|
|
12775
|
-
y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
|
|
12387
|
+
x = Math.floor(box.left);
|
|
12388
|
+
y = Math.floor(box.top); // In IE, most of the time, 2 extra pixels are added to the top and left
|
|
12776
12389
|
// due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
|
|
12777
12390
|
// IE6 standards mode, this border can be overridden by setting the
|
|
12778
12391
|
// document element's border to zero -- thus, we cannot rely on the
|
|
@@ -13179,7 +12792,7 @@ var process = {
|
|
|
13179
12792
|
}
|
|
13180
12793
|
|
|
13181
12794
|
var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
|
|
13182
|
-
var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
|
|
12795
|
+
var borderBoxValue = name === 'width' ? Math.floor(elem.getBoundingClientRect().width) : Math.floor(elem.getBoundingClientRect().height);
|
|
13183
12796
|
var isBorderBox = isBorderBoxFn(elem);
|
|
13184
12797
|
var cssBoxValue = 0;
|
|
13185
12798
|
|
|
@@ -27571,11 +27184,11 @@ var process = {
|
|
|
27571
27184
|
class: "bm-multi-cascader-tag"
|
|
27572
27185
|
};
|
|
27573
27186
|
const _hoisted_8$5 = { class: "bm-multi-cascader-tag-text" };
|
|
27574
|
-
const _hoisted_9$
|
|
27187
|
+
const _hoisted_9$4 = {
|
|
27575
27188
|
key: 1,
|
|
27576
27189
|
class: "bm-multi-cascader-placeholder"
|
|
27577
27190
|
};
|
|
27578
|
-
const _hoisted_10$
|
|
27191
|
+
const _hoisted_10$4 = { class: "bm-multi-cascader-action" };
|
|
27579
27192
|
const _hoisted_11$4 = {
|
|
27580
27193
|
key: 0,
|
|
27581
27194
|
class: "bm-multi-cascader-popover"
|
|
@@ -28006,9 +27619,9 @@ var process = {
|
|
|
28006
27619
|
require$$1$1.unref(checkedHideCount) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_7$5, [
|
|
28007
27620
|
require$$1$1.createElementVNode("span", _hoisted_8$5, "+ " + require$$1$1.toDisplayString(require$$1$1.unref(checkedHideCount)), 1)
|
|
28008
27621
|
])) : require$$1$1.createCommentVNode("v-if", true)
|
|
28009
|
-
])) : (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_9$
|
|
27622
|
+
])) : (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_9$4, require$$1$1.toDisplayString(props.placeholder), 1))
|
|
28010
27623
|
]),
|
|
28011
|
-
require$$1$1.createElementVNode("div", _hoisted_10$
|
|
27624
|
+
require$$1$1.createElementVNode("div", _hoisted_10$4, [
|
|
28012
27625
|
props.allowClear && props.modelValue.length > 0 ? (require$$1$1.openBlock(), require$$1$1.createElementBlock(require$$1$1.Fragment, { key: 0 }, [
|
|
28013
27626
|
require$$1$1.createVNode(require$$1$1.unref(DownOutlined$1), { class: "bm-multi-cascader-icon bm-multi-cascader-caret" }),
|
|
28014
27627
|
require$$1$1.createVNode(require$$1$1.unref(CloseCircleFilled$1), {
|
|
@@ -28136,7 +27749,9 @@ var process = {
|
|
|
28136
27749
|
}
|
|
28137
27750
|
}
|
|
28138
27751
|
require$$1$1.watch(isExpand, (val) => {
|
|
28139
|
-
|
|
27752
|
+
setTimeout(() => {
|
|
27753
|
+
handleChangeExpand(val);
|
|
27754
|
+
}, 0);
|
|
28140
27755
|
}, {
|
|
28141
27756
|
immediate: true
|
|
28142
27757
|
});
|
|
@@ -36933,8 +36548,8 @@ var process = {
|
|
|
36933
36548
|
class: "__shops-filter-tabs"
|
|
36934
36549
|
};
|
|
36935
36550
|
const _hoisted_8$4 = { class: "label" };
|
|
36936
|
-
const _hoisted_9$
|
|
36937
|
-
const _hoisted_10$
|
|
36551
|
+
const _hoisted_9$3 = { class: "__shops-filter-areas" };
|
|
36552
|
+
const _hoisted_10$3 = ["onClick"];
|
|
36938
36553
|
const _hoisted_11$3 = ["onClick"];
|
|
36939
36554
|
const _hoisted_12$3 = { class: "__shops-filter-selecting" };
|
|
36940
36555
|
const _hoisted_13$3 = /* @__PURE__ */ require$$1$1.createTextVNode(" \u5DF2\u9009\u62E9");
|
|
@@ -37061,13 +36676,13 @@ var process = {
|
|
|
37061
36676
|
class: "__shops-filter-area-tabs"
|
|
37062
36677
|
}, [
|
|
37063
36678
|
require$$1$1.createElementVNode("div", _hoisted_8$4, require$$1$1.toDisplayString(item.label) + ":", 1),
|
|
37064
|
-
require$$1$1.createElementVNode("div", _hoisted_9$
|
|
36679
|
+
require$$1$1.createElementVNode("div", _hoisted_9$3, [
|
|
37065
36680
|
require$$1$1.createElementVNode("span", {
|
|
37066
36681
|
class: require$$1$1.normalizeClass({
|
|
37067
36682
|
active: !(item.multiple ? _ctx.filterSelects[index].length : !!_ctx.filterSelects[index])
|
|
37068
36683
|
}),
|
|
37069
36684
|
onClick: require$$1$1.withModifiers(($event) => _ctx.changeFilterSelect(index, ""), ["self"])
|
|
37070
|
-
}, "\u5168\u90E8", 10, _hoisted_10$
|
|
36685
|
+
}, "\u5168\u90E8", 10, _hoisted_10$3),
|
|
37071
36686
|
(require$$1$1.openBlock(true), require$$1$1.createElementBlock(require$$1$1.Fragment, null, require$$1$1.renderList(item.list, (element) => {
|
|
37072
36687
|
return require$$1$1.openBlock(), require$$1$1.createElementBlock("span", {
|
|
37073
36688
|
key: element.code,
|
|
@@ -44297,12 +43912,12 @@ var process = {
|
|
|
44297
43912
|
key: 0,
|
|
44298
43913
|
class: "department-desc"
|
|
44299
43914
|
};
|
|
44300
|
-
const _hoisted_9$
|
|
43915
|
+
const _hoisted_9$2 = {
|
|
44301
43916
|
key: 2,
|
|
44302
43917
|
class: "noData",
|
|
44303
43918
|
style: { "height": "280px" }
|
|
44304
43919
|
};
|
|
44305
|
-
const _hoisted_10$
|
|
43920
|
+
const _hoisted_10$2 = { style: { "color": "#9393a3", "font-size": "12px", "font-weight": "400" } };
|
|
44306
43921
|
const _hoisted_11$2 = { class: "__selector-chosen-panel" };
|
|
44307
43922
|
const _hoisted_12$2 = {
|
|
44308
43923
|
key: 0,
|
|
@@ -44385,10 +44000,10 @@ var process = {
|
|
|
44385
44000
|
]),
|
|
44386
44001
|
_: 1
|
|
44387
44002
|
}, 8, ["checkedKeys", "tree-data"])) : require$$1$1.createCommentVNode("v-if", true),
|
|
44388
|
-
_ctx.list && !_ctx.list.length ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_9$
|
|
44003
|
+
_ctx.list && !_ctx.list.length ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_9$2, [
|
|
44389
44004
|
require$$1$1.createVNode(_component_Empty, { image: _ctx.emptyPic }, {
|
|
44390
44005
|
description: require$$1$1.withCtx(() => [
|
|
44391
|
-
require$$1$1.createElementVNode("span", _hoisted_10$
|
|
44006
|
+
require$$1$1.createElementVNode("span", _hoisted_10$2, require$$1$1.toDisplayString(!!_ctx.searchVal ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
|
|
44392
44007
|
]),
|
|
44393
44008
|
_: 1
|
|
44394
44009
|
}, 8, ["image"])
|
|
@@ -45135,11 +44750,11 @@ var process = {
|
|
|
45135
44750
|
key: 0,
|
|
45136
44751
|
class: "__selector-modal-options"
|
|
45137
44752
|
};
|
|
45138
|
-
const _hoisted_9$
|
|
44753
|
+
const _hoisted_9$1 = {
|
|
45139
44754
|
key: 1,
|
|
45140
44755
|
class: "__selector-modal-options"
|
|
45141
44756
|
};
|
|
45142
|
-
const _hoisted_10$
|
|
44757
|
+
const _hoisted_10$1 = { class: "department-option-item" };
|
|
45143
44758
|
const _hoisted_11$1 = {
|
|
45144
44759
|
key: 0,
|
|
45145
44760
|
class: "department-desc"
|
|
@@ -45211,7 +44826,7 @@ var process = {
|
|
|
45211
44826
|
}, 1032, ["checked", "onUpdate:checked"])
|
|
45212
44827
|
]);
|
|
45213
44828
|
}), 128))
|
|
45214
|
-
])) : _ctx.activeKey === 1 ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_9$
|
|
44829
|
+
])) : _ctx.activeKey === 1 ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_9$1, [
|
|
45215
44830
|
require$$1$1.createVNode(_component_a_tree, {
|
|
45216
44831
|
checkedKeys: _ctx.departmentChecked,
|
|
45217
44832
|
"onUpdate:checkedKeys": _cache[1] || (_cache[1] = ($event) => _ctx.departmentChecked = $event),
|
|
@@ -45220,7 +44835,7 @@ var process = {
|
|
|
45220
44835
|
"tree-data": _ctx.list
|
|
45221
44836
|
}, {
|
|
45222
44837
|
title: require$$1$1.withCtx(({ title, description }) => [
|
|
45223
|
-
require$$1$1.createElementVNode("div", _hoisted_10$
|
|
44838
|
+
require$$1$1.createElementVNode("div", _hoisted_10$1, [
|
|
45224
44839
|
require$$1$1.createElementVNode("span", null, require$$1$1.toDisplayString(title), 1),
|
|
45225
44840
|
description ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("p", _hoisted_11$1, require$$1$1.toDisplayString(description), 1)) : require$$1$1.createCommentVNode("v-if", true)
|
|
45226
44841
|
])
|
|
@@ -46082,18 +45697,29 @@ var process = {
|
|
|
46082
45697
|
setup(props, { emit }) {
|
|
46083
45698
|
let acceptList = [
|
|
46084
45699
|
".xlsx",
|
|
45700
|
+
".XLSX",
|
|
46085
45701
|
".pdf",
|
|
45702
|
+
".PDF",
|
|
46086
45703
|
".doc",
|
|
45704
|
+
".DOC",
|
|
46087
45705
|
".docx",
|
|
45706
|
+
".DOCX",
|
|
46088
45707
|
".jpg",
|
|
46089
|
-
".jpeg",
|
|
46090
45708
|
".JPG",
|
|
45709
|
+
".jpeg",
|
|
45710
|
+
".JPEG",
|
|
46091
45711
|
".png",
|
|
45712
|
+
".PNG",
|
|
46092
45713
|
".rar",
|
|
45714
|
+
".RAR",
|
|
46093
45715
|
".zip",
|
|
45716
|
+
".ZIP",
|
|
46094
45717
|
".ppt",
|
|
45718
|
+
".PPT",
|
|
46095
45719
|
".pptx",
|
|
46096
|
-
".
|
|
45720
|
+
".PPTX",
|
|
45721
|
+
".mp4",
|
|
45722
|
+
".MP4"
|
|
46097
45723
|
];
|
|
46098
45724
|
const state = require$$1$1.reactive({
|
|
46099
45725
|
uploadBarColor: "#4DA0FF",
|
|
@@ -46156,26 +45782,26 @@ var process = {
|
|
|
46156
45782
|
}
|
|
46157
45783
|
});
|
|
46158
45784
|
const methods = {
|
|
46159
|
-
|
|
46160
|
-
|
|
46161
|
-
|
|
46162
|
-
|
|
46163
|
-
|
|
46164
|
-
state.fileList[file.uid]
|
|
46165
|
-
|
|
46166
|
-
progress
|
|
46167
|
-
};
|
|
45785
|
+
updateUploadProgress(file, progress) {
|
|
45786
|
+
if (methods.fileIsDelete(file)) {
|
|
45787
|
+
return;
|
|
45788
|
+
}
|
|
45789
|
+
state.fileList[file.uid] = {
|
|
45790
|
+
...state.fileList[file.uid],
|
|
45791
|
+
progress
|
|
46168
45792
|
};
|
|
45793
|
+
},
|
|
45794
|
+
customUploadRequest(file) {
|
|
46169
45795
|
props.uploadRequest?.(file, {
|
|
46170
45796
|
onUploadProgress: (e) => {
|
|
46171
45797
|
let progress = Math.round(e.loaded / e.total * 100);
|
|
46172
45798
|
if (props.holdProgress) {
|
|
46173
45799
|
progress = progress > props.holdProgress ? props.holdProgress : progress;
|
|
46174
45800
|
}
|
|
46175
|
-
updateUploadProgress(progress);
|
|
45801
|
+
methods.updateUploadProgress(file, progress);
|
|
46176
45802
|
}
|
|
46177
45803
|
}).then(function(data) {
|
|
46178
|
-
updateUploadProgress(100);
|
|
45804
|
+
methods.updateUploadProgress(file, 100);
|
|
46179
45805
|
methods.uploadSuccess(data, file);
|
|
46180
45806
|
}).catch(function(error) {
|
|
46181
45807
|
console.error(error);
|
|
@@ -46193,11 +45819,13 @@ var process = {
|
|
|
46193
45819
|
return;
|
|
46194
45820
|
}
|
|
46195
45821
|
emit("successFile", data);
|
|
45822
|
+
state.fileList[file.uid].status = "success";
|
|
46196
45823
|
let uri = data?.url;
|
|
46197
45824
|
let item = state.extraConfigs.fileDetail ? {
|
|
46198
45825
|
name: file.name,
|
|
46199
45826
|
size: file.size,
|
|
46200
45827
|
type: file.type,
|
|
45828
|
+
uid: file.uid,
|
|
46201
45829
|
url: uri
|
|
46202
45830
|
} : uri;
|
|
46203
45831
|
state.uploadedList.push(item);
|
|
@@ -46209,9 +45837,7 @@ var process = {
|
|
|
46209
45837
|
if (methods.fileIsDelete(file)) {
|
|
46210
45838
|
return;
|
|
46211
45839
|
}
|
|
46212
|
-
|
|
46213
|
-
state.fileList[file.uid].status = "error";
|
|
46214
|
-
}
|
|
45840
|
+
state.fileList[file.uid].status = "error";
|
|
46215
45841
|
emit("error", error);
|
|
46216
45842
|
},
|
|
46217
45843
|
async deleteFile(uid) {
|
|
@@ -46229,7 +45855,7 @@ var process = {
|
|
|
46229
45855
|
state.onepViewImageHover[uid] = false;
|
|
46230
45856
|
},
|
|
46231
45857
|
viewOnePicture(item) {
|
|
46232
|
-
if (["img", "image", "png", "jpg", "jpeg"].includes(item.type.toLowerCase())) {
|
|
45858
|
+
if (["img", "image", "png", "PNG", "jpg", "JPG", "jpeg", "JPEG"].includes(item.type.toLowerCase())) {
|
|
46233
45859
|
state.previewVisible = true;
|
|
46234
45860
|
state.onepViewImage = item;
|
|
46235
45861
|
return;
|
|
@@ -46282,9 +45908,14 @@ var process = {
|
|
|
46282
45908
|
}
|
|
46283
45909
|
};
|
|
46284
45910
|
require$$1$1.watch(() => props.defaultList, function(list) {
|
|
46285
|
-
if (list
|
|
45911
|
+
if (list?.length) {
|
|
45912
|
+
list.forEach((item) => {
|
|
45913
|
+
if (!item.uid) {
|
|
45914
|
+
item.uid = utils.getuid();
|
|
45915
|
+
}
|
|
45916
|
+
});
|
|
46286
45917
|
list.forEach(function(item) {
|
|
46287
|
-
let uid = utils.getuid();
|
|
45918
|
+
let uid = item.uid || utils.getuid();
|
|
46288
45919
|
if (!item.url.includes("http") && !item.url.includes(CLOUND_PRE))
|
|
46289
45920
|
item.url = props.cloudReadUrl + item.url;
|
|
46290
45921
|
state.fileList[uid] = {
|
|
@@ -46295,7 +45926,9 @@ var process = {
|
|
|
46295
45926
|
progress: 100,
|
|
46296
45927
|
isDoneDeloy: true
|
|
46297
45928
|
};
|
|
46298
|
-
state.uploadedList.
|
|
45929
|
+
if (!state.uploadedList.find((item2) => item2.uid === uid)) {
|
|
45930
|
+
state.uploadedList.push(item);
|
|
45931
|
+
}
|
|
46299
45932
|
});
|
|
46300
45933
|
} else {
|
|
46301
45934
|
state.fileList = {};
|
|
@@ -46366,8 +45999,8 @@ var process = {
|
|
|
46366
45999
|
const _hoisted_6$1 = ["src"];
|
|
46367
46000
|
const _hoisted_7$1 = ["src"];
|
|
46368
46001
|
const _hoisted_8$1 = ["src"];
|
|
46369
|
-
const _hoisted_9
|
|
46370
|
-
const _hoisted_10
|
|
46002
|
+
const _hoisted_9 = ["src"];
|
|
46003
|
+
const _hoisted_10 = {
|
|
46371
46004
|
key: 6,
|
|
46372
46005
|
class: "bm-upload__picture-result__cover"
|
|
46373
46006
|
};
|
|
@@ -46453,27 +46086,59 @@ var process = {
|
|
|
46453
46086
|
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
46454
46087
|
onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
|
|
46455
46088
|
}, [
|
|
46456
|
-
|
|
46089
|
+
["pdf", "PDF", "application/pdf"].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
|
|
46457
46090
|
key: 0,
|
|
46458
46091
|
class: "bm-upload__picture-result__image",
|
|
46459
46092
|
src: $setup.icons.pdf,
|
|
46460
46093
|
alt: "avatar"
|
|
46461
|
-
}, null, 8, _hoisted_4$1)) :
|
|
46094
|
+
}, null, 8, _hoisted_4$1)) : [
|
|
46095
|
+
"xlsx",
|
|
46096
|
+
"XLSX",
|
|
46097
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
46098
|
+
].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
|
|
46462
46099
|
key: 1,
|
|
46463
46100
|
class: "bm-upload__picture-result__image",
|
|
46464
46101
|
src: $setup.icons.excel,
|
|
46465
46102
|
alt: "avatar"
|
|
46466
|
-
}, null, 8, _hoisted_5$1)) :
|
|
46103
|
+
}, null, 8, _hoisted_5$1)) : [
|
|
46104
|
+
"ppt",
|
|
46105
|
+
"PPT",
|
|
46106
|
+
"application/vnd.ms-powerpoint",
|
|
46107
|
+
"pptx",
|
|
46108
|
+
"PPTX",
|
|
46109
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
46110
|
+
].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
|
|
46467
46111
|
key: 2,
|
|
46468
46112
|
class: "bm-upload__picture-result__image",
|
|
46469
46113
|
src: $setup.icons.ppt,
|
|
46470
46114
|
alt: "avatar"
|
|
46471
|
-
}, null, 8, _hoisted_6$1)) : [
|
|
46115
|
+
}, null, 8, _hoisted_6$1)) : [
|
|
46116
|
+
"doc",
|
|
46117
|
+
"DOC",
|
|
46118
|
+
"application/msword",
|
|
46119
|
+
"docx",
|
|
46120
|
+
"DOCX",
|
|
46121
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
46122
|
+
].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
|
|
46472
46123
|
key: 3,
|
|
46473
46124
|
class: "bm-upload__picture-result__image",
|
|
46474
46125
|
src: $setup.icons.doc,
|
|
46475
46126
|
alt: "avatar"
|
|
46476
|
-
}, null, 8, _hoisted_7$1)) : [
|
|
46127
|
+
}, null, 8, _hoisted_7$1)) : [
|
|
46128
|
+
"img",
|
|
46129
|
+
"image",
|
|
46130
|
+
"png",
|
|
46131
|
+
"PNG",
|
|
46132
|
+
"image/png",
|
|
46133
|
+
"jpg",
|
|
46134
|
+
"JPG",
|
|
46135
|
+
"jpeg",
|
|
46136
|
+
"JPEG",
|
|
46137
|
+
"image/jpeg",
|
|
46138
|
+
"gif",
|
|
46139
|
+
"GIF",
|
|
46140
|
+
"image/gif"
|
|
46141
|
+
].includes(item.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
|
|
46477
46142
|
key: 4,
|
|
46478
46143
|
class: "bm-upload__picture-result__image",
|
|
46479
46144
|
src: item.url,
|
|
@@ -46483,8 +46148,8 @@ var process = {
|
|
|
46483
46148
|
class: "bm-upload__picture-result__image",
|
|
46484
46149
|
src: $setup.icons.others,
|
|
46485
46150
|
alt: "avatar"
|
|
46486
|
-
}, null, 8, _hoisted_9
|
|
46487
|
-
_ctx.onepViewImageHover[item.uid] ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_10
|
|
46151
|
+
}, null, 8, _hoisted_9)),
|
|
46152
|
+
_ctx.onepViewImageHover[item.uid] ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_10, [
|
|
46488
46153
|
!_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
|
|
46489
46154
|
key: 0,
|
|
46490
46155
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
|
|
@@ -46600,7 +46265,16 @@ var process = {
|
|
|
46600
46265
|
}, {
|
|
46601
46266
|
default: require$$1$1.withCtx(() => [
|
|
46602
46267
|
require$$1$1.createElementVNode("div", _hoisted_32, [
|
|
46603
|
-
[
|
|
46268
|
+
[
|
|
46269
|
+
"img",
|
|
46270
|
+
"image",
|
|
46271
|
+
"png",
|
|
46272
|
+
"PNG",
|
|
46273
|
+
"jpg",
|
|
46274
|
+
"JPG",
|
|
46275
|
+
"jpeg",
|
|
46276
|
+
"JPEG"
|
|
46277
|
+
].includes(_ctx.onepViewImage.type) ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("img", {
|
|
46604
46278
|
key: 0,
|
|
46605
46279
|
style: { "width": "100%" },
|
|
46606
46280
|
src: _ctx.onepViewImage.url,
|
|
@@ -46791,6 +46465,10 @@ var process = {
|
|
|
46791
46465
|
type: Boolean,
|
|
46792
46466
|
default: true
|
|
46793
46467
|
},
|
|
46468
|
+
unitStr: {
|
|
46469
|
+
type: String,
|
|
46470
|
+
default: "\u9879"
|
|
46471
|
+
},
|
|
46794
46472
|
btnText: {
|
|
46795
46473
|
type: String,
|
|
46796
46474
|
default: "\u6DFB\u52A0"
|
|
@@ -46798,6 +46476,16 @@ var process = {
|
|
|
46798
46476
|
placement: {
|
|
46799
46477
|
type: String,
|
|
46800
46478
|
default: "bottom"
|
|
46479
|
+
},
|
|
46480
|
+
toolTipProps: {
|
|
46481
|
+
type: Object,
|
|
46482
|
+
default: () => {
|
|
46483
|
+
return {};
|
|
46484
|
+
}
|
|
46485
|
+
},
|
|
46486
|
+
alwaysInvoke: {
|
|
46487
|
+
type: Boolean,
|
|
46488
|
+
default: true
|
|
46801
46489
|
}
|
|
46802
46490
|
},
|
|
46803
46491
|
emits: ["clear", "update:list", "addClick"],
|
|
@@ -46814,13 +46502,38 @@ var process = {
|
|
|
46814
46502
|
}
|
|
46815
46503
|
}
|
|
46816
46504
|
function toAddTags() {
|
|
46817
|
-
|
|
46818
|
-
|
|
46505
|
+
if (!props.list.length || props.alwaysInvoke)
|
|
46506
|
+
emit("addClick");
|
|
46507
|
+
}
|
|
46508
|
+
const tooltipConfig = ref({
|
|
46509
|
+
align: void 0,
|
|
46510
|
+
arrowPointAtCenter: false,
|
|
46511
|
+
autoAdjustOverflow: true,
|
|
46512
|
+
color: "#fff",
|
|
46513
|
+
defaultVisible: false,
|
|
46514
|
+
destroyTooltipOnHide: false,
|
|
46515
|
+
getPopupContainer,
|
|
46516
|
+
mouseEnterDelay: 0.1,
|
|
46517
|
+
mouseLeaveDelay: 0.1,
|
|
46518
|
+
overlayClassName: "__list-filter-popover",
|
|
46519
|
+
overlayStyle: null,
|
|
46520
|
+
placement: props.placement,
|
|
46521
|
+
trigger: "hover"
|
|
46522
|
+
});
|
|
46523
|
+
watch(() => props.toolTipProps, (tooltipprop) => {
|
|
46524
|
+
tooltipConfig.value = {
|
|
46525
|
+
...tooltipConfig.value,
|
|
46526
|
+
...tooltipprop
|
|
46527
|
+
};
|
|
46528
|
+
}, {
|
|
46529
|
+
immediate: true,
|
|
46530
|
+
deep: true
|
|
46531
|
+
});
|
|
46819
46532
|
return {
|
|
46820
46533
|
containId,
|
|
46821
46534
|
clear,
|
|
46822
46535
|
toAddTags,
|
|
46823
|
-
|
|
46536
|
+
tooltipConfig
|
|
46824
46537
|
};
|
|
46825
46538
|
}
|
|
46826
46539
|
});
|
|
@@ -46829,11 +46542,9 @@ var process = {
|
|
|
46829
46542
|
const _hoisted_3 = { class: "pop-seleted" };
|
|
46830
46543
|
const _hoisted_4 = { class: "pop-seleted-title" };
|
|
46831
46544
|
const _hoisted_5 = /* @__PURE__ */ require$$1$1.createTextVNode(" \u5DF2\u9009\u62E9");
|
|
46832
|
-
const _hoisted_6 =
|
|
46833
|
-
const _hoisted_7 = {
|
|
46834
|
-
const _hoisted_8 =
|
|
46835
|
-
const _hoisted_9 = { key: 2 };
|
|
46836
|
-
const _hoisted_10 = /* @__PURE__ */ require$$1$1.createElementVNode("div", null, null, -1);
|
|
46545
|
+
const _hoisted_6 = { key: 1 };
|
|
46546
|
+
const _hoisted_7 = { key: 2 };
|
|
46547
|
+
const _hoisted_8 = /* @__PURE__ */ require$$1$1.createElementVNode("div", null, null, -1);
|
|
46837
46548
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46838
46549
|
const _component_a_tag = require$$1$1.resolveComponent("a-tag");
|
|
46839
46550
|
const _component_CloseCircleFilled = require$$1$1.resolveComponent("CloseCircleFilled");
|
|
@@ -46845,18 +46556,13 @@ var process = {
|
|
|
46845
46556
|
id: _ctx.containId,
|
|
46846
46557
|
class: "bm-tags-display-wrapper"
|
|
46847
46558
|
}, [
|
|
46848
|
-
require$$1$1.createVNode(_component_ToolTip, {
|
|
46849
|
-
color: "#fff",
|
|
46850
|
-
"get-popup-container": _ctx.getPopupContainer,
|
|
46851
|
-
placement: _ctx.placement,
|
|
46852
|
-
"overlay-class-name": "__list-filter-popover"
|
|
46853
|
-
}, {
|
|
46559
|
+
require$$1$1.createVNode(_component_ToolTip, require$$1$1.normalizeProps(require$$1$1.guardReactiveProps(_ctx.tooltipConfig)), {
|
|
46854
46560
|
title: require$$1$1.withCtx(() => [
|
|
46855
46561
|
require$$1$1.createElementVNode("div", _hoisted_3, [
|
|
46856
46562
|
require$$1$1.createElementVNode("div", _hoisted_4, [
|
|
46857
46563
|
_hoisted_5,
|
|
46858
46564
|
require$$1$1.createElementVNode("span", null, require$$1$1.toDisplayString(_ctx.list.length), 1),
|
|
46859
|
-
|
|
46565
|
+
require$$1$1.createTextVNode(require$$1$1.toDisplayString(_ctx.unitStr), 1)
|
|
46860
46566
|
])
|
|
46861
46567
|
]),
|
|
46862
46568
|
require$$1$1.createElementVNode("div", {
|
|
@@ -46878,7 +46584,10 @@ var process = {
|
|
|
46878
46584
|
], 32)
|
|
46879
46585
|
]),
|
|
46880
46586
|
default: require$$1$1.withCtx(() => [
|
|
46881
|
-
require$$1$1.createElementVNode("div",
|
|
46587
|
+
require$$1$1.createElementVNode("div", {
|
|
46588
|
+
class: "select-input-wrapper",
|
|
46589
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.toAddTags && _ctx.toAddTags(...args))
|
|
46590
|
+
}, [
|
|
46882
46591
|
(require$$1$1.openBlock(true), require$$1$1.createElementBlock(require$$1$1.Fragment, null, require$$1$1.renderList(_ctx.list, (item) => {
|
|
46883
46592
|
return require$$1$1.openBlock(), require$$1$1.createBlock(_component_a_tag, {
|
|
46884
46593
|
key: item.key
|
|
@@ -46902,9 +46611,9 @@ var process = {
|
|
|
46902
46611
|
])
|
|
46903
46612
|
]),
|
|
46904
46613
|
_: 1
|
|
46905
|
-
},
|
|
46614
|
+
}, 16)
|
|
46906
46615
|
], 8, _hoisted_2)) : require$$1$1.createCommentVNode("v-if", true),
|
|
46907
|
-
_ctx.showEmptyBtn && !_ctx.list.length ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div",
|
|
46616
|
+
_ctx.showEmptyBtn && !_ctx.list.length ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_6, [
|
|
46908
46617
|
require$$1$1.createVNode(_component_Button, {
|
|
46909
46618
|
onClick: require$$1$1.withModifiers(_ctx.toAddTags, ["stop"])
|
|
46910
46619
|
}, {
|
|
@@ -46914,13 +46623,13 @@ var process = {
|
|
|
46914
46623
|
_: 1
|
|
46915
46624
|
}, 8, ["onClick"])
|
|
46916
46625
|
])) : require$$1$1.createCommentVNode("v-if", true),
|
|
46917
|
-
_ctx.showEmpty && !_ctx.list.length ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div",
|
|
46626
|
+
_ctx.showEmpty && !_ctx.list.length ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("div", _hoisted_7, [
|
|
46918
46627
|
require$$1$1.createElementVNode("div", {
|
|
46919
46628
|
class: "selector-empty-input",
|
|
46920
|
-
onClick: _cache[
|
|
46921
|
-
}, "\xA0\xA0" + require$$1$1.toDisplayString(_ctx.placeholder), 1)
|
|
46629
|
+
onClick: _cache[5] || (_cache[5] = require$$1$1.withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
|
|
46630
|
+
}, " \xA0\xA0" + require$$1$1.toDisplayString(_ctx.placeholder), 1)
|
|
46922
46631
|
])) : require$$1$1.createCommentVNode("v-if", true),
|
|
46923
|
-
|
|
46632
|
+
_hoisted_8
|
|
46924
46633
|
]);
|
|
46925
46634
|
}
|
|
46926
46635
|
var InputTagsDisplay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "input-tags-display.vue"]]);
|