bkui-vue 2.0.1-beta.15 → 2.0.1-beta.15.table.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 +63 -63
- package/dist/index.esm.js +15152 -15326
- package/dist/index.umd.js +63 -63
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +129 -0
- package/lib/affix/affix.variable.css +258 -0
- package/lib/alert/alert.css +132 -3
- package/lib/alert/alert.variable.css +258 -0
- package/lib/backtop/backtop.css +132 -3
- package/lib/backtop/backtop.variable.css +390 -3
- package/lib/badge/badge.css +155 -26
- package/lib/badge/badge.variable.css +258 -0
- package/lib/breadcrumb/breadcrumb.css +134 -5
- package/lib/breadcrumb/breadcrumb.variable.css +392 -5
- package/lib/button/button.css +272 -143
- package/lib/button/button.variable.css +258 -0
- package/lib/button/index.js +0 -1
- package/lib/card/card.css +133 -4
- package/lib/card/card.variable.css +391 -4
- package/lib/cascader/cascader.css +152 -23
- package/lib/cascader/cascader.variable.css +410 -23
- package/lib/checkbox/checkbox.css +138 -9
- package/lib/checkbox/checkbox.variable.css +258 -0
- package/lib/code-diff/code-diff.css +129 -0
- package/lib/code-diff/code-diff.variable.css +258 -0
- package/lib/collapse/collapse.css +130 -1
- package/lib/collapse/collapse.variable.css +258 -0
- package/lib/collapse-transition/collapse-transition.css +129 -0
- package/lib/collapse-transition/collapse-transition.variable.css +258 -0
- package/lib/color-picker/color-picker.css +129 -0
- package/lib/color-picker/color-picker.variable.css +258 -0
- package/lib/config-provider/config-provider.css +129 -0
- package/lib/config-provider/config-provider.variable.css +258 -0
- package/lib/container/container.css +129 -0
- package/lib/container/container.variable.css +387 -0
- package/lib/container/index.js +0 -1
- package/lib/date-picker/date-picker.css +146 -17
- package/lib/date-picker/date-picker.variable.css +258 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/panel/date-range.d.ts +4 -4
- package/lib/dialog/dialog.css +137 -8
- package/lib/dialog/dialog.variable.css +395 -8
- package/lib/divider/divider.css +132 -3
- package/lib/divider/divider.variable.css +258 -0
- package/lib/dropdown/dropdown.css +129 -0
- package/lib/dropdown/dropdown.variable.css +387 -0
- package/lib/exception/exception.css +129 -0
- package/lib/exception/exception.variable.css +258 -0
- package/lib/fixed-navbar/fixed-navbar.css +133 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +258 -0
- package/lib/form/form.css +129 -0
- package/lib/form/form.variable.css +258 -0
- package/lib/form/index.js +0 -1
- package/lib/image/image-viewer.css +129 -0
- package/lib/image/image-viewer.variable.css +258 -0
- package/lib/image/image.css +129 -0
- package/lib/image/image.variable.css +387 -0
- package/lib/image/index.js +0 -1
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +133 -4
- package/lib/info-box/info-box.variable.css +258 -0
- package/lib/input/index.js +0 -1
- package/lib/input/input.css +201 -72
- package/lib/input/input.variable.css +459 -72
- package/lib/link/link.css +145 -16
- package/lib/link/link.variable.css +258 -0
- package/lib/loading/loading.css +145 -16
- package/lib/loading/loading.variable.css +403 -16
- package/lib/menu/menu.css +147 -18
- package/lib/menu/menu.variable.css +405 -18
- package/lib/menu/submenu.css +129 -0
- package/lib/menu/submenu.variable.css +258 -0
- package/lib/message/message.css +150 -21
- package/lib/message/message.variable.css +258 -0
- package/lib/modal/modal.css +133 -4
- package/lib/modal/modal.variable.css +391 -4
- package/lib/navigation/navigation.css +131 -2
- package/lib/navigation/navigation.variable.css +258 -0
- package/lib/notify/notify.css +136 -7
- package/lib/notify/notify.variable.css +258 -0
- package/lib/pagination/pagination.css +130 -1
- package/lib/pagination/pagination.variable.css +258 -0
- package/lib/plugin-popover/index.js +0 -1
- package/lib/pop-confirm/pop-confirm.css +129 -0
- package/lib/pop-confirm/pop-confirm.variable.css +258 -0
- package/lib/popover/index.js +0 -1
- package/lib/popover/popover.css +129 -0
- package/lib/popover/popover.variable.css +258 -0
- package/lib/process/process.css +142 -13
- package/lib/process/process.variable.css +258 -0
- package/lib/progress/index.js +0 -1
- package/lib/progress/progress.css +133 -4
- package/lib/progress/progress.variable.css +391 -4
- package/lib/radio/radio.css +171 -42
- package/lib/radio/radio.variable.css +258 -0
- package/lib/rate/rate.css +129 -0
- package/lib/rate/rate.variable.css +258 -0
- package/lib/resize-layout/resize-layout.css +129 -0
- package/lib/resize-layout/resize-layout.variable.css +258 -0
- package/lib/scrollbar/scrollbar.css +129 -0
- package/lib/scrollbar/scrollbar.variable.css +258 -0
- package/lib/search-select/search-select.css +162 -33
- package/lib/search-select/search-select.variable.css +420 -33
- package/lib/select/index.js +0 -2
- package/lib/select/select.css +168 -39
- package/lib/select/select.variable.css +426 -39
- package/lib/sideslider/sideslider.css +130 -1
- package/lib/sideslider/sideslider.variable.css +258 -0
- package/lib/slider/slider.css +134 -5
- package/lib/slider/slider.variable.css +258 -0
- package/lib/steps/steps.css +167 -38
- package/lib/steps/steps.variable.css +258 -0
- package/lib/styles/mixins/animate.css +129 -0
- package/lib/styles/mixins/animate.variable.css +258 -0
- package/lib/styles/mixins/mixins.css +129 -0
- package/lib/styles/mixins/mixins.variable.css +129 -0
- package/lib/styles/mixins/popper.css +129 -0
- package/lib/styles/mixins/popper.variable.css +258 -0
- package/lib/styles/mixins/scroll.css +129 -0
- package/lib/styles/mixins/scroll.variable.css +258 -0
- package/lib/styles/reset.css +129 -0
- package/lib/styles/reset.variable.css +258 -0
- package/lib/styles/themes/themes.css +129 -0
- package/lib/styles/themes/themes.less +306 -127
- package/lib/styles/themes/themes.variable.css +129 -0
- package/lib/swiper/swiper.css +129 -0
- package/lib/swiper/swiper.variable.css +258 -0
- package/lib/switcher/switcher.css +146 -17
- package/lib/switcher/switcher.variable.css +404 -17
- package/lib/tab/tab.css +146 -17
- package/lib/tab/tab.variable.css +258 -0
- package/lib/table/const.d.ts +12 -0
- package/lib/table/events.d.ts +2 -98
- package/lib/table/hooks/use-column-resize.d.ts +5 -0
- package/lib/table/{plugins → hooks}/use-column-template.d.ts +1 -2
- package/lib/table/hooks/use-columns.d.ts +53 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +15 -0
- package/lib/table/hooks/use-layout.d.ts +20 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +23 -0
- package/lib/table/hooks/use-rows.d.ts +25 -0
- package/lib/table/hooks/use-settings.d.ts +23 -0
- package/lib/table/index.d.ts +27 -502
- package/lib/table/index.js +3125 -3524
- package/lib/table/plugins/head-filter.css +129 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.variable.css +258 -0
- package/lib/table/plugins/head-sort.css +129 -0
- package/lib/table/plugins/head-sort.variable.css +258 -0
- package/lib/table/plugins/settings.css +130 -0
- package/lib/table/plugins/settings.less +1 -0
- package/lib/table/plugins/settings.variable.css +259 -0
- package/lib/table/props.d.ts +17 -8
- package/lib/table/table.css +321 -191
- package/lib/table/table.d.ts +18 -174
- package/lib/table/table.less +24 -22
- package/lib/table/table.variable.css +579 -191
- package/lib/table/utils.d.ts +24 -3
- package/lib/table-column/index.js +18 -2
- package/lib/tag/tag.css +134 -5
- package/lib/tag/tag.variable.css +258 -0
- package/lib/tag-input/tag-input.css +147 -18
- package/lib/tag-input/tag-input.variable.css +258 -0
- package/lib/time-picker/time-picker.css +129 -0
- package/lib/time-picker/time-picker.variable.css +258 -0
- package/lib/timeline/timeline.css +148 -19
- package/lib/timeline/timeline.variable.css +258 -0
- package/lib/transfer/transfer.css +148 -19
- package/lib/transfer/transfer.variable.css +258 -0
- package/lib/tree/tree.css +138 -9
- package/lib/tree/tree.variable.css +396 -9
- package/lib/upload/upload.css +156 -27
- package/lib/upload/upload.variable.css +414 -27
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/virtual-render.css +129 -0
- package/lib/virtual-render/virtual-render.variable.css +387 -0
- package/package.json +1 -1
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -23
- package/lib/table/use-attributes.d.ts +0 -62
- package/lib/table/use-column.d.ts +0 -155
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-shift-key.d.ts +0 -0
@@ -1,23 +0,0 @@
|
|
1
|
-
import { Column, SortScope, TablePropTypes } from '../props';
|
2
|
-
/**
|
3
|
-
* 处理 Prop中的分页配置
|
4
|
-
* prop中的配置会覆盖本地的配置
|
5
|
-
* @param propPagination 用户传入的配置
|
6
|
-
* @param defVal 默认配置
|
7
|
-
* @returns 返回值
|
8
|
-
*/
|
9
|
-
export declare const resolvePaginationOption: (propPagination: any, defVal: any) => any;
|
10
|
-
declare const _default: (props: TablePropTypes) => {
|
11
|
-
pageData: any[];
|
12
|
-
indexData: any[];
|
13
|
-
localPagination: import("vue").Ref<any>;
|
14
|
-
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
15
|
-
resolveIndexData: () => Promise<void>;
|
16
|
-
resolvePageDataBySortList: (multiCol?: any) => void;
|
17
|
-
handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
|
18
|
-
resetStartEndIndex: () => void;
|
19
|
-
getCurrentPageData: () => any[];
|
20
|
-
multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
|
21
|
-
sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
|
22
|
-
};
|
23
|
-
export default _default;
|
@@ -1,62 +0,0 @@
|
|
1
|
-
import { IEmptyObject } from './const';
|
2
|
-
import { Column, Field, Settings, TablePropTypes } from './props';
|
3
|
-
export type ITableFormatData = {
|
4
|
-
data: any[];
|
5
|
-
dataSchema: WeakMap<object, any>;
|
6
|
-
columnSchema: WeakMap<object, any>;
|
7
|
-
columns: Column[];
|
8
|
-
settings: {
|
9
|
-
size: string;
|
10
|
-
height: number;
|
11
|
-
fields: Field[];
|
12
|
-
checked: string[];
|
13
|
-
};
|
14
|
-
layout: {
|
15
|
-
bottom: number;
|
16
|
-
hasScrollY: boolean;
|
17
|
-
translateX: number;
|
18
|
-
translateY: number;
|
19
|
-
};
|
20
|
-
};
|
21
|
-
declare const tableSchemaResponse: (props: TablePropTypes) => {
|
22
|
-
formatColumns: (columns: Column[]) => void;
|
23
|
-
formatDataSchema: (data: any[]) => void;
|
24
|
-
setRowSelection: (row: any, isSelected: boolean, index?: number) => void;
|
25
|
-
setRowExpand: (row: any, isExpand: boolean) => void;
|
26
|
-
setRowIndex: (row: any, index: number) => void;
|
27
|
-
setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
|
28
|
-
setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
|
29
|
-
setColumnSortActive: (column: Column, active: boolean) => void;
|
30
|
-
setRowSelectionAll: (val: boolean) => void;
|
31
|
-
setRowIndeterminate: () => void;
|
32
|
-
setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
|
33
|
-
getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
34
|
-
getColumnId: (col: Column) => any;
|
35
|
-
getColumnOrderWidth: (col: Column, orders?: string[]) => number;
|
36
|
-
getRowSelection: () => any[];
|
37
|
-
resolveColumnWidth: (root: HTMLElement, autoWidth?: number, offsetWidth?: number) => void;
|
38
|
-
isActiveColumn: (col: Column) => any;
|
39
|
-
isHiddenColumn: (col: Column) => any;
|
40
|
-
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
41
|
-
resolveByDefColumns: () => void;
|
42
|
-
resetStartEndIndex: () => void;
|
43
|
-
toggleAllSelection: (value?: boolean) => void;
|
44
|
-
setAllRowExpand: (value?: boolean) => void;
|
45
|
-
clearSelection: () => void;
|
46
|
-
clearColumnSort: (reset?: boolean) => void;
|
47
|
-
toggleRowSelection: (row: any) => void;
|
48
|
-
getRowAttribute: (item: IEmptyObject | any, attrName: string) => any;
|
49
|
-
filter: () => void;
|
50
|
-
sortData: (column: Column) => void;
|
51
|
-
isCheckedAll: () => boolean;
|
52
|
-
hasCheckedRow: () => boolean;
|
53
|
-
updateSettings: (settings?: Settings, rowHeight?: number) => void;
|
54
|
-
changePageRowIndex: (sourceIndex: any, targetIndex: any) => void;
|
55
|
-
pageData: any[];
|
56
|
-
localPagination: import("vue").Ref<any>;
|
57
|
-
formatData: ITableFormatData;
|
58
|
-
setIndexData: () => Promise<void>;
|
59
|
-
getFilterFnList: () => any[];
|
60
|
-
};
|
61
|
-
export type ITableResponse = ReturnType<typeof tableSchemaResponse>;
|
62
|
-
export default tableSchemaResponse;
|
@@ -1,155 +0,0 @@
|
|
1
|
-
import { SORT_OPTION } from './const';
|
2
|
-
import { TablePropTypes } from './props';
|
3
|
-
/**
|
4
|
-
* 渲染column settings
|
5
|
-
* @param props: TablePropTypes
|
6
|
-
* @param targetColumns 解析之后的column配置(主要用来处理通过<bk-column>配置的数据结构)
|
7
|
-
*/
|
8
|
-
declare const _default: (props: TablePropTypes) => {
|
9
|
-
initColumns: (tableInstance: any) => void;
|
10
|
-
getColumns: () => {
|
11
|
-
label: import("./props").LabelFunctionString;
|
12
|
-
field?: import("./props").LabelFunctionString;
|
13
|
-
render?: import("./props").RenderFunctionString;
|
14
|
-
renderHead?: import("./props").RenderFunctionString;
|
15
|
-
width?: string | number;
|
16
|
-
minWidth?: string | number;
|
17
|
-
columnKey?: string;
|
18
|
-
showOverflowTooltip?: boolean | {
|
19
|
-
content: string | ((col: import("./props").Column, row: any) => string);
|
20
|
-
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
21
|
-
watchCellResize?: boolean;
|
22
|
-
mode?: "auto" | "static";
|
23
|
-
popoverOption?: any;
|
24
|
-
resizerWay?: import("./props").ResizerWay;
|
25
|
-
showHead?: boolean;
|
26
|
-
};
|
27
|
-
type?: string;
|
28
|
-
fixed?: string | boolean;
|
29
|
-
resizable?: boolean;
|
30
|
-
sort?: string | boolean | {
|
31
|
-
sortFn?: Function;
|
32
|
-
sortScope?: import("./props").SortScope;
|
33
|
-
value?: SORT_OPTION;
|
34
|
-
};
|
35
|
-
filter?: string | boolean | {
|
36
|
-
list: any[];
|
37
|
-
filterFn?: Function;
|
38
|
-
match?: import("./props").FullEnum;
|
39
|
-
checked?: any[];
|
40
|
-
filterScope?: import("./props").SortScope;
|
41
|
-
btnSave?: string | boolean;
|
42
|
-
btnReset?: string | boolean;
|
43
|
-
height?: number;
|
44
|
-
maxHeight?: number;
|
45
|
-
};
|
46
|
-
colspan?: import("./props").SpanFunctionString;
|
47
|
-
rowspan?: import("./props").SpanFunctionString;
|
48
|
-
textAlign?: string;
|
49
|
-
className?: import("./props").RowClassFunctionString;
|
50
|
-
align?: string;
|
51
|
-
prop?: import("./props").LabelFunctionString;
|
52
|
-
index?: number;
|
53
|
-
explain?: boolean | {
|
54
|
-
content: import("./props").LabelFunctionString;
|
55
|
-
head: import("./props").LabelFunctionString;
|
56
|
-
};
|
57
|
-
}[];
|
58
|
-
getActiveColumn: () => {
|
59
|
-
label: import("./props").LabelFunctionString;
|
60
|
-
field?: import("./props").LabelFunctionString;
|
61
|
-
render?: import("./props").RenderFunctionString;
|
62
|
-
renderHead?: import("./props").RenderFunctionString;
|
63
|
-
width?: string | number;
|
64
|
-
minWidth?: string | number;
|
65
|
-
columnKey?: string;
|
66
|
-
showOverflowTooltip?: boolean | {
|
67
|
-
content: string | ((col: import("./props").Column, row: any) => string);
|
68
|
-
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
69
|
-
watchCellResize?: boolean;
|
70
|
-
mode?: "auto" | "static";
|
71
|
-
popoverOption?: any;
|
72
|
-
resizerWay?: import("./props").ResizerWay;
|
73
|
-
showHead?: boolean;
|
74
|
-
};
|
75
|
-
type?: string;
|
76
|
-
fixed?: string | boolean;
|
77
|
-
resizable?: boolean;
|
78
|
-
sort?: string | boolean | {
|
79
|
-
sortFn?: Function;
|
80
|
-
sortScope?: import("./props").SortScope;
|
81
|
-
value?: SORT_OPTION;
|
82
|
-
};
|
83
|
-
filter?: string | boolean | {
|
84
|
-
list: any[];
|
85
|
-
filterFn?: Function;
|
86
|
-
match?: import("./props").FullEnum;
|
87
|
-
checked?: any[];
|
88
|
-
filterScope?: import("./props").SortScope;
|
89
|
-
btnSave?: string | boolean;
|
90
|
-
btnReset?: string | boolean;
|
91
|
-
height?: number;
|
92
|
-
maxHeight?: number;
|
93
|
-
};
|
94
|
-
colspan?: import("./props").SpanFunctionString;
|
95
|
-
rowspan?: import("./props").SpanFunctionString;
|
96
|
-
textAlign?: string;
|
97
|
-
className?: import("./props").RowClassFunctionString;
|
98
|
-
align?: string;
|
99
|
-
prop?: import("./props").LabelFunctionString;
|
100
|
-
index?: number;
|
101
|
-
explain?: boolean | {
|
102
|
-
content: import("./props").LabelFunctionString;
|
103
|
-
head: import("./props").LabelFunctionString;
|
104
|
-
};
|
105
|
-
};
|
106
|
-
columns: {
|
107
|
-
label: import("./props").LabelFunctionString;
|
108
|
-
field?: import("./props").LabelFunctionString;
|
109
|
-
render?: import("./props").RenderFunctionString;
|
110
|
-
renderHead?: import("./props").RenderFunctionString;
|
111
|
-
width?: string | number;
|
112
|
-
minWidth?: string | number;
|
113
|
-
columnKey?: string;
|
114
|
-
showOverflowTooltip?: boolean | {
|
115
|
-
content: string | ((col: import("./props").Column, row: any) => string);
|
116
|
-
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
117
|
-
watchCellResize?: boolean;
|
118
|
-
mode?: "auto" | "static";
|
119
|
-
popoverOption?: any;
|
120
|
-
resizerWay?: import("./props").ResizerWay;
|
121
|
-
showHead?: boolean;
|
122
|
-
};
|
123
|
-
type?: string;
|
124
|
-
fixed?: string | boolean;
|
125
|
-
resizable?: boolean;
|
126
|
-
sort?: string | boolean | {
|
127
|
-
sortFn?: Function;
|
128
|
-
sortScope?: import("./props").SortScope;
|
129
|
-
value?: SORT_OPTION;
|
130
|
-
};
|
131
|
-
filter?: string | boolean | {
|
132
|
-
list: any[];
|
133
|
-
filterFn?: Function;
|
134
|
-
match?: import("./props").FullEnum;
|
135
|
-
checked?: any[];
|
136
|
-
filterScope?: import("./props").SortScope;
|
137
|
-
btnSave?: string | boolean;
|
138
|
-
btnReset?: string | boolean;
|
139
|
-
height?: number;
|
140
|
-
maxHeight?: number;
|
141
|
-
};
|
142
|
-
colspan?: import("./props").SpanFunctionString;
|
143
|
-
rowspan?: import("./props").SpanFunctionString;
|
144
|
-
textAlign?: string;
|
145
|
-
className?: import("./props").RowClassFunctionString;
|
146
|
-
align?: string;
|
147
|
-
prop?: import("./props").LabelFunctionString;
|
148
|
-
index?: number;
|
149
|
-
explain?: boolean | {
|
150
|
-
content: import("./props").LabelFunctionString;
|
151
|
-
head: import("./props").LabelFunctionString;
|
152
|
-
};
|
153
|
-
}[];
|
154
|
-
};
|
155
|
-
export default _default;
|