ele-admin-plus 1.5.0-beta.8 → 1.5.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/es/ele-admin-layout/components/layout-tabs.d.ts +1 -1
  2. package/es/ele-autocomplete/index.d.ts +233 -305
  3. package/es/ele-autocomplete/props.d.ts +115 -152
  4. package/es/ele-basic-select/components/select-view.d.ts +2 -2
  5. package/es/ele-basic-select/index.d.ts +2 -2
  6. package/es/ele-basic-select/props.d.ts +2 -2
  7. package/es/ele-breadcrumb/index.d.ts +2 -2
  8. package/es/ele-breadcrumb/props.d.ts +1 -1
  9. package/es/ele-buttons/components/item-render.js +2 -1
  10. package/es/ele-buttons/index.js +2 -2
  11. package/es/ele-cascader/index.d.ts +242 -286
  12. package/es/ele-cascader/props.d.ts +116 -138
  13. package/es/ele-check-card/components/card-item.d.ts +1 -1
  14. package/es/ele-checkbox-group/index.d.ts +51 -83
  15. package/es/ele-checkbox-group/props.d.ts +25 -41
  16. package/es/ele-data-table/index.d.ts +35 -35
  17. package/es/ele-data-table/props.d.ts +36 -36
  18. package/es/ele-drawer/index.d.ts +62 -322
  19. package/es/ele-drawer/props.d.ts +27 -157
  20. package/es/ele-dropdown/components/pro-dropdown.d.ts +283 -338
  21. package/es/ele-dropdown/index.d.ts +279 -334
  22. package/es/ele-dropdown/props.d.ts +259 -285
  23. package/es/ele-dropdown/style/index.scss +15 -9
  24. package/es/ele-edit-tag/style/index.scss +1 -0
  25. package/es/ele-ellipsis/props.d.ts +1 -1
  26. package/es/ele-icon/index.d.ts +2 -2
  27. package/es/ele-icon/props.d.ts +2 -2
  28. package/es/ele-icon-select/index.d.ts +1 -1
  29. package/es/ele-icon-select/props.d.ts +2 -2
  30. package/es/ele-image-viewer/index.d.ts +20 -132
  31. package/es/ele-image-viewer/props.d.ts +9 -65
  32. package/es/ele-loading/components/main-content.d.ts +2 -2
  33. package/es/ele-loading/style/index.scss +4 -9
  34. package/es/ele-map-picker/style/index.scss +2 -0
  35. package/es/ele-mention/index.d.ts +287 -308
  36. package/es/ele-mention/props.d.ts +144 -155
  37. package/es/ele-mention/style/index.js +1 -1
  38. package/es/ele-menus/index.d.ts +32 -174
  39. package/es/ele-menus/props.d.ts +13 -84
  40. package/es/ele-menus/util.js +4 -4
  41. package/es/ele-modal/index.d.ts +41 -237
  42. package/es/ele-modal/props.d.ts +19 -117
  43. package/es/ele-pagination/index.d.ts +27 -141
  44. package/es/ele-pagination/props.d.ts +12 -69
  45. package/es/ele-popconfirm/index.d.ts +54 -275
  46. package/es/ele-popconfirm/props.d.ts +26 -137
  47. package/es/ele-popover/index.d.ts +58 -289
  48. package/es/ele-popover/props.d.ts +27 -145
  49. package/es/ele-printer/index.d.ts +2 -2
  50. package/es/ele-pro-form/components/render-util.d.ts +2 -2
  51. package/es/ele-pro-form/index.d.ts +26 -110
  52. package/es/ele-pro-form/index.js +4 -3
  53. package/es/ele-pro-form/props.d.ts +10 -52
  54. package/es/ele-pro-layout/index.js +9 -0
  55. package/es/ele-pro-table/index.d.ts +34 -34
  56. package/es/ele-pro-table/index.js +15 -10
  57. package/es/ele-pro-table/props.d.ts +17 -17
  58. package/es/ele-pro-table/style/index.scss +6 -2
  59. package/es/ele-pro-table/types.d.ts +6 -2
  60. package/es/ele-qr-code/qrcodegen.js +2 -2
  61. package/es/ele-qr-code-svg/qrcodegen.js +1 -1
  62. package/es/ele-radio-group/index.d.ts +18 -116
  63. package/es/ele-radio-group/props.d.ts +8 -57
  64. package/es/ele-segmented/index.d.ts +2 -2
  65. package/es/ele-segmented/props.d.ts +1 -1
  66. package/es/ele-select/index.d.ts +7 -4
  67. package/es/ele-select/props.d.ts +2 -1
  68. package/es/ele-select-tree/index.d.ts +18 -15
  69. package/es/ele-select-tree/props.d.ts +2 -1
  70. package/es/ele-split-panel/index.d.ts +2 -2
  71. package/es/ele-steps/index.d.ts +18 -88
  72. package/es/ele-steps/props.d.ts +7 -42
  73. package/es/ele-table-select/index.d.ts +2 -2
  74. package/es/ele-tabs/index.d.ts +39 -36
  75. package/es/ele-tabs/index.js +15 -1
  76. package/es/ele-tabs/props.d.ts +15 -14
  77. package/es/ele-timeline/index.js +8 -4
  78. package/es/ele-tool/index.d.ts +1 -1
  79. package/es/ele-tooltip/index.d.ts +45 -266
  80. package/es/ele-tooltip/props.d.ts +19 -130
  81. package/es/ele-transfer/index.d.ts +28 -154
  82. package/es/ele-transfer/props.d.ts +15 -78
  83. package/es/ele-tree-select/index.d.ts +2 -2
  84. package/es/ele-virtual-table/components/cell-filter.d.ts +1 -1
  85. package/es/ele-virtual-table/components/header-cell.d.ts +6 -0
  86. package/es/ele-virtual-table/components/header-cell.js +87 -36
  87. package/es/ele-virtual-table/components/header-row.d.ts +7 -1
  88. package/es/ele-virtual-table/components/header-row.js +20 -2
  89. package/es/ele-virtual-table/index.d.ts +36 -36
  90. package/es/ele-virtual-table/index.js +31 -4
  91. package/es/ele-virtual-table/props.d.ts +17 -17
  92. package/es/ele-virtual-table/style/index.scss +57 -0
  93. package/es/ele-virtual-table/util.d.ts +1 -1
  94. package/es/style/themes/default.scss +1 -0
  95. package/es/utils/hook.js +7 -5
  96. package/es/utils/modal-hook.d.ts +1 -3
  97. package/lib/ele-admin-layout/components/layout-tabs.d.ts +1 -1
  98. package/lib/ele-autocomplete/index.d.ts +233 -305
  99. package/lib/ele-autocomplete/props.d.ts +115 -152
  100. package/lib/ele-basic-select/components/select-view.d.ts +2 -2
  101. package/lib/ele-basic-select/index.d.ts +2 -2
  102. package/lib/ele-basic-select/props.d.ts +2 -2
  103. package/lib/ele-breadcrumb/index.d.ts +2 -2
  104. package/lib/ele-breadcrumb/props.d.ts +1 -1
  105. package/lib/ele-buttons/components/item-render.cjs +2 -1
  106. package/lib/ele-buttons/index.cjs +2 -2
  107. package/lib/ele-cascader/index.d.ts +242 -286
  108. package/lib/ele-cascader/props.d.ts +116 -138
  109. package/lib/ele-check-card/components/card-item.d.ts +1 -1
  110. package/lib/ele-checkbox-group/index.d.ts +51 -83
  111. package/lib/ele-checkbox-group/props.d.ts +25 -41
  112. package/lib/ele-data-table/index.d.ts +35 -35
  113. package/lib/ele-data-table/props.d.ts +36 -36
  114. package/lib/ele-drawer/index.d.ts +62 -322
  115. package/lib/ele-drawer/props.d.ts +27 -157
  116. package/lib/ele-dropdown/components/pro-dropdown.d.ts +283 -338
  117. package/lib/ele-dropdown/index.d.ts +279 -334
  118. package/lib/ele-dropdown/props.d.ts +259 -285
  119. package/lib/ele-dropdown/style/index.scss +15 -9
  120. package/lib/ele-edit-tag/style/index.scss +1 -0
  121. package/lib/ele-ellipsis/props.d.ts +1 -1
  122. package/lib/ele-icon/index.d.ts +2 -2
  123. package/lib/ele-icon/props.d.ts +2 -2
  124. package/lib/ele-icon-select/index.d.ts +1 -1
  125. package/lib/ele-icon-select/props.d.ts +2 -2
  126. package/lib/ele-image-viewer/index.d.ts +20 -132
  127. package/lib/ele-image-viewer/props.d.ts +9 -65
  128. package/lib/ele-loading/components/main-content.d.ts +2 -2
  129. package/lib/ele-loading/style/index.scss +4 -9
  130. package/lib/ele-map-picker/style/index.scss +2 -0
  131. package/lib/ele-mention/index.d.ts +287 -308
  132. package/lib/ele-mention/props.d.ts +144 -155
  133. package/lib/ele-mention/style/index.cjs +1 -1
  134. package/lib/ele-menus/index.d.ts +32 -174
  135. package/lib/ele-menus/props.d.ts +13 -84
  136. package/lib/ele-menus/util.cjs +4 -4
  137. package/lib/ele-modal/index.d.ts +41 -237
  138. package/lib/ele-modal/props.d.ts +19 -117
  139. package/lib/ele-pagination/index.d.ts +27 -141
  140. package/lib/ele-pagination/props.d.ts +12 -69
  141. package/lib/ele-popconfirm/index.d.ts +54 -275
  142. package/lib/ele-popconfirm/props.d.ts +26 -137
  143. package/lib/ele-popover/index.d.ts +58 -289
  144. package/lib/ele-popover/props.d.ts +27 -145
  145. package/lib/ele-printer/index.d.ts +2 -2
  146. package/lib/ele-pro-form/components/render-util.d.ts +2 -2
  147. package/lib/ele-pro-form/index.cjs +2 -1
  148. package/lib/ele-pro-form/index.d.ts +26 -110
  149. package/lib/ele-pro-form/props.d.ts +10 -52
  150. package/lib/ele-pro-layout/index.cjs +9 -0
  151. package/lib/ele-pro-table/index.cjs +15 -10
  152. package/lib/ele-pro-table/index.d.ts +34 -34
  153. package/lib/ele-pro-table/props.d.ts +17 -17
  154. package/lib/ele-pro-table/style/index.scss +6 -2
  155. package/lib/ele-pro-table/types.d.ts +6 -2
  156. package/lib/ele-qr-code/qrcodegen.cjs +2 -2
  157. package/lib/ele-qr-code-svg/qrcodegen.cjs +1 -1
  158. package/lib/ele-radio-group/index.d.ts +18 -116
  159. package/lib/ele-radio-group/props.d.ts +8 -57
  160. package/lib/ele-segmented/index.d.ts +2 -2
  161. package/lib/ele-segmented/props.d.ts +1 -1
  162. package/lib/ele-select/index.d.ts +7 -4
  163. package/lib/ele-select/props.d.ts +2 -1
  164. package/lib/ele-select-tree/index.d.ts +18 -15
  165. package/lib/ele-select-tree/props.d.ts +2 -1
  166. package/lib/ele-split-panel/index.d.ts +2 -2
  167. package/lib/ele-steps/index.d.ts +18 -88
  168. package/lib/ele-steps/props.d.ts +7 -42
  169. package/lib/ele-table-select/index.d.ts +2 -2
  170. package/lib/ele-tabs/index.cjs +14 -0
  171. package/lib/ele-tabs/index.d.ts +39 -36
  172. package/lib/ele-tabs/props.d.ts +15 -14
  173. package/lib/ele-timeline/index.cjs +8 -4
  174. package/lib/ele-tool/index.d.ts +1 -1
  175. package/lib/ele-tooltip/index.d.ts +45 -266
  176. package/lib/ele-tooltip/props.d.ts +19 -130
  177. package/lib/ele-transfer/index.d.ts +28 -154
  178. package/lib/ele-transfer/props.d.ts +15 -78
  179. package/lib/ele-tree-select/index.d.ts +2 -2
  180. package/lib/ele-virtual-table/components/cell-filter.d.ts +1 -1
  181. package/lib/ele-virtual-table/components/header-cell.cjs +85 -34
  182. package/lib/ele-virtual-table/components/header-cell.d.ts +6 -0
  183. package/lib/ele-virtual-table/components/header-row.cjs +20 -2
  184. package/lib/ele-virtual-table/components/header-row.d.ts +7 -1
  185. package/lib/ele-virtual-table/index.cjs +30 -3
  186. package/lib/ele-virtual-table/index.d.ts +36 -36
  187. package/lib/ele-virtual-table/props.d.ts +17 -17
  188. package/lib/ele-virtual-table/style/index.scss +57 -0
  189. package/lib/ele-virtual-table/util.d.ts +1 -1
  190. package/lib/style/themes/default.scss +1 -0
  191. package/lib/utils/hook.cjs +7 -5
  192. package/lib/utils/modal-hook.d.ts +1 -3
  193. package/package.json +3 -3
@@ -83,23 +83,23 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
83
83
  };
84
84
  showSummary: BooleanConstructor;
85
85
  sumText: StringConstructor;
86
- summaryMethod: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["summaryMethod"]>;
87
- rowClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["rowClassName"]>;
88
- rowStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["rowStyle"]>;
89
- cellClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["cellClassName"]>;
90
- cellStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["cellStyle"]>;
91
- headerRowClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerRowClassName"]>;
92
- headerRowStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerRowStyle"]>;
93
- headerCellClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerCellClassName"]>;
94
- headerCellStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerCellStyle"]>;
86
+ summaryMethod: import('vue').PropType<import('element-plus').TableProps<any>["summaryMethod"]>;
87
+ rowClassName: import('vue').PropType<import('element-plus').TableProps<any>["rowClassName"]>;
88
+ rowStyle: import('vue').PropType<import('element-plus').TableProps<any>["rowStyle"]>;
89
+ cellClassName: import('vue').PropType<import('element-plus').TableProps<any>["cellClassName"]>;
90
+ cellStyle: import('vue').PropType<import('element-plus').TableProps<any>["cellStyle"]>;
91
+ headerRowClassName: import('vue').PropType<import('element-plus').TableProps<any>["headerRowClassName"]>;
92
+ headerRowStyle: import('vue').PropType<import('element-plus').TableProps<any>["headerRowStyle"]>;
93
+ headerCellClassName: import('vue').PropType<import('element-plus').TableProps<any>["headerCellClassName"]>;
94
+ headerCellStyle: import('vue').PropType<import('element-plus').TableProps<any>["headerCellStyle"]>;
95
95
  highlightCurrentRow: BooleanConstructor;
96
96
  currentRowKey: (NumberConstructor | StringConstructor)[];
97
- expandRowKeys: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["expandRowKeys"]>;
97
+ expandRowKeys: import('vue').PropType<import('element-plus').TableProps<any>["expandRowKeys"]>;
98
98
  defaultExpandAll: BooleanConstructor;
99
- defaultSort: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["defaultSort"]>;
99
+ defaultSort: import('vue').PropType<import('element-plus').TableProps<any>["defaultSort"]>;
100
100
  tooltipEffect: StringConstructor;
101
- tooltipOptions: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["tooltipOptions"]>;
102
- spanMethod: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["spanMethod"]>;
101
+ tooltipOptions: import('vue').PropType<import('element-plus').TableProps<any>["tooltipOptions"]>;
102
+ spanMethod: import('vue').PropType<import('element-plus').TableProps<any>["spanMethod"]>;
103
103
  selectOnIndeterminate: {
104
104
  type: BooleanConstructor;
105
105
  default: boolean;
@@ -109,22 +109,22 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
109
109
  default: number;
110
110
  };
111
111
  treeProps: {
112
- type: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["treeProps"]>;
112
+ type: import('vue').PropType<import('element-plus').TableProps<any>["treeProps"]>;
113
113
  default: () => {
114
114
  hasChildren: string;
115
115
  children: string;
116
116
  checkStrictly: boolean;
117
117
  };
118
118
  };
119
- load: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["load"]>;
119
+ load: import('vue').PropType<import('element-plus').TableProps<any>["load"]>;
120
120
  tableLayout: {
121
121
  type: import('vue').PropType<"fixed" | "auto">;
122
122
  default: string;
123
123
  };
124
124
  scrollbarAlwaysOn: BooleanConstructor;
125
125
  flexible: BooleanConstructor;
126
- showOverflowTooltip: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["showOverflowTooltip"]>;
127
- tooltipFormatter: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["tooltipFormatter"]>;
126
+ showOverflowTooltip: import('vue').PropType<import('element-plus').TableProps<any>["showOverflowTooltip"]>;
127
+ tooltipFormatter: import('vue').PropType<import('element-plus').TableProps<any>["tooltipFormatter"]>;
128
128
  appendFilterPanelTo: StringConstructor;
129
129
  scrollbarTabindex: {
130
130
  type: (NumberConstructor | StringConstructor)[];
@@ -154,7 +154,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
154
154
  getCurrentRow: () => DataItem | undefined;
155
155
  clearSort: () => void;
156
156
  clearFilter: (columnKeys?: string[]) => void;
157
- doLayout: (force?: boolean) => void;
157
+ doLayout: (force?: boolean, updateTable?: boolean) => void;
158
158
  sort: (prop: string, order: OrderValue) => void;
159
159
  scrollTo: (options: number | ScrollToOptions, yCoord?: number) => void;
160
160
  setScrollTop: (top?: number) => void;
@@ -255,23 +255,23 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
255
255
  };
256
256
  showSummary: BooleanConstructor;
257
257
  sumText: StringConstructor;
258
- summaryMethod: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["summaryMethod"]>;
259
- rowClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["rowClassName"]>;
260
- rowStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["rowStyle"]>;
261
- cellClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["cellClassName"]>;
262
- cellStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["cellStyle"]>;
263
- headerRowClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerRowClassName"]>;
264
- headerRowStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerRowStyle"]>;
265
- headerCellClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerCellClassName"]>;
266
- headerCellStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerCellStyle"]>;
258
+ summaryMethod: import('vue').PropType<import('element-plus').TableProps<any>["summaryMethod"]>;
259
+ rowClassName: import('vue').PropType<import('element-plus').TableProps<any>["rowClassName"]>;
260
+ rowStyle: import('vue').PropType<import('element-plus').TableProps<any>["rowStyle"]>;
261
+ cellClassName: import('vue').PropType<import('element-plus').TableProps<any>["cellClassName"]>;
262
+ cellStyle: import('vue').PropType<import('element-plus').TableProps<any>["cellStyle"]>;
263
+ headerRowClassName: import('vue').PropType<import('element-plus').TableProps<any>["headerRowClassName"]>;
264
+ headerRowStyle: import('vue').PropType<import('element-plus').TableProps<any>["headerRowStyle"]>;
265
+ headerCellClassName: import('vue').PropType<import('element-plus').TableProps<any>["headerCellClassName"]>;
266
+ headerCellStyle: import('vue').PropType<import('element-plus').TableProps<any>["headerCellStyle"]>;
267
267
  highlightCurrentRow: BooleanConstructor;
268
268
  currentRowKey: (NumberConstructor | StringConstructor)[];
269
- expandRowKeys: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["expandRowKeys"]>;
269
+ expandRowKeys: import('vue').PropType<import('element-plus').TableProps<any>["expandRowKeys"]>;
270
270
  defaultExpandAll: BooleanConstructor;
271
- defaultSort: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["defaultSort"]>;
271
+ defaultSort: import('vue').PropType<import('element-plus').TableProps<any>["defaultSort"]>;
272
272
  tooltipEffect: StringConstructor;
273
- tooltipOptions: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["tooltipOptions"]>;
274
- spanMethod: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["spanMethod"]>;
273
+ tooltipOptions: import('vue').PropType<import('element-plus').TableProps<any>["tooltipOptions"]>;
274
+ spanMethod: import('vue').PropType<import('element-plus').TableProps<any>["spanMethod"]>;
275
275
  selectOnIndeterminate: {
276
276
  type: BooleanConstructor;
277
277
  default: boolean;
@@ -281,22 +281,22 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
281
281
  default: number;
282
282
  };
283
283
  treeProps: {
284
- type: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["treeProps"]>;
284
+ type: import('vue').PropType<import('element-plus').TableProps<any>["treeProps"]>;
285
285
  default: () => {
286
286
  hasChildren: string;
287
287
  children: string;
288
288
  checkStrictly: boolean;
289
289
  };
290
290
  };
291
- load: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["load"]>;
291
+ load: import('vue').PropType<import('element-plus').TableProps<any>["load"]>;
292
292
  tableLayout: {
293
293
  type: import('vue').PropType<"fixed" | "auto">;
294
294
  default: string;
295
295
  };
296
296
  scrollbarAlwaysOn: BooleanConstructor;
297
297
  flexible: BooleanConstructor;
298
- showOverflowTooltip: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["showOverflowTooltip"]>;
299
- tooltipFormatter: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["tooltipFormatter"]>;
298
+ showOverflowTooltip: import('vue').PropType<import('element-plus').TableProps<any>["showOverflowTooltip"]>;
299
+ tooltipFormatter: import('vue').PropType<import('element-plus').TableProps<any>["tooltipFormatter"]>;
300
300
  appendFilterPanelTo: StringConstructor;
301
301
  scrollbarTabindex: {
302
302
  type: (NumberConstructor | StringConstructor)[];
@@ -334,11 +334,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
334
334
  onRowsRendered?: ((_params: any) => any) | undefined;
335
335
  }>, {
336
336
  fit: boolean;
337
- border: boolean;
338
337
  lazy: boolean;
339
338
  className: string;
340
339
  data: any[];
341
340
  stripe: boolean;
341
+ border: boolean;
342
342
  showHeader: boolean;
343
343
  showSummary: boolean;
344
344
  highlightCurrentRow: boolean;
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, reactive, computed, onActivated, onDeactivated, watch, nextTick, createElementBlock, openBlock, normalizeClass, unref, createBlock, createCommentVNode, createVNode, mergeProps, createSlots, withCtx, renderSlot, toDisplayString, renderList, normalizeProps, guardReactiveProps } from "vue";
1
+ import { defineComponent, ref, reactive, computed, onActivated, onDeactivated, watch, nextTick, createElementBlock, openBlock, normalizeClass, unref, createBlock, createCommentVNode, createElementVNode, createVNode, mergeProps, createSlots, withCtx, renderSlot, toDisplayString, renderList, normalizeProps, guardReactiveProps, normalizeStyle } from "vue";
2
2
  import { useLocale, ElTableV2, ElEmpty } from "element-plus";
3
3
  import { eachTree, queryChild, findTree, getValue } from "../utils/common";
4
4
  import { useResizeObserver } from "../utils/hook";
@@ -49,6 +49,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  const tableCurrentData = ref([]);
50
50
  const tableColumns = ref([]);
51
51
  const tableScrollLeft = ref(0);
52
+ const columnResizeLineLeft = ref("0px");
53
+ const isColumnResizing = ref(false);
52
54
  const selectedRowKey = ref(props.currentRowKey ?? null);
53
55
  const checkedRowKeys = ref(
54
56
  new Set(props.selectedRowKeys || [])
@@ -389,6 +391,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
389
391
  }
390
392
  events.onHeaderClick(col, e);
391
393
  };
394
+ const handleHeaderCellResizeStart = (_headerCol, _width, lineLeft) => {
395
+ isColumnResizing.value = true;
396
+ columnResizeLineLeft.value = `${lineLeft - tableScrollLeft.value}px`;
397
+ };
398
+ const handleHeaderCellResize = (_headerCol, _width, lineLeft) => {
399
+ columnResizeLineLeft.value = `${lineLeft - tableScrollLeft.value}px`;
400
+ };
401
+ const handleHeaderCellResizeEnd = (headerCol, width, e) => {
402
+ isColumnResizing.value = false;
403
+ const col = bodyCols.value.find((col2) => col2.key === headerCol.key);
404
+ if (col) {
405
+ const oldWidth = col.width;
406
+ col.width = width;
407
+ doLayout(false, false);
408
+ events.onHeaderDragend(width, oldWidth, col.originalCol, e);
409
+ }
410
+ };
392
411
  const handleHeaderCellContextmenu = (col, e) => {
393
412
  events.onHeaderContextmenu(col, e);
394
413
  };
@@ -757,7 +776,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
757
776
  });
758
777
  sortAndFilterTableData();
759
778
  };
760
- const doLayout = (force) => {
779
+ const doLayout = (force, updateTable) => {
761
780
  const { width, sumWidth, rowSizes, colSizes } = computeColSizes(
762
781
  bodyCols.value,
763
782
  headerRows.value,
@@ -775,7 +794,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
775
794
  bodyColSizes.value = colSizes;
776
795
  tableColumns.value = getTableColumns(bodyCols.value, bodyColSizes.value);
777
796
  }
778
- if (isUpdate) {
797
+ if (isUpdate && updateTable !== false) {
779
798
  tableKey.value++;
780
799
  }
781
800
  };
@@ -976,6 +995,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
976
995
  { "is-ping-left": isPingLeft.value },
977
996
  { "is-ping-right": isPingRight.value },
978
997
  { "is-auto-width": unref(wrapWidth) === tableWidth.value },
998
+ { "is-column-resizing": isColumnResizing.value },
979
999
  { "is-small": _ctx.size === "small" },
980
1000
  { "is-large": _ctx.size === "large" }
981
1001
  ]]),
@@ -1009,7 +1029,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1009
1029
  onFilterChange: handleTableFilterChange,
1010
1030
  onCellClick: handleHeaderCellClick,
1011
1031
  onCellContextmenu: handleHeaderCellContextmenu,
1012
- onCellMouseenter: handleHeaderCellMouseenter
1032
+ onCellMouseenter: handleHeaderCellMouseenter,
1033
+ onCellResizeStart: handleHeaderCellResizeStart,
1034
+ onCellResize: handleHeaderCellResize,
1035
+ onCellResizeEnd: handleHeaderCellResizeEnd
1013
1036
  }, createSlots({ _: 2 }, [
1014
1037
  renderList(Object.keys(_ctx.$slots).filter(
1015
1038
  (k) => !ownSlots.includes(k)
@@ -1117,6 +1140,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1117
1140
  key: "0"
1118
1141
  } : void 0
1119
1142
  ]), 1040)) : createCommentVNode("", true),
1143
+ createElementVNode("div", {
1144
+ class: "ele-table-resize-line",
1145
+ style: normalizeStyle({ left: columnResizeLineLeft.value })
1146
+ }, null, 4),
1120
1147
  createVNode(EleTooltip, normalizeProps(guardReactiveProps(tableTooltipProps)), null, 16)
1121
1148
  ], 34);
1122
1149
  };
@@ -79,23 +79,23 @@ export declare const virtualTableProps: {
79
79
  };
80
80
  showSummary: BooleanConstructor;
81
81
  sumText: StringConstructor;
82
- summaryMethod: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["summaryMethod"]>;
83
- rowClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["rowClassName"]>;
84
- rowStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["rowStyle"]>;
85
- cellClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["cellClassName"]>;
86
- cellStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["cellStyle"]>;
87
- headerRowClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerRowClassName"]>;
88
- headerRowStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerRowStyle"]>;
89
- headerCellClassName: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerCellClassName"]>;
90
- headerCellStyle: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["headerCellStyle"]>;
82
+ summaryMethod: import('vue').PropType<import('element-plus').TableProps<any>["summaryMethod"]>;
83
+ rowClassName: import('vue').PropType<import('element-plus').TableProps<any>["rowClassName"]>;
84
+ rowStyle: import('vue').PropType<import('element-plus').TableProps<any>["rowStyle"]>;
85
+ cellClassName: import('vue').PropType<import('element-plus').TableProps<any>["cellClassName"]>;
86
+ cellStyle: import('vue').PropType<import('element-plus').TableProps<any>["cellStyle"]>;
87
+ headerRowClassName: import('vue').PropType<import('element-plus').TableProps<any>["headerRowClassName"]>;
88
+ headerRowStyle: import('vue').PropType<import('element-plus').TableProps<any>["headerRowStyle"]>;
89
+ headerCellClassName: import('vue').PropType<import('element-plus').TableProps<any>["headerCellClassName"]>;
90
+ headerCellStyle: import('vue').PropType<import('element-plus').TableProps<any>["headerCellStyle"]>;
91
91
  highlightCurrentRow: BooleanConstructor;
92
92
  currentRowKey: (NumberConstructor | StringConstructor)[];
93
- expandRowKeys: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["expandRowKeys"]>;
93
+ expandRowKeys: import('vue').PropType<import('element-plus').TableProps<any>["expandRowKeys"]>;
94
94
  defaultExpandAll: BooleanConstructor;
95
- defaultSort: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["defaultSort"]>;
95
+ defaultSort: import('vue').PropType<import('element-plus').TableProps<any>["defaultSort"]>;
96
96
  tooltipEffect: StringConstructor;
97
- tooltipOptions: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["tooltipOptions"]>;
98
- spanMethod: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["spanMethod"]>;
97
+ tooltipOptions: import('vue').PropType<import('element-plus').TableProps<any>["tooltipOptions"]>;
98
+ spanMethod: import('vue').PropType<import('element-plus').TableProps<any>["spanMethod"]>;
99
99
  selectOnIndeterminate: {
100
100
  type: BooleanConstructor;
101
101
  default: boolean;
@@ -105,18 +105,18 @@ export declare const virtualTableProps: {
105
105
  default: number;
106
106
  };
107
107
  treeProps: {
108
- type: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["treeProps"]>;
108
+ type: import('vue').PropType<import('element-plus').TableProps<any>["treeProps"]>;
109
109
  default: () => {
110
110
  hasChildren: string;
111
111
  children: string;
112
112
  checkStrictly: boolean;
113
113
  };
114
114
  };
115
- load: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["load"]>;
115
+ load: import('vue').PropType<import('element-plus').TableProps<any>["load"]>;
116
116
  scrollbarAlwaysOn: BooleanConstructor;
117
117
  flexible: BooleanConstructor;
118
- showOverflowTooltip: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["showOverflowTooltip"]>;
119
- tooltipFormatter: import('vue').PropType<import('element-plus/es/components/table/index').TableProps<any>["tooltipFormatter"]>;
118
+ showOverflowTooltip: import('vue').PropType<import('element-plus').TableProps<any>["showOverflowTooltip"]>;
119
+ tooltipFormatter: import('vue').PropType<import('element-plus').TableProps<any>["tooltipFormatter"]>;
120
120
  appendFilterPanelTo: StringConstructor;
121
121
  scrollbarTabindex: {
122
122
  type: (NumberConstructor | StringConstructor)[];
@@ -173,6 +173,63 @@
173
173
  display: none;
174
174
  }
175
175
 
176
+ /* 列宽拉伸线 */
177
+ .ele-table-head-tr > .ele-table-td > .ele-table-resize-handle {
178
+ width: 12px;
179
+ height: 100%;
180
+ position: absolute;
181
+ top: 0;
182
+ right: -6px;
183
+ display: flex;
184
+ justify-content: center;
185
+ cursor: e-resize;
186
+ z-index: 2;
187
+
188
+ &::after {
189
+ content: '';
190
+ width: 3px;
191
+ height: 100%;
192
+ }
193
+
194
+ &:hover::after {
195
+ background: elVar('color-primary');
196
+ }
197
+ }
198
+
199
+ .ele-table-resize-line {
200
+ width: 12px;
201
+ height: 100%;
202
+ margin: 0 0 0 -6px;
203
+ position: absolute;
204
+ top: 0;
205
+ left: 0;
206
+ bottom: 0;
207
+ display: flex;
208
+ justify-content: center;
209
+ cursor: e-resize;
210
+ z-index: 5;
211
+
212
+ &::after {
213
+ content: '';
214
+ width: 3px;
215
+ height: 100%;
216
+ background: elVar('color-primary');
217
+ }
218
+ }
219
+
220
+ &:not(.is-column-resizing) > .ele-table-resize-line {
221
+ display: none;
222
+ }
223
+
224
+ &.is-column-resizing,
225
+ &.is-column-resizing * {
226
+ user-select: none;
227
+ }
228
+
229
+ &.is-column-resizing .ele-table-head-tr > .ele-table-td {
230
+ pointer-events: none;
231
+ }
232
+
176
233
  /* 单元格对齐 */
177
234
  .ele-table-td.is-align-left > .ele-table-cell,
178
235
  .ele-table-td.is-align-left > .ele-table-cell > .ele-cell-title {
@@ -87,7 +87,7 @@ export declare function colSizesIsChanged(colSizes: ColSize[], newSizes: ColSize
87
87
  * @param bodyCols 主体列配置
88
88
  * @param colSizes 列尺寸数据
89
89
  */
90
- export declare function getTableColumns(bodyCols: BodyColumns, colSizes: ColSize[]): Partial<import('element-plus/es/components/table-v2/index').Column<DataItem>>[];
90
+ export declare function getTableColumns(bodyCols: BodyColumns, colSizes: ColSize[]): Partial<import('element-plus').Column<DataItem>>[];
91
91
  /**
92
92
  * 处理表格数据
93
93
  * @param data 数据
@@ -391,6 +391,7 @@ $ele: map.deep-merge(
391
391
  'size': 19px,
392
392
  'space': 5px,
393
393
  'index': 2000,
394
+ 'transition': none,
394
395
  'sm-size': 13px,
395
396
  'sm-space': 3px,
396
397
  'lg-size': 29px,
package/es/utils/hook.js CHANGED
@@ -346,21 +346,21 @@ function useResizeObserver(option) {
346
346
  }
347
347
  }
348
348
  };
349
- const observer = new ResizeObserver(
349
+ const observer = typeof ResizeObserver !== "undefined" ? new ResizeObserver(
350
350
  debounce(() => {
351
351
  updateWrapSize();
352
352
  }, 400)
353
- );
353
+ ) : void 0;
354
354
  const observe = () => {
355
355
  unobserve();
356
356
  const el = option.getEl();
357
- if (el) {
357
+ if (el && observer) {
358
358
  observer.observe(el);
359
359
  }
360
360
  };
361
361
  const unobserve = () => {
362
362
  const el = option.getEl();
363
- if (el) {
363
+ if (el && observer) {
364
364
  observer.unobserve(el);
365
365
  }
366
366
  };
@@ -382,7 +382,9 @@ function useResizeObserver(option) {
382
382
  observe();
383
383
  });
384
384
  onBeforeUnmount(() => {
385
- observer.disconnect();
385
+ if (observer) {
386
+ observer.disconnect();
387
+ }
386
388
  });
387
389
  onActivated(() => {
388
390
  delayUpdateWrapSize(option.activatedUpdateDelay);
@@ -11,9 +11,7 @@ export interface UseModalOptions {
11
11
  export declare function useModal(options?: UseModalOptions): {
12
12
  message: import('./message').Message;
13
13
  messageBox: import('./message-box').MessageBox;
14
- notification: (import('element-plus').Notify & import('vue').Plugin) & {
15
- _context: import('vue').AppContext | null;
16
- };
14
+ notification: import('element-plus/es/utils/index').SFCInstallWithContext<import('element-plus').Notify>;
17
15
  ModalHolder: import('vue').DefineComponent<{}, () => any[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
16
  modalProps: import('vue').Ref<import('../ele-app/plus').EleDrawerPropsAndEmits | import('../ele-app/plus').EleModalPropsAndEmits, import('../ele-app/plus').EleDrawerPropsAndEmits | import('../ele-app/plus').EleModalPropsAndEmits> | undefined;
19
17
  openModal: (option: import('../ele-modal-render/types').ModalItem) => import('../ele-modal-render/types').ModalItemId;
@@ -10,7 +10,7 @@ declare function __VLS_template(): {
10
10
  tabTitle?(_: {
11
11
  item: TabPaneItem;
12
12
  label: string | undefined;
13
- active: (string | number) | undefined;
13
+ active: import('element-plus/es/utils/index').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
14
14
  }): any;
15
15
  tabExtra?(_: {
16
16
  active: string | undefined;