bkui-vue 0.0.2-beta.4 → 0.0.2-beta.41

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 (186) hide show
  1. package/dist/index.cjs.js +54 -54
  2. package/dist/index.esm.js +15546 -15138
  3. package/dist/index.umd.js +67 -67
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.d.ts +1 -1
  15. package/lib/affix/index.d.ts +4 -4
  16. package/lib/alert/alert.css +1 -0
  17. package/lib/alert/alert.less +119 -119
  18. package/lib/alert/alert.variable.css +1 -0
  19. package/lib/alert/index.d.ts +1 -1
  20. package/lib/animate-number/index.d.ts +1 -1
  21. package/lib/backtop/index.d.ts +1 -1
  22. package/lib/badge/badge.d.ts +2 -2
  23. package/lib/badge/index.d.ts +7 -7
  24. package/lib/breadcrumb/index.d.ts +1 -1
  25. package/lib/button/index.d.ts +1 -1
  26. package/lib/card/card.d.ts +1 -1
  27. package/lib/card/index.d.ts +4 -4
  28. package/lib/cascader/cascader.d.ts +1 -12
  29. package/lib/cascader/index.d.ts +4 -19
  30. package/lib/cascader/index.js +1 -1
  31. package/lib/checkbox/index.d.ts +1 -1
  32. package/lib/code-diff/index.d.ts +1 -1
  33. package/lib/collapse/index.d.ts +1 -1
  34. package/lib/color-picker/index.d.ts +1 -1
  35. package/lib/color-picker/index.js +1 -1
  36. package/lib/components.d.ts +1 -1
  37. package/lib/config-provider/config-provider.d.ts +3 -0
  38. package/lib/config-provider/index.d.ts +5 -1
  39. package/lib/config-provider/token.d.ts +1 -0
  40. package/lib/container/index.d.ts +1 -1
  41. package/lib/container/index.js +1 -1
  42. package/lib/date-picker/date-picker.d.ts +3 -1
  43. package/lib/date-picker/index.d.ts +11 -4
  44. package/lib/date-picker/index.js +1 -1
  45. package/lib/date-picker/panel/date-range.d.ts +2 -1
  46. package/lib/dialog/index.d.ts +1 -1
  47. package/lib/directives/index.js +1 -1
  48. package/lib/directives/tooltips.d.ts +3 -2
  49. package/lib/divider/index.d.ts +1 -1
  50. package/lib/dropdown/dropdown.d.ts +1 -1
  51. package/lib/dropdown/index.d.ts +6 -6
  52. package/lib/exception/index.d.ts +1 -1
  53. package/lib/fixed-navbar/index.d.ts +1 -1
  54. package/lib/form/index.d.ts +1 -1
  55. package/lib/icon/assistant.d.ts +4 -0
  56. package/lib/icon/assistant.js +1 -0
  57. package/lib/icon/index.d.ts +1 -0
  58. package/lib/icon/index.js +1 -1
  59. package/lib/image/index.d.ts +1 -1
  60. package/lib/info-box/index.js +1 -1
  61. package/lib/input/index.d.ts +86 -50
  62. package/lib/input/index.js +1 -1
  63. package/lib/input/input.css +12 -0
  64. package/lib/input/input.d.ts +44 -11
  65. package/lib/input/input.less +26 -5
  66. package/lib/input/input.variable.css +12 -0
  67. package/lib/link/index.d.ts +4 -4
  68. package/lib/link/link.d.ts +1 -1
  69. package/lib/loading/index.d.ts +1 -1
  70. package/lib/locale/index.js +1 -1
  71. package/lib/locale/lang/en.d.ts +1 -0
  72. package/lib/menu/index.d.ts +1 -1
  73. package/lib/message/index.js +1 -1
  74. package/lib/message/message.css +18 -8
  75. package/lib/message/message.less +65 -53
  76. package/lib/message/message.variable.css +18 -8
  77. package/lib/message/messageConstructor.d.ts +30 -8
  78. package/lib/modal/index.d.ts +1 -1
  79. package/lib/modal/index.js +1 -1
  80. package/lib/navigation/index.d.ts +4 -1
  81. package/lib/navigation/index.js +1 -1
  82. package/lib/navigation/navigation.d.ts +1 -0
  83. package/lib/notify/index.js +1 -1
  84. package/lib/notify/notifyConstructor.d.ts +1 -1
  85. package/lib/overflow-title/index.d.ts +1 -1
  86. package/lib/pagination/index.d.ts +1 -1
  87. package/lib/plugin-popover/index.js +1 -1
  88. package/lib/pop-confirm/index.d.ts +1 -1
  89. package/lib/popover/const.d.ts +22 -9
  90. package/lib/popover/content.d.ts +33 -0
  91. package/lib/popover/index.d.ts +158 -73
  92. package/lib/popover/index.js +1 -1
  93. package/lib/popover/popover.d.ts +66 -30
  94. package/lib/popover/props.d.ts +30 -7
  95. package/lib/popover/use-floating.d.ts +2 -2
  96. package/lib/popover/use-popover-init.d.ts +2 -1
  97. package/lib/popover2/index.d.ts +1 -1
  98. package/lib/preset.d.ts +2 -0
  99. package/lib/process/index.d.ts +1 -1
  100. package/lib/progress/index.d.ts +1 -1
  101. package/lib/radio/index.d.ts +1 -1
  102. package/lib/rate/index.d.ts +8 -4
  103. package/lib/rate/index.js +1 -1
  104. package/lib/rate/rate.d.ts +2 -1
  105. package/lib/resize-layout/index.d.ts +1 -1
  106. package/lib/resize-layout/index.js +1 -1
  107. package/lib/resize-layout/resize-layout.css +12 -0
  108. package/lib/resize-layout/resize-layout.less +12 -0
  109. package/lib/resize-layout/resize-layout.variable.css +12 -0
  110. package/lib/search-select/index.d.ts +55 -22
  111. package/lib/search-select/index.js +1 -1
  112. package/lib/search-select/input.d.ts +5 -1
  113. package/lib/search-select/menu.d.ts +33 -2
  114. package/lib/search-select/search-select.css +31 -11
  115. package/lib/search-select/search-select.d.ts +19 -16
  116. package/lib/search-select/search-select.less +29 -10
  117. package/lib/search-select/search-select.variable.css +31 -11
  118. package/lib/search-select/selected.d.ts +5 -1
  119. package/lib/search-select/utils.d.ts +13 -5
  120. package/lib/select/index.d.ts +143 -67
  121. package/lib/select/index.js +1 -1
  122. package/lib/select/select.css +9 -0
  123. package/lib/select/select.d.ts +66 -33
  124. package/lib/select/select.less +11 -0
  125. package/lib/select/select.variable.css +9 -0
  126. package/lib/select/selectTagInput.d.ts +3 -0
  127. package/lib/shared/index.js +1 -1
  128. package/lib/shared/mask-manager.d.ts +3 -4
  129. package/lib/shared/pop-manager.d.ts +6 -2
  130. package/lib/sideslider/index.d.ts +1 -1
  131. package/lib/slider/index.d.ts +1 -1
  132. package/lib/slider/index.js +1 -1
  133. package/lib/steps/index.d.ts +1 -1
  134. package/lib/steps/index.js +1 -1
  135. package/lib/styles/mixins/popper.less +6 -5
  136. package/lib/swiper/index.d.ts +1 -1
  137. package/lib/swiper/index.js +1 -1
  138. package/lib/swiper/swiper.css +0 -6
  139. package/lib/swiper/swiper.less +0 -8
  140. package/lib/swiper/swiper.variable.css +0 -6
  141. package/lib/switcher/index.d.ts +1 -1
  142. package/lib/switcher/index.js +1 -1
  143. package/lib/tab/index.d.ts +2 -2
  144. package/lib/tab/tab-panel.d.ts +1 -1
  145. package/lib/table/components/table-cell.d.ts +22 -15
  146. package/lib/table/components/table-column.d.ts +151 -217
  147. package/lib/table/const.d.ts +16 -54
  148. package/lib/table/events.d.ts +180 -0
  149. package/lib/table/index.d.ts +678 -425
  150. package/lib/table/index.js +1 -1
  151. package/lib/table/plugins/head-filter.d.ts +3 -7
  152. package/lib/table/plugins/head-sort.d.ts +3 -7
  153. package/lib/table/plugins/settings.d.ts +12 -26
  154. package/lib/table/plugins/use-fixed-column.d.ts +3 -2
  155. package/lib/table/props.d.ts +168 -173
  156. package/lib/table/render.d.ts +6 -4
  157. package/lib/table/table.css +30 -4
  158. package/lib/table/table.d.ts +185 -92
  159. package/lib/table/table.less +41 -7
  160. package/lib/table/table.variable.css +30 -4
  161. package/lib/table/use-column.d.ts +50 -1
  162. package/lib/table/use-common.d.ts +16 -9
  163. package/lib/table/utils.d.ts +1 -0
  164. package/lib/table-column/index.d.ts +228 -521
  165. package/lib/table-column/index.js +1 -1
  166. package/lib/tag/index.d.ts +1 -1
  167. package/lib/tag-input/index.d.ts +52 -22
  168. package/lib/tag-input/index.js +1 -1
  169. package/lib/tag-input/tag-input.css +1 -1
  170. package/lib/tag-input/tag-input.d.ts +48 -14
  171. package/lib/tag-input/tag-input.less +4 -4
  172. package/lib/tag-input/tag-input.variable.css +1 -1
  173. package/lib/tag-input/tag-props.d.ts +17 -7
  174. package/lib/time-picker/index.d.ts +1 -1
  175. package/lib/timeline/index.d.ts +1 -1
  176. package/lib/transfer/index.d.ts +1 -1
  177. package/lib/tree/index.d.ts +1 -1
  178. package/lib/tree/index.js +1 -1
  179. package/lib/tree/tree.d.ts +10 -0
  180. package/lib/tree/use-node-attribute.d.ts +1 -1
  181. package/lib/upload/index.d.ts +1 -1
  182. package/lib/virtual-render/index.d.ts +19 -1
  183. package/lib/virtual-render/index.js +1 -1
  184. package/lib/virtual-render/props.d.ts +8 -0
  185. package/lib/virtual-render/virtual-render.d.ts +11 -0
  186. package/package.json +2 -2
@@ -19,60 +19,6 @@ export declare const ROW_HOVER_OPTIONS: ROW_HOVER[];
19
19
  * 边框配置可选项
20
20
  */
21
21
  export declare const BORDER_OPTIONS: BORDER_OPTION[];
22
- export declare const enum EVENTS {
23
- /** 点击排序事件 */
24
- ON_SORT_BY_CLICK = "onSortByClick",
25
- ON_FILTER_CLICK = "onFilterClick",
26
- ON_SETTING_CHANGE = "onSettingChange",
27
- ON_ROW_EXPAND_CLICK = "onRowExpandClick",
28
- ON_ROW_CHECK = "onRowCheck"
29
- }
30
- export declare const enum EMIT_EVENTS {
31
- COLUMN_PICK = "columnPick",
32
- COLUMN_SORT = "columnSort",
33
- COLUMN_FILTER = "columnFilter",
34
- COLUMN_FILTER_SAVE = "colFilterSave",
35
- ROW_CLICK = "rowClick",
36
- ROW_DBL_CLICK = "rowDblclick",
37
- ROW_EXPAND_CLICK = "rowExpand",
38
- ROW_MOUSE_ENTER = "rowMouseEnter",
39
- ROW_MOUSE_LEAVE = "rowMouseLeave",
40
- PAGE_LIMIT_CHANGE = "pageLimitChange",
41
- PAGE_VALUE_CHANGE = "pageValueChange",
42
- SETTING_CHANGE = "settingChange",
43
- SCROLL_BOTTOM = "scrollBottom",
44
- ROW_SELECT = "select",
45
- ROW_SELECT_ALL = "selectAll",
46
- ROW_SELECT_CHANGE = "selectionChange",
47
- CELL_CLICK = "cellClick",
48
- CELL_DBL_CLICK = "cellDblclick",
49
- NATIVE_CLICK = "click",
50
- NATIVE_DBL_CLICK = "dblclick"
51
- }
52
- export declare const EMIT_EVENT_TYPES: {
53
- columnPick: (..._args: any[]) => boolean;
54
- columnFilter: (..._args: any[]) => boolean;
55
- columnSort: (..._args: any[]) => boolean;
56
- colFilterSave: (..._args: any[]) => boolean;
57
- rowClick: (..._args: any[]) => boolean;
58
- rowDblclick: (..._args: any[]) => boolean;
59
- rowExpand: (..._args: any[]) => boolean;
60
- select: (..._args: any[]) => boolean;
61
- selectAll: (..._args: any[]) => boolean;
62
- selectionChange: (..._args: any[]) => boolean;
63
- pageLimitChange: (..._args: any[]) => boolean;
64
- pageValueChange: (..._args: any[]) => boolean;
65
- settingChange: (..._args: any[]) => boolean;
66
- scrollBottom: (..._args: any[]) => boolean;
67
- cellClick: (..._args: any[]) => boolean;
68
- cellDblclick: (..._args: any[]) => boolean;
69
- rowMouseEnter: (..._args: any[]) => boolean;
70
- rowMouseLeave: (..._args: any[]) => boolean;
71
- };
72
- export declare const CELL_EVENT_TYPES: {
73
- click: (..._args: any[]) => boolean;
74
- dblclick: (..._args: any[]) => boolean;
75
- };
76
22
  /**
77
23
  * Table Row Attributes
78
24
  */
@@ -99,6 +45,17 @@ export declare const SCROLLY_WIDTH = 6;
99
45
  * 默认行高
100
46
  */
101
47
  export declare const LINE_HEIGHT = 42;
48
+ export declare enum IHeadColor {
49
+ DEF1 = "def1",
50
+ DEF2 = "def2"
51
+ }
52
+ /**
53
+ * 根据表格的使用场景,表头支持颜色自定义,默认提供的选项:FAFBFD、F0F1F5,尽量一个项目选用同一种颜色。
54
+ */
55
+ export declare const DEF_COLOR: {
56
+ def1: string;
57
+ def2: string;
58
+ };
102
59
  export declare const SETTING_SIZE: {
103
60
  large: number;
104
61
  medium: number;
@@ -115,6 +72,11 @@ export declare const createDefaultSizeList: (t: ComputedRef<Language['table']>)
115
72
  export declare const PROVIDE_KEY_INIT_COL = "InitColumns";
116
73
  export declare const PROVIDE_KEY_TB_CACHE = "BKTableCahce";
117
74
  export declare const BK_COLUMN_UPDATE_DEFINE = "Bk_COlumn_Update_Define";
75
+ /**
76
+ * 表格底部高度
77
+ * 分页组件
78
+ */
79
+ export declare const TB_FOOT_HEIGHT = 60;
118
80
  /**
119
81
  * 排序可选择项
120
82
  */
@@ -0,0 +1,180 @@
1
+ import { SORT_OPTION } from './const';
2
+ import { Column, IColumnActive } from './props';
3
+ export declare const enum EVENTS {
4
+ /** 点击排序事件 */
5
+ ON_SORT_BY_CLICK = "onSortByClick",
6
+ ON_FILTER_CLICK = "onFilterClick",
7
+ ON_SETTING_CHANGE = "onSettingChange",
8
+ ON_ROW_EXPAND_CLICK = "onRowExpandClick",
9
+ ON_ROW_CHECK = "onRowCheck"
10
+ }
11
+ export declare const enum EMIT_EVENTS {
12
+ COLUMN_PICK = "columnPick",
13
+ COLUMN_SORT = "columnSort",
14
+ COLUMN_FILTER = "columnFilter",
15
+ COLUMN_FILTER_SAVE = "colFilterSave",
16
+ ROW_CLICK = "rowClick",
17
+ ROW_DBL_CLICK = "rowDblclick",
18
+ ROW_EXPAND_CLICK = "rowExpand",
19
+ ROW_MOUSE_ENTER = "rowMouseEnter",
20
+ ROW_MOUSE_LEAVE = "rowMouseLeave",
21
+ PAGE_LIMIT_CHANGE = "pageLimitChange",
22
+ PAGE_VALUE_CHANGE = "pageValueChange",
23
+ SETTING_CHANGE = "settingChange",
24
+ SCROLL_BOTTOM = "scrollBottom",
25
+ ROW_SELECT = "select",
26
+ ROW_SELECT_ALL = "selectAll",
27
+ ROW_SELECT_CHANGE = "selectionChange",
28
+ CELL_CLICK = "cellClick",
29
+ CELL_DBL_CLICK = "cellDblclick",
30
+ NATIVE_CLICK = "click",
31
+ NATIVE_DBL_CLICK = "dblclick"
32
+ }
33
+ export declare const EVENT_COL_PICK: (_cols: IColumnActive[]) => boolean;
34
+ export declare const EVENT_COL_FILTER: (_args: {
35
+ checked: string[];
36
+ column: Column;
37
+ index: number;
38
+ }) => boolean;
39
+ export declare const EVENT_COL_FILTER_SAVE: (_args: {
40
+ column: Column;
41
+ values: Record<string, any>[];
42
+ }) => boolean;
43
+ export declare const EVENT_COL_SORT: (_args: {
44
+ column: Column;
45
+ index: number;
46
+ type: SORT_OPTION;
47
+ }) => boolean;
48
+ export declare const EVENT_MOUSE_FN: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
49
+ export declare const EVENT_EXPAND_FN: (_args: {
50
+ row: Record<string, any>;
51
+ column: Column;
52
+ index: Number;
53
+ rows: Record<string, any>[];
54
+ e: MouseEvent;
55
+ }) => boolean;
56
+ export declare const EVENT_ROW_SELECT_FN: (_args: {
57
+ row: Record<string, any>;
58
+ index: Number;
59
+ checked: string;
60
+ data: Array<Record<string, any>>;
61
+ }) => boolean;
62
+ export declare const EVENT_ROW_SELECT_ALL_FN: (_args: {
63
+ checked: string;
64
+ data: Array<Record<string, any>>;
65
+ }) => boolean;
66
+ export declare const EVENT_ROW_SELECT_CHANGE_FN: (_args: {
67
+ row: Record<string, any>;
68
+ index: Number;
69
+ checked: string;
70
+ data: Array<Record<string, any>>;
71
+ isAll: boolean;
72
+ }) => boolean;
73
+ export declare const EVENT_PAGE_FN: (_arg: number) => boolean;
74
+ export declare const EVENT_SETTING_FN: (_args: {
75
+ checked: string[];
76
+ size: string;
77
+ height: number;
78
+ fields: Array<Record<string, any>>;
79
+ }) => boolean;
80
+ export declare const EVENT_CELL_FN: (_args: {
81
+ event: MouseEvent;
82
+ row: Record<string, any>;
83
+ column: Column;
84
+ cell: {
85
+ getValue: () => string;
86
+ };
87
+ rowIndex: number;
88
+ columnIndex: number;
89
+ }) => boolean;
90
+ export declare const EVENT_SCROLL_FN: (_args: {
91
+ translateX: number;
92
+ translateY: number;
93
+ scrollTop: number;
94
+ scrollLeft: number;
95
+ bottom: number;
96
+ }) => boolean;
97
+ export declare const EMIT_EVENT_TYPES: {
98
+ columnPick: (_cols: IColumnActive[]) => boolean;
99
+ columnFilter: (_args: {
100
+ checked: string[];
101
+ column: Column;
102
+ index: number;
103
+ }) => boolean;
104
+ columnSort: (_args: {
105
+ column: Column;
106
+ index: number;
107
+ type: SORT_OPTION;
108
+ }) => boolean;
109
+ colFilterSave: (_args: {
110
+ column: Column;
111
+ values: Record<string, any>[];
112
+ }) => boolean;
113
+ rowClick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
114
+ rowDblclick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
115
+ rowExpand: (_args: {
116
+ row: Record<string, any>;
117
+ column: Column;
118
+ index: Number;
119
+ rows: Record<string, any>[];
120
+ e: MouseEvent;
121
+ }) => boolean;
122
+ select: (_args: {
123
+ row: Record<string, any>;
124
+ index: Number;
125
+ checked: string;
126
+ data: Array<Record<string, any>>;
127
+ }) => boolean;
128
+ selectAll: (_args: {
129
+ checked: string;
130
+ data: Array<Record<string, any>>;
131
+ }) => boolean;
132
+ selectionChange: (_args: {
133
+ row: Record<string, any>;
134
+ index: Number;
135
+ checked: string;
136
+ data: Array<Record<string, any>>;
137
+ isAll: boolean;
138
+ }) => boolean;
139
+ pageLimitChange: (_arg: number) => boolean;
140
+ pageValueChange: (_arg: number) => boolean;
141
+ settingChange: (_args: {
142
+ checked: string[];
143
+ size: string;
144
+ height: number;
145
+ fields: Array<Record<string, any>>;
146
+ }) => boolean;
147
+ scrollBottom: (_args: {
148
+ translateX: number;
149
+ translateY: number;
150
+ scrollTop: number;
151
+ scrollLeft: number;
152
+ bottom: number;
153
+ }) => boolean;
154
+ cellClick: (_args: {
155
+ event: MouseEvent;
156
+ row: Record<string, any>;
157
+ column: Column;
158
+ cell: {
159
+ getValue: () => string;
160
+ };
161
+ rowIndex: number;
162
+ columnIndex: number;
163
+ }) => boolean;
164
+ cellDblclick: (_args: {
165
+ event: MouseEvent;
166
+ row: Record<string, any>;
167
+ column: Column;
168
+ cell: {
169
+ getValue: () => string;
170
+ };
171
+ rowIndex: number;
172
+ columnIndex: number;
173
+ }) => boolean;
174
+ rowMouseEnter: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
175
+ rowMouseLeave: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
176
+ };
177
+ export declare const CELL_EVENT_TYPES: {
178
+ click: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
179
+ dblclick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
180
+ };