bkui-vue 2.0.1-beta.92 → 2.0.1-beta.94
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 +37 -37
- package/dist/index.esm.js +8835 -8773
- package/dist/index.umd.js +36 -36
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/index.js +1 -1
- package/lib/menu/index.d.ts +9 -0
- package/lib/menu/index.js +15 -1
- package/lib/menu/menu-group.d.ts +9 -0
- package/lib/table/hooks/use-checkbox-tooltip.d.ts +11 -0
- package/lib/table/hooks/use-settings.d.ts +2 -0
- package/lib/table/index.js +585 -54
- package/lib/table/plugins/settings.css +10 -1
- package/lib/table/plugins/settings.less +11 -1
- package/lib/table/plugins/settings.variable.css +10 -1
- package/lib/table/props.d.ts +8 -6
- package/lib/table/table.css +10 -1
- package/lib/table/table.variable.css +10 -1
- package/lib/table/utils.d.ts +1 -6
- package/package.json +1 -1
package/lib/table/index.js
CHANGED
@@ -3,6 +3,7 @@ import "./table.less";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
6
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
8
9
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
|
@@ -14,7 +15,6 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_pagination_95c6c47e__ from ".
|
|
14
15
|
import "../pagination/pagination.less";
|
15
16
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_exception_7490d0fd__ from "../exception";
|
16
17
|
import "../exception/exception.less";
|
17
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
18
18
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
19
19
|
import "../checkbox/checkbox.less";
|
20
20
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
@@ -17234,6 +17234,354 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/**
|
|
17234
17234
|
}.call(this));
|
17235
17235
|
|
17236
17236
|
|
17237
|
+
/***/ }),
|
17238
|
+
|
17239
|
+
/***/ 7609:
|
17240
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
17241
|
+
|
17242
|
+
var _typeof = (__webpack_require__(7425)["default"]);
|
17243
|
+
function _regeneratorRuntime() {
|
17244
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
17245
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
17246
|
+
return e;
|
17247
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
17248
|
+
var t,
|
17249
|
+
e = {},
|
17250
|
+
r = Object.prototype,
|
17251
|
+
n = r.hasOwnProperty,
|
17252
|
+
o = Object.defineProperty || function (t, e, r) {
|
17253
|
+
t[e] = r.value;
|
17254
|
+
},
|
17255
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
17256
|
+
a = i.iterator || "@@iterator",
|
17257
|
+
c = i.asyncIterator || "@@asyncIterator",
|
17258
|
+
u = i.toStringTag || "@@toStringTag";
|
17259
|
+
function define(t, e, r) {
|
17260
|
+
return Object.defineProperty(t, e, {
|
17261
|
+
value: r,
|
17262
|
+
enumerable: !0,
|
17263
|
+
configurable: !0,
|
17264
|
+
writable: !0
|
17265
|
+
}), t[e];
|
17266
|
+
}
|
17267
|
+
try {
|
17268
|
+
define({}, "");
|
17269
|
+
} catch (t) {
|
17270
|
+
define = function define(t, e, r) {
|
17271
|
+
return t[e] = r;
|
17272
|
+
};
|
17273
|
+
}
|
17274
|
+
function wrap(t, e, r, n) {
|
17275
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
17276
|
+
a = Object.create(i.prototype),
|
17277
|
+
c = new Context(n || []);
|
17278
|
+
return o(a, "_invoke", {
|
17279
|
+
value: makeInvokeMethod(t, r, c)
|
17280
|
+
}), a;
|
17281
|
+
}
|
17282
|
+
function tryCatch(t, e, r) {
|
17283
|
+
try {
|
17284
|
+
return {
|
17285
|
+
type: "normal",
|
17286
|
+
arg: t.call(e, r)
|
17287
|
+
};
|
17288
|
+
} catch (t) {
|
17289
|
+
return {
|
17290
|
+
type: "throw",
|
17291
|
+
arg: t
|
17292
|
+
};
|
17293
|
+
}
|
17294
|
+
}
|
17295
|
+
e.wrap = wrap;
|
17296
|
+
var h = "suspendedStart",
|
17297
|
+
l = "suspendedYield",
|
17298
|
+
f = "executing",
|
17299
|
+
s = "completed",
|
17300
|
+
y = {};
|
17301
|
+
function Generator() {}
|
17302
|
+
function GeneratorFunction() {}
|
17303
|
+
function GeneratorFunctionPrototype() {}
|
17304
|
+
var p = {};
|
17305
|
+
define(p, a, function () {
|
17306
|
+
return this;
|
17307
|
+
});
|
17308
|
+
var d = Object.getPrototypeOf,
|
17309
|
+
v = d && d(d(values([])));
|
17310
|
+
v && v !== r && n.call(v, a) && (p = v);
|
17311
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
17312
|
+
function defineIteratorMethods(t) {
|
17313
|
+
["next", "throw", "return"].forEach(function (e) {
|
17314
|
+
define(t, e, function (t) {
|
17315
|
+
return this._invoke(e, t);
|
17316
|
+
});
|
17317
|
+
});
|
17318
|
+
}
|
17319
|
+
function AsyncIterator(t, e) {
|
17320
|
+
function invoke(r, o, i, a) {
|
17321
|
+
var c = tryCatch(t[r], t, o);
|
17322
|
+
if ("throw" !== c.type) {
|
17323
|
+
var u = c.arg,
|
17324
|
+
h = u.value;
|
17325
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
17326
|
+
invoke("next", t, i, a);
|
17327
|
+
}, function (t) {
|
17328
|
+
invoke("throw", t, i, a);
|
17329
|
+
}) : e.resolve(h).then(function (t) {
|
17330
|
+
u.value = t, i(u);
|
17331
|
+
}, function (t) {
|
17332
|
+
return invoke("throw", t, i, a);
|
17333
|
+
});
|
17334
|
+
}
|
17335
|
+
a(c.arg);
|
17336
|
+
}
|
17337
|
+
var r;
|
17338
|
+
o(this, "_invoke", {
|
17339
|
+
value: function value(t, n) {
|
17340
|
+
function callInvokeWithMethodAndArg() {
|
17341
|
+
return new e(function (e, r) {
|
17342
|
+
invoke(t, n, e, r);
|
17343
|
+
});
|
17344
|
+
}
|
17345
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
17346
|
+
}
|
17347
|
+
});
|
17348
|
+
}
|
17349
|
+
function makeInvokeMethod(e, r, n) {
|
17350
|
+
var o = h;
|
17351
|
+
return function (i, a) {
|
17352
|
+
if (o === f) throw new Error("Generator is already running");
|
17353
|
+
if (o === s) {
|
17354
|
+
if ("throw" === i) throw a;
|
17355
|
+
return {
|
17356
|
+
value: t,
|
17357
|
+
done: !0
|
17358
|
+
};
|
17359
|
+
}
|
17360
|
+
for (n.method = i, n.arg = a;;) {
|
17361
|
+
var c = n.delegate;
|
17362
|
+
if (c) {
|
17363
|
+
var u = maybeInvokeDelegate(c, n);
|
17364
|
+
if (u) {
|
17365
|
+
if (u === y) continue;
|
17366
|
+
return u;
|
17367
|
+
}
|
17368
|
+
}
|
17369
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
17370
|
+
if (o === h) throw o = s, n.arg;
|
17371
|
+
n.dispatchException(n.arg);
|
17372
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
17373
|
+
o = f;
|
17374
|
+
var p = tryCatch(e, r, n);
|
17375
|
+
if ("normal" === p.type) {
|
17376
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
17377
|
+
return {
|
17378
|
+
value: p.arg,
|
17379
|
+
done: n.done
|
17380
|
+
};
|
17381
|
+
}
|
17382
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
17383
|
+
}
|
17384
|
+
};
|
17385
|
+
}
|
17386
|
+
function maybeInvokeDelegate(e, r) {
|
17387
|
+
var n = r.method,
|
17388
|
+
o = e.iterator[n];
|
17389
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
17390
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
17391
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
17392
|
+
var a = i.arg;
|
17393
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
17394
|
+
}
|
17395
|
+
function pushTryEntry(t) {
|
17396
|
+
var e = {
|
17397
|
+
tryLoc: t[0]
|
17398
|
+
};
|
17399
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
17400
|
+
}
|
17401
|
+
function resetTryEntry(t) {
|
17402
|
+
var e = t.completion || {};
|
17403
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
17404
|
+
}
|
17405
|
+
function Context(t) {
|
17406
|
+
this.tryEntries = [{
|
17407
|
+
tryLoc: "root"
|
17408
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
17409
|
+
}
|
17410
|
+
function values(e) {
|
17411
|
+
if (e || "" === e) {
|
17412
|
+
var r = e[a];
|
17413
|
+
if (r) return r.call(e);
|
17414
|
+
if ("function" == typeof e.next) return e;
|
17415
|
+
if (!isNaN(e.length)) {
|
17416
|
+
var o = -1,
|
17417
|
+
i = function next() {
|
17418
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
17419
|
+
return next.value = t, next.done = !0, next;
|
17420
|
+
};
|
17421
|
+
return i.next = i;
|
17422
|
+
}
|
17423
|
+
}
|
17424
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
17425
|
+
}
|
17426
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
17427
|
+
value: GeneratorFunctionPrototype,
|
17428
|
+
configurable: !0
|
17429
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
17430
|
+
value: GeneratorFunction,
|
17431
|
+
configurable: !0
|
17432
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
17433
|
+
var e = "function" == typeof t && t.constructor;
|
17434
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
17435
|
+
}, e.mark = function (t) {
|
17436
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
17437
|
+
}, e.awrap = function (t) {
|
17438
|
+
return {
|
17439
|
+
__await: t
|
17440
|
+
};
|
17441
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
17442
|
+
return this;
|
17443
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
17444
|
+
void 0 === i && (i = Promise);
|
17445
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
17446
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
17447
|
+
return t.done ? t.value : a.next();
|
17448
|
+
});
|
17449
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
17450
|
+
return this;
|
17451
|
+
}), define(g, "toString", function () {
|
17452
|
+
return "[object Generator]";
|
17453
|
+
}), e.keys = function (t) {
|
17454
|
+
var e = Object(t),
|
17455
|
+
r = [];
|
17456
|
+
for (var n in e) r.push(n);
|
17457
|
+
return r.reverse(), function next() {
|
17458
|
+
for (; r.length;) {
|
17459
|
+
var t = r.pop();
|
17460
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
17461
|
+
}
|
17462
|
+
return next.done = !0, next;
|
17463
|
+
};
|
17464
|
+
}, e.values = values, Context.prototype = {
|
17465
|
+
constructor: Context,
|
17466
|
+
reset: function reset(e) {
|
17467
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
17468
|
+
},
|
17469
|
+
stop: function stop() {
|
17470
|
+
this.done = !0;
|
17471
|
+
var t = this.tryEntries[0].completion;
|
17472
|
+
if ("throw" === t.type) throw t.arg;
|
17473
|
+
return this.rval;
|
17474
|
+
},
|
17475
|
+
dispatchException: function dispatchException(e) {
|
17476
|
+
if (this.done) throw e;
|
17477
|
+
var r = this;
|
17478
|
+
function handle(n, o) {
|
17479
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
17480
|
+
}
|
17481
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
17482
|
+
var i = this.tryEntries[o],
|
17483
|
+
a = i.completion;
|
17484
|
+
if ("root" === i.tryLoc) return handle("end");
|
17485
|
+
if (i.tryLoc <= this.prev) {
|
17486
|
+
var c = n.call(i, "catchLoc"),
|
17487
|
+
u = n.call(i, "finallyLoc");
|
17488
|
+
if (c && u) {
|
17489
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
17490
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
17491
|
+
} else if (c) {
|
17492
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
17493
|
+
} else {
|
17494
|
+
if (!u) throw new Error("try statement without catch or finally");
|
17495
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
17496
|
+
}
|
17497
|
+
}
|
17498
|
+
}
|
17499
|
+
},
|
17500
|
+
abrupt: function abrupt(t, e) {
|
17501
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
17502
|
+
var o = this.tryEntries[r];
|
17503
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
17504
|
+
var i = o;
|
17505
|
+
break;
|
17506
|
+
}
|
17507
|
+
}
|
17508
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
17509
|
+
var a = i ? i.completion : {};
|
17510
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
17511
|
+
},
|
17512
|
+
complete: function complete(t, e) {
|
17513
|
+
if ("throw" === t.type) throw t.arg;
|
17514
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
17515
|
+
},
|
17516
|
+
finish: function finish(t) {
|
17517
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
17518
|
+
var r = this.tryEntries[e];
|
17519
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
17520
|
+
}
|
17521
|
+
},
|
17522
|
+
"catch": function _catch(t) {
|
17523
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
17524
|
+
var r = this.tryEntries[e];
|
17525
|
+
if (r.tryLoc === t) {
|
17526
|
+
var n = r.completion;
|
17527
|
+
if ("throw" === n.type) {
|
17528
|
+
var o = n.arg;
|
17529
|
+
resetTryEntry(r);
|
17530
|
+
}
|
17531
|
+
return o;
|
17532
|
+
}
|
17533
|
+
}
|
17534
|
+
throw new Error("illegal catch attempt");
|
17535
|
+
},
|
17536
|
+
delegateYield: function delegateYield(e, r, n) {
|
17537
|
+
return this.delegate = {
|
17538
|
+
iterator: values(e),
|
17539
|
+
resultName: r,
|
17540
|
+
nextLoc: n
|
17541
|
+
}, "next" === this.method && (this.arg = t), y;
|
17542
|
+
}
|
17543
|
+
}, e;
|
17544
|
+
}
|
17545
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
17546
|
+
|
17547
|
+
/***/ }),
|
17548
|
+
|
17549
|
+
/***/ 7425:
|
17550
|
+
/***/ ((module) => {
|
17551
|
+
|
17552
|
+
function _typeof(o) {
|
17553
|
+
"@babel/helpers - typeof";
|
17554
|
+
|
17555
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
17556
|
+
return typeof o;
|
17557
|
+
} : function (o) {
|
17558
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
17559
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
17560
|
+
}
|
17561
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
17562
|
+
|
17563
|
+
/***/ }),
|
17564
|
+
|
17565
|
+
/***/ 2841:
|
17566
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
17567
|
+
|
17568
|
+
// TODO(Babel 8): Remove this file.
|
17569
|
+
|
17570
|
+
var runtime = __webpack_require__(7609)();
|
17571
|
+
module.exports = runtime;
|
17572
|
+
|
17573
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
17574
|
+
try {
|
17575
|
+
regeneratorRuntime = runtime;
|
17576
|
+
} catch (accidentalStrictMode) {
|
17577
|
+
if (typeof globalThis === "object") {
|
17578
|
+
globalThis.regeneratorRuntime = runtime;
|
17579
|
+
} else {
|
17580
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
17581
|
+
}
|
17582
|
+
}
|
17583
|
+
|
17584
|
+
|
17237
17585
|
/***/ })
|
17238
17586
|
|
17239
17587
|
/******/ });
|
@@ -17266,6 +17614,18 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/**
|
|
17266
17614
|
/******/ }
|
17267
17615
|
/******/
|
17268
17616
|
/************************************************************************/
|
17617
|
+
/******/ /* webpack/runtime/compat get default export */
|
17618
|
+
/******/ (() => {
|
17619
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
17620
|
+
/******/ __webpack_require__.n = (module) => {
|
17621
|
+
/******/ var getter = module && module.__esModule ?
|
17622
|
+
/******/ () => (module['default']) :
|
17623
|
+
/******/ () => (module);
|
17624
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
17625
|
+
/******/ return getter;
|
17626
|
+
/******/ };
|
17627
|
+
/******/ })();
|
17628
|
+
/******/
|
17269
17629
|
/******/ /* webpack/runtime/define property getters */
|
17270
17630
|
/******/ (() => {
|
17271
17631
|
/******/ // define getter functions for harmony exports
|
@@ -18043,6 +18403,10 @@ var TableColumnProp = {
|
|
18043
18403
|
}
|
18044
18404
|
}
|
18045
18405
|
}));
|
18406
|
+
;// CONCATENATED MODULE: external "../directives"
|
18407
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
18408
|
+
var directives_y = x => () => x
|
18409
|
+
const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkEllipsisInstance, ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
18046
18410
|
;// CONCATENATED MODULE: ../../packages/table/src/events.ts
|
18047
18411
|
|
18048
18412
|
var _EMIT_EVENT_TYPES;
|
@@ -21759,10 +22123,6 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
21759
22123
|
};
|
21760
22124
|
}
|
21761
22125
|
}));
|
21762
|
-
;// CONCATENATED MODULE: external "../directives"
|
21763
|
-
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
21764
|
-
var directives_y = x => () => x
|
21765
|
-
const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkEllipsisInstance, ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
21766
22126
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-cell.tsx
|
21767
22127
|
|
21768
22128
|
|
@@ -22372,6 +22732,40 @@ const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
22372
22732
|
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
22373
22733
|
var popover_less_y = x => () => x
|
22374
22734
|
const popover_less_namespaceObject = popover_less_x({ });
|
22735
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
22736
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
22737
|
+
try {
|
22738
|
+
var info = gen[key](arg);
|
22739
|
+
var value = info.value;
|
22740
|
+
} catch (error) {
|
22741
|
+
reject(error);
|
22742
|
+
return;
|
22743
|
+
}
|
22744
|
+
if (info.done) {
|
22745
|
+
resolve(value);
|
22746
|
+
} else {
|
22747
|
+
Promise.resolve(value).then(_next, _throw);
|
22748
|
+
}
|
22749
|
+
}
|
22750
|
+
function _asyncToGenerator(fn) {
|
22751
|
+
return function () {
|
22752
|
+
var self = this,
|
22753
|
+
args = arguments;
|
22754
|
+
return new Promise(function (resolve, reject) {
|
22755
|
+
var gen = fn.apply(self, args);
|
22756
|
+
function _next(value) {
|
22757
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
22758
|
+
}
|
22759
|
+
function _throw(err) {
|
22760
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
22761
|
+
}
|
22762
|
+
_next(undefined);
|
22763
|
+
});
|
22764
|
+
};
|
22765
|
+
}
|
22766
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
22767
|
+
var regenerator = __webpack_require__(2841);
|
22768
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
22375
22769
|
;// CONCATENATED MODULE: external "../button"
|
22376
22770
|
var button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
22377
22771
|
var button_y = x => () => x
|
@@ -22388,10 +22782,105 @@ const input_namespaceObject = input_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
|
|
22388
22782
|
var input_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
22389
22783
|
var input_less_y = x => () => x
|
22390
22784
|
const input_less_namespaceObject = input_less_x({ });
|
22785
|
+
;// CONCATENATED MODULE: ../../packages/table/src/hooks/use-checkbox-tooltip.tsx
|
22786
|
+
var useCheckboxToolTip = function useCheckboxToolTip() {
|
22787
|
+
var renderDomStyles = function renderDomStyles(el) {
|
22788
|
+
var stylesSize = {
|
22789
|
+
paddingSize: 0,
|
22790
|
+
borderSize: 0,
|
22791
|
+
marginSize: 0
|
22792
|
+
};
|
22793
|
+
if (!el) {
|
22794
|
+
return stylesSize;
|
22795
|
+
}
|
22796
|
+
function getHorizontalSpace(payload) {
|
22797
|
+
var distanceValues = payload.trim().split(' ').map(function (item) {
|
22798
|
+
return Number.parseFloat(item);
|
22799
|
+
});
|
22800
|
+
// 根据值的数量来确定如何解析
|
22801
|
+
if (distanceValues.length === 1) {
|
22802
|
+
// 只有一个值,表示四个方向的边距都相同
|
22803
|
+
return {
|
22804
|
+
distanceLeft: distanceValues.at(0),
|
22805
|
+
distanceRight: distanceValues.at(0)
|
22806
|
+
};
|
22807
|
+
} else if (distanceValues.length === 2) {
|
22808
|
+
// 两个值,表示垂直和水平方向的边距
|
22809
|
+
return {
|
22810
|
+
distanceLeft: distanceValues.at(1),
|
22811
|
+
distanceRight: distanceValues.at(1)
|
22812
|
+
};
|
22813
|
+
} else if (distanceValues.length === 3 || distanceValues.length === 4) {
|
22814
|
+
// 三个或四个值,分别表示上、右(和下)、下(和左,如果存在)的边距
|
22815
|
+
return {
|
22816
|
+
distanceLeft: distanceValues.at(distanceValues.length - 1),
|
22817
|
+
distanceRight: distanceValues.at(1)
|
22818
|
+
};
|
22819
|
+
}
|
22820
|
+
// 如果 payload 格式不正确,返回默认值
|
22821
|
+
return {
|
22822
|
+
distanceLeft: 0,
|
22823
|
+
distanceRight: 0
|
22824
|
+
};
|
22825
|
+
}
|
22826
|
+
var computedStyle = getComputedStyle(el);
|
22827
|
+
var originalPadding = computedStyle.getPropertyValue('padding');
|
22828
|
+
var originalMargin = computedStyle.getPropertyValue('margin');
|
22829
|
+
var originalBorder = computedStyle.getPropertyValue('border');
|
22830
|
+
stylesSize.borderSize = Number.parseFloat(computedStyle.getPropertyValue('border-left-width')) + Number.parseFloat(computedStyle.getPropertyValue('border-right-width'));
|
22831
|
+
stylesSize.paddingSize = Number.parseFloat(computedStyle.getPropertyValue('padding-left')) + Number.parseFloat(computedStyle.getPropertyValue('padding-right'));
|
22832
|
+
stylesSize.marginSize = Number.parseFloat(computedStyle.getPropertyValue('margin-left')) + Number.parseFloat(computedStyle.getPropertyValue('margin-right'));
|
22833
|
+
var hasPadding = originalPadding !== '' && originalPadding !== '0px' && originalPadding !== undefined;
|
22834
|
+
var hasMargin = originalMargin !== '' && originalMargin !== '0px' && originalMargin !== undefined;
|
22835
|
+
var hasBorder = originalBorder !== '' && originalBorder.indexOf('0px') === -1 && originalBorder !== undefined;
|
22836
|
+
if (hasPadding) {
|
22837
|
+
var _getHorizontalSpace = getHorizontalSpace(originalPadding),
|
22838
|
+
distanceLeft = _getHorizontalSpace.distanceLeft,
|
22839
|
+
distanceRight = _getHorizontalSpace.distanceRight;
|
22840
|
+
stylesSize.paddingSize = distanceLeft + distanceRight;
|
22841
|
+
}
|
22842
|
+
if (hasMargin) {
|
22843
|
+
var _getHorizontalSpace2 = getHorizontalSpace(originalMargin),
|
22844
|
+
_distanceLeft = _getHorizontalSpace2.distanceLeft,
|
22845
|
+
_distanceRight = _getHorizontalSpace2.distanceRight;
|
22846
|
+
stylesSize.marginSize = _distanceLeft + _distanceRight;
|
22847
|
+
}
|
22848
|
+
if (hasBorder) {
|
22849
|
+
stylesSize.borderSize = Number.parseFloat(computedStyle.getPropertyValue('border-width'));
|
22850
|
+
}
|
22851
|
+
return stylesSize;
|
22852
|
+
};
|
22853
|
+
var resolveOverflowTips = function resolveOverflowTips(field, itemRef, listRef) {
|
22854
|
+
var _itemRef$value;
|
22855
|
+
var labelRef = listRef.value[field];
|
22856
|
+
var checkBoxLabelRef = (_itemRef$value = itemRef.value) === null || _itemRef$value === void 0 ? void 0 : _itemRef$value.querySelector('.bk-checkbox-label');
|
22857
|
+
if (labelRef && checkBoxLabelRef) {
|
22858
|
+
var _itemRef$value2;
|
22859
|
+
var CHECKBOX_WIDTH = 16;
|
22860
|
+
var labelStyles = renderDomStyles(labelRef);
|
22861
|
+
var checkBoxLabel = renderDomStyles(checkBoxLabelRef);
|
22862
|
+
var filterPopoverStyles = renderDomStyles(itemRef.value);
|
22863
|
+
// 获取每个item项的margin、padding、 border
|
22864
|
+
var allTipStyles = (labelRef === null || labelRef === void 0 ? void 0 : labelRef.offsetWidth) + (labelStyles === null || labelStyles === void 0 ? void 0 : labelStyles.borderSize) + (labelStyles === null || labelStyles === void 0 ? void 0 : labelStyles.marginSize) + (labelStyles === null || labelStyles === void 0 ? void 0 : labelStyles.paddingSize) + (filterPopoverStyles === null || filterPopoverStyles === void 0 ? void 0 : filterPopoverStyles.borderSize) + (filterPopoverStyles === null || filterPopoverStyles === void 0 ? void 0 : filterPopoverStyles.marginSize) + (filterPopoverStyles === null || filterPopoverStyles === void 0 ? void 0 : filterPopoverStyles.paddingSize) + (checkBoxLabel === null || checkBoxLabel === void 0 ? void 0 : checkBoxLabel.marginSize) + (checkBoxLabel === null || checkBoxLabel === void 0 ? void 0 : checkBoxLabel.paddingSize);
|
22865
|
+
var curOffsetWidth = ((_itemRef$value2 = itemRef.value) === null || _itemRef$value2 === void 0 ? void 0 : _itemRef$value2.offsetWidth) || 0;
|
22866
|
+
if ((labelRef === null || labelRef === void 0 ? void 0 : labelRef.offsetWidth) > curOffsetWidth || CHECKBOX_WIDTH + allTipStyles > curOffsetWidth) {
|
22867
|
+
return true;
|
22868
|
+
}
|
22869
|
+
}
|
22870
|
+
return false;
|
22871
|
+
};
|
22872
|
+
return {
|
22873
|
+
renderDomStyles: renderDomStyles,
|
22874
|
+
resolveOverflowTips: resolveOverflowTips
|
22875
|
+
};
|
22876
|
+
};
|
22877
|
+
/* harmony default export */ const use_checkbox_tooltip = (useCheckboxToolTip);
|
22391
22878
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/head-filter.tsx
|
22392
22879
|
|
22393
22880
|
|
22394
22881
|
|
22882
|
+
|
22883
|
+
|
22395
22884
|
/*
|
22396
22885
|
* Tencent is pleased to support the open source community by making
|
22397
22886
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -22432,6 +22921,7 @@ const input_less_namespaceObject = input_less_x({ });
|
|
22432
22921
|
|
22433
22922
|
|
22434
22923
|
|
22924
|
+
|
22435
22925
|
function _isSlot(s) {
|
22436
22926
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
22437
22927
|
}
|
@@ -22451,6 +22941,8 @@ var ROW_HEIGHT = 32;
|
|
22451
22941
|
var emit = _ref.emit;
|
22452
22942
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
22453
22943
|
resolveClassName = _usePrefix.resolveClassName;
|
22944
|
+
var _useCheckboxToolTip = use_checkbox_tooltip(),
|
22945
|
+
resolveOverflowTips = _useCheckboxToolTip.resolveOverflowTips;
|
22454
22946
|
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
22455
22947
|
var filter = (0,external_vue_namespaceObject.computed)(function () {
|
22456
22948
|
var _props$column;
|
@@ -22486,7 +22978,8 @@ var ROW_HEIGHT = 32;
|
|
22486
22978
|
var handlePopShow = function handlePopShow(isOpen) {
|
22487
22979
|
state.isOpen = isOpen;
|
22488
22980
|
isOpen && setTimeout(function () {
|
22489
|
-
|
22981
|
+
var _refVirtualRender$val;
|
22982
|
+
(_refVirtualRender$val = refVirtualRender.value) === null || _refVirtualRender$val === void 0 || _refVirtualRender$val.reset();
|
22490
22983
|
});
|
22491
22984
|
if (!isOpen) {
|
22492
22985
|
searchValue.value = '';
|
@@ -22566,42 +23059,6 @@ var ROW_HEIGHT = 32;
|
|
22566
23059
|
text: text
|
22567
23060
|
};
|
22568
23061
|
};
|
22569
|
-
var resolveOverflowTips = function resolveOverflowTips(payload) {
|
22570
|
-
var _filterPopoverRef$val;
|
22571
|
-
var labelRef = allTextRef.value["list-item-".concat(payload.value, "-ref")];
|
22572
|
-
var checkBoxLabelRef = (_filterPopoverRef$val = filterPopoverRef.value) === null || _filterPopoverRef$val === void 0 ? void 0 : _filterPopoverRef$val.querySelector('.bk-checkbox-label');
|
22573
|
-
if (labelRef && checkBoxLabelRef) {
|
22574
|
-
var _filterPopoverRef$val2, _filterPopoverRef$val3;
|
22575
|
-
var CHECKBOX_WIDTH = 16;
|
22576
|
-
var labelStyles = renderDomStyles(labelRef);
|
22577
|
-
var checkBoxLabel = renderDomStyles(checkBoxLabelRef);
|
22578
|
-
var filterPopoverStyles = renderDomStyles(filterPopoverRef.value);
|
22579
|
-
// 获取每个item项的margin、padding、 border
|
22580
|
-
var allTipStyles = (labelRef === null || labelRef === void 0 ? void 0 : labelRef.offsetWidth) + (labelStyles === null || labelStyles === void 0 ? void 0 : labelStyles.borderSize) + (labelStyles === null || labelStyles === void 0 ? void 0 : labelStyles.marginSize) + (labelStyles === null || labelStyles === void 0 ? void 0 : labelStyles.paddingSize) + (filterPopoverStyles === null || filterPopoverStyles === void 0 ? void 0 : filterPopoverStyles.borderSize) + (filterPopoverStyles === null || filterPopoverStyles === void 0 ? void 0 : filterPopoverStyles.marginSize) + (filterPopoverStyles === null || filterPopoverStyles === void 0 ? void 0 : filterPopoverStyles.paddingSize) + (checkBoxLabel === null || checkBoxLabel === void 0 ? void 0 : checkBoxLabel.marginSize) + (checkBoxLabel === null || checkBoxLabel === void 0 ? void 0 : checkBoxLabel.paddingSize);
|
22581
|
-
if ((labelRef === null || labelRef === void 0 ? void 0 : labelRef.offsetWidth) > ((_filterPopoverRef$val2 = filterPopoverRef.value) === null || _filterPopoverRef$val2 === void 0 ? void 0 : _filterPopoverRef$val2.offsetWidth) || CHECKBOX_WIDTH + allTipStyles > ((_filterPopoverRef$val3 = filterPopoverRef.value) === null || _filterPopoverRef$val3 === void 0 ? void 0 : _filterPopoverRef$val3.offsetWidth)) {
|
22582
|
-
return false;
|
22583
|
-
}
|
22584
|
-
}
|
22585
|
-
return true;
|
22586
|
-
};
|
22587
|
-
var renderDomStyles = function renderDomStyles(el) {
|
22588
|
-
if (!el) {
|
22589
|
-
return {
|
22590
|
-
paddingSize: 0,
|
22591
|
-
borderSize: 0,
|
22592
|
-
marginSize: 0
|
22593
|
-
};
|
22594
|
-
}
|
22595
|
-
var styles = getComputedStyle(el);
|
22596
|
-
var paddingSize = Number.parseFloat(styles.getPropertyValue('padding-left')) + Number.parseFloat(styles.getPropertyValue('padding-right'));
|
22597
|
-
var borderSize = Number.parseFloat(styles.getPropertyValue('border-left-width')) + Number.parseFloat(styles.getPropertyValue('border-right-width'));
|
22598
|
-
var marginSize = Number.parseFloat(styles.getPropertyValue('margin-left')) + Number.parseFloat(styles.getPropertyValue('margin-right'));
|
22599
|
-
return {
|
22600
|
-
paddingSize: paddingSize,
|
22601
|
-
borderSize: borderSize,
|
22602
|
-
marginSize: marginSize
|
22603
|
-
};
|
22604
|
-
};
|
22605
23062
|
var _filter$value4 = filter.value,
|
22606
23063
|
btnSave = _filter$value4.btnSave,
|
22607
23064
|
btnReset = _filter$value4.btnReset;
|
@@ -22656,8 +23113,34 @@ var ROW_HEIGHT = 32;
|
|
22656
23113
|
filter.value.checked = _toConsumableArray(state.checked);
|
22657
23114
|
handleFilterChange();
|
22658
23115
|
};
|
23116
|
+
var renderDisplayTooltip = /*#__PURE__*/function () {
|
23117
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
23118
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
23119
|
+
while (1) switch (_context.prev = _context.next) {
|
23120
|
+
case 0:
|
23121
|
+
_context.next = 2;
|
23122
|
+
return new Promise(function (resolve) {
|
23123
|
+
return setTimeout(resolve, 0);
|
23124
|
+
});
|
23125
|
+
case 2:
|
23126
|
+
localData.value.forEach(function (item) {
|
23127
|
+
if (!Object.prototype.hasOwnProperty.call(item, 'showOverflowTooltip')) {
|
23128
|
+
item.showOverflowTooltip = resolveOverflowTips("list-item-".concat(item.value, "-ref"), filterPopoverRef, allTextRef);
|
23129
|
+
}
|
23130
|
+
});
|
23131
|
+
case 3:
|
23132
|
+
case "end":
|
23133
|
+
return _context.stop();
|
23134
|
+
}
|
23135
|
+
}, _callee);
|
23136
|
+
}));
|
23137
|
+
return function renderDisplayTooltip() {
|
23138
|
+
return _ref2.apply(this, arguments);
|
23139
|
+
};
|
23140
|
+
}();
|
22659
23141
|
var renderFilterList = function renderFilterList(scope) {
|
22660
23142
|
if (scope.length) {
|
23143
|
+
renderDisplayTooltip();
|
22661
23144
|
return scope.map(function (item) {
|
22662
23145
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
22663
23146
|
"key": item.value,
|
@@ -22682,7 +23165,7 @@ var ROW_HEIGHT = 32;
|
|
22682
23165
|
})]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
|
22683
23166
|
content: item.tipKey || item.text,
|
22684
23167
|
placement: 'right',
|
22685
|
-
disabled:
|
23168
|
+
disabled: !item.showOverflowTooltip
|
22686
23169
|
}]]);
|
22687
23170
|
});
|
22688
23171
|
}
|
@@ -24112,6 +24595,8 @@ var useRows = function useRows(props) {
|
|
24112
24595
|
;// CONCATENATED MODULE: ../../packages/table/src/hooks/use-settings.tsx
|
24113
24596
|
|
24114
24597
|
|
24598
|
+
|
24599
|
+
|
24115
24600
|
/*
|
24116
24601
|
* Tencent is pleased to support the open source community by making
|
24117
24602
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -24150,6 +24635,7 @@ var useRows = function useRows(props) {
|
|
24150
24635
|
|
24151
24636
|
|
24152
24637
|
|
24638
|
+
|
24153
24639
|
function use_settings_isSlot(s) {
|
24154
24640
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
24155
24641
|
}
|
@@ -24157,8 +24643,12 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
24157
24643
|
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
24158
24644
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
24159
24645
|
resolveClassName = _usePrefix.resolveClassName;
|
24646
|
+
var _useCheckboxToolTip = use_checkbox_tooltip(),
|
24647
|
+
resolveOverflowTips = _useCheckboxToolTip.resolveOverflowTips;
|
24160
24648
|
var defaultSizeList = createDefaultSizeList(t);
|
24161
24649
|
var checkAll = (0,external_vue_namespaceObject.ref)(false);
|
24650
|
+
var filterPopoverRef = (0,external_vue_namespaceObject.ref)();
|
24651
|
+
var allTextRef = (0,external_vue_namespaceObject.ref)([]);
|
24162
24652
|
var resolvedColVal = function resolvedColVal(item, index) {
|
24163
24653
|
return resolvePropVal(item, ['id', 'field', 'type'], [item, index]);
|
24164
24654
|
};
|
@@ -24342,10 +24832,39 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
24342
24832
|
immediate: true,
|
24343
24833
|
deep: true
|
24344
24834
|
});
|
24835
|
+
var renderDisplayTooltip = /*#__PURE__*/function () {
|
24836
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
24837
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
24838
|
+
while (1) switch (_context.prev = _context.next) {
|
24839
|
+
case 0:
|
24840
|
+
_context.next = 2;
|
24841
|
+
return new Promise(function (resolve) {
|
24842
|
+
return setTimeout(resolve, 0);
|
24843
|
+
});
|
24844
|
+
case 2:
|
24845
|
+
renderFields.value.forEach(function (item, index) {
|
24846
|
+
if (!Object.prototype.hasOwnProperty.call(item, 'showOverflowTooltip')) {
|
24847
|
+
item.showOverflowTooltip = resolveOverflowTips("field-item-".concat(resolvePropVal(item, ['id', 'field', 'type'], [item, index]), "-ref"), filterPopoverRef, allTextRef);
|
24848
|
+
}
|
24849
|
+
});
|
24850
|
+
case 3:
|
24851
|
+
case "end":
|
24852
|
+
return _context.stop();
|
24853
|
+
}
|
24854
|
+
}, _callee);
|
24855
|
+
}));
|
24856
|
+
return function renderDisplayTooltip() {
|
24857
|
+
return _ref.apply(this, arguments);
|
24858
|
+
};
|
24859
|
+
}();
|
24345
24860
|
var getRenderContent = function getRenderContent() {
|
24346
|
-
var
|
24347
|
-
var _ctx$slots$settings, _ctx$slots
|
24348
|
-
|
24861
|
+
var _slot;
|
24862
|
+
var _ctx$slots$settings, _ctx$slots, _ctx$slots$setting, _ctx$slots2;
|
24863
|
+
var slotCom = (_ctx$slots$settings = (_ctx$slots = ctx.slots).settings) === null || _ctx$slots$settings === void 0 ? void 0 : _ctx$slots$settings.call(_ctx$slots);
|
24864
|
+
if (!slotCom) {
|
24865
|
+
renderDisplayTooltip();
|
24866
|
+
}
|
24867
|
+
return slotCom !== null && slotCom !== void 0 ? slotCom : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("div", {
|
24349
24868
|
"class": "setting-head"
|
24350
24869
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
24351
24870
|
"class": "head-title"
|
@@ -24377,22 +24896,30 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
24377
24896
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
24378
24897
|
return checkedFields.value = $event;
|
24379
24898
|
}
|
24380
|
-
}, use_settings_isSlot(
|
24381
|
-
var _slot;
|
24899
|
+
}, use_settings_isSlot(_slot = renderFields.value.map(function (item, index) {
|
24382
24900
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
24901
|
+
"ref": filterPopoverRef,
|
24383
24902
|
"class": "field-item"
|
24384
24903
|
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
24385
24904
|
"checked": checkedFields.value.includes(resolvedColVal(item, index)),
|
24386
24905
|
"disabled": isItemReadonly(item, index),
|
24387
24906
|
"label": resolvedColVal(item, index)
|
24388
|
-
},
|
24907
|
+
}, {
|
24389
24908
|
"default": function _default() {
|
24390
|
-
return [
|
24909
|
+
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("span", {
|
24910
|
+
"ref": function ref(el) {
|
24911
|
+
return allTextRef.value["field-item-".concat(resolvePropVal(item, ['id', 'field', 'type'], [item, index]), "-ref")] = el;
|
24912
|
+
}
|
24913
|
+
}, [resolvePropVal(item, ['name', 'label'], [item, index])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
|
24914
|
+
placement: 'top-start',
|
24915
|
+
content: resolvePropVal(item, ['name', 'label'], [item, index]),
|
24916
|
+
disabled: !item.showOverflowTooltip
|
24917
|
+
}]])];
|
24391
24918
|
}
|
24392
24919
|
})]);
|
24393
|
-
})) ?
|
24920
|
+
})) ? _slot : {
|
24394
24921
|
"default": function _default() {
|
24395
|
-
return [
|
24922
|
+
return [_slot];
|
24396
24923
|
}
|
24397
24924
|
}), (_ctx$slots$setting = (_ctx$slots2 = ctx.slots).setting) === null || _ctx$slots$setting === void 0 ? void 0 : _ctx$slots$setting.call(_ctx$slots2), showLineHeight.value ? (0,external_vue_namespaceObject.createVNode)("div", {
|
24398
24925
|
"class": "setting-body-line-height"
|
@@ -24492,8 +25019,12 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
24492
25019
|
|
24493
25020
|
|
24494
25021
|
|
25022
|
+
|
24495
25023
|
/* harmony default export */ const table = ((0,external_vue_namespaceObject.defineComponent)({
|
24496
25024
|
name: 'Table',
|
25025
|
+
directives: {
|
25026
|
+
bkTooltips: directives_namespaceObject.bkTooltips
|
25027
|
+
},
|
24497
25028
|
props: tableProps,
|
24498
25029
|
emits: EMIT_EVENT_TYPES,
|
24499
25030
|
setup: function setup(props, ctx) {
|
@@ -24579,8 +25110,8 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
24579
25110
|
* 计算每一列的实际宽度
|
24580
25111
|
*/
|
24581
25112
|
var computedColumnRect = function computedColumnRect() {
|
24582
|
-
var
|
24583
|
-
var width = (
|
25113
|
+
var _refRoot$value;
|
25114
|
+
var width = ((_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 ? void 0 : _refRoot$value.offsetWidth) - (props.scrollbar ? 1 : SCROLLY_WIDTH) || 0;
|
24584
25115
|
columns.resolveColsCalcWidth(width);
|
24585
25116
|
resolveFixedColumnStyle();
|
24586
25117
|
};
|