custom-vxe-table 1.4.22 → 1.4.24
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/lib/index.common.js +924 -151
- package/lib/index.css +1 -1
- package/lib/index.umd.js +924 -151
- package/lib/index.umd.min.js +9 -9
- package/package.json +1 -1
package/lib/index.common.js
CHANGED
|
@@ -1721,6 +1721,17 @@ function includes (obj, val) {
|
|
|
1721
1721
|
module.exports = includes
|
|
1722
1722
|
|
|
1723
1723
|
|
|
1724
|
+
/***/ }),
|
|
1725
|
+
|
|
1726
|
+
/***/ "21a0":
|
|
1727
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1728
|
+
|
|
1729
|
+
"use strict";
|
|
1730
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_CustomTable_vue_vue_type_style_index_0_id_8197d406_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("dd12");
|
|
1731
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_CustomTable_vue_vue_type_style_index_0_id_8197d406_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_CustomTable_vue_vue_type_style_index_0_id_8197d406_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
1732
|
+
/* unused harmony reexport * */
|
|
1733
|
+
|
|
1734
|
+
|
|
1724
1735
|
/***/ }),
|
|
1725
1736
|
|
|
1726
1737
|
/***/ "2242":
|
|
@@ -22475,6 +22486,23 @@ function zip () {
|
|
|
22475
22486
|
module.exports = zip
|
|
22476
22487
|
|
|
22477
22488
|
|
|
22489
|
+
/***/ }),
|
|
22490
|
+
|
|
22491
|
+
/***/ "4ec9":
|
|
22492
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
22493
|
+
|
|
22494
|
+
"use strict";
|
|
22495
|
+
|
|
22496
|
+
var collection = __webpack_require__("6d61");
|
|
22497
|
+
var collectionStrong = __webpack_require__("6566");
|
|
22498
|
+
|
|
22499
|
+
// `Map` constructor
|
|
22500
|
+
// https://tc39.es/ecma262/#sec-map-objects
|
|
22501
|
+
module.exports = collection('Map', function (init) {
|
|
22502
|
+
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
22503
|
+
}, collectionStrong);
|
|
22504
|
+
|
|
22505
|
+
|
|
22478
22506
|
/***/ }),
|
|
22479
22507
|
|
|
22480
22508
|
/***/ "4f3d":
|
|
@@ -24183,6 +24211,216 @@ module.exports = {
|
|
|
24183
24211
|
};
|
|
24184
24212
|
|
|
24185
24213
|
|
|
24214
|
+
/***/ }),
|
|
24215
|
+
|
|
24216
|
+
/***/ "6566":
|
|
24217
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
24218
|
+
|
|
24219
|
+
"use strict";
|
|
24220
|
+
|
|
24221
|
+
var defineProperty = __webpack_require__("9bf2").f;
|
|
24222
|
+
var create = __webpack_require__("7c73");
|
|
24223
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
24224
|
+
var bind = __webpack_require__("0366");
|
|
24225
|
+
var anInstance = __webpack_require__("19aa");
|
|
24226
|
+
var iterate = __webpack_require__("2266");
|
|
24227
|
+
var defineIterator = __webpack_require__("7dd0");
|
|
24228
|
+
var setSpecies = __webpack_require__("2626");
|
|
24229
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
24230
|
+
var fastKey = __webpack_require__("f183").fastKey;
|
|
24231
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
24232
|
+
|
|
24233
|
+
var setInternalState = InternalStateModule.set;
|
|
24234
|
+
var internalStateGetterFor = InternalStateModule.getterFor;
|
|
24235
|
+
|
|
24236
|
+
module.exports = {
|
|
24237
|
+
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
24238
|
+
var C = wrapper(function (that, iterable) {
|
|
24239
|
+
anInstance(that, C, CONSTRUCTOR_NAME);
|
|
24240
|
+
setInternalState(that, {
|
|
24241
|
+
type: CONSTRUCTOR_NAME,
|
|
24242
|
+
index: create(null),
|
|
24243
|
+
first: undefined,
|
|
24244
|
+
last: undefined,
|
|
24245
|
+
size: 0
|
|
24246
|
+
});
|
|
24247
|
+
if (!DESCRIPTORS) that.size = 0;
|
|
24248
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
24249
|
+
});
|
|
24250
|
+
|
|
24251
|
+
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
24252
|
+
|
|
24253
|
+
var define = function (that, key, value) {
|
|
24254
|
+
var state = getInternalState(that);
|
|
24255
|
+
var entry = getEntry(that, key);
|
|
24256
|
+
var previous, index;
|
|
24257
|
+
// change existing entry
|
|
24258
|
+
if (entry) {
|
|
24259
|
+
entry.value = value;
|
|
24260
|
+
// create new entry
|
|
24261
|
+
} else {
|
|
24262
|
+
state.last = entry = {
|
|
24263
|
+
index: index = fastKey(key, true),
|
|
24264
|
+
key: key,
|
|
24265
|
+
value: value,
|
|
24266
|
+
previous: previous = state.last,
|
|
24267
|
+
next: undefined,
|
|
24268
|
+
removed: false
|
|
24269
|
+
};
|
|
24270
|
+
if (!state.first) state.first = entry;
|
|
24271
|
+
if (previous) previous.next = entry;
|
|
24272
|
+
if (DESCRIPTORS) state.size++;
|
|
24273
|
+
else that.size++;
|
|
24274
|
+
// add to index
|
|
24275
|
+
if (index !== 'F') state.index[index] = entry;
|
|
24276
|
+
} return that;
|
|
24277
|
+
};
|
|
24278
|
+
|
|
24279
|
+
var getEntry = function (that, key) {
|
|
24280
|
+
var state = getInternalState(that);
|
|
24281
|
+
// fast case
|
|
24282
|
+
var index = fastKey(key);
|
|
24283
|
+
var entry;
|
|
24284
|
+
if (index !== 'F') return state.index[index];
|
|
24285
|
+
// frozen object case
|
|
24286
|
+
for (entry = state.first; entry; entry = entry.next) {
|
|
24287
|
+
if (entry.key == key) return entry;
|
|
24288
|
+
}
|
|
24289
|
+
};
|
|
24290
|
+
|
|
24291
|
+
redefineAll(C.prototype, {
|
|
24292
|
+
// `{ Map, Set }.prototype.clear()` methods
|
|
24293
|
+
// https://tc39.es/ecma262/#sec-map.prototype.clear
|
|
24294
|
+
// https://tc39.es/ecma262/#sec-set.prototype.clear
|
|
24295
|
+
clear: function clear() {
|
|
24296
|
+
var that = this;
|
|
24297
|
+
var state = getInternalState(that);
|
|
24298
|
+
var data = state.index;
|
|
24299
|
+
var entry = state.first;
|
|
24300
|
+
while (entry) {
|
|
24301
|
+
entry.removed = true;
|
|
24302
|
+
if (entry.previous) entry.previous = entry.previous.next = undefined;
|
|
24303
|
+
delete data[entry.index];
|
|
24304
|
+
entry = entry.next;
|
|
24305
|
+
}
|
|
24306
|
+
state.first = state.last = undefined;
|
|
24307
|
+
if (DESCRIPTORS) state.size = 0;
|
|
24308
|
+
else that.size = 0;
|
|
24309
|
+
},
|
|
24310
|
+
// `{ Map, Set }.prototype.delete(key)` methods
|
|
24311
|
+
// https://tc39.es/ecma262/#sec-map.prototype.delete
|
|
24312
|
+
// https://tc39.es/ecma262/#sec-set.prototype.delete
|
|
24313
|
+
'delete': function (key) {
|
|
24314
|
+
var that = this;
|
|
24315
|
+
var state = getInternalState(that);
|
|
24316
|
+
var entry = getEntry(that, key);
|
|
24317
|
+
if (entry) {
|
|
24318
|
+
var next = entry.next;
|
|
24319
|
+
var prev = entry.previous;
|
|
24320
|
+
delete state.index[entry.index];
|
|
24321
|
+
entry.removed = true;
|
|
24322
|
+
if (prev) prev.next = next;
|
|
24323
|
+
if (next) next.previous = prev;
|
|
24324
|
+
if (state.first == entry) state.first = next;
|
|
24325
|
+
if (state.last == entry) state.last = prev;
|
|
24326
|
+
if (DESCRIPTORS) state.size--;
|
|
24327
|
+
else that.size--;
|
|
24328
|
+
} return !!entry;
|
|
24329
|
+
},
|
|
24330
|
+
// `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods
|
|
24331
|
+
// https://tc39.es/ecma262/#sec-map.prototype.foreach
|
|
24332
|
+
// https://tc39.es/ecma262/#sec-set.prototype.foreach
|
|
24333
|
+
forEach: function forEach(callbackfn /* , that = undefined */) {
|
|
24334
|
+
var state = getInternalState(this);
|
|
24335
|
+
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
|
|
24336
|
+
var entry;
|
|
24337
|
+
while (entry = entry ? entry.next : state.first) {
|
|
24338
|
+
boundFunction(entry.value, entry.key, this);
|
|
24339
|
+
// revert to the last existing entry
|
|
24340
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
24341
|
+
}
|
|
24342
|
+
},
|
|
24343
|
+
// `{ Map, Set}.prototype.has(key)` methods
|
|
24344
|
+
// https://tc39.es/ecma262/#sec-map.prototype.has
|
|
24345
|
+
// https://tc39.es/ecma262/#sec-set.prototype.has
|
|
24346
|
+
has: function has(key) {
|
|
24347
|
+
return !!getEntry(this, key);
|
|
24348
|
+
}
|
|
24349
|
+
});
|
|
24350
|
+
|
|
24351
|
+
redefineAll(C.prototype, IS_MAP ? {
|
|
24352
|
+
// `Map.prototype.get(key)` method
|
|
24353
|
+
// https://tc39.es/ecma262/#sec-map.prototype.get
|
|
24354
|
+
get: function get(key) {
|
|
24355
|
+
var entry = getEntry(this, key);
|
|
24356
|
+
return entry && entry.value;
|
|
24357
|
+
},
|
|
24358
|
+
// `Map.prototype.set(key, value)` method
|
|
24359
|
+
// https://tc39.es/ecma262/#sec-map.prototype.set
|
|
24360
|
+
set: function set(key, value) {
|
|
24361
|
+
return define(this, key === 0 ? 0 : key, value);
|
|
24362
|
+
}
|
|
24363
|
+
} : {
|
|
24364
|
+
// `Set.prototype.add(value)` method
|
|
24365
|
+
// https://tc39.es/ecma262/#sec-set.prototype.add
|
|
24366
|
+
add: function add(value) {
|
|
24367
|
+
return define(this, value = value === 0 ? 0 : value, value);
|
|
24368
|
+
}
|
|
24369
|
+
});
|
|
24370
|
+
if (DESCRIPTORS) defineProperty(C.prototype, 'size', {
|
|
24371
|
+
get: function () {
|
|
24372
|
+
return getInternalState(this).size;
|
|
24373
|
+
}
|
|
24374
|
+
});
|
|
24375
|
+
return C;
|
|
24376
|
+
},
|
|
24377
|
+
setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
|
|
24378
|
+
var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
|
|
24379
|
+
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
24380
|
+
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
|
|
24381
|
+
// `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods
|
|
24382
|
+
// https://tc39.es/ecma262/#sec-map.prototype.entries
|
|
24383
|
+
// https://tc39.es/ecma262/#sec-map.prototype.keys
|
|
24384
|
+
// https://tc39.es/ecma262/#sec-map.prototype.values
|
|
24385
|
+
// https://tc39.es/ecma262/#sec-map.prototype-@@iterator
|
|
24386
|
+
// https://tc39.es/ecma262/#sec-set.prototype.entries
|
|
24387
|
+
// https://tc39.es/ecma262/#sec-set.prototype.keys
|
|
24388
|
+
// https://tc39.es/ecma262/#sec-set.prototype.values
|
|
24389
|
+
// https://tc39.es/ecma262/#sec-set.prototype-@@iterator
|
|
24390
|
+
defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
|
|
24391
|
+
setInternalState(this, {
|
|
24392
|
+
type: ITERATOR_NAME,
|
|
24393
|
+
target: iterated,
|
|
24394
|
+
state: getInternalCollectionState(iterated),
|
|
24395
|
+
kind: kind,
|
|
24396
|
+
last: undefined
|
|
24397
|
+
});
|
|
24398
|
+
}, function () {
|
|
24399
|
+
var state = getInternalIteratorState(this);
|
|
24400
|
+
var kind = state.kind;
|
|
24401
|
+
var entry = state.last;
|
|
24402
|
+
// revert to the last existing entry
|
|
24403
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
24404
|
+
// get next entry
|
|
24405
|
+
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
|
|
24406
|
+
// or finish the iteration
|
|
24407
|
+
state.target = undefined;
|
|
24408
|
+
return { value: undefined, done: true };
|
|
24409
|
+
}
|
|
24410
|
+
// return step by kind
|
|
24411
|
+
if (kind == 'keys') return { value: entry.key, done: false };
|
|
24412
|
+
if (kind == 'values') return { value: entry.value, done: false };
|
|
24413
|
+
return { value: [entry.key, entry.value], done: false };
|
|
24414
|
+
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
|
|
24415
|
+
|
|
24416
|
+
// `{ Map, Set }.prototype[@@species]` accessors
|
|
24417
|
+
// https://tc39.es/ecma262/#sec-get-map-@@species
|
|
24418
|
+
// https://tc39.es/ecma262/#sec-get-set-@@species
|
|
24419
|
+
setSpecies(CONSTRUCTOR_NAME);
|
|
24420
|
+
}
|
|
24421
|
+
};
|
|
24422
|
+
|
|
24423
|
+
|
|
24186
24424
|
/***/ }),
|
|
24187
24425
|
|
|
24188
24426
|
/***/ "656f":
|
|
@@ -24617,6 +24855,117 @@ function findLast (obj, iterate, context) {
|
|
|
24617
24855
|
module.exports = findLast
|
|
24618
24856
|
|
|
24619
24857
|
|
|
24858
|
+
/***/ }),
|
|
24859
|
+
|
|
24860
|
+
/***/ "6d61":
|
|
24861
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
24862
|
+
|
|
24863
|
+
"use strict";
|
|
24864
|
+
|
|
24865
|
+
var $ = __webpack_require__("23e7");
|
|
24866
|
+
var global = __webpack_require__("da84");
|
|
24867
|
+
var isForced = __webpack_require__("94ca");
|
|
24868
|
+
var redefine = __webpack_require__("6eeb");
|
|
24869
|
+
var InternalMetadataModule = __webpack_require__("f183");
|
|
24870
|
+
var iterate = __webpack_require__("2266");
|
|
24871
|
+
var anInstance = __webpack_require__("19aa");
|
|
24872
|
+
var isObject = __webpack_require__("861d");
|
|
24873
|
+
var fails = __webpack_require__("d039");
|
|
24874
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
24875
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
24876
|
+
var inheritIfRequired = __webpack_require__("7156");
|
|
24877
|
+
|
|
24878
|
+
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
24879
|
+
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
|
24880
|
+
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
|
24881
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
24882
|
+
var NativeConstructor = global[CONSTRUCTOR_NAME];
|
|
24883
|
+
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
24884
|
+
var Constructor = NativeConstructor;
|
|
24885
|
+
var exported = {};
|
|
24886
|
+
|
|
24887
|
+
var fixMethod = function (KEY) {
|
|
24888
|
+
var nativeMethod = NativePrototype[KEY];
|
|
24889
|
+
redefine(NativePrototype, KEY,
|
|
24890
|
+
KEY == 'add' ? function add(value) {
|
|
24891
|
+
nativeMethod.call(this, value === 0 ? 0 : value);
|
|
24892
|
+
return this;
|
|
24893
|
+
} : KEY == 'delete' ? function (key) {
|
|
24894
|
+
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
|
|
24895
|
+
} : KEY == 'get' ? function get(key) {
|
|
24896
|
+
return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
|
|
24897
|
+
} : KEY == 'has' ? function has(key) {
|
|
24898
|
+
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
|
|
24899
|
+
} : function set(key, value) {
|
|
24900
|
+
nativeMethod.call(this, key === 0 ? 0 : key, value);
|
|
24901
|
+
return this;
|
|
24902
|
+
}
|
|
24903
|
+
);
|
|
24904
|
+
};
|
|
24905
|
+
|
|
24906
|
+
var REPLACE = isForced(
|
|
24907
|
+
CONSTRUCTOR_NAME,
|
|
24908
|
+
typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
|
|
24909
|
+
new NativeConstructor().entries().next();
|
|
24910
|
+
}))
|
|
24911
|
+
);
|
|
24912
|
+
|
|
24913
|
+
if (REPLACE) {
|
|
24914
|
+
// create collection constructor
|
|
24915
|
+
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
|
24916
|
+
InternalMetadataModule.REQUIRED = true;
|
|
24917
|
+
} else if (isForced(CONSTRUCTOR_NAME, true)) {
|
|
24918
|
+
var instance = new Constructor();
|
|
24919
|
+
// early implementations not supports chaining
|
|
24920
|
+
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
|
24921
|
+
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
|
24922
|
+
var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
|
|
24923
|
+
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
|
24924
|
+
// eslint-disable-next-line no-new -- required for testing
|
|
24925
|
+
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
|
|
24926
|
+
// for early implementations -0 and +0 not the same
|
|
24927
|
+
var BUGGY_ZERO = !IS_WEAK && fails(function () {
|
|
24928
|
+
// V8 ~ Chromium 42- fails only with 5+ elements
|
|
24929
|
+
var $instance = new NativeConstructor();
|
|
24930
|
+
var index = 5;
|
|
24931
|
+
while (index--) $instance[ADDER](index, index);
|
|
24932
|
+
return !$instance.has(-0);
|
|
24933
|
+
});
|
|
24934
|
+
|
|
24935
|
+
if (!ACCEPT_ITERABLES) {
|
|
24936
|
+
Constructor = wrapper(function (dummy, iterable) {
|
|
24937
|
+
anInstance(dummy, Constructor, CONSTRUCTOR_NAME);
|
|
24938
|
+
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
|
|
24939
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
24940
|
+
return that;
|
|
24941
|
+
});
|
|
24942
|
+
Constructor.prototype = NativePrototype;
|
|
24943
|
+
NativePrototype.constructor = Constructor;
|
|
24944
|
+
}
|
|
24945
|
+
|
|
24946
|
+
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
|
|
24947
|
+
fixMethod('delete');
|
|
24948
|
+
fixMethod('has');
|
|
24949
|
+
IS_MAP && fixMethod('get');
|
|
24950
|
+
}
|
|
24951
|
+
|
|
24952
|
+
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
|
|
24953
|
+
|
|
24954
|
+
// weak collections should not contains .clear method
|
|
24955
|
+
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
|
|
24956
|
+
}
|
|
24957
|
+
|
|
24958
|
+
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
24959
|
+
$({ global: true, forced: Constructor != NativeConstructor }, exported);
|
|
24960
|
+
|
|
24961
|
+
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
24962
|
+
|
|
24963
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
24964
|
+
|
|
24965
|
+
return Constructor;
|
|
24966
|
+
};
|
|
24967
|
+
|
|
24968
|
+
|
|
24620
24969
|
/***/ }),
|
|
24621
24970
|
|
|
24622
24971
|
/***/ "6deb":
|
|
@@ -24807,13 +25156,6 @@ module.exports = entries
|
|
|
24807
25156
|
exports.f = Object.getOwnPropertySymbols;
|
|
24808
25157
|
|
|
24809
25158
|
|
|
24810
|
-
/***/ }),
|
|
24811
|
-
|
|
24812
|
-
/***/ "7466":
|
|
24813
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
24814
|
-
|
|
24815
|
-
// extracted by mini-css-extract-plugin
|
|
24816
|
-
|
|
24817
25159
|
/***/ }),
|
|
24818
25160
|
|
|
24819
25161
|
/***/ "746f":
|
|
@@ -27291,17 +27633,6 @@ module.exports = {
|
|
|
27291
27633
|
};
|
|
27292
27634
|
|
|
27293
27635
|
|
|
27294
|
-
/***/ }),
|
|
27295
|
-
|
|
27296
|
-
/***/ "98de":
|
|
27297
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27298
|
-
|
|
27299
|
-
"use strict";
|
|
27300
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_CustomTable_vue_vue_type_style_index_0_id_f80344d2_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b244");
|
|
27301
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_CustomTable_vue_vue_type_style_index_0_id_f80344d2_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_CustomTable_vue_vue_type_style_index_0_id_f80344d2_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
27302
|
-
/* unused harmony reexport * */
|
|
27303
|
-
|
|
27304
|
-
|
|
27305
27636
|
/***/ }),
|
|
27306
27637
|
|
|
27307
27638
|
/***/ "99af":
|
|
@@ -28800,13 +29131,6 @@ if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
|
|
|
28800
29131
|
}
|
|
28801
29132
|
|
|
28802
29133
|
|
|
28803
|
-
/***/ }),
|
|
28804
|
-
|
|
28805
|
-
/***/ "b244":
|
|
28806
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
28807
|
-
|
|
28808
|
-
// extracted by mini-css-extract-plugin
|
|
28809
|
-
|
|
28810
29134
|
/***/ }),
|
|
28811
29135
|
|
|
28812
29136
|
/***/ "b267":
|
|
@@ -29790,29 +30114,42 @@ module.exports = sortBy
|
|
|
29790
30114
|
|
|
29791
30115
|
/***/ }),
|
|
29792
30116
|
|
|
29793
|
-
/***/ "
|
|
30117
|
+
/***/ "bb2f":
|
|
29794
30118
|
/***/ (function(module, exports, __webpack_require__) {
|
|
29795
30119
|
|
|
29796
|
-
|
|
29797
|
-
|
|
29798
|
-
/***/ }),
|
|
30120
|
+
var fails = __webpack_require__("d039");
|
|
29799
30121
|
|
|
29800
|
-
|
|
29801
|
-
|
|
30122
|
+
module.exports = !fails(function () {
|
|
30123
|
+
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
|
|
30124
|
+
return Object.isExtensible(Object.preventExtensions({}));
|
|
30125
|
+
});
|
|
29802
30126
|
|
|
29803
|
-
// extracted by mini-css-extract-plugin
|
|
29804
30127
|
|
|
29805
30128
|
/***/ }),
|
|
29806
30129
|
|
|
29807
|
-
/***/ "
|
|
30130
|
+
/***/ "bbc9":
|
|
29808
30131
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29809
30132
|
|
|
29810
30133
|
"use strict";
|
|
29811
|
-
/* harmony import */ var
|
|
29812
|
-
/* harmony import */ var
|
|
30134
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_CustomSelect_vue_vue_type_style_index_0_id_6923cfe0_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e1c2");
|
|
30135
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_CustomSelect_vue_vue_type_style_index_0_id_6923cfe0_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_CustomSelect_vue_vue_type_style_index_0_id_6923cfe0_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
29813
30136
|
/* unused harmony reexport * */
|
|
29814
30137
|
|
|
29815
30138
|
|
|
30139
|
+
/***/ }),
|
|
30140
|
+
|
|
30141
|
+
/***/ "bc3a":
|
|
30142
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
30143
|
+
|
|
30144
|
+
module.exports = __webpack_require__("cee4");
|
|
30145
|
+
|
|
30146
|
+
/***/ }),
|
|
30147
|
+
|
|
30148
|
+
/***/ "bd31":
|
|
30149
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
30150
|
+
|
|
30151
|
+
// extracted by mini-css-extract-plugin
|
|
30152
|
+
|
|
29816
30153
|
/***/ }),
|
|
29817
30154
|
|
|
29818
30155
|
/***/ "bdd6":
|
|
@@ -31720,6 +32057,13 @@ var staticLocation = typeof location === staticStrUndefined ? 0 : location
|
|
|
31720
32057
|
module.exports = staticLocation
|
|
31721
32058
|
|
|
31722
32059
|
|
|
32060
|
+
/***/ }),
|
|
32061
|
+
|
|
32062
|
+
/***/ "dd12":
|
|
32063
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
32064
|
+
|
|
32065
|
+
// extracted by mini-css-extract-plugin
|
|
32066
|
+
|
|
31723
32067
|
/***/ }),
|
|
31724
32068
|
|
|
31725
32069
|
/***/ "ddb0":
|
|
@@ -32244,6 +32588,13 @@ module.exports = !fails(function () {
|
|
|
32244
32588
|
});
|
|
32245
32589
|
|
|
32246
32590
|
|
|
32591
|
+
/***/ }),
|
|
32592
|
+
|
|
32593
|
+
/***/ "e1c2":
|
|
32594
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
32595
|
+
|
|
32596
|
+
// extracted by mini-css-extract-plugin
|
|
32597
|
+
|
|
32247
32598
|
/***/ }),
|
|
32248
32599
|
|
|
32249
32600
|
/***/ "e260":
|
|
@@ -33385,6 +33736,75 @@ function isNull (obj) {
|
|
|
33385
33736
|
module.exports = isNull
|
|
33386
33737
|
|
|
33387
33738
|
|
|
33739
|
+
/***/ }),
|
|
33740
|
+
|
|
33741
|
+
/***/ "f183":
|
|
33742
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
33743
|
+
|
|
33744
|
+
var hiddenKeys = __webpack_require__("d012");
|
|
33745
|
+
var isObject = __webpack_require__("861d");
|
|
33746
|
+
var has = __webpack_require__("5135");
|
|
33747
|
+
var defineProperty = __webpack_require__("9bf2").f;
|
|
33748
|
+
var uid = __webpack_require__("90e3");
|
|
33749
|
+
var FREEZING = __webpack_require__("bb2f");
|
|
33750
|
+
|
|
33751
|
+
var METADATA = uid('meta');
|
|
33752
|
+
var id = 0;
|
|
33753
|
+
|
|
33754
|
+
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
33755
|
+
var isExtensible = Object.isExtensible || function () {
|
|
33756
|
+
return true;
|
|
33757
|
+
};
|
|
33758
|
+
|
|
33759
|
+
var setMetadata = function (it) {
|
|
33760
|
+
defineProperty(it, METADATA, { value: {
|
|
33761
|
+
objectID: 'O' + ++id, // object ID
|
|
33762
|
+
weakData: {} // weak collections IDs
|
|
33763
|
+
} });
|
|
33764
|
+
};
|
|
33765
|
+
|
|
33766
|
+
var fastKey = function (it, create) {
|
|
33767
|
+
// return a primitive with prefix
|
|
33768
|
+
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
33769
|
+
if (!has(it, METADATA)) {
|
|
33770
|
+
// can't set metadata to uncaught frozen object
|
|
33771
|
+
if (!isExtensible(it)) return 'F';
|
|
33772
|
+
// not necessary to add metadata
|
|
33773
|
+
if (!create) return 'E';
|
|
33774
|
+
// add missing metadata
|
|
33775
|
+
setMetadata(it);
|
|
33776
|
+
// return object ID
|
|
33777
|
+
} return it[METADATA].objectID;
|
|
33778
|
+
};
|
|
33779
|
+
|
|
33780
|
+
var getWeakData = function (it, create) {
|
|
33781
|
+
if (!has(it, METADATA)) {
|
|
33782
|
+
// can't set metadata to uncaught frozen object
|
|
33783
|
+
if (!isExtensible(it)) return true;
|
|
33784
|
+
// not necessary to add metadata
|
|
33785
|
+
if (!create) return false;
|
|
33786
|
+
// add missing metadata
|
|
33787
|
+
setMetadata(it);
|
|
33788
|
+
// return the store of weak collections IDs
|
|
33789
|
+
} return it[METADATA].weakData;
|
|
33790
|
+
};
|
|
33791
|
+
|
|
33792
|
+
// add metadata on freeze-family methods calling
|
|
33793
|
+
var onFreeze = function (it) {
|
|
33794
|
+
if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);
|
|
33795
|
+
return it;
|
|
33796
|
+
};
|
|
33797
|
+
|
|
33798
|
+
var meta = module.exports = {
|
|
33799
|
+
REQUIRED: false,
|
|
33800
|
+
fastKey: fastKey,
|
|
33801
|
+
getWeakData: getWeakData,
|
|
33802
|
+
onFreeze: onFreeze
|
|
33803
|
+
};
|
|
33804
|
+
|
|
33805
|
+
hiddenKeys[METADATA] = true;
|
|
33806
|
+
|
|
33807
|
+
|
|
33388
33808
|
/***/ }),
|
|
33389
33809
|
|
|
33390
33810
|
/***/ "f266":
|
|
@@ -34175,7 +34595,7 @@ var es_string_fixed = __webpack_require__("c7cd");
|
|
|
34175
34595
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
34176
34596
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
34177
34597
|
|
|
34178
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./packages/CustomTable/src/CustomTable.vue?vue&type=template&id=
|
|
34598
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./packages/CustomTable/src/CustomTable.vue?vue&type=template&id=8197d406
|
|
34179
34599
|
|
|
34180
34600
|
|
|
34181
34601
|
|
|
@@ -34186,12 +34606,24 @@ var _hoisted_1 = {
|
|
|
34186
34606
|
"height": "100%"
|
|
34187
34607
|
}
|
|
34188
34608
|
};
|
|
34189
|
-
var _hoisted_2 =
|
|
34609
|
+
var _hoisted_2 = {
|
|
34610
|
+
style: {
|
|
34611
|
+
"max-height": "400px",
|
|
34612
|
+
"overflow-y": "auto"
|
|
34613
|
+
}
|
|
34614
|
+
};
|
|
34190
34615
|
var _hoisted_3 = {
|
|
34191
|
-
|
|
34616
|
+
style: {
|
|
34617
|
+
"max-height": "400px",
|
|
34618
|
+
"overflow-y": "auto"
|
|
34619
|
+
}
|
|
34192
34620
|
};
|
|
34193
34621
|
var _hoisted_4 = ["onClick"];
|
|
34194
|
-
|
|
34622
|
+
var _hoisted_5 = {
|
|
34623
|
+
href: "#"
|
|
34624
|
+
};
|
|
34625
|
+
var _hoisted_6 = ["onClick"];
|
|
34626
|
+
function CustomTablevue_type_template_id_8197d406_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34195
34627
|
var _component_custom_buttons = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("custom-buttons");
|
|
34196
34628
|
|
|
34197
34629
|
var _component_vxe_input = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("vxe-input");
|
|
@@ -34200,6 +34632,8 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34200
34632
|
|
|
34201
34633
|
var _component_vxe_column = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("vxe-column");
|
|
34202
34634
|
|
|
34635
|
+
var _component_vxe_checkbox = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("vxe-checkbox");
|
|
34636
|
+
|
|
34203
34637
|
var _component_vxe_colgroup = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("vxe-colgroup");
|
|
34204
34638
|
|
|
34205
34639
|
var _component_a_divider = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-divider");
|
|
@@ -34255,6 +34689,8 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34255
34689
|
"max-height": _ctx.maxHeight,
|
|
34256
34690
|
height: _ctx.height,
|
|
34257
34691
|
perfect: true,
|
|
34692
|
+
"show-footer": _ctx.showFooter,
|
|
34693
|
+
"footer-method": _ctx.footerMethod,
|
|
34258
34694
|
border: "",
|
|
34259
34695
|
resizable: "",
|
|
34260
34696
|
"row-key": "",
|
|
@@ -34282,7 +34718,9 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34282
34718
|
"checkbox-config": _ctx.tableCheckboxConfig,
|
|
34283
34719
|
"row-class-name": _ctx.rowClassName,
|
|
34284
34720
|
onCellClick: _ctx.cellClickEvent,
|
|
34285
|
-
onHeaderCellClick: _ctx.headerCellClickEvent
|
|
34721
|
+
onHeaderCellClick: _ctx.headerCellClickEvent,
|
|
34722
|
+
onCheckboxChange: _ctx.handelCheckBoxEvent,
|
|
34723
|
+
onCheckboxAll: _ctx.handelCheckBoxEvent
|
|
34286
34724
|
}, {
|
|
34287
34725
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
34288
34726
|
return [_ctx.showCheckBox ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_vxe_column, {
|
|
@@ -34302,7 +34740,7 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34302
34740
|
}, {
|
|
34303
34741
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function (_ref) {
|
|
34304
34742
|
var rowIndex = _ref.rowIndex;
|
|
34305
|
-
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_ctx.current - 1) * _ctx.
|
|
34743
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_ctx.current - 1) * _ctx.cpageSize + rowIndex + 1), 1)];
|
|
34306
34744
|
}),
|
|
34307
34745
|
_: 1
|
|
34308
34746
|
}, 8, ["title"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.state.columns, function (column) {
|
|
@@ -34326,7 +34764,9 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34326
34764
|
"header-class-name": 'header_' + gcolumn.key,
|
|
34327
34765
|
"footer-class-name": 'footer_' + gcolumn.key,
|
|
34328
34766
|
"class-name": gcolumn.key,
|
|
34329
|
-
visible: gcolumn.visible == undefined || gcolumn.visible == true
|
|
34767
|
+
visible: gcolumn.visible == undefined || gcolumn.visible == true,
|
|
34768
|
+
filters: gcolumn.hasFilter ? [] : undefined,
|
|
34769
|
+
"filter-method": _ctx.filterMethod
|
|
34330
34770
|
}, {
|
|
34331
34771
|
header: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
34332
34772
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, 'header_' + gcolumn.key, {
|
|
@@ -34363,8 +34803,34 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34363
34803
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput", "onBlur"])];
|
|
34364
34804
|
})];
|
|
34365
34805
|
}),
|
|
34806
|
+
filter: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function (_ref3) {
|
|
34807
|
+
var $panel = _ref3.$panel,
|
|
34808
|
+
gcolumn = _ref3.gcolumn;
|
|
34809
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, 'filter_' + gcolumn.field, {
|
|
34810
|
+
panel: $panel,
|
|
34811
|
+
column: gcolumn
|
|
34812
|
+
}, function () {
|
|
34813
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_2, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(gcolumn.filters, function (option, index) {
|
|
34814
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
|
|
34815
|
+
key: index,
|
|
34816
|
+
style: {
|
|
34817
|
+
"padding": "0 4px"
|
|
34818
|
+
}
|
|
34819
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_vxe_checkbox, {
|
|
34820
|
+
content: option.label,
|
|
34821
|
+
modelValue: option.data,
|
|
34822
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
34823
|
+
return option.data = $event;
|
|
34824
|
+
},
|
|
34825
|
+
onChange: function onChange($event) {
|
|
34826
|
+
return _ctx.changeOption($event, option, $panel, gcolumn);
|
|
34827
|
+
}
|
|
34828
|
+
}, null, 8, ["content", "modelValue", "onUpdate:modelValue", "onChange"])]);
|
|
34829
|
+
}), 128))])];
|
|
34830
|
+
})];
|
|
34831
|
+
}),
|
|
34366
34832
|
_: 2
|
|
34367
|
-
}, 1032, ["field", "title", "sortable", "fixed", "min-width", "width", "header-class-name", "footer-class-name", "class-name", "visible"]);
|
|
34833
|
+
}, 1032, ["field", "title", "sortable", "fixed", "min-width", "width", "header-class-name", "footer-class-name", "class-name", "visible", "filters", "filter-method"]);
|
|
34368
34834
|
}), 128))];
|
|
34369
34835
|
}),
|
|
34370
34836
|
_: 2
|
|
@@ -34380,7 +34846,9 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34380
34846
|
"class-name": column.key,
|
|
34381
34847
|
"min-width": column.minWidth ? column.minWidth : 120,
|
|
34382
34848
|
width: column.width ? column.width : undefined,
|
|
34383
|
-
visible: column.visible == undefined || column.visible == true
|
|
34849
|
+
visible: column.visible == undefined || column.visible == true,
|
|
34850
|
+
filters: column.hasFilter ? [] : undefined,
|
|
34851
|
+
"filter-method": _ctx.filterMethod
|
|
34384
34852
|
}, {
|
|
34385
34853
|
header: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
34386
34854
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, 'header_' + column.key, {
|
|
@@ -34389,8 +34857,8 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34389
34857
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(column.titleI18n && column.titleI18n[_ctx.lang] ? column.titleI18n[_ctx.lang] : column.title), 1)];
|
|
34390
34858
|
})];
|
|
34391
34859
|
}),
|
|
34392
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function (
|
|
34393
|
-
var row =
|
|
34860
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function (_ref4) {
|
|
34861
|
+
var row = _ref4.row;
|
|
34394
34862
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, column.key, {
|
|
34395
34863
|
row: row
|
|
34396
34864
|
}, function () {
|
|
@@ -34417,8 +34885,34 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34417
34885
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput", "onBlur"])];
|
|
34418
34886
|
})];
|
|
34419
34887
|
}),
|
|
34888
|
+
filter: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function (_ref5) {
|
|
34889
|
+
var $panel = _ref5.$panel,
|
|
34890
|
+
column = _ref5.column;
|
|
34891
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, 'filter_' + column.field, {
|
|
34892
|
+
panel: $panel,
|
|
34893
|
+
column: column
|
|
34894
|
+
}, function () {
|
|
34895
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_3, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(column.filters, function (option, index) {
|
|
34896
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
|
|
34897
|
+
key: index,
|
|
34898
|
+
style: {
|
|
34899
|
+
"padding": "0 4px"
|
|
34900
|
+
}
|
|
34901
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_vxe_checkbox, {
|
|
34902
|
+
content: option.label,
|
|
34903
|
+
modelValue: option.data,
|
|
34904
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
34905
|
+
return option.data = $event;
|
|
34906
|
+
},
|
|
34907
|
+
onChange: function onChange($event) {
|
|
34908
|
+
return _ctx.changeOption($event, option, $panel, column);
|
|
34909
|
+
}
|
|
34910
|
+
}, null, 8, ["content", "modelValue", "onUpdate:modelValue", "onChange"])]);
|
|
34911
|
+
}), 128))])];
|
|
34912
|
+
})];
|
|
34913
|
+
}),
|
|
34420
34914
|
_: 2
|
|
34421
|
-
}, 1032, ["field", "title", "sortable", "fixed", "header-class-name", "footer-class-name", "class-name", "min-width", "width", "visible"]))], 64);
|
|
34915
|
+
}, 1032, ["field", "title", "sortable", "fixed", "header-class-name", "footer-class-name", "class-name", "min-width", "width", "visible", "filters", "filter-method"]))], 64);
|
|
34422
34916
|
}), 128)), _ctx.state.rowActions.length > 0 && _ctx.showRowActions ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_vxe_column, {
|
|
34423
34917
|
key: 2,
|
|
34424
34918
|
field: "action",
|
|
@@ -34426,8 +34920,8 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34426
34920
|
fixed: "right",
|
|
34427
34921
|
width: _ctx.opaColumnWidth
|
|
34428
34922
|
}, {
|
|
34429
|
-
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function (
|
|
34430
|
-
var row =
|
|
34923
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function (_ref6) {
|
|
34924
|
+
var row = _ref6.row;
|
|
34431
34925
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "action", {
|
|
34432
34926
|
row: row
|
|
34433
34927
|
}, function () {
|
|
@@ -34437,7 +34931,7 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34437
34931
|
onClick: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(function ($event) {
|
|
34438
34932
|
return _ctx.onRowEvent('save', row);
|
|
34439
34933
|
}, ["stop"])
|
|
34440
|
-
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.$t("basic.save")), 9,
|
|
34934
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.$t("basic.save")), 9, _hoisted_4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_divider, {
|
|
34441
34935
|
type: "vertical"
|
|
34442
34936
|
}), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_popconfirm, {
|
|
34443
34937
|
title: _ctx.$t('message.confirm.cancel'),
|
|
@@ -34466,7 +34960,7 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34466
34960
|
}
|
|
34467
34961
|
}, {
|
|
34468
34962
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
34469
|
-
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a",
|
|
34963
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("a", _hoisted_5, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(act.titleI18n ? _ctx.handleI18nField(act.titleI18n) : act.title), 1)];
|
|
34470
34964
|
}),
|
|
34471
34965
|
_: 2
|
|
34472
34966
|
}, 1032, ["title", "onConfirm"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", {
|
|
@@ -34474,7 +34968,7 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34474
34968
|
onClick: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(function ($event) {
|
|
34475
34969
|
return _ctx.onRowEvent(act.action, row);
|
|
34476
34970
|
}, ["stop"])
|
|
34477
|
-
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(act.titleI18n ? _ctx.handleI18nField(act.titleI18n) : act.title), 9,
|
|
34971
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(act.titleI18n ? _ctx.handleI18nField(act.titleI18n) : act.title), 9, _hoisted_6)), idx < _ctx.state.rowActions.length - 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_divider, {
|
|
34478
34972
|
key: 2,
|
|
34479
34973
|
type: "vertical"
|
|
34480
34974
|
})) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
@@ -34485,16 +34979,17 @@ function CustomTablevue_type_template_id_f80344d2_render(_ctx, _cache, $props, $
|
|
|
34485
34979
|
}, 8, ["title", "width"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)];
|
|
34486
34980
|
}),
|
|
34487
34981
|
_: 3
|
|
34488
|
-
}, 8, ["size", "align", "max-height", "height", "loading", "row-config", "merge-cells", "edit-config", "edit-rules", "tooltip-config", "sort-config", "checkbox-config", "row-class-name", "onCellClick", "onHeaderCellClick"]), _ctx.showPage ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_vxe_pager, {
|
|
34982
|
+
}, 8, ["size", "align", "max-height", "height", "show-footer", "footer-method", "loading", "row-config", "merge-cells", "edit-config", "edit-rules", "tooltip-config", "sort-config", "checkbox-config", "row-class-name", "onCellClick", "onHeaderCellClick", "onCheckboxChange", "onCheckboxAll"]), _ctx.showPage && !_ctx.isLocalLoad ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_vxe_pager, {
|
|
34489
34983
|
key: 0,
|
|
34490
|
-
layouts: ['PrevJump', 'PrevPage', 'Number', 'NextPage', 'NextJump', 'FullJump', 'Total'],
|
|
34984
|
+
layouts: ['PrevJump', 'PrevPage', 'Number', 'NextPage', 'NextJump', 'Sizes', 'FullJump', 'Total'],
|
|
34491
34985
|
"current-page": _ctx.pagination.current,
|
|
34492
34986
|
"page-size": _ctx.pagination.pageSize,
|
|
34493
34987
|
total: _ctx.pagination.total,
|
|
34494
|
-
onPageChange: _ctx.handlePageChange
|
|
34988
|
+
onPageChange: _ctx.handlePageChange,
|
|
34989
|
+
"page-sizes": [10, 20, 100, 200, 500, 1000]
|
|
34495
34990
|
}, null, 8, ["current-page", "page-size", "total", "onPageChange"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]);
|
|
34496
34991
|
}
|
|
34497
|
-
// CONCATENATED MODULE: ./packages/CustomTable/src/CustomTable.vue?vue&type=template&id=
|
|
34992
|
+
// CONCATENATED MODULE: ./packages/CustomTable/src/CustomTable.vue?vue&type=template&id=8197d406
|
|
34498
34993
|
|
|
34499
34994
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
34500
34995
|
var es_object_assign = __webpack_require__("cca6");
|
|
@@ -38194,6 +38689,9 @@ var es_number_constructor = __webpack_require__("a9e3");
|
|
|
38194
38689
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
38195
38690
|
var es_json_stringify = __webpack_require__("e9c4");
|
|
38196
38691
|
|
|
38692
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
|
|
38693
|
+
var es_map = __webpack_require__("4ec9");
|
|
38694
|
+
|
|
38197
38695
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
38198
38696
|
var es_array_concat = __webpack_require__("99af");
|
|
38199
38697
|
|
|
@@ -38367,10 +38865,44 @@ function getSelectData(data, searchValue, respConfig) {
|
|
|
38367
38865
|
res.data.forEach(function (item) {
|
|
38368
38866
|
var value = "";
|
|
38369
38867
|
var label = "";
|
|
38868
|
+
var show = "";
|
|
38370
38869
|
var respConfigValue = respConfig.value;
|
|
38371
38870
|
var respConfigValueConn = respConfig.valueConn;
|
|
38372
38871
|
var respConfigLabel = respConfig.label;
|
|
38373
|
-
var respConfigLabelConn = respConfig.labelConn;
|
|
38872
|
+
var respConfigLabelConn = respConfig.labelConn;
|
|
38873
|
+
var respConfigShow = respConfig.show ? respConfig.show : [];
|
|
38874
|
+
var respConfigShowConn = respConfig.showConn ? respConfig.showConn : []; // 处理拼接选项show值
|
|
38875
|
+
|
|
38876
|
+
if (typeof respConfigShowConn == "string") {
|
|
38877
|
+
respConfigShow.forEach(function (ivalue, index) {
|
|
38878
|
+
if (Object.prototype.hasOwnProperty.call(item, ivalue)) {
|
|
38879
|
+
show += item[ivalue] + respConfigShowConn;
|
|
38880
|
+
} else {
|
|
38881
|
+
show += ivalue + respConfigShowConn;
|
|
38882
|
+
}
|
|
38883
|
+
});
|
|
38884
|
+
show !== "" ? show = show.substring(0, show.length - respConfigShowConn.length) : "";
|
|
38885
|
+
} else if (_typeof(respConfigShowConn) == "object") {
|
|
38886
|
+
respConfigShow.forEach(function (ivalue, index) {
|
|
38887
|
+
if (Object.prototype.hasOwnProperty.call(item, ivalue)) {
|
|
38888
|
+
// 在resp中找到对应key值, 拼接对应的value值
|
|
38889
|
+
show += item[ivalue] + (respConfigShowConn[index] ? respConfigShowConn[index] : "");
|
|
38890
|
+
} else {
|
|
38891
|
+
// 在resp中未找到对应key值,直接拼接key值
|
|
38892
|
+
show += ivalue + (respConfigShowConn[index] ? respConfigShowConn[index] : "");
|
|
38893
|
+
}
|
|
38894
|
+
});
|
|
38895
|
+
|
|
38896
|
+
if (respConfigShowConn.length > respConfigShow.length) {
|
|
38897
|
+
// conn超出部分,全部拼接到value中
|
|
38898
|
+
respConfigShowConn.forEach(function (conn, cindex) {
|
|
38899
|
+
if (cindex >= respConfigShow.length) {
|
|
38900
|
+
show += conn;
|
|
38901
|
+
}
|
|
38902
|
+
});
|
|
38903
|
+
}
|
|
38904
|
+
} // 处理拼接选项value值
|
|
38905
|
+
|
|
38374
38906
|
|
|
38375
38907
|
if (typeof respConfigValueConn == "string") {
|
|
38376
38908
|
respConfigValue.forEach(function (ivalue, index) {
|
|
@@ -38436,6 +38968,7 @@ function getSelectData(data, searchValue, respConfig) {
|
|
|
38436
38968
|
result.push({
|
|
38437
38969
|
value: value,
|
|
38438
38970
|
label: label,
|
|
38971
|
+
show: show == '' ? label : show,
|
|
38439
38972
|
data: item
|
|
38440
38973
|
});
|
|
38441
38974
|
});
|
|
@@ -72260,6 +72793,11 @@ Sortable.mount(Remove, Revert);
|
|
|
72260
72793
|
|
|
72261
72794
|
|
|
72262
72795
|
|
|
72796
|
+
|
|
72797
|
+
|
|
72798
|
+
|
|
72799
|
+
|
|
72800
|
+
|
|
72263
72801
|
|
|
72264
72802
|
|
|
72265
72803
|
|
|
@@ -72294,6 +72832,9 @@ Sortable.mount(Remove, Revert);
|
|
|
72294
72832
|
// 查询参数 {url:"",reqParams:"",searchKeys:[] }
|
|
72295
72833
|
type: Object
|
|
72296
72834
|
},
|
|
72835
|
+
pageSize: {
|
|
72836
|
+
default: 10
|
|
72837
|
+
},
|
|
72297
72838
|
menuid: {
|
|
72298
72839
|
type: String // required: true,
|
|
72299
72840
|
|
|
@@ -72412,9 +72953,26 @@ Sortable.mount(Remove, Revert);
|
|
|
72412
72953
|
// 操作列宽度
|
|
72413
72954
|
type: Number,
|
|
72414
72955
|
default: 140
|
|
72956
|
+
},
|
|
72957
|
+
filterOptions: {
|
|
72958
|
+
// 自定义筛选项配置
|
|
72959
|
+
type: Object
|
|
72960
|
+
},
|
|
72961
|
+
filterFunctions: {
|
|
72962
|
+
// 自定义筛选方法配置
|
|
72963
|
+
type: Object
|
|
72964
|
+
},
|
|
72965
|
+
showFooter: {
|
|
72966
|
+
// 是否表尾数据
|
|
72967
|
+
type: Boolean,
|
|
72968
|
+
default: false
|
|
72969
|
+
},
|
|
72970
|
+
footerMethod: {
|
|
72971
|
+
// 自定义表尾
|
|
72972
|
+
type: Object
|
|
72415
72973
|
}
|
|
72416
72974
|
},
|
|
72417
|
-
emits: ["callback", "onRowClickEvent"],
|
|
72975
|
+
emits: ["callback", "onRowClickEvent", "onCheckBoxEvent", "loadFinish"],
|
|
72418
72976
|
components: {
|
|
72419
72977
|
CustomButtons: CustomButtons
|
|
72420
72978
|
},
|
|
@@ -72442,17 +73000,17 @@ Sortable.mount(Remove, Revert);
|
|
|
72442
73000
|
|
|
72443
73001
|
var current = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(1); // 当前页
|
|
72444
73002
|
|
|
72445
|
-
var
|
|
73003
|
+
var cpageSize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(10); // 每页显示数
|
|
72446
73004
|
|
|
72447
73005
|
var totalPages = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(0); // 总页数
|
|
72448
73006
|
|
|
72449
|
-
var
|
|
73007
|
+
var cdataSource = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(props.dataSource ? JSON.parse(JSON.stringify(props.dataSource)) : []); // 数据源
|
|
72450
73008
|
|
|
72451
73009
|
var pagination = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
72452
73010
|
return {
|
|
72453
73011
|
total: total.value,
|
|
72454
73012
|
current: current.value,
|
|
72455
|
-
pageSize:
|
|
73013
|
+
pageSize: cpageSize.value,
|
|
72456
73014
|
totalPages: totalPages.value
|
|
72457
73015
|
};
|
|
72458
73016
|
});
|
|
@@ -72477,12 +73035,75 @@ Sortable.mount(Remove, Revert);
|
|
|
72477
73035
|
};
|
|
72478
73036
|
|
|
72479
73037
|
var ceditConfig = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])();
|
|
72480
|
-
var initTime;
|
|
73038
|
+
var initTime;
|
|
73039
|
+
|
|
73040
|
+
var changeOption = function changeOption($event, option, $panel, column) {
|
|
73041
|
+
if (option.value == "全部") {
|
|
73042
|
+
column.filters.map(function (item) {
|
|
73043
|
+
item.data = $event.checked;
|
|
73044
|
+
$panel.changeOption($event, !!$event.checked, item);
|
|
73045
|
+
});
|
|
73046
|
+
} else {
|
|
73047
|
+
$panel.changeOption($event, !!option.data, option);
|
|
73048
|
+
}
|
|
73049
|
+
}; // 筛选事件
|
|
73050
|
+
|
|
73051
|
+
|
|
73052
|
+
var filterMethod = function filterMethod(_ref) {
|
|
73053
|
+
var options = _ref.options,
|
|
73054
|
+
value = _ref.value,
|
|
73055
|
+
row = _ref.row,
|
|
73056
|
+
column = _ref.column;
|
|
73057
|
+
|
|
73058
|
+
if (props.filterFunctions && props.filterFunctions[column.field]) {
|
|
73059
|
+
return props.filterFunctions[column.field](value, row, column);
|
|
73060
|
+
} else {
|
|
73061
|
+
return row[column.field] === value;
|
|
73062
|
+
}
|
|
73063
|
+
}; // 给对应字段赋筛选条件
|
|
73064
|
+
|
|
73065
|
+
|
|
73066
|
+
var updateFilterOptions = function updateFilterOptions(dataSource) {
|
|
73067
|
+
var $table = xTable1.value;
|
|
73068
|
+
state.columns.forEach(function (item) {
|
|
73069
|
+
var column = $table.getColumnByField(item.key);
|
|
73070
|
+
item.hasFilter = true;
|
|
73071
|
+
|
|
73072
|
+
if (item.hasFilter) {
|
|
73073
|
+
if (props.filterOptions && props.filterOptions[item.key]) {
|
|
73074
|
+
// const filters = [{ label: '全部', value: '全部' }, ...this.filterOptions[item.key]]
|
|
73075
|
+
$table.setFilter(column, props.filterOptions[item.key]);
|
|
73076
|
+
} else {
|
|
73077
|
+
var map = new Map(); // 根据列名去重
|
|
73078
|
+
|
|
73079
|
+
var filters = [{
|
|
73080
|
+
label: "全部",
|
|
73081
|
+
value: "全部"
|
|
73082
|
+
}];
|
|
73083
|
+
dataSource.forEach(function (row) {
|
|
73084
|
+
if (!map.has(row[item.key])) {
|
|
73085
|
+
map.set(row[item.key], 1);
|
|
73086
|
+
filters.push({
|
|
73087
|
+
label: row[item.key],
|
|
73088
|
+
value: row[item.key]
|
|
73089
|
+
});
|
|
73090
|
+
}
|
|
73091
|
+
});
|
|
73092
|
+
console.log("#############filters##", filters);
|
|
73093
|
+
$table.setFilter(column, filters);
|
|
73094
|
+
}
|
|
73095
|
+
}
|
|
73096
|
+
}); // 修改条件之后,需要手动调用 updateData 处理表格数据
|
|
73097
|
+
|
|
73098
|
+
$table.updateData();
|
|
73099
|
+
}; // 加载远程数据
|
|
73100
|
+
|
|
72481
73101
|
|
|
72482
73102
|
var loadRemoteData = function loadRemoteData() {
|
|
72483
73103
|
var $table = xTable1.value;
|
|
72484
73104
|
var data = JSON.parse(JSON.stringify(cQueryParams));
|
|
72485
73105
|
data.reqParams.current = current.value;
|
|
73106
|
+
data.reqParams.pageSize = pagination.value.pageSize;
|
|
72486
73107
|
return getTableData(data).then(function (res) {
|
|
72487
73108
|
// 数据集合
|
|
72488
73109
|
var dataSource = res.list.records;
|
|
@@ -72495,7 +73116,9 @@ Sortable.mount(Remove, Revert);
|
|
|
72495
73116
|
total.value = res.list.total;
|
|
72496
73117
|
|
|
72497
73118
|
if ($table) {
|
|
72498
|
-
$table.loadData(dataSource)
|
|
73119
|
+
$table.loadData(dataSource).then(function (res) {
|
|
73120
|
+
updateFilterOptions(dataSource.value);
|
|
73121
|
+
});
|
|
72499
73122
|
state.loading = false;
|
|
72500
73123
|
}
|
|
72501
73124
|
});
|
|
@@ -72507,9 +73130,11 @@ Sortable.mount(Remove, Revert);
|
|
|
72507
73130
|
|
|
72508
73131
|
if ($table) {
|
|
72509
73132
|
state.columns = props.columns;
|
|
72510
|
-
$table.loadData(
|
|
73133
|
+
$table.loadData(cdataSource.value).then(function (res) {
|
|
73134
|
+
updateFilterOptions(cdataSource.value);
|
|
73135
|
+
});
|
|
72511
73136
|
totalPages.value = 1;
|
|
72512
|
-
total.value =
|
|
73137
|
+
total.value = cdataSource.value.length;
|
|
72513
73138
|
return new Promise(function (resolve) {
|
|
72514
73139
|
resolve(true);
|
|
72515
73140
|
});
|
|
@@ -72565,7 +73190,9 @@ Sortable.mount(Remove, Revert);
|
|
|
72565
73190
|
loadData();
|
|
72566
73191
|
};
|
|
72567
73192
|
|
|
72568
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(
|
|
73193
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
73194
|
+
return props.api;
|
|
73195
|
+
}, function () {
|
|
72569
73196
|
cQueryParams = props.queryParams ? JSON.parse(JSON.stringify(props.queryParams)) : null; // 合并模糊查询条件
|
|
72570
73197
|
|
|
72571
73198
|
var searchKeys = cQueryParams.searchKeys;
|
|
@@ -72586,13 +73213,24 @@ Sortable.mount(Remove, Revert);
|
|
|
72586
73213
|
}
|
|
72587
73214
|
|
|
72588
73215
|
if (props.isLocalLoad) {
|
|
72589
|
-
|
|
73216
|
+
cdataSource.value = props.dataSource ? JSON.parse(JSON.stringify(props.dataSource)) : [];
|
|
72590
73217
|
state.buttonList = props.operations.tableActions ? props.operations.tableActions : [];
|
|
72591
73218
|
state.rowActions = props.operations.rowActions ? props.operations.rowActions : [];
|
|
72592
73219
|
} // 查询事件
|
|
72593
73220
|
|
|
72594
73221
|
|
|
72595
73222
|
loadData(1);
|
|
73223
|
+
});
|
|
73224
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
73225
|
+
return props.dataSource;
|
|
73226
|
+
}, function () {
|
|
73227
|
+
cdataSource.value = props.dataSource;
|
|
73228
|
+
loadLocalData();
|
|
73229
|
+
});
|
|
73230
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
73231
|
+
return props.editConfig;
|
|
73232
|
+
}, function () {
|
|
73233
|
+
ceditConfig.value = props.editConfig;
|
|
72596
73234
|
}); // 修改显示列
|
|
72597
73235
|
|
|
72598
73236
|
var changeVisibleColumns = function changeVisibleColumns(columns) {
|
|
@@ -72607,9 +73245,9 @@ Sortable.mount(Remove, Revert);
|
|
|
72607
73245
|
}; // 排序
|
|
72608
73246
|
|
|
72609
73247
|
|
|
72610
|
-
var headerCellClickEvent = function headerCellClickEvent(
|
|
72611
|
-
var column =
|
|
72612
|
-
triggerSort =
|
|
73248
|
+
var headerCellClickEvent = function headerCellClickEvent(_ref2) {
|
|
73249
|
+
var column = _ref2.column,
|
|
73250
|
+
triggerSort = _ref2.triggerSort;
|
|
72613
73251
|
// console.info("column.property:", column.order);
|
|
72614
73252
|
var $table = xTable1.value; // 排序字段
|
|
72615
73253
|
|
|
@@ -72658,14 +73296,18 @@ Sortable.mount(Remove, Revert);
|
|
|
72658
73296
|
if (props.isLocalLoad) {
|
|
72659
73297
|
// 本地查询,根据父组件传来的dataSource进行筛选
|
|
72660
73298
|
if (searchKeys && searchKeys.length > 0) {
|
|
72661
|
-
var result =
|
|
73299
|
+
var result = cdataSource.value.filter(function (item) {
|
|
72662
73300
|
return searchKeys.some(function (key) {
|
|
72663
73301
|
return xe_utils_default.a.toValueString(item[key]).toLowerCase().indexOf(filter.value) > -1;
|
|
72664
73302
|
});
|
|
72665
73303
|
});
|
|
72666
|
-
$table.loadData(result)
|
|
73304
|
+
$table.loadData(result).then(function (res) {
|
|
73305
|
+
updateFilterOptions(result);
|
|
73306
|
+
});
|
|
72667
73307
|
} else {
|
|
72668
|
-
$table.loadData(
|
|
73308
|
+
$table.loadData(cdataSource.value).then(function (res) {
|
|
73309
|
+
updateFilterOptions(cdataSource.value);
|
|
73310
|
+
});
|
|
72669
73311
|
}
|
|
72670
73312
|
} else {
|
|
72671
73313
|
// 远程查询
|
|
@@ -72689,12 +73331,19 @@ Sortable.mount(Remove, Revert);
|
|
|
72689
73331
|
|
|
72690
73332
|
var handlePageChange = function handlePageChange(data) {
|
|
72691
73333
|
current.value = data.currentPage;
|
|
72692
|
-
|
|
72693
|
-
|
|
73334
|
+
cpageSize.value = data.pageSize;
|
|
73335
|
+
|
|
73336
|
+
if (props.isLocalLoad) {
|
|
73337
|
+
// 1. 本地加载
|
|
73338
|
+
return loadLocalData();
|
|
73339
|
+
} else {
|
|
73340
|
+
// 2. 远程加载
|
|
73341
|
+
return loadRemoteData();
|
|
73342
|
+
}
|
|
72694
73343
|
};
|
|
72695
73344
|
|
|
72696
|
-
var cellClickEvent = function cellClickEvent(
|
|
72697
|
-
var row =
|
|
73345
|
+
var cellClickEvent = function cellClickEvent(_ref3) {
|
|
73346
|
+
var row = _ref3.row;
|
|
72698
73347
|
// console.log("----row----", row);
|
|
72699
73348
|
ctx.emit("onRowClickEvent", {
|
|
72700
73349
|
act: "clickRow",
|
|
@@ -72725,7 +73374,7 @@ Sortable.mount(Remove, Revert);
|
|
|
72725
73374
|
|
|
72726
73375
|
|
|
72727
73376
|
var rowSaveEvent = /*#__PURE__*/function () {
|
|
72728
|
-
var
|
|
73377
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(row) {
|
|
72729
73378
|
var $table, errMap;
|
|
72730
73379
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
72731
73380
|
while (1) {
|
|
@@ -72764,7 +73413,7 @@ Sortable.mount(Remove, Revert);
|
|
|
72764
73413
|
}));
|
|
72765
73414
|
|
|
72766
73415
|
return function rowSaveEvent(_x) {
|
|
72767
|
-
return
|
|
73416
|
+
return _ref4.apply(this, arguments);
|
|
72768
73417
|
};
|
|
72769
73418
|
}(); // 行编辑还原
|
|
72770
73419
|
|
|
@@ -72782,13 +73431,13 @@ Sortable.mount(Remove, Revert);
|
|
|
72782
73431
|
|
|
72783
73432
|
if (props.isLocalLoad) {
|
|
72784
73433
|
// 本地
|
|
72785
|
-
|
|
73434
|
+
cdataSource.value = $table.getTableData().tableData;
|
|
72786
73435
|
}
|
|
72787
73436
|
}; // 行删除
|
|
72788
73437
|
|
|
72789
73438
|
|
|
72790
73439
|
var rowDelEvent = /*#__PURE__*/function () {
|
|
72791
|
-
var
|
|
73440
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(row) {
|
|
72792
73441
|
var $table, keys, _$table;
|
|
72793
73442
|
|
|
72794
73443
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -72803,7 +73452,7 @@ Sortable.mount(Remove, Revert);
|
|
|
72803
73452
|
// 本地 临时删除
|
|
72804
73453
|
$table = xTable1.value;
|
|
72805
73454
|
$table.remove(row);
|
|
72806
|
-
|
|
73455
|
+
cdataSource.value = $table.getTableData().tableData;
|
|
72807
73456
|
return _context2.abrupt("return", new Promise(function (resolve) {
|
|
72808
73457
|
resolve(true);
|
|
72809
73458
|
}));
|
|
@@ -72854,7 +73503,7 @@ Sortable.mount(Remove, Revert);
|
|
|
72854
73503
|
}));
|
|
72855
73504
|
|
|
72856
73505
|
return function rowDelEvent(_x2) {
|
|
72857
|
-
return
|
|
73506
|
+
return _ref5.apply(this, arguments);
|
|
72858
73507
|
};
|
|
72859
73508
|
}(); // 编辑事件
|
|
72860
73509
|
|
|
@@ -72876,7 +73525,7 @@ Sortable.mount(Remove, Revert);
|
|
|
72876
73525
|
|
|
72877
73526
|
|
|
72878
73527
|
var onInsertEvent = /*#__PURE__*/function () {
|
|
72879
|
-
var
|
|
73528
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(newData) {
|
|
72880
73529
|
var $table, tmp, _yield$$table$insert, newRow;
|
|
72881
73530
|
|
|
72882
73531
|
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -72898,7 +73547,7 @@ Sortable.mount(Remove, Revert);
|
|
|
72898
73547
|
|
|
72899
73548
|
if (props.isLocalLoad) {
|
|
72900
73549
|
// 本地
|
|
72901
|
-
|
|
73550
|
+
cdataSource.value = $table.getTableData().tableData;
|
|
72902
73551
|
}
|
|
72903
73552
|
|
|
72904
73553
|
case 9:
|
|
@@ -72910,7 +73559,7 @@ Sortable.mount(Remove, Revert);
|
|
|
72910
73559
|
}));
|
|
72911
73560
|
|
|
72912
73561
|
return function onInsertEvent(_x3) {
|
|
72913
|
-
return
|
|
73562
|
+
return _ref6.apply(this, arguments);
|
|
72914
73563
|
};
|
|
72915
73564
|
}(); // 编辑事件
|
|
72916
73565
|
|
|
@@ -72923,7 +73572,7 @@ Sortable.mount(Remove, Revert);
|
|
|
72923
73572
|
|
|
72924
73573
|
|
|
72925
73574
|
var onSaveEvent = /*#__PURE__*/function () {
|
|
72926
|
-
var
|
|
73575
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
72927
73576
|
var $table, errMap, records, rows;
|
|
72928
73577
|
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
72929
73578
|
while (1) {
|
|
@@ -72980,13 +73629,13 @@ Sortable.mount(Remove, Revert);
|
|
|
72980
73629
|
}));
|
|
72981
73630
|
|
|
72982
73631
|
return function onSaveEvent() {
|
|
72983
|
-
return
|
|
73632
|
+
return _ref7.apply(this, arguments);
|
|
72984
73633
|
};
|
|
72985
73634
|
}(); // 还原
|
|
72986
73635
|
|
|
72987
73636
|
|
|
72988
73637
|
var onRetoreEvent = /*#__PURE__*/function () {
|
|
72989
|
-
var
|
|
73638
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
72990
73639
|
var type, $table;
|
|
72991
73640
|
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
72992
73641
|
while (1) {
|
|
@@ -73010,7 +73659,7 @@ Sortable.mount(Remove, Revert);
|
|
|
73010
73659
|
$table.revertData().then(function () {
|
|
73011
73660
|
if (props.isLocalLoad) {
|
|
73012
73661
|
// 本地
|
|
73013
|
-
|
|
73662
|
+
cdataSource.value = $table.getTableData().tableData;
|
|
73014
73663
|
}
|
|
73015
73664
|
});
|
|
73016
73665
|
|
|
@@ -73023,13 +73672,13 @@ Sortable.mount(Remove, Revert);
|
|
|
73023
73672
|
}));
|
|
73024
73673
|
|
|
73025
73674
|
return function onRetoreEvent() {
|
|
73026
|
-
return
|
|
73675
|
+
return _ref8.apply(this, arguments);
|
|
73027
73676
|
};
|
|
73028
73677
|
}(); // 删除
|
|
73029
73678
|
|
|
73030
73679
|
|
|
73031
73680
|
var onDelEvent = /*#__PURE__*/function () {
|
|
73032
|
-
var
|
|
73681
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(msg) {
|
|
73033
73682
|
var $table, rows, type, keys;
|
|
73034
73683
|
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
73035
73684
|
while (1) {
|
|
@@ -73074,7 +73723,7 @@ Sortable.mount(Remove, Revert);
|
|
|
73074
73723
|
// 本地
|
|
73075
73724
|
rows.forEach(function (row) {
|
|
73076
73725
|
$table.remove(row);
|
|
73077
|
-
|
|
73726
|
+
cdataSource.value = cdataSource.value.filter(function (item) {
|
|
73078
73727
|
return item.rowid !== row.rowid;
|
|
73079
73728
|
});
|
|
73080
73729
|
}); // dataSource.value = $table.getTableData().tableData;
|
|
@@ -73124,13 +73773,13 @@ Sortable.mount(Remove, Revert);
|
|
|
73124
73773
|
}));
|
|
73125
73774
|
|
|
73126
73775
|
return function onDelEvent(_x4) {
|
|
73127
|
-
return
|
|
73776
|
+
return _ref9.apply(this, arguments);
|
|
73128
73777
|
};
|
|
73129
73778
|
}(); // 激活
|
|
73130
73779
|
|
|
73131
73780
|
|
|
73132
73781
|
var onActiveOpera = /*#__PURE__*/function () {
|
|
73133
|
-
var
|
|
73782
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
73134
73783
|
var $table, rows, type, keys;
|
|
73135
73784
|
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
73136
73785
|
while (1) {
|
|
@@ -73192,7 +73841,7 @@ Sortable.mount(Remove, Revert);
|
|
|
73192
73841
|
}));
|
|
73193
73842
|
|
|
73194
73843
|
return function onActiveOpera() {
|
|
73195
|
-
return
|
|
73844
|
+
return _ref10.apply(this, arguments);
|
|
73196
73845
|
};
|
|
73197
73846
|
}(); // 获取更新数据
|
|
73198
73847
|
|
|
@@ -73308,6 +73957,7 @@ Sortable.mount(Remove, Revert);
|
|
|
73308
73957
|
var $table = xTable1.value;
|
|
73309
73958
|
var $toolbar = xToolbar.value;
|
|
73310
73959
|
$table.connect($toolbar);
|
|
73960
|
+
cpageSize.value = props.pageSize;
|
|
73311
73961
|
ceditConfig.value = props.editConfig; // 判断是否需要清除列配置缓存
|
|
73312
73962
|
|
|
73313
73963
|
clearColumnsCache(); // 加载标题
|
|
@@ -73353,7 +74003,19 @@ Sortable.mount(Remove, Revert);
|
|
|
73353
74003
|
}
|
|
73354
74004
|
}, 200);
|
|
73355
74005
|
}
|
|
73356
|
-
});
|
|
74006
|
+
}); // checkbox点击事件
|
|
74007
|
+
|
|
74008
|
+
var handelCheckBoxEvent = function handelCheckBoxEvent(event) {
|
|
74009
|
+
//表头全选或第一列点击
|
|
74010
|
+
if (!event.columnIndex || event.columnIndex == 0) {
|
|
74011
|
+
var $table = xTable1.value;
|
|
74012
|
+
var selectRecords = $table.getCheckboxRecords();
|
|
74013
|
+
ctx.emit("onCheckBoxEvent", {
|
|
74014
|
+
record: selectRecords
|
|
74015
|
+
});
|
|
74016
|
+
}
|
|
74017
|
+
};
|
|
74018
|
+
|
|
73357
74019
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onUnmounted"])(function () {
|
|
73358
74020
|
clearTimeout(initTime);
|
|
73359
74021
|
|
|
@@ -73371,7 +74033,7 @@ Sortable.mount(Remove, Revert);
|
|
|
73371
74033
|
// tableSort,
|
|
73372
74034
|
total: total,
|
|
73373
74035
|
current: current,
|
|
73374
|
-
|
|
74036
|
+
cpageSize: cpageSize,
|
|
73375
74037
|
pagination: pagination,
|
|
73376
74038
|
isActiveStatus: isActiveStatus,
|
|
73377
74039
|
handleI18nField: handleI18nField,
|
|
@@ -73396,14 +74058,18 @@ Sortable.mount(Remove, Revert);
|
|
|
73396
74058
|
handleCellBlur: handleCellBlur,
|
|
73397
74059
|
changeVisibleColumns: changeVisibleColumns,
|
|
73398
74060
|
refreshCurrent: refreshCurrent,
|
|
73399
|
-
exportExcel: exportExcel
|
|
74061
|
+
exportExcel: exportExcel,
|
|
74062
|
+
changeOption: changeOption,
|
|
74063
|
+
filterMethod: filterMethod,
|
|
74064
|
+
updateFilterOptions: updateFilterOptions,
|
|
74065
|
+
handelCheckBoxEvent: handelCheckBoxEvent
|
|
73400
74066
|
};
|
|
73401
74067
|
}
|
|
73402
74068
|
}));
|
|
73403
74069
|
// CONCATENATED MODULE: ./packages/CustomTable/src/CustomTable.vue?vue&type=script&lang=ts
|
|
73404
74070
|
|
|
73405
|
-
// EXTERNAL MODULE: ./packages/CustomTable/src/CustomTable.vue?vue&type=style&index=0&id=
|
|
73406
|
-
var
|
|
74071
|
+
// EXTERNAL MODULE: ./packages/CustomTable/src/CustomTable.vue?vue&type=style&index=0&id=8197d406&lang=less
|
|
74072
|
+
var CustomTablevue_type_style_index_0_id_8197d406_lang_less = __webpack_require__("21a0");
|
|
73407
74073
|
|
|
73408
74074
|
// CONCATENATED MODULE: ./packages/CustomTable/src/CustomTable.vue
|
|
73409
74075
|
|
|
@@ -73411,7 +74077,7 @@ var CustomTablevue_type_style_index_0_id_f80344d2_lang_less = __webpack_require_
|
|
|
73411
74077
|
|
|
73412
74078
|
|
|
73413
74079
|
|
|
73414
|
-
CustomTablevue_type_script_lang_ts.render =
|
|
74080
|
+
CustomTablevue_type_script_lang_ts.render = CustomTablevue_type_template_id_8197d406_render
|
|
73415
74081
|
|
|
73416
74082
|
/* harmony default export */ var CustomTable = (CustomTablevue_type_script_lang_ts);
|
|
73417
74083
|
// CONCATENATED MODULE: ./packages/CustomTable/index.ts
|
|
@@ -73432,9 +74098,9 @@ CustomButtons.install = function (app) {
|
|
|
73432
74098
|
};
|
|
73433
74099
|
|
|
73434
74100
|
/* harmony default export */ var packages_CustomButtons = (CustomButtons);
|
|
73435
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./packages/CustomSelect/src/CustomSelect.vue?vue&type=template&id=
|
|
74101
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./packages/CustomSelect/src/CustomSelect.vue?vue&type=template&id=6923cfe0&scoped=true
|
|
73436
74102
|
|
|
73437
|
-
function
|
|
74103
|
+
function CustomSelectvue_type_template_id_6923cfe0_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
73438
74104
|
var _component_a_spin = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-spin");
|
|
73439
74105
|
|
|
73440
74106
|
var _component_a_select_option = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-select-option");
|
|
@@ -73463,11 +74129,11 @@ function CustomSelectvue_type_template_id_63ab215e_scoped_true_render(_ctx, _cac
|
|
|
73463
74129
|
onBlur: _ctx.handleBlur
|
|
73464
74130
|
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createSlots"])({
|
|
73465
74131
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
73466
|
-
return [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.options, function (item) {
|
|
74132
|
+
return [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.options, function (item, index) {
|
|
73467
74133
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_select_option, {
|
|
73468
|
-
key:
|
|
74134
|
+
key: index,
|
|
73469
74135
|
value: item.value,
|
|
73470
|
-
label: item.
|
|
74136
|
+
label: item.show
|
|
73471
74137
|
}, {
|
|
73472
74138
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
73473
74139
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item.label), 1)];
|
|
@@ -73486,7 +74152,7 @@ function CustomSelectvue_type_template_id_63ab215e_scoped_true_render(_ctx, _cac
|
|
|
73486
74152
|
})
|
|
73487
74153
|
} : undefined]), 1032, ["id", "mode", "value", "placeholder", "class", "maxTagCount", "disabled", "not-found-content", "option-label-prop", "onFocus", "onSearch", "onChange", "onBlur"]);
|
|
73488
74154
|
}
|
|
73489
|
-
// CONCATENATED MODULE: ./packages/CustomSelect/src/CustomSelect.vue?vue&type=template&id=
|
|
74155
|
+
// CONCATENATED MODULE: ./packages/CustomSelect/src/CustomSelect.vue?vue&type=template&id=6923cfe0&scoped=true
|
|
73490
74156
|
|
|
73491
74157
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
73492
74158
|
var es_array_find_index = __webpack_require__("c740");
|
|
@@ -73505,6 +74171,7 @@ var es_array_find_index = __webpack_require__("c740");
|
|
|
73505
74171
|
|
|
73506
74172
|
|
|
73507
74173
|
|
|
74174
|
+
|
|
73508
74175
|
/* harmony default export */ var CustomSelectvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
73509
74176
|
name: "custom-select",
|
|
73510
74177
|
props: {
|
|
@@ -73564,6 +74231,14 @@ var es_array_find_index = __webpack_require__("c740");
|
|
|
73564
74231
|
isSupportMDI: {
|
|
73565
74232
|
type: Boolean,
|
|
73566
74233
|
default: false
|
|
74234
|
+
},
|
|
74235
|
+
isDefaultFirst: {
|
|
74236
|
+
type: Boolean,
|
|
74237
|
+
default: false
|
|
74238
|
+
},
|
|
74239
|
+
poptions: {
|
|
74240
|
+
type: [Object, Array] // 固定下拉
|
|
74241
|
+
|
|
73567
74242
|
}
|
|
73568
74243
|
},
|
|
73569
74244
|
emits: ["update:selectValue", "change", "blur"],
|
|
@@ -73573,7 +74248,7 @@ var es_array_find_index = __webpack_require__("c740");
|
|
|
73573
74248
|
|
|
73574
74249
|
var cSelectValue = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])();
|
|
73575
74250
|
var loading = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(false);
|
|
73576
|
-
var
|
|
74251
|
+
var filter = "";
|
|
73577
74252
|
var isInit = true; // 初始加载
|
|
73578
74253
|
|
|
73579
74254
|
var options = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])([]); // 查询
|
|
@@ -73584,35 +74259,73 @@ var es_array_find_index = __webpack_require__("c740");
|
|
|
73584
74259
|
while (1) {
|
|
73585
74260
|
switch (_context.prev = _context.next) {
|
|
73586
74261
|
case 0:
|
|
73587
|
-
if (!props.queryParams) {
|
|
73588
|
-
_context.next =
|
|
74262
|
+
if (!(props.queryParams && props.queryParams.url)) {
|
|
74263
|
+
_context.next = 5;
|
|
73589
74264
|
break;
|
|
73590
74265
|
}
|
|
73591
74266
|
|
|
73592
74267
|
// 远程加载
|
|
73593
74268
|
loading.value = true;
|
|
73594
|
-
return _context.abrupt("return", getSelectData(props.queryParams,
|
|
74269
|
+
return _context.abrupt("return", getSelectData(props.queryParams, filter, props.respConfig).then(function (res) {
|
|
74270
|
+
var opts = res; // 查询结果为空时支持用户手动输入
|
|
74271
|
+
|
|
73595
74272
|
// 查询结果为空时支持用户手动输入
|
|
73596
|
-
if (
|
|
73597
|
-
var
|
|
73598
|
-
|
|
73599
|
-
|
|
73600
|
-
|
|
73601
|
-
|
|
73602
|
-
|
|
73603
|
-
|
|
73604
|
-
|
|
73605
|
-
|
|
73606
|
-
|
|
74273
|
+
if (props.isSupportMDI) {
|
|
74274
|
+
var value = null;
|
|
74275
|
+
|
|
74276
|
+
if (filter !== "") {
|
|
74277
|
+
value = filter;
|
|
74278
|
+
} else if (props.selectValue !== "") {
|
|
74279
|
+
value = props.selectValue;
|
|
74280
|
+
}
|
|
74281
|
+
|
|
74282
|
+
if (value) {
|
|
74283
|
+
var index = opts.findIndex(function (item) {
|
|
74284
|
+
return item.value == value;
|
|
74285
|
+
});
|
|
74286
|
+
|
|
74287
|
+
if (index < 0) {
|
|
74288
|
+
opts.unshift({
|
|
74289
|
+
data: {
|
|
74290
|
+
value: value
|
|
74291
|
+
},
|
|
74292
|
+
label: value,
|
|
74293
|
+
value: value,
|
|
74294
|
+
show: value
|
|
74295
|
+
});
|
|
74296
|
+
}
|
|
74297
|
+
}
|
|
74298
|
+
}
|
|
74299
|
+
|
|
74300
|
+
options.value = opts;
|
|
74301
|
+
|
|
74302
|
+
if (props.isDefaultFirst && options.value.length > 0) {
|
|
74303
|
+
// 支持将结果的第一笔数据带入默认值
|
|
74304
|
+
cSelectValue.value = options.value[0].value;
|
|
74305
|
+
handleChange();
|
|
73607
74306
|
}
|
|
73608
74307
|
|
|
73609
74308
|
loading.value = false;
|
|
73610
74309
|
return new Promise(function (resolve) {
|
|
73611
|
-
resolve(
|
|
74310
|
+
resolve(opts);
|
|
73612
74311
|
});
|
|
73613
74312
|
}));
|
|
73614
74313
|
|
|
73615
|
-
case
|
|
74314
|
+
case 5:
|
|
74315
|
+
options.value = [].concat(props.poptions);
|
|
74316
|
+
loading.value = false;
|
|
74317
|
+
|
|
74318
|
+
if (props.isDefaultFirst && options.value.length > 0) {
|
|
74319
|
+
// 支持将结果的第一笔数据带入默认值
|
|
74320
|
+
cSelectValue.value = options.value[0].value;
|
|
74321
|
+
handleChange();
|
|
74322
|
+
}
|
|
74323
|
+
|
|
74324
|
+
return _context.abrupt("return", new Promise(function (resolve) {
|
|
74325
|
+
resolve(options.value);
|
|
74326
|
+
}));
|
|
74327
|
+
|
|
74328
|
+
case 9:
|
|
73616
74329
|
case "end":
|
|
73617
74330
|
return _context.stop();
|
|
73618
74331
|
}
|
|
@@ -73623,7 +74336,59 @@ var es_array_find_index = __webpack_require__("c740");
|
|
|
73623
74336
|
return function queryData() {
|
|
73624
74337
|
return _ref.apply(this, arguments);
|
|
73625
74338
|
};
|
|
73626
|
-
}();
|
|
74339
|
+
}(); //判断非空字符串
|
|
74340
|
+
|
|
74341
|
+
|
|
74342
|
+
var isEmpty = function isEmpty(value) {
|
|
74343
|
+
if (value == "" || value == null || value == undefined) {
|
|
74344
|
+
return true;
|
|
74345
|
+
}
|
|
74346
|
+
|
|
74347
|
+
return false;
|
|
74348
|
+
};
|
|
74349
|
+
|
|
74350
|
+
var handleInitData = function handleInitData() {
|
|
74351
|
+
if (options.value.length > 0) {
|
|
74352
|
+
cSelectValue.value = props.selectValue;
|
|
74353
|
+
} else {
|
|
74354
|
+
// initSearch=true,value有值时,进行初始加载
|
|
74355
|
+
if (props.initSearch && (!isEmpty(props.selectValue) || props.isDefaultFirst)) {
|
|
74356
|
+
// 处理加载value值不在初始选项数组的情况
|
|
74357
|
+
if (props.queryParams && props.queryParams.isInitBykey) {
|
|
74358
|
+
filter = props.selectValue;
|
|
74359
|
+
queryData().then(function (res) {
|
|
74360
|
+
cSelectValue.value = props.selectValue;
|
|
74361
|
+
});
|
|
74362
|
+
} else {
|
|
74363
|
+
queryData().then(function (res) {
|
|
74364
|
+
if (props.isSupportMDI) {
|
|
74365
|
+
// 处理手动输入选项时,页面加载选项取不到值的情况
|
|
74366
|
+
var index = options.value.findIndex(function (item) {
|
|
74367
|
+
return item.value == props.selectValue;
|
|
74368
|
+
});
|
|
74369
|
+
|
|
74370
|
+
if (index < 0) {
|
|
74371
|
+
options.value = [{
|
|
74372
|
+
data: {
|
|
74373
|
+
value: props.selectValue
|
|
74374
|
+
},
|
|
74375
|
+
label: props.selectValue,
|
|
74376
|
+
value: props.selectValue,
|
|
74377
|
+
show: props.selectValue
|
|
74378
|
+
}];
|
|
74379
|
+
}
|
|
74380
|
+
|
|
74381
|
+
console.log("##########isSupportMDI options#########", options.value);
|
|
74382
|
+
}
|
|
74383
|
+
|
|
74384
|
+
cSelectValue.value = props.selectValue;
|
|
74385
|
+
});
|
|
74386
|
+
}
|
|
74387
|
+
} else {
|
|
74388
|
+
cSelectValue.value = props.selectValue;
|
|
74389
|
+
}
|
|
74390
|
+
}
|
|
74391
|
+
}; // 初始化
|
|
73627
74392
|
|
|
73628
74393
|
|
|
73629
74394
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(function () {
|
|
@@ -73633,37 +74398,45 @@ var es_array_find_index = __webpack_require__("c740");
|
|
|
73633
74398
|
axios_default.a.defaults.headers["token"] = props.token;
|
|
73634
74399
|
axios_default.a.defaults.headers["language"] = props.lang;
|
|
73635
74400
|
var lang = props.lang;
|
|
73636
|
-
proxy.$i18n.locale = lang;
|
|
74401
|
+
proxy.$i18n.locale = lang;
|
|
73637
74402
|
|
|
73638
|
-
if (props.
|
|
73639
|
-
|
|
73640
|
-
cSelectValue.value = props.selectValue;
|
|
73641
|
-
});
|
|
74403
|
+
if (props.poptions) {
|
|
74404
|
+
options.value = [].concat(props.poptions);
|
|
73642
74405
|
}
|
|
73643
74406
|
|
|
73644
|
-
|
|
74407
|
+
handleInitData();
|
|
73645
74408
|
});
|
|
73646
74409
|
});
|
|
73647
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(
|
|
73648
|
-
|
|
74410
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
74411
|
+
return props.selectValue;
|
|
74412
|
+
}, function () {
|
|
74413
|
+
filter = props.selectValue;
|
|
74414
|
+
handleInitData();
|
|
73649
74415
|
}); // 监测已选值变化,同步到输入框,用于支持select 可输入可选择
|
|
73650
74416
|
|
|
73651
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(
|
|
73652
|
-
|
|
74417
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
74418
|
+
return props.queryParams;
|
|
74419
|
+
}, function () {
|
|
74420
|
+
queryData().then(function () {
|
|
74421
|
+
cSelectValue.value = props.selectValue;
|
|
74422
|
+
});
|
|
73653
74423
|
}); // focus事件 initSearch:false的情况, 在focus事件初始化选项 或 文本框值变化时调用
|
|
73654
74424
|
|
|
73655
74425
|
var handleFocus = function handleFocus() {
|
|
73656
|
-
if (
|
|
73657
|
-
|
|
73658
|
-
|
|
73659
|
-
|
|
73660
|
-
|
|
73661
|
-
|
|
74426
|
+
if (isInit || filter !== "" || props.focusSearch) {
|
|
74427
|
+
filter = "";
|
|
74428
|
+
|
|
74429
|
+
if (props.queryParams) {
|
|
74430
|
+
queryData().then(function (res) {
|
|
74431
|
+
cSelectValue.value = props.selectValue;
|
|
74432
|
+
isInit = res.length > 0 ? false : true;
|
|
74433
|
+
});
|
|
74434
|
+
}
|
|
73662
74435
|
}
|
|
73663
74436
|
};
|
|
73664
74437
|
|
|
73665
74438
|
var handleSearch = Object(lodash["debounce"])(function (data) {
|
|
73666
|
-
|
|
74439
|
+
filter = data;
|
|
73667
74440
|
queryData();
|
|
73668
74441
|
}, 500);
|
|
73669
74442
|
/**
|
|
@@ -73685,7 +74458,7 @@ var es_array_find_index = __webpack_require__("c740");
|
|
|
73685
74458
|
};
|
|
73686
74459
|
|
|
73687
74460
|
var handleChange = function handleChange() {
|
|
73688
|
-
ctx.emit("update:selectValue", cSelectValue.value); //
|
|
74461
|
+
ctx.emit("update:selectValue", cSelectValue.value); // filter = cSelectValue.value;
|
|
73689
74462
|
|
|
73690
74463
|
if ("multiple" === props.mode) {
|
|
73691
74464
|
// 多选
|
|
@@ -73714,7 +74487,7 @@ var es_array_find_index = __webpack_require__("c740");
|
|
|
73714
74487
|
|
|
73715
74488
|
var handleBlur = function handleBlur(event) {
|
|
73716
74489
|
ctx.emit("blur", {
|
|
73717
|
-
|
|
74490
|
+
filter: filter
|
|
73718
74491
|
});
|
|
73719
74492
|
};
|
|
73720
74493
|
|
|
@@ -73733,8 +74506,8 @@ var es_array_find_index = __webpack_require__("c740");
|
|
|
73733
74506
|
}));
|
|
73734
74507
|
// CONCATENATED MODULE: ./packages/CustomSelect/src/CustomSelect.vue?vue&type=script&lang=ts
|
|
73735
74508
|
|
|
73736
|
-
// EXTERNAL MODULE: ./packages/CustomSelect/src/CustomSelect.vue?vue&type=style&index=0&id=
|
|
73737
|
-
var
|
|
74509
|
+
// EXTERNAL MODULE: ./packages/CustomSelect/src/CustomSelect.vue?vue&type=style&index=0&id=6923cfe0&lang=less&scoped=true
|
|
74510
|
+
var CustomSelectvue_type_style_index_0_id_6923cfe0_lang_less_scoped_true = __webpack_require__("bbc9");
|
|
73738
74511
|
|
|
73739
74512
|
// CONCATENATED MODULE: ./packages/CustomSelect/src/CustomSelect.vue
|
|
73740
74513
|
|
|
@@ -73742,8 +74515,8 @@ var CustomSelectvue_type_style_index_0_id_63ab215e_lang_less_scoped_true = __web
|
|
|
73742
74515
|
|
|
73743
74516
|
|
|
73744
74517
|
|
|
73745
|
-
CustomSelectvue_type_script_lang_ts.render =
|
|
73746
|
-
CustomSelectvue_type_script_lang_ts.__scopeId = "data-v-
|
|
74518
|
+
CustomSelectvue_type_script_lang_ts.render = CustomSelectvue_type_template_id_6923cfe0_scoped_true_render
|
|
74519
|
+
CustomSelectvue_type_script_lang_ts.__scopeId = "data-v-6923cfe0"
|
|
73747
74520
|
|
|
73748
74521
|
/* harmony default export */ var CustomSelect = (CustomSelectvue_type_script_lang_ts);
|
|
73749
74522
|
// CONCATENATED MODULE: ./packages/CustomSelect/index.ts
|
|
@@ -73770,7 +74543,7 @@ var CustomFileUploadvue_type_template_id_06071970_hoisted_3 = /*#__PURE__*/Objec
|
|
|
73770
74543
|
|
|
73771
74544
|
var CustomFileUploadvue_type_template_id_06071970_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])("Click to Upload ");
|
|
73772
74545
|
|
|
73773
|
-
var
|
|
74546
|
+
var CustomFileUploadvue_type_template_id_06071970_hoisted_5 = ["src"];
|
|
73774
74547
|
function CustomFileUploadvue_type_template_id_06071970_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
73775
74548
|
var _component_plus_outlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("plus-outlined");
|
|
73776
74549
|
|
|
@@ -73821,7 +74594,7 @@ function CustomFileUploadvue_type_template_id_06071970_render(_ctx, _cache, $pro
|
|
|
73821
74594
|
"width": "100%"
|
|
73822
74595
|
},
|
|
73823
74596
|
src: _ctx.previewImage
|
|
73824
|
-
}, null, 8,
|
|
74597
|
+
}, null, 8, CustomFileUploadvue_type_template_id_06071970_hoisted_5)];
|
|
73825
74598
|
}),
|
|
73826
74599
|
_: 1
|
|
73827
74600
|
}, 8, ["visible", "onCancel"])]);
|