bkui-vue 2.0.1-beta.112 → 2.0.1-beta.113
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/dist/index.cjs.js +54 -54
- package/dist/index.esm.js +13942 -13951
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +17 -17
- package/lib/alert/index.d.ts +126 -73
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/index.d.ts +117 -69
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +155 -119
- package/lib/button/index.js +20 -19
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +354 -393
- package/lib/cascader/index.js +57 -59
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +175 -143
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +438 -381
- package/lib/collapse/index.d.ts +175 -156
- package/lib/collapse/index.js +27 -28
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +165 -144
- package/lib/color-picker/index.js +40 -42
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +26 -28
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +351 -380
- package/lib/date-picker/index.js +79 -80
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +269 -299
- package/lib/dialog/index.js +228 -227
- package/lib/directives/index.js +29 -29
- package/lib/divider/index.d.ts +111 -57
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +136 -94
- package/lib/dropdown/index.js +22 -24
- package/lib/exception/index.d.ts +102 -41
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +132 -80
- package/lib/form/index.js +22 -21
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +26 -27
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +233 -232
- package/lib/input/index.d.ts +293 -326
- package/lib/input/index.js +48 -46
- package/lib/link/index.d.ts +122 -73
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +156 -130
- package/lib/loading/index.js +33 -32
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +116 -55
- package/lib/menu/index.js +25 -26
- package/lib/message/index.js +25 -24
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +185 -171
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +21 -20
- package/lib/overflow-title/index.d.ts +256 -343
- package/lib/overflow-title/index.js +10 -11
- package/lib/pagination/index.d.ts +198 -184
- package/lib/pagination/index.js +56 -49
- package/lib/pop-confirm/index.d.ts +153 -115
- package/lib/pop-confirm/index.js +4 -5
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +359 -421
- package/lib/popover/index.js +122 -220
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +187 -178
- package/lib/progress/index.js +21 -22
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +140 -91
- package/lib/radio/index.js +48 -46
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +20 -19
- package/lib/resize-layout/index.d.ts +192 -168
- package/lib/resize-layout/index.js +21 -20
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +901 -684
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +188 -133
- package/lib/search-select/selected.d.ts +188 -133
- package/lib/select/index.d.ts +1333 -1491
- package/lib/select/index.js +280 -279
- package/lib/select/select.d.ts +169 -132
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +56 -54
- package/lib/sideslider/index.d.ts +201 -197
- package/lib/sideslider/index.js +228 -227
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +225 -226
- package/lib/steps/index.d.ts +149 -110
- package/lib/steps/index.js +231 -230
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +174 -152
- package/lib/switcher/index.js +22 -20
- package/lib/tab/index.d.ts +183 -151
- package/lib/tab/index.js +19 -20
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +362 -457
- package/lib/table/index.js +348 -336
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +150 -104
- package/lib/tag/index.d.ts +142 -95
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +540 -755
- package/lib/tag-input/index.js +58 -52
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +386 -439
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +206 -191
- package/lib/tree/index.d.ts +308 -350
- package/lib/tree/index.js +74 -71
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +273 -311
- package/lib/upload/index.js +264 -261
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +241 -333
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/table/index.js
CHANGED
@@ -38,304 +38,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
|
|
38
38
|
function _regeneratorRuntime() {
|
39
39
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
40
40
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
41
|
-
return
|
41
|
+
return exports;
|
42
42
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
43
|
-
var
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
t[e] = r.value;
|
43
|
+
var exports = {},
|
44
|
+
Op = Object.prototype,
|
45
|
+
hasOwn = Op.hasOwnProperty,
|
46
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
47
|
+
obj[key] = desc.value;
|
49
48
|
},
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
function define(
|
55
|
-
return Object.defineProperty(
|
56
|
-
value:
|
49
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
50
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
51
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
52
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
53
|
+
function define(obj, key, value) {
|
54
|
+
return Object.defineProperty(obj, key, {
|
55
|
+
value: value,
|
57
56
|
enumerable: !0,
|
58
57
|
configurable: !0,
|
59
58
|
writable: !0
|
60
|
-
}),
|
59
|
+
}), obj[key];
|
61
60
|
}
|
62
61
|
try {
|
63
62
|
define({}, "");
|
64
|
-
} catch (
|
65
|
-
define = function define(
|
66
|
-
return
|
63
|
+
} catch (err) {
|
64
|
+
define = function define(obj, key, value) {
|
65
|
+
return obj[key] = value;
|
67
66
|
};
|
68
67
|
}
|
69
|
-
function wrap(
|
70
|
-
var
|
71
|
-
|
72
|
-
|
73
|
-
return
|
74
|
-
value: makeInvokeMethod(
|
75
|
-
}),
|
68
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
69
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
70
|
+
generator = Object.create(protoGenerator.prototype),
|
71
|
+
context = new Context(tryLocsList || []);
|
72
|
+
return defineProperty(generator, "_invoke", {
|
73
|
+
value: makeInvokeMethod(innerFn, self, context)
|
74
|
+
}), generator;
|
76
75
|
}
|
77
|
-
function tryCatch(
|
76
|
+
function tryCatch(fn, obj, arg) {
|
78
77
|
try {
|
79
78
|
return {
|
80
79
|
type: "normal",
|
81
|
-
arg:
|
80
|
+
arg: fn.call(obj, arg)
|
82
81
|
};
|
83
|
-
} catch (
|
82
|
+
} catch (err) {
|
84
83
|
return {
|
85
84
|
type: "throw",
|
86
|
-
arg:
|
85
|
+
arg: err
|
87
86
|
};
|
88
87
|
}
|
89
88
|
}
|
90
|
-
|
91
|
-
var
|
92
|
-
l = "suspendedYield",
|
93
|
-
f = "executing",
|
94
|
-
s = "completed",
|
95
|
-
y = {};
|
89
|
+
exports.wrap = wrap;
|
90
|
+
var ContinueSentinel = {};
|
96
91
|
function Generator() {}
|
97
92
|
function GeneratorFunction() {}
|
98
93
|
function GeneratorFunctionPrototype() {}
|
99
|
-
var
|
100
|
-
define(
|
94
|
+
var IteratorPrototype = {};
|
95
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
101
96
|
return this;
|
102
97
|
});
|
103
|
-
var
|
104
|
-
|
105
|
-
|
106
|
-
var
|
107
|
-
function defineIteratorMethods(
|
108
|
-
["next", "throw", "return"].forEach(function (
|
109
|
-
define(
|
110
|
-
return this._invoke(
|
98
|
+
var getProto = Object.getPrototypeOf,
|
99
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
100
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
101
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
102
|
+
function defineIteratorMethods(prototype) {
|
103
|
+
["next", "throw", "return"].forEach(function (method) {
|
104
|
+
define(prototype, method, function (arg) {
|
105
|
+
return this._invoke(method, arg);
|
111
106
|
});
|
112
107
|
});
|
113
108
|
}
|
114
|
-
function AsyncIterator(
|
115
|
-
function invoke(
|
116
|
-
var
|
117
|
-
if ("throw" !==
|
118
|
-
var
|
119
|
-
|
120
|
-
return
|
121
|
-
invoke("next",
|
122
|
-
}, function (
|
123
|
-
invoke("throw",
|
124
|
-
}) :
|
125
|
-
|
126
|
-
}, function (
|
127
|
-
return invoke("throw",
|
109
|
+
function AsyncIterator(generator, PromiseImpl) {
|
110
|
+
function invoke(method, arg, resolve, reject) {
|
111
|
+
var record = tryCatch(generator[method], generator, arg);
|
112
|
+
if ("throw" !== record.type) {
|
113
|
+
var result = record.arg,
|
114
|
+
value = result.value;
|
115
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
116
|
+
invoke("next", value, resolve, reject);
|
117
|
+
}, function (err) {
|
118
|
+
invoke("throw", err, resolve, reject);
|
119
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
120
|
+
result.value = unwrapped, resolve(result);
|
121
|
+
}, function (error) {
|
122
|
+
return invoke("throw", error, resolve, reject);
|
128
123
|
});
|
129
124
|
}
|
130
|
-
|
125
|
+
reject(record.arg);
|
131
126
|
}
|
132
|
-
var
|
133
|
-
|
134
|
-
value: function value(
|
127
|
+
var previousPromise;
|
128
|
+
defineProperty(this, "_invoke", {
|
129
|
+
value: function value(method, arg) {
|
135
130
|
function callInvokeWithMethodAndArg() {
|
136
|
-
return new
|
137
|
-
invoke(
|
131
|
+
return new PromiseImpl(function (resolve, reject) {
|
132
|
+
invoke(method, arg, resolve, reject);
|
138
133
|
});
|
139
134
|
}
|
140
|
-
return
|
135
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
141
136
|
}
|
142
137
|
});
|
143
138
|
}
|
144
|
-
function makeInvokeMethod(
|
145
|
-
var
|
146
|
-
return function (
|
147
|
-
if (
|
148
|
-
if (
|
149
|
-
if ("throw" ===
|
150
|
-
return
|
151
|
-
value: t,
|
152
|
-
done: !0
|
153
|
-
};
|
139
|
+
function makeInvokeMethod(innerFn, self, context) {
|
140
|
+
var state = "suspendedStart";
|
141
|
+
return function (method, arg) {
|
142
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
143
|
+
if ("completed" === state) {
|
144
|
+
if ("throw" === method) throw arg;
|
145
|
+
return doneResult();
|
154
146
|
}
|
155
|
-
for (
|
156
|
-
var
|
157
|
-
if (
|
158
|
-
var
|
159
|
-
if (
|
160
|
-
if (
|
161
|
-
return
|
147
|
+
for (context.method = method, context.arg = arg;;) {
|
148
|
+
var delegate = context.delegate;
|
149
|
+
if (delegate) {
|
150
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
151
|
+
if (delegateResult) {
|
152
|
+
if (delegateResult === ContinueSentinel) continue;
|
153
|
+
return delegateResult;
|
162
154
|
}
|
163
155
|
}
|
164
|
-
if ("next" ===
|
165
|
-
if (
|
166
|
-
|
167
|
-
} else "return" ===
|
168
|
-
|
169
|
-
var
|
170
|
-
if ("normal" ===
|
171
|
-
if (
|
156
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
157
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
158
|
+
context.dispatchException(context.arg);
|
159
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
160
|
+
state = "executing";
|
161
|
+
var record = tryCatch(innerFn, self, context);
|
162
|
+
if ("normal" === record.type) {
|
163
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
172
164
|
return {
|
173
|
-
value:
|
174
|
-
done:
|
165
|
+
value: record.arg,
|
166
|
+
done: context.done
|
175
167
|
};
|
176
168
|
}
|
177
|
-
"throw" ===
|
169
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
178
170
|
}
|
179
171
|
};
|
180
172
|
}
|
181
|
-
function maybeInvokeDelegate(
|
182
|
-
var
|
183
|
-
|
184
|
-
if (
|
185
|
-
var
|
186
|
-
if ("throw" ===
|
187
|
-
var
|
188
|
-
return
|
173
|
+
function maybeInvokeDelegate(delegate, context) {
|
174
|
+
var methodName = context.method,
|
175
|
+
method = delegate.iterator[methodName];
|
176
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
177
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
178
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
179
|
+
var info = record.arg;
|
180
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
189
181
|
}
|
190
|
-
function pushTryEntry(
|
191
|
-
var
|
192
|
-
tryLoc:
|
182
|
+
function pushTryEntry(locs) {
|
183
|
+
var entry = {
|
184
|
+
tryLoc: locs[0]
|
193
185
|
};
|
194
|
-
1 in
|
186
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
195
187
|
}
|
196
|
-
function resetTryEntry(
|
197
|
-
var
|
198
|
-
|
188
|
+
function resetTryEntry(entry) {
|
189
|
+
var record = entry.completion || {};
|
190
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
199
191
|
}
|
200
|
-
function Context(
|
192
|
+
function Context(tryLocsList) {
|
201
193
|
this.tryEntries = [{
|
202
194
|
tryLoc: "root"
|
203
|
-
}],
|
195
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
204
196
|
}
|
205
|
-
function values(
|
206
|
-
if (
|
207
|
-
var
|
208
|
-
if (
|
209
|
-
if ("function" == typeof
|
210
|
-
if (!isNaN(
|
211
|
-
var
|
212
|
-
|
213
|
-
for (; ++
|
214
|
-
return next.value =
|
197
|
+
function values(iterable) {
|
198
|
+
if (iterable) {
|
199
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
200
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
201
|
+
if ("function" == typeof iterable.next) return iterable;
|
202
|
+
if (!isNaN(iterable.length)) {
|
203
|
+
var i = -1,
|
204
|
+
next = function next() {
|
205
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
206
|
+
return next.value = undefined, next.done = !0, next;
|
215
207
|
};
|
216
|
-
return
|
208
|
+
return next.next = next;
|
217
209
|
}
|
218
210
|
}
|
219
|
-
|
211
|
+
return {
|
212
|
+
next: doneResult
|
213
|
+
};
|
220
214
|
}
|
221
|
-
|
215
|
+
function doneResult() {
|
216
|
+
return {
|
217
|
+
value: undefined,
|
218
|
+
done: !0
|
219
|
+
};
|
220
|
+
}
|
221
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
222
222
|
value: GeneratorFunctionPrototype,
|
223
223
|
configurable: !0
|
224
|
-
}),
|
224
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
225
225
|
value: GeneratorFunction,
|
226
226
|
configurable: !0
|
227
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
228
|
-
var
|
229
|
-
return !!
|
230
|
-
},
|
231
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
232
|
-
},
|
227
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
228
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
229
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
230
|
+
}, exports.mark = function (genFun) {
|
231
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
232
|
+
}, exports.awrap = function (arg) {
|
233
233
|
return {
|
234
|
-
__await:
|
234
|
+
__await: arg
|
235
235
|
};
|
236
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
236
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
237
237
|
return this;
|
238
|
-
}),
|
239
|
-
void 0 ===
|
240
|
-
var
|
241
|
-
return
|
242
|
-
return
|
238
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
239
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
240
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
241
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
242
|
+
return result.done ? result.value : iter.next();
|
243
243
|
});
|
244
|
-
}, defineIteratorMethods(
|
244
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
245
245
|
return this;
|
246
|
-
}), define(
|
246
|
+
}), define(Gp, "toString", function () {
|
247
247
|
return "[object Generator]";
|
248
|
-
}),
|
249
|
-
var
|
250
|
-
|
251
|
-
for (var
|
252
|
-
return
|
253
|
-
for (;
|
254
|
-
var
|
255
|
-
if (
|
248
|
+
}), exports.keys = function (val) {
|
249
|
+
var object = Object(val),
|
250
|
+
keys = [];
|
251
|
+
for (var key in object) keys.push(key);
|
252
|
+
return keys.reverse(), function next() {
|
253
|
+
for (; keys.length;) {
|
254
|
+
var key = keys.pop();
|
255
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
256
256
|
}
|
257
257
|
return next.done = !0, next;
|
258
258
|
};
|
259
|
-
},
|
259
|
+
}, exports.values = values, Context.prototype = {
|
260
260
|
constructor: Context,
|
261
|
-
reset: function reset(
|
262
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
261
|
+
reset: function reset(skipTempReset) {
|
262
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
263
263
|
},
|
264
264
|
stop: function stop() {
|
265
265
|
this.done = !0;
|
266
|
-
var
|
267
|
-
if ("throw" ===
|
266
|
+
var rootRecord = this.tryEntries[0].completion;
|
267
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
268
268
|
return this.rval;
|
269
269
|
},
|
270
|
-
dispatchException: function dispatchException(
|
271
|
-
if (this.done) throw
|
272
|
-
var
|
273
|
-
function handle(
|
274
|
-
return
|
270
|
+
dispatchException: function dispatchException(exception) {
|
271
|
+
if (this.done) throw exception;
|
272
|
+
var context = this;
|
273
|
+
function handle(loc, caught) {
|
274
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
275
275
|
}
|
276
|
-
for (var
|
277
|
-
var
|
278
|
-
|
279
|
-
if ("root" ===
|
280
|
-
if (
|
281
|
-
var
|
282
|
-
|
283
|
-
if (
|
284
|
-
if (this.prev <
|
285
|
-
if (this.prev <
|
286
|
-
} else if (
|
287
|
-
if (this.prev <
|
276
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
277
|
+
var entry = this.tryEntries[i],
|
278
|
+
record = entry.completion;
|
279
|
+
if ("root" === entry.tryLoc) return handle("end");
|
280
|
+
if (entry.tryLoc <= this.prev) {
|
281
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
282
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
283
|
+
if (hasCatch && hasFinally) {
|
284
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
285
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
286
|
+
} else if (hasCatch) {
|
287
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
288
288
|
} else {
|
289
|
-
if (!
|
290
|
-
if (this.prev <
|
289
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
290
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
291
291
|
}
|
292
292
|
}
|
293
293
|
}
|
294
294
|
},
|
295
|
-
abrupt: function abrupt(
|
296
|
-
for (var
|
297
|
-
var
|
298
|
-
if (
|
299
|
-
var
|
295
|
+
abrupt: function abrupt(type, arg) {
|
296
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
297
|
+
var entry = this.tryEntries[i];
|
298
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
299
|
+
var finallyEntry = entry;
|
300
300
|
break;
|
301
301
|
}
|
302
302
|
}
|
303
|
-
|
304
|
-
var
|
305
|
-
return
|
303
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
304
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
305
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
306
306
|
},
|
307
|
-
complete: function complete(
|
308
|
-
if ("throw" ===
|
309
|
-
return "break" ===
|
307
|
+
complete: function complete(record, afterLoc) {
|
308
|
+
if ("throw" === record.type) throw record.arg;
|
309
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
310
310
|
},
|
311
|
-
finish: function finish(
|
312
|
-
for (var
|
313
|
-
var
|
314
|
-
if (
|
311
|
+
finish: function finish(finallyLoc) {
|
312
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
313
|
+
var entry = this.tryEntries[i];
|
314
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
315
315
|
}
|
316
316
|
},
|
317
|
-
"catch": function _catch(
|
318
|
-
for (var
|
319
|
-
var
|
320
|
-
if (
|
321
|
-
var
|
322
|
-
if ("throw" ===
|
323
|
-
var
|
324
|
-
resetTryEntry(
|
317
|
+
"catch": function _catch(tryLoc) {
|
318
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
319
|
+
var entry = this.tryEntries[i];
|
320
|
+
if (entry.tryLoc === tryLoc) {
|
321
|
+
var record = entry.completion;
|
322
|
+
if ("throw" === record.type) {
|
323
|
+
var thrown = record.arg;
|
324
|
+
resetTryEntry(entry);
|
325
325
|
}
|
326
|
-
return
|
326
|
+
return thrown;
|
327
327
|
}
|
328
328
|
}
|
329
329
|
throw new Error("illegal catch attempt");
|
330
330
|
},
|
331
|
-
delegateYield: function delegateYield(
|
331
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
332
332
|
return this.delegate = {
|
333
|
-
iterator: values(
|
334
|
-
resultName:
|
335
|
-
nextLoc:
|
336
|
-
}, "next" === this.method && (this.arg =
|
333
|
+
iterator: values(iterable),
|
334
|
+
resultName: resultName,
|
335
|
+
nextLoc: nextLoc
|
336
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
337
337
|
}
|
338
|
-
},
|
338
|
+
}, exports;
|
339
339
|
}
|
340
340
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
341
341
|
|
@@ -344,14 +344,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
344
344
|
/***/ 7425:
|
345
345
|
/***/ ((module) => {
|
346
346
|
|
347
|
-
function _typeof(
|
347
|
+
function _typeof(obj) {
|
348
348
|
"@babel/helpers - typeof";
|
349
349
|
|
350
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
351
|
-
return typeof
|
352
|
-
} : function (
|
353
|
-
return
|
354
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
350
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
351
|
+
return typeof obj;
|
352
|
+
} : function (obj) {
|
353
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
354
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
355
355
|
}
|
356
356
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
357
357
|
|
@@ -476,38 +476,38 @@ var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
476
476
|
var isEqual_y = x => () => x
|
477
477
|
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
|
478
478
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
479
|
-
function typeof_typeof(
|
479
|
+
function typeof_typeof(obj) {
|
480
480
|
"@babel/helpers - typeof";
|
481
481
|
|
482
|
-
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
483
|
-
return typeof
|
484
|
-
} : function (
|
485
|
-
return
|
486
|
-
}, typeof_typeof(
|
482
|
+
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
483
|
+
return typeof obj;
|
484
|
+
} : function (obj) {
|
485
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
486
|
+
}, typeof_typeof(obj);
|
487
487
|
}
|
488
488
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
489
489
|
|
490
|
-
function
|
491
|
-
if ("object"
|
492
|
-
var
|
493
|
-
if (
|
494
|
-
var
|
495
|
-
if ("object"
|
490
|
+
function _toPrimitive(input, hint) {
|
491
|
+
if (typeof_typeof(input) !== "object" || input === null) return input;
|
492
|
+
var prim = input[Symbol.toPrimitive];
|
493
|
+
if (prim !== undefined) {
|
494
|
+
var res = prim.call(input, hint || "default");
|
495
|
+
if (typeof_typeof(res) !== "object") return res;
|
496
496
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
497
497
|
}
|
498
|
-
return ("string"
|
498
|
+
return (hint === "string" ? String : Number)(input);
|
499
499
|
}
|
500
500
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
501
501
|
|
502
502
|
|
503
|
-
function
|
504
|
-
var
|
505
|
-
return "symbol"
|
503
|
+
function _toPropertyKey(arg) {
|
504
|
+
var key = _toPrimitive(arg, "string");
|
505
|
+
return typeof_typeof(key) === "symbol" ? key : String(key);
|
506
506
|
}
|
507
507
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
508
508
|
|
509
509
|
function defineProperty_defineProperty(obj, key, value) {
|
510
|
-
key =
|
510
|
+
key = _toPropertyKey(key);
|
511
511
|
if (key in obj) {
|
512
512
|
Object.defineProperty(obj, key, {
|
513
513
|
value: value,
|
@@ -522,6 +522,7 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
522
522
|
}
|
523
523
|
;// CONCATENATED MODULE: ../../packages/table/src/const.ts
|
524
524
|
|
525
|
+
var _DEF_COLOR;
|
525
526
|
/*
|
526
527
|
* Tencent is pleased to support the open source community by making
|
527
528
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -630,7 +631,7 @@ var IHeadColor;
|
|
630
631
|
/**
|
631
632
|
* 根据表格的使用场景,表头支持颜色自定义,默认提供的选项:FAFBFD、F0F1F5,尽量一个项目选用同一种颜色。
|
632
633
|
*/
|
633
|
-
var DEF_COLOR =
|
634
|
+
var DEF_COLOR = (_DEF_COLOR = {}, defineProperty_defineProperty(_DEF_COLOR, IHeadColor.DEF1, '#FAFBFD'), defineProperty_defineProperty(_DEF_COLOR, IHeadColor.DEF2, '#F0F1F5'), _DEF_COLOR);
|
634
635
|
var SETTING_SIZE = {
|
635
636
|
large: 78,
|
636
637
|
medium: 60,
|
@@ -1202,7 +1203,7 @@ var isElement_y = x => () => x
|
|
1202
1203
|
const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
|
1203
1204
|
;// CONCATENATED MODULE: ../../packages/table/src/events.ts
|
1204
1205
|
|
1205
|
-
var _EMIT_EVENT_TYPES;
|
1206
|
+
var _EMIT_EVENT_TYPES, _CELL_EVENT_TYPES;
|
1206
1207
|
/*
|
1207
1208
|
* Tencent is pleased to support the open source community by making
|
1208
1209
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1294,8 +1295,8 @@ var EVENT_SCROLL_FN = function EVENT_SCROLL_FN(_args) {
|
|
1294
1295
|
var EVENT_DRAGEND_FN = function EVENT_DRAGEND_FN(_args) {
|
1295
1296
|
return true;
|
1296
1297
|
};
|
1297
|
-
var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, defineProperty_defineProperty(
|
1298
|
-
var CELL_EVENT_TYPES =
|
1298
|
+
var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.COLUMN_PICK, EVENT_COL_PICK), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.COLUMN_FILTER, EVENT_COL_FILTER), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.COLUMN_SORT, EVENT_COL_SORT), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.COLUMN_FILTER_SAVE, EVENT_COL_FILTER_SAVE), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.ROW_CLICK, EVENT_MOUSE_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.ROW_DBL_CLICK, EVENT_MOUSE_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.ROW_EXPAND_CLICK, EVENT_EXPAND_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.ROW_SELECT, EVENT_ROW_SELECT_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.ROW_SELECT_ALL, EVENT_ROW_SELECT_ALL_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.ROW_SELECT_CHANGE, EVENT_ROW_SELECT_CHANGE_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.PAGE_LIMIT_CHANGE, EVENT_PAGE_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.PAGE_VALUE_CHANGE, EVENT_PAGE_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.SETTING_CHANGE, EVENT_SETTING_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.SCROLL_BOTTOM, EVENT_SCROLL_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CELL_CLICK, EVENT_CELL_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CELL_DBL_CLICK, EVENT_CELL_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.ROW_MOUSE_ENTER, EVENT_MOUSE_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.ROW_MOUSE_LEAVE, EVENT_MOUSE_FN), defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.DRAG_END, EVENT_DRAGEND_FN), _EMIT_EVENT_TYPES);
|
1299
|
+
var CELL_EVENT_TYPES = (_CELL_EVENT_TYPES = {}, defineProperty_defineProperty(_CELL_EVENT_TYPES, EMIT_EVENTS.NATIVE_CLICK, EVENT_MOUSE_FN), defineProperty_defineProperty(_CELL_EVENT_TYPES, EMIT_EVENTS.NATIVE_DBL_CLICK, EVENT_MOUSE_FN), _CELL_EVENT_TYPES);
|
1299
1300
|
;// CONCATENATED MODULE: external "lodash/throttle"
|
1300
1301
|
var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1301
1302
|
var throttle_y = x => () => x
|
@@ -1332,6 +1333,7 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
1332
1333
|
|
1333
1334
|
|
1334
1335
|
/* harmony default export */ const use_column_resize = (function (columns, _ref) {
|
1336
|
+
var _handler;
|
1335
1337
|
var afterResize = _ref.afterResize;
|
1336
1338
|
var getColumnAttribute = columns.getColumnAttribute,
|
1337
1339
|
getColumnOrderWidth = columns.getColumnOrderWidth,
|
@@ -1378,7 +1380,7 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
1378
1380
|
dragOffsetX.value = -1000;
|
1379
1381
|
dragWidth = 0;
|
1380
1382
|
removeCursor(headTable);
|
1381
|
-
afterResize === null || afterResize === void 0
|
1383
|
+
afterResize === null || afterResize === void 0 ? void 0 : afterResize();
|
1382
1384
|
headTable = null;
|
1383
1385
|
var target = e.target;
|
1384
1386
|
handleMouseoutDragSection(target);
|
@@ -1402,13 +1404,13 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
1402
1404
|
var setNodeCursor = function () {
|
1403
1405
|
return (0,debounce_namespaceObject["default"])(function (target) {
|
1404
1406
|
document.body.style.setProperty('user-select', 'none');
|
1405
|
-
target === null || target === void 0
|
1407
|
+
target === null || target === void 0 ? void 0 : target.classList.add('col-resize-hover');
|
1406
1408
|
});
|
1407
1409
|
}();
|
1408
1410
|
var removeCursor = function removeCursor(target) {
|
1409
1411
|
setNodeCursor.cancel();
|
1410
1412
|
document.body.style.removeProperty('user-select');
|
1411
|
-
target === null || target === void 0
|
1413
|
+
target === null || target === void 0 ? void 0 : target.classList.remove('col-resize-hover');
|
1412
1414
|
};
|
1413
1415
|
var handlemouseDownEvent = function handlemouseDownEvent(e) {
|
1414
1416
|
if (!isInDragSection) {
|
@@ -1430,19 +1432,19 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
1430
1432
|
var _target$parentElement;
|
1431
1433
|
var targetElements = target === null || target === void 0 || (_target$parentElement = target.parentElement) === null || _target$parentElement === void 0 || (_target$parentElement = _target$parentElement.parentElement) === null || _target$parentElement === void 0 ? void 0 : _target$parentElement.querySelectorAll('.col-pointer-hover');
|
1432
1434
|
targetElements.forEach(function (element) {
|
1433
|
-
element === null || element === void 0
|
1434
|
-
element === null || element === void 0
|
1435
|
-
element === null || element === void 0
|
1435
|
+
element === null || element === void 0 ? void 0 : element.classList.remove('col-pointer-hover');
|
1436
|
+
element === null || element === void 0 ? void 0 : element.classList.remove('poiner-left');
|
1437
|
+
element === null || element === void 0 ? void 0 : element.classList.remove('poiner-right');
|
1436
1438
|
});
|
1437
1439
|
};
|
1438
1440
|
var addPointerClass = function addPointerClass(target, poinerPlacement) {
|
1439
1441
|
var targetTh = target.parentElement;
|
1440
|
-
targetTh === null || targetTh === void 0
|
1441
|
-
targetTh === null || targetTh === void 0
|
1442
|
+
targetTh === null || targetTh === void 0 ? void 0 : targetTh.classList.add('col-pointer-hover');
|
1443
|
+
targetTh === null || targetTh === void 0 ? void 0 : targetTh.classList.add("poiner-".concat(poinerPlacement));
|
1442
1444
|
var nextTarget = poinerPlacement === 'right' ? targetTh.nextElementSibling : targetTh.previousElementSibling;
|
1443
1445
|
var nextPlacement = poinerPlacement === 'right' ? 'left' : 'right';
|
1444
|
-
nextTarget === null || nextTarget === void 0
|
1445
|
-
nextTarget === null || nextTarget === void 0
|
1446
|
+
nextTarget === null || nextTarget === void 0 ? void 0 : nextTarget.classList.add('col-pointer-hover');
|
1447
|
+
nextTarget === null || nextTarget === void 0 ? void 0 : nextTarget.classList.add("poiner-".concat(nextPlacement));
|
1446
1448
|
};
|
1447
1449
|
var handleMouseoutDragSection = function handleMouseoutDragSection(target) {
|
1448
1450
|
if (!isDraging) {
|
@@ -1453,7 +1455,7 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
1453
1455
|
document.removeEventListener('mousedown', handlemouseDownEvent);
|
1454
1456
|
}
|
1455
1457
|
};
|
1456
|
-
var handler =
|
1458
|
+
var handler = (_handler = {}, defineProperty_defineProperty(_handler, EVENTS.MOUSE_MOVE, function (e, column, index) {
|
1457
1459
|
stopDefaultEvent(e);
|
1458
1460
|
if (isMouseDown) {
|
1459
1461
|
isDraging = true;
|
@@ -1482,10 +1484,10 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
1482
1484
|
handleMouseoutDragSection(target);
|
1483
1485
|
}
|
1484
1486
|
}
|
1485
|
-
}), EVENTS.MOUSE_OUT, function (e, _column, _index) {
|
1487
|
+
}), defineProperty_defineProperty(_handler, EVENTS.MOUSE_OUT, function (e, _column, _index) {
|
1486
1488
|
var target = e.target;
|
1487
1489
|
handleMouseoutDragSection(target);
|
1488
|
-
});
|
1490
|
+
}), _handler);
|
1489
1491
|
var getEventName = function getEventName(event) {
|
1490
1492
|
return "".concat(pluginName, "_").concat(event);
|
1491
1493
|
};
|
@@ -3159,7 +3161,8 @@ var getSortFn = function getSortFn(column, sortType) {
|
|
3159
3161
|
} : userFn;
|
3160
3162
|
};
|
3161
3163
|
var getNextSortType = function getNextSortType(sortType) {
|
3162
|
-
var
|
3164
|
+
var _steps;
|
3165
|
+
var steps = (_steps = {}, defineProperty_defineProperty(_steps, SORT_OPTION.NULL, 3), defineProperty_defineProperty(_steps, SORT_OPTION.ASC, 1), defineProperty_defineProperty(_steps, SORT_OPTION.DESC, 2), _steps);
|
3163
3166
|
if (steps[sortType] === undefined) {
|
3164
3167
|
return SORT_OPTION.ASC;
|
3165
3168
|
}
|
@@ -3581,7 +3584,7 @@ var useColumns = function useColumns(props) {
|
|
3581
3584
|
if (thColspan > 1) {
|
3582
3585
|
updateParentThColspan(parent, thColspan - 1);
|
3583
3586
|
}
|
3584
|
-
(_col$children6 = col.children) === null || _col$children6 === void 0
|
3587
|
+
(_col$children6 = col.children) === null || _col$children6 === void 0 ? void 0 : _col$children6.forEach(function (c, index) {
|
3585
3588
|
leftColumnCount = leftColumnCount + foreachAllColumns(c, depth + 1, col, leftColumnCount + index);
|
3586
3589
|
});
|
3587
3590
|
return childLength > 0 ? childLength - 1 : 0;
|
@@ -3604,6 +3607,7 @@ var useColumns = function useColumns(props) {
|
|
3604
3607
|
// resolveDraggableColumn();
|
3605
3608
|
var skipColNum = 0;
|
3606
3609
|
(tableColumnList || []).forEach(function (col, index) {
|
3610
|
+
var _Object$assign2;
|
3607
3611
|
var _ref = needColSpan.value ? getColumnSpanConfig(col, index, skipColNum) : {
|
3608
3612
|
skipCol: false,
|
3609
3613
|
skipColumnNum: 0,
|
@@ -3625,28 +3629,29 @@ var useColumns = function useColumns(props) {
|
|
3625
3629
|
var settings = (_props$settings = props.settings) !== null && _props$settings !== void 0 ? _props$settings : {};
|
3626
3630
|
var filterObj = resolveColumnFilterProp(col);
|
3627
3631
|
if (filterObj.enabled) {
|
3628
|
-
var _filterObj$checked;
|
3629
|
-
setFilterColumns(col,
|
3632
|
+
var _filterObj$checked, _setFilterColumns;
|
3633
|
+
setFilterColumns(col, (_setFilterColumns = {}, defineProperty_defineProperty(_setFilterColumns, COLUMN_ATTRIBUTE.COL_FILTER_FN, filterFn), defineProperty_defineProperty(_setFilterColumns, COLUMN_ATTRIBUTE.COL_FILTER_VALUES, (_filterObj$checked = filterObj.checked) !== null && _filterObj$checked !== void 0 ? _filterObj$checked : []), _setFilterColumns));
|
3630
3634
|
}
|
3631
3635
|
if (enabled) {
|
3632
|
-
|
3636
|
+
var _setSortColumns;
|
3637
|
+
setSortColumns(col, (_setSortColumns = {}, defineProperty_defineProperty(_setSortColumns, COLUMN_ATTRIBUTE.COL_SORT_TYPE, type), defineProperty_defineProperty(_setSortColumns, COLUMN_ATTRIBUTE.COL_SORT_FN, fn), defineProperty_defineProperty(_setSortColumns, COLUMN_ATTRIBUTE.COL_SORT_SCOPE, scope), _setSortColumns));
|
3633
3638
|
}
|
3634
|
-
tableColumnSchema.set(col, (_tableColumnSchema$se = {}, defineProperty_defineProperty(
|
3639
|
+
tableColumnSchema.set(col, (_tableColumnSchema$se = {}, defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.CALC_WIDTH, undefined), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.RESIZE_WIDTH, undefined), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_RECT, (0,external_vue_namespaceObject.reactive)({
|
3635
3640
|
width: null,
|
3636
3641
|
left: null,
|
3637
3642
|
right: null,
|
3638
3643
|
height: null
|
3639
|
-
})), COLUMN_ATTRIBUTE.COL_MIN_WIDTH, resolveMinWidth(col)), COLUMN_ATTRIBUTE.LISTENERS, new Map()), COLUMN_ATTRIBUTE.WIDTH, col.width), COLUMN_ATTRIBUTE.IS_HIDDEN, isColumnHidden((_settings$fields = settings.fields) !== null && _settings$fields !== void 0 ? _settings$fields : [], col, (_settings$checked = settings.checked) !== null && _settings$checked !== void 0 ? _settings$checked : [])), COLUMN_ATTRIBUTE.COL_SORT_TYPE, (0,external_vue_namespaceObject.ref)(type)), COLUMN_ATTRIBUTE.COL_SORT_FN, fn), COLUMN_ATTRIBUTE.COL_FILTER_OBJ, filterObj), defineProperty_defineProperty(
|
3644
|
+
})), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_MIN_WIDTH, resolveMinWidth(col)), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.LISTENERS, new Map()), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.WIDTH, col.width), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.IS_HIDDEN, isColumnHidden((_settings$fields = settings.fields) !== null && _settings$fields !== void 0 ? _settings$fields : [], col, (_settings$checked = settings.checked) !== null && _settings$checked !== void 0 ? _settings$checked : [])), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_SORT_TYPE, (0,external_vue_namespaceObject.ref)(type)), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_SORT_FN, fn), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_FILTER_OBJ, filterObj), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_FILTER_FN, filterFn), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_FILTER_SCOPE, undefined), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_SORT_SCOPE, scope), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_SORT_ACTIVE, (0,external_vue_namespaceObject.ref)(active)), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_IS_DRAG, false), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_SPAN, {
|
3640
3645
|
skipCol: skipCol,
|
3641
3646
|
skipColumnNum: skipColumnNum,
|
3642
3647
|
skipColLen: skipColLen
|
3643
|
-
}), COLUMN_ATTRIBUTE.COL_UID, esm_browser_v4()), COLUMN_ATTRIBUTE.SELECTION_DISABLED, false), COLUMN_ATTRIBUTE.SELECTION_INDETERMINATE, false), COLUMN_ATTRIBUTE.SELECTION_VAL, false), defineProperty_defineProperty(
|
3648
|
+
}), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_UID, esm_browser_v4()), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.SELECTION_DISABLED, false), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.SELECTION_INDETERMINATE, false), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.SELECTION_VAL, false), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_RESIZEABLE, col.resizable !== false), defineProperty_defineProperty(_tableColumnSchema$se, COLUMN_ATTRIBUTE.COL_FIXED_STYLE, (0,external_vue_namespaceObject.reactive)({})), _tableColumnSchema$se));
|
3644
3649
|
}
|
3645
|
-
Object.assign(tableColumnSchema.get(col),
|
3650
|
+
Object.assign(tableColumnSchema.get(col), (_Object$assign2 = {}, defineProperty_defineProperty(_Object$assign2, COLUMN_ATTRIBUTE.COL_SPAN, {
|
3646
3651
|
skipCol: skipCol,
|
3647
3652
|
skipColumnNum: skipColumnNum,
|
3648
3653
|
skipColLen: skipColLen
|
3649
|
-
}), COLUMN_ATTRIBUTE.COL_MIN_WIDTH, resolveMinWidth(col)));
|
3654
|
+
}), defineProperty_defineProperty(_Object$assign2, COLUMN_ATTRIBUTE.COL_MIN_WIDTH, resolveMinWidth(col)), _Object$assign2));
|
3650
3655
|
});
|
3651
3656
|
};
|
3652
3657
|
var setFixedStyle = function setFixedStyle(column, style) {
|
@@ -3684,7 +3689,7 @@ var useColumns = function useColumns(props) {
|
|
3684
3689
|
tableColumnList.push.apply(tableColumnList, _toConsumableArray(flatColumnTemplate(columns)));
|
3685
3690
|
formatColumns();
|
3686
3691
|
setVisibleColumns();
|
3687
|
-
onComplete === null || onComplete === void 0
|
3692
|
+
onComplete === null || onComplete === void 0 ? void 0 : onComplete();
|
3688
3693
|
});
|
3689
3694
|
var setColumnIsHidden = function setColumnIsHidden(column) {
|
3690
3695
|
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
@@ -3694,11 +3699,12 @@ var useColumns = function useColumns(props) {
|
|
3694
3699
|
setColumnAttribute(column, COLUMN_ATTRIBUTE.RESIZE_WIDTH, value);
|
3695
3700
|
};
|
3696
3701
|
var setColumnSortOption = function setColumnSortOption(column, option) {
|
3702
|
+
var _target;
|
3697
3703
|
var type = option.type,
|
3698
3704
|
fn = option.fn,
|
3699
3705
|
scope = option.scope,
|
3700
3706
|
active = option.active;
|
3701
|
-
var target =
|
3707
|
+
var target = (_target = {}, defineProperty_defineProperty(_target, COLUMN_ATTRIBUTE.COL_SORT_TYPE, type), defineProperty_defineProperty(_target, COLUMN_ATTRIBUTE.COL_SORT_FN, fn), defineProperty_defineProperty(_target, COLUMN_ATTRIBUTE.COL_SORT_ACTIVE, active), defineProperty_defineProperty(_target, COLUMN_ATTRIBUTE.COL_SORT_SCOPE, scope), _target);
|
3702
3708
|
[COLUMN_ATTRIBUTE.COL_SORT_TYPE, COLUMN_ATTRIBUTE.COL_SORT_FN, COLUMN_ATTRIBUTE.COL_SORT_ACTIVE, COLUMN_ATTRIBUTE.COL_SORT_SCOPE].forEach(function (name) {
|
3703
3709
|
if (target[name] !== undefined) {
|
3704
3710
|
setColumnAttribute(column, name, target[name]);
|
@@ -3802,7 +3808,8 @@ var useColumns = function useColumns(props) {
|
|
3802
3808
|
return (_tableColumnSchema$ge2 = tableColumnSchema.get(col)) === null || _tableColumnSchema$ge2 === void 0 ? void 0 : _tableColumnSchema$ge2[attributeName];
|
3803
3809
|
};
|
3804
3810
|
var getColumnClass = function getColumnClass(column, colIndex) {
|
3805
|
-
|
3811
|
+
var _ref4;
|
3812
|
+
return _ref4 = {}, defineProperty_defineProperty(_ref4, "".concat(uuid, "-column-").concat(colIndex), false), defineProperty_defineProperty(_ref4, "column_fixed", !!column.fixed), defineProperty_defineProperty(_ref4, "column_fixed_left", !!column.fixed), defineProperty_defineProperty(_ref4, "column_fixed_right", column.fixed === 'right'), _ref4;
|
3806
3813
|
};
|
3807
3814
|
var getHeadColumnClass = function getHeadColumnClass(column, colIndex) {
|
3808
3815
|
return use_columns_objectSpread({}, getColumnClass(column, colIndex));
|
@@ -3995,7 +4002,7 @@ var useColumns = function useColumns(props) {
|
|
3995
4002
|
};
|
3996
4003
|
var beforeEventFire = function beforeEventFire(fn) {
|
3997
4004
|
if (props.rowDraggable) {
|
3998
|
-
fn === null || fn === void 0
|
4005
|
+
fn === null || fn === void 0 ? void 0 : fn();
|
3999
4006
|
}
|
4000
4007
|
};
|
4001
4008
|
var getTargetRow = function getTargetRow(event) {
|
@@ -4118,21 +4125,21 @@ var useColumns = function useColumns(props) {
|
|
4118
4125
|
* 固定列Hooks
|
4119
4126
|
*/
|
4120
4127
|
/* harmony default export */ const use_fixed_column = (function (_props, columns) {
|
4121
|
-
var fixedLeftColumns =
|
4128
|
+
var fixedLeftColumns = computed(function () {
|
4122
4129
|
return columns.visibleColumns.filter(function (column) {
|
4123
4130
|
return !!column.fixed && column.fixed !== 'right';
|
4124
4131
|
});
|
4125
4132
|
});
|
4126
|
-
var fixedRightColumns =
|
4133
|
+
var fixedRightColumns = computed(function () {
|
4127
4134
|
return columns.visibleColumns.filter(function (column) {
|
4128
4135
|
return !!column.fixed && column.fixed === 'right';
|
4129
4136
|
});
|
4130
4137
|
});
|
4131
|
-
var fixedLeftStyle =
|
4138
|
+
var fixedLeftStyle = reactive({
|
4132
4139
|
left: 0,
|
4133
4140
|
width: '0'
|
4134
4141
|
});
|
4135
|
-
var fixedRightStyle =
|
4142
|
+
var fixedRightStyle = reactive({
|
4136
4143
|
right: 0,
|
4137
4144
|
width: '0'
|
4138
4145
|
});
|
@@ -4227,7 +4234,7 @@ const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
|
4227
4234
|
* IN THE SOFTWARE.
|
4228
4235
|
*/
|
4229
4236
|
|
4230
|
-
/* harmony default export */ const ghost_body = (
|
4237
|
+
/* harmony default export */ const ghost_body = (defineComponent({
|
4231
4238
|
name: 'GhostBody',
|
4232
4239
|
setup: function setup(_, ctx) {
|
4233
4240
|
var columnGhostStyle = {
|
@@ -4373,6 +4380,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
4373
4380
|
|
4374
4381
|
|
4375
4382
|
/* harmony default export */ const use_layout = (function (props, ctx) {
|
4383
|
+
var _bodyClass;
|
4376
4384
|
var refRoot = (0,external_vue_namespaceObject.ref)(null);
|
4377
4385
|
var refHead = (0,external_vue_namespaceObject.ref)(null);
|
4378
4386
|
var refBody = (0,external_vue_namespaceObject.ref)(null);
|
@@ -4409,22 +4417,23 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
4409
4417
|
};
|
4410
4418
|
});
|
4411
4419
|
var headClass = (0,external_vue_namespaceObject.computed)(function () {
|
4412
|
-
|
4420
|
+
var _classes2;
|
4421
|
+
return (0,shared_namespaceObject.classes)((_classes2 = {}, defineProperty_defineProperty(_classes2, resolveClassName('table-head'), true), defineProperty_defineProperty(_classes2, 'has-settings', !!props.settings), defineProperty_defineProperty(_classes2, 'has-group', headerRowCount.value > 1), _classes2));
|
4413
4422
|
});
|
4414
4423
|
var setFixedColumnShawdow = function setFixedColumnShawdow() {
|
4415
4424
|
var _refRoot$value, _refRoot$value2;
|
4416
4425
|
var rightShawdow = offsetRight.value > 0 ? '0 0 10px rgb(0 0 0 / 12%)' : null;
|
4417
4426
|
var leftShawdow = translateX.value > 0 ? '0 0 10px rgb(0 0 0 / 12%)' : null;
|
4418
|
-
(_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 || (_refRoot$value = _refRoot$value.style) === null || _refRoot$value === void 0
|
4419
|
-
(_refRoot$value2 = refRoot.value) === null || _refRoot$value2 === void 0 || (_refRoot$value2 = _refRoot$value2.style) === null || _refRoot$value2 === void 0
|
4427
|
+
(_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 || (_refRoot$value = _refRoot$value.style) === null || _refRoot$value === void 0 ? void 0 : _refRoot$value.setProperty('--shadow-right', rightShawdow);
|
4428
|
+
(_refRoot$value2 = refRoot.value) === null || _refRoot$value2 === void 0 || (_refRoot$value2 = _refRoot$value2.style) === null || _refRoot$value2 === void 0 ? void 0 : _refRoot$value2.setProperty('--shadow-left', leftShawdow);
|
4420
4429
|
};
|
4421
4430
|
var setRootStyleVars = (0,shared_namespaceObject.throttle)(function () {
|
4422
4431
|
var _refRoot$value3, _refRoot$value4, _refRoot$value5, _refRoot$value6, _refRoot$value7;
|
4423
|
-
(_refRoot$value3 = refRoot.value) === null || _refRoot$value3 === void 0 || (_refRoot$value3 = _refRoot$value3.style) === null || _refRoot$value3 === void 0
|
4424
|
-
(_refRoot$value4 = refRoot.value) === null || _refRoot$value4 === void 0 || (_refRoot$value4 = _refRoot$value4.style) === null || _refRoot$value4 === void 0
|
4425
|
-
(_refRoot$value5 = refRoot.value) === null || _refRoot$value5 === void 0 || (_refRoot$value5 = _refRoot$value5.style) === null || _refRoot$value5 === void 0
|
4426
|
-
(_refRoot$value6 = refRoot.value) === null || _refRoot$value6 === void 0 || (_refRoot$value6 = _refRoot$value6.style) === null || _refRoot$value6 === void 0
|
4427
|
-
(_refRoot$value7 = refRoot.value) === null || _refRoot$value7 === void 0 || (_refRoot$value7 = _refRoot$value7.style) === null || _refRoot$value7 === void 0
|
4432
|
+
(_refRoot$value3 = refRoot.value) === null || _refRoot$value3 === void 0 || (_refRoot$value3 = _refRoot$value3.style) === null || _refRoot$value3 === void 0 ? void 0 : _refRoot$value3.setProperty('--drag-offset-x', "".concat(dragOffsetX.value + translateX.value, "px"));
|
4433
|
+
(_refRoot$value4 = refRoot.value) === null || _refRoot$value4 === void 0 || (_refRoot$value4 = _refRoot$value4.style) === null || _refRoot$value4 === void 0 ? void 0 : _refRoot$value4.setProperty('--drag-offset-h-x', "".concat(dragOffsetX.value - 2, "px"));
|
4434
|
+
(_refRoot$value5 = refRoot.value) === null || _refRoot$value5 === void 0 || (_refRoot$value5 = _refRoot$value5.style) === null || _refRoot$value5 === void 0 ? void 0 : _refRoot$value5.setProperty('--translate-y', "".concat(translateY.value, "px"));
|
4435
|
+
(_refRoot$value6 = refRoot.value) === null || _refRoot$value6 === void 0 || (_refRoot$value6 = _refRoot$value6.style) === null || _refRoot$value6 === void 0 ? void 0 : _refRoot$value6.setProperty('--translate-x', "".concat(translateX.value, "px"));
|
4436
|
+
(_refRoot$value7 = refRoot.value) === null || _refRoot$value7 === void 0 || (_refRoot$value7 = _refRoot$value7.style) === null || _refRoot$value7 === void 0 ? void 0 : _refRoot$value7.setProperty('--translate-x-1', "-".concat(translateX.value, "px"));
|
4428
4437
|
setFixedColumnShawdow();
|
4429
4438
|
});
|
4430
4439
|
var setTranslateX = function setTranslateX(val) {
|
@@ -4440,11 +4449,11 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
4440
4449
|
};
|
4441
4450
|
var initRootStyleVars = function initRootStyleVars() {
|
4442
4451
|
var _refRoot$value8, _refRoot$value9, _refRoot$value10, _refRoot$value11, _refRoot$value12;
|
4443
|
-
(_refRoot$value8 = refRoot.value) === null || _refRoot$value8 === void 0 || (_refRoot$value8 = _refRoot$value8.style) === null || _refRoot$value8 === void 0
|
4444
|
-
(_refRoot$value9 = refRoot.value) === null || _refRoot$value9 === void 0 || (_refRoot$value9 = _refRoot$value9.style) === null || _refRoot$value9 === void 0
|
4445
|
-
(_refRoot$value10 = refRoot.value) === null || _refRoot$value10 === void 0 || (_refRoot$value10 = _refRoot$value10.style) === null || _refRoot$value10 === void 0
|
4446
|
-
(_refRoot$value11 = refRoot.value) === null || _refRoot$value11 === void 0 || (_refRoot$value11 = _refRoot$value11.style) === null || _refRoot$value11 === void 0
|
4447
|
-
(_refRoot$value12 = refRoot.value) === null || _refRoot$value12 === void 0 || (_refRoot$value12 = _refRoot$value12.style) === null || _refRoot$value12 === void 0
|
4452
|
+
(_refRoot$value8 = refRoot.value) === null || _refRoot$value8 === void 0 || (_refRoot$value8 = _refRoot$value8.style) === null || _refRoot$value8 === void 0 ? void 0 : _refRoot$value8.setProperty('--drag-offset-x', '-1000px');
|
4453
|
+
(_refRoot$value9 = refRoot.value) === null || _refRoot$value9 === void 0 || (_refRoot$value9 = _refRoot$value9.style) === null || _refRoot$value9 === void 0 ? void 0 : _refRoot$value9.setProperty('--drag-offset-h-x', '-1000px');
|
4454
|
+
(_refRoot$value10 = refRoot.value) === null || _refRoot$value10 === void 0 || (_refRoot$value10 = _refRoot$value10.style) === null || _refRoot$value10 === void 0 ? void 0 : _refRoot$value10.setProperty('--translate-y', '0px');
|
4455
|
+
(_refRoot$value11 = refRoot.value) === null || _refRoot$value11 === void 0 || (_refRoot$value11 = _refRoot$value11.style) === null || _refRoot$value11 === void 0 ? void 0 : _refRoot$value11.setProperty('--translate-x', '0px');
|
4456
|
+
(_refRoot$value12 = refRoot.value) === null || _refRoot$value12 === void 0 || (_refRoot$value12 = _refRoot$value12.style) === null || _refRoot$value12 === void 0 ? void 0 : _refRoot$value12.setProperty('--translate-x-1', '0px');
|
4448
4457
|
};
|
4449
4458
|
var setDragOffsetX = function setDragOffsetX(val) {
|
4450
4459
|
dragOffsetX.value = val;
|
@@ -4462,9 +4471,10 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
4462
4471
|
paddingRight: props.scrollbar ? null : "".concat(SCROLLY_WIDTH, "px")
|
4463
4472
|
};
|
4464
4473
|
});
|
4465
|
-
var bodyClass =
|
4474
|
+
var bodyClass = (_bodyClass = {}, defineProperty_defineProperty(_bodyClass, resolveClassName('table-body'), true), defineProperty_defineProperty(_bodyClass, 'is-bk-scrollbar', props.scrollbar), _bodyClass);
|
4466
4475
|
var footerClass = (0,external_vue_namespaceObject.computed)(function () {
|
4467
|
-
|
4476
|
+
var _classes3;
|
4477
|
+
return (0,shared_namespaceObject.classes)((_classes3 = {}, defineProperty_defineProperty(_classes3, resolveClassName('table-footer'), true), defineProperty_defineProperty(_classes3, 'is-hidden', footHeight.value === 0), _classes3));
|
4468
4478
|
});
|
4469
4479
|
var renderContainer = function renderContainer(childrend) {
|
4470
4480
|
var _ctx$slots$default, _ctx$slots2;
|
@@ -4582,10 +4592,12 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
4582
4592
|
'resize-column': true
|
4583
4593
|
};
|
4584
4594
|
var scrollContentClass = (0,external_vue_namespaceObject.computed)(function () {
|
4585
|
-
|
4595
|
+
var _ref2;
|
4596
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, resolveClassName('table-body-content'), true), defineProperty_defineProperty(_ref2, resolveClassName('stripe'), props.stripe), _ref2;
|
4586
4597
|
});
|
4587
4598
|
var fixedWrapperClass = (0,external_vue_namespaceObject.computed)(function () {
|
4588
|
-
|
4599
|
+
var _ref3;
|
4600
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, resolveClassName('table-fixed'), true), defineProperty_defineProperty(_ref3, 'has-virtual-scroll', props.virtualEnabled), _ref3;
|
4589
4601
|
});
|
4590
4602
|
var fixedBottomRow = resolveClassName('table-fixed-bottom');
|
4591
4603
|
var fixedBottomLoadingStyle = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -4727,7 +4739,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
4727
4739
|
}
|
4728
4740
|
dispose();
|
4729
4741
|
instance = observerResize(target.value, function () {
|
4730
|
-
fn === null || fn === void 0
|
4742
|
+
fn === null || fn === void 0 ? void 0 : fn.apply.apply(fn, _toConsumableArray(args));
|
4731
4743
|
}, 60, true, 'debounce');
|
4732
4744
|
if (immediate) {
|
4733
4745
|
instance.start();
|
@@ -4888,8 +4900,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
4888
4900
|
|
4889
4901
|
|
4890
4902
|
|
4891
|
-
|
4892
|
-
/* harmony default export */ const body_empty = ((0,external_vue_namespaceObject.defineComponent)({
|
4903
|
+
/* harmony default export */ const body_empty = (defineComponent({
|
4893
4904
|
name: 'BodyEmpty',
|
4894
4905
|
props: {
|
4895
4906
|
list: shared_namespaceObject.PropTypes.array.def([]),
|
@@ -4899,13 +4910,13 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
4899
4910
|
emits: ['change'],
|
4900
4911
|
setup: function setup(props) {
|
4901
4912
|
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
4902
|
-
var localEmptyText =
|
4913
|
+
var localEmptyText = computed(function () {
|
4903
4914
|
if (props.emptyText === undefined) {
|
4904
4915
|
return t.value.emptyText;
|
4905
4916
|
}
|
4906
4917
|
return props.emptyText;
|
4907
4918
|
});
|
4908
|
-
var type =
|
4919
|
+
var type = computed(function () {
|
4909
4920
|
return props.list.length === 0 ? 'empty' : 'search-empty';
|
4910
4921
|
});
|
4911
4922
|
return function () {
|
@@ -5141,7 +5152,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
5141
5152
|
}
|
5142
5153
|
} else {
|
5143
5154
|
var _bkEllipsisIns;
|
5144
|
-
(_bkEllipsisIns = bkEllipsisIns) === null || _bkEllipsisIns === void 0
|
5155
|
+
(_bkEllipsisIns = bkEllipsisIns) === null || _bkEllipsisIns === void 0 ? void 0 : _bkEllipsisIns.destroyInstance(target);
|
5145
5156
|
bkEllipsisIns = null;
|
5146
5157
|
}
|
5147
5158
|
};
|
@@ -5171,7 +5182,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
5171
5182
|
if (entries[0].intersectionRatio <= 0) {
|
5172
5183
|
var _bkEllipsisIns2;
|
5173
5184
|
renderSlots.value = false;
|
5174
|
-
(_bkEllipsisIns2 = bkEllipsisIns) === null || _bkEllipsisIns2 === void 0
|
5185
|
+
(_bkEllipsisIns2 = bkEllipsisIns) === null || _bkEllipsisIns2 === void 0 ? void 0 : _bkEllipsisIns2.destroyInstance(refRoot.value);
|
5175
5186
|
return;
|
5176
5187
|
}
|
5177
5188
|
renderSlots.value = true;
|
@@ -5179,7 +5190,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
5179
5190
|
}, {
|
5180
5191
|
threshold: 0.5
|
5181
5192
|
});
|
5182
|
-
(_intersectionObserver = intersectionObserver) === null || _intersectionObserver === void 0
|
5193
|
+
(_intersectionObserver = intersectionObserver) === null || _intersectionObserver === void 0 ? void 0 : _intersectionObserver.observe(refRoot.value);
|
5183
5194
|
};
|
5184
5195
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
5185
5196
|
initObserver();
|
@@ -5190,10 +5201,10 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
5190
5201
|
});
|
5191
5202
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
5192
5203
|
var _resizeObserverIns, _bkEllipsisIns3, _intersectionObserver2;
|
5193
|
-
(_resizeObserverIns = resizeObserverIns) === null || _resizeObserverIns === void 0
|
5204
|
+
(_resizeObserverIns = resizeObserverIns) === null || _resizeObserverIns === void 0 ? void 0 : _resizeObserverIns.disconnect();
|
5194
5205
|
resizeObserverIns = null;
|
5195
|
-
(_bkEllipsisIns3 = bkEllipsisIns) === null || _bkEllipsisIns3 === void 0
|
5196
|
-
(_intersectionObserver2 = intersectionObserver) === null || _intersectionObserver2 === void 0
|
5206
|
+
(_bkEllipsisIns3 = bkEllipsisIns) === null || _bkEllipsisIns3 === void 0 ? void 0 : _bkEllipsisIns3.destroyInstance(refRoot.value);
|
5207
|
+
(_intersectionObserver2 = intersectionObserver) === null || _intersectionObserver2 === void 0 ? void 0 : _intersectionObserver2.disconnect();
|
5197
5208
|
intersectionObserver = null;
|
5198
5209
|
});
|
5199
5210
|
var hasExplain = props.headExplain || props.column.explain;
|
@@ -5235,7 +5246,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
5235
5246
|
* IN THE SOFTWARE.
|
5236
5247
|
*/
|
5237
5248
|
|
5238
|
-
/* harmony default export */ const table_row = (
|
5249
|
+
/* harmony default export */ const table_row = (defineComponent({
|
5239
5250
|
name: 'TableRow',
|
5240
5251
|
render: function render() {
|
5241
5252
|
var _this$$slots$default, _this$$slots;
|
@@ -5260,7 +5271,6 @@ var isEmpty_y = x => () => x
|
|
5260
5271
|
const isEmpty_namespaceObject = isEmpty_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEmpty_e109fd6b__["default"] });
|
5261
5272
|
;// CONCATENATED MODULE: ../../packages/table/src/hooks/use-cell.tsx
|
5262
5273
|
|
5263
|
-
|
5264
5274
|
/*
|
5265
5275
|
* Tencent is pleased to support the open source community by making
|
5266
5276
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -5418,7 +5428,7 @@ const isEmpty_namespaceObject = isEmpty_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
5418
5428
|
var defaultFn = function defaultFn() {
|
5419
5429
|
var type = resolvePropVal(column, 'type', [column, row]);
|
5420
5430
|
if (type === 'index') {
|
5421
|
-
return rows.getRowAttribute(
|
5431
|
+
return rows.getRowAttribute(toRaw(row), TABLE_ROW_ATTRIBUTE.ROW_INDEX);
|
5422
5432
|
}
|
5423
5433
|
var key = resolvePropVal(column, 'field', [column, row]);
|
5424
5434
|
var cell = getRowText(row, key);
|
@@ -5429,7 +5439,7 @@ const isEmpty_namespaceObject = isEmpty_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
5429
5439
|
return "".concat(cell);
|
5430
5440
|
}
|
5431
5441
|
if (typeof_typeof(cell) === 'object' && cell !== null) {
|
5432
|
-
return JSON.stringify(
|
5442
|
+
return JSON.stringify(unref(cell));
|
5433
5443
|
}
|
5434
5444
|
if (isEmptyCellText(cell)) {
|
5435
5445
|
var emptyCellText = props.emptyCellText;
|
@@ -5769,7 +5779,8 @@ var ROW_HEIGHT = 32;
|
|
5769
5779
|
deep: true
|
5770
5780
|
});
|
5771
5781
|
var headClass = (0,external_vue_namespaceObject.computed)(function () {
|
5772
|
-
|
5782
|
+
var _classes;
|
5783
|
+
return (0,shared_namespaceObject.classes)((_classes = {}, defineProperty_defineProperty(_classes, resolveClassName('table-head-action'), true), defineProperty_defineProperty(_classes, 'column-filter', true), defineProperty_defineProperty(_classes, '--row-height', "".concat(props.height, "px")), defineProperty_defineProperty(_classes, "active", state.checked.length), defineProperty_defineProperty(_classes, "opened", state.isOpen), _classes));
|
5773
5784
|
});
|
5774
5785
|
var headFilterContentClass = (0,shared_namespaceObject.classes)(defineProperty_defineProperty({}, resolveClassName('table-head-filter'), true));
|
5775
5786
|
var refVirtualRender = (0,external_vue_namespaceObject.ref)(null);
|
@@ -5777,7 +5788,7 @@ var ROW_HEIGHT = 32;
|
|
5777
5788
|
state.isOpen = isOpen;
|
5778
5789
|
isOpen && setTimeout(function () {
|
5779
5790
|
var _refVirtualRender$val;
|
5780
|
-
(_refVirtualRender$val = refVirtualRender.value) === null || _refVirtualRender$val === void 0
|
5791
|
+
(_refVirtualRender$val = refVirtualRender.value) === null || _refVirtualRender$val === void 0 ? void 0 : _refVirtualRender$val.reset();
|
5781
5792
|
});
|
5782
5793
|
if (!isOpen) {
|
5783
5794
|
searchValue.value = '';
|
@@ -5912,7 +5923,7 @@ var ROW_HEIGHT = 32;
|
|
5912
5923
|
handleFilterChange();
|
5913
5924
|
};
|
5914
5925
|
var renderDisplayTooltip = /*#__PURE__*/function () {
|
5915
|
-
var _ref2 = _asyncToGenerator(
|
5926
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
5916
5927
|
return regenerator_default().wrap(function _callee$(_context) {
|
5917
5928
|
while (1) switch (_context.prev = _context.next) {
|
5918
5929
|
case 0:
|
@@ -6026,31 +6037,31 @@ function _arrayWithHoles(arr) {
|
|
6026
6037
|
if (Array.isArray(arr)) return arr;
|
6027
6038
|
}
|
6028
6039
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
6029
|
-
function _iterableToArrayLimit(
|
6030
|
-
var
|
6031
|
-
if (null !=
|
6032
|
-
var
|
6033
|
-
|
6034
|
-
|
6035
|
-
|
6036
|
-
|
6037
|
-
|
6038
|
-
|
6040
|
+
function _iterableToArrayLimit(arr, i) {
|
6041
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
6042
|
+
if (null != _i) {
|
6043
|
+
var _s,
|
6044
|
+
_e,
|
6045
|
+
_x,
|
6046
|
+
_r,
|
6047
|
+
_arr = [],
|
6048
|
+
_n = !0,
|
6049
|
+
_d = !1;
|
6039
6050
|
try {
|
6040
|
-
if (
|
6041
|
-
if (Object(
|
6042
|
-
|
6043
|
-
} else for (; !(
|
6044
|
-
} catch (
|
6045
|
-
|
6051
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
6052
|
+
if (Object(_i) !== _i) return;
|
6053
|
+
_n = !1;
|
6054
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
6055
|
+
} catch (err) {
|
6056
|
+
_d = !0, _e = err;
|
6046
6057
|
} finally {
|
6047
6058
|
try {
|
6048
|
-
if (!
|
6059
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
6049
6060
|
} finally {
|
6050
|
-
if (
|
6061
|
+
if (_d) throw _e;
|
6051
6062
|
}
|
6052
6063
|
}
|
6053
|
-
return
|
6064
|
+
return _arr;
|
6054
6065
|
}
|
6055
6066
|
}
|
6056
6067
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
@@ -6206,7 +6217,6 @@ const _namespaceObject = _x({ ["AngleDownFill"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
6206
6217
|
|
6207
6218
|
|
6208
6219
|
|
6209
|
-
|
6210
6220
|
function use_head_isSlot(s) {
|
6211
6221
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
6212
6222
|
}
|
@@ -6218,10 +6228,10 @@ function use_head_isSlot(s) {
|
|
6218
6228
|
ctx = _ref.ctx,
|
6219
6229
|
column = _ref.column,
|
6220
6230
|
index = _ref.index;
|
6221
|
-
var sortType =
|
6222
|
-
var sortActive =
|
6223
|
-
var rawColumn =
|
6224
|
-
var refDropdownPop =
|
6231
|
+
var sortType = ref(columns.getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_TYPE));
|
6232
|
+
var sortActive = ref(columns.getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_ACTIVE));
|
6233
|
+
var rawColumn = toRaw(column);
|
6234
|
+
var refDropdownPop = ref(null);
|
6225
6235
|
/**
|
6226
6236
|
* 点击排序事件
|
6227
6237
|
* @param sortFn 排序函数
|
@@ -6265,7 +6275,7 @@ function use_head_isSlot(s) {
|
|
6265
6275
|
var handleFilterChange = function handleFilterChange(checked) {
|
6266
6276
|
ctx.emit(EMIT_EVENTS.COLUMN_FILTER, {
|
6267
6277
|
checked: checked,
|
6268
|
-
column:
|
6278
|
+
column: unref(column),
|
6269
6279
|
index: index
|
6270
6280
|
});
|
6271
6281
|
};
|
@@ -6279,7 +6289,7 @@ function use_head_isSlot(s) {
|
|
6279
6289
|
columns.setColumnAttribute(column, COLUMN_ATTRIBUTE.COL_FILTER_VALUES, []);
|
6280
6290
|
ctx.emit(EMIT_EVENTS.COLUMN_FILTER, {
|
6281
6291
|
checked: [],
|
6282
|
-
column:
|
6292
|
+
column: unref(column),
|
6283
6293
|
index: index
|
6284
6294
|
});
|
6285
6295
|
};
|
@@ -6451,12 +6461,12 @@ function use_head_isSlot(s) {
|
|
6451
6461
|
'--background-color': DEF_COLOR[(_props$thead$color = (_props$thead = props.thead) === null || _props$thead === void 0 ? void 0 : _props$thead.color) !== null && _props$thead$color !== void 0 ? _props$thead$color : IHeadColor.DEF1]
|
6452
6462
|
});
|
6453
6463
|
var group = columns.getGroupAttribute(rawColumn);
|
6454
|
-
var classList =
|
6464
|
+
var classList = computed(function () {
|
6455
6465
|
return [columns.getHeadColumnClass(column, index), columns.getColumnCustomClass(column), column.align || props.headerAlign || props.align, {
|
6456
6466
|
'is-last-child': (group === null || group === void 0 ? void 0 : group.offsetLeft) + 1 === columns.visibleColumns.length
|
6457
6467
|
}];
|
6458
6468
|
});
|
6459
|
-
var groupClass =
|
6469
|
+
var groupClass = computed(function () {
|
6460
6470
|
return classList.value.concat([{
|
6461
6471
|
'is-head-group': group === null || group === void 0 ? void 0 : group.isGroup,
|
6462
6472
|
'is-head-group-child': !!(group !== null && group !== void 0 && group.parent)
|
@@ -6587,7 +6597,6 @@ var multiShiftKey = function multiShiftKey(props) {
|
|
6587
6597
|
;// CONCATENATED MODULE: ../../packages/table/src/hooks/use-render.tsx
|
6588
6598
|
|
6589
6599
|
|
6590
|
-
|
6591
6600
|
/*
|
6592
6601
|
* Tencent is pleased to support the open source community by making
|
6593
6602
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -6766,7 +6775,7 @@ function use_render_isSlot(s) {
|
|
6766
6775
|
*/
|
6767
6776
|
var renderTBody = function renderTBody(list) {
|
6768
6777
|
var dataList = list !== null && list !== void 0 ? list : rows.pageRowList;
|
6769
|
-
var localEmptyText =
|
6778
|
+
var localEmptyText = computed(function () {
|
6770
6779
|
if (props.emptyText === undefined) {
|
6771
6780
|
return t.value.emptyText;
|
6772
6781
|
}
|
@@ -7029,7 +7038,7 @@ function use_render_isSlot(s) {
|
|
7029
7038
|
}), null);
|
7030
7039
|
}
|
7031
7040
|
};
|
7032
|
-
|
7041
|
+
onUnmounted(function () {
|
7033
7042
|
multiShiftKey.removeMultiCheckedEvents();
|
7034
7043
|
});
|
7035
7044
|
return {
|
@@ -7124,6 +7133,7 @@ var useRows = function useRows(props) {
|
|
7124
7133
|
* @param data
|
7125
7134
|
*/
|
7126
7135
|
var formatDataSchema = function formatDataSchema() {
|
7136
|
+
var _tableRowSchema$set2;
|
7127
7137
|
var hasSelectedRow = false;
|
7128
7138
|
var hasUnSelectedRow = false;
|
7129
7139
|
tableRowList.value.forEach(function (item, index) {
|
@@ -7136,7 +7146,8 @@ var useRows = function useRows(props) {
|
|
7136
7146
|
hasUnSelectedRow = true;
|
7137
7147
|
}
|
7138
7148
|
if (!tableRowSchema.has(row)) {
|
7139
|
-
|
7149
|
+
var _tableRowSchema$set;
|
7150
|
+
tableRowSchema.set(row, (_tableRowSchema$set = {}, defineProperty_defineProperty(_tableRowSchema$set, TABLE_ROW_ATTRIBUTE.ROW_EXPAND, false), defineProperty_defineProperty(_tableRowSchema$set, TABLE_ROW_ATTRIBUTE.ROW_SELECTION, isSelected), defineProperty_defineProperty(_tableRowSchema$set, TABLE_ROW_ATTRIBUTE.ROW_UID, rowId), defineProperty_defineProperty(_tableRowSchema$set, TABLE_ROW_ATTRIBUTE.ROW_INDEX, index + 1), defineProperty_defineProperty(_tableRowSchema$set, TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, false), _tableRowSchema$set));
|
7140
7151
|
}
|
7141
7152
|
// 当传入的data改变时,更新相关属性
|
7142
7153
|
// ROW_EXPAND & ROW_SELECTION & ROW_UID 不做更新
|
@@ -7145,7 +7156,7 @@ var useRows = function useRows(props) {
|
|
7145
7156
|
target[TABLE_ROW_ATTRIBUTE.ROW_INDEX] = index + 1;
|
7146
7157
|
target[TABLE_ROW_ATTRIBUTE.ROW_HEIGHT] = getSelfRowHeight(item, index);
|
7147
7158
|
});
|
7148
|
-
tableRowSchema.set(CHECK_ALL_OBJ,
|
7159
|
+
tableRowSchema.set(CHECK_ALL_OBJ, (_tableRowSchema$set2 = {}, defineProperty_defineProperty(_tableRowSchema$set2, TABLE_ROW_ATTRIBUTE.ROW_SELECTION, hasSelectedRow), defineProperty_defineProperty(_tableRowSchema$set2, TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, hasSelectedRow && hasUnSelectedRow), _tableRowSchema$set2));
|
7149
7160
|
};
|
7150
7161
|
var getSelectionRowArgs = function getSelectionRowArgs(row, index) {
|
7151
7162
|
return {
|
@@ -7178,8 +7189,9 @@ var useRows = function useRows(props) {
|
|
7178
7189
|
setRowSelection(row, !getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION));
|
7179
7190
|
};
|
7180
7191
|
var toggleAllSelection = function toggleAllSelection(value) {
|
7192
|
+
var _tableRowSchema$set4;
|
7181
7193
|
var val = value !== null && value !== void 0 ? value : !isCheckedAll();
|
7182
|
-
tableRowSchema.set(CHECK_ALL_OBJ,
|
7194
|
+
tableRowSchema.set(CHECK_ALL_OBJ, (_tableRowSchema$set4 = {}, defineProperty_defineProperty(_tableRowSchema$set4, TABLE_ROW_ATTRIBUTE.ROW_SELECTION, val), defineProperty_defineProperty(_tableRowSchema$set4, TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, false), _tableRowSchema$set4));
|
7183
7195
|
if (props.acrossAll) {
|
7184
7196
|
tableRowList.value.forEach(function (row, index) {
|
7185
7197
|
return setRowSelection(row, val, index);
|
@@ -7523,8 +7535,8 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
7523
7535
|
Object.assign(options, result);
|
7524
7536
|
columns.setColumnAttributeBySettings(options, result.checked);
|
7525
7537
|
columns.setVisibleColumns();
|
7526
|
-
afterSetting === null || afterSetting === void 0
|
7527
|
-
(_refSetting$value = refSetting.value) === null || _refSetting$value === void 0
|
7538
|
+
afterSetting === null || afterSetting === void 0 ? void 0 : afterSetting(result);
|
7539
|
+
(_refSetting$value = refSetting.value) === null || _refSetting$value === void 0 ? void 0 : _refSetting$value.hide();
|
7528
7540
|
ctx.emit(EMIT_EVENTS.SETTING_CHANGE, result);
|
7529
7541
|
};
|
7530
7542
|
var handleCancelClick = function handleCancelClick() {
|
@@ -7533,12 +7545,12 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
7533
7545
|
activeSize.value = cachedValue.activeSize;
|
7534
7546
|
activeHeight.value = cachedValue.activeHeight;
|
7535
7547
|
checkedFields.value = cachedValue.checkedFields;
|
7536
|
-
(_refSetting$value2 = refSetting.value) === null || _refSetting$value2 === void 0
|
7548
|
+
(_refSetting$value2 = refSetting.value) === null || _refSetting$value2 === void 0 ? void 0 : _refSetting$value2.hide();
|
7537
7549
|
};
|
7538
7550
|
var handleSettingClick = function handleSettingClick() {
|
7539
7551
|
if (options.trigger === 'manual') {
|
7540
7552
|
var _refSetting$value3;
|
7541
|
-
(_refSetting$value3 = refSetting.value) === null || _refSetting$value3 === void 0
|
7553
|
+
(_refSetting$value3 = refSetting.value) === null || _refSetting$value3 === void 0 ? void 0 : _refSetting$value3.show();
|
7542
7554
|
}
|
7543
7555
|
};
|
7544
7556
|
var handleCheckAllClick = function handleCheckAllClick(e) {
|
@@ -7631,7 +7643,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
7631
7643
|
deep: true
|
7632
7644
|
});
|
7633
7645
|
var renderDisplayTooltip = /*#__PURE__*/function () {
|
7634
|
-
var _ref = _asyncToGenerator(
|
7646
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
7635
7647
|
return regenerator_default().wrap(function _callee$(_context) {
|
7636
7648
|
while (1) switch (_context.prev = _context.next) {
|
7637
7649
|
case 0:
|
@@ -8095,7 +8107,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
8095
8107
|
(0,external_vue_namespaceObject.watch)(pageListLength, function (val, old) {
|
8096
8108
|
if (val < old) {
|
8097
8109
|
var _refBody$value2, _refBody$value2$updat;
|
8098
|
-
refBody === null || refBody === void 0 || (_refBody$value2 = refBody.value) === null || _refBody$value2 === void 0 || (_refBody$value2$updat = _refBody$value2.updateScroll) === null || _refBody$value2$updat === void 0
|
8110
|
+
refBody === null || refBody === void 0 || (_refBody$value2 = refBody.value) === null || _refBody$value2 === void 0 || (_refBody$value2$updat = _refBody$value2.updateScroll) === null || _refBody$value2$updat === void 0 ? void 0 : _refBody$value2$updat.call(_refBody$value2);
|
8099
8111
|
scrollTo(undefined, 0);
|
8100
8112
|
}
|
8101
8113
|
});
|