bkui-vue 1.0.3-beta.62 → 1.0.3-beta.62.dialog.1
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 +69 -69
- package/dist/index.esm.js +20255 -19428
- package/dist/index.umd.js +69 -69
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +1 -1
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +7 -8
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/index.js +1 -1
- package/lib/card/index.js +1 -1
- package/lib/cascader/index.js +38 -42
- package/lib/checkbox/index.js +6 -7
- package/lib/collapse/index.js +11 -12
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/index.js +10 -13
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/index.js +1 -1
- package/lib/container/index.js +10 -12
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.css +139 -77
- package/lib/dialog/dialog.d.ts +41 -121
- package/lib/dialog/dialog.less +10 -65
- package/lib/dialog/dialog.variable.css +139 -77
- package/lib/dialog/index.d.ts +105 -272
- package/lib/dialog/index.js +95 -104
- package/lib/dialog/props.d.ts +8 -48
- package/lib/directives/index.js +1 -1
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/index.js +6 -8
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/assistant.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/grag-fill.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/loading.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-all.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/index.js +10 -11
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +316 -177
- package/lib/info-box/info-box.css +63 -7
- package/lib/info-box/info-box.d.ts +17 -16
- package/lib/info-box/info-box.less +76 -14
- package/lib/info-box/info-box.variable.css +63 -7
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.js +4 -4
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +11 -12
- package/lib/menu/index.js +2 -3
- package/lib/message/index.js +1 -1
- package/lib/modal/index.d.ts +45 -325
- package/lib/modal/index.js +188 -667
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +131 -31
- package/lib/modal/modal.d.ts +16 -126
- package/lib/modal/modal.less +84 -28
- package/lib/modal/modal.variable.css +131 -31
- package/lib/modal/props.mixin.d.ts +2 -53
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +1 -1
- package/lib/overflow-title/index.js +9 -10
- package/lib/pagination/index.js +1 -1
- package/lib/plugin-popover/index.js +26 -30
- package/lib/pop-confirm/index.js +4 -5
- package/lib/popover/index.js +26 -30
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +4 -4
- package/lib/progress/index.js +5 -6
- package/lib/radio/index.js +6 -7
- package/lib/rate/index.js +1 -1
- package/lib/resize-layout/index.js +1 -1
- package/lib/scrollbar/index.d.ts +14 -0
- package/lib/scrollbar/index.js +18737 -0
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +236 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +74 -0
- package/lib/scrollbar/scrollbar.less +93 -0
- package/lib/scrollbar/scrollbar.variable.css +203 -0
- package/lib/search-select/index.js +11 -14
- package/lib/select/index.js +4 -4
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +6 -56
- package/lib/sideslider/index.d.ts +31 -222
- package/lib/sideslider/index.js +53 -40
- package/lib/sideslider/sideslider.css +4 -42
- package/lib/sideslider/sideslider.d.ts +14 -105
- package/lib/sideslider/sideslider.less +13 -58
- package/lib/sideslider/sideslider.variable.css +4 -42
- package/lib/slider/index.js +19 -20
- package/lib/steps/index.js +4 -4
- package/lib/swiper/index.js +1 -1
- package/lib/switcher/index.js +1 -1
- package/lib/tab/index.js +3 -4
- package/lib/table/const.d.ts +1 -1
- package/lib/table/index.d.ts +23 -0
- package/lib/table/index.js +182 -51
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +11 -0
- package/lib/table/props.d.ts +8 -0
- package/lib/table/table.css +97 -42
- package/lib/table/table.d.ts +11 -0
- package/lib/table/table.less +43 -58
- package/lib/table/table.variable.css +97 -42
- package/lib/table/use-attributes.d.ts +1 -0
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table-column/index.js +7 -3
- package/lib/tag/index.js +1 -1
- package/lib/tag-input/index.js +3 -4
- package/lib/tree/index.d.ts +23 -0
- package/lib/tree/index.js +19 -15
- package/lib/tree/props.d.ts +8 -0
- package/lib/tree/tree.css +75 -2
- package/lib/tree/tree.d.ts +11 -0
- package/lib/tree/tree.variable.css +75 -2
- package/lib/upload/index.js +4 -4
- package/lib/virtual-render/index.d.ts +4 -0
- package/lib/virtual-render/index.js +255 -55
- package/lib/virtual-render/props.d.ts +7 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +23 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +75 -2
- package/lib/virtual-render/virtual-render.d.ts +2 -0
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +75 -2
- package/package.json +1 -1
- package/lib/shared/mask.d.ts +0 -11
package/lib/table/index.js
CHANGED
@@ -101,7 +101,7 @@ function toPrimitive(t, r) {
|
|
101
101
|
|
102
102
|
function toPropertyKey(t) {
|
103
103
|
var i = toPrimitive(t, "string");
|
104
|
-
return "symbol" == typeof_typeof(i) ? i :
|
104
|
+
return "symbol" == typeof_typeof(i) ? i : i + "";
|
105
105
|
}
|
106
106
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
107
107
|
|
@@ -122,7 +122,7 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
122
122
|
;// CONCATENATED MODULE: external "vue"
|
123
123
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
124
124
|
var external_vue_y = x => () => x
|
125
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["watchEffect"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watchEffect });
|
125
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["watchEffect"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watchEffect });
|
126
126
|
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
127
127
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
128
128
|
/* harmony default export */ const esm_browser_native = ({
|
@@ -295,7 +295,7 @@ var COLUMN_ATTRIBUTE = {
|
|
295
295
|
/**
|
296
296
|
* Y 轴滚动条宽度
|
297
297
|
*/
|
298
|
-
var SCROLLY_WIDTH =
|
298
|
+
var SCROLLY_WIDTH = 0;
|
299
299
|
/**
|
300
300
|
* 默认行高
|
301
301
|
*/
|
@@ -723,7 +723,11 @@ var tableProps = {
|
|
723
723
|
/**
|
724
724
|
* 是否支持行拖拽排序
|
725
725
|
*/
|
726
|
-
rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false)
|
726
|
+
rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false),
|
727
|
+
/**
|
728
|
+
* 是否支持shift键多行选择
|
729
|
+
*/
|
730
|
+
shiftMultiChecked: shared_namespaceObject.PropTypes.bool.def(false)
|
727
731
|
};
|
728
732
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
729
733
|
|
@@ -1051,7 +1055,7 @@ var BkTableCache = /*#__PURE__*/function () {
|
|
1051
1055
|
defineProperty_defineProperty(this, "defKey", Symbol('bk-table-cache-def-key'));
|
1052
1056
|
this.storage = new WeakMap();
|
1053
1057
|
}
|
1054
|
-
_createClass(BkTableCache, [{
|
1058
|
+
return _createClass(BkTableCache, [{
|
1055
1059
|
key: "queueStack",
|
1056
1060
|
value: function queueStack(methodName) {
|
1057
1061
|
var _target$methodName;
|
@@ -1085,7 +1089,6 @@ var BkTableCache = /*#__PURE__*/function () {
|
|
1085
1089
|
}
|
1086
1090
|
}
|
1087
1091
|
}]);
|
1088
|
-
return BkTableCache;
|
1089
1092
|
}();
|
1090
1093
|
|
1091
1094
|
;// CONCATENATED MODULE: ../../packages/table/src/events.ts
|
@@ -1496,7 +1499,6 @@ function _toConsumableArray(arr) {
|
|
1496
1499
|
*/
|
1497
1500
|
|
1498
1501
|
|
1499
|
-
|
1500
1502
|
/**
|
1501
1503
|
* 固定列Hooks
|
1502
1504
|
*/
|
@@ -1583,13 +1585,12 @@ function _toConsumableArray(arr) {
|
|
1583
1585
|
* @returns
|
1584
1586
|
*/
|
1585
1587
|
var resolveFixedColumnStyle = function resolveFixedColumnStyle(column) {
|
1586
|
-
var hasScrollY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
1587
1588
|
if (!column.fixed || isHiddenColumn(column)) {
|
1588
1589
|
return {};
|
1589
1590
|
}
|
1590
1591
|
var fixedOffset = {
|
1591
1592
|
left: 0,
|
1592
|
-
right:
|
1593
|
+
right: -1
|
1593
1594
|
};
|
1594
1595
|
var fixedPos = resolveFixColPos(column);
|
1595
1596
|
fixedOffset[fixedPos] = getPreColumnOffset(fixedPos, column, fixedOffset[fixedPos]);
|
@@ -3199,6 +3200,7 @@ const loading_less_namespaceObject = loading_less_x({ });
|
|
3199
3200
|
return refScrollLoading.value !== null && (typeof refScrollLoading.value === 'boolean' && refScrollLoading.value || typeof_typeof(refScrollLoading.value) === 'object');
|
3200
3201
|
});
|
3201
3202
|
var renderScrollLoading = function renderScrollLoading() {
|
3203
|
+
var _ctx$slots$fixedBotto3, _ctx$slots$fixedBotto4, _ctx$slots2;
|
3202
3204
|
if (isRender.value) {
|
3203
3205
|
var _ctx$slots$fixedBotto, _ctx$slots$fixedBotto2, _ctx$slots;
|
3204
3206
|
var _getLoadingOption = getLoadingOption(),
|
@@ -3217,6 +3219,7 @@ const loading_less_namespaceObject = loading_less_x({ });
|
|
3217
3219
|
indicator: indicator
|
3218
3220
|
}, null);
|
3219
3221
|
}
|
3222
|
+
return (_ctx$slots$fixedBotto3 = (_ctx$slots$fixedBotto4 = (_ctx$slots2 = ctx.slots).fixedBottom) === null || _ctx$slots$fixedBotto4 === void 0 ? void 0 : _ctx$slots$fixedBotto4.call(_ctx$slots2)) !== null && _ctx$slots$fixedBotto3 !== void 0 ? _ctx$slots$fixedBotto3 : null;
|
3220
3223
|
};
|
3221
3224
|
return {
|
3222
3225
|
renderScrollLoading: renderScrollLoading
|
@@ -3304,9 +3307,9 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
3304
3307
|
if (!props.pagination) {
|
3305
3308
|
return;
|
3306
3309
|
}
|
3307
|
-
localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread(
|
3310
|
+
localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread({
|
3308
3311
|
count: indexData.length
|
3309
|
-
});
|
3312
|
+
}, pagination);
|
3310
3313
|
};
|
3311
3314
|
/**
|
3312
3315
|
* 重置当前分页开始位置 & 结束位置
|
@@ -3371,35 +3374,35 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
3371
3374
|
}
|
3372
3375
|
pageData.length = 0;
|
3373
3376
|
pageData.push.apply(pageData, _toConsumableArray(sourceData.slice(startIndex.value, endIndex.value)));
|
3374
|
-
|
3377
|
+
if (Array.isArray(filterFn)) {
|
3378
|
+
multiFilter(filterFn, pageData);
|
3379
|
+
} else {
|
3380
|
+
filter(pageData, filterFn);
|
3381
|
+
}
|
3375
3382
|
sort(pageData, sortFn, column, type, sortScope);
|
3376
3383
|
resolveLocalPagination();
|
3377
3384
|
};
|
3378
3385
|
var resolvePageDataBySortList = function resolvePageDataBySortList(multiCol) {
|
3379
3386
|
resolvePageData(null, null, null, null, null, multiCol);
|
3380
3387
|
};
|
3381
|
-
var
|
3382
|
-
|
3388
|
+
var getCurrentPageData = function getCurrentPageData() {
|
3389
|
+
return indexData.slice(startIndex.value, endIndex.value);
|
3390
|
+
};
|
3391
|
+
var multiFilter = function multiFilter(filterFnList, origin) {
|
3392
|
+
var sourceData = (origin !== null && origin !== void 0 ? origin : indexData).slice();
|
3383
3393
|
var target = filterFnList.reduce(function (result, fn) {
|
3384
3394
|
return filter(result, fn);
|
3385
3395
|
}, sourceData);
|
3386
3396
|
pageData.length = 0;
|
3387
3397
|
pageData.push.apply(pageData, _toConsumableArray(getRawData(target)));
|
3388
3398
|
};
|
3389
|
-
var handlePaginationChange = function handlePaginationChange() {
|
3399
|
+
var handlePaginationChange = function handlePaginationChange(filterFn, sortFn) {
|
3390
3400
|
pagination = resolvePaginationOption(props.pagination, pagination);
|
3391
3401
|
resolveLocalPagination();
|
3392
3402
|
resetStartEndIndex();
|
3393
|
-
resolvePageData();
|
3403
|
+
resolvePageData(filterFn, sortFn);
|
3394
3404
|
};
|
3395
3405
|
handlePaginationChange();
|
3396
|
-
(0,external_vue_namespaceObject.watch)(function () {
|
3397
|
-
return [props.pagination];
|
3398
|
-
}, function () {
|
3399
|
-
handlePaginationChange();
|
3400
|
-
}, {
|
3401
|
-
deep: true
|
3402
|
-
});
|
3403
3406
|
return {
|
3404
3407
|
pageData: pageData,
|
3405
3408
|
indexData: indexData,
|
@@ -3407,7 +3410,9 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
3407
3410
|
resolvePageData: resolvePageData,
|
3408
3411
|
resolveIndexData: resolveIndexData,
|
3409
3412
|
resolvePageDataBySortList: resolvePageDataBySortList,
|
3413
|
+
handlePaginationChange: handlePaginationChange,
|
3410
3414
|
resetStartEndIndex: resetStartEndIndex,
|
3415
|
+
getCurrentPageData: getCurrentPageData,
|
3411
3416
|
multiFilter: multiFilter,
|
3412
3417
|
sort: sort
|
3413
3418
|
};
|
@@ -3486,6 +3491,8 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
3486
3491
|
localPagination = _usePagination.localPagination,
|
3487
3492
|
resolvePageData = _usePagination.resolvePageData,
|
3488
3493
|
resolvePageDataBySortList = _usePagination.resolvePageDataBySortList,
|
3494
|
+
handlePaginationChange = _usePagination.handlePaginationChange,
|
3495
|
+
getCurrentPageData = _usePagination.getCurrentPageData,
|
3489
3496
|
multiFilter = _usePagination.multiFilter,
|
3490
3497
|
sort = _usePagination.sort,
|
3491
3498
|
resetStartEndIndex = _usePagination.resetStartEndIndex,
|
@@ -3608,13 +3615,15 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
3608
3615
|
var getColumnFilterFn = function getColumnFilterFn(col) {
|
3609
3616
|
return getColumnAttribute(col, COLUMN_ATTRIBUTE.COL_FILTER_FN);
|
3610
3617
|
};
|
3611
|
-
var
|
3612
|
-
|
3618
|
+
var getFilterFnList = function getFilterFnList() {
|
3619
|
+
return formatData.columns.filter(function (col) {
|
3613
3620
|
return !isHiddenColumn(col) && typeof getColumnFilterFn(col) === 'function';
|
3614
3621
|
}).map(function (col) {
|
3615
3622
|
return getColumnFilterFn(col);
|
3616
3623
|
});
|
3617
|
-
|
3624
|
+
};
|
3625
|
+
var filter = function filter() {
|
3626
|
+
multiFilter(getFilterFnList(), getCurrentPageData());
|
3618
3627
|
};
|
3619
3628
|
/**
|
3620
3629
|
* 按照指定列排序
|
@@ -4075,6 +4084,13 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
4075
4084
|
var setIndexData = function setIndexData() {
|
4076
4085
|
return resolveIndexData();
|
4077
4086
|
};
|
4087
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
4088
|
+
return [props.pagination];
|
4089
|
+
}, function () {
|
4090
|
+
handlePaginationChange(getFilterFnList());
|
4091
|
+
}, {
|
4092
|
+
deep: true
|
4093
|
+
});
|
4078
4094
|
return {
|
4079
4095
|
formatColumns: formatColumns,
|
4080
4096
|
formatDataSchema: formatDataSchema,
|
@@ -4112,7 +4128,8 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
4112
4128
|
pageData: pageData,
|
4113
4129
|
localPagination: localPagination,
|
4114
4130
|
formatData: formatData,
|
4115
|
-
setIndexData: setIndexData
|
4131
|
+
setIndexData: setIndexData,
|
4132
|
+
getFilterFnList: getFilterFnList
|
4116
4133
|
};
|
4117
4134
|
};
|
4118
4135
|
/* harmony default export */ const use_attributes = (tableSchemaResponse);
|
@@ -4808,7 +4825,7 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
|
|
4808
4825
|
* IN THE SOFTWARE.
|
4809
4826
|
*/
|
4810
4827
|
|
4811
|
-
/* harmony default export */ const table_row = (
|
4828
|
+
/* harmony default export */ const table_row = (defineComponent({
|
4812
4829
|
name: 'TableRow',
|
4813
4830
|
render: function render() {
|
4814
4831
|
var _this$$slots$default, _this$$slots;
|
@@ -4854,8 +4871,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
4854
4871
|
|
4855
4872
|
|
4856
4873
|
|
4857
|
-
|
4858
|
-
/* harmony default export */ const body_empty = ((0,external_vue_namespaceObject.defineComponent)({
|
4874
|
+
/* harmony default export */ const body_empty = (defineComponent({
|
4859
4875
|
name: 'BodyEmpty',
|
4860
4876
|
props: {
|
4861
4877
|
list: shared_namespaceObject.PropTypes.array.def([]),
|
@@ -4865,13 +4881,13 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
4865
4881
|
emits: ['change'],
|
4866
4882
|
setup: function setup(props) {
|
4867
4883
|
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
4868
|
-
var localEmptyText =
|
4884
|
+
var localEmptyText = computed(function () {
|
4869
4885
|
if (props.emptyText === undefined) {
|
4870
4886
|
return t.value.emptyText;
|
4871
4887
|
}
|
4872
4888
|
return props.emptyText;
|
4873
4889
|
});
|
4874
|
-
var type =
|
4890
|
+
var type = computed(function () {
|
4875
4891
|
return props.list.length === 0 ? 'empty' : 'search-empty';
|
4876
4892
|
});
|
4877
4893
|
return function () {
|
@@ -6112,6 +6128,88 @@ function use_head_cell_isSlot(s) {
|
|
6112
6128
|
getTH: getTH
|
6113
6129
|
};
|
6114
6130
|
});
|
6131
|
+
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-shift-key.tsx
|
6132
|
+
/*
|
6133
|
+
* Tencent is pleased to support the open source community by making
|
6134
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
6135
|
+
*
|
6136
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
6137
|
+
*
|
6138
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
6139
|
+
*
|
6140
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
6141
|
+
*
|
6142
|
+
* ---------------------------------------------------
|
6143
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
6144
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
6145
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
6146
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6147
|
+
*
|
6148
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
6149
|
+
* the Software.
|
6150
|
+
*
|
6151
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
6152
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
6153
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
6154
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
6155
|
+
* IN THE SOFTWARE.
|
6156
|
+
*/
|
6157
|
+
|
6158
|
+
/* harmony default export */ const use_shift_key = (function (props) {
|
6159
|
+
var isShiftKeyDown = (0,external_vue_namespaceObject.ref)(false);
|
6160
|
+
var store = {
|
6161
|
+
start: null,
|
6162
|
+
end: null
|
6163
|
+
};
|
6164
|
+
var handleKeyDown = function handleKeyDown(e) {
|
6165
|
+
if (e.key === 'Shift') {
|
6166
|
+
isShiftKeyDown.value = true;
|
6167
|
+
}
|
6168
|
+
};
|
6169
|
+
var handleKeyUp = function handleKeyUp(e) {
|
6170
|
+
if (e.key === 'Shift') {
|
6171
|
+
isShiftKeyDown.value = false;
|
6172
|
+
clearStore();
|
6173
|
+
}
|
6174
|
+
};
|
6175
|
+
var setStore = function setStore(row, index) {
|
6176
|
+
if (store.start === null && store.end === null) {
|
6177
|
+
store.start = {
|
6178
|
+
index: index,
|
6179
|
+
row: row
|
6180
|
+
};
|
6181
|
+
return false;
|
6182
|
+
}
|
6183
|
+
store.end = {
|
6184
|
+
index: index,
|
6185
|
+
row: row
|
6186
|
+
};
|
6187
|
+
return true;
|
6188
|
+
};
|
6189
|
+
var clearStore = function clearStore() {
|
6190
|
+
store.start = null;
|
6191
|
+
store.end = null;
|
6192
|
+
};
|
6193
|
+
if (props.shiftMultiChecked) {
|
6194
|
+
window.addEventListener('keydown', handleKeyDown);
|
6195
|
+
window.addEventListener('keyup', handleKeyUp);
|
6196
|
+
}
|
6197
|
+
var getStore = function getStore() {
|
6198
|
+
return store;
|
6199
|
+
};
|
6200
|
+
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
6201
|
+
if (props.shiftMultiChecked) {
|
6202
|
+
window.removeEventListener('keydown', handleKeyDown);
|
6203
|
+
window.removeEventListener('keyup', handleKeyUp);
|
6204
|
+
}
|
6205
|
+
});
|
6206
|
+
return {
|
6207
|
+
isShiftKeyDown: isShiftKeyDown,
|
6208
|
+
setStore: setStore,
|
6209
|
+
getStore: getStore,
|
6210
|
+
clearStore: clearStore
|
6211
|
+
};
|
6212
|
+
});
|
6115
6213
|
;// CONCATENATED MODULE: ../../packages/table/src/use-render.tsx
|
6116
6214
|
|
6117
6215
|
|
@@ -6163,10 +6261,11 @@ function use_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
6163
6261
|
|
6164
6262
|
|
6165
6263
|
|
6264
|
+
|
6166
6265
|
function use_render_isSlot(s) {
|
6167
6266
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
6168
6267
|
}
|
6169
|
-
/* harmony default export */ const use_render = (function (props, context, tableResp,
|
6268
|
+
/* harmony default export */ const use_render = (function (props, context, tableResp, head, root, resetTableHeight) {
|
6170
6269
|
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
6171
6270
|
var uuid = esm_browser_v4();
|
6172
6271
|
var formatData = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -6178,6 +6277,10 @@ function use_render_isSlot(s) {
|
|
6178
6277
|
var settings = (0,external_vue_namespaceObject.computed)(function () {
|
6179
6278
|
return formatData.value.settings;
|
6180
6279
|
});
|
6280
|
+
var _useShiftKey = use_shift_key(props),
|
6281
|
+
isShiftKeyDown = _useShiftKey.isShiftKeyDown,
|
6282
|
+
getStore = _useShiftKey.getStore,
|
6283
|
+
setStore = _useShiftKey.setStore;
|
6181
6284
|
// const activeSortIndex = ref(null);
|
6182
6285
|
/**
|
6183
6286
|
* 过滤当前可渲染的列
|
@@ -6304,8 +6407,7 @@ function use_render_isSlot(s) {
|
|
6304
6407
|
'--row-height': "".concat(resolvePropVal(config, 'height', ['thead']), "px"),
|
6305
6408
|
backgroundColor: props.thead.color
|
6306
6409
|
};
|
6307
|
-
|
6308
|
-
resolveFixedColumnStyle = _useFixedColumn.resolveFixedColumnStyle;
|
6410
|
+
// const { resolveFixedColumnStyle } = useFixedColumn(props, tableResp, head);
|
6309
6411
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("thead", {
|
6310
6412
|
"style": rowStyle
|
6311
6413
|
}, [(0,external_vue_namespaceObject.createVNode)(table_row, null, {
|
@@ -6314,7 +6416,7 @@ function use_render_isSlot(s) {
|
|
6314
6416
|
var _props$thead$color, _props$thead;
|
6315
6417
|
var _useHeadCell = use_head_cell(props, context, column, tableResp),
|
6316
6418
|
getTH = _useHeadCell.getTH;
|
6317
|
-
var headStyle = Object.assign({}, resolveFixedColumnStyle(column
|
6419
|
+
var headStyle = Object.assign({}, resolveFixedColumnStyle(column), {
|
6318
6420
|
'--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]
|
6319
6421
|
});
|
6320
6422
|
var classList = [getHeadColumnClass(column, index), getColumnCustomClass(column), column.align || props.headerAlign || props.align];
|
@@ -6390,13 +6492,14 @@ function use_render_isSlot(s) {
|
|
6390
6492
|
return result;
|
6391
6493
|
})]);
|
6392
6494
|
};
|
6393
|
-
var
|
6394
|
-
resolveFixedColumnStyle =
|
6495
|
+
var _useFixedColumn = use_fixed_column(props, tableResp, head),
|
6496
|
+
resolveFixedColumnStyle = _useFixedColumn.resolveFixedColumnStyle;
|
6395
6497
|
var getRowRender = function getRowRender(row, rowIndex, preRow, rows, rowSpanMap, needRowSpan) {
|
6396
6498
|
var isChild = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
|
6397
6499
|
var rowLength = rows.length;
|
6398
6500
|
var rowStyle = [].concat(_toConsumableArray(formatPropAsArray(props.rowStyle, [row, rowIndex])), [{
|
6399
|
-
'--row-height': "".concat(getRowHeight(row, rowIndex), "px")
|
6501
|
+
'--row-height': "".concat(getRowHeight(row, rowIndex), "px"),
|
6502
|
+
'--scroll-x': "".concat(tableResp.formatData.layout.translateX, "px")
|
6400
6503
|
}]);
|
6401
6504
|
var rowClass = [].concat(_toConsumableArray(formatPropAsArray(props.rowClass, [row, rowIndex])), ["hover-".concat(props.rowHover), rowIndex % 2 === 1 && props.stripe ? 'stripe-row' : '']);
|
6402
6505
|
var rowId = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_UID);
|
@@ -6601,6 +6704,38 @@ function use_render_isSlot(s) {
|
|
6601
6704
|
data: props.data
|
6602
6705
|
});
|
6603
6706
|
};
|
6707
|
+
var beforeRowChange = function beforeRowChange() {
|
6708
|
+
if (isShiftKeyDown.value && !isAll) {
|
6709
|
+
var result = setStore(row, index);
|
6710
|
+
if (result) {
|
6711
|
+
var _tableResp$pageData$s;
|
6712
|
+
var _getStore = getStore(),
|
6713
|
+
start = _getStore.start,
|
6714
|
+
end = _getStore.end;
|
6715
|
+
var startIndex = start.index < end.index ? start.index : end.index;
|
6716
|
+
var endIndex = start.index < end.index ? end.index : start.index;
|
6717
|
+
((_tableResp$pageData$s = tableResp.pageData.slice(startIndex, endIndex + 1)) !== null && _tableResp$pageData$s !== void 0 ? _tableResp$pageData$s : []).forEach(function (item) {
|
6718
|
+
tableResp.setRowSelection(item, true);
|
6719
|
+
});
|
6720
|
+
}
|
6721
|
+
context.emit(EMIT_EVENTS.ROW_SELECT, {
|
6722
|
+
row: row,
|
6723
|
+
index: index,
|
6724
|
+
checked: true,
|
6725
|
+
data: props.data,
|
6726
|
+
isShiftKeyDown: true
|
6727
|
+
});
|
6728
|
+
context.emit(EMIT_EVENTS.ROW_SELECT_CHANGE, {
|
6729
|
+
row: row,
|
6730
|
+
index: index,
|
6731
|
+
checked: true,
|
6732
|
+
data: props.data,
|
6733
|
+
isShiftKeyDown: true
|
6734
|
+
});
|
6735
|
+
return Promise.resolve(!result);
|
6736
|
+
}
|
6737
|
+
return Promise.resolve(true);
|
6738
|
+
};
|
6604
6739
|
var indeterminate = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE);
|
6605
6740
|
var isChecked = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION);
|
6606
6741
|
var isEnable = isRowSelectEnable(props, {
|
@@ -6612,7 +6747,8 @@ function use_render_isSlot(s) {
|
|
6612
6747
|
"onChange": handleChecked,
|
6613
6748
|
"disabled": !isEnable,
|
6614
6749
|
"modelValue": isChecked,
|
6615
|
-
"indeterminate": indeterminate
|
6750
|
+
"indeterminate": indeterminate,
|
6751
|
+
"beforeChange": beforeRowChange
|
6616
6752
|
}, null);
|
6617
6753
|
};
|
6618
6754
|
var renderExpandColumn = function renderExpandColumn(row, column, index, rows) {
|
@@ -6811,7 +6947,6 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6811
6947
|
wrapperStyle = _useClass.wrapperStyle,
|
6812
6948
|
contentStyle = _useClass.contentStyle,
|
6813
6949
|
headStyle = _useClass.headStyle,
|
6814
|
-
hasScrollYRef = _useClass.hasScrollYRef,
|
6815
6950
|
hasFooter = _useClass.hasFooter,
|
6816
6951
|
footerStyle = _useClass.footerStyle,
|
6817
6952
|
tableBodyClass = _useClass.tableBodyClass,
|
@@ -6832,17 +6967,12 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6832
6967
|
updateFixClass = _useFixedColumn.updateFixClass;
|
6833
6968
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
6834
6969
|
resolveClassName = _usePrefix.resolveClassName;
|
6835
|
-
var styleRef = (0,external_vue_namespaceObject.computed)(function () {
|
6836
|
-
return {
|
6837
|
-
hasScrollY: hasScrollYRef.value
|
6838
|
-
};
|
6839
|
-
});
|
6840
6970
|
use_observer_resize(root, function () {
|
6841
6971
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
6842
6972
|
resolveFixedColumns(tableOffsetRight.value);
|
6843
6973
|
});
|
6844
6974
|
});
|
6845
|
-
var _useRender = use_render(props, ctx, tableSchema,
|
6975
|
+
var _useRender = use_render(props, ctx, tableSchema, head, root, resetTableHeight),
|
6846
6976
|
renderTableBodySchema = _useRender.renderTableBodySchema,
|
6847
6977
|
renderTableFooter = _useRender.renderTableFooter,
|
6848
6978
|
renderTableHeadSchema = _useRender.renderTableHeadSchema;
|
@@ -6864,13 +6994,12 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6864
6994
|
tableSchema.formatColumns(columns);
|
6865
6995
|
resolveFixedColumns(tableOffsetRight.value);
|
6866
6996
|
tableSchema.setIndexData().then(function () {
|
6867
|
-
// tableSchema.formatDataSchema(props.data);
|
6868
6997
|
tableSchema.resetStartEndIndex();
|
6869
6998
|
if (isFirstLoad.value) {
|
6870
6999
|
tableSchema.resolveByDefColumns();
|
6871
7000
|
isFirstLoad.value = false;
|
6872
7001
|
} else {
|
6873
|
-
tableSchema.resolvePageData();
|
7002
|
+
tableSchema.resolvePageData(tableSchema.getFilterFnList());
|
6874
7003
|
}
|
6875
7004
|
registerResizeEvent();
|
6876
7005
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
@@ -6984,6 +7113,9 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6984
7113
|
"throttleDelay": 120,
|
6985
7114
|
"scrollEvent": true,
|
6986
7115
|
"rowKey": props.rowKey,
|
7116
|
+
"scrollbar": {
|
7117
|
+
enabled: true
|
7118
|
+
},
|
6987
7119
|
"enabled": props.virtualEnabled,
|
6988
7120
|
"keepAlive": true
|
6989
7121
|
}), {
|
@@ -6994,8 +7126,7 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6994
7126
|
return renderTableBodySchema(scope.data);
|
6995
7127
|
},
|
6996
7128
|
afterSection: function afterSection() {
|
6997
|
-
return [
|
6998
|
-
(0,external_vue_namespaceObject.createVNode)("div", {
|
7129
|
+
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
6999
7130
|
"class": resizeColumnClass,
|
7000
7131
|
"style": resizeColumnStyle.value
|
7001
7132
|
}, null)];
|
@@ -6,7 +6,7 @@ import { ITableResponse } from '../use-attributes';
|
|
6
6
|
*/
|
7
7
|
declare const _default: (props: TablePropTypes, tableResp: ITableResponse, head?: Ref<HTMLElement>) => {
|
8
8
|
fixedWrapperClass: string;
|
9
|
-
resolveFixedColumnStyle: (column: Column
|
9
|
+
resolveFixedColumnStyle: (column: Column) => {
|
10
10
|
[x: string]: string;
|
11
11
|
};
|
12
12
|
resolveFixedColumns: (tableOffsetRight: any) => void;
|
@@ -14,8 +14,10 @@ declare const _default: (props: TablePropTypes) => {
|
|
14
14
|
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
15
15
|
resolveIndexData: () => Promise<void>;
|
16
16
|
resolvePageDataBySortList: (multiCol?: any) => void;
|
17
|
+
handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
|
17
18
|
resetStartEndIndex: () => void;
|
18
|
-
|
19
|
+
getCurrentPageData: () => any[];
|
20
|
+
multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
|
19
21
|
sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
|
20
22
|
};
|
21
23
|
export default _default;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { TablePropTypes } from '../props';
|
2
|
+
declare const _default: (props: TablePropTypes) => {
|
3
|
+
isShiftKeyDown: import("vue").Ref<boolean>;
|
4
|
+
setStore: (row: any, index: number) => boolean;
|
5
|
+
getStore: () => {
|
6
|
+
start: any;
|
7
|
+
end: any;
|
8
|
+
};
|
9
|
+
clearStore: () => void;
|
10
|
+
};
|
11
|
+
export default _default;
|
package/lib/table/props.d.ts
CHANGED
@@ -560,5 +560,13 @@ export declare const tableProps: {
|
|
560
560
|
rowDraggable: import("vue-types").VueTypeDef<any> & {
|
561
561
|
default: any;
|
562
562
|
};
|
563
|
+
/**
|
564
|
+
* 是否支持shift键多行选择
|
565
|
+
*/
|
566
|
+
shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
|
567
|
+
default: boolean;
|
568
|
+
} & {
|
569
|
+
default: boolean;
|
570
|
+
};
|
563
571
|
};
|
564
572
|
export {};
|