bkui-vue 2.0.1-beta.60 → 2.0.1-beta.60.fix.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/README.md +0 -15
- package/dist/index.cjs.js +59 -59
- package/dist/index.esm.js +18048 -18492
- package/dist/index.umd.js +60 -60
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -262
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.d.ts +7 -0
- package/lib/alert/alert.variable.css +1 -262
- package/lib/alert/index.d.ts +15 -0
- package/lib/alert/index.js +6 -6
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.variable.css +4 -395
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -262
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -397
- package/lib/button/button.css +143 -273
- package/lib/button/button.variable.css +1 -262
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -396
- package/lib/cascader/cascader.css +23 -153
- package/lib/cascader/cascader.variable.css +24 -415
- package/lib/cascader/index.js +1 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +9 -147
- package/lib/checkbox/checkbox.d.ts +0 -32
- package/lib/checkbox/checkbox.less +0 -12
- package/lib/checkbox/checkbox.variable.css +1 -270
- package/lib/checkbox/index.d.ts +11 -46
- package/lib/checkbox/index.js +4 -9
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -262
- package/lib/collapse/collapse.css +1 -131
- package/lib/collapse/collapse.variable.css +1 -262
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -262
- package/lib/color-picker/color-picker.css +0 -130
- package/lib/color-picker/color-picker.variable.css +1 -262
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -262
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -392
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.d.ts +9 -0
- package/lib/date-picker/date-picker.variable.css +1 -262
- package/lib/date-picker/index.d.ts +19 -0
- package/lib/date-picker/index.js +17 -29
- package/lib/date-picker/panel/time-range.d.ts +9 -0
- package/lib/date-picker/panel/time.d.ts +10 -1
- package/lib/date-picker/props.d.ts +4 -0
- package/lib/date-picker/time-picker.d.ts +9 -0
- package/lib/dialog/dialog.css +8 -138
- package/lib/dialog/dialog.d.ts +5 -16
- package/lib/dialog/dialog.variable.css +9 -400
- package/lib/dialog/index.d.ts +11 -34
- package/lib/dialog/props.d.ts +2 -7
- package/lib/directives/index.js +6 -12
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.variable.css +1 -262
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.variable.css +1 -392
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.variable.css +1 -262
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
- package/lib/form/form-item.d.ts +18 -6
- package/lib/form/form.css +0 -130
- package/lib/form/form.variable.css +1 -262
- package/lib/form/index.d.ts +13 -6
- package/lib/form/index.js +6 -8
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.variable.css +1 -262
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -392
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +5 -3
- package/lib/info-box/info-box.css +4 -134
- package/lib/info-box/info-box.variable.css +1 -262
- package/lib/input/index.js +9 -36
- package/lib/input/input.css +72 -202
- package/lib/input/input.variable.css +73 -464
- package/lib/link/link.css +16 -146
- package/lib/link/link.variable.css +1 -262
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.variable.css +17 -408
- package/lib/menu/menu.css +18 -148
- package/lib/menu/menu.variable.css +19 -410
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -262
- package/lib/message/message.css +22 -153
- package/lib/message/message.less +2 -3
- package/lib/message/message.variable.css +2 -264
- package/lib/modal/index.d.ts +13 -41
- package/lib/modal/index.js +18 -33
- package/lib/modal/modal.css +4 -134
- package/lib/modal/modal.d.ts +5 -16
- package/lib/modal/modal.variable.css +5 -396
- package/lib/modal/props.mixin.d.ts +2 -7
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.variable.css +1 -262
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -262
- package/lib/overflow-title/components/overflow-title.d.ts +7 -0
- package/lib/overflow-title/index.d.ts +15 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/props.d.ts +3 -0
- package/lib/pagination/index.d.ts +19 -0
- package/lib/pagination/index.js +9 -47
- package/lib/pagination/pagination.css +9 -139
- package/lib/pagination/pagination.d.ts +13 -0
- package/lib/pagination/pagination.less +13 -14
- package/lib/pagination/pagination.variable.css +9 -270
- package/lib/pop-confirm/index.d.ts +32 -0
- package/lib/pop-confirm/index.js +18 -16
- package/lib/pop-confirm/pop-confirm.css +1 -133
- package/lib/pop-confirm/pop-confirm.d.ts +14 -0
- package/lib/pop-confirm/pop-confirm.less +1 -3
- package/lib/pop-confirm/pop-confirm.variable.css +2 -265
- package/lib/pop-confirm/props.d.ts +7 -1
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.variable.css +1 -262
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -262
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.variable.css +5 -396
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +1 -262
- package/lib/rate/rate.css +0 -130
- package/lib/rate/rate.variable.css +1 -262
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.variable.css +1 -262
- package/lib/scrollbar/index.d.ts +13 -133
- package/lib/scrollbar/index.js +18444 -1343
- 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 +241 -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 +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{styles/themes/themes.css → scrollbar/scrollbar.variable.css} +76 -2
- package/lib/search-select/index.d.ts +72 -40
- package/lib/search-select/index.js +67 -85
- package/lib/search-select/input.d.ts +4 -5
- package/lib/search-select/search-select.css +33 -163
- package/lib/search-select/search-select.d.ts +39 -15
- package/lib/search-select/search-select.variable.css +34 -425
- package/lib/search-select/selected.d.ts +9 -11
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/common.d.ts +2 -2
- package/lib/select/index.d.ts +4 -32
- package/lib/select/index.js +59 -119
- package/lib/select/option.d.ts +5 -4
- package/lib/select/select.css +43 -175
- package/lib/select/select.d.ts +0 -12
- package/lib/select/select.less +4 -7
- package/lib/select/select.variable.css +44 -437
- package/lib/select/type.d.ts +10 -9
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +1 -72
- package/lib/sideslider/index.d.ts +11 -34
- package/lib/sideslider/index.js +0 -1
- package/lib/sideslider/sideslider.css +9 -138
- package/lib/sideslider/sideslider.d.ts +5 -16
- package/lib/sideslider/sideslider.less +8 -7
- package/lib/sideslider/sideslider.variable.css +9 -269
- package/lib/slider/slider.css +5 -135
- package/lib/slider/slider.variable.css +1 -262
- package/lib/steps/index.d.ts +18 -3
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.d.ts +11 -1
- package/lib/steps/steps.variable.css +1 -262
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -262
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -262
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -262
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -262
- package/lib/styles/themes/themes.less +129 -299
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -262
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.variable.css +18 -409
- package/lib/tab/index.d.ts +92 -0
- package/lib/tab/index.js +14 -1
- package/lib/tab/props.d.ts +35 -0
- package/lib/tab/tab-nav.d.ts +45 -2
- package/lib/tab/tab.css +17 -147
- package/lib/tab/tab.d.ts +44 -0
- package/lib/tab/tab.variable.css +1 -262
- package/lib/table/components/table-cell.d.ts +0 -22
- package/lib/table/components/table-column.d.ts +44 -1
- package/lib/table/const.d.ts +2 -15
- package/lib/table/events.d.ts +98 -2
- package/lib/table/index.d.ts +561 -89
- package/lib/table/index.js +3333 -3812
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +0 -131
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.less +0 -1
- package/lib/table/plugins/head-filter.variable.css +1 -263
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -262
- package/lib/table/plugins/settings.css +0 -131
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +1 -263
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +35 -0
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +27 -0
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +23 -0
- package/lib/table/{hooks → plugins}/use-shift-key.d.ts +2 -4
- package/lib/table/props.d.ts +30 -92
- package/lib/table/table.css +327 -597
- package/lib/table/table.d.ts +181 -47
- package/lib/table/table.less +101 -228
- package/lib/table/table.variable.css +328 -859
- package/lib/table/use-attributes.d.ts +62 -0
- package/lib/table/use-column.d.ts +155 -0
- package/lib/table/use-common.d.ts +1679 -0
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +18 -45
- package/lib/table-column/index.d.ts +132 -3
- package/lib/table-column/index.js +28 -17367
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.css +6 -136
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -263
- package/lib/tag-input/index.js +3 -3
- package/lib/tag-input/tag-input.css +18 -148
- package/lib/tag-input/tag-input.d.ts +14 -2
- package/lib/tag-input/tag-input.variable.css +1 -262
- package/lib/time-picker/index.d.ts +19 -0
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -262
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -262
- package/lib/transfer/transfer.css +19 -149
- package/lib/transfer/transfer.variable.css +1 -262
- package/lib/tree/constant.d.ts +1 -3
- package/lib/tree/index.d.ts +7 -21
- package/lib/tree/index.js +18 -61
- package/lib/tree/props.d.ts +5 -12
- package/lib/tree/tree.css +78 -242
- package/lib/tree/tree.d.ts +3 -9
- package/lib/tree/tree.variable.css +79 -504
- package/lib/tree/use-node-action.d.ts +9 -10
- package/lib/tree/use-node-async.d.ts +1 -2
- package/lib/tree/use-node-attribute.d.ts +34 -42
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +5 -8
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +4 -27
- package/lib/upload/index.js +7 -30
- package/lib/upload/props.d.ts +2 -7
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.d.ts +2 -13
- package/lib/upload/upload.type.d.ts +0 -6
- package/lib/upload/upload.variable.css +28 -419
- package/lib/virtual-render/index.d.ts +46 -12
- package/lib/virtual-render/index.js +148 -17469
- package/lib/virtual-render/props.d.ts +9 -2
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +17 -4
- package/lib/virtual-render/v-virtual-render.d.ts +1 -7
- package/lib/virtual-render/virtual-render.css +69 -225
- package/lib/virtual-render/virtual-render.d.ts +22 -6
- package/lib/virtual-render/virtual-render.less +11 -2
- package/lib/virtual-render/virtual-render.variable.css +70 -487
- package/lib/volar.components.d.ts +0 -2
- package/package.json +1 -1
- package/lib/scrollbar/css/scrollbar.css +0 -239
- package/lib/scrollbar/css/scrollbar.less +0 -139
- package/lib/scrollbar/css/scrollbar.variable.css +0 -499
- package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
- package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
- package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
- package/lib/scrollbar/handlers/touch.d.ts +0 -4
- package/lib/scrollbar/helper/class-names.d.ts +0 -21
- package/lib/scrollbar/helper/css.d.ts +0 -3
- package/lib/scrollbar/helper/dom.d.ts +0 -4
- package/lib/scrollbar/helper/event-manager.d.ts +0 -20
- package/lib/scrollbar/helper/util.d.ts +0 -11
- package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
- package/lib/scrollbar/update-geometry.d.ts +0 -8
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.variable.css +0 -130
- package/lib/table/components/ghost-body.d.ts +0 -2
- package/lib/table/hooks/use-cell.d.ts +0 -20
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-column-template.d.ts +0 -5
- package/lib/table/hooks/use-columns.d.ts +0 -69
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -16
- package/lib/table/hooks/use-layout.d.ts +0 -25
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -21
- package/lib/table/hooks/use-rows.d.ts +0 -30
- package/lib/table/hooks/use-settings.d.ts +0 -134
- /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SetupContext } from 'vue';
|
2
|
+
import { TablePropTypes } from './props';
|
3
|
+
import { ITableResponse } from './use-attributes';
|
4
|
+
declare const _default: (props: TablePropTypes, context: SetupContext<any>, tableResp: ITableResponse, head: any, root: any, resetTableHeight: any) => {
|
5
|
+
renderTableHeadSchema: () => (string | JSX.Element)[];
|
6
|
+
renderTableBodySchema: (rows: any[]) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
7
|
+
[key: string]: any;
|
8
|
+
}>[] | JSX.Element;
|
9
|
+
renderTableFooter: (options: any) => JSX.Element;
|
10
|
+
};
|
11
|
+
export default _default;
|
package/lib/table/utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Column, GroupColumn, ISortPropShape,
|
1
|
+
import { Column, GroupColumn, ISortPropShape, TablePropTypes } from './props';
|
2
2
|
/**
|
3
3
|
* 解析Prop值 | 可能为多种类型 & 函数返回的场景
|
4
4
|
* @param prop 当前Prop
|
@@ -6,7 +6,7 @@ import { Column, GroupColumn, ISortPropShape, ISortShape, TablePropTypes } from
|
|
6
6
|
* @param args 如果是函数,传递参数
|
7
7
|
* @returns
|
8
8
|
*/
|
9
|
-
export declare const resolvePropVal: (prop:
|
9
|
+
export declare const resolvePropVal: (prop: any, key: string | string[], args: any[]) => any;
|
10
10
|
/**
|
11
11
|
* 处理Props中的ActiveColumn,解析为统一的数组格式
|
12
12
|
* @param props
|
@@ -80,24 +80,24 @@ export declare const resolveHeadConfig: (props: TablePropTypes) => {
|
|
80
80
|
* @param index 当前行Index
|
81
81
|
* @returns
|
82
82
|
*/
|
83
|
-
export declare const getRowText: (row:
|
83
|
+
export declare const getRowText: (row: any, key: string, format?: (() => boolean | number | string)[] | string[]) => any;
|
84
84
|
/**
|
85
85
|
* 获取当前行指定列的值
|
86
86
|
* @param row 当前行
|
87
87
|
* @param key 指定列名
|
88
88
|
* @returns
|
89
89
|
*/
|
90
|
-
export declare const getRowValue: (row:
|
90
|
+
export declare const getRowValue: (row: any, key: string) => any;
|
91
91
|
/**
|
92
92
|
* 格式化prop配置为标准数组格式
|
93
93
|
* @param prop prop对象值
|
94
94
|
* @param args 如果是function参数
|
95
95
|
* @returns
|
96
96
|
*/
|
97
|
-
export declare const formatPropAsArray: (prop: (() =>
|
97
|
+
export declare const formatPropAsArray: (prop: (() => any) | object | string, args: any[]) => any;
|
98
98
|
export declare const isRenderScrollBottomLoading: (props: TablePropTypes) => boolean;
|
99
|
-
export declare const getRowKey: (item:
|
100
|
-
export declare const getRowKeyNull: (item:
|
99
|
+
export declare const getRowKey: (item: any, props: TablePropTypes, index: number) => any;
|
100
|
+
export declare const getRowKeyNull: (item: any, props: TablePropTypes, index: number) => unknown;
|
101
101
|
export declare const hasRootScrollY: (root: any, querySelector: string, offsetHeight?: number) => boolean;
|
102
102
|
export declare const getColumnClass: (column: Column, colIndex?: number, uuid?: string) => {
|
103
103
|
column_fixed: boolean;
|
@@ -106,58 +106,31 @@ export declare const getColumnClass: (column: Column, colIndex?: number, uuid?:
|
|
106
106
|
};
|
107
107
|
export declare const getElementTextWidth: (element: HTMLElement, text?: string) => any;
|
108
108
|
export declare const isColumnHidden: (settingFields: any, column: any, checked: any) => boolean;
|
109
|
-
export declare const resolveColumnSpan: (column: Column, colIndex: number, row:
|
110
|
-
export declare const resolveCellSpan: (column: Column, colIndex: number, row:
|
111
|
-
colspan:
|
112
|
-
rowspan:
|
109
|
+
export declare const resolveColumnSpan: (column: Column, colIndex: number, row: any, rowIndex: number, key: string) => any;
|
110
|
+
export declare const resolveCellSpan: (column: Column, colIndex: number, row: any, rowIndex: number) => {
|
111
|
+
colspan: any;
|
112
|
+
rowspan: any;
|
113
113
|
};
|
114
|
-
export declare const skipThisColumn: (columns: Column[], colIndex: number, row:
|
115
|
-
export declare const getSortFn: (column: any, sortType: any, format?: any[]) => ((_a: any, _b: any) => boolean) | ((
|
114
|
+
export declare const skipThisColumn: (columns: Column[], colIndex: number, row: any, rowIndex: number) => number | false;
|
115
|
+
export declare const getSortFn: (column: any, sortType: any, format?: any[]) => ((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number);
|
116
116
|
export declare const getNextSortType: (sortType: string) => string;
|
117
117
|
export declare const resolveSort: (sort: ISortPropShape, column: any, format?: any[]) => ({
|
118
|
-
sortFn: ((_a: any, _b: any) => boolean) | ((
|
119
|
-
} & ISortShape) | {
|
120
|
-
sortFn?:
|
118
|
+
sortFn: ((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number);
|
119
|
+
} & import("./props").ISortShape) | {
|
120
|
+
sortFn?: Function;
|
121
121
|
sortScope?: import("./props").SortScope;
|
122
122
|
value: string;
|
123
123
|
};
|
124
124
|
export declare const isRowSelectEnable: (props: any, { row, index, isCheckAll }: {
|
125
|
-
row:
|
125
|
+
row: any;
|
126
126
|
index?: number;
|
127
127
|
isCheckAll?: boolean;
|
128
128
|
}) => any;
|
129
129
|
export declare const getRowId: (row: any, defVal: any, props: any) => any;
|
130
130
|
export declare const resolveColumnSortProp: (col: Column, props: TablePropTypes) => {
|
131
131
|
type: string;
|
132
|
-
fn:
|
132
|
+
fn: Function | ((((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number)) & Function);
|
133
133
|
scope: import("./props").SortScope;
|
134
134
|
active: boolean;
|
135
|
-
enabled: boolean;
|
136
|
-
};
|
137
|
-
export declare const resolveColumnFilterProp: (col: Column) => {
|
138
|
-
enabled: boolean;
|
139
|
-
list: {
|
140
|
-
label: string;
|
141
|
-
text?: string;
|
142
|
-
value: string;
|
143
|
-
}[];
|
144
|
-
filterFn?: (...args: any[]) => boolean;
|
145
|
-
match?: import("./props").FullEnum;
|
146
|
-
checked?: string[];
|
147
|
-
filterScope?: import("./props").SortScope;
|
148
|
-
btnSave?: string | boolean;
|
149
|
-
btnReset?: string | boolean;
|
150
|
-
height?: number;
|
151
|
-
maxHeight?: number;
|
152
|
-
} | {
|
153
|
-
enabled: boolean;
|
154
|
-
checked: any[];
|
155
135
|
};
|
156
136
|
export declare const getRawData: (data: any) => any;
|
157
|
-
/**
|
158
|
-
* 转换 px | % 为实际数值
|
159
|
-
* @param val
|
160
|
-
* @param parentVal
|
161
|
-
* @returns
|
162
|
-
*/
|
163
|
-
export declare const getNumberOrPercentValue: (val: number | string, parentVal?: number) => number;
|
@@ -38,7 +38,50 @@ declare const BkTableColumn: {
|
|
38
38
|
} & {
|
39
39
|
default: number;
|
40
40
|
};
|
41
|
-
}>>,
|
41
|
+
}>>, {
|
42
|
+
column: {
|
43
|
+
fixed?: boolean | "left" | "right";
|
44
|
+
resizable?: boolean;
|
45
|
+
minWidth?: string | number;
|
46
|
+
index?: number;
|
47
|
+
columnKey?: string;
|
48
|
+
colspan?: import("../table/props").SpanFunctionString;
|
49
|
+
rowspan?: import("../table/props").SpanFunctionString;
|
50
|
+
render?: import("../table/props").RenderFunctionString;
|
51
|
+
sort?: string | boolean | {
|
52
|
+
sortFn?: Function;
|
53
|
+
sortScope?: import("../table/props").SortScope;
|
54
|
+
value?: import("../table/const").SORT_OPTION;
|
55
|
+
};
|
56
|
+
filter?: string | boolean | {
|
57
|
+
list: any[];
|
58
|
+
filterFn?: Function;
|
59
|
+
match?: import("../table/props").FullEnum;
|
60
|
+
checked?: any[];
|
61
|
+
filterScope?: import("../table/props").SortScope;
|
62
|
+
btnSave?: string | boolean;
|
63
|
+
btnReset?: string | boolean;
|
64
|
+
height?: number;
|
65
|
+
maxHeight?: number;
|
66
|
+
};
|
67
|
+
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
68
|
+
label?: import("../table/props").LabelFunctionString;
|
69
|
+
width?: string | number;
|
70
|
+
className?: import("../table/props").RowClassFunctionString;
|
71
|
+
align?: "" | "left" | "right" | "center";
|
72
|
+
showOverflowTooltip?: boolean | {
|
73
|
+
content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
|
74
|
+
disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
|
75
|
+
watchCellResize?: boolean;
|
76
|
+
mode?: "auto" | "static";
|
77
|
+
popoverOption?: any;
|
78
|
+
resizerWay?: import("../table/props").ResizerWay;
|
79
|
+
showHead?: boolean;
|
80
|
+
};
|
81
|
+
field: import("../table/props").LabelFunctionString;
|
82
|
+
prop?: import("../table/props").LabelFunctionString;
|
83
|
+
};
|
84
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
42
85
|
label: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
|
43
86
|
field: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
|
44
87
|
render: import("vue-types").VueTypeDef<import("../table/props").RenderFunctionString>;
|
@@ -131,7 +174,50 @@ declare const BkTableColumn: {
|
|
131
174
|
} & {
|
132
175
|
default: number;
|
133
176
|
};
|
134
|
-
}>>, {
|
177
|
+
}>>, {
|
178
|
+
column: {
|
179
|
+
fixed?: boolean | "left" | "right";
|
180
|
+
resizable?: boolean;
|
181
|
+
minWidth?: string | number;
|
182
|
+
index?: number;
|
183
|
+
columnKey?: string;
|
184
|
+
colspan?: import("../table/props").SpanFunctionString;
|
185
|
+
rowspan?: import("../table/props").SpanFunctionString;
|
186
|
+
render?: import("../table/props").RenderFunctionString;
|
187
|
+
sort?: string | boolean | {
|
188
|
+
sortFn?: Function;
|
189
|
+
sortScope?: import("../table/props").SortScope;
|
190
|
+
value?: import("../table/const").SORT_OPTION;
|
191
|
+
};
|
192
|
+
filter?: string | boolean | {
|
193
|
+
list: any[];
|
194
|
+
filterFn?: Function;
|
195
|
+
match?: import("../table/props").FullEnum;
|
196
|
+
checked?: any[];
|
197
|
+
filterScope?: import("../table/props").SortScope;
|
198
|
+
btnSave?: string | boolean;
|
199
|
+
btnReset?: string | boolean;
|
200
|
+
height?: number;
|
201
|
+
maxHeight?: number;
|
202
|
+
};
|
203
|
+
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
204
|
+
label?: import("../table/props").LabelFunctionString;
|
205
|
+
width?: string | number;
|
206
|
+
className?: import("../table/props").RowClassFunctionString;
|
207
|
+
align?: "" | "left" | "right" | "center";
|
208
|
+
showOverflowTooltip?: boolean | {
|
209
|
+
content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
|
210
|
+
disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
|
211
|
+
watchCellResize?: boolean;
|
212
|
+
mode?: "auto" | "static";
|
213
|
+
popoverOption?: any;
|
214
|
+
resizerWay?: import("../table/props").ResizerWay;
|
215
|
+
showHead?: boolean;
|
216
|
+
};
|
217
|
+
field: import("../table/props").LabelFunctionString;
|
218
|
+
prop?: import("../table/props").LabelFunctionString;
|
219
|
+
};
|
220
|
+
}, {}, {}, {}, {
|
135
221
|
fixed: boolean | "left" | "right";
|
136
222
|
resizable: boolean;
|
137
223
|
minWidth: string | number;
|
@@ -182,7 +268,50 @@ declare const BkTableColumn: {
|
|
182
268
|
} & {
|
183
269
|
default: number;
|
184
270
|
};
|
185
|
-
}>>,
|
271
|
+
}>>, {
|
272
|
+
column: {
|
273
|
+
fixed?: boolean | "left" | "right";
|
274
|
+
resizable?: boolean;
|
275
|
+
minWidth?: string | number;
|
276
|
+
index?: number;
|
277
|
+
columnKey?: string;
|
278
|
+
colspan?: import("../table/props").SpanFunctionString;
|
279
|
+
rowspan?: import("../table/props").SpanFunctionString;
|
280
|
+
render?: import("../table/props").RenderFunctionString;
|
281
|
+
sort?: string | boolean | {
|
282
|
+
sortFn?: Function;
|
283
|
+
sortScope?: import("../table/props").SortScope;
|
284
|
+
value?: import("../table/const").SORT_OPTION;
|
285
|
+
};
|
286
|
+
filter?: string | boolean | {
|
287
|
+
list: any[];
|
288
|
+
filterFn?: Function;
|
289
|
+
match?: import("../table/props").FullEnum;
|
290
|
+
checked?: any[];
|
291
|
+
filterScope?: import("../table/props").SortScope;
|
292
|
+
btnSave?: string | boolean;
|
293
|
+
btnReset?: string | boolean;
|
294
|
+
height?: number;
|
295
|
+
maxHeight?: number;
|
296
|
+
};
|
297
|
+
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
298
|
+
label?: import("../table/props").LabelFunctionString;
|
299
|
+
width?: string | number;
|
300
|
+
className?: import("../table/props").RowClassFunctionString;
|
301
|
+
align?: "" | "left" | "right" | "center";
|
302
|
+
showOverflowTooltip?: boolean | {
|
303
|
+
content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
|
304
|
+
disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
|
305
|
+
watchCellResize?: boolean;
|
306
|
+
mode?: "auto" | "static";
|
307
|
+
popoverOption?: any;
|
308
|
+
resizerWay?: import("../table/props").ResizerWay;
|
309
|
+
showHead?: boolean;
|
310
|
+
};
|
311
|
+
field: import("../table/props").LabelFunctionString;
|
312
|
+
prop?: import("../table/props").LabelFunctionString;
|
313
|
+
};
|
314
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
186
315
|
fixed: boolean | "left" | "right";
|
187
316
|
resizable: boolean;
|
188
317
|
minWidth: string | number;
|