bkui-vue 2.0.1-beta.23 → 2.0.1-beta.25
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 +14194 -14230
- 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 +130 -0
- package/lib/affix/affix.variable.css +262 -1
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.variable.css +262 -1
- package/lib/backtop/backtop.css +133 -3
- package/lib/backtop/backtop.variable.css +395 -4
- package/lib/badge/badge.css +156 -26
- package/lib/badge/badge.variable.css +262 -1
- package/lib/breadcrumb/breadcrumb.css +135 -5
- package/lib/breadcrumb/breadcrumb.variable.css +397 -6
- package/lib/button/button.css +273 -143
- package/lib/button/button.variable.css +262 -1
- package/lib/card/card.css +134 -4
- package/lib/card/card.variable.css +396 -5
- package/lib/cascader/cascader.css +153 -23
- package/lib/cascader/cascader.variable.css +415 -24
- package/lib/checkbox/checkbox.css +139 -9
- package/lib/checkbox/checkbox.variable.css +262 -1
- package/lib/code-diff/code-diff.css +130 -0
- package/lib/code-diff/code-diff.variable.css +262 -1
- package/lib/collapse/collapse.css +131 -1
- package/lib/collapse/collapse.variable.css +262 -1
- package/lib/collapse-transition/collapse-transition.css +130 -0
- package/lib/collapse-transition/collapse-transition.variable.css +262 -1
- package/lib/color-picker/color-picker.css +130 -0
- package/lib/color-picker/color-picker.variable.css +262 -1
- package/lib/config-provider/config-provider.css +130 -0
- package/lib/config-provider/config-provider.variable.css +262 -1
- package/lib/container/container.css +130 -0
- package/lib/container/container.variable.css +392 -1
- package/lib/date-picker/date-picker.css +147 -17
- package/lib/date-picker/date-picker.variable.css +262 -1
- package/lib/dialog/dialog.css +138 -8
- package/lib/dialog/dialog.variable.css +400 -9
- package/lib/divider/divider.css +133 -3
- package/lib/divider/divider.variable.css +262 -1
- package/lib/dropdown/dropdown.css +130 -0
- package/lib/dropdown/dropdown.variable.css +392 -1
- package/lib/exception/exception.css +130 -0
- package/lib/exception/exception.variable.css +262 -1
- package/lib/fixed-navbar/fixed-navbar.css +134 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
- package/lib/form/form.css +130 -0
- package/lib/form/form.variable.css +262 -1
- package/lib/image/image-viewer.css +130 -0
- package/lib/image/image-viewer.variable.css +262 -1
- package/lib/image/image.css +130 -0
- package/lib/image/image.variable.css +392 -1
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +134 -4
- package/lib/info-box/info-box.variable.css +262 -1
- package/lib/input/input.css +202 -72
- package/lib/input/input.variable.css +464 -73
- package/lib/link/link.css +146 -16
- package/lib/link/link.variable.css +262 -1
- package/lib/loading/loading.css +146 -16
- package/lib/loading/loading.variable.css +408 -17
- package/lib/menu/menu.css +148 -18
- package/lib/menu/menu.variable.css +410 -19
- package/lib/menu/submenu.css +130 -0
- package/lib/menu/submenu.variable.css +262 -1
- package/lib/message/message.css +151 -21
- package/lib/message/message.variable.css +262 -1
- package/lib/modal/modal.css +134 -4
- package/lib/modal/modal.variable.css +396 -5
- package/lib/navigation/navigation.css +132 -2
- package/lib/navigation/navigation.variable.css +262 -1
- package/lib/notify/notify.css +137 -7
- package/lib/notify/notify.variable.css +262 -1
- package/lib/pagination/pagination.css +131 -1
- package/lib/pagination/pagination.variable.css +262 -1
- package/lib/pop-confirm/pop-confirm.css +130 -0
- package/lib/pop-confirm/pop-confirm.variable.css +262 -1
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.variable.css +262 -1
- package/lib/process/process.css +143 -13
- package/lib/process/process.variable.css +262 -1
- package/lib/progress/progress.css +134 -4
- package/lib/progress/progress.variable.css +396 -5
- package/lib/radio/radio.css +172 -42
- package/lib/radio/radio.variable.css +262 -1
- package/lib/rate/rate.css +130 -0
- package/lib/rate/rate.variable.css +262 -1
- package/lib/resize-layout/resize-layout.css +130 -0
- package/lib/resize-layout/resize-layout.variable.css +262 -1
- package/lib/scrollbar/index.js +38 -12
- package/lib/scrollbar/scrollbar-core/index.d.ts +2 -1
- package/lib/scrollbar/scrollbar.css +130 -0
- package/lib/scrollbar/scrollbar.variable.css +262 -1
- package/lib/search-select/search-select.css +163 -33
- package/lib/search-select/search-select.variable.css +425 -34
- package/lib/select/select.css +169 -39
- package/lib/select/select.variable.css +431 -40
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +72 -1
- package/lib/sideslider/sideslider.css +131 -1
- package/lib/sideslider/sideslider.variable.css +262 -1
- package/lib/slider/slider.css +135 -5
- package/lib/slider/slider.variable.css +262 -1
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.css +168 -38
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +262 -1
- package/lib/styles/mixins/animate.css +130 -0
- package/lib/styles/mixins/animate.variable.css +262 -1
- package/lib/styles/mixins/mixins.css +130 -0
- package/lib/styles/mixins/mixins.variable.css +130 -0
- package/lib/styles/mixins/popper.css +130 -0
- package/lib/styles/mixins/popper.variable.css +262 -1
- package/lib/styles/mixins/scroll.css +130 -0
- package/lib/styles/mixins/scroll.variable.css +262 -1
- package/lib/styles/reset.css +130 -0
- package/lib/styles/reset.variable.css +262 -1
- package/lib/styles/themes/themes.css +130 -0
- package/lib/styles/themes/themes.less +299 -129
- package/lib/styles/themes/themes.variable.css +130 -0
- package/lib/swiper/swiper.css +130 -0
- package/lib/swiper/swiper.variable.css +262 -1
- package/lib/switcher/switcher.css +147 -17
- package/lib/switcher/switcher.variable.css +409 -18
- package/lib/tab/tab.css +147 -17
- package/lib/tab/tab.variable.css +262 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-column.d.ts +3 -44
- package/lib/table/const.d.ts +12 -0
- package/lib/table/events.d.ts +2 -98
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +54 -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 +22 -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 +24 -0
- package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +49 -561
- package/lib/table/index.js +3236 -3377
- package/lib/table/plugins/head-filter.css +130 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.variable.css +262 -1
- package/lib/table/plugins/head-sort.css +130 -0
- package/lib/table/plugins/head-sort.variable.css +262 -1
- package/lib/table/plugins/settings.css +131 -0
- package/lib/table/plugins/settings.less +1 -0
- package/lib/table/plugins/settings.variable.css +263 -1
- package/lib/table/props.d.ts +31 -12
- package/lib/table/table.css +361 -243
- package/lib/table/table.d.ts +27 -181
- package/lib/table/table.less +69 -91
- package/lib/table/table.variable.css +623 -244
- package/lib/table/utils.d.ts +26 -3
- package/lib/table-column/index.d.ts +9 -132
- package/lib/table-column/index.js +17314 -25
- package/lib/tag/tag.css +135 -5
- package/lib/tag/tag.variable.css +262 -1
- package/lib/tag-input/tag-input.css +148 -18
- package/lib/tag-input/tag-input.variable.css +262 -1
- package/lib/time-picker/time-picker.css +130 -0
- package/lib/time-picker/time-picker.variable.css +262 -1
- package/lib/timeline/timeline.css +149 -19
- package/lib/timeline/timeline.variable.css +262 -1
- package/lib/transfer/transfer.css +149 -19
- package/lib/transfer/transfer.variable.css +262 -1
- package/lib/tree/index.js +10 -0
- package/lib/tree/tree.css +139 -9
- package/lib/tree/tree.variable.css +401 -10
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.variable.css +419 -28
- package/lib/virtual-render/index.d.ts +4 -15
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -3
- package/lib/virtual-render/virtual-render.css +130 -0
- package/lib/virtual-render/virtual-render.d.ts +2 -7
- package/lib/virtual-render/virtual-render.variable.css +392 -1
- 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-column-template.d.ts +0 -7
- 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/events.d.ts
CHANGED
@@ -1,13 +1,5 @@
|
|
1
1
|
import { SORT_OPTION } from './const';
|
2
2
|
import { Column, IColumnActive } from './props';
|
3
|
-
export declare const enum EVENTS {
|
4
|
-
ON_FILTER_CLICK = "onFilterClick",
|
5
|
-
ON_ROW_CHECK = "onRowCheck",
|
6
|
-
ON_ROW_EXPAND_CLICK = "onRowExpandClick",
|
7
|
-
ON_SETTING_CHANGE = "onSettingChange",
|
8
|
-
/** 点击排序事件 */
|
9
|
-
ON_SORT_BY_CLICK = "onSortByClick"
|
10
|
-
}
|
11
3
|
export declare const enum EMIT_EVENTS {
|
12
4
|
CELL_CLICK = "cellClick",
|
13
5
|
CELL_DBL_CLICK = "cellDblclick",
|
@@ -72,12 +64,7 @@ export declare const EVENT_ROW_SELECT_CHANGE_FN: (_args: {
|
|
72
64
|
isAll: boolean;
|
73
65
|
}) => boolean;
|
74
66
|
export declare const EVENT_PAGE_FN: (_arg: number) => boolean;
|
75
|
-
export declare const EVENT_SETTING_FN: (_args:
|
76
|
-
checked: string[];
|
77
|
-
size: string;
|
78
|
-
height: number;
|
79
|
-
fields: Array<Record<string, any>>;
|
80
|
-
}) => boolean;
|
67
|
+
export declare const EVENT_SETTING_FN: (_args: any) => boolean;
|
81
68
|
export declare const EVENT_CELL_FN: (_args: {
|
82
69
|
event: MouseEvent;
|
83
70
|
row: any;
|
@@ -99,90 +86,7 @@ export declare const EVENT_DRAGEND_FN: (_args: {
|
|
99
86
|
sourceEvent: DragEvent;
|
100
87
|
data: any[];
|
101
88
|
}) => boolean;
|
102
|
-
export declare const EMIT_EVENT_TYPES:
|
103
|
-
columnPick: (_cols: IColumnActive[]) => boolean;
|
104
|
-
columnFilter: (_args: {
|
105
|
-
checked: string[];
|
106
|
-
column: Column;
|
107
|
-
index: number;
|
108
|
-
}) => boolean;
|
109
|
-
columnSort: (_args: {
|
110
|
-
column: Column;
|
111
|
-
index: number;
|
112
|
-
type: SORT_OPTION;
|
113
|
-
}) => boolean;
|
114
|
-
colFilterSave: (_args: {
|
115
|
-
column: Column;
|
116
|
-
values: any[];
|
117
|
-
}) => boolean;
|
118
|
-
rowClick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
119
|
-
rowDblclick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
120
|
-
rowExpand: (_args: {
|
121
|
-
row: any;
|
122
|
-
column: Column;
|
123
|
-
index: number;
|
124
|
-
rows: any[];
|
125
|
-
e: MouseEvent;
|
126
|
-
}) => boolean;
|
127
|
-
select: (_args: {
|
128
|
-
row: any;
|
129
|
-
index: number;
|
130
|
-
checked: string;
|
131
|
-
data: any[];
|
132
|
-
}) => boolean;
|
133
|
-
selectAll: (_args: {
|
134
|
-
checked: string;
|
135
|
-
data: any[];
|
136
|
-
}) => boolean;
|
137
|
-
selectionChange: (_args: {
|
138
|
-
row: any;
|
139
|
-
index: number;
|
140
|
-
checked: string;
|
141
|
-
data: any[];
|
142
|
-
isAll: boolean;
|
143
|
-
}) => boolean;
|
144
|
-
pageLimitChange: (_arg: number) => boolean;
|
145
|
-
pageValueChange: (_arg: number) => boolean;
|
146
|
-
settingChange: (_args: {
|
147
|
-
checked: string[];
|
148
|
-
size: string;
|
149
|
-
height: number;
|
150
|
-
fields: Array<Record<string, any>>;
|
151
|
-
}) => boolean;
|
152
|
-
scrollBottom: (_args: {
|
153
|
-
translateX: number;
|
154
|
-
translateY: number;
|
155
|
-
scrollTop: number;
|
156
|
-
scrollLeft: number;
|
157
|
-
bottom: number;
|
158
|
-
}) => boolean;
|
159
|
-
cellClick: (_args: {
|
160
|
-
event: MouseEvent;
|
161
|
-
row: any;
|
162
|
-
column: Column;
|
163
|
-
cell: {
|
164
|
-
getValue: () => string;
|
165
|
-
};
|
166
|
-
rowIndex: number;
|
167
|
-
columnIndex: number;
|
168
|
-
}) => boolean;
|
169
|
-
cellDblclick: (_args: {
|
170
|
-
event: MouseEvent;
|
171
|
-
row: any;
|
172
|
-
column: Column;
|
173
|
-
cell: {
|
174
|
-
getValue: () => string;
|
175
|
-
};
|
176
|
-
rowIndex: number;
|
177
|
-
columnIndex: number;
|
178
|
-
}) => boolean;
|
179
|
-
rowMouseEnter: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
180
|
-
rowMouseLeave: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
181
|
-
dragend: (_args: {
|
182
|
-
sourceEvent: DragEvent;
|
183
|
-
data: any[];
|
184
|
-
}) => boolean;
|
185
|
-
};
|
89
|
+
export declare const EMIT_EVENT_TYPES: Record<string, (...args: any[]) => boolean>;
|
186
90
|
export declare const CELL_EVENT_TYPES: {
|
187
91
|
click: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
188
92
|
dblclick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { SetupContext } from 'vue';
|
2
|
+
import { Column, TablePropTypes } from '../props';
|
3
|
+
import { UseColumns } from './use-columns';
|
4
|
+
import { UseRows } from './use-rows';
|
5
|
+
import { UseMultiShiftKey } from './use-shift-key';
|
6
|
+
type CellRenderArgsType = {
|
7
|
+
props: TablePropTypes;
|
8
|
+
rows: UseRows;
|
9
|
+
ctx: SetupContext;
|
10
|
+
columns: UseColumns;
|
11
|
+
row: Record<string, object>;
|
12
|
+
index: number;
|
13
|
+
column: Column;
|
14
|
+
isChild: boolean;
|
15
|
+
multiShiftKey: UseMultiShiftKey;
|
16
|
+
};
|
17
|
+
declare const _default: ({ props, rows, ctx, columns, row, index, column, isChild, multiShiftKey, }: CellRenderArgsType) => {
|
18
|
+
renderCell: () => any;
|
19
|
+
};
|
20
|
+
export default _default;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { IEmptyObject } from '../const';
|
2
|
+
import { Column, TablePropTypes } from '../props';
|
3
|
+
declare const useColumns: (props: TablePropTypes) => {
|
4
|
+
needColSpan: import("vue").ComputedRef<boolean>;
|
5
|
+
needRowSpan: import("vue").ComputedRef<boolean>;
|
6
|
+
tableColumnSchema: WeakMap<object, any> & Omit<WeakMap<object, any>, keyof WeakMap<any, any>>;
|
7
|
+
tableColumnList: any[];
|
8
|
+
visibleColumns: Column[];
|
9
|
+
debounceUpdateColumns: import("lodash").DebouncedFunc<(columns: any) => void>;
|
10
|
+
sortColumns: any[];
|
11
|
+
filterColumns: any[];
|
12
|
+
clearColumnSort: () => void;
|
13
|
+
formatColumns: () => void;
|
14
|
+
isHiddenColumn: (col: Column) => any;
|
15
|
+
getColumnId: (col: Column) => any;
|
16
|
+
getColumnOrderWidth: (col: Column, orders?: string[]) => number;
|
17
|
+
getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
18
|
+
getHeadColumnClass: (column: Column, colIndex: number) => {
|
19
|
+
[x: string]: boolean;
|
20
|
+
column_fixed: boolean;
|
21
|
+
column_fixed_left: boolean;
|
22
|
+
column_fixed_right: boolean;
|
23
|
+
};
|
24
|
+
getColumnClass: (column: Column, colIndex: number) => {
|
25
|
+
[x: string]: boolean;
|
26
|
+
column_fixed: boolean;
|
27
|
+
column_fixed_left: boolean;
|
28
|
+
column_fixed_right: boolean;
|
29
|
+
};
|
30
|
+
getFixedStlye: (column: Column) => any;
|
31
|
+
getColumnRect: (column: Column) => any;
|
32
|
+
getColumnCustomClass: (column: any, row?: any) => any;
|
33
|
+
getColumnRefAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
34
|
+
getColumnCalcWidth: (column: Column) => any;
|
35
|
+
resolveEventListener: (col: Column) => any;
|
36
|
+
setColumnIsHidden: (column: Column, value?: boolean) => void;
|
37
|
+
setColumnResizeWidth: (column: Column, value: number) => void;
|
38
|
+
setColumnSortOption: (column: Column, option: Record<string, any>) => void;
|
39
|
+
setColumnFilterOption: (column: Column, option: Record<string, any>) => void;
|
40
|
+
setColumnAttributeBySettings: (settings: any, checkedVal?: string[]) => void;
|
41
|
+
setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | any[] | Record<string, any> | ((...args: any[]) => boolean | number | string | void)) => void;
|
42
|
+
setColumnSortActive: (column: Column, active: boolean) => void;
|
43
|
+
setFixedStyle: (column: Column, style: any) => void;
|
44
|
+
setColumnRect: (col: any, { left, right, width, height }: {
|
45
|
+
left?: number;
|
46
|
+
right?: number;
|
47
|
+
width?: number;
|
48
|
+
height?: number;
|
49
|
+
}) => void;
|
50
|
+
setVisibleColumns: () => void;
|
51
|
+
resolveColsCalcWidth: (width: number) => void;
|
52
|
+
};
|
53
|
+
export type UseColumns = ReturnType<typeof useColumns>;
|
54
|
+
export default useColumns;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SetupContext } from 'vue';
|
2
2
|
import { TablePropTypes } from '../props';
|
3
|
-
import {
|
4
|
-
declare const _default: (props: TablePropTypes,
|
3
|
+
import { UseRows } from './use-rows';
|
4
|
+
declare const _default: (props: TablePropTypes, rows: UseRows, ctx: SetupContext<any>) => {
|
5
5
|
onDragenter?: undefined;
|
6
6
|
onDragleave?: undefined;
|
7
7
|
onDragstart?: undefined;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { TablePropTypes } from '../props';
|
2
|
+
import { UseColumns } from './use-columns';
|
3
|
+
/**
|
4
|
+
* 固定列Hooks
|
5
|
+
*/
|
6
|
+
declare const _default: (_props: TablePropTypes, columns: UseColumns) => {
|
7
|
+
renderFixedRows: () => JSX.Element[];
|
8
|
+
resolveFixedColumnStyle: () => void;
|
9
|
+
};
|
10
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { SetupContext } from 'vue';
|
2
|
+
import { Column, TablePropTypes } from '../props';
|
3
|
+
import { UseColumns } from './use-columns';
|
4
|
+
import { UseRows } from './use-rows';
|
5
|
+
declare const _default: ({ props, columns, rows, ctx, column, index, }: {
|
6
|
+
props: TablePropTypes;
|
7
|
+
columns: UseColumns;
|
8
|
+
ctx: SetupContext;
|
9
|
+
column: Column;
|
10
|
+
index: number;
|
11
|
+
rows: UseRows;
|
12
|
+
}) => {
|
13
|
+
getTH: () => JSX.Element;
|
14
|
+
};
|
15
|
+
export default _default;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { TablePropTypes } from '../props';
|
3
|
+
declare const _default: (props: TablePropTypes, ctx: any) => {
|
4
|
+
renderContainer: (childrend: any) => JSX.Element;
|
5
|
+
renderHeader: (childrend?: any, settings?: any, fixedRows?: any) => JSX.Element;
|
6
|
+
renderBody: (list: any, childrend?: any, fixedRows?: any) => JSX.Element;
|
7
|
+
renderFooter: (childrend?: any) => JSX.Element;
|
8
|
+
renderFixedBottom: () => JSX.Element;
|
9
|
+
setBodyHeight: (height: number) => void;
|
10
|
+
setFootHeight: (height: number) => void;
|
11
|
+
setTranslateX: (val: number) => void;
|
12
|
+
setDragOffsetX: (val: number) => void;
|
13
|
+
setFixedColumns: (values: any[]) => void;
|
14
|
+
setOffsetRight: () => void;
|
15
|
+
setLineHeight: (val: number) => void;
|
16
|
+
initRootStyleVars: () => void;
|
17
|
+
refRoot: Ref<HTMLElement>;
|
18
|
+
refHead: Ref<HTMLElement>;
|
19
|
+
refBody: Ref<any>;
|
20
|
+
refFooter: Ref<any>;
|
21
|
+
};
|
22
|
+
export default _default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { TablePropTypes } from '../props';
|
2
|
+
declare const usePagination: (props: TablePropTypes) => {
|
3
|
+
options: {
|
4
|
+
enabled: boolean;
|
5
|
+
count: number;
|
6
|
+
limit: number;
|
7
|
+
current: number;
|
8
|
+
align: string;
|
9
|
+
layout: string[];
|
10
|
+
};
|
11
|
+
isShowPagination: import("vue").ComputedRef<boolean>;
|
12
|
+
setPagination: (option: Record<string, any>) => void;
|
13
|
+
disabledPagination: (disable?: boolean) => void;
|
14
|
+
};
|
15
|
+
export type UsePagination = ReturnType<typeof usePagination>;
|
16
|
+
export default usePagination;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { SetupContext } from 'vue';
|
2
|
+
import { TablePropTypes } from '../props';
|
3
|
+
import { UseColumns } from './use-columns';
|
4
|
+
import { UsePagination } from './use-pagination';
|
5
|
+
import { UseRows } from './use-rows';
|
6
|
+
import { UseSettings } from './use-settings';
|
7
|
+
type RenderType = {
|
8
|
+
props: TablePropTypes;
|
9
|
+
ctx: SetupContext;
|
10
|
+
columns: UseColumns;
|
11
|
+
rows: UseRows;
|
12
|
+
pagination: UsePagination;
|
13
|
+
settings: UseSettings;
|
14
|
+
};
|
15
|
+
declare const _default: ({ props, ctx, columns, rows, pagination, settings }: RenderType) => {
|
16
|
+
renderColumns: () => JSX.Element;
|
17
|
+
renderTBody: (list?: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
18
|
+
[key: string]: any;
|
19
|
+
}>[] | JSX.Element;
|
20
|
+
renderTFoot: () => JSX.Element;
|
21
|
+
setDragEvents: (events: Record<string, () => void>) => void;
|
22
|
+
};
|
23
|
+
export default _default;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { IEmptyObject } from '../const';
|
2
|
+
import { TablePropTypes } from '../props';
|
3
|
+
declare const useRows: (props: TablePropTypes) => {
|
4
|
+
setRowIndex: (row: any, index: number) => void;
|
5
|
+
setRowExpand: (row: any, isExpand: boolean) => void;
|
6
|
+
isRowChecked: (row: any, index: number) => any;
|
7
|
+
setPageRowList: (rowList: any[]) => void;
|
8
|
+
clearSelection: () => void;
|
9
|
+
formatDataSchema: () => void;
|
10
|
+
toggleRowSelection: (row: any) => void;
|
11
|
+
setRowSelectionAll: (val: boolean) => void;
|
12
|
+
setRowSelection: (row: any, isSelected: boolean, index?: number) => void;
|
13
|
+
setAllRowExpand: (value?: boolean) => void;
|
14
|
+
setTableIsNeedRowSpan: (val: boolean) => void;
|
15
|
+
getRowAttribute: (item: IEmptyObject | any, attrName: string) => any;
|
16
|
+
getRowSelection: () => any[];
|
17
|
+
getRowIndeterminate: () => any;
|
18
|
+
getRowCheckedAllValue: () => any;
|
19
|
+
changePageRowIndex: (sourceIndex: any, targetIndex: any) => void;
|
20
|
+
toggleAllSelection: (value?: boolean) => void;
|
21
|
+
tableRowList: import("vue").ComputedRef<any[]>;
|
22
|
+
pageRowList: any[];
|
23
|
+
};
|
24
|
+
export type UseRows = ReturnType<typeof useRows>;
|
25
|
+
export default useRows;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { SetupContext } from 'vue';
|
2
|
+
import { TablePropTypes } from '../props';
|
3
|
+
import { UseColumns } from './use-columns';
|
4
|
+
declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: UseColumns, afterSetting: any) => {
|
5
|
+
options: {
|
6
|
+
enabled: boolean;
|
7
|
+
fields: any[];
|
8
|
+
checked: any[];
|
9
|
+
limit: number;
|
10
|
+
size: string;
|
11
|
+
sizeList: {
|
12
|
+
value?: string;
|
13
|
+
label?: string;
|
14
|
+
height?: number;
|
15
|
+
}[];
|
16
|
+
showLineHeight: boolean;
|
17
|
+
extCls: string;
|
18
|
+
trigger: string;
|
19
|
+
height: number;
|
20
|
+
};
|
21
|
+
renderSettings: () => JSX.Element;
|
22
|
+
};
|
23
|
+
export type UseSettings = ReturnType<typeof useSettings>;
|
24
|
+
export default useSettings;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TablePropTypes } from '../props';
|
2
|
-
declare const
|
2
|
+
declare const multiShiftKey: (props: TablePropTypes) => {
|
3
3
|
isShiftKeyDown: import("vue").Ref<boolean>;
|
4
4
|
setStore: (row: any, index: number) => boolean;
|
5
5
|
getStore: () => {
|
@@ -9,5 +9,7 @@ declare const _default: (props: TablePropTypes) => {
|
|
9
9
|
clearStore: () => void;
|
10
10
|
setStoreStart: (row?: any, index?: any) => void;
|
11
11
|
clearStoreStart: () => void;
|
12
|
+
removeMultiCheckedEvents: () => void;
|
12
13
|
};
|
13
|
-
export
|
14
|
+
export type UseMultiShiftKey = ReturnType<typeof multiShiftKey>;
|
15
|
+
export default multiShiftKey;
|