bkui-vue 2.0.1-beta.15.table.6 → 2.0.1-beta.17
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 +64 -64
- package/dist/index.esm.js +20429 -20328
- package/dist/index.umd.js +64 -64
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -129
- package/lib/affix/affix.variable.css +0 -258
- package/lib/alert/alert.css +3 -132
- package/lib/alert/alert.variable.css +0 -258
- package/lib/backtop/backtop.css +3 -132
- package/lib/backtop/backtop.variable.css +3 -390
- package/lib/badge/badge.css +26 -155
- package/lib/badge/badge.variable.css +0 -258
- package/lib/breadcrumb/breadcrumb.css +5 -134
- package/lib/breadcrumb/breadcrumb.variable.css +5 -392
- package/lib/button/button.css +143 -272
- package/lib/button/button.variable.css +0 -258
- package/lib/card/card.css +4 -133
- package/lib/card/card.variable.css +4 -391
- package/lib/cascader/cascader.css +23 -152
- package/lib/cascader/cascader.variable.css +23 -410
- package/lib/checkbox/checkbox.css +9 -138
- package/lib/checkbox/checkbox.variable.css +0 -258
- package/lib/code-diff/code-diff.css +0 -129
- package/lib/code-diff/code-diff.variable.css +0 -258
- package/lib/collapse/collapse.css +1 -130
- package/lib/collapse/collapse.variable.css +0 -258
- package/lib/collapse-transition/collapse-transition.css +0 -129
- package/lib/collapse-transition/collapse-transition.variable.css +0 -258
- package/lib/color-picker/color-picker.css +0 -129
- package/lib/color-picker/color-picker.variable.css +0 -258
- package/lib/config-provider/config-provider.css +0 -129
- package/lib/config-provider/config-provider.variable.css +0 -258
- package/lib/container/container.css +0 -129
- package/lib/container/container.variable.css +0 -387
- package/lib/date-picker/date-picker.css +17 -146
- package/lib/date-picker/date-picker.variable.css +0 -258
- package/lib/date-picker/index.js +16 -6
- package/lib/dialog/dialog.css +8 -137
- package/lib/dialog/dialog.variable.css +8 -395
- package/lib/divider/divider.css +3 -132
- package/lib/divider/divider.variable.css +0 -258
- package/lib/dropdown/dropdown.css +0 -129
- package/lib/dropdown/dropdown.variable.css +0 -387
- package/lib/exception/exception.css +0 -129
- package/lib/exception/exception.variable.css +0 -258
- package/lib/fixed-navbar/fixed-navbar.css +4 -133
- package/lib/fixed-navbar/fixed-navbar.variable.css +0 -258
- package/lib/form/form.css +0 -129
- package/lib/form/form.variable.css +0 -258
- package/lib/image/image-viewer.css +0 -129
- package/lib/image/image-viewer.variable.css +0 -258
- package/lib/image/image.css +0 -129
- package/lib/image/image.variable.css +0 -387
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +4 -133
- package/lib/info-box/info-box.variable.css +0 -258
- package/lib/input/input.css +72 -201
- package/lib/input/input.variable.css +72 -459
- package/lib/link/link.css +16 -145
- package/lib/link/link.variable.css +0 -258
- package/lib/loading/loading.css +16 -145
- package/lib/loading/loading.variable.css +16 -403
- package/lib/menu/menu.css +18 -147
- package/lib/menu/menu.variable.css +18 -405
- package/lib/menu/submenu.css +0 -129
- package/lib/menu/submenu.variable.css +0 -258
- package/lib/message/message.css +21 -150
- package/lib/message/message.variable.css +0 -258
- package/lib/modal/modal.css +4 -133
- package/lib/modal/modal.variable.css +4 -391
- package/lib/navigation/navigation.css +2 -131
- package/lib/navigation/navigation.variable.css +0 -258
- package/lib/notify/notify.css +7 -136
- package/lib/notify/notify.variable.css +0 -258
- package/lib/pagination/pagination.css +1 -130
- package/lib/pagination/pagination.variable.css +0 -258
- package/lib/pop-confirm/pop-confirm.css +0 -129
- package/lib/pop-confirm/pop-confirm.variable.css +0 -258
- package/lib/popover/popover.css +0 -129
- package/lib/popover/popover.variable.css +0 -258
- package/lib/process/process.css +13 -142
- package/lib/process/process.variable.css +0 -258
- package/lib/progress/progress.css +4 -133
- package/lib/progress/progress.variable.css +4 -391
- package/lib/radio/radio.css +42 -171
- package/lib/radio/radio.variable.css +0 -258
- package/lib/rate/rate.css +0 -129
- package/lib/rate/rate.variable.css +0 -258
- package/lib/resize-layout/resize-layout.css +0 -129
- package/lib/resize-layout/resize-layout.variable.css +0 -258
- package/lib/scrollbar/index.js +17275 -14
- package/lib/scrollbar/scrollbar-core/index.d.ts +1 -2
- package/lib/scrollbar/scrollbar.css +0 -129
- package/lib/scrollbar/scrollbar.variable.css +0 -258
- package/lib/search-select/search-select.css +33 -162
- package/lib/search-select/search-select.variable.css +33 -420
- package/lib/select/select.css +39 -168
- package/lib/select/select.variable.css +39 -426
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +1 -72
- package/lib/sideslider/sideslider.css +1 -130
- package/lib/sideslider/sideslider.variable.css +0 -258
- package/lib/slider/slider.css +5 -134
- package/lib/slider/slider.variable.css +0 -258
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.css +38 -167
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +0 -258
- package/lib/styles/mixins/animate.css +0 -129
- package/lib/styles/mixins/animate.variable.css +0 -258
- package/lib/styles/mixins/mixins.css +0 -129
- package/lib/styles/mixins/mixins.variable.css +0 -129
- package/lib/styles/mixins/popper.css +0 -129
- package/lib/styles/mixins/popper.variable.css +0 -258
- package/lib/styles/mixins/scroll.css +0 -129
- package/lib/styles/mixins/scroll.variable.css +0 -258
- package/lib/styles/reset.css +0 -129
- package/lib/styles/reset.variable.css +0 -258
- package/lib/styles/themes/themes.less +127 -306
- package/lib/swiper/swiper.css +0 -129
- package/lib/swiper/swiper.variable.css +0 -258
- package/lib/switcher/switcher.css +17 -146
- package/lib/switcher/switcher.variable.css +17 -404
- package/lib/tab/tab.css +17 -146
- package/lib/tab/tab.variable.css +0 -258
- package/lib/table/components/table-column.d.ts +0 -1
- package/lib/table/const.d.ts +0 -12
- package/lib/table/events.d.ts +98 -2
- package/lib/table/index.d.ts +502 -28
- package/lib/table/index.js +3519 -3225
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +0 -129
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.variable.css +0 -258
- package/lib/table/plugins/head-sort.css +0 -129
- package/lib/table/plugins/head-sort.variable.css +0 -258
- package/lib/table/plugins/settings.css +0 -130
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +0 -259
- 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/{hooks → plugins}/use-column-template.d.ts +2 -1
- 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/props.d.ts +9 -19
- package/lib/table/table.css +212 -329
- package/lib/table/table.d.ts +174 -18
- package/lib/table/table.less +47 -35
- package/lib/table/table.variable.css +212 -587
- 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 +3 -26
- package/lib/table-column/index.d.ts +0 -3
- package/lib/table-column/index.js +8 -26
- package/lib/tag/tag.css +5 -134
- package/lib/tag/tag.variable.css +0 -258
- package/lib/tag-input/tag-input.css +18 -147
- package/lib/tag-input/tag-input.variable.css +0 -258
- package/lib/time-picker/time-picker.css +0 -129
- package/lib/time-picker/time-picker.variable.css +0 -258
- package/lib/timeline/timeline.css +19 -148
- package/lib/timeline/timeline.variable.css +0 -258
- package/lib/transfer/transfer.css +19 -148
- package/lib/transfer/transfer.variable.css +0 -258
- package/lib/tree/tree.css +9 -138
- package/lib/tree/tree.variable.css +9 -396
- package/lib/upload/upload.css +27 -156
- package/lib/upload/upload.variable.css +27 -414
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/virtual-render.css +0 -129
- package/lib/virtual-render/virtual-render.variable.css +0 -387
- package/package.json +2 -1
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.css +0 -129
- package/lib/styles/themes/themes.variable.css +0 -129
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-columns.d.ts +0 -55
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -15
- package/lib/table/hooks/use-layout.d.ts +0 -20
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -23
- package/lib/table/hooks/use-rows.d.ts +0 -25
- package/lib/table/hooks/use-settings.d.ts +0 -23
- /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
- /package/lib/table/{hooks → plugins}/use-shift-key.d.ts +0 -0
@@ -1,129 +0,0 @@
|
|
1
|
-
:root {
|
2
|
-
--bk-prefix: bk;
|
3
|
-
--popover-max-height: 216px;
|
4
|
-
--primary-color: #3a84ff;
|
5
|
-
--success-color: #2dcb56;
|
6
|
-
--warning-color: #ff9c01;
|
7
|
-
--danger-color: #ea3636;
|
8
|
-
--default-color: #63656e;
|
9
|
-
--gray-color: #979ba5;
|
10
|
-
--light-gray: #c4c6cc;
|
11
|
-
--white-color: white;
|
12
|
-
--whitesmoke-color: #fafbfd;
|
13
|
-
--disable-color: #dcdee5;
|
14
|
-
--disable-bg-color: #f9fafd;
|
15
|
-
--border-color: #dcdee5;
|
16
|
-
--font-size-base: 12px;
|
17
|
-
--font-size-medium: 14px;
|
18
|
-
--font-size-large: 16px;
|
19
|
-
--line-height-base: 16px;
|
20
|
-
--line-height-medium: 16px;
|
21
|
-
--line-height-large: 18px;
|
22
|
-
--component-size-small: 26px;
|
23
|
-
--component-size-base: 32px;
|
24
|
-
--component-size-large: 40px;
|
25
|
-
--component-size-small-padding: 0 12px;
|
26
|
-
--component-size-base-padding: 0 14px;
|
27
|
-
--component-size-large-padding: 0 16px;
|
28
|
-
--border-width-base: 1px;
|
29
|
-
--border-style-base: solid;
|
30
|
-
--border-radius-base: 2px;
|
31
|
-
--border-style-color: var(--light-gray);
|
32
|
-
--input-disabled-bg: #fafbfd;
|
33
|
-
--input-disabled-border: var(--disable-color);
|
34
|
-
--input-height-base: var(--component-size-base);
|
35
|
-
--input-color: var(--default-color);
|
36
|
-
--input-bg: white;
|
37
|
-
--input-border-color: var(--light-gray);
|
38
|
-
--input-broder-radius: 3px;
|
39
|
-
--input-shadow-color: #a3c5fd;
|
40
|
-
--input-horizontal-padding: 8px;
|
41
|
-
--input-block-color: #f5f7fa;
|
42
|
-
--input-block-hover-color: #eaebf0;
|
43
|
-
--input-icon-size: var(--font-size-medium);
|
44
|
-
--input-maxlength-color: #979ba5;
|
45
|
-
--button-primary-hover-color: #5594fa;
|
46
|
-
--button-danger-hover-color: #ff5656;
|
47
|
-
--button-success-hover-color: #45e35f;
|
48
|
-
--button-warning-hover-color: #ffb848;
|
49
|
-
--button-default-hover-border-color: #979ba5;
|
50
|
-
--button-primary-active-color: #2c77f4;
|
51
|
-
--button-danger-active-color: #db2626;
|
52
|
-
--button-success-active-color: #1ab943;
|
53
|
-
--button-warning-active-color: #eb9000;
|
54
|
-
--button-selected-bg-color: #e1ecff;
|
55
|
-
--button-disabled-selected-bg-color: #f0f1f5;
|
56
|
-
--radio-font-color: #63656e;
|
57
|
-
--radio-active-color: #3a84ff;
|
58
|
-
--radio-hover-border-color: #979ba5;
|
59
|
-
--radio-disabled-border: #dcdee5;
|
60
|
-
--radio-disabled-font-color: #c4c6cc;
|
61
|
-
--radio-disabled-checked-bg: #a3c5fd;
|
62
|
-
--radio-button-checked-bg: #e1ecff;
|
63
|
-
--radio-button-disabled-checked-bg: #fafbfd;
|
64
|
-
--checkbox-disabled-checked-bg: #a3c5fd;
|
65
|
-
--fixed-navbar-background: #fff;
|
66
|
-
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
67
|
-
--switch-default-color: #fff;
|
68
|
-
--switch-grey-color: #c4c6cc;
|
69
|
-
--breadcrumb-black-color: #979ba5;
|
70
|
-
--breadcrumb-primary-hover-color: #0082ff;
|
71
|
-
--breadcrumb-fn-main-color: #63656e;
|
72
|
-
--link-default-hover-color: #979ba5;
|
73
|
-
--link-primary-hover-color: #699df4;
|
74
|
-
--link-success-hover-color: #45e35f;
|
75
|
-
--link-warning-hover-color: #ffb848;
|
76
|
-
--link-danger-hover-color: #ff5656;
|
77
|
-
--link-default-disabled-color: #dcdee5;
|
78
|
-
--link-primary-disabled-color: #a3c5fd;
|
79
|
-
--link-success-disabled-color: #94f5a4;
|
80
|
-
--link-warning-disabled-color: #ffd695;
|
81
|
-
--link-danger-disabled-color: #fd9c9c;
|
82
|
-
--message-color: var(--default-color);
|
83
|
-
--message-primary-bg-color: #f0f8ff;
|
84
|
-
--message-primary-border-color: #e1ecff;
|
85
|
-
--message-primary-shadow-color: #e1e8f4;
|
86
|
-
--message-warning-bg-color: #fff4e2;
|
87
|
-
--message-warning-border-color: #ffe8c3;
|
88
|
-
--message-warning-shadow-color: #ede6db;
|
89
|
-
--message-success-bg-color: #f2fff4;
|
90
|
-
--message-success-border-color: #dcffe2;
|
91
|
-
--message-success-shadow-color: #cef0d7;
|
92
|
-
--message-danger-bg-color: #ffeded;
|
93
|
-
--message-danger-border-color: #ffdddd;
|
94
|
-
--message-danger-shadow-color: #f6dada;
|
95
|
-
--slider-default-bg: #dcdee5;
|
96
|
-
--slider-disable-bar-bg: #979ba5;
|
97
|
-
--menu-bg-color: #182132;
|
98
|
-
--submenu-bg-color: #151d2c;
|
99
|
-
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
100
|
-
--menu-color: #96a2b9;
|
101
|
-
--menu-group-color: var(--default-color);
|
102
|
-
--menu-width: 260px;
|
103
|
-
--menu-collapse-width: 60px;
|
104
|
-
--menu-active-color: white;
|
105
|
-
--nav-header-bg-color: #182132;
|
106
|
-
--nav-bg-color: #182132;
|
107
|
-
--date-picker-disabled-bg: #fafbfd;
|
108
|
-
--date-picker-dropdown-mb: 4px;
|
109
|
-
--date-picker-dropdown-bg: #fff;
|
110
|
-
--table-bg-color: var(--white-color);
|
111
|
-
--table-border-color: #dcdee5;
|
112
|
-
--table-head-bg-color: #fafbfd;
|
113
|
-
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #63656E;
|
115
|
-
--table-row-hover-bg-color: #f5f7fa;
|
116
|
-
--table-row-active-bg-color: #f0f1f5;
|
117
|
-
--cascader-panel-border-color: #dcdee5;
|
118
|
-
--cascader-panel-hover: #f5f7fa;
|
119
|
-
--cascader-panel-active: #e1ecff;
|
120
|
-
--cascader-panel-disabled-bg: #fff;
|
121
|
-
--search-select-focus-border-color: var(--primary-color);
|
122
|
-
--search-select-focus-color: #3c96ff;
|
123
|
-
--search-select-font-color: var(--default-color);
|
124
|
-
--search-select-placeholder-color: var(--light-gray);
|
125
|
-
--search-select-message-color: var(--danger-color);
|
126
|
-
--search-select-menu-border-color: var(--disable-color);
|
127
|
-
--select-active-color: #e1ecff;
|
128
|
-
--select-hover-color: #f5f7fa;
|
129
|
-
}
|
@@ -1,55 +0,0 @@
|
|
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
|
-
headHeight: import("vue").ComputedRef<number>;
|
7
|
-
tableColumnSchema: WeakMap<object, any> & Omit<WeakMap<object, any>, keyof WeakMap<any, any>>;
|
8
|
-
tableColumnList: any[];
|
9
|
-
visibleColumns: Column[];
|
10
|
-
debounceUpdateColumns: import("lodash").DebouncedFunc<(columns: any) => void>;
|
11
|
-
sortColumns: any[];
|
12
|
-
filterColumns: any[];
|
13
|
-
clearColumnSort: () => void;
|
14
|
-
formatColumns: () => void;
|
15
|
-
isHiddenColumn: (col: Column) => any;
|
16
|
-
getColumnId: (col: Column) => any;
|
17
|
-
getColumnOrderWidth: (col: Column, orders?: string[]) => number;
|
18
|
-
getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
19
|
-
getHeadColumnClass: (column: Column, colIndex: number) => {
|
20
|
-
[x: string]: boolean;
|
21
|
-
column_fixed: boolean;
|
22
|
-
column_fixed_left: boolean;
|
23
|
-
column_fixed_right: boolean;
|
24
|
-
};
|
25
|
-
getColumnClass: (column: Column, colIndex: number) => {
|
26
|
-
[x: string]: boolean;
|
27
|
-
column_fixed: boolean;
|
28
|
-
column_fixed_left: boolean;
|
29
|
-
column_fixed_right: boolean;
|
30
|
-
};
|
31
|
-
getFixedStlye: (column: Column) => any;
|
32
|
-
getColumnRect: (column: Column) => any;
|
33
|
-
getColumnCustomClass: (column: any, row?: any) => any;
|
34
|
-
getColumnRefAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
35
|
-
getColumnCalcWidth: (column: Column) => any;
|
36
|
-
resolveEventListener: (col: Column) => any;
|
37
|
-
setColumnIsHidden: (column: Column, value?: boolean) => void;
|
38
|
-
setColumnResizeWidth: (column: Column, value: number) => void;
|
39
|
-
setColumnSortOption: (column: Column, option: Record<string, any>) => void;
|
40
|
-
setColumnFilterOption: (column: Column, option: Record<string, any>) => void;
|
41
|
-
setColumnAttributeBySettings: (settings: any, checkedVal?: string[]) => void;
|
42
|
-
setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | any[] | Record<string, any> | ((...args: any[]) => boolean | number | string | void)) => void;
|
43
|
-
setColumnSortActive: (column: Column, active: boolean) => void;
|
44
|
-
setFixedStyle: (column: Column, style: any) => void;
|
45
|
-
setColumnRect: (col: any, { left, right, width, height }: {
|
46
|
-
left?: number;
|
47
|
-
right?: number;
|
48
|
-
width?: number;
|
49
|
-
height?: number;
|
50
|
-
}) => void;
|
51
|
-
setVisibleColumns: () => void;
|
52
|
-
resolveColsCalcWidth: (width: number) => void;
|
53
|
-
};
|
54
|
-
export type UseColumns = ReturnType<typeof useColumns>;
|
55
|
-
export default useColumns;
|
@@ -1,10 +0,0 @@
|
|
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;
|
@@ -1,15 +0,0 @@
|
|
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;
|
@@ -1,20 +0,0 @@
|
|
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) => JSX.Element;
|
6
|
-
renderBody: (list: any, childrend?: any, fixedRows?: any, loadingRow?: any) => JSX.Element;
|
7
|
-
renderFooter: (childrend?: any) => JSX.Element;
|
8
|
-
setBodyHeight: (height: number | string) => void;
|
9
|
-
setFootHeight: (height: number) => void;
|
10
|
-
setTranslateX: (val: number) => void;
|
11
|
-
setDragOffsetX: (val: number) => void;
|
12
|
-
setFixedColumns: (values: any[]) => void;
|
13
|
-
setOffsetRight: () => void;
|
14
|
-
setLineHeight: (val: number) => void;
|
15
|
-
refRoot: Ref<any>;
|
16
|
-
refHead: Ref<any>;
|
17
|
-
refBody: Ref<any>;
|
18
|
-
refFooter: Ref<any>;
|
19
|
-
};
|
20
|
-
export default _default;
|
@@ -1,16 +0,0 @@
|
|
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;
|
@@ -1,23 +0,0 @@
|
|
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, Function>) => void;
|
22
|
-
};
|
23
|
-
export default _default;
|
@@ -1,25 +0,0 @@
|
|
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;
|
@@ -1,23 +0,0 @@
|
|
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
|
-
fields: any[];
|
7
|
-
checked: any[];
|
8
|
-
limit: number;
|
9
|
-
size: string;
|
10
|
-
sizeList: {
|
11
|
-
value?: string;
|
12
|
-
label?: string;
|
13
|
-
height?: number;
|
14
|
-
}[];
|
15
|
-
showLineHeight: boolean;
|
16
|
-
extCls: string;
|
17
|
-
trigger: string;
|
18
|
-
height: number;
|
19
|
-
};
|
20
|
-
renderSettings: () => JSX.Element;
|
21
|
-
};
|
22
|
-
export type UseSettings = ReturnType<typeof useSettings>;
|
23
|
-
export default useSettings;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|