bkui-vue 2.0.1-beta.23 → 2.0.1-beta.24

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.
Files changed (200) hide show
  1. package/dist/index.cjs.js +63 -63
  2. package/dist/index.esm.js +14201 -14237
  3. package/dist/index.umd.js +63 -63
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +130 -0
  7. package/lib/affix/affix.variable.css +262 -1
  8. package/lib/alert/alert.css +133 -3
  9. package/lib/alert/alert.variable.css +262 -1
  10. package/lib/backtop/backtop.css +133 -3
  11. package/lib/backtop/backtop.variable.css +395 -4
  12. package/lib/badge/badge.css +156 -26
  13. package/lib/badge/badge.variable.css +262 -1
  14. package/lib/breadcrumb/breadcrumb.css +135 -5
  15. package/lib/breadcrumb/breadcrumb.variable.css +397 -6
  16. package/lib/button/button.css +273 -143
  17. package/lib/button/button.variable.css +262 -1
  18. package/lib/card/card.css +134 -4
  19. package/lib/card/card.variable.css +396 -5
  20. package/lib/cascader/cascader.css +153 -23
  21. package/lib/cascader/cascader.variable.css +415 -24
  22. package/lib/checkbox/checkbox.css +139 -9
  23. package/lib/checkbox/checkbox.variable.css +262 -1
  24. package/lib/code-diff/code-diff.css +130 -0
  25. package/lib/code-diff/code-diff.variable.css +262 -1
  26. package/lib/collapse/collapse.css +131 -1
  27. package/lib/collapse/collapse.variable.css +262 -1
  28. package/lib/collapse-transition/collapse-transition.css +130 -0
  29. package/lib/collapse-transition/collapse-transition.variable.css +262 -1
  30. package/lib/color-picker/color-picker.css +130 -0
  31. package/lib/color-picker/color-picker.variable.css +262 -1
  32. package/lib/config-provider/config-provider.css +130 -0
  33. package/lib/config-provider/config-provider.variable.css +262 -1
  34. package/lib/container/container.css +130 -0
  35. package/lib/container/container.variable.css +392 -1
  36. package/lib/date-picker/date-picker.css +147 -17
  37. package/lib/date-picker/date-picker.variable.css +262 -1
  38. package/lib/dialog/dialog.css +138 -8
  39. package/lib/dialog/dialog.variable.css +400 -9
  40. package/lib/divider/divider.css +133 -3
  41. package/lib/divider/divider.variable.css +262 -1
  42. package/lib/dropdown/dropdown.css +130 -0
  43. package/lib/dropdown/dropdown.variable.css +392 -1
  44. package/lib/exception/exception.css +130 -0
  45. package/lib/exception/exception.variable.css +262 -1
  46. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  47. package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
  48. package/lib/form/form.css +130 -0
  49. package/lib/form/form.variable.css +262 -1
  50. package/lib/image/image-viewer.css +130 -0
  51. package/lib/image/image-viewer.variable.css +262 -1
  52. package/lib/image/image.css +130 -0
  53. package/lib/image/image.variable.css +392 -1
  54. package/lib/index.js +1 -1
  55. package/lib/info-box/info-box.css +134 -4
  56. package/lib/info-box/info-box.variable.css +262 -1
  57. package/lib/input/input.css +202 -72
  58. package/lib/input/input.variable.css +464 -73
  59. package/lib/link/link.css +146 -16
  60. package/lib/link/link.variable.css +262 -1
  61. package/lib/loading/loading.css +146 -16
  62. package/lib/loading/loading.variable.css +408 -17
  63. package/lib/menu/menu.css +148 -18
  64. package/lib/menu/menu.variable.css +410 -19
  65. package/lib/menu/submenu.css +130 -0
  66. package/lib/menu/submenu.variable.css +262 -1
  67. package/lib/message/message.css +151 -21
  68. package/lib/message/message.variable.css +262 -1
  69. package/lib/modal/modal.css +134 -4
  70. package/lib/modal/modal.variable.css +396 -5
  71. package/lib/navigation/navigation.css +132 -2
  72. package/lib/navigation/navigation.variable.css +262 -1
  73. package/lib/notify/notify.css +137 -7
  74. package/lib/notify/notify.variable.css +262 -1
  75. package/lib/pagination/pagination.css +131 -1
  76. package/lib/pagination/pagination.variable.css +262 -1
  77. package/lib/pop-confirm/pop-confirm.css +130 -0
  78. package/lib/pop-confirm/pop-confirm.variable.css +262 -1
  79. package/lib/popover/popover.css +130 -0
  80. package/lib/popover/popover.variable.css +262 -1
  81. package/lib/process/process.css +143 -13
  82. package/lib/process/process.variable.css +262 -1
  83. package/lib/progress/progress.css +134 -4
  84. package/lib/progress/progress.variable.css +396 -5
  85. package/lib/radio/radio.css +172 -42
  86. package/lib/radio/radio.variable.css +262 -1
  87. package/lib/rate/rate.css +130 -0
  88. package/lib/rate/rate.variable.css +262 -1
  89. package/lib/resize-layout/resize-layout.css +130 -0
  90. package/lib/resize-layout/resize-layout.variable.css +262 -1
  91. package/lib/scrollbar/index.js +38 -12
  92. package/lib/scrollbar/scrollbar-core/index.d.ts +2 -1
  93. package/lib/scrollbar/scrollbar.css +130 -0
  94. package/lib/scrollbar/scrollbar.variable.css +262 -1
  95. package/lib/search-select/search-select.css +163 -33
  96. package/lib/search-select/search-select.variable.css +425 -34
  97. package/lib/select/select.css +169 -39
  98. package/lib/select/select.variable.css +431 -40
  99. package/lib/shared/frame-throttle.d.ts +15 -0
  100. package/lib/shared/index.d.ts +1 -0
  101. package/lib/shared/index.js +72 -1
  102. package/lib/sideslider/sideslider.css +131 -1
  103. package/lib/sideslider/sideslider.variable.css +262 -1
  104. package/lib/slider/slider.css +135 -5
  105. package/lib/slider/slider.variable.css +262 -1
  106. package/lib/steps/index.d.ts +3 -3
  107. package/lib/steps/steps.css +168 -38
  108. package/lib/steps/steps.d.ts +1 -1
  109. package/lib/steps/steps.variable.css +262 -1
  110. package/lib/styles/mixins/animate.css +130 -0
  111. package/lib/styles/mixins/animate.variable.css +262 -1
  112. package/lib/styles/mixins/mixins.css +130 -0
  113. package/lib/styles/mixins/mixins.variable.css +130 -0
  114. package/lib/styles/mixins/popper.css +130 -0
  115. package/lib/styles/mixins/popper.variable.css +262 -1
  116. package/lib/styles/mixins/scroll.css +130 -0
  117. package/lib/styles/mixins/scroll.variable.css +262 -1
  118. package/lib/styles/reset.css +130 -0
  119. package/lib/styles/reset.variable.css +262 -1
  120. package/lib/styles/themes/themes.css +130 -0
  121. package/lib/styles/themes/themes.less +299 -129
  122. package/lib/styles/themes/themes.variable.css +130 -0
  123. package/lib/swiper/swiper.css +130 -0
  124. package/lib/swiper/swiper.variable.css +262 -1
  125. package/lib/switcher/switcher.css +147 -17
  126. package/lib/switcher/switcher.variable.css +409 -18
  127. package/lib/tab/tab.css +147 -17
  128. package/lib/tab/tab.variable.css +262 -1
  129. package/lib/table/components/ghost-body.d.ts +2 -0
  130. package/lib/table/components/table-column.d.ts +3 -44
  131. package/lib/table/const.d.ts +12 -0
  132. package/lib/table/events.d.ts +2 -98
  133. package/lib/table/hooks/use-cell.d.ts +20 -0
  134. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  135. package/lib/table/hooks/use-column-template.d.ts +5 -0
  136. package/lib/table/hooks/use-columns.d.ts +54 -0
  137. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  138. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  139. package/lib/table/hooks/use-head.d.ts +15 -0
  140. package/lib/table/hooks/use-layout.d.ts +22 -0
  141. package/lib/table/hooks/use-pagination.d.ts +16 -0
  142. package/lib/table/hooks/use-render.d.ts +23 -0
  143. package/lib/table/hooks/use-rows.d.ts +25 -0
  144. package/lib/table/hooks/use-settings.d.ts +24 -0
  145. package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
  146. package/lib/table/index.d.ts +49 -561
  147. package/lib/table/index.js +3410 -3554
  148. package/lib/table/plugins/head-filter.css +130 -0
  149. package/lib/table/plugins/head-filter.d.ts +2 -1
  150. package/lib/table/plugins/head-filter.variable.css +262 -1
  151. package/lib/table/plugins/head-sort.css +130 -0
  152. package/lib/table/plugins/head-sort.variable.css +262 -1
  153. package/lib/table/plugins/settings.css +131 -0
  154. package/lib/table/plugins/settings.less +1 -0
  155. package/lib/table/plugins/settings.variable.css +263 -1
  156. package/lib/table/props.d.ts +31 -12
  157. package/lib/table/table.css +361 -243
  158. package/lib/table/table.d.ts +27 -181
  159. package/lib/table/table.less +69 -91
  160. package/lib/table/table.variable.css +623 -244
  161. package/lib/table/utils.d.ts +26 -3
  162. package/lib/table-column/index.d.ts +9 -132
  163. package/lib/table-column/index.js +17314 -25
  164. package/lib/tag/tag.css +135 -5
  165. package/lib/tag/tag.variable.css +262 -1
  166. package/lib/tag-input/tag-input.css +148 -18
  167. package/lib/tag-input/tag-input.variable.css +262 -1
  168. package/lib/time-picker/time-picker.css +130 -0
  169. package/lib/time-picker/time-picker.variable.css +262 -1
  170. package/lib/timeline/timeline.css +149 -19
  171. package/lib/timeline/timeline.variable.css +262 -1
  172. package/lib/transfer/transfer.css +149 -19
  173. package/lib/transfer/transfer.variable.css +262 -1
  174. package/lib/tree/index.js +10 -0
  175. package/lib/tree/tree.css +139 -9
  176. package/lib/tree/tree.variable.css +401 -10
  177. package/lib/upload/upload.css +157 -27
  178. package/lib/upload/upload.variable.css +419 -28
  179. package/lib/virtual-render/index.d.ts +4 -15
  180. package/lib/virtual-render/index.js +1 -1
  181. package/lib/virtual-render/props.d.ts +1 -3
  182. package/lib/virtual-render/virtual-render.css +130 -0
  183. package/lib/virtual-render/virtual-render.d.ts +2 -7
  184. package/lib/virtual-render/virtual-render.variable.css +392 -1
  185. package/package.json +1 -1
  186. package/lib/table/plugins/col-group.d.ts +0 -38
  187. package/lib/table/plugins/settings.d.ts +0 -16
  188. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  189. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  190. package/lib/table/plugins/use-column-template.d.ts +0 -7
  191. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  192. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  193. package/lib/table/plugins/use-pagination.d.ts +0 -23
  194. package/lib/table/use-attributes.d.ts +0 -62
  195. package/lib/table/use-column.d.ts +0 -155
  196. package/lib/table/use-common.d.ts +0 -1679
  197. package/lib/table/use-render.d.ts +0 -11
  198. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  199. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  200. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -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 { Column, TablePropTypes } from '../props';
2
+ import { SetupContext } from 'vue';
3
+ import { UseMultiShiftKey } from './use-shift-key';
4
+ import { UseRows } from './use-rows';
5
+ import { UseColumns } from './use-columns';
6
+ type CellRenderArgsType = {
7
+ props: TablePropTypes;
8
+ rows: UseRows;
9
+ ctx: SetupContext;
10
+ columns: UseColumns;
11
+ row: any;
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,7 @@
1
+ import { UseColumns } from './use-columns';
2
+ declare const _default: (columns: UseColumns, { afterResize }: {
3
+ afterResize: any;
4
+ }) => {
5
+ dragOffsetX: import("vue").Ref<number>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { VNode } from 'vue';
2
+ declare const _default: () => {
3
+ resolveColumns: (children: VNode[]) => any[];
4
+ };
5
+ 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 { ITableResponse } from '../use-attributes';
4
- declare const _default: (props: TablePropTypes, resp: ITableResponse, ctx: SetupContext<any>) => {
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, Function>) => 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 _default: (props: TablePropTypes) => {
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 default _default;
14
+ export type UseMultiShiftKey = ReturnType<typeof multiShiftKey>;
15
+ export default multiShiftKey;