vxe-table 4.1.3 → 4.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +3 -3
- package/README.md +3 -3
- package/README.zh-TW.md +2 -3
- package/es/edit/src/hook.js +189 -69
- package/es/form/src/form.js +2 -2
- package/es/input/src/input.js +8 -2
- package/es/table/src/body.js +6 -3
- package/es/table/src/table.js +44 -34
- package/es/v-x-e-table/src/conf.js +1 -1
- package/es/validator/src/hook.js +3 -3
- package/lib/edit/src/hook.js +243 -70
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/form/src/form.js +2 -2
- package/lib/form/src/form.min.js +1 -1
- package/lib/index.umd.js +772 -209
- package/lib/index.umd.min.js +2 -1
- package/lib/input/src/input.js +10 -2
- package/lib/input/src/input.min.js +1 -1
- package/lib/table/src/body.js +6 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/table.js +46 -36
- package/lib/table/src/table.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +1 -1
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/validator/src/hook.js +3 -3
- package/lib/validator/src/hook.min.js +1 -1
- package/package.json +4 -27
- package/packages/edit/src/hook.ts +183 -69
- package/packages/form/src/form.ts +2 -2
- package/packages/input/src/input.ts +9 -2
- package/packages/table/src/body.ts +6 -3
- package/packages/table/src/table.ts +43 -32
- package/packages/v-x-e-table/src/conf.ts +1 -1
- package/packages/v-x-e-table/src/renderer.ts +1 -1
- package/packages/validator/src/hook.ts +3 -3
- package/types/edit.d.ts +6 -3
- package/types/index.d.ts +1 -1
- package/types/plugins/pro.d.ts +6 -6
- package/types/table.d.ts +5 -0
- package/types/v-x-e-table/renderer.d.ts +4 -2
package/lib/index.umd.js
CHANGED
|
@@ -3077,6 +3077,23 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
3077
3077
|
});
|
|
3078
3078
|
|
|
3079
3079
|
|
|
3080
|
+
/***/ }),
|
|
3081
|
+
|
|
3082
|
+
/***/ "4ec9":
|
|
3083
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3084
|
+
|
|
3085
|
+
"use strict";
|
|
3086
|
+
|
|
3087
|
+
var collection = __webpack_require__("6d61");
|
|
3088
|
+
var collectionStrong = __webpack_require__("6566");
|
|
3089
|
+
|
|
3090
|
+
// `Map` constructor
|
|
3091
|
+
// https://tc39.es/ecma262/#sec-map-objects
|
|
3092
|
+
module.exports = collection('Map', function (init) {
|
|
3093
|
+
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
3094
|
+
}, collectionStrong);
|
|
3095
|
+
|
|
3096
|
+
|
|
3080
3097
|
/***/ }),
|
|
3081
3098
|
|
|
3082
3099
|
/***/ "5087":
|
|
@@ -3727,6 +3744,216 @@ module.exports = {
|
|
|
3727
3744
|
};
|
|
3728
3745
|
|
|
3729
3746
|
|
|
3747
|
+
/***/ }),
|
|
3748
|
+
|
|
3749
|
+
/***/ "6566":
|
|
3750
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3751
|
+
|
|
3752
|
+
"use strict";
|
|
3753
|
+
|
|
3754
|
+
var defineProperty = __webpack_require__("9bf2").f;
|
|
3755
|
+
var create = __webpack_require__("7c73");
|
|
3756
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
3757
|
+
var bind = __webpack_require__("0366");
|
|
3758
|
+
var anInstance = __webpack_require__("19aa");
|
|
3759
|
+
var iterate = __webpack_require__("2266");
|
|
3760
|
+
var defineIterator = __webpack_require__("7dd0");
|
|
3761
|
+
var setSpecies = __webpack_require__("2626");
|
|
3762
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
3763
|
+
var fastKey = __webpack_require__("f183").fastKey;
|
|
3764
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
3765
|
+
|
|
3766
|
+
var setInternalState = InternalStateModule.set;
|
|
3767
|
+
var internalStateGetterFor = InternalStateModule.getterFor;
|
|
3768
|
+
|
|
3769
|
+
module.exports = {
|
|
3770
|
+
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
3771
|
+
var C = wrapper(function (that, iterable) {
|
|
3772
|
+
anInstance(that, C, CONSTRUCTOR_NAME);
|
|
3773
|
+
setInternalState(that, {
|
|
3774
|
+
type: CONSTRUCTOR_NAME,
|
|
3775
|
+
index: create(null),
|
|
3776
|
+
first: undefined,
|
|
3777
|
+
last: undefined,
|
|
3778
|
+
size: 0
|
|
3779
|
+
});
|
|
3780
|
+
if (!DESCRIPTORS) that.size = 0;
|
|
3781
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
3782
|
+
});
|
|
3783
|
+
|
|
3784
|
+
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
3785
|
+
|
|
3786
|
+
var define = function (that, key, value) {
|
|
3787
|
+
var state = getInternalState(that);
|
|
3788
|
+
var entry = getEntry(that, key);
|
|
3789
|
+
var previous, index;
|
|
3790
|
+
// change existing entry
|
|
3791
|
+
if (entry) {
|
|
3792
|
+
entry.value = value;
|
|
3793
|
+
// create new entry
|
|
3794
|
+
} else {
|
|
3795
|
+
state.last = entry = {
|
|
3796
|
+
index: index = fastKey(key, true),
|
|
3797
|
+
key: key,
|
|
3798
|
+
value: value,
|
|
3799
|
+
previous: previous = state.last,
|
|
3800
|
+
next: undefined,
|
|
3801
|
+
removed: false
|
|
3802
|
+
};
|
|
3803
|
+
if (!state.first) state.first = entry;
|
|
3804
|
+
if (previous) previous.next = entry;
|
|
3805
|
+
if (DESCRIPTORS) state.size++;
|
|
3806
|
+
else that.size++;
|
|
3807
|
+
// add to index
|
|
3808
|
+
if (index !== 'F') state.index[index] = entry;
|
|
3809
|
+
} return that;
|
|
3810
|
+
};
|
|
3811
|
+
|
|
3812
|
+
var getEntry = function (that, key) {
|
|
3813
|
+
var state = getInternalState(that);
|
|
3814
|
+
// fast case
|
|
3815
|
+
var index = fastKey(key);
|
|
3816
|
+
var entry;
|
|
3817
|
+
if (index !== 'F') return state.index[index];
|
|
3818
|
+
// frozen object case
|
|
3819
|
+
for (entry = state.first; entry; entry = entry.next) {
|
|
3820
|
+
if (entry.key == key) return entry;
|
|
3821
|
+
}
|
|
3822
|
+
};
|
|
3823
|
+
|
|
3824
|
+
redefineAll(C.prototype, {
|
|
3825
|
+
// `{ Map, Set }.prototype.clear()` methods
|
|
3826
|
+
// https://tc39.es/ecma262/#sec-map.prototype.clear
|
|
3827
|
+
// https://tc39.es/ecma262/#sec-set.prototype.clear
|
|
3828
|
+
clear: function clear() {
|
|
3829
|
+
var that = this;
|
|
3830
|
+
var state = getInternalState(that);
|
|
3831
|
+
var data = state.index;
|
|
3832
|
+
var entry = state.first;
|
|
3833
|
+
while (entry) {
|
|
3834
|
+
entry.removed = true;
|
|
3835
|
+
if (entry.previous) entry.previous = entry.previous.next = undefined;
|
|
3836
|
+
delete data[entry.index];
|
|
3837
|
+
entry = entry.next;
|
|
3838
|
+
}
|
|
3839
|
+
state.first = state.last = undefined;
|
|
3840
|
+
if (DESCRIPTORS) state.size = 0;
|
|
3841
|
+
else that.size = 0;
|
|
3842
|
+
},
|
|
3843
|
+
// `{ Map, Set }.prototype.delete(key)` methods
|
|
3844
|
+
// https://tc39.es/ecma262/#sec-map.prototype.delete
|
|
3845
|
+
// https://tc39.es/ecma262/#sec-set.prototype.delete
|
|
3846
|
+
'delete': function (key) {
|
|
3847
|
+
var that = this;
|
|
3848
|
+
var state = getInternalState(that);
|
|
3849
|
+
var entry = getEntry(that, key);
|
|
3850
|
+
if (entry) {
|
|
3851
|
+
var next = entry.next;
|
|
3852
|
+
var prev = entry.previous;
|
|
3853
|
+
delete state.index[entry.index];
|
|
3854
|
+
entry.removed = true;
|
|
3855
|
+
if (prev) prev.next = next;
|
|
3856
|
+
if (next) next.previous = prev;
|
|
3857
|
+
if (state.first == entry) state.first = next;
|
|
3858
|
+
if (state.last == entry) state.last = prev;
|
|
3859
|
+
if (DESCRIPTORS) state.size--;
|
|
3860
|
+
else that.size--;
|
|
3861
|
+
} return !!entry;
|
|
3862
|
+
},
|
|
3863
|
+
// `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods
|
|
3864
|
+
// https://tc39.es/ecma262/#sec-map.prototype.foreach
|
|
3865
|
+
// https://tc39.es/ecma262/#sec-set.prototype.foreach
|
|
3866
|
+
forEach: function forEach(callbackfn /* , that = undefined */) {
|
|
3867
|
+
var state = getInternalState(this);
|
|
3868
|
+
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
|
|
3869
|
+
var entry;
|
|
3870
|
+
while (entry = entry ? entry.next : state.first) {
|
|
3871
|
+
boundFunction(entry.value, entry.key, this);
|
|
3872
|
+
// revert to the last existing entry
|
|
3873
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
3874
|
+
}
|
|
3875
|
+
},
|
|
3876
|
+
// `{ Map, Set}.prototype.has(key)` methods
|
|
3877
|
+
// https://tc39.es/ecma262/#sec-map.prototype.has
|
|
3878
|
+
// https://tc39.es/ecma262/#sec-set.prototype.has
|
|
3879
|
+
has: function has(key) {
|
|
3880
|
+
return !!getEntry(this, key);
|
|
3881
|
+
}
|
|
3882
|
+
});
|
|
3883
|
+
|
|
3884
|
+
redefineAll(C.prototype, IS_MAP ? {
|
|
3885
|
+
// `Map.prototype.get(key)` method
|
|
3886
|
+
// https://tc39.es/ecma262/#sec-map.prototype.get
|
|
3887
|
+
get: function get(key) {
|
|
3888
|
+
var entry = getEntry(this, key);
|
|
3889
|
+
return entry && entry.value;
|
|
3890
|
+
},
|
|
3891
|
+
// `Map.prototype.set(key, value)` method
|
|
3892
|
+
// https://tc39.es/ecma262/#sec-map.prototype.set
|
|
3893
|
+
set: function set(key, value) {
|
|
3894
|
+
return define(this, key === 0 ? 0 : key, value);
|
|
3895
|
+
}
|
|
3896
|
+
} : {
|
|
3897
|
+
// `Set.prototype.add(value)` method
|
|
3898
|
+
// https://tc39.es/ecma262/#sec-set.prototype.add
|
|
3899
|
+
add: function add(value) {
|
|
3900
|
+
return define(this, value = value === 0 ? 0 : value, value);
|
|
3901
|
+
}
|
|
3902
|
+
});
|
|
3903
|
+
if (DESCRIPTORS) defineProperty(C.prototype, 'size', {
|
|
3904
|
+
get: function () {
|
|
3905
|
+
return getInternalState(this).size;
|
|
3906
|
+
}
|
|
3907
|
+
});
|
|
3908
|
+
return C;
|
|
3909
|
+
},
|
|
3910
|
+
setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
|
|
3911
|
+
var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
|
|
3912
|
+
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
3913
|
+
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
|
|
3914
|
+
// `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods
|
|
3915
|
+
// https://tc39.es/ecma262/#sec-map.prototype.entries
|
|
3916
|
+
// https://tc39.es/ecma262/#sec-map.prototype.keys
|
|
3917
|
+
// https://tc39.es/ecma262/#sec-map.prototype.values
|
|
3918
|
+
// https://tc39.es/ecma262/#sec-map.prototype-@@iterator
|
|
3919
|
+
// https://tc39.es/ecma262/#sec-set.prototype.entries
|
|
3920
|
+
// https://tc39.es/ecma262/#sec-set.prototype.keys
|
|
3921
|
+
// https://tc39.es/ecma262/#sec-set.prototype.values
|
|
3922
|
+
// https://tc39.es/ecma262/#sec-set.prototype-@@iterator
|
|
3923
|
+
defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
|
|
3924
|
+
setInternalState(this, {
|
|
3925
|
+
type: ITERATOR_NAME,
|
|
3926
|
+
target: iterated,
|
|
3927
|
+
state: getInternalCollectionState(iterated),
|
|
3928
|
+
kind: kind,
|
|
3929
|
+
last: undefined
|
|
3930
|
+
});
|
|
3931
|
+
}, function () {
|
|
3932
|
+
var state = getInternalIteratorState(this);
|
|
3933
|
+
var kind = state.kind;
|
|
3934
|
+
var entry = state.last;
|
|
3935
|
+
// revert to the last existing entry
|
|
3936
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
3937
|
+
// get next entry
|
|
3938
|
+
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
|
|
3939
|
+
// or finish the iteration
|
|
3940
|
+
state.target = undefined;
|
|
3941
|
+
return { value: undefined, done: true };
|
|
3942
|
+
}
|
|
3943
|
+
// return step by kind
|
|
3944
|
+
if (kind == 'keys') return { value: entry.key, done: false };
|
|
3945
|
+
if (kind == 'values') return { value: entry.value, done: false };
|
|
3946
|
+
return { value: [entry.key, entry.value], done: false };
|
|
3947
|
+
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
|
|
3948
|
+
|
|
3949
|
+
// `{ Map, Set }.prototype[@@species]` accessors
|
|
3950
|
+
// https://tc39.es/ecma262/#sec-get-map-@@species
|
|
3951
|
+
// https://tc39.es/ecma262/#sec-get-set-@@species
|
|
3952
|
+
setSpecies(CONSTRUCTOR_NAME);
|
|
3953
|
+
}
|
|
3954
|
+
};
|
|
3955
|
+
|
|
3956
|
+
|
|
3730
3957
|
/***/ }),
|
|
3731
3958
|
|
|
3732
3959
|
/***/ "65f0":
|
|
@@ -3863,6 +4090,118 @@ module.exports = {
|
|
|
3863
4090
|
};
|
|
3864
4091
|
|
|
3865
4092
|
|
|
4093
|
+
/***/ }),
|
|
4094
|
+
|
|
4095
|
+
/***/ "6d61":
|
|
4096
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4097
|
+
|
|
4098
|
+
"use strict";
|
|
4099
|
+
|
|
4100
|
+
var $ = __webpack_require__("23e7");
|
|
4101
|
+
var global = __webpack_require__("da84");
|
|
4102
|
+
var isForced = __webpack_require__("94ca");
|
|
4103
|
+
var redefine = __webpack_require__("6eeb");
|
|
4104
|
+
var InternalMetadataModule = __webpack_require__("f183");
|
|
4105
|
+
var iterate = __webpack_require__("2266");
|
|
4106
|
+
var anInstance = __webpack_require__("19aa");
|
|
4107
|
+
var isCallable = __webpack_require__("1626");
|
|
4108
|
+
var isObject = __webpack_require__("861d");
|
|
4109
|
+
var fails = __webpack_require__("d039");
|
|
4110
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
4111
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
4112
|
+
var inheritIfRequired = __webpack_require__("7156");
|
|
4113
|
+
|
|
4114
|
+
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
4115
|
+
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
|
4116
|
+
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
|
4117
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
4118
|
+
var NativeConstructor = global[CONSTRUCTOR_NAME];
|
|
4119
|
+
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
4120
|
+
var Constructor = NativeConstructor;
|
|
4121
|
+
var exported = {};
|
|
4122
|
+
|
|
4123
|
+
var fixMethod = function (KEY) {
|
|
4124
|
+
var nativeMethod = NativePrototype[KEY];
|
|
4125
|
+
redefine(NativePrototype, KEY,
|
|
4126
|
+
KEY == 'add' ? function add(value) {
|
|
4127
|
+
nativeMethod.call(this, value === 0 ? 0 : value);
|
|
4128
|
+
return this;
|
|
4129
|
+
} : KEY == 'delete' ? function (key) {
|
|
4130
|
+
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
|
|
4131
|
+
} : KEY == 'get' ? function get(key) {
|
|
4132
|
+
return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
|
|
4133
|
+
} : KEY == 'has' ? function has(key) {
|
|
4134
|
+
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
|
|
4135
|
+
} : function set(key, value) {
|
|
4136
|
+
nativeMethod.call(this, key === 0 ? 0 : key, value);
|
|
4137
|
+
return this;
|
|
4138
|
+
}
|
|
4139
|
+
);
|
|
4140
|
+
};
|
|
4141
|
+
|
|
4142
|
+
var REPLACE = isForced(
|
|
4143
|
+
CONSTRUCTOR_NAME,
|
|
4144
|
+
!isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
|
|
4145
|
+
new NativeConstructor().entries().next();
|
|
4146
|
+
}))
|
|
4147
|
+
);
|
|
4148
|
+
|
|
4149
|
+
if (REPLACE) {
|
|
4150
|
+
// create collection constructor
|
|
4151
|
+
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
|
4152
|
+
InternalMetadataModule.enable();
|
|
4153
|
+
} else if (isForced(CONSTRUCTOR_NAME, true)) {
|
|
4154
|
+
var instance = new Constructor();
|
|
4155
|
+
// early implementations not supports chaining
|
|
4156
|
+
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
|
4157
|
+
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
|
4158
|
+
var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
|
|
4159
|
+
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
|
4160
|
+
// eslint-disable-next-line no-new -- required for testing
|
|
4161
|
+
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
|
|
4162
|
+
// for early implementations -0 and +0 not the same
|
|
4163
|
+
var BUGGY_ZERO = !IS_WEAK && fails(function () {
|
|
4164
|
+
// V8 ~ Chromium 42- fails only with 5+ elements
|
|
4165
|
+
var $instance = new NativeConstructor();
|
|
4166
|
+
var index = 5;
|
|
4167
|
+
while (index--) $instance[ADDER](index, index);
|
|
4168
|
+
return !$instance.has(-0);
|
|
4169
|
+
});
|
|
4170
|
+
|
|
4171
|
+
if (!ACCEPT_ITERABLES) {
|
|
4172
|
+
Constructor = wrapper(function (dummy, iterable) {
|
|
4173
|
+
anInstance(dummy, Constructor, CONSTRUCTOR_NAME);
|
|
4174
|
+
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
|
|
4175
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
4176
|
+
return that;
|
|
4177
|
+
});
|
|
4178
|
+
Constructor.prototype = NativePrototype;
|
|
4179
|
+
NativePrototype.constructor = Constructor;
|
|
4180
|
+
}
|
|
4181
|
+
|
|
4182
|
+
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
|
|
4183
|
+
fixMethod('delete');
|
|
4184
|
+
fixMethod('has');
|
|
4185
|
+
IS_MAP && fixMethod('get');
|
|
4186
|
+
}
|
|
4187
|
+
|
|
4188
|
+
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
|
|
4189
|
+
|
|
4190
|
+
// weak collections should not contains .clear method
|
|
4191
|
+
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
|
|
4192
|
+
}
|
|
4193
|
+
|
|
4194
|
+
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
4195
|
+
$({ global: true, forced: Constructor != NativeConstructor }, exported);
|
|
4196
|
+
|
|
4197
|
+
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
4198
|
+
|
|
4199
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
4200
|
+
|
|
4201
|
+
return Constructor;
|
|
4202
|
+
};
|
|
4203
|
+
|
|
4204
|
+
|
|
3866
4205
|
/***/ }),
|
|
3867
4206
|
|
|
3868
4207
|
/***/ "6eeb":
|
|
@@ -6365,6 +6704,19 @@ module.exports = {
|
|
|
6365
6704
|
};
|
|
6366
6705
|
|
|
6367
6706
|
|
|
6707
|
+
/***/ }),
|
|
6708
|
+
|
|
6709
|
+
/***/ "bb2f":
|
|
6710
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6711
|
+
|
|
6712
|
+
var fails = __webpack_require__("d039");
|
|
6713
|
+
|
|
6714
|
+
module.exports = !fails(function () {
|
|
6715
|
+
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
|
|
6716
|
+
return Object.isExtensible(Object.preventExtensions({}));
|
|
6717
|
+
});
|
|
6718
|
+
|
|
6719
|
+
|
|
6368
6720
|
/***/ }),
|
|
6369
6721
|
|
|
6370
6722
|
/***/ "c04e":
|
|
@@ -7735,6 +8087,105 @@ module.exports.f = function (C) {
|
|
|
7735
8087
|
|
|
7736
8088
|
module.exports = __WEBPACK_EXTERNAL_MODULE_f0af__;
|
|
7737
8089
|
|
|
8090
|
+
/***/ }),
|
|
8091
|
+
|
|
8092
|
+
/***/ "f183":
|
|
8093
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8094
|
+
|
|
8095
|
+
var $ = __webpack_require__("23e7");
|
|
8096
|
+
var hiddenKeys = __webpack_require__("d012");
|
|
8097
|
+
var isObject = __webpack_require__("861d");
|
|
8098
|
+
var hasOwn = __webpack_require__("1a2d");
|
|
8099
|
+
var defineProperty = __webpack_require__("9bf2").f;
|
|
8100
|
+
var getOwnPropertyNamesModule = __webpack_require__("241c");
|
|
8101
|
+
var getOwnPropertyNamesExternalModule = __webpack_require__("057f");
|
|
8102
|
+
var uid = __webpack_require__("90e3");
|
|
8103
|
+
var FREEZING = __webpack_require__("bb2f");
|
|
8104
|
+
|
|
8105
|
+
var REQUIRED = false;
|
|
8106
|
+
var METADATA = uid('meta');
|
|
8107
|
+
var id = 0;
|
|
8108
|
+
|
|
8109
|
+
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
8110
|
+
var isExtensible = Object.isExtensible || function () {
|
|
8111
|
+
return true;
|
|
8112
|
+
};
|
|
8113
|
+
|
|
8114
|
+
var setMetadata = function (it) {
|
|
8115
|
+
defineProperty(it, METADATA, { value: {
|
|
8116
|
+
objectID: 'O' + id++, // object ID
|
|
8117
|
+
weakData: {} // weak collections IDs
|
|
8118
|
+
} });
|
|
8119
|
+
};
|
|
8120
|
+
|
|
8121
|
+
var fastKey = function (it, create) {
|
|
8122
|
+
// return a primitive with prefix
|
|
8123
|
+
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
8124
|
+
if (!hasOwn(it, METADATA)) {
|
|
8125
|
+
// can't set metadata to uncaught frozen object
|
|
8126
|
+
if (!isExtensible(it)) return 'F';
|
|
8127
|
+
// not necessary to add metadata
|
|
8128
|
+
if (!create) return 'E';
|
|
8129
|
+
// add missing metadata
|
|
8130
|
+
setMetadata(it);
|
|
8131
|
+
// return object ID
|
|
8132
|
+
} return it[METADATA].objectID;
|
|
8133
|
+
};
|
|
8134
|
+
|
|
8135
|
+
var getWeakData = function (it, create) {
|
|
8136
|
+
if (!hasOwn(it, METADATA)) {
|
|
8137
|
+
// can't set metadata to uncaught frozen object
|
|
8138
|
+
if (!isExtensible(it)) return true;
|
|
8139
|
+
// not necessary to add metadata
|
|
8140
|
+
if (!create) return false;
|
|
8141
|
+
// add missing metadata
|
|
8142
|
+
setMetadata(it);
|
|
8143
|
+
// return the store of weak collections IDs
|
|
8144
|
+
} return it[METADATA].weakData;
|
|
8145
|
+
};
|
|
8146
|
+
|
|
8147
|
+
// add metadata on freeze-family methods calling
|
|
8148
|
+
var onFreeze = function (it) {
|
|
8149
|
+
if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);
|
|
8150
|
+
return it;
|
|
8151
|
+
};
|
|
8152
|
+
|
|
8153
|
+
var enable = function () {
|
|
8154
|
+
meta.enable = function () { /* empty */ };
|
|
8155
|
+
REQUIRED = true;
|
|
8156
|
+
var getOwnPropertyNames = getOwnPropertyNamesModule.f;
|
|
8157
|
+
var splice = [].splice;
|
|
8158
|
+
var test = {};
|
|
8159
|
+
test[METADATA] = 1;
|
|
8160
|
+
|
|
8161
|
+
// prevent exposing of metadata key
|
|
8162
|
+
if (getOwnPropertyNames(test).length) {
|
|
8163
|
+
getOwnPropertyNamesModule.f = function (it) {
|
|
8164
|
+
var result = getOwnPropertyNames(it);
|
|
8165
|
+
for (var i = 0, length = result.length; i < length; i++) {
|
|
8166
|
+
if (result[i] === METADATA) {
|
|
8167
|
+
splice.call(result, i, 1);
|
|
8168
|
+
break;
|
|
8169
|
+
}
|
|
8170
|
+
} return result;
|
|
8171
|
+
};
|
|
8172
|
+
|
|
8173
|
+
$({ target: 'Object', stat: true, forced: true }, {
|
|
8174
|
+
getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
|
|
8175
|
+
});
|
|
8176
|
+
}
|
|
8177
|
+
};
|
|
8178
|
+
|
|
8179
|
+
var meta = module.exports = {
|
|
8180
|
+
enable: enable,
|
|
8181
|
+
fastKey: fastKey,
|
|
8182
|
+
getWeakData: getWeakData,
|
|
8183
|
+
onFreeze: onFreeze
|
|
8184
|
+
};
|
|
8185
|
+
|
|
8186
|
+
hiddenKeys[METADATA] = true;
|
|
8187
|
+
|
|
8188
|
+
|
|
7738
8189
|
/***/ }),
|
|
7739
8190
|
|
|
7740
8191
|
/***/ "f5df":
|
|
@@ -7969,6 +8420,7 @@ var GlobalConfig = {
|
|
|
7969
8420
|
showHeader: true,
|
|
7970
8421
|
animat: true,
|
|
7971
8422
|
delayHover: 250,
|
|
8423
|
+
autoResize: true,
|
|
7972
8424
|
// keepSource: false,
|
|
7973
8425
|
// showOverflow: null,
|
|
7974
8426
|
// showHeaderOverflow: null,
|
|
@@ -7976,7 +8428,6 @@ var GlobalConfig = {
|
|
|
7976
8428
|
// resizeInterval: 500,
|
|
7977
8429
|
// size: null,
|
|
7978
8430
|
// zIndex: null,
|
|
7979
|
-
// autoResize: false,
|
|
7980
8431
|
// stripe: false,
|
|
7981
8432
|
// border: false,
|
|
7982
8433
|
// round: false,
|
|
@@ -8476,9 +8927,6 @@ var es_regexp_exec = __webpack_require__("ac1f");
|
|
|
8476
8927
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
8477
8928
|
var es_string_replace = __webpack_require__("5319");
|
|
8478
8929
|
|
|
8479
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
8480
|
-
var es_object_assign = __webpack_require__("cca6");
|
|
8481
|
-
|
|
8482
8930
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
8483
8931
|
var es_array_concat = __webpack_require__("99af");
|
|
8484
8932
|
|
|
@@ -8503,9 +8951,6 @@ var es_array_slice = __webpack_require__("fb6a");
|
|
|
8503
8951
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
8504
8952
|
var es_object_to_string = __webpack_require__("d3b7");
|
|
8505
8953
|
|
|
8506
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
8507
|
-
var es_promise = __webpack_require__("e6cf");
|
|
8508
|
-
|
|
8509
8954
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
|
|
8510
8955
|
var es_string_fixed = __webpack_require__("c7cd");
|
|
8511
8956
|
|
|
@@ -8520,7 +8965,6 @@ var es_string_fixed = __webpack_require__("c7cd");
|
|
|
8520
8965
|
|
|
8521
8966
|
|
|
8522
8967
|
|
|
8523
|
-
|
|
8524
8968
|
var columnInfo_ColumnInfo = /*#__PURE__*/function () {
|
|
8525
8969
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
8526
8970
|
function ColumnInfo($xetable, _vm) {
|
|
@@ -8897,7 +9341,6 @@ function dom_triggerEvent(targetElem, type) {
|
|
|
8897
9341
|
|
|
8898
9342
|
|
|
8899
9343
|
|
|
8900
|
-
|
|
8901
9344
|
function restoreScrollLocation($xetable, scrollLeft, scrollTop) {
|
|
8902
9345
|
var internalData = $xetable.internalData;
|
|
8903
9346
|
return $xetable.clearScroll().then(function () {
|
|
@@ -9279,7 +9722,6 @@ function getOnName(type) {
|
|
|
9279
9722
|
|
|
9280
9723
|
|
|
9281
9724
|
|
|
9282
|
-
|
|
9283
9725
|
var componentDefaultModelProp = 'modelValue';
|
|
9284
9726
|
var defaultCompProps = {
|
|
9285
9727
|
transfer: true
|
|
@@ -10069,7 +10511,6 @@ var renderer = {
|
|
|
10069
10511
|
|
|
10070
10512
|
|
|
10071
10513
|
|
|
10072
|
-
|
|
10073
10514
|
/**
|
|
10074
10515
|
* 创建数据仓库
|
|
10075
10516
|
*/
|
|
@@ -10127,7 +10568,6 @@ var store_Store = /*#__PURE__*/function () {
|
|
|
10127
10568
|
/* harmony default export */ var store = (store_Store);
|
|
10128
10569
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/commands.ts
|
|
10129
10570
|
|
|
10130
|
-
|
|
10131
10571
|
var commands = new store();
|
|
10132
10572
|
|
|
10133
10573
|
if (true) {
|
|
@@ -10137,7 +10577,6 @@ if (true) {
|
|
|
10137
10577
|
}
|
|
10138
10578
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.ts
|
|
10139
10579
|
|
|
10140
|
-
|
|
10141
10580
|
var menus = new store();
|
|
10142
10581
|
|
|
10143
10582
|
if (true) {
|
|
@@ -10147,7 +10586,6 @@ if (true) {
|
|
|
10147
10586
|
}
|
|
10148
10587
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.ts
|
|
10149
10588
|
|
|
10150
|
-
|
|
10151
10589
|
var formats = new store();
|
|
10152
10590
|
|
|
10153
10591
|
if (true) {
|
|
@@ -10297,7 +10735,6 @@ var Icon = {
|
|
|
10297
10735
|
|
|
10298
10736
|
|
|
10299
10737
|
|
|
10300
|
-
|
|
10301
10738
|
/* harmony default export */ var panel = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
10302
10739
|
name: 'VxeTableFilter',
|
|
10303
10740
|
props: {
|
|
@@ -10520,7 +10957,6 @@ var Icon = {
|
|
|
10520
10957
|
|
|
10521
10958
|
|
|
10522
10959
|
|
|
10523
|
-
|
|
10524
10960
|
var tableFilterMethodKeys = ['setFilter', 'clearFilter', 'getCheckedFilters'];
|
|
10525
10961
|
var tableFilterHook = {
|
|
10526
10962
|
setupTable: function setupTable($xetable) {
|
|
@@ -11105,7 +11541,6 @@ if (browse.isDoc) {
|
|
|
11105
11541
|
|
|
11106
11542
|
|
|
11107
11543
|
|
|
11108
|
-
|
|
11109
11544
|
var tableMenuMethodKeys = ['closeMenu'];
|
|
11110
11545
|
var tableMenuHook = {
|
|
11111
11546
|
setupTable: function setupTable($xetable) {
|
|
@@ -11530,9 +11965,6 @@ var es_symbol_description = __webpack_require__("e01a");
|
|
|
11530
11965
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
|
|
11531
11966
|
var es_symbol_iterator = __webpack_require__("d28b");
|
|
11532
11967
|
|
|
11533
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
11534
|
-
var es_array_iterator = __webpack_require__("e260");
|
|
11535
|
-
|
|
11536
11968
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
|
11537
11969
|
var es_string_iterator = __webpack_require__("3ca3");
|
|
11538
11970
|
|
|
@@ -11550,7 +11982,6 @@ var es_array_from = __webpack_require__("a630");
|
|
|
11550
11982
|
|
|
11551
11983
|
|
|
11552
11984
|
|
|
11553
|
-
|
|
11554
11985
|
function _iterableToArray(iter) {
|
|
11555
11986
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
11556
11987
|
}
|
|
@@ -11598,7 +12029,6 @@ function _toConsumableArray(arr) {
|
|
|
11598
12029
|
|
|
11599
12030
|
|
|
11600
12031
|
|
|
11601
|
-
|
|
11602
12032
|
var tableEditMethodKeys = ['insert', 'insertAt', 'remove', 'removeCheckboxRow', 'removeRadioRow', 'removeCurrentRow', 'getRecordset', 'getInsertRecords', 'getRemoveRecords', 'getUpdateRecords', 'getActiveRecord', 'getSelectedCell', 'clearActived', 'clearSelected', 'isActiveByRow', 'setActiveRow', 'setActiveCell', 'setSelectCell'];
|
|
11603
12033
|
var editHook = {
|
|
11604
12034
|
setupTable: function setupTable($xetable) {
|
|
@@ -11671,6 +12101,69 @@ var editHook = {
|
|
|
11671
12101
|
}
|
|
11672
12102
|
}
|
|
11673
12103
|
|
|
12104
|
+
function insertTreeRow(newRecords, isAppend) {
|
|
12105
|
+
var treeFullData = internalData.treeFullData,
|
|
12106
|
+
afterFullData = internalData.afterFullData,
|
|
12107
|
+
fullDataRowIdData = internalData.fullDataRowIdData,
|
|
12108
|
+
fullAllDataRowIdData = internalData.fullAllDataRowIdData;
|
|
12109
|
+
var treeOpts = computeTreeOpts.value;
|
|
12110
|
+
var funcName = isAppend ? 'push' : 'unshift';
|
|
12111
|
+
newRecords.forEach(function (item) {
|
|
12112
|
+
var parentRowId = item[treeOpts.parentField];
|
|
12113
|
+
var rowid = util_getRowid($xetable, item);
|
|
12114
|
+
var matchObj = parentRowId ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
|
|
12115
|
+
return parentRowId === item[treeOpts.rowField];
|
|
12116
|
+
}, treeOpts) : null;
|
|
12117
|
+
|
|
12118
|
+
if (matchObj) {
|
|
12119
|
+
var parentRow = matchObj.item;
|
|
12120
|
+
var parentRest = fullAllDataRowIdData[util_getRowid($xetable, parentRow)];
|
|
12121
|
+
var parentLevel = parentRest ? parentRest.level : 0;
|
|
12122
|
+
var parentChilds = parentRow[treeOpts.children];
|
|
12123
|
+
|
|
12124
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(parentChilds)) {
|
|
12125
|
+
parentChilds = parentRow[treeOpts.children] = [];
|
|
12126
|
+
}
|
|
12127
|
+
|
|
12128
|
+
parentChilds[funcName](item);
|
|
12129
|
+
var rest = {
|
|
12130
|
+
row: item,
|
|
12131
|
+
rowid: rowid,
|
|
12132
|
+
index: -1,
|
|
12133
|
+
_index: -1,
|
|
12134
|
+
$index: -1,
|
|
12135
|
+
items: parentChilds,
|
|
12136
|
+
parent: parent,
|
|
12137
|
+
level: parentLevel + 1
|
|
12138
|
+
};
|
|
12139
|
+
fullDataRowIdData[rowid] = rest;
|
|
12140
|
+
fullAllDataRowIdData[rowid] = rest;
|
|
12141
|
+
} else {
|
|
12142
|
+
if (true) {
|
|
12143
|
+
if (parentRowId) {
|
|
12144
|
+
warnLog('vxe.error.unableInsert');
|
|
12145
|
+
}
|
|
12146
|
+
}
|
|
12147
|
+
|
|
12148
|
+
afterFullData[funcName](item);
|
|
12149
|
+
treeFullData[funcName](item);
|
|
12150
|
+
var _rest = {
|
|
12151
|
+
row: item,
|
|
12152
|
+
rowid: rowid,
|
|
12153
|
+
index: -1,
|
|
12154
|
+
_index: -1,
|
|
12155
|
+
$index: -1,
|
|
12156
|
+
items: treeFullData,
|
|
12157
|
+
parent: null,
|
|
12158
|
+
level: 0
|
|
12159
|
+
};
|
|
12160
|
+
fullDataRowIdData[rowid] = _rest;
|
|
12161
|
+
fullAllDataRowIdData[rowid] = _rest;
|
|
12162
|
+
}
|
|
12163
|
+
});
|
|
12164
|
+
$xetable.updateVirtualTreeData();
|
|
12165
|
+
}
|
|
12166
|
+
|
|
11674
12167
|
editMethods = {
|
|
11675
12168
|
/**
|
|
11676
12169
|
* 往表格中插入临时数据
|
|
@@ -11683,9 +12176,9 @@ var editHook = {
|
|
|
11683
12176
|
|
|
11684
12177
|
/**
|
|
11685
12178
|
* 往表格指定行中插入临时数据
|
|
11686
|
-
* 如果 row
|
|
11687
|
-
* 如果 row 为 -1
|
|
11688
|
-
* 如果 row
|
|
12179
|
+
* 如果 row 为空则从插入到顶部,如果为树结构,则插入到目标节点顶部
|
|
12180
|
+
* 如果 row 为 -1 则从插入到底部,如果为树结构,则插入到目标节点底部
|
|
12181
|
+
* 如果 row 为有效行则插入到该行的位置,如果为树结构,则有插入到效的目标节点该行的位置
|
|
11689
12182
|
* @param {Object/Array} records 新的数据
|
|
11690
12183
|
* @param {Row} row 指定行
|
|
11691
12184
|
*/
|
|
@@ -11696,9 +12189,14 @@ var editHook = {
|
|
|
11696
12189
|
var mergeList = reactData.mergeList,
|
|
11697
12190
|
editStore = reactData.editStore,
|
|
11698
12191
|
scrollYLoad = reactData.scrollYLoad;
|
|
11699
|
-
var
|
|
11700
|
-
|
|
12192
|
+
var treeFullData = internalData.treeFullData,
|
|
12193
|
+
afterFullData = internalData.afterFullData,
|
|
12194
|
+
tableFullData = internalData.tableFullData,
|
|
12195
|
+
fullDataRowIdData = internalData.fullDataRowIdData,
|
|
12196
|
+
fullAllDataRowIdData = internalData.fullAllDataRowIdData;
|
|
11701
12197
|
var sYOpts = computeSYOpts.value;
|
|
12198
|
+
var treeOpts = computeTreeOpts.value;
|
|
12199
|
+
var transform = treeOpts.transform;
|
|
11702
12200
|
|
|
11703
12201
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(records)) {
|
|
11704
12202
|
records = [records];
|
|
@@ -11709,53 +12207,113 @@ var editHook = {
|
|
|
11709
12207
|
});
|
|
11710
12208
|
|
|
11711
12209
|
if (!row) {
|
|
11712
|
-
|
|
11713
|
-
|
|
12210
|
+
// 如果为虚拟树
|
|
12211
|
+
if (treeConfig && transform) {
|
|
12212
|
+
insertTreeRow(newRecords, false);
|
|
12213
|
+
} else {
|
|
12214
|
+
afterFullData.unshift.apply(afterFullData, _toConsumableArray(newRecords));
|
|
12215
|
+
tableFullData.unshift.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
|
|
11714
12216
|
|
|
11715
|
-
|
|
11716
|
-
|
|
12217
|
+
mergeList.forEach(function (mergeItem) {
|
|
12218
|
+
var mergeRowIndex = mergeItem.row;
|
|
11717
12219
|
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
12220
|
+
if (mergeRowIndex > 0) {
|
|
12221
|
+
mergeItem.row = mergeRowIndex + newRecords.length;
|
|
12222
|
+
}
|
|
12223
|
+
});
|
|
12224
|
+
}
|
|
11722
12225
|
} else {
|
|
11723
12226
|
if (row === -1) {
|
|
11724
|
-
|
|
11725
|
-
|
|
12227
|
+
// 如果为虚拟树
|
|
12228
|
+
if (treeConfig && transform) {
|
|
12229
|
+
insertTreeRow(newRecords, true);
|
|
12230
|
+
} else {
|
|
12231
|
+
afterFullData.push.apply(afterFullData, _toConsumableArray(newRecords));
|
|
12232
|
+
tableFullData.push.apply(tableFullData, _toConsumableArray(newRecords)); // 刷新单元格合并
|
|
11726
12233
|
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
12234
|
+
mergeList.forEach(function (mergeItem) {
|
|
12235
|
+
var mergeRowIndex = mergeItem.row,
|
|
12236
|
+
mergeRowspan = mergeItem.rowspan;
|
|
11730
12237
|
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
} else {
|
|
11736
|
-
if (treeConfig) {
|
|
11737
|
-
throw new Error(getLog('vxe.error.noTree', ['insert']));
|
|
12238
|
+
if (mergeRowIndex + mergeRowspan > afterFullData.length) {
|
|
12239
|
+
mergeItem.rowspan = mergeRowspan + newRecords.length;
|
|
12240
|
+
}
|
|
12241
|
+
});
|
|
11738
12242
|
}
|
|
12243
|
+
} else {
|
|
12244
|
+
// 如果为虚拟树
|
|
12245
|
+
if (treeConfig && transform) {
|
|
12246
|
+
var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
|
|
12247
|
+
return row[treeOpts.rowField] === item[treeOpts.rowField];
|
|
12248
|
+
}, treeOpts);
|
|
11739
12249
|
|
|
11740
|
-
|
|
12250
|
+
if (matchObj) {
|
|
12251
|
+
var parentRow = matchObj.parent;
|
|
12252
|
+
var parentChilds = matchObj.items;
|
|
12253
|
+
var parentRest = fullAllDataRowIdData[util_getRowid($xetable, parentRow)];
|
|
12254
|
+
var parentLevel = parentRest ? parentRest.level : 0;
|
|
12255
|
+
newRecords.forEach(function (item, i) {
|
|
12256
|
+
var rowid = util_getRowid($xetable, item);
|
|
12257
|
+
|
|
12258
|
+
if (true) {
|
|
12259
|
+
if (item[treeOpts.parentField]) {
|
|
12260
|
+
if (parentRow && item[treeOpts.parentField] !== parentRow[treeOpts.rowField]) {
|
|
12261
|
+
errLog('vxe.error.errProp', ["".concat(treeOpts.parentField, "=").concat(item[treeOpts.parentField]), "".concat(treeOpts.parentField, "=").concat(parentRow[treeOpts.rowField])]);
|
|
12262
|
+
}
|
|
12263
|
+
}
|
|
12264
|
+
}
|
|
11741
12265
|
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
12266
|
+
if (parentRow) {
|
|
12267
|
+
item[treeOpts.parentField] = parentRow[treeOpts.rowField];
|
|
12268
|
+
}
|
|
11745
12269
|
|
|
11746
|
-
|
|
11747
|
-
|
|
12270
|
+
parentChilds.splice(matchObj.index + i, 0, item);
|
|
12271
|
+
var rest = {
|
|
12272
|
+
row: item,
|
|
12273
|
+
rowid: rowid,
|
|
12274
|
+
index: -1,
|
|
12275
|
+
_index: -1,
|
|
12276
|
+
$index: -1,
|
|
12277
|
+
items: parentChilds,
|
|
12278
|
+
parent: parentRow,
|
|
12279
|
+
level: parentLevel + 1
|
|
12280
|
+
};
|
|
12281
|
+
fullDataRowIdData[rowid] = rest;
|
|
12282
|
+
fullAllDataRowIdData[rowid] = rest;
|
|
12283
|
+
});
|
|
12284
|
+
$xetable.updateVirtualTreeData();
|
|
12285
|
+
} else {
|
|
12286
|
+
if (true) {
|
|
12287
|
+
warnLog('vxe.error.unableInsert');
|
|
12288
|
+
}
|
|
11748
12289
|
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
12290
|
+
insertTreeRow(newRecords, true);
|
|
12291
|
+
}
|
|
12292
|
+
} else {
|
|
12293
|
+
if (treeConfig) {
|
|
12294
|
+
throw new Error(getLog('vxe.error.noTree', ['insert']));
|
|
12295
|
+
}
|
|
11752
12296
|
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
12297
|
+
var afIndex = $xetable.findRowIndexOf(afterFullData, row);
|
|
12298
|
+
|
|
12299
|
+
if (afIndex === -1) {
|
|
12300
|
+
throw new Error(errLog('vxe.error.unableInsert'));
|
|
11757
12301
|
}
|
|
11758
|
-
|
|
12302
|
+
|
|
12303
|
+
afterFullData.splice.apply(afterFullData, [afIndex, 0].concat(_toConsumableArray(newRecords)));
|
|
12304
|
+
tableFullData.splice.apply(tableFullData, [$xetable.findRowIndexOf(tableFullData, row), 0].concat(_toConsumableArray(newRecords))); // 刷新单元格合并
|
|
12305
|
+
|
|
12306
|
+
mergeList.forEach(function (mergeItem) {
|
|
12307
|
+
var mergeRowIndex = mergeItem.row,
|
|
12308
|
+
mergeRowspan = mergeItem.rowspan;
|
|
12309
|
+
|
|
12310
|
+
if (mergeRowIndex > afIndex) {
|
|
12311
|
+
mergeItem.row = mergeRowIndex + newRecords.length;
|
|
12312
|
+
} else if (mergeRowIndex + mergeRowspan > afIndex) {
|
|
12313
|
+
mergeItem.rowspan = mergeRowspan + newRecords.length;
|
|
12314
|
+
}
|
|
12315
|
+
});
|
|
12316
|
+
}
|
|
11759
12317
|
}
|
|
11760
12318
|
}
|
|
11761
12319
|
|
|
@@ -11764,7 +12322,7 @@ var editHook = {
|
|
|
11764
12322
|
reactData.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
|
|
11765
12323
|
$xetable.updateFooter();
|
|
11766
12324
|
$xetable.cacheRowMap();
|
|
11767
|
-
$xetable.handleTableData();
|
|
12325
|
+
$xetable.handleTableData(transform);
|
|
11768
12326
|
$xetable.updateAfterDataIndex();
|
|
11769
12327
|
$xetable.checkSelectionStatus();
|
|
11770
12328
|
|
|
@@ -11795,10 +12353,13 @@ var editHook = {
|
|
|
11795
12353
|
editStore = reactData.editStore,
|
|
11796
12354
|
selection = reactData.selection,
|
|
11797
12355
|
scrollYLoad = reactData.scrollYLoad;
|
|
11798
|
-
var
|
|
12356
|
+
var treeFullData = internalData.treeFullData,
|
|
12357
|
+
afterFullData = internalData.afterFullData,
|
|
11799
12358
|
tableFullData = internalData.tableFullData;
|
|
11800
12359
|
var checkboxOpts = computeCheckboxOpts.value;
|
|
11801
12360
|
var sYOpts = computeSYOpts.value;
|
|
12361
|
+
var treeOpts = computeTreeOpts.value;
|
|
12362
|
+
var transform = treeOpts.transform;
|
|
11802
12363
|
var actived = editStore.actived,
|
|
11803
12364
|
removeList = editStore.removeList,
|
|
11804
12365
|
insertList = editStore.insertList;
|
|
@@ -11835,31 +12396,54 @@ var editHook = {
|
|
|
11835
12396
|
internalData.afterFullData = [];
|
|
11836
12397
|
$xetable.clearMergeCells();
|
|
11837
12398
|
} else {
|
|
11838
|
-
|
|
11839
|
-
|
|
12399
|
+
// 如果为虚拟树
|
|
12400
|
+
if (treeConfig && transform) {
|
|
12401
|
+
rows.forEach(function (row) {
|
|
12402
|
+
var rowid = util_getRowid($xetable, row);
|
|
12403
|
+
var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
|
|
12404
|
+
return rowid === util_getRowid($xetable, item);
|
|
12405
|
+
}, treeOpts);
|
|
11840
12406
|
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
12407
|
+
if (matchObj) {
|
|
12408
|
+
var rItems = matchObj.items.splice(matchObj.index, 1);
|
|
12409
|
+
rest.push(rItems[0]);
|
|
12410
|
+
}
|
|
11845
12411
|
|
|
11846
|
-
|
|
12412
|
+
var afIndex = $xetable.findRowIndexOf(afterFullData, row);
|
|
11847
12413
|
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
var mergeRowIndex = mergeItem.row,
|
|
11852
|
-
mergeRowspan = mergeItem.rowspan;
|
|
12414
|
+
if (afIndex > -1) {
|
|
12415
|
+
afterFullData.splice(afIndex, 1);
|
|
12416
|
+
}
|
|
11853
12417
|
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
12418
|
+
$xetable.updateVirtualTreeData();
|
|
12419
|
+
});
|
|
12420
|
+
} else {
|
|
12421
|
+
rows.forEach(function (row) {
|
|
12422
|
+
var tfIndex = $xetable.findRowIndexOf(tableFullData, row);
|
|
12423
|
+
|
|
12424
|
+
if (tfIndex > -1) {
|
|
12425
|
+
var rItems = tableFullData.splice(tfIndex, 1);
|
|
12426
|
+
rest.push(rItems[0]);
|
|
12427
|
+
}
|
|
12428
|
+
|
|
12429
|
+
var afIndex = $xetable.findRowIndexOf(afterFullData, row);
|
|
12430
|
+
|
|
12431
|
+
if (afIndex > -1) {
|
|
12432
|
+
// 刷新单元格合并
|
|
12433
|
+
mergeList.forEach(function (mergeItem) {
|
|
12434
|
+
var mergeRowIndex = mergeItem.row,
|
|
12435
|
+
mergeRowspan = mergeItem.rowspan;
|
|
12436
|
+
|
|
12437
|
+
if (mergeRowIndex > afIndex) {
|
|
12438
|
+
mergeItem.row = mergeRowIndex - 1;
|
|
12439
|
+
} else if (mergeRowIndex + mergeRowspan > afIndex) {
|
|
12440
|
+
mergeItem.rowspan = mergeRowspan - 1;
|
|
12441
|
+
}
|
|
12442
|
+
});
|
|
12443
|
+
afterFullData.splice(afIndex, 1);
|
|
12444
|
+
}
|
|
12445
|
+
});
|
|
12446
|
+
}
|
|
11863
12447
|
} // 如果当前行被激活编辑,则清除激活状态
|
|
11864
12448
|
|
|
11865
12449
|
|
|
@@ -11878,7 +12462,7 @@ var editHook = {
|
|
|
11878
12462
|
reactData.scrollYLoad = !treeConfig && sYOpts.gt > -1 && sYOpts.gt < tableFullData.length;
|
|
11879
12463
|
$xetable.updateFooter();
|
|
11880
12464
|
$xetable.cacheRowMap();
|
|
11881
|
-
$xetable.handleTableData();
|
|
12465
|
+
$xetable.handleTableData(transform);
|
|
11882
12466
|
$xetable.updateAfterDataIndex();
|
|
11883
12467
|
$xetable.checkSelectionStatus();
|
|
11884
12468
|
|
|
@@ -11944,17 +12528,34 @@ var editHook = {
|
|
|
11944
12528
|
* 获取新增的临时数据
|
|
11945
12529
|
*/
|
|
11946
12530
|
getInsertRecords: function getInsertRecords() {
|
|
12531
|
+
var treeConfig = props.treeConfig;
|
|
11947
12532
|
var editStore = reactData.editStore;
|
|
11948
|
-
var
|
|
12533
|
+
var treeFullData = internalData.treeFullData,
|
|
12534
|
+
tableFullData = internalData.tableFullData;
|
|
12535
|
+
var treeOpts = computeTreeOpts.value;
|
|
11949
12536
|
var insertList = editStore.insertList;
|
|
11950
12537
|
var insertRecords = [];
|
|
11951
12538
|
|
|
11952
12539
|
if (insertList.length) {
|
|
11953
|
-
|
|
11954
|
-
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
12540
|
+
// 如果为虚拟树
|
|
12541
|
+
if (treeConfig && treeOpts.transform) {
|
|
12542
|
+
insertList.forEach(function (row) {
|
|
12543
|
+
var rowid = util_getRowid($xetable, row);
|
|
12544
|
+
var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(treeFullData, function (item) {
|
|
12545
|
+
return rowid === util_getRowid($xetable, item);
|
|
12546
|
+
}, treeOpts);
|
|
12547
|
+
|
|
12548
|
+
if (matchObj) {
|
|
12549
|
+
insertRecords.push(row);
|
|
12550
|
+
}
|
|
12551
|
+
});
|
|
12552
|
+
} else {
|
|
12553
|
+
insertList.forEach(function (row) {
|
|
12554
|
+
if ($xetable.findRowIndexOf(tableFullData, row) > -1) {
|
|
12555
|
+
insertRecords.push(row);
|
|
12556
|
+
}
|
|
12557
|
+
});
|
|
12558
|
+
}
|
|
11958
12559
|
}
|
|
11959
12560
|
|
|
11960
12561
|
return insertRecords;
|
|
@@ -12374,7 +12975,6 @@ function _arrayWithHoles(arr) {
|
|
|
12374
12975
|
|
|
12375
12976
|
|
|
12376
12977
|
|
|
12377
|
-
|
|
12378
12978
|
function _iterableToArrayLimit(arr, i) {
|
|
12379
12979
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12380
12980
|
|
|
@@ -12445,7 +13045,6 @@ function useSize(props) {
|
|
|
12445
13045
|
|
|
12446
13046
|
|
|
12447
13047
|
|
|
12448
|
-
|
|
12449
13048
|
/* harmony default export */ var src_button = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
12450
13049
|
name: 'VxeButton',
|
|
12451
13050
|
props: {
|
|
@@ -12922,8 +13521,6 @@ function useSize(props) {
|
|
|
12922
13521
|
|
|
12923
13522
|
|
|
12924
13523
|
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
13524
|
|
|
12928
13525
|
var allActivedModals = [];
|
|
12929
13526
|
var msgQueue = [];
|
|
@@ -14140,7 +14737,6 @@ var es_string_pad_start = __webpack_require__("4d90");
|
|
|
14140
14737
|
|
|
14141
14738
|
|
|
14142
14739
|
|
|
14143
|
-
|
|
14144
14740
|
var yearSize = 20;
|
|
14145
14741
|
var monthSize = 20;
|
|
14146
14742
|
var quarterSize = 8;
|
|
@@ -14780,12 +15376,20 @@ function toStringTimeDate(str) {
|
|
|
14780
15376
|
return immediate || !(type === 'text' || type === 'number' || type === 'integer' || type === 'float');
|
|
14781
15377
|
});
|
|
14782
15378
|
|
|
15379
|
+
function toFloatValueFixed(inputValue, digitsValue) {
|
|
15380
|
+
if (/^-/.test('' + inputValue)) {
|
|
15381
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.ceil(inputValue, digitsValue), digitsValue);
|
|
15382
|
+
}
|
|
15383
|
+
|
|
15384
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.floor(inputValue, digitsValue), digitsValue);
|
|
15385
|
+
}
|
|
15386
|
+
|
|
14783
15387
|
function getNumberValue(val) {
|
|
14784
15388
|
var type = props.type,
|
|
14785
15389
|
exponential = props.exponential;
|
|
14786
15390
|
var inpMaxlength = computeInpMaxlength.value;
|
|
14787
15391
|
var digitsValue = computeDigitsValue.value;
|
|
14788
|
-
var restVal = type === 'float' ?
|
|
15392
|
+
var restVal = type === 'float' ? toFloatValueFixed(val, digitsValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(val);
|
|
14789
15393
|
|
|
14790
15394
|
if (exponential && (val === restVal || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(val).toLowerCase() === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(restVal).toExponential())) {
|
|
14791
15395
|
return val;
|
|
@@ -14957,7 +15561,7 @@ function toStringTimeDate(str) {
|
|
|
14957
15561
|
changeValue();
|
|
14958
15562
|
} else if (type === 'float') {
|
|
14959
15563
|
if (inputValue) {
|
|
14960
|
-
var validValue =
|
|
15564
|
+
var validValue = toFloatValueFixed(inputValue, digitsValue);
|
|
14961
15565
|
|
|
14962
15566
|
if (inputValue !== validValue) {
|
|
14963
15567
|
emitModel(validValue, {
|
|
@@ -16591,7 +17195,6 @@ var es_string_includes = __webpack_require__("2532");
|
|
|
16591
17195
|
|
|
16592
17196
|
|
|
16593
17197
|
|
|
16594
|
-
|
|
16595
17198
|
/* harmony default export */ var src_checkbox = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
16596
17199
|
name: 'VxeCheckbox',
|
|
16597
17200
|
props: {
|
|
@@ -16717,7 +17320,6 @@ var es_string_includes = __webpack_require__("2532");
|
|
|
16717
17320
|
|
|
16718
17321
|
|
|
16719
17322
|
|
|
16720
|
-
|
|
16721
17323
|
function isOptionVisible(option) {
|
|
16722
17324
|
return option.visible !== false;
|
|
16723
17325
|
}
|
|
@@ -17657,7 +18259,6 @@ function getOptUniqueId() {
|
|
|
17657
18259
|
|
|
17658
18260
|
|
|
17659
18261
|
|
|
17660
|
-
|
|
17661
18262
|
/* harmony default export */ var export_panel = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
17662
18263
|
name: 'VxeExportPanel',
|
|
17663
18264
|
props: {
|
|
@@ -18028,7 +18629,6 @@ function getOptUniqueId() {
|
|
|
18028
18629
|
|
|
18029
18630
|
|
|
18030
18631
|
|
|
18031
|
-
|
|
18032
18632
|
/* harmony default export */ var src_group = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
18033
18633
|
name: 'VxeRadioGroup',
|
|
18034
18634
|
props: {
|
|
@@ -18092,7 +18692,6 @@ function getOptUniqueId() {
|
|
|
18092
18692
|
|
|
18093
18693
|
|
|
18094
18694
|
|
|
18095
|
-
|
|
18096
18695
|
/* harmony default export */ var src_radio = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
18097
18696
|
name: 'VxeRadio',
|
|
18098
18697
|
props: {
|
|
@@ -18209,7 +18808,6 @@ function getOptUniqueId() {
|
|
|
18209
18808
|
|
|
18210
18809
|
|
|
18211
18810
|
|
|
18212
|
-
|
|
18213
18811
|
/* harmony default export */ var import_panel = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
18214
18812
|
name: 'VxeImportPanel',
|
|
18215
18813
|
props: {
|
|
@@ -18398,9 +18996,6 @@ var web_url_search_params = __webpack_require__("9861");
|
|
|
18398
18996
|
|
|
18399
18997
|
|
|
18400
18998
|
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
18999
|
// 导入
|
|
18405
19000
|
|
|
18406
19001
|
var fileForm;
|
|
@@ -18626,8 +19221,6 @@ var util_saveLocalFile = function saveLocalFile(options) {
|
|
|
18626
19221
|
|
|
18627
19222
|
|
|
18628
19223
|
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
19224
|
|
|
18632
19225
|
|
|
18633
19226
|
|
|
@@ -20346,7 +20939,6 @@ var tableExportHook = {
|
|
|
20346
20939
|
|
|
20347
20940
|
|
|
20348
20941
|
|
|
20349
|
-
|
|
20350
20942
|
var export_print = function print(options) {
|
|
20351
20943
|
var opts = Object.assign({}, options, {
|
|
20352
20944
|
type: 'html'
|
|
@@ -20385,7 +20977,6 @@ var Export = {
|
|
|
20385
20977
|
|
|
20386
20978
|
|
|
20387
20979
|
|
|
20388
|
-
|
|
20389
20980
|
function getTargetOffset(target, container) {
|
|
20390
20981
|
var offsetTop = 0;
|
|
20391
20982
|
var offsetLeft = 0;
|
|
@@ -20892,9 +21483,6 @@ var Keyboard = {
|
|
|
20892
21483
|
|
|
20893
21484
|
|
|
20894
21485
|
|
|
20895
|
-
|
|
20896
|
-
|
|
20897
|
-
|
|
20898
21486
|
/**
|
|
20899
21487
|
* 校验规则
|
|
20900
21488
|
*/
|
|
@@ -21069,7 +21657,7 @@ var validatorHook = {
|
|
|
21069
21657
|
var ruleProps = Object.keys(validRest);
|
|
21070
21658
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])().then(function () {
|
|
21071
21659
|
if (ruleProps.length) {
|
|
21072
|
-
return
|
|
21660
|
+
return validRest[ruleProps[0]][0];
|
|
21073
21661
|
}
|
|
21074
21662
|
|
|
21075
21663
|
if (cb) {
|
|
@@ -21077,14 +21665,14 @@ var validatorHook = {
|
|
|
21077
21665
|
}
|
|
21078
21666
|
});
|
|
21079
21667
|
}).catch(function (firstErrParams) {
|
|
21080
|
-
return new Promise(function (resolve
|
|
21668
|
+
return new Promise(function (resolve) {
|
|
21081
21669
|
var finish = function finish() {
|
|
21082
21670
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
21083
21671
|
if (cb) {
|
|
21084
21672
|
cb(validRest);
|
|
21085
21673
|
resolve();
|
|
21086
21674
|
} else {
|
|
21087
|
-
|
|
21675
|
+
resolve(validRest);
|
|
21088
21676
|
}
|
|
21089
21677
|
});
|
|
21090
21678
|
};
|
|
@@ -21810,7 +22398,6 @@ var renderType = 'header';
|
|
|
21810
22398
|
|
|
21811
22399
|
|
|
21812
22400
|
|
|
21813
|
-
|
|
21814
22401
|
var Header = Object.assign(header, {
|
|
21815
22402
|
install: function install(app) {
|
|
21816
22403
|
dynamicApp.component(header.name, header);
|
|
@@ -21828,7 +22415,6 @@ var Header = Object.assign(header, {
|
|
|
21828
22415
|
|
|
21829
22416
|
|
|
21830
22417
|
|
|
21831
|
-
|
|
21832
22418
|
var footer_renderType = 'footer';
|
|
21833
22419
|
|
|
21834
22420
|
function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
@@ -22188,7 +22774,6 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
22188
22774
|
|
|
22189
22775
|
|
|
22190
22776
|
|
|
22191
|
-
|
|
22192
22777
|
var Footer = Object.assign(footer, {
|
|
22193
22778
|
install: function install(app) {
|
|
22194
22779
|
dynamicApp.component(footer.name, footer);
|
|
@@ -22208,7 +22793,6 @@ var Footer = Object.assign(footer, {
|
|
|
22208
22793
|
|
|
22209
22794
|
|
|
22210
22795
|
|
|
22211
|
-
|
|
22212
22796
|
function renderHelpIcon(params) {
|
|
22213
22797
|
var $table = params.$table,
|
|
22214
22798
|
column = params.column;
|
|
@@ -23307,7 +23891,6 @@ var columnProps = {
|
|
|
23307
23891
|
|
|
23308
23892
|
|
|
23309
23893
|
|
|
23310
|
-
|
|
23311
23894
|
var Column = Object.assign(src_column, {
|
|
23312
23895
|
install: function install(app) {
|
|
23313
23896
|
dynamicApp.component(src_column.name, src_column);
|
|
@@ -23366,7 +23949,6 @@ var Column = Object.assign(src_column, {
|
|
|
23366
23949
|
|
|
23367
23950
|
|
|
23368
23951
|
|
|
23369
|
-
|
|
23370
23952
|
var Colgroup = Object.assign(table_src_group, {
|
|
23371
23953
|
install: function install(app) {
|
|
23372
23954
|
dynamicApp.component(table_src_group.name, table_src_group);
|
|
@@ -23675,8 +24257,6 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
23675
24257
|
|
|
23676
24258
|
|
|
23677
24259
|
|
|
23678
|
-
|
|
23679
|
-
|
|
23680
24260
|
|
|
23681
24261
|
|
|
23682
24262
|
var tableComponentPropKeys = Object.keys(src_props);
|
|
@@ -25070,7 +25650,6 @@ var gridComponentEmits = [].concat(_toConsumableArray(emits), ['page-change', 'f
|
|
|
25070
25650
|
|
|
25071
25651
|
|
|
25072
25652
|
|
|
25073
|
-
|
|
25074
25653
|
var Grid = Object.assign(grid, {
|
|
25075
25654
|
install: function install(app) {
|
|
25076
25655
|
dynamicApp.component(grid.name, grid);
|
|
@@ -25093,8 +25672,6 @@ var Grid = Object.assign(grid, {
|
|
|
25093
25672
|
|
|
25094
25673
|
|
|
25095
25674
|
|
|
25096
|
-
|
|
25097
|
-
|
|
25098
25675
|
/* harmony default export */ var toolbar = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
25099
25676
|
name: 'VxeToolbar',
|
|
25100
25677
|
props: {
|
|
@@ -25845,7 +26422,6 @@ var Grid = Object.assign(grid, {
|
|
|
25845
26422
|
|
|
25846
26423
|
|
|
25847
26424
|
|
|
25848
|
-
|
|
25849
26425
|
var Toolbar = Object.assign(toolbar, {
|
|
25850
26426
|
install: function install(app) {
|
|
25851
26427
|
dynamicApp.component(toolbar.name, toolbar);
|
|
@@ -25864,7 +26440,6 @@ var Toolbar = Object.assign(toolbar, {
|
|
|
25864
26440
|
|
|
25865
26441
|
|
|
25866
26442
|
|
|
25867
|
-
|
|
25868
26443
|
/* harmony default export */ var pager = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
25869
26444
|
name: 'VxePager',
|
|
25870
26445
|
props: {
|
|
@@ -26427,7 +27002,6 @@ var Toolbar = Object.assign(toolbar, {
|
|
|
26427
27002
|
|
|
26428
27003
|
|
|
26429
27004
|
|
|
26430
|
-
|
|
26431
27005
|
var Pager = Object.assign(pager, {
|
|
26432
27006
|
install: function install(app) {
|
|
26433
27007
|
dynamicApp.component(pager.name, pager);
|
|
@@ -26439,7 +27013,6 @@ var Pager = Object.assign(pager, {
|
|
|
26439
27013
|
|
|
26440
27014
|
|
|
26441
27015
|
|
|
26442
|
-
|
|
26443
27016
|
var Checkbox = Object.assign(src_checkbox, {
|
|
26444
27017
|
install: function install(app) {
|
|
26445
27018
|
dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
@@ -26453,7 +27026,6 @@ var Checkbox = Object.assign(src_checkbox, {
|
|
|
26453
27026
|
|
|
26454
27027
|
|
|
26455
27028
|
|
|
26456
|
-
|
|
26457
27029
|
/* harmony default export */ var checkbox_src_group = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
26458
27030
|
name: 'VxeCheckboxGroup',
|
|
26459
27031
|
props: {
|
|
@@ -26523,7 +27095,6 @@ var Checkbox = Object.assign(src_checkbox, {
|
|
|
26523
27095
|
|
|
26524
27096
|
|
|
26525
27097
|
|
|
26526
|
-
|
|
26527
27098
|
var CheckboxGroup = Object.assign(checkbox_src_group, {
|
|
26528
27099
|
install: function install(app) {
|
|
26529
27100
|
dynamicApp.component(checkbox_src_group.name, checkbox_src_group);
|
|
@@ -26535,7 +27106,6 @@ var CheckboxGroup = Object.assign(checkbox_src_group, {
|
|
|
26535
27106
|
|
|
26536
27107
|
|
|
26537
27108
|
|
|
26538
|
-
|
|
26539
27109
|
var Radio = Object.assign(src_radio, {
|
|
26540
27110
|
install: function install(app) {
|
|
26541
27111
|
dynamicApp.component(src_radio.name, src_radio);
|
|
@@ -26547,7 +27117,6 @@ var Radio = Object.assign(src_radio, {
|
|
|
26547
27117
|
|
|
26548
27118
|
|
|
26549
27119
|
|
|
26550
|
-
|
|
26551
27120
|
var RadioGroup = Object.assign(src_group, {
|
|
26552
27121
|
install: function install(app) {
|
|
26553
27122
|
dynamicApp.component(src_group.name, src_group);
|
|
@@ -26564,7 +27133,6 @@ var RadioGroup = Object.assign(src_group, {
|
|
|
26564
27133
|
|
|
26565
27134
|
|
|
26566
27135
|
|
|
26567
|
-
|
|
26568
27136
|
/* harmony default export */ var radio_src_button = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
26569
27137
|
name: 'VxeRadioButton',
|
|
26570
27138
|
props: {
|
|
@@ -26668,7 +27236,6 @@ var RadioGroup = Object.assign(src_group, {
|
|
|
26668
27236
|
|
|
26669
27237
|
|
|
26670
27238
|
|
|
26671
|
-
|
|
26672
27239
|
var RadioButton = Object.assign(radio_src_button, {
|
|
26673
27240
|
install: function install(app) {
|
|
26674
27241
|
dynamicApp.component(radio_src_button.name, radio_src_button);
|
|
@@ -26680,7 +27247,6 @@ var RadioButton = Object.assign(radio_src_button, {
|
|
|
26680
27247
|
|
|
26681
27248
|
|
|
26682
27249
|
|
|
26683
|
-
|
|
26684
27250
|
var Input = Object.assign(input, {
|
|
26685
27251
|
install: function install(app) {
|
|
26686
27252
|
dynamicApp.component(input.name, input);
|
|
@@ -26701,7 +27267,6 @@ var Input = Object.assign(input, {
|
|
|
26701
27267
|
|
|
26702
27268
|
|
|
26703
27269
|
|
|
26704
|
-
|
|
26705
27270
|
var autoTxtElem;
|
|
26706
27271
|
/* harmony default export */ var src_textarea = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
26707
27272
|
name: 'VxeTextarea',
|
|
@@ -26985,7 +27550,6 @@ var autoTxtElem;
|
|
|
26985
27550
|
|
|
26986
27551
|
|
|
26987
27552
|
|
|
26988
|
-
|
|
26989
27553
|
var Textarea = Object.assign(src_textarea, {
|
|
26990
27554
|
install: function install(app) {
|
|
26991
27555
|
dynamicApp.component(src_textarea.name, src_textarea);
|
|
@@ -26997,7 +27561,6 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
26997
27561
|
|
|
26998
27562
|
|
|
26999
27563
|
|
|
27000
|
-
|
|
27001
27564
|
var Button = Object.assign(src_button, {
|
|
27002
27565
|
install: function install(app) {
|
|
27003
27566
|
dynamicApp.component(src_button.name, src_button);
|
|
@@ -27019,9 +27582,6 @@ var Button = Object.assign(src_button, {
|
|
|
27019
27582
|
|
|
27020
27583
|
|
|
27021
27584
|
|
|
27022
|
-
|
|
27023
|
-
|
|
27024
|
-
|
|
27025
27585
|
function modal_openModal(options) {
|
|
27026
27586
|
// 使用动态组件渲染动态弹框
|
|
27027
27587
|
checkDynamic();
|
|
@@ -27143,7 +27703,6 @@ var Modal = Object.assign(modal, {
|
|
|
27143
27703
|
|
|
27144
27704
|
|
|
27145
27705
|
|
|
27146
|
-
|
|
27147
27706
|
/* harmony default export */ var tooltip = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
27148
27707
|
name: 'VxeTooltip',
|
|
27149
27708
|
props: {
|
|
@@ -27511,7 +28070,6 @@ var Modal = Object.assign(modal, {
|
|
|
27511
28070
|
|
|
27512
28071
|
|
|
27513
28072
|
|
|
27514
|
-
|
|
27515
28073
|
var Tooltip = Object.assign(tooltip, {
|
|
27516
28074
|
install: function install(app) {
|
|
27517
28075
|
VXETable.tooltip = true;
|
|
@@ -27524,7 +28082,6 @@ var Tooltip = Object.assign(tooltip, {
|
|
|
27524
28082
|
|
|
27525
28083
|
|
|
27526
28084
|
|
|
27527
|
-
|
|
27528
28085
|
var itemInfo_ItemInfo = /*#__PURE__*/function () {
|
|
27529
28086
|
function ItemInfo($xeform, item) {
|
|
27530
28087
|
_classCallCheck(this, ItemInfo);
|
|
@@ -27715,9 +28272,6 @@ function renderTitle($xeform, item) {
|
|
|
27715
28272
|
|
|
27716
28273
|
|
|
27717
28274
|
|
|
27718
|
-
|
|
27719
|
-
|
|
27720
|
-
|
|
27721
28275
|
|
|
27722
28276
|
|
|
27723
28277
|
|
|
@@ -28236,7 +28790,7 @@ function getResetValue(value, resetValue) {
|
|
|
28236
28790
|
callback();
|
|
28237
28791
|
}
|
|
28238
28792
|
}).catch(function () {
|
|
28239
|
-
return new Promise(function (resolve
|
|
28793
|
+
return new Promise(function (resolve) {
|
|
28240
28794
|
showErrTime = window.setTimeout(function () {
|
|
28241
28795
|
itemList.forEach(function (item) {
|
|
28242
28796
|
if (item.errRule) {
|
|
@@ -28255,7 +28809,7 @@ function getResetValue(value, resetValue) {
|
|
|
28255
28809
|
callback(validRest);
|
|
28256
28810
|
resolve();
|
|
28257
28811
|
} else {
|
|
28258
|
-
|
|
28812
|
+
resolve(validRest);
|
|
28259
28813
|
}
|
|
28260
28814
|
});
|
|
28261
28815
|
});
|
|
@@ -28615,7 +29169,6 @@ function getResetValue(value, resetValue) {
|
|
|
28615
29169
|
|
|
28616
29170
|
|
|
28617
29171
|
|
|
28618
|
-
|
|
28619
29172
|
var Form = Object.assign(src_form, {
|
|
28620
29173
|
install: function install(app) {
|
|
28621
29174
|
dynamicApp.component(src_form.name, src_form);
|
|
@@ -28811,7 +29364,6 @@ var formItemProps = {
|
|
|
28811
29364
|
|
|
28812
29365
|
|
|
28813
29366
|
|
|
28814
|
-
|
|
28815
29367
|
var FormItem = Object.assign(form_item, {
|
|
28816
29368
|
install: function install(app) {
|
|
28817
29369
|
dynamicApp.component(form_item.name, form_item);
|
|
@@ -28868,7 +29420,6 @@ var FormItem = Object.assign(form_item, {
|
|
|
28868
29420
|
|
|
28869
29421
|
|
|
28870
29422
|
|
|
28871
|
-
|
|
28872
29423
|
var FormGather = Object.assign(form_gather, {
|
|
28873
29424
|
install: function install(app) {
|
|
28874
29425
|
dynamicApp.component(form_gather.name, form_gather);
|
|
@@ -28880,7 +29431,6 @@ var FormGather = Object.assign(form_gather, {
|
|
|
28880
29431
|
|
|
28881
29432
|
|
|
28882
29433
|
|
|
28883
|
-
|
|
28884
29434
|
var Select = Object.assign(src_select, {
|
|
28885
29435
|
install: function install(app) {
|
|
28886
29436
|
dynamicApp.component(src_select.name, src_select);
|
|
@@ -28892,7 +29442,6 @@ var Select = Object.assign(src_select, {
|
|
|
28892
29442
|
|
|
28893
29443
|
|
|
28894
29444
|
|
|
28895
|
-
|
|
28896
29445
|
var optionInfo_OptionInfo = /*#__PURE__*/function () {
|
|
28897
29446
|
function OptionInfo($xeselect, _vm) {
|
|
28898
29447
|
_classCallCheck(this, OptionInfo);
|
|
@@ -29012,7 +29561,6 @@ function destroyOption($xeselect, option) {
|
|
|
29012
29561
|
|
|
29013
29562
|
|
|
29014
29563
|
|
|
29015
|
-
|
|
29016
29564
|
var Optgroup = Object.assign(src_optgroup, {
|
|
29017
29565
|
install: function install(app) {
|
|
29018
29566
|
dynamicApp.component(src_optgroup.name, src_optgroup);
|
|
@@ -29064,7 +29612,6 @@ var Optgroup = Object.assign(src_optgroup, {
|
|
|
29064
29612
|
|
|
29065
29613
|
|
|
29066
29614
|
|
|
29067
|
-
|
|
29068
29615
|
var Option = Object.assign(src_option, {
|
|
29069
29616
|
install: function install(app) {
|
|
29070
29617
|
dynamicApp.component(src_option.name, src_option);
|
|
@@ -29080,7 +29627,6 @@ var Option = Object.assign(src_option, {
|
|
|
29080
29627
|
|
|
29081
29628
|
|
|
29082
29629
|
|
|
29083
|
-
|
|
29084
29630
|
/* harmony default export */ var src_switch = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
29085
29631
|
name: 'VxeSwitch',
|
|
29086
29632
|
props: {
|
|
@@ -29231,7 +29777,6 @@ var Option = Object.assign(src_option, {
|
|
|
29231
29777
|
|
|
29232
29778
|
|
|
29233
29779
|
|
|
29234
|
-
|
|
29235
29780
|
var Switch = Object.assign(src_switch, {
|
|
29236
29781
|
install: function install(app) {
|
|
29237
29782
|
dynamicApp.component(src_switch.name, src_switch);
|
|
@@ -29368,8 +29913,6 @@ function createResizeEvent(callback) {
|
|
|
29368
29913
|
|
|
29369
29914
|
|
|
29370
29915
|
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
29916
|
/* harmony default export */ var src_list = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
29374
29917
|
name: 'VxeList',
|
|
29375
29918
|
props: {
|
|
@@ -29769,7 +30312,6 @@ function createResizeEvent(callback) {
|
|
|
29769
30312
|
|
|
29770
30313
|
|
|
29771
30314
|
|
|
29772
|
-
|
|
29773
30315
|
var List = Object.assign(src_list, {
|
|
29774
30316
|
install: function install(app) {
|
|
29775
30317
|
dynamicApp.component(src_list.name, src_list);
|
|
@@ -29787,8 +30329,6 @@ var List = Object.assign(src_list, {
|
|
|
29787
30329
|
|
|
29788
30330
|
|
|
29789
30331
|
|
|
29790
|
-
|
|
29791
|
-
|
|
29792
30332
|
/* harmony default export */ var pulldown = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
29793
30333
|
name: 'VxePulldown',
|
|
29794
30334
|
props: {
|
|
@@ -30110,7 +30650,6 @@ var List = Object.assign(src_list, {
|
|
|
30110
30650
|
|
|
30111
30651
|
|
|
30112
30652
|
|
|
30113
|
-
|
|
30114
30653
|
var Pulldown = Object.assign(pulldown, {
|
|
30115
30654
|
install: function install(app) {
|
|
30116
30655
|
dynamicApp.component(pulldown.name, pulldown);
|
|
@@ -30118,8 +30657,19 @@ var Pulldown = Object.assign(pulldown, {
|
|
|
30118
30657
|
}
|
|
30119
30658
|
});
|
|
30120
30659
|
/* harmony default export */ var packages_pulldown = (Pulldown);
|
|
30121
|
-
//
|
|
30660
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
30661
|
+
var es_object_assign = __webpack_require__("cca6");
|
|
30662
|
+
|
|
30663
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
30664
|
+
var es_promise = __webpack_require__("e6cf");
|
|
30122
30665
|
|
|
30666
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
30667
|
+
var es_array_iterator = __webpack_require__("e260");
|
|
30668
|
+
|
|
30669
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
|
|
30670
|
+
var es_map = __webpack_require__("4ec9");
|
|
30671
|
+
|
|
30672
|
+
// CONCATENATED MODULE: ./packages/table/src/body.ts
|
|
30123
30673
|
|
|
30124
30674
|
|
|
30125
30675
|
|
|
@@ -30528,6 +31078,7 @@ var lineOffsetSizes = {
|
|
|
30528
31078
|
var radioOpts = computeRadioOpts.value;
|
|
30529
31079
|
var treeOpts = computeTreeOpts.value;
|
|
30530
31080
|
var editOpts = computeEditOpts.value;
|
|
31081
|
+
var rowOpts = computeRowOpts.value;
|
|
30531
31082
|
var rows = [];
|
|
30532
31083
|
tableData.forEach(function (row, $rowIndex) {
|
|
30533
31084
|
var trOn = {};
|
|
@@ -30543,7 +31094,7 @@ var lineOffsetSizes = {
|
|
|
30543
31094
|
|
|
30544
31095
|
rowIndex = $xetable.getRowIndex(row); // 事件绑定
|
|
30545
31096
|
|
|
30546
|
-
if (highlightHoverRow) {
|
|
31097
|
+
if (rowOpts.isHover || highlightHoverRow) {
|
|
30547
31098
|
trOn.onMouseenter = function (evnt) {
|
|
30548
31099
|
if (isOperateMouse()) {
|
|
30549
31100
|
return;
|
|
@@ -30693,6 +31244,7 @@ var lineOffsetSizes = {
|
|
|
30693
31244
|
var elemStore = tableInternalData.elemStore,
|
|
30694
31245
|
lastScrollTop = tableInternalData.lastScrollTop,
|
|
30695
31246
|
lastScrollLeft = tableInternalData.lastScrollLeft;
|
|
31247
|
+
var rowOpts = computeRowOpts.value;
|
|
30696
31248
|
var tableHeader = refTableHeader.value;
|
|
30697
31249
|
var tableBody = refTableBody.value;
|
|
30698
31250
|
var tableFooter = refTableFooter.value;
|
|
@@ -30717,7 +31269,7 @@ var lineOffsetSizes = {
|
|
|
30717
31269
|
tableInternalData.lastScrollLeft = scrollLeft;
|
|
30718
31270
|
tableInternalData.lastScrollTime = Date.now();
|
|
30719
31271
|
|
|
30720
|
-
if (highlightHoverRow) {
|
|
31272
|
+
if (rowOpts.isHover || highlightHoverRow) {
|
|
30721
31273
|
$xetable.clearHoverRow();
|
|
30722
31274
|
}
|
|
30723
31275
|
|
|
@@ -30851,6 +31403,7 @@ var lineOffsetSizes = {
|
|
|
30851
31403
|
var scrollYLoad = tableReactData.scrollYLoad;
|
|
30852
31404
|
var lastScrollTop = tableInternalData.lastScrollTop,
|
|
30853
31405
|
lastScrollLeft = tableInternalData.lastScrollLeft;
|
|
31406
|
+
var rowOpts = computeRowOpts.value;
|
|
30854
31407
|
var tableBody = refTableBody.value;
|
|
30855
31408
|
var scrollBodyElem = refElem.value;
|
|
30856
31409
|
var bodyElem = tableBody.$el;
|
|
@@ -30873,7 +31426,7 @@ var lineOffsetSizes = {
|
|
|
30873
31426
|
tableInternalData.lastScrollLeft = scrollLeft;
|
|
30874
31427
|
tableInternalData.lastScrollTime = Date.now();
|
|
30875
31428
|
|
|
30876
|
-
if (highlightHoverRow) {
|
|
31429
|
+
if (rowOpts.isHover || highlightHoverRow) {
|
|
30877
31430
|
$xetable.clearHoverRow();
|
|
30878
31431
|
}
|
|
30879
31432
|
|
|
@@ -31076,6 +31629,7 @@ var lineOffsetSizes = {
|
|
|
31076
31629
|
|
|
31077
31630
|
|
|
31078
31631
|
|
|
31632
|
+
|
|
31079
31633
|
|
|
31080
31634
|
|
|
31081
31635
|
var isWebkit = browse['-webkit'] && !browse.edge;
|
|
@@ -33621,8 +34175,10 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
33621
34175
|
var treeFullData = internalData.treeFullData;
|
|
33622
34176
|
var treeOpts = computeTreeOpts.value;
|
|
33623
34177
|
var fullData = [];
|
|
34178
|
+
var expandMaps = new Map();
|
|
33624
34179
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(treeFullData, function (row, index, items, path, parent) {
|
|
33625
|
-
if (!parent || $xetable.findRowIndexOf(treeExpandeds, parent) > -1) {
|
|
34180
|
+
if (!parent || expandMaps.has(parent) && $xetable.findRowIndexOf(treeExpandeds, parent) > -1) {
|
|
34181
|
+
expandMaps.set(row, 1);
|
|
33626
34182
|
fullData.push(row);
|
|
33627
34183
|
}
|
|
33628
34184
|
}, treeOpts);
|
|
@@ -33873,16 +34429,12 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
33873
34429
|
|
|
33874
34430
|
if (oRow && row) {
|
|
33875
34431
|
if (field) {
|
|
33876
|
-
|
|
34432
|
+
var newValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record || row, field);
|
|
34433
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(row, field, newValue);
|
|
34434
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.set(oRow, field, newValue);
|
|
33877
34435
|
} else {
|
|
33878
|
-
|
|
33879
|
-
|
|
33880
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clear(row, undefined);
|
|
33881
|
-
Object.assign(row, tablePrivateMethods.defineField(Object.assign({}, record)));
|
|
33882
|
-
tablePrivateMethods.cacheRowMap(true);
|
|
33883
|
-
} else {
|
|
33884
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.destructuring(oRow, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clone(row, true));
|
|
33885
|
-
}
|
|
34436
|
+
var newRecord = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.clone(_objectSpread2({}, record), true);
|
|
34437
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.destructuring(oRow, Object.assign(row, newRecord));
|
|
33886
34438
|
}
|
|
33887
34439
|
}
|
|
33888
34440
|
|
|
@@ -33907,9 +34459,9 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
33907
34459
|
var treeOpts = computeTreeOpts.value;
|
|
33908
34460
|
var children = treeOpts.children;
|
|
33909
34461
|
|
|
33910
|
-
var
|
|
34462
|
+
var parentRest = fullAllDataRowIdData[util_getRowid($xetable, row)];
|
|
33911
34463
|
|
|
33912
|
-
var parentLevel =
|
|
34464
|
+
var parentLevel = parentRest ? parentRest.level : 0;
|
|
33913
34465
|
return tableMethods.createData(childRecords).then(function (rows) {
|
|
33914
34466
|
if (keepSource) {
|
|
33915
34467
|
var rowid = util_getRowid($xetable, row);
|
|
@@ -34887,6 +35439,18 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
34887
35439
|
var reserveSelection = [];
|
|
34888
35440
|
|
|
34889
35441
|
if (checkboxOpts.reserve) {
|
|
35442
|
+
var afterFullIdMaps = {};
|
|
35443
|
+
|
|
35444
|
+
if (treeConfig) {
|
|
35445
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eachTree(afterFullData, function (row) {
|
|
35446
|
+
afterFullIdMaps[util_getRowid($xetable, row)] = 1;
|
|
35447
|
+
}, treeOpts);
|
|
35448
|
+
} else {
|
|
35449
|
+
afterFullData.forEach(function (row) {
|
|
35450
|
+
afterFullIdMaps[util_getRowid($xetable, row)] = 1;
|
|
35451
|
+
});
|
|
35452
|
+
}
|
|
35453
|
+
|
|
34890
35454
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.each(checkboxReserveRowMap, function (oldRow, oldRowid) {
|
|
34891
35455
|
if (oldRow) {
|
|
34892
35456
|
if (isFull) {
|
|
@@ -34894,18 +35458,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
34894
35458
|
reserveSelection.push(oldRow);
|
|
34895
35459
|
}
|
|
34896
35460
|
} else {
|
|
34897
|
-
if (
|
|
34898
|
-
|
|
34899
|
-
return util_getRowid($xetable, row) === oldRowid;
|
|
34900
|
-
}, treeOpts)) {
|
|
34901
|
-
reserveSelection.push(oldRow);
|
|
34902
|
-
}
|
|
34903
|
-
} else {
|
|
34904
|
-
if (!afterFullData.some(function (row) {
|
|
34905
|
-
return util_getRowid($xetable, row) === oldRowid;
|
|
34906
|
-
})) {
|
|
34907
|
-
reserveSelection.push(oldRow);
|
|
34908
|
-
}
|
|
35461
|
+
if (!afterFullIdMaps[oldRowid]) {
|
|
35462
|
+
reserveSelection.push(oldRow);
|
|
34909
35463
|
}
|
|
34910
35464
|
}
|
|
34911
35465
|
}
|
|
@@ -34969,12 +35523,13 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
34969
35523
|
* @param {Row} row 行对象
|
|
34970
35524
|
*/
|
|
34971
35525
|
setCurrentRow: function setCurrentRow(row) {
|
|
35526
|
+
var rowOpts = computeRowOpts.value;
|
|
34972
35527
|
var el = refElem.value;
|
|
34973
35528
|
tableMethods.clearCurrentRow();
|
|
34974
35529
|
tableMethods.clearCurrentColumn();
|
|
34975
35530
|
reactData.currentRow = row;
|
|
34976
35531
|
|
|
34977
|
-
if (props.highlightCurrentRow) {
|
|
35532
|
+
if (rowOpts.isCurrent || props.highlightCurrentRow) {
|
|
34978
35533
|
if (el) {
|
|
34979
35534
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.arrayEach(el.querySelectorAll("[rowid=\"".concat(util_getRowid($xetable, row), "\"]")), function (elem) {
|
|
34980
35535
|
return addClass(elem, 'row--current');
|
|
@@ -35035,7 +35590,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
35035
35590
|
* 用于当前行,获取当前行的数据
|
|
35036
35591
|
*/
|
|
35037
35592
|
getCurrentRecord: function getCurrentRecord() {
|
|
35038
|
-
|
|
35593
|
+
var rowOpts = computeRowOpts.value;
|
|
35594
|
+
return rowOpts.isCurrent || props.highlightCurrentRow ? reactData.currentRow : null;
|
|
35039
35595
|
},
|
|
35040
35596
|
|
|
35041
35597
|
/**
|
|
@@ -35076,7 +35632,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
35076
35632
|
return null;
|
|
35077
35633
|
},
|
|
35078
35634
|
getCurrentColumn: function getCurrentColumn() {
|
|
35079
|
-
|
|
35635
|
+
var columnOpts = computeColumnOpts.value;
|
|
35636
|
+
return columnOpts.isCurrent || props.highlightCurrentColumn ? reactData.currentColumn : null;
|
|
35080
35637
|
},
|
|
35081
35638
|
|
|
35082
35639
|
/**
|
|
@@ -36091,6 +36648,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
36091
36648
|
var editOpts = computeEditOpts.value;
|
|
36092
36649
|
var treeOpts = computeTreeOpts.value;
|
|
36093
36650
|
var menuList = computeMenuList.value;
|
|
36651
|
+
var rowOpts = computeRowOpts.value;
|
|
36094
36652
|
var selected = editStore.selected,
|
|
36095
36653
|
actived = editStore.actived;
|
|
36096
36654
|
var keyCode = evnt.keyCode;
|
|
@@ -36171,7 +36729,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
36171
36729
|
keyCtxTimeout = setTimeout(function () {
|
|
36172
36730
|
internalData._keyCtx = false;
|
|
36173
36731
|
}, 1000);
|
|
36174
|
-
} else if (isEnter && !isAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && highlightCurrentRow && currentRow)) {
|
|
36732
|
+
} else if (isEnter && !isAltKey && keyboardConfig && keyboardOpts.isEnter && (selected.row || actived.row || treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow)) {
|
|
36175
36733
|
// 退出选中
|
|
36176
36734
|
if (hasCtrlKey) {
|
|
36177
36735
|
// 如果是激活编辑状态,则取消编辑
|
|
@@ -36203,7 +36761,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
36203
36761
|
$xetable.moveSelected(targetArgs, isLeftArrow, false, isRightArrow, true, evnt);
|
|
36204
36762
|
}
|
|
36205
36763
|
}
|
|
36206
|
-
} else if (treeConfig && highlightCurrentRow && currentRow) {
|
|
36764
|
+
} else if (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
|
|
36207
36765
|
// 如果是树形表格当前行回车移动到子节点
|
|
36208
36766
|
var childrens = currentRow[treeOpts.children];
|
|
36209
36767
|
|
|
@@ -36229,7 +36787,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
36229
36787
|
// 如果按下了方向键
|
|
36230
36788
|
if (selected.row && selected.column) {
|
|
36231
36789
|
$xetable.moveSelected(selected.args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow, evnt);
|
|
36232
|
-
} else if ((isUpArrow || isDwArrow) && highlightCurrentRow) {
|
|
36790
|
+
} else if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
|
|
36233
36791
|
// 当前行按键上下移动
|
|
36234
36792
|
$xetable.moveCurrentRow(isUpArrow, isDwArrow, evnt);
|
|
36235
36793
|
}
|
|
@@ -36241,7 +36799,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
36241
36799
|
} else if (actived.row || actived.column) {
|
|
36242
36800
|
$xetable.moveTabSelected(actived.args, hasShiftKey, evnt);
|
|
36243
36801
|
}
|
|
36244
|
-
} else if (keyboardConfig && isEnableConf(editConfig) && (isDel || (treeConfig && highlightCurrentRow && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
|
|
36802
|
+
} else if (keyboardConfig && isEnableConf(editConfig) && (isDel || (treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow ? isBack && keyboardOpts.isArrow : isBack))) {
|
|
36245
36803
|
if (!isEditStatus) {
|
|
36246
36804
|
var delMethod = keyboardOpts.delMethod,
|
|
36247
36805
|
backMethod = keyboardOpts.backMethod; // 如果是删除键
|
|
@@ -36275,7 +36833,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
36275
36833
|
// 如果按下 del 键,更新表尾数据
|
|
36276
36834
|
tableMethods.updateFooter();
|
|
36277
36835
|
}
|
|
36278
|
-
} else if (isBack && keyboardOpts.isArrow && treeConfig && highlightCurrentRow && currentRow) {
|
|
36836
|
+
} else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
|
|
36279
36837
|
// 如果树形表格回退键关闭当前行返回父节点
|
|
36280
36838
|
var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findTree(internalData.afterFullData, function (item) {
|
|
36281
36839
|
return item === currentRow;
|
|
@@ -37115,6 +37673,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
37115
37673
|
triggerHeaderCellClickEvent: function triggerHeaderCellClickEvent(evnt, params) {
|
|
37116
37674
|
var _lastResizeTime = internalData._lastResizeTime;
|
|
37117
37675
|
var sortOpts = computeSortOpts.value;
|
|
37676
|
+
var columnOpts = computeColumnOpts.value;
|
|
37118
37677
|
var column = params.column;
|
|
37119
37678
|
var cell = evnt.currentTarget;
|
|
37120
37679
|
|
|
@@ -37134,7 +37693,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
37134
37693
|
cell: cell
|
|
37135
37694
|
}, params), evnt);
|
|
37136
37695
|
|
|
37137
|
-
if (props.highlightCurrentColumn) {
|
|
37696
|
+
if (columnOpts.isCurrent || props.highlightCurrentColumn) {
|
|
37138
37697
|
tableMethods.setCurrentColumn(column);
|
|
37139
37698
|
}
|
|
37140
37699
|
},
|
|
@@ -37158,6 +37717,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
37158
37717
|
var treeOpts = computeTreeOpts.value;
|
|
37159
37718
|
var radioOpts = computeRadioOpts.value;
|
|
37160
37719
|
var checkboxOpts = computeCheckboxOpts.value;
|
|
37720
|
+
var rowOpts = computeRowOpts.value;
|
|
37161
37721
|
var actived = editStore.actived;
|
|
37162
37722
|
var _params2 = params,
|
|
37163
37723
|
row = _params2.row,
|
|
@@ -37196,7 +37756,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
37196
37756
|
if (!triggerTreeNode) {
|
|
37197
37757
|
if (!triggerExpandNode) {
|
|
37198
37758
|
// 如果是高亮行
|
|
37199
|
-
if (highlightCurrentRow) {
|
|
37759
|
+
if (rowOpts.isCurrent || highlightCurrentRow) {
|
|
37200
37760
|
if (!triggerCheckbox && !triggerRadio) {
|
|
37201
37761
|
tablePrivateMethods.triggerCurrentRowEvent(evnt, params);
|
|
37202
37762
|
}
|
|
@@ -37589,6 +38149,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
37589
38149
|
tablePrivateMethods.handleTableData();
|
|
37590
38150
|
tablePrivateMethods.updateScrollYSpace();
|
|
37591
38151
|
},
|
|
38152
|
+
updateVirtualTreeData: updateVirtualTreeData,
|
|
37592
38153
|
|
|
37593
38154
|
/**
|
|
37594
38155
|
* 处理固定列的显示状态
|
|
@@ -38223,6 +38784,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
38223
38784
|
rightList = columnStore.rightList;
|
|
38224
38785
|
var tooltipOpts = computeTooltipOpts.value;
|
|
38225
38786
|
var treeOpts = computeTreeOpts.value;
|
|
38787
|
+
var rowOpts = computeRowOpts.value;
|
|
38788
|
+
var columnOpts = computeColumnOpts.value;
|
|
38226
38789
|
var vSize = computeSize.value;
|
|
38227
38790
|
var tableBorder = computeTableBorder.value;
|
|
38228
38791
|
var mouseOpts = computeMouseOpts.value;
|
|
@@ -38231,7 +38794,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
38231
38794
|
var isMenu = computeIsMenu.value;
|
|
38232
38795
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('div', {
|
|
38233
38796
|
ref: refElem,
|
|
38234
|
-
class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(xID), "border--".concat(tableBorder), (_ref7 = {}, _defineProperty(_ref7, "size--".concat(vSize), vSize), _defineProperty(_ref7, 'vxe-editable', !!editConfig), _defineProperty(_ref7, 'cell--highlight', highlightCell), _defineProperty(_ref7, 'cell--selected', mouseConfig && mouseOpts.selected), _defineProperty(_ref7, 'cell--area', mouseConfig && mouseOpts.area), _defineProperty(_ref7, 'row--highlight', highlightHoverRow), _defineProperty(_ref7, 'column--highlight', highlightHoverColumn), _defineProperty(_ref7, 'is--header', showHeader), _defineProperty(_ref7, 'is--footer', showFooter), _defineProperty(_ref7, 'is--group', isGroup), _defineProperty(_ref7, 'is--tree-line', treeConfig && treeOpts.line), _defineProperty(_ref7, 'is--fixed-left', leftList.length), _defineProperty(_ref7, 'is--fixed-right', rightList.length), _defineProperty(_ref7, 'is--animat', !!props.animat), _defineProperty(_ref7, 'is--round', props.round), _defineProperty(_ref7, 'is--stripe', !treeConfig && stripe), _defineProperty(_ref7, 'is--loading', loading), _defineProperty(_ref7, 'is--empty', !loading && !tableData.length), _defineProperty(_ref7, 'is--scroll-y', overflowY), _defineProperty(_ref7, 'is--scroll-x', overflowX), _defineProperty(_ref7, 'is--virtual-x', scrollXLoad), _defineProperty(_ref7, 'is--virtual-y', scrollYLoad), _ref7)],
|
|
38797
|
+
class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(xID), "border--".concat(tableBorder), (_ref7 = {}, _defineProperty(_ref7, "size--".concat(vSize), vSize), _defineProperty(_ref7, 'vxe-editable', !!editConfig), _defineProperty(_ref7, 'cell--highlight', highlightCell), _defineProperty(_ref7, 'cell--selected', mouseConfig && mouseOpts.selected), _defineProperty(_ref7, 'cell--area', mouseConfig && mouseOpts.area), _defineProperty(_ref7, 'row--highlight', rowOpts.isHover || highlightHoverRow), _defineProperty(_ref7, 'column--highlight', columnOpts.isHover || highlightHoverColumn), _defineProperty(_ref7, 'is--header', showHeader), _defineProperty(_ref7, 'is--footer', showFooter), _defineProperty(_ref7, 'is--group', isGroup), _defineProperty(_ref7, 'is--tree-line', treeConfig && treeOpts.line), _defineProperty(_ref7, 'is--fixed-left', leftList.length), _defineProperty(_ref7, 'is--fixed-right', rightList.length), _defineProperty(_ref7, 'is--animat', !!props.animat), _defineProperty(_ref7, 'is--round', props.round), _defineProperty(_ref7, 'is--stripe', !treeConfig && stripe), _defineProperty(_ref7, 'is--loading', loading), _defineProperty(_ref7, 'is--empty', !loading && !tableData.length), _defineProperty(_ref7, 'is--scroll-y', overflowY), _defineProperty(_ref7, 'is--scroll-x', overflowX), _defineProperty(_ref7, 'is--virtual-x', scrollXLoad), _defineProperty(_ref7, 'is--virtual-y', scrollYLoad), _ref7)],
|
|
38235
38798
|
onKeydown: keydownEvent
|
|
38236
38799
|
}, [
|
|
38237
38800
|
/**
|
|
@@ -38377,7 +38940,6 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
38377
38940
|
|
|
38378
38941
|
|
|
38379
38942
|
|
|
38380
|
-
|
|
38381
38943
|
var Table = Object.assign(table, {
|
|
38382
38944
|
install: function install(app) {
|
|
38383
38945
|
dynamicApp.component(table.name, table);
|
|
@@ -38955,4 +39517,5 @@ module.exports = global.Promise;
|
|
|
38955
39517
|
/***/ })
|
|
38956
39518
|
|
|
38957
39519
|
/******/ });
|
|
38958
|
-
});
|
|
39520
|
+
});
|
|
39521
|
+
//# sourceMappingURL=index.umd.js.map
|