bkui-vue 2.0.2-beta.47 → 2.0.2-beta.49
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 +42 -47
- package/dist/index.esm.js +7009 -7201
- package/dist/index.umd.js +45 -50
- package/lib/affix/index.js +14 -12
- package/lib/alert/index.js +14 -12
- package/lib/animate-number/index.js +12 -11
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.js +14 -12
- package/lib/breadcrumb/index.js +14 -12
- package/lib/button/index.js +14 -12
- package/lib/card/index.js +14 -12
- package/lib/cascader/index.js +101 -94
- package/lib/checkbox/index.js +35 -37
- package/lib/code-diff/index.js +674 -1170
- package/lib/collapse/index.js +42 -44
- package/lib/collapse-transition/index.js +4 -3
- package/lib/color-picker/index.js +60 -59
- package/lib/config-provider/index.js +14 -12
- package/lib/container/index.js +25 -21
- package/lib/date-picker/index.js +51 -58
- package/lib/dialog/index.js +441 -43
- package/lib/directives/index.js +34 -37
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/index.js +21 -17
- package/lib/exception/index.js +17 -14
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/index.js +34 -37
- package/lib/icon/angle-double-down-line.js +36 -29
- package/lib/icon/angle-double-left-line.js +36 -29
- package/lib/icon/angle-double-left.js +36 -29
- package/lib/icon/angle-double-right-line.js +36 -29
- package/lib/icon/angle-double-right.js +36 -29
- package/lib/icon/angle-double-up-line.js +36 -29
- package/lib/icon/angle-down-fill.js +36 -29
- package/lib/icon/angle-down-line.js +36 -29
- package/lib/icon/angle-down.js +36 -29
- package/lib/icon/angle-left.js +36 -29
- package/lib/icon/angle-right.js +36 -29
- package/lib/icon/angle-up-fill.js +36 -29
- package/lib/icon/angle-up.js +36 -29
- package/lib/icon/archive-fill.js +36 -29
- package/lib/icon/arrows-left.js +36 -29
- package/lib/icon/arrows-right.js +36 -29
- package/lib/icon/assistant.js +36 -29
- package/lib/icon/audio-fill.js +36 -29
- package/lib/icon/bk.js +36 -29
- package/lib/icon/circle.js +36 -29
- package/lib/icon/close-line.js +36 -29
- package/lib/icon/close.js +36 -29
- package/lib/icon/code.js +36 -29
- package/lib/icon/cog-shape.js +36 -29
- package/lib/icon/collapse-left.js +36 -29
- package/lib/icon/copy-shape.js +36 -29
- package/lib/icon/copy.js +36 -29
- package/lib/icon/data-shape.js +36 -29
- package/lib/icon/del.js +36 -29
- package/lib/icon/doc-fill.js +36 -29
- package/lib/icon/done.js +36 -29
- package/lib/icon/down-shape.js +36 -29
- package/lib/icon/down-small.js +36 -29
- package/lib/icon/edit-line.js +36 -29
- package/lib/icon/ellipsis.js +36 -29
- package/lib/icon/enlarge-line.js +36 -29
- package/lib/icon/error.js +36 -29
- package/lib/icon/excel-fill.js +36 -29
- package/lib/icon/exclamation-circle-shape.js +36 -29
- package/lib/icon/eye.js +36 -29
- package/lib/icon/filliscreen-line.js +36 -29
- package/lib/icon/fix-line.js +36 -29
- package/lib/icon/fix-shape.js +36 -29
- package/lib/icon/folder-open.js +36 -29
- package/lib/icon/folder-shape-open.js +36 -29
- package/lib/icon/folder-shape.js +36 -29
- package/lib/icon/folder.js +36 -29
- package/lib/icon/funnel.js +36 -29
- package/lib/icon/grag-fill.js +36 -29
- package/lib/icon/help-document-fill.js +36 -29
- package/lib/icon/help-fill.js +36 -29
- package/lib/icon/help.js +36 -29
- package/lib/icon/image-fill.js +36 -29
- package/lib/icon/img-error.js +36 -29
- package/lib/icon/img-placehoulder.js +36 -29
- package/lib/icon/info-line.js +36 -29
- package/lib/icon/info.js +36 -29
- package/lib/icon/left-shape.js +36 -29
- package/lib/icon/left-turn-line.js +36 -29
- package/lib/icon/loading.js +36 -29
- package/lib/icon/narrow-line.js +36 -29
- package/lib/icon/original.js +36 -29
- package/lib/icon/pdf-fill.js +36 -29
- package/lib/icon/play-shape.js +36 -29
- package/lib/icon/plus.js +36 -29
- package/lib/icon/ppt-fill.js +36 -29
- package/lib/icon/qq.js +36 -29
- package/lib/icon/right-shape.js +36 -29
- package/lib/icon/right-turn-line.js +36 -29
- package/lib/icon/search.js +36 -29
- package/lib/icon/share.js +36 -29
- package/lib/icon/spinner.js +36 -29
- package/lib/icon/success.js +36 -29
- package/lib/icon/switcher-loading.js +36 -29
- package/lib/icon/text-all.js +36 -29
- package/lib/icon/text-file.js +36 -29
- package/lib/icon/text-fill.js +36 -29
- package/lib/icon/transfer.js +36 -29
- package/lib/icon/tree-application-shape.js +36 -29
- package/lib/icon/unfull-screen.js +36 -29
- package/lib/icon/unvisible.js +36 -29
- package/lib/icon/up-shape.js +36 -29
- package/lib/icon/upload.js +36 -29
- package/lib/icon/video-fill.js +36 -29
- package/lib/icon/warn.js +36 -29
- package/lib/icon/weixin-pro.js +36 -29
- package/lib/icon/weixin.js +36 -29
- package/lib/image/index.js +47 -49
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +461 -62
- package/lib/input/index.js +60 -62
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +25 -22
- package/lib/menu/index.js +34 -36
- package/lib/message/index.js +31 -34
- package/lib/modal/index.js +14 -12
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +14 -12
- package/lib/overflow-title/index.js +10 -9
- package/lib/pagination/index.js +29 -32
- package/lib/pop-confirm/index.js +5 -4
- package/lib/popover/index.js +136 -209
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +452 -59
- package/lib/progress/index.js +19 -16
- package/lib/radio/index.js +34 -37
- package/lib/rate/index.js +14 -12
- package/lib/resize-layout/index.js +20 -18
- package/lib/scrollbar/index.js +58 -51
- package/lib/search-select/index.js +595 -222
- package/lib/select/index.js +463 -111
- package/lib/shared/index.js +95 -83
- package/lib/sideslider/index.js +441 -43
- package/lib/slider/index.js +446 -49
- package/lib/steps/index.js +458 -60
- package/lib/swiper/index.js +17 -15
- package/lib/switcher/index.js +14 -12
- package/lib/tab/index.js +40 -42
- package/lib/table/index.js +501 -152
- package/lib/tag/index.js +14 -12
- package/lib/tag-input/index.js +41 -47
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.js +17 -22
- package/lib/tree/index.js +66 -73
- package/lib/upload/index.js +487 -136
- package/lib/virtual-render/index.js +51 -47
- package/package.json +1 -2
package/lib/cascader/index.js
CHANGED
@@ -30,9 +30,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
30
30
|
// UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, clickoutside, mousewheel, overflowTitle
|
31
31
|
|
32
32
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
33
|
-
function _createForOfIteratorHelper(
|
34
|
-
function _unsupportedIterableToArray(
|
35
|
-
function _arrayLikeToArray(
|
33
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
34
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
35
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
36
36
|
/*
|
37
37
|
* Tencent is pleased to support the open source community by making
|
38
38
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1287,7 +1287,7 @@ module.exports = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib
|
|
1287
1287
|
|
1288
1288
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1289
1289
|
var y = x => () => x
|
1290
|
-
module.exports = x({ ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
1290
|
+
module.exports = x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
1291
1291
|
|
1292
1292
|
/***/ }),
|
1293
1293
|
|
@@ -1297,13 +1297,12 @@ module.exports = x({ ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.
|
|
1297
1297
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1298
1298
|
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
1299
1299
|
/* harmony export */ });
|
1300
|
-
function _arrayLikeToArray(
|
1301
|
-
(
|
1302
|
-
for (var
|
1303
|
-
return
|
1300
|
+
function _arrayLikeToArray(arr, len) {
|
1301
|
+
if (len == null || len > arr.length) len = arr.length;
|
1302
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1303
|
+
return arr2;
|
1304
1304
|
}
|
1305
1305
|
|
1306
|
-
|
1307
1306
|
/***/ }),
|
1308
1307
|
|
1309
1308
|
/***/ 74:
|
@@ -1314,11 +1313,10 @@ function _arrayLikeToArray(r, a) {
|
|
1314
1313
|
/* harmony export */ });
|
1315
1314
|
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1316
1315
|
|
1317
|
-
function _arrayWithoutHoles(
|
1318
|
-
if (Array.isArray(
|
1316
|
+
function _arrayWithoutHoles(arr) {
|
1317
|
+
if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
1319
1318
|
}
|
1320
1319
|
|
1321
|
-
|
1322
1320
|
/***/ }),
|
1323
1321
|
|
1324
1322
|
/***/ 6666:
|
@@ -1329,16 +1327,21 @@ function _arrayWithoutHoles(r) {
|
|
1329
1327
|
/* harmony export */ });
|
1330
1328
|
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3795);
|
1331
1329
|
|
1332
|
-
function _defineProperty(
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1330
|
+
function _defineProperty(obj, key, value) {
|
1331
|
+
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
1332
|
+
if (key in obj) {
|
1333
|
+
Object.defineProperty(obj, key, {
|
1334
|
+
value: value,
|
1335
|
+
enumerable: true,
|
1336
|
+
configurable: true,
|
1337
|
+
writable: true
|
1338
|
+
});
|
1339
|
+
} else {
|
1340
|
+
obj[key] = value;
|
1341
|
+
}
|
1342
|
+
return obj;
|
1339
1343
|
}
|
1340
1344
|
|
1341
|
-
|
1342
1345
|
/***/ }),
|
1343
1346
|
|
1344
1347
|
/***/ 1079:
|
@@ -1347,11 +1350,10 @@ function _defineProperty(e, r, t) {
|
|
1347
1350
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1348
1351
|
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
1349
1352
|
/* harmony export */ });
|
1350
|
-
function _iterableToArray(
|
1351
|
-
if (
|
1353
|
+
function _iterableToArray(iter) {
|
1354
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1352
1355
|
}
|
1353
1356
|
|
1354
|
-
|
1355
1357
|
/***/ }),
|
1356
1358
|
|
1357
1359
|
/***/ 6098:
|
@@ -1364,7 +1366,6 @@ function _nonIterableSpread() {
|
|
1364
1366
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1365
1367
|
}
|
1366
1368
|
|
1367
|
-
|
1368
1369
|
/***/ }),
|
1369
1370
|
|
1370
1371
|
/***/ 7930:
|
@@ -1381,11 +1382,10 @@ function _nonIterableSpread() {
|
|
1381
1382
|
|
1382
1383
|
|
1383
1384
|
|
1384
|
-
function _toConsumableArray(
|
1385
|
-
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
1385
|
+
function _toConsumableArray(arr) {
|
1386
|
+
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
1386
1387
|
}
|
1387
1388
|
|
1388
|
-
|
1389
1389
|
/***/ }),
|
1390
1390
|
|
1391
1391
|
/***/ 9745:
|
@@ -1407,7 +1407,6 @@ function toPrimitive(t, r) {
|
|
1407
1407
|
return ("string" === r ? String : Number)(t);
|
1408
1408
|
}
|
1409
1409
|
|
1410
|
-
|
1411
1410
|
/***/ }),
|
1412
1411
|
|
1413
1412
|
/***/ 3795:
|
@@ -1422,10 +1421,9 @@ function toPrimitive(t, r) {
|
|
1422
1421
|
|
1423
1422
|
function toPropertyKey(t) {
|
1424
1423
|
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
1425
|
-
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : i
|
1424
|
+
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
|
1426
1425
|
}
|
1427
1426
|
|
1428
|
-
|
1429
1427
|
/***/ }),
|
1430
1428
|
|
1431
1429
|
/***/ 6522:
|
@@ -1444,7 +1442,6 @@ function _typeof(o) {
|
|
1444
1442
|
}, _typeof(o);
|
1445
1443
|
}
|
1446
1444
|
|
1447
|
-
|
1448
1445
|
/***/ }),
|
1449
1446
|
|
1450
1447
|
/***/ 9147:
|
@@ -1455,15 +1452,15 @@ function _typeof(o) {
|
|
1455
1452
|
/* harmony export */ });
|
1456
1453
|
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1457
1454
|
|
1458
|
-
function _unsupportedIterableToArray(
|
1459
|
-
if (
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1455
|
+
function _unsupportedIterableToArray(o, minLen) {
|
1456
|
+
if (!o) return;
|
1457
|
+
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1458
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1459
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1460
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
1461
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1464
1462
|
}
|
1465
1463
|
|
1466
|
-
|
1467
1464
|
/***/ })
|
1468
1465
|
|
1469
1466
|
/******/ });
|
@@ -1584,9 +1581,10 @@ var checkbox_less_y = x => () => x
|
|
1584
1581
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
1585
1582
|
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader-panel.tsx
|
1586
1583
|
|
1587
|
-
function _createForOfIteratorHelper(
|
1588
|
-
function _unsupportedIterableToArray(
|
1589
|
-
function _arrayLikeToArray(
|
1584
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
1585
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
1586
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
1587
|
+
/*
|
1590
1588
|
* Tencent is pleased to support the open source community by making
|
1591
1589
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1592
1590
|
*
|
@@ -1617,11 +1615,12 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1617
1615
|
|
1618
1616
|
|
1619
1617
|
|
1618
|
+
|
1620
1619
|
/**
|
1621
1620
|
* CascaderPanel 组件
|
1622
1621
|
* 用于展示级联选择器的面板,支持多选、单选、远程加载等功能。
|
1623
1622
|
*/
|
1624
|
-
/* harmony default export */ const cascader_panel = (defineComponent({
|
1623
|
+
/* harmony default export */ const cascader_panel = ((0,external_vue_.defineComponent)({
|
1625
1624
|
name: 'CascaderPanel',
|
1626
1625
|
props: {
|
1627
1626
|
width: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def('auto'),
|
@@ -1639,13 +1638,13 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1639
1638
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
1640
1639
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1641
1640
|
resolveClassName = _usePrefix.resolveClassName;
|
1642
|
-
var _toRefs = toRefs(props),
|
1641
|
+
var _toRefs = (0,external_vue_.toRefs)(props),
|
1643
1642
|
store = _toRefs.store;
|
1644
|
-
var menus = reactive({
|
1643
|
+
var menus = (0,external_vue_.reactive)({
|
1645
1644
|
list: [props.store.getNodes()]
|
1646
1645
|
});
|
1647
|
-
var activePath = ref([]);
|
1648
|
-
var checkValue = ref([]);
|
1646
|
+
var activePath = (0,external_vue_.ref)([]);
|
1647
|
+
var checkValue = (0,external_vue_.ref)([]);
|
1649
1648
|
/**
|
1650
1649
|
* 根据传入的值计算尺寸
|
1651
1650
|
* @param value - 数字或字符串类型的尺寸值
|
@@ -1722,13 +1721,13 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1722
1721
|
}
|
1723
1722
|
};
|
1724
1723
|
// 展开节点的所有父节点
|
1725
|
-
var
|
1724
|
+
var expandParents = function expandParents(node) {
|
1726
1725
|
if (node.parent) {
|
1727
|
-
|
1726
|
+
expandParents(node.parent);
|
1728
1727
|
}
|
1729
1728
|
expandNode(node);
|
1730
1729
|
};
|
1731
|
-
|
1730
|
+
expandParents(node);
|
1732
1731
|
}
|
1733
1732
|
});
|
1734
1733
|
}
|
@@ -1830,7 +1829,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1830
1829
|
// 查找当前级别中选中的或已勾选的节点
|
1831
1830
|
var selectedNode = document.querySelector(".".concat(resolveClassName('cascader-panel'), ":nth-child(").concat(level + 1, ") .").concat(resolveClassName('cascader-node.is-selected'), ", .").concat(resolveClassName('cascader-node.is-checked')));
|
1832
1831
|
if (selectedNode) {
|
1833
|
-
nextTick(function () {
|
1832
|
+
(0,external_vue_.nextTick)(function () {
|
1834
1833
|
selectedNode.scrollIntoView();
|
1835
1834
|
});
|
1836
1835
|
}
|
@@ -1880,7 +1879,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1880
1879
|
}, null);
|
1881
1880
|
};
|
1882
1881
|
// 监听 modelValue 的变化,更新选中值
|
1883
|
-
watch(function () {
|
1882
|
+
(0,external_vue_.watch)(function () {
|
1884
1883
|
return props.modelValue;
|
1885
1884
|
}, function (value) {
|
1886
1885
|
updateCheckValue(value);
|
@@ -1888,7 +1887,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1888
1887
|
immediate: true
|
1889
1888
|
});
|
1890
1889
|
// 监听 store 的变化,更新菜单列表
|
1891
|
-
watch(function () {
|
1890
|
+
(0,external_vue_.watch)(function () {
|
1892
1891
|
return props.store;
|
1893
1892
|
}, function (value) {
|
1894
1893
|
menus.list = [value.getNodes()];
|
@@ -1981,26 +1980,32 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1981
1980
|
}
|
1982
1981
|
}));
|
1983
1982
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
1984
|
-
function _classCallCheck(
|
1985
|
-
if (!(
|
1983
|
+
function _classCallCheck(instance, Constructor) {
|
1984
|
+
if (!(instance instanceof Constructor)) {
|
1985
|
+
throw new TypeError("Cannot call a class as a function");
|
1986
|
+
}
|
1986
1987
|
}
|
1987
|
-
|
1988
1988
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1989
1989
|
var toPropertyKey = __webpack_require__(3795);
|
1990
1990
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
1991
1991
|
|
1992
|
-
function _defineProperties(
|
1993
|
-
for (var
|
1994
|
-
var
|
1995
|
-
|
1992
|
+
function _defineProperties(target, props) {
|
1993
|
+
for (var i = 0; i < props.length; i++) {
|
1994
|
+
var descriptor = props[i];
|
1995
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
1996
|
+
descriptor.configurable = true;
|
1997
|
+
if ("value" in descriptor) descriptor.writable = true;
|
1998
|
+
Object.defineProperty(target, (0,toPropertyKey["default"])(descriptor.key), descriptor);
|
1996
1999
|
}
|
1997
2000
|
}
|
1998
|
-
function _createClass(
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2001
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
2002
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
2003
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
2004
|
+
Object.defineProperty(Constructor, "prototype", {
|
2005
|
+
writable: false
|
2006
|
+
});
|
2007
|
+
return Constructor;
|
2002
2008
|
}
|
2003
|
-
|
2004
2009
|
;// CONCATENATED MODULE: ../../packages/cascader/src/node.ts
|
2005
2010
|
|
2006
2011
|
|
@@ -2068,7 +2073,7 @@ var Node = /*#__PURE__*/function () {
|
|
2068
2073
|
this.initState();
|
2069
2074
|
}
|
2070
2075
|
// 初始化节点状态
|
2071
|
-
|
2076
|
+
_createClass(Node, [{
|
2072
2077
|
key: "initState",
|
2073
2078
|
value: function initState() {
|
2074
2079
|
var _this = this;
|
@@ -2195,6 +2200,7 @@ var Node = /*#__PURE__*/function () {
|
|
2195
2200
|
return nodes;
|
2196
2201
|
}
|
2197
2202
|
}]);
|
2203
|
+
return Node;
|
2198
2204
|
}();
|
2199
2205
|
/* harmony default export */ const src_node = (Node);
|
2200
2206
|
;// CONCATENATED MODULE: ../../packages/cascader/src/store.ts
|
@@ -2227,13 +2233,13 @@ var Node = /*#__PURE__*/function () {
|
|
2227
2233
|
*/
|
2228
2234
|
|
2229
2235
|
|
2230
|
-
var
|
2236
|
+
var flatNodes = function flatNodes(data, leafOnly) {
|
2231
2237
|
return data.reduce(function (acc, node) {
|
2232
2238
|
if (node.isLeaf) {
|
2233
2239
|
acc.push(node);
|
2234
2240
|
} else {
|
2235
2241
|
!leafOnly && acc.push(node);
|
2236
|
-
acc = acc.concat(
|
2242
|
+
acc = acc.concat(flatNodes(node.children, leafOnly));
|
2237
2243
|
}
|
2238
2244
|
return acc;
|
2239
2245
|
}, []);
|
@@ -2249,7 +2255,7 @@ var Store = /*#__PURE__*/function () {
|
|
2249
2255
|
return new src_node(node, _this.config);
|
2250
2256
|
});
|
2251
2257
|
}
|
2252
|
-
|
2258
|
+
_createClass(Store, [{
|
2253
2259
|
key: "getNodes",
|
2254
2260
|
value: function getNodes() {
|
2255
2261
|
return this.nodes;
|
@@ -2280,7 +2286,7 @@ var Store = /*#__PURE__*/function () {
|
|
2280
2286
|
key: "getFlattedNodes",
|
2281
2287
|
value: function getFlattedNodes() {
|
2282
2288
|
var leafOnly = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
2283
|
-
return
|
2289
|
+
return flatNodes(this.nodes, leafOnly);
|
2284
2290
|
}
|
2285
2291
|
/** 根据传入节点设置节点check状态 */
|
2286
2292
|
}, {
|
@@ -2348,6 +2354,7 @@ var Store = /*#__PURE__*/function () {
|
|
2348
2354
|
});
|
2349
2355
|
}
|
2350
2356
|
}]);
|
2357
|
+
return Store;
|
2351
2358
|
}();
|
2352
2359
|
/* harmony default export */ const src_store = (Store);
|
2353
2360
|
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader.tsx
|
@@ -2395,7 +2402,7 @@ var Store = /*#__PURE__*/function () {
|
|
2395
2402
|
* Cascader 组件
|
2396
2403
|
* 用于展示级联选择器,支持多选、单选、搜索、远程加载等功能。
|
2397
2404
|
*/
|
2398
|
-
/* harmony default export */ const cascader = (defineComponent({
|
2405
|
+
/* harmony default export */ const cascader = ((0,external_vue_.defineComponent)({
|
2399
2406
|
name: 'Cascader',
|
2400
2407
|
directives: {
|
2401
2408
|
bkTooltips: src.bkTooltips
|
@@ -2448,31 +2455,31 @@ var Store = /*#__PURE__*/function () {
|
|
2448
2455
|
isHover = _useHover.isHover,
|
2449
2456
|
setHover = _useHover.setHover,
|
2450
2457
|
cancelHover = _useHover.cancelHover;
|
2451
|
-
var store = ref(new src_store(props));
|
2458
|
+
var store = (0,external_vue_.ref)(new src_store(props));
|
2452
2459
|
// 用于处理在 removeTag 时, popOver panel 触发 clickOutside 消失的问题
|
2453
|
-
var isAlways = ref(false);
|
2460
|
+
var isAlways = (0,external_vue_.ref)(false);
|
2454
2461
|
// 定义selectedText变量用于记录当前选择的值的文本
|
2455
|
-
var selectedText = ref('');
|
2462
|
+
var selectedText = (0,external_vue_.ref)('');
|
2456
2463
|
// 定义selectedTags变量用于记录多选模式下已选的tag
|
2457
|
-
var selectedTags = ref([]);
|
2458
|
-
var _toRefs = toRefs(props),
|
2464
|
+
var selectedTags = (0,external_vue_.ref)([]);
|
2465
|
+
var _toRefs = (0,external_vue_.toRefs)(props),
|
2459
2466
|
modelValue = _toRefs.modelValue;
|
2460
2467
|
// 定义cascaderPanel 引用
|
2461
|
-
var cascaderPanel = ref();
|
2468
|
+
var cascaderPanel = (0,external_vue_.ref)();
|
2462
2469
|
// 定义searchKey变量,支持搜索时,搜索框绑定变量
|
2463
|
-
var searchKey = ref('');
|
2470
|
+
var searchKey = (0,external_vue_.ref)('');
|
2464
2471
|
// 定义suggestions变量,搜索功能打开时,面板给出的列表
|
2465
|
-
var suggestions = ref([]);
|
2472
|
+
var suggestions = (0,external_vue_.ref)([]);
|
2466
2473
|
// 定义isFiltering变量,记录是否正在搜索,过滤
|
2467
|
-
var isFiltering = ref(false);
|
2474
|
+
var isFiltering = (0,external_vue_.ref)(false);
|
2468
2475
|
// 定义isEdit变量,记录是否处于编辑状态
|
2469
|
-
var isEdit = ref(false);
|
2476
|
+
var isEdit = (0,external_vue_.ref)(false);
|
2470
2477
|
// 定义isFocus变量,记录是否处于焦点状态
|
2471
|
-
var isFocus = ref(false);
|
2478
|
+
var isFocus = (0,external_vue_.ref)(false);
|
2472
2479
|
// 定义isShowPanel变量,用于标致面板显示
|
2473
|
-
var isShowPanel = ref(false);
|
2480
|
+
var isShowPanel = (0,external_vue_.ref)(false);
|
2474
2481
|
// 用computed定义checkedValue变量,用于监听modelValue的变化
|
2475
|
-
var checkedValue = computed({
|
2482
|
+
var checkedValue = (0,external_vue_.computed)({
|
2476
2483
|
get: function get() {
|
2477
2484
|
return modelValue.value;
|
2478
2485
|
},
|
@@ -2481,16 +2488,16 @@ var Store = /*#__PURE__*/function () {
|
|
2481
2488
|
}
|
2482
2489
|
});
|
2483
2490
|
// 定义popover变量
|
2484
|
-
var popover = ref(null);
|
2491
|
+
var popover = (0,external_vue_.ref)(null);
|
2485
2492
|
// 定义bkCascaderRef和inputRef变量
|
2486
|
-
var bkCascaderRef = ref(null);
|
2487
|
-
var inputRef = ref(null);
|
2493
|
+
var bkCascaderRef = (0,external_vue_.ref)(null);
|
2494
|
+
var inputRef = (0,external_vue_.ref)(null);
|
2488
2495
|
// 用computed定义placeholder变量,用于处理props中的placeholder属性
|
2489
|
-
var placeholder = computed(function () {
|
2496
|
+
var placeholder = (0,external_vue_.computed)(function () {
|
2490
2497
|
var placeholder = props.placeholder ? props.placeholder : t.value.pleaseSelect;
|
2491
2498
|
return modelValue.value.length === 0 ? placeholder : '';
|
2492
2499
|
});
|
2493
|
-
var displayText = computed(function () {
|
2500
|
+
var displayText = (0,external_vue_.computed)(function () {
|
2494
2501
|
if (props.customTextFillback) {
|
2495
2502
|
return props.customTextFillback(props.modelValue, store.value.getFlattedNodes());
|
2496
2503
|
}
|
@@ -2599,7 +2606,7 @@ var Store = /*#__PURE__*/function () {
|
|
2599
2606
|
isEdit.value = val.isShow;
|
2600
2607
|
// popover激活后,focus相应事件
|
2601
2608
|
isFocus.value = val.isShow;
|
2602
|
-
nextTick(function () {
|
2609
|
+
(0,external_vue_.nextTick)(function () {
|
2603
2610
|
if (val.isShow) {
|
2604
2611
|
var _inputRef$value2, _cascaderPanel$value;
|
2605
2612
|
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
|
@@ -2646,28 +2653,28 @@ var Store = /*#__PURE__*/function () {
|
|
2646
2653
|
emit('focus');
|
2647
2654
|
};
|
2648
2655
|
// 监听modelValue的变化
|
2649
|
-
watch(function () {
|
2656
|
+
(0,external_vue_.watch)(function () {
|
2650
2657
|
return props.modelValue;
|
2651
2658
|
}, modelValueChangeHandler, {
|
2652
2659
|
immediate: true
|
2653
2660
|
});
|
2654
2661
|
// 监听list的变化
|
2655
|
-
watch(function () {
|
2662
|
+
(0,external_vue_.watch)(function () {
|
2656
2663
|
return props.list;
|
2657
2664
|
}, listChangeHandler, {
|
2658
2665
|
deep: true,
|
2659
2666
|
immediate: true
|
2660
2667
|
});
|
2661
2668
|
// 定义overflowTagIndex变量,用于处理tag的折叠
|
2662
|
-
var tagList = computed(function () {
|
2669
|
+
var tagList = (0,external_vue_.computed)(function () {
|
2663
2670
|
return props.customTagsFillback ? props.customTagsFillback(props.modelValue, store.value.getFlattedNodes()) : selectedTags.value.map(function (item) {
|
2664
2671
|
return item.text;
|
2665
2672
|
});
|
2666
2673
|
});
|
2667
|
-
var isCollapse = computed(function () {
|
2674
|
+
var isCollapse = (0,external_vue_.computed)(function () {
|
2668
2675
|
return props.collapseTags ? props.collapseTags && isFocus.value : props.collapseTags;
|
2669
2676
|
});
|
2670
|
-
var isEditMode = computed(function () {
|
2677
|
+
var isEditMode = (0,external_vue_.computed)(function () {
|
2671
2678
|
return props.collapseTags ? props.collapseTags && isEdit.value : props.collapseTags;
|
2672
2679
|
});
|
2673
2680
|
// 如果使用了trigger插槽,则不存在bkCascaderRef,做兼容处理
|
package/lib/checkbox/index.js
CHANGED
@@ -50,7 +50,6 @@ function _typeof(o) {
|
|
50
50
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
51
51
|
}, _typeof(o);
|
52
52
|
}
|
53
|
-
|
54
53
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
55
54
|
|
56
55
|
function toPrimitive(t, r) {
|
@@ -63,31 +62,33 @@ function toPrimitive(t, r) {
|
|
63
62
|
}
|
64
63
|
return ("string" === r ? String : Number)(t);
|
65
64
|
}
|
66
|
-
|
67
65
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
68
66
|
|
69
67
|
|
70
68
|
function toPropertyKey(t) {
|
71
69
|
var i = toPrimitive(t, "string");
|
72
|
-
return "symbol" == _typeof(i) ? i : i
|
70
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
73
71
|
}
|
74
|
-
|
75
72
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
76
73
|
|
77
|
-
function _defineProperty(
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
74
|
+
function _defineProperty(obj, key, value) {
|
75
|
+
key = toPropertyKey(key);
|
76
|
+
if (key in obj) {
|
77
|
+
Object.defineProperty(obj, key, {
|
78
|
+
value: value,
|
79
|
+
enumerable: true,
|
80
|
+
configurable: true,
|
81
|
+
writable: true
|
82
|
+
});
|
83
|
+
} else {
|
84
|
+
obj[key] = value;
|
85
|
+
}
|
86
|
+
return obj;
|
84
87
|
}
|
85
|
-
|
86
88
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
87
|
-
function _arrayWithHoles(
|
88
|
-
if (Array.isArray(
|
89
|
+
function _arrayWithHoles(arr) {
|
90
|
+
if (Array.isArray(arr)) return arr;
|
89
91
|
}
|
90
|
-
|
91
92
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
92
93
|
function _iterableToArrayLimit(r, l) {
|
93
94
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
@@ -116,42 +117,38 @@ function _iterableToArrayLimit(r, l) {
|
|
116
117
|
return a;
|
117
118
|
}
|
118
119
|
}
|
119
|
-
|
120
120
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
121
|
-
function _arrayLikeToArray(
|
122
|
-
(
|
123
|
-
for (var
|
124
|
-
return
|
121
|
+
function _arrayLikeToArray(arr, len) {
|
122
|
+
if (len == null || len > arr.length) len = arr.length;
|
123
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
124
|
+
return arr2;
|
125
125
|
}
|
126
|
-
|
127
126
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
128
127
|
|
129
|
-
function _unsupportedIterableToArray(
|
130
|
-
if (
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
128
|
+
function _unsupportedIterableToArray(o, minLen) {
|
129
|
+
if (!o) return;
|
130
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
131
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
132
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
133
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
134
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
135
135
|
}
|
136
|
-
|
137
136
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
138
137
|
function _nonIterableRest() {
|
139
138
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
140
139
|
}
|
141
|
-
|
142
140
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
143
141
|
|
144
142
|
|
145
143
|
|
146
144
|
|
147
|
-
function _slicedToArray(
|
148
|
-
return _arrayWithHoles(
|
145
|
+
function _slicedToArray(arr, i) {
|
146
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
149
147
|
}
|
150
|
-
|
151
148
|
;// CONCATENATED MODULE: external "vue"
|
152
149
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
153
150
|
var external_vue_y = x => () => x
|
154
|
-
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
151
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
155
152
|
;// CONCATENATED MODULE: external "vue-types"
|
156
153
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
157
154
|
var external_vue_types_y = x => () => x
|
@@ -470,12 +467,13 @@ var checkboxProps = {
|
|
470
467
|
|
471
468
|
|
472
469
|
|
470
|
+
|
473
471
|
var checkboxGroupProps = {
|
474
472
|
modelValue: shared_namespaceObject.PropTypes.array,
|
475
473
|
disabled: shared_namespaceObject.PropTypes.bool,
|
476
474
|
withValidate: shared_namespaceObject.PropTypes.bool.def(true)
|
477
475
|
};
|
478
|
-
/* harmony default export */ const checkbox_group = (defineComponent({
|
476
|
+
/* harmony default export */ const checkbox_group = ((0,external_vue_namespaceObject.defineComponent)({
|
479
477
|
name: 'CheckboxGroup',
|
480
478
|
props: checkboxGroupProps,
|
481
479
|
emits: {
|
@@ -508,14 +506,14 @@ var checkboxGroupProps = {
|
|
508
506
|
context.emit('update:modelValue', nextValue);
|
509
507
|
context.emit('change', nextValue);
|
510
508
|
};
|
511
|
-
provide(checkboxGroupKey, {
|
509
|
+
(0,external_vue_namespaceObject.provide)(checkboxGroupKey, {
|
512
510
|
name: 'CheckboxGroup',
|
513
511
|
props: props,
|
514
512
|
register: register,
|
515
513
|
unregister: unregister,
|
516
514
|
handleChange: handleChange
|
517
515
|
});
|
518
|
-
watch(function () {
|
516
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
519
517
|
return props.modelValue;
|
520
518
|
}, function () {
|
521
519
|
if (props.withValidate) {
|
@@ -523,7 +521,7 @@ var checkboxGroupProps = {
|
|
523
521
|
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
|
524
522
|
}
|
525
523
|
});
|
526
|
-
onMounted(function () {
|
524
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
527
525
|
var modelValue = props.modelValue || [];
|
528
526
|
checkboxInstanceList.forEach(function (checkboxInstance) {
|
529
527
|
if (modelValue.includes(checkboxInstance.label)) {
|