bkui-vue 2.0.1-beta.2 → 2.0.1-beta.21
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 +166 -166
- package/dist/index.esm.js +31808 -31749
- package/dist/index.umd.js +166 -166
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/index.js +1 -1
- package/lib/button/button.d.ts +7 -7
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -7
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +3 -3
- package/lib/cascader/index.js +36 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/index.d.ts +11 -11
- package/lib/checkbox/index.js +12 -4
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/index.js +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +3 -3
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +32 -32
- package/lib/components.js +31 -31
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/index.js +6 -7
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +0 -1
- package/lib/date-picker/index.d.ts +0 -3
- package/lib/date-picker/index.js +318 -218
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +6 -68
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +5 -1
- package/lib/dialog/dialog.css +0 -4
- package/lib/dialog/dialog.d.ts +25 -20
- package/lib/dialog/dialog.variable.css +0 -4
- package/lib/dialog/index.d.ts +55 -44
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +10 -8
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -166
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -4
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/index.js +14 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/index.js +20 -21
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- package/lib/info-box/index.js +13 -13
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +16 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/index.d.ts +21 -8
- package/lib/modal/index.js +14 -8
- package/lib/modal/modal.css +0 -4
- package/lib/modal/modal.d.ts +8 -3
- package/lib/modal/modal.less +0 -5
- package/lib/modal/modal.variable.css +0 -4
- package/lib/modal/props.mixin.d.ts +3 -1
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/index.js +4 -4
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +61 -11
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -16
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +18 -20
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +11 -10
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +4 -4
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +18 -20
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.js +3 -3
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -11
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/index.js +28 -17
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +27 -0
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +7 -8
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/scrollbar/index.js +0 -1
- package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
- package/lib/search-select/index.js +66 -66
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/selected.d.ts +1 -1
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +88 -70
- package/lib/select/index.js +134 -125
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.css +1 -2
- package/lib/select/select.d.ts +35 -27
- package/lib/select/select.less +1 -2
- package/lib/select/select.variable.css +1 -2
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +2 -2
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +38 -46
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +18 -7
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +8 -3
- package/lib/slider/index.js +21 -23
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.js +5 -5
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/table/components/table-column.d.ts +27 -87
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +194 -244
- package/lib/table/index.js +166 -145
- package/lib/table/plugins/use-shift-key.d.ts +2 -0
- package/lib/table/props.d.ts +34 -34
- package/lib/table/table.css +3 -4
- package/lib/table/table.d.ts +47 -47
- package/lib/table/table.less +4 -12
- package/lib/table/table.variable.css +3 -4
- package/lib/table/use-attributes.d.ts +3 -3
- package/lib/table/use-column.d.ts +9 -129
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +42 -172
- package/lib/table-column/index.js +19 -19
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/timeline/index.js +2 -2
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +9 -9
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +53 -49
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +8 -14
- package/lib/tree/tree.less +1 -1
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.js +41 -35
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.js +2 -3
- package/package.json +17 -55
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/rate/star.variable.css +0 -156
package/lib/table/index.js
CHANGED
@@ -17401,11 +17401,11 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
17401
17401
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
17402
17402
|
var BORDER_OPTION;
|
17403
17403
|
(function (BORDER_OPTION) {
|
17404
|
-
BORDER_OPTION["NONE"] = "none";
|
17405
|
-
BORDER_OPTION["ROW"] = "row";
|
17406
17404
|
BORDER_OPTION["COL"] = "col";
|
17407
|
-
BORDER_OPTION["OUTER"] = "outer";
|
17408
17405
|
BORDER_OPTION["HORIZONTAL"] = "horizontal";
|
17406
|
+
BORDER_OPTION["NONE"] = "none";
|
17407
|
+
BORDER_OPTION["OUTER"] = "outer";
|
17408
|
+
BORDER_OPTION["ROW"] = "row";
|
17409
17409
|
})(BORDER_OPTION || (BORDER_OPTION = {}));
|
17410
17410
|
/**
|
17411
17411
|
* 鼠标划过行样式
|
@@ -17413,8 +17413,8 @@ var BORDER_OPTION;
|
|
17413
17413
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
17414
17414
|
var ROW_HOVER;
|
17415
17415
|
(function (ROW_HOVER) {
|
17416
|
-
ROW_HOVER["HIGHLIGHT"] = "highlight";
|
17417
17416
|
ROW_HOVER["AUTO"] = "auto";
|
17417
|
+
ROW_HOVER["HIGHLIGHT"] = "highlight";
|
17418
17418
|
})(ROW_HOVER || (ROW_HOVER = {}));
|
17419
17419
|
var ROW_HOVER_OPTIONS = [ROW_HOVER.AUTO, ROW_HOVER.HIGHLIGHT];
|
17420
17420
|
/**
|
@@ -17507,9 +17507,9 @@ var TB_FOOT_HEIGHT = 60;
|
|
17507
17507
|
var SORT_OPTION;
|
17508
17508
|
(function (SORT_OPTION) {
|
17509
17509
|
SORT_OPTION["ASC"] = "asc";
|
17510
|
+
SORT_OPTION["CUSTOM"] = "custom";
|
17510
17511
|
SORT_OPTION["DESC"] = "desc";
|
17511
17512
|
SORT_OPTION["NULL"] = "null";
|
17512
|
-
SORT_OPTION["CUSTOM"] = "custom";
|
17513
17513
|
})(SORT_OPTION || (SORT_OPTION = {}));
|
17514
17514
|
var SORT_OPTIONS = [SORT_OPTION.ASC, SORT_OPTION.DESC, SORT_OPTION.NULL, SORT_OPTION.CUSTOM];
|
17515
17515
|
/**
|
@@ -17534,30 +17534,30 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["string"]: ()
|
|
17534
17534
|
|
17535
17535
|
var SortScope;
|
17536
17536
|
(function (SortScope) {
|
17537
|
-
SortScope["CURRENT"] = "current";
|
17538
17537
|
SortScope["ALL"] = "all";
|
17538
|
+
SortScope["CURRENT"] = "current";
|
17539
17539
|
})(SortScope || (SortScope = {}));
|
17540
17540
|
var OverflowModeEnum;
|
17541
17541
|
(function (OverflowModeEnum) {
|
17542
|
-
OverflowModeEnum["STATIC"] = "static";
|
17543
17542
|
OverflowModeEnum["AUTO"] = "auto";
|
17543
|
+
OverflowModeEnum["STATIC"] = "static";
|
17544
17544
|
})(OverflowModeEnum || (OverflowModeEnum = {}));
|
17545
17545
|
var EnumOverflowModeType = (0,external_vue_types_namespaceObject.toType)('showOverflowTooltipMode', {
|
17546
17546
|
"default": OverflowModeEnum.AUTO
|
17547
17547
|
});
|
17548
17548
|
var ColumnTypeEnum;
|
17549
17549
|
(function (ColumnTypeEnum) {
|
17550
|
-
ColumnTypeEnum["SELECTION"] = "selection";
|
17551
|
-
ColumnTypeEnum["INDEX"] = "index";
|
17552
17550
|
ColumnTypeEnum["EXPAND"] = "expand";
|
17551
|
+
ColumnTypeEnum["INDEX"] = "index";
|
17553
17552
|
ColumnTypeEnum["NONE"] = "__COL_TYPE_NONE";
|
17553
|
+
ColumnTypeEnum["SELECTION"] = "selection";
|
17554
17554
|
})(ColumnTypeEnum || (ColumnTypeEnum = {}));
|
17555
17555
|
var TableAlignEnum;
|
17556
17556
|
(function (TableAlignEnum) {
|
17557
|
-
TableAlignEnum["LEFT"] = "left";
|
17558
|
-
TableAlignEnum["RIGHT"] = "right";
|
17559
17557
|
TableAlignEnum["CENTER"] = "center";
|
17558
|
+
TableAlignEnum["LEFT"] = "left";
|
17560
17559
|
TableAlignEnum["NONE"] = "";
|
17560
|
+
TableAlignEnum["RIGHT"] = "right";
|
17561
17561
|
})(TableAlignEnum || (TableAlignEnum = {}));
|
17562
17562
|
var columnType = (0,external_vue_types_namespaceObject.toType)('columnType', {
|
17563
17563
|
"default": ColumnTypeEnum.NONE
|
@@ -17575,9 +17575,9 @@ var fullType = (0,external_vue_types_namespaceObject.toType)('full', {
|
|
17575
17575
|
});
|
17576
17576
|
var SettingSizeEnum;
|
17577
17577
|
(function (SettingSizeEnum) {
|
17578
|
-
SettingSizeEnum["SMALL"] = "small";
|
17579
|
-
SettingSizeEnum["MEDIUM"] = "medium";
|
17580
17578
|
SettingSizeEnum["LARGE"] = "large";
|
17579
|
+
SettingSizeEnum["MEDIUM"] = "medium";
|
17580
|
+
SettingSizeEnum["SMALL"] = "small";
|
17581
17581
|
})(SettingSizeEnum || (SettingSizeEnum = {}));
|
17582
17582
|
var settingSizeType = (0,external_vue_types_namespaceObject.toType)('columnSize', {
|
17583
17583
|
"default": SettingSizeEnum.SMALL
|
@@ -17602,9 +17602,9 @@ var IFilterType = (0,external_vue_types_namespaceObject.toType)('IFilterPropShap
|
|
17602
17602
|
});
|
17603
17603
|
var ColumnPickEnum;
|
17604
17604
|
(function (ColumnPickEnum) {
|
17605
|
+
ColumnPickEnum["DISABLED"] = "disabled";
|
17605
17606
|
ColumnPickEnum["MULTI"] = "multi";
|
17606
17607
|
ColumnPickEnum["SINGLE"] = "single";
|
17607
|
-
ColumnPickEnum["DISABLED"] = "disabled";
|
17608
17608
|
})(ColumnPickEnum || (ColumnPickEnum = {}));
|
17609
17609
|
var ResizerWay;
|
17610
17610
|
(function (ResizerWay) {
|
@@ -17640,14 +17640,14 @@ var IColumnProp = (0,external_vue_types_namespaceObject.toType)('IColumnPropType
|
|
17640
17640
|
});
|
17641
17641
|
var IColSortBehavior;
|
17642
17642
|
(function (IColSortBehavior) {
|
17643
|
-
/**
|
17644
|
-
* 列排序是相互依赖的
|
17645
|
-
*/
|
17646
|
-
IColSortBehavior["interdependent"] = "interdependent";
|
17647
17643
|
/**
|
17648
17644
|
* 列与列之间的排序是独立的,互斥的
|
17649
17645
|
*/
|
17650
17646
|
IColSortBehavior["independent"] = "independent";
|
17647
|
+
/**
|
17648
|
+
* 列排序是相互依赖的
|
17649
|
+
*/
|
17650
|
+
IColSortBehavior["interdependent"] = "interdependent";
|
17651
17651
|
})(IColSortBehavior || (IColSortBehavior = {}));
|
17652
17652
|
var tableProps = {
|
17653
17653
|
/**
|
@@ -17804,7 +17804,7 @@ var tableProps = {
|
|
17804
17804
|
/**
|
17805
17805
|
* 提供自定义判定当前行是否选中
|
17806
17806
|
* 如果设置了此属性,其他判定均不生效
|
17807
|
-
* ({ row
|
17807
|
+
* ({ row }) => bool
|
17808
17808
|
*/
|
17809
17809
|
isSelectedFn: shared_namespaceObject.PropTypes.func.def(undefined),
|
17810
17810
|
/**
|
@@ -18010,37 +18010,36 @@ var _EMIT_EVENT_TYPES;
|
|
18010
18010
|
*/
|
18011
18011
|
var EVENTS;
|
18012
18012
|
(function (EVENTS) {
|
18013
|
-
/** 点击排序事件 */
|
18014
|
-
EVENTS["ON_SORT_BY_CLICK"] = "onSortByClick";
|
18015
18013
|
EVENTS["ON_FILTER_CLICK"] = "onFilterClick";
|
18016
|
-
EVENTS["ON_SETTING_CHANGE"] = "onSettingChange";
|
18017
|
-
EVENTS["ON_ROW_EXPAND_CLICK"] = "onRowExpandClick";
|
18018
18014
|
EVENTS["ON_ROW_CHECK"] = "onRowCheck";
|
18015
|
+
EVENTS["ON_ROW_EXPAND_CLICK"] = "onRowExpandClick";
|
18016
|
+
EVENTS["ON_SETTING_CHANGE"] = "onSettingChange";
|
18017
|
+
/** 点击排序事件 */
|
18018
|
+
EVENTS["ON_SORT_BY_CLICK"] = "onSortByClick";
|
18019
18019
|
})(EVENTS || (EVENTS = {}));
|
18020
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
18021
18020
|
var EMIT_EVENTS;
|
18022
18021
|
(function (EMIT_EVENTS) {
|
18023
|
-
EMIT_EVENTS["
|
18024
|
-
EMIT_EVENTS["
|
18022
|
+
EMIT_EVENTS["CELL_CLICK"] = "cellClick";
|
18023
|
+
EMIT_EVENTS["CELL_DBL_CLICK"] = "cellDblclick";
|
18025
18024
|
EMIT_EVENTS["COLUMN_FILTER"] = "columnFilter";
|
18026
18025
|
EMIT_EVENTS["COLUMN_FILTER_SAVE"] = "colFilterSave";
|
18026
|
+
EMIT_EVENTS["COLUMN_PICK"] = "columnPick";
|
18027
|
+
EMIT_EVENTS["COLUMN_SORT"] = "columnSort";
|
18028
|
+
EMIT_EVENTS["DRAG_END"] = "dragend";
|
18029
|
+
EMIT_EVENTS["NATIVE_CLICK"] = "click";
|
18030
|
+
EMIT_EVENTS["NATIVE_DBL_CLICK"] = "dblclick";
|
18031
|
+
EMIT_EVENTS["PAGE_LIMIT_CHANGE"] = "pageLimitChange";
|
18032
|
+
EMIT_EVENTS["PAGE_VALUE_CHANGE"] = "pageValueChange";
|
18027
18033
|
EMIT_EVENTS["ROW_CLICK"] = "rowClick";
|
18028
18034
|
EMIT_EVENTS["ROW_DBL_CLICK"] = "rowDblclick";
|
18029
18035
|
EMIT_EVENTS["ROW_EXPAND_CLICK"] = "rowExpand";
|
18030
18036
|
EMIT_EVENTS["ROW_MOUSE_ENTER"] = "rowMouseEnter";
|
18031
18037
|
EMIT_EVENTS["ROW_MOUSE_LEAVE"] = "rowMouseLeave";
|
18032
|
-
EMIT_EVENTS["PAGE_LIMIT_CHANGE"] = "pageLimitChange";
|
18033
|
-
EMIT_EVENTS["PAGE_VALUE_CHANGE"] = "pageValueChange";
|
18034
|
-
EMIT_EVENTS["SETTING_CHANGE"] = "settingChange";
|
18035
|
-
EMIT_EVENTS["SCROLL_BOTTOM"] = "scrollBottom";
|
18036
18038
|
EMIT_EVENTS["ROW_SELECT"] = "select";
|
18037
18039
|
EMIT_EVENTS["ROW_SELECT_ALL"] = "selectAll";
|
18038
18040
|
EMIT_EVENTS["ROW_SELECT_CHANGE"] = "selectionChange";
|
18039
|
-
EMIT_EVENTS["
|
18040
|
-
EMIT_EVENTS["
|
18041
|
-
EMIT_EVENTS["NATIVE_CLICK"] = "click";
|
18042
|
-
EMIT_EVENTS["NATIVE_DBL_CLICK"] = "dblclick";
|
18043
|
-
EMIT_EVENTS["DRAG_END"] = "dragend";
|
18041
|
+
EMIT_EVENTS["SCROLL_BOTTOM"] = "scrollBottom";
|
18042
|
+
EMIT_EVENTS["SETTING_CHANGE"] = "settingChange";
|
18044
18043
|
})(EMIT_EVENTS || (EMIT_EVENTS = {}));
|
18045
18044
|
var EVENT_COL_PICK = function EVENT_COL_PICK(_cols) {
|
18046
18045
|
return true;
|
@@ -18140,9 +18139,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
18140
18139
|
var pluginName = 'HeadColumnResize';
|
18141
18140
|
var EVENTS;
|
18142
18141
|
(function (EVENTS) {
|
18142
|
+
EVENTS["MOUSE_DOWN"] = "onMousedown";
|
18143
18143
|
EVENTS["MOUSE_MOVE"] = "onMousemove";
|
18144
18144
|
EVENTS["MOUSE_OUT"] = "onMouseout";
|
18145
|
-
EVENTS["MOUSE_DOWN"] = "onMousedown";
|
18146
18145
|
})(EVENTS || (EVENTS = {}));
|
18147
18146
|
var isInDragSection = false;
|
18148
18147
|
var isMouseDown = false;
|
@@ -18452,7 +18451,7 @@ function _toConsumableArray(arr) {
|
|
18452
18451
|
var start = fixedPos === 'right' ? length * opt : 1;
|
18453
18452
|
var preOffset = 0;
|
18454
18453
|
for (start;;) {
|
18455
|
-
start = start
|
18454
|
+
start = start - opt;
|
18456
18455
|
var index = Math.abs(start);
|
18457
18456
|
var current = filterColumns[index];
|
18458
18457
|
var curFixedPos = resolveFixColPos(current);
|
@@ -18479,7 +18478,7 @@ function _toConsumableArray(arr) {
|
|
18479
18478
|
}
|
18480
18479
|
var fixedOffset = {
|
18481
18480
|
left: 0,
|
18482
|
-
right:
|
18481
|
+
right: 1
|
18483
18482
|
};
|
18484
18483
|
var fixedPos = resolveFixColPos(column);
|
18485
18484
|
fixedOffset[fixedPos] = getPreColumnOffset(fixedPos, column, fixedOffset[fixedPos]);
|
@@ -20397,6 +20396,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
20397
20396
|
;// CONCATENATED MODULE: ../../packages/table/src/use-attributes.ts
|
20398
20397
|
|
20399
20398
|
|
20399
|
+
|
20400
20400
|
function use_attributes_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
20401
20401
|
function use_attributes_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? use_attributes_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : use_attributes_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
20402
20402
|
/*
|
@@ -20776,14 +20776,16 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
20776
20776
|
return false;
|
20777
20777
|
}
|
20778
20778
|
if (typeof props.isSelectedFn === 'function') {
|
20779
|
-
return props.isSelectedFn(
|
20780
|
-
row: row
|
20781
|
-
});
|
20779
|
+
return props.isSelectedFn(getSelectionRowArgs(row));
|
20782
20780
|
}
|
20783
20781
|
if (Array.isArray(props.checked)) {
|
20784
20782
|
return props.checked.some(function (item) {
|
20785
|
-
if (
|
20786
|
-
|
20783
|
+
if (typeof_typeof(item) !== 'object') {
|
20784
|
+
if (props.selectionKey.length && Object.prototype.hasOwnProperty.call(row, props.selectionKey)) {
|
20785
|
+
return getRowValue(row, props.selectionKey) === item;
|
20786
|
+
}
|
20787
|
+
console.warn('props.selectionKey is undefined or null or empty');
|
20788
|
+
return false;
|
20787
20789
|
}
|
20788
20790
|
return getRawData(item) === getRawData(row);
|
20789
20791
|
});
|
@@ -20868,10 +20870,7 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
20868
20870
|
var setRowSelection = function setRowSelection(row, isSelected, index) {
|
20869
20871
|
var value = isSelected;
|
20870
20872
|
if (typeof props.isSelectedFn === 'function') {
|
20871
|
-
value = props.isSelectedFn(
|
20872
|
-
row: row,
|
20873
|
-
index: index !== null && index !== void 0 ? index : getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_INDEX)
|
20874
|
-
});
|
20873
|
+
value = props.isSelectedFn(getSelectionRowArgs(row, index));
|
20875
20874
|
}
|
20876
20875
|
if (isRowSelectEnable(props, {
|
20877
20876
|
row: row,
|
@@ -20902,11 +20901,16 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
|
|
20902
20901
|
var row = getRawData(item);
|
20903
20902
|
return (_formatData$dataSchem6 = formatData.dataSchema.get(row)) === null || _formatData$dataSchem6 === void 0 ? void 0 : _formatData$dataSchem6[attrName];
|
20904
20903
|
};
|
20904
|
+
var getSelectionRowArgs = function getSelectionRowArgs(row, index) {
|
20905
|
+
return {
|
20906
|
+
row: row,
|
20907
|
+
index: index !== null && index !== void 0 ? index : getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_INDEX),
|
20908
|
+
isSelectAll: getRowAttribute(CHECK_ALL_OBJ, TABLE_ROW_ATTRIBUTE.ROW_SELECTION)
|
20909
|
+
};
|
20910
|
+
};
|
20905
20911
|
var toggleRowSelection = function toggleRowSelection(row) {
|
20906
20912
|
if (typeof props.isSelectedFn === 'function') {
|
20907
|
-
setRowSelection(row, props.isSelectedFn(
|
20908
|
-
row: row
|
20909
|
-
}));
|
20913
|
+
setRowSelection(row, props.isSelectedFn(getSelectionRowArgs(row)));
|
20910
20914
|
return;
|
20911
20915
|
}
|
20912
20916
|
setRowSelection(row, !getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION));
|
@@ -21854,9 +21858,9 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
|
|
21854
21858
|
return function () {
|
21855
21859
|
var _slots$default;
|
21856
21860
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
21857
|
-
"
|
21861
|
+
"ref": refRoot,
|
21858
21862
|
"style": cellStyle.value,
|
21859
|
-
"
|
21863
|
+
"class": ['cell', props.column.type, hasExplain ? 'explain' : '']
|
21860
21864
|
}, [(_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
|
21861
21865
|
};
|
21862
21866
|
}
|
@@ -21957,9 +21961,9 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
21957
21961
|
});
|
21958
21962
|
return function () {
|
21959
21963
|
return (0,external_vue_namespaceObject.createVNode)(exception_namespaceObject["default"], {
|
21964
|
+
"description": localEmptyText.value,
|
21960
21965
|
"scene": "part",
|
21961
|
-
"type": type.value
|
21962
|
-
"description": localEmptyText.value
|
21966
|
+
"type": type.value
|
21963
21967
|
}, null);
|
21964
21968
|
};
|
21965
21969
|
}
|
@@ -22204,11 +22208,11 @@ function _isSlot(s) {
|
|
22204
22208
|
return function () {
|
22205
22209
|
var _localSettings$value$2;
|
22206
22210
|
return props.settings ? (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
22207
|
-
"trigger": (_localSettings$value$2 = localSettings.value.trigger) !== null && _localSettings$value$2 !== void 0 ? _localSettings$value$2 : 'manual',
|
22208
|
-
"placement": "bottom-end",
|
22209
22211
|
"ref": refSetting,
|
22212
|
+
"extCls": localSettings.value.extCls,
|
22210
22213
|
"arrow": true,
|
22211
|
-
"
|
22214
|
+
"placement": "bottom-end",
|
22215
|
+
"trigger": (_localSettings$value$2 = localSettings.value.trigger) !== null && _localSettings$value$2 !== void 0 ? _localSettings$value$2 : 'manual'
|
22212
22216
|
}, {
|
22213
22217
|
theme: theme
|
22214
22218
|
}), {
|
@@ -22244,8 +22248,8 @@ function _isSlot(s) {
|
|
22244
22248
|
"class": "check-all",
|
22245
22249
|
"onClick": handleCheckAllClick
|
22246
22250
|
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
22247
|
-
"label": t.value.setting.fields.selectAll,
|
22248
22251
|
"indeterminate": Boolean(indeterminate.value),
|
22252
|
+
"label": t.value.setting.fields.selectAll,
|
22249
22253
|
"modelValue": checkedFields.value.length > 0
|
22250
22254
|
}, {
|
22251
22255
|
"default": function _default() {
|
@@ -22263,8 +22267,8 @@ function _isSlot(s) {
|
|
22263
22267
|
"class": "field-item"
|
22264
22268
|
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
22265
22269
|
"checked": checkedFields.value.includes(resolvedColVal(item, index)),
|
22266
|
-
"
|
22267
|
-
"
|
22270
|
+
"disabled": isItemReadonly(item, index),
|
22271
|
+
"label": resolvedColVal(item, index)
|
22268
22272
|
}, _isSlot(_slot = resolvePropVal(item, ['name', 'label'], [item, index])) ? _slot : {
|
22269
22273
|
"default": function _default() {
|
22270
22274
|
return [_slot];
|
@@ -22279,8 +22283,8 @@ function _isSlot(s) {
|
|
22279
22283
|
}, [t.value.setting.lineHeight.title, (0,external_vue_namespaceObject.createTextVNode)("\uFF1A"), renderSize()]) : '']), (0,external_vue_namespaceObject.createVNode)("div", {
|
22280
22284
|
"class": "setting-footer"
|
22281
22285
|
}, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
22282
|
-
"theme": "primary",
|
22283
22286
|
"style": buttonStyle,
|
22287
|
+
"theme": "primary",
|
22284
22288
|
"onClick": handleSaveClick
|
22285
22289
|
}, {
|
22286
22290
|
"default": function _default() {
|
@@ -22593,9 +22597,7 @@ var ROW_HEIGHT = 32;
|
|
22593
22597
|
return getRegExp(str, 'img').test(matchText);
|
22594
22598
|
});
|
22595
22599
|
};
|
22596
|
-
var filterFn = typeof filter.value.filterFn === 'function' ?
|
22597
|
-
// eslint-disable-next-line max-len
|
22598
|
-
function (checked, row, index, data) {
|
22600
|
+
var filterFn = typeof filter.value.filterFn === 'function' ? function (checked, row, index, data) {
|
22599
22601
|
return filter.value.filterFn(checked, row, props.column, index, data);
|
22600
22602
|
} : function (checked, row) {
|
22601
22603
|
return checked.length ? defaultFilterFn(checked, row) : true;
|
@@ -22649,9 +22651,9 @@ var ROW_HEIGHT = 32;
|
|
22649
22651
|
}, [text]);
|
22650
22652
|
}
|
22651
22653
|
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
22652
|
-
"theme": "primary",
|
22653
|
-
"size": "small",
|
22654
22654
|
"style": "width: 56px; margin-right: 8px;",
|
22655
|
+
"size": "small",
|
22656
|
+
"theme": "primary",
|
22655
22657
|
"onClick": handleBtnSaveClick
|
22656
22658
|
}, head_filter_isSlot(text) ? text : {
|
22657
22659
|
"default": function _default() {
|
@@ -22668,8 +22670,8 @@ var ROW_HEIGHT = 32;
|
|
22668
22670
|
}
|
22669
22671
|
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
22670
22672
|
"style": "width: 56px;",
|
22671
|
-
"size": "small",
|
22672
22673
|
"disabled": state.checked.length === 0,
|
22674
|
+
"size": "small",
|
22673
22675
|
"onClick": handleBtnResetClick
|
22674
22676
|
}, head_filter_isSlot(text) ? text : {
|
22675
22677
|
"default": function _default() {
|
@@ -22693,12 +22695,12 @@ var ROW_HEIGHT = 32;
|
|
22693
22695
|
if (scope.data.length) {
|
22694
22696
|
return scope.data.map(function (item) {
|
22695
22697
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
22696
|
-
"
|
22697
|
-
"
|
22698
|
+
"key": item.value,
|
22699
|
+
"class": "list-item"
|
22698
22700
|
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
22699
|
-
"label": item.value,
|
22700
|
-
"immediateEmitChange": false,
|
22701
22701
|
"checked": state.checked.includes(item.value),
|
22702
|
+
"immediateEmitChange": false,
|
22703
|
+
"label": item.value,
|
22702
22704
|
"modelValue": state.checked.includes(item.value),
|
22703
22705
|
"onChange": function onChange(val) {
|
22704
22706
|
return handleValueChange(val, item);
|
@@ -22716,20 +22718,20 @@ var ROW_HEIGHT = 32;
|
|
22716
22718
|
};
|
22717
22719
|
return function () {
|
22718
22720
|
return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
22719
|
-
"
|
22721
|
+
"arrow": false,
|
22720
22722
|
"isShow": state.isOpen,
|
22723
|
+
"offset": 0,
|
22721
22724
|
"placement": "bottom-start",
|
22722
22725
|
"renderType": shared_namespaceObject.RenderType.SHOWN,
|
22723
|
-
"
|
22724
|
-
"offset": 0
|
22726
|
+
"trigger": "click"
|
22725
22727
|
}, {
|
22726
22728
|
theme: theme
|
22727
22729
|
}, {
|
22728
|
-
"onAfterShow": function onAfterShow() {
|
22729
|
-
return handlePopShow(true);
|
22730
|
-
},
|
22731
22730
|
"onAfterHidden": function onAfterHidden() {
|
22732
22731
|
return handlePopShow(false);
|
22732
|
+
},
|
22733
|
+
"onAfterShow": function onAfterShow() {
|
22734
|
+
return handlePopShow(true);
|
22733
22735
|
}
|
22734
22736
|
}), {
|
22735
22737
|
"default": function _default() {
|
@@ -22752,15 +22754,15 @@ var ROW_HEIGHT = 32;
|
|
22752
22754
|
}, {
|
22753
22755
|
"default": function _default() {
|
22754
22756
|
return [(0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
22755
|
-
"
|
22756
|
-
"minHeight": minHeight.value,
|
22757
|
+
"ref": refVirtualRender,
|
22757
22758
|
"height": height.value,
|
22759
|
+
"className": "content-items",
|
22758
22760
|
"lineHeight": 32,
|
22759
22761
|
"list": localData.value,
|
22760
|
-
"
|
22762
|
+
"maxHeight": maxHeight.value,
|
22763
|
+
"minHeight": minHeight.value,
|
22761
22764
|
"scrollEvent": true,
|
22762
|
-
"
|
22763
|
-
"className": "content-items"
|
22765
|
+
"throttleDelay": 0
|
22764
22766
|
}, {
|
22765
22767
|
"default": renderFilterList
|
22766
22768
|
})];
|
@@ -22912,14 +22914,14 @@ function _slicedToArray(arr, i) {
|
|
22912
22914
|
return (0,external_vue_namespaceObject.createVNode)("span", {
|
22913
22915
|
"class": resolveClassName('head-cell-sort')
|
22914
22916
|
}, [(0,external_vue_namespaceObject.createVNode)(_namespaceObject.AngleDownFill, {
|
22915
|
-
"class": ['sort-action', 'sort-asc', props.active && sortType.value === SORT_OPTION.ASC ? 'active' : ''],
|
22916
22917
|
"style": "align-items: flex-end;",
|
22918
|
+
"class": ['sort-action', 'sort-asc', props.active && sortType.value === SORT_OPTION.ASC ? 'active' : ''],
|
22917
22919
|
"onClick": function onClick(e) {
|
22918
22920
|
return handleSortClick(e, SORT_OPTION.ASC);
|
22919
22921
|
}
|
22920
22922
|
}, null), (0,external_vue_namespaceObject.createVNode)(_namespaceObject.AngleUpFill, {
|
22921
|
-
"class": ['sort-action', 'sort-desc', props.active && sortType.value === SORT_OPTION.DESC ? 'active' : ''],
|
22922
22923
|
"style": "align-items: flex-start;",
|
22924
|
+
"class": ['sort-action', 'sort-desc', props.active && sortType.value === SORT_OPTION.DESC ? 'active' : ''],
|
22923
22925
|
"onClick": function onClick(e) {
|
22924
22926
|
return handleSortClick(e, SORT_OPTION.DESC);
|
22925
22927
|
}
|
@@ -23057,10 +23059,10 @@ function use_head_cell_isSlot(s) {
|
|
23057
23059
|
isCheckAll: isAll
|
23058
23060
|
});
|
23059
23061
|
return (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
23060
|
-
"onChange": handleChecked,
|
23061
23062
|
"disabled": !isEnable,
|
23063
|
+
"indeterminate": indeterminate,
|
23062
23064
|
"modelValue": isChecked,
|
23063
|
-
"
|
23065
|
+
"onChange": handleChecked
|
23064
23066
|
}, null);
|
23065
23067
|
};
|
23066
23068
|
/**
|
@@ -23091,11 +23093,11 @@ function use_head_cell_isSlot(s) {
|
|
23091
23093
|
};
|
23092
23094
|
// 如果是独立的,则只高亮当前排序
|
23093
23095
|
return (0,external_vue_namespaceObject.createVNode)(head_sort, {
|
23096
|
+
"active": active.value,
|
23094
23097
|
"column": column,
|
23095
23098
|
"defaultSort": active.value ? nextSort.value : SORT_OPTION.NULL,
|
23096
|
-
"
|
23097
|
-
"
|
23098
|
-
"sortValFormat": props.sortValFormat
|
23099
|
+
"sortValFormat": props.sortValFormat,
|
23100
|
+
"onChange": handleSortClick
|
23099
23101
|
}, null);
|
23100
23102
|
};
|
23101
23103
|
var getFilterCell = function getFilterCell(column, index) {
|
@@ -23118,8 +23120,8 @@ function use_head_cell_isSlot(s) {
|
|
23118
23120
|
});
|
23119
23121
|
};
|
23120
23122
|
return (0,external_vue_namespaceObject.createVNode)(head_filter, {
|
23121
|
-
"column": column,
|
23122
23123
|
"height": props.headHeight,
|
23124
|
+
"column": column,
|
23123
23125
|
"onChange": handleFilterChange,
|
23124
23126
|
"onFilterSave": filterSave
|
23125
23127
|
}, null);
|
@@ -23163,13 +23165,13 @@ function use_head_cell_isSlot(s) {
|
|
23163
23165
|
};
|
23164
23166
|
return (0,external_vue_namespaceObject.createVNode)(table_cell, {
|
23165
23167
|
"class": headClass,
|
23166
|
-
"title": showTitle,
|
23167
|
-
"observerResize": props.observerResize,
|
23168
|
-
"resizerWay": props.resizerWay,
|
23169
|
-
"isHead": true,
|
23170
23168
|
"column": column,
|
23169
|
+
"headExplain": resolvePropVal(column.explain, 'head', [column]),
|
23170
|
+
"isHead": true,
|
23171
|
+
"observerResize": props.observerResize,
|
23171
23172
|
"parentSetting": props.showOverflowTooltip,
|
23172
|
-
"
|
23173
|
+
"resizerWay": props.resizerWay,
|
23174
|
+
"title": showTitle
|
23173
23175
|
}, use_head_cell_isSlot(cells) ? cells : {
|
23174
23176
|
"default": function _default() {
|
23175
23177
|
return [cells];
|
@@ -23178,11 +23180,11 @@ function use_head_cell_isSlot(s) {
|
|
23178
23180
|
};
|
23179
23181
|
var getTH = function getTH(classList, style, index) {
|
23180
23182
|
return (0,external_vue_namespaceObject.createVNode)("th", (0,external_vue_namespaceObject.mergeProps)({
|
23183
|
+
"style": style,
|
23184
|
+
"class": classList,
|
23181
23185
|
"colspan": 1,
|
23182
|
-
"rowspan": 1,
|
23183
23186
|
"data-id": tableResp.getColumnId(column),
|
23184
|
-
"
|
23185
|
-
"style": style,
|
23187
|
+
"rowspan": 1,
|
23186
23188
|
"onClick": function onClick() {
|
23187
23189
|
return handleColCellClick(index);
|
23188
23190
|
}
|
@@ -23236,6 +23238,15 @@ function use_head_cell_isSlot(s) {
|
|
23236
23238
|
clearStore();
|
23237
23239
|
}
|
23238
23240
|
};
|
23241
|
+
var setStoreStart = function setStoreStart(row, index) {
|
23242
|
+
store.start = {
|
23243
|
+
index: index !== null && index !== void 0 ? index : null,
|
23244
|
+
row: row !== null && row !== void 0 ? row : null
|
23245
|
+
};
|
23246
|
+
};
|
23247
|
+
var clearStoreStart = function clearStoreStart() {
|
23248
|
+
setStoreStart();
|
23249
|
+
};
|
23239
23250
|
var setStore = function setStore(row, index) {
|
23240
23251
|
if (store.start === null && store.end === null) {
|
23241
23252
|
store.start = {
|
@@ -23271,7 +23282,9 @@ function use_head_cell_isSlot(s) {
|
|
23271
23282
|
isShiftKeyDown: isShiftKeyDown,
|
23272
23283
|
setStore: setStore,
|
23273
23284
|
getStore: getStore,
|
23274
|
-
clearStore: clearStore
|
23285
|
+
clearStore: clearStore,
|
23286
|
+
setStoreStart: setStoreStart,
|
23287
|
+
clearStoreStart: clearStoreStart
|
23275
23288
|
};
|
23276
23289
|
});
|
23277
23290
|
;// CONCATENATED MODULE: ../../packages/table/src/use-render.tsx
|
@@ -23344,7 +23357,9 @@ function use_render_isSlot(s) {
|
|
23344
23357
|
var _useShiftKey = use_shift_key(props),
|
23345
23358
|
isShiftKeyDown = _useShiftKey.isShiftKeyDown,
|
23346
23359
|
getStore = _useShiftKey.getStore,
|
23347
|
-
setStore = _useShiftKey.setStore
|
23360
|
+
setStore = _useShiftKey.setStore,
|
23361
|
+
setStoreStart = _useShiftKey.setStoreStart,
|
23362
|
+
clearStoreStart = _useShiftKey.clearStoreStart;
|
23348
23363
|
// const activeSortIndex = ref(null);
|
23349
23364
|
/**
|
23350
23365
|
* 过滤当前可渲染的列
|
@@ -23387,8 +23402,8 @@ function use_render_isSlot(s) {
|
|
23387
23402
|
};
|
23388
23403
|
return [props.settings ? (0,external_vue_namespaceObject.createVNode)(plugins_settings, {
|
23389
23404
|
"class": "table-head-settings",
|
23390
|
-
"settings": props.settings,
|
23391
23405
|
"columns": columns.value,
|
23406
|
+
"settings": props.settings,
|
23392
23407
|
"onChange": handleSettingsChanged
|
23393
23408
|
}, {
|
23394
23409
|
"default": function _default() {
|
@@ -23414,9 +23429,9 @@ function use_render_isSlot(s) {
|
|
23414
23429
|
if (!rows.length) {
|
23415
23430
|
var _context$slots$empty, _context$slots$empty2, _context$slots2;
|
23416
23431
|
return (_context$slots$empty = (_context$slots$empty2 = (_context$slots2 = context.slots).empty) === null || _context$slots$empty2 === void 0 ? void 0 : _context$slots$empty2.call(_context$slots2)) !== null && _context$slots$empty !== void 0 ? _context$slots$empty : (0,external_vue_namespaceObject.createVNode)(body_empty, {
|
23432
|
+
"emptyText": localEmptyText.value,
|
23417
23433
|
"filterList": rows,
|
23418
|
-
"list": props.data
|
23419
|
-
"emptyText": localEmptyText.value
|
23434
|
+
"list": props.data
|
23420
23435
|
}, null);
|
23421
23436
|
}
|
23422
23437
|
return (0,external_vue_namespaceObject.createVNode)("table", {
|
@@ -23430,11 +23445,11 @@ function use_render_isSlot(s) {
|
|
23430
23445
|
"style": "width: 100%;"
|
23431
23446
|
}, options, {
|
23432
23447
|
"modelValue": options.current,
|
23433
|
-
"onLimitChange": function onLimitChange(limit) {
|
23434
|
-
return handlePageLimitChange(limit);
|
23435
|
-
},
|
23436
23448
|
"onChange": function onChange(current) {
|
23437
23449
|
return handlePageChange(current);
|
23450
|
+
},
|
23451
|
+
"onLimitChange": function onLimitChange(limit) {
|
23452
|
+
return handlePageLimitChange(limit);
|
23438
23453
|
}
|
23439
23454
|
}), null);
|
23440
23455
|
};
|
@@ -23578,10 +23593,11 @@ function use_render_isSlot(s) {
|
|
23578
23593
|
}, {
|
23579
23594
|
"default": function _default() {
|
23580
23595
|
return [(0,external_vue_namespaceObject.createVNode)("tr", (0,external_vue_namespaceObject.mergeProps)({
|
23596
|
+
"key": rowId,
|
23581
23597
|
"style": rowStyle,
|
23582
23598
|
"class": rowClass,
|
23583
|
-
"key": rowId,
|
23584
23599
|
"data-row-index": rowIndex,
|
23600
|
+
"draggable": !!props.rowDraggable,
|
23585
23601
|
"onClick": function onClick(e) {
|
23586
23602
|
return handleRowClick(e, row, rowIndex, rows);
|
23587
23603
|
},
|
@@ -23593,8 +23609,7 @@ function use_render_isSlot(s) {
|
|
23593
23609
|
},
|
23594
23610
|
"onMouseleave": function onMouseleave(e) {
|
23595
23611
|
return handleRowLeave(e, row, rowIndex, rows);
|
23596
|
-
}
|
23597
|
-
"draggable": !!props.rowDraggable
|
23612
|
+
}
|
23598
23613
|
}, dragEvents), [filterColGroups.value.map(function (column, index) {
|
23599
23614
|
var cellStyle = [resolveFixedColumnStyle(column)].concat(_toConsumableArray(formatPropAsArray(props.cellStyle, [column, index, row, rowIndex])));
|
23600
23615
|
var _resolveCellSpan = resolveCellSpan(column, index, row, rowIndex),
|
@@ -23633,11 +23648,11 @@ function use_render_isSlot(s) {
|
|
23633
23648
|
var columnKey = "".concat(rowId, "_").concat(index);
|
23634
23649
|
var cellKey = "".concat(rowId, "_").concat(index, "_cell");
|
23635
23650
|
return (0,external_vue_namespaceObject.createVNode)("td", {
|
23636
|
-
"
|
23651
|
+
"key": columnKey,
|
23637
23652
|
"style": cellStyle,
|
23653
|
+
"class": cellClass,
|
23638
23654
|
"colspan": colspan,
|
23639
23655
|
"rowspan": rowspan,
|
23640
|
-
"key": columnKey,
|
23641
23656
|
"onClick": function onClick(event) {
|
23642
23657
|
return handleEmit(event, EMIT_EVENTS.CELL_CLICK);
|
23643
23658
|
},
|
@@ -23648,9 +23663,9 @@ function use_render_isSlot(s) {
|
|
23648
23663
|
"key": cellKey,
|
23649
23664
|
"class": tdCtxClass,
|
23650
23665
|
"column": column,
|
23651
|
-
"
|
23666
|
+
"observerResize": props.observerResize,
|
23652
23667
|
"parentSetting": props.showOverflowTooltip,
|
23653
|
-
"
|
23668
|
+
"row": row
|
23654
23669
|
}, use_render_isSlot(_slot = renderCell(row, column, rowIndex, rows, isChild)) ? _slot : {
|
23655
23670
|
"default": function _default() {
|
23656
23671
|
return [_slot];
|
@@ -23766,6 +23781,13 @@ function use_render_isSlot(s) {
|
|
23766
23781
|
});
|
23767
23782
|
return;
|
23768
23783
|
}
|
23784
|
+
if (!isShiftKeyDown.value) {
|
23785
|
+
if (value) {
|
23786
|
+
setStoreStart(row, index);
|
23787
|
+
} else {
|
23788
|
+
clearStoreStart();
|
23789
|
+
}
|
23790
|
+
}
|
23769
23791
|
tableResp.setRowSelection(row, value);
|
23770
23792
|
context.emit(EMIT_EVENTS.ROW_SELECT, {
|
23771
23793
|
row: row,
|
@@ -23825,11 +23847,11 @@ function use_render_isSlot(s) {
|
|
23825
23847
|
isCheckAll: isAll
|
23826
23848
|
});
|
23827
23849
|
return (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
23828
|
-
"
|
23850
|
+
"beforeChange": beforeRowChange,
|
23829
23851
|
"disabled": !isEnable,
|
23830
|
-
"modelValue": isChecked,
|
23831
23852
|
"indeterminate": indeterminate,
|
23832
|
-
"
|
23853
|
+
"modelValue": isChecked,
|
23854
|
+
"onChange": handleChecked
|
23833
23855
|
}, null);
|
23834
23856
|
};
|
23835
23857
|
var renderExpandColumn = function renderExpandColumn(row, column, index, rows) {
|
@@ -23860,8 +23882,8 @@ function use_render_isSlot(s) {
|
|
23860
23882
|
}
|
23861
23883
|
var fontSize = (_props$rowDraggable$f = (_props$rowDraggable2 = props.rowDraggable) === null || _props$rowDraggable2 === void 0 ? void 0 : _props$rowDraggable2.fontSize) !== null && _props$rowDraggable$f !== void 0 ? _props$rowDraggable$f : '14px';
|
23862
23884
|
var fontIcon = (_props$rowDraggable$i = (_props$rowDraggable3 = props.rowDraggable) === null || _props$rowDraggable3 === void 0 ? void 0 : _props$rowDraggable3.icon) !== null && _props$rowDraggable$i !== void 0 ? _props$rowDraggable$i : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.GragFill, {
|
23863
|
-
"
|
23864
|
-
"
|
23885
|
+
"style": "'--font-size: ".concat(fontSize, ";'"),
|
23886
|
+
"class": "drag-cell"
|
23865
23887
|
}, null);
|
23866
23888
|
return fontIcon;
|
23867
23889
|
};
|
@@ -23937,11 +23959,11 @@ function use_render_isSlot(s) {
|
|
23937
23959
|
var width = "".concat(resolveWidth(tableResp.getColumnOrderWidth(column))).replace(/px$/i, '');
|
23938
23960
|
var minWidth = tableResp.getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_MIN_WIDTH);
|
23939
23961
|
return (0,external_vue_namespaceObject.createVNode)("col", {
|
23940
|
-
"class": colCls,
|
23941
|
-
"width": width,
|
23942
23962
|
"style": {
|
23943
23963
|
minWidth: resolveNumberOrStringToPix(minWidth, 'auto')
|
23944
|
-
}
|
23964
|
+
},
|
23965
|
+
"width": width,
|
23966
|
+
"class": colCls
|
23945
23967
|
}, null);
|
23946
23968
|
})]);
|
23947
23969
|
};
|
@@ -23998,7 +24020,6 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
23998
24020
|
|
23999
24021
|
|
24000
24022
|
/* harmony default export */ const table = ((0,external_vue_namespaceObject.defineComponent)({
|
24001
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
24002
24023
|
name: 'Table',
|
24003
24024
|
props: tableProps,
|
24004
24025
|
emits: EMIT_EVENT_TYPES,
|
@@ -24170,36 +24191,36 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
24170
24191
|
return function () {
|
24171
24192
|
var _ctx$slots$default, _ctx$slots;
|
24172
24193
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
24173
|
-
"
|
24194
|
+
"ref": root,
|
24174
24195
|
"style": wrapperStyle.value,
|
24175
|
-
"
|
24196
|
+
"class": tableClass.value
|
24176
24197
|
}, [// @ts-ignore:next-line
|
24177
24198
|
(0,external_vue_namespaceObject.createVNode)("div", {
|
24178
|
-
"
|
24199
|
+
"ref": head,
|
24179
24200
|
"style": headStyle.value,
|
24180
|
-
"
|
24201
|
+
"class": headClass
|
24181
24202
|
}, [renderTableHeadSchema(), (0,external_vue_namespaceObject.createVNode)("div", {
|
24182
|
-
"
|
24183
|
-
"
|
24203
|
+
"style": resizeHeadColStyle.value,
|
24204
|
+
"class": "col-resize-drag"
|
24184
24205
|
}, null)]), (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
24185
24206
|
"ref": refVirtualRender,
|
24186
|
-
"lineHeight": tableSchema.formatData.settings.height,
|
24187
24207
|
"height": contentStyle.height,
|
24188
24208
|
"class": tableBodyClass.value,
|
24189
|
-
"
|
24190
|
-
"list": tableSchema.pageData
|
24209
|
+
"lineHeight": tableSchema.formatData.settings.height,
|
24210
|
+
"list": tableSchema.pageData,
|
24211
|
+
"wrapperStyle": contentStyle
|
24191
24212
|
}, scrollClass.value, {
|
24213
|
+
"autoIndex": false,
|
24192
24214
|
"contentClassName": tableBodyContentClass.value,
|
24193
|
-
"
|
24194
|
-
"
|
24195
|
-
"scrollEvent": true,
|
24215
|
+
"enabled": props.virtualEnabled,
|
24216
|
+
"keepAlive": true,
|
24196
24217
|
"rowKey": props.rowKey,
|
24218
|
+
"scrollEvent": true,
|
24197
24219
|
"scrollbar": {
|
24198
24220
|
enabled: true
|
24199
24221
|
},
|
24200
|
-
"
|
24201
|
-
"
|
24202
|
-
"autoIndex": false
|
24222
|
+
"throttleDelay": 120,
|
24223
|
+
"onContentScroll": handleScrollChanged
|
24203
24224
|
}), {
|
24204
24225
|
beforeContent: function beforeContent() {
|
24205
24226
|
return renderPrepend();
|
@@ -24209,26 +24230,26 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
24209
24230
|
},
|
24210
24231
|
afterSection: function afterSection() {
|
24211
24232
|
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
24212
|
-
"
|
24213
|
-
"
|
24233
|
+
"style": resizeColumnStyle.value,
|
24234
|
+
"class": resizeColumnClass
|
24214
24235
|
}, null)];
|
24215
24236
|
}
|
24216
24237
|
}), (0,external_vue_namespaceObject.createVNode)("div", {
|
24217
|
-
"
|
24218
|
-
"
|
24238
|
+
"style": fixedContainerStyle.value,
|
24239
|
+
"class": fixedWrapperClass
|
24219
24240
|
}, [fixedColumns.map(function (_ref) {
|
24220
24241
|
var isExist = _ref.isExist,
|
24221
24242
|
className = _ref.className,
|
24222
24243
|
style = _ref.style;
|
24223
24244
|
return isExist ? '' : (0,external_vue_namespaceObject.createVNode)("div", {
|
24224
|
-
"
|
24225
|
-
"
|
24245
|
+
"style": style,
|
24246
|
+
"class": className
|
24226
24247
|
}, null);
|
24227
24248
|
}), (0,external_vue_namespaceObject.createVNode)("div", {
|
24228
24249
|
"class": loadingRowClass
|
24229
24250
|
}, [renderScrollLoading()])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
24230
|
-
"
|
24231
|
-
"
|
24251
|
+
"style": footerStyle.value,
|
24252
|
+
"class": footerClass.value
|
24232
24253
|
}, [hasFooter.value && renderTableFooter(tableSchema.localPagination.value)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
24233
24254
|
"style": columnGhostStyle
|
24234
24255
|
}, [(_ctx$slots$default = (_ctx$slots = ctx.slots)["default"]) === null || _ctx$slots$default === void 0 ? void 0 : _ctx$slots$default.call(_ctx$slots)])]);
|