@vue-start/element-pro 0.2.36 → 0.2.38

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ # 0.2.38
4
+
5
+ - fix: ProTableV2 虚拟表格
6
+
3
7
  # 0.2.35
4
8
 
5
9
  - fix: modal closed 事件;
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as element_plus_es_components_descriptions_src_descriptions_type from '
3
3
  import * as vue from 'vue';
4
4
  import { VNode, ExtractPropTypes, PropType } from 'vue';
5
5
  import * as element_plus from 'element-plus';
6
- import { TableProps, DialogProps, DrawerProps, CheckboxGroupProps, ISelectProps, MenuProps, UploadProps, UploadFile, InputNumberProps, dropdownProps, FormItemProps } from 'element-plus';
6
+ import { TableProps, TableV2Props, DialogProps, DrawerProps, CheckboxGroupProps, ISelectProps, MenuProps, UploadProps, UploadFile, InputNumberProps, dropdownProps, FormItemProps } from 'element-plus';
7
7
  import { FilterMethods, Filters } from 'element-plus/es/components/table/src/table-column/defaults';
8
8
  import * as _vue_start_pro from '@vue-start/pro';
9
9
  import { TColumns, TOption as TOption$1, TFile } from '@vue-start/pro';
@@ -129,6 +129,35 @@ declare const ProTableOperateItem: vue.DefineComponent<any, () => JSX.Element, u
129
129
  [x: string]: any;
130
130
  }>;
131
131
 
132
+ declare type ProTableV2ColumnProps<T = Record<string, any>> = TableColumnCtx<T>;
133
+ declare const proTableV2Props: () => {
134
+ fixed: {
135
+ type: BooleanConstructor;
136
+ default: boolean;
137
+ };
138
+ dataSource: ArrayConstructor;
139
+ columns: {
140
+ type: PropType<TColumns>;
141
+ };
142
+ /**
143
+ * 默认启用动态计算行高度 estimatedRowHeight
144
+ */
145
+ dynamicHei: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ minWidth: {
150
+ type: NumberConstructor;
151
+ default: number;
152
+ };
153
+ };
154
+ declare type ProTableV2Props<T = Record<string, any>> = Partial<ExtractPropTypes<ReturnType<typeof proTableV2Props>>> & TableV2Props;
155
+ declare const ProTableV2: vue.DefineComponent<ProTableV2Props<Record<string, any>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProTableV2Props<Record<string, any>>>, {
156
+ readonly headerProps?: any;
157
+ readonly headerCellProps?: any;
158
+ readonly rowProps?: any;
159
+ }>;
160
+
132
161
  declare const createLoadingId: (prefix?: string) => string;
133
162
  declare const proLoadingProps: () => {
134
163
  loading: {
@@ -232,11 +261,9 @@ declare const proModalProps: () => {
232
261
  };
233
262
  cancelText: {
234
263
  type: StringConstructor;
235
- default: string;
236
264
  };
237
265
  okText: {
238
266
  type: StringConstructor;
239
- default: string;
240
267
  };
241
268
  confirmLoading: BooleanConstructor;
242
269
  footer: {
@@ -268,11 +295,9 @@ declare const proDrawerProps: () => {
268
295
  };
269
296
  cancelText: {
270
297
  type: StringConstructor;
271
- default: string;
272
298
  };
273
299
  okText: {
274
300
  type: StringConstructor;
275
- default: string;
276
301
  };
277
302
  footer: {
278
303
  type: BooleanConstructor;
@@ -2849,7 +2874,11 @@ declare const elementMap: {
2849
2874
  }>>, {
2850
2875
  readonly type: element_plus_es_utils.EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "danger" | "info", unknown>;
2851
2876
  }>;
2852
- }) | (element_plus_es_utils.SFCWithInstall<vue.DefineComponent<{
2877
+ }) | vue.DefineComponent<ProTableV2Props<Record<string, any>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProTableV2Props<Record<string, any>>>, {
2878
+ readonly headerProps?: any;
2879
+ readonly headerCellProps?: any;
2880
+ readonly rowProps?: any;
2881
+ }> | (element_plus_es_utils.SFCWithInstall<vue.DefineComponent<{
2853
2882
  readonly border: element_plus_es_utils.EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
2854
2883
  readonly column: element_plus_es_utils.EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
2855
2884
  readonly direction: element_plus_es_utils.EpPropFinalized<StringConstructor, "vertical" | "horizontal", unknown, "horizontal", boolean>;
@@ -6141,7 +6170,7 @@ declare const elementMap: {
6141
6170
  }>> & Record<string, any>) | (element_plus_es_utils.SFCWithInstall<vue.DefineComponent<{
6142
6171
  readonly tag: element_plus_es_utils.EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
6143
6172
  readonly gutter: element_plus_es_utils.EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
6144
- readonly justify: element_plus_es_utils.EpPropFinalized<StringConstructor, "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly", unknown, "start", boolean>;
6173
+ readonly justify: element_plus_es_utils.EpPropFinalized<StringConstructor, "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly", unknown, "start", boolean>;
6145
6174
  readonly align: {
6146
6175
  readonly type: vue.PropType<element_plus_es_utils.EpPropMergeType<StringConstructor, "top" | "bottom" | "middle", unknown>>;
6147
6176
  readonly required: false;
@@ -6152,7 +6181,7 @@ declare const elementMap: {
6152
6181
  props: Readonly<_vue_shared.LooseRequired<Readonly<vue.ExtractPropTypes<{
6153
6182
  readonly tag: element_plus_es_utils.EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
6154
6183
  readonly gutter: element_plus_es_utils.EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
6155
- readonly justify: element_plus_es_utils.EpPropFinalized<StringConstructor, "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly", unknown, "start", boolean>;
6184
+ readonly justify: element_plus_es_utils.EpPropFinalized<StringConstructor, "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly", unknown, "start", boolean>;
6156
6185
  readonly align: {
6157
6186
  readonly type: vue.PropType<element_plus_es_utils.EpPropMergeType<StringConstructor, "top" | "bottom" | "middle", unknown>>;
6158
6187
  readonly required: false;
@@ -6186,7 +6215,7 @@ declare const elementMap: {
6186
6215
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
6187
6216
  readonly tag: element_plus_es_utils.EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
6188
6217
  readonly gutter: element_plus_es_utils.EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
6189
- readonly justify: element_plus_es_utils.EpPropFinalized<StringConstructor, "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly", unknown, "start", boolean>;
6218
+ readonly justify: element_plus_es_utils.EpPropFinalized<StringConstructor, "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly", unknown, "start", boolean>;
6190
6219
  readonly align: {
6191
6220
  readonly type: vue.PropType<element_plus_es_utils.EpPropMergeType<StringConstructor, "top" | "bottom" | "middle", unknown>>;
6192
6221
  readonly required: false;
@@ -6194,7 +6223,7 @@ declare const elementMap: {
6194
6223
  __epPropKey: true;
6195
6224
  };
6196
6225
  }>>, {
6197
- readonly justify: element_plus_es_utils.EpPropMergeType<StringConstructor, "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly", unknown>;
6226
+ readonly justify: element_plus_es_utils.EpPropMergeType<StringConstructor, "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly", unknown>;
6198
6227
  readonly tag: string;
6199
6228
  readonly gutter: number;
6200
6229
  }>> & Record<string, any>) | (element_plus_es_utils.SFCWithInstall<vue.DefineComponent<{
@@ -8555,4 +8584,4 @@ declare const formElementMap: {
8555
8584
  }>;
8556
8585
  };
8557
8586
 
8558
- export { FormMethods, InputNumberRange, ProCheckbox, ProCheckboxProps, ProDrawer, ProDrawerProps, ProDropdown, ProDropdownProps, ProForm, ProFormCascader, ProFormCheckbox, ProFormColor, ProFormDatePicker, ProFormInputNumberRange, ProFormItem, ProFormItemProps, ProFormRadio, ProFormSelect, ProFormSwitch, ProFormText, ProFormTextNumber, ProFormTimePicker, ProFormTreeSelect, ProInputNumberRangeProps, ProLoading, ProLoadingProps, ProMenus, ProMenusProps, ProModal, ProModalProps, ProPagination, ProPopover, ProRadio, ProRadioProps, ProSelect, ProSelectProps, ProTable, ProTableColumn, ProTableColumnProps, ProTableOperateItem, ProTableProps, ProTabs, ProTree, ProTreeProps, ProUploadProps, ProUploader, TableMethods, UploadMethods, createFormItemComponent, createLoadingId, elementMap, formElementMap };
8587
+ export { FormMethods, InputNumberRange, ProCheckbox, ProCheckboxProps, ProDrawer, ProDrawerProps, ProDropdown, ProDropdownProps, ProForm, ProFormCascader, ProFormCheckbox, ProFormColor, ProFormDatePicker, ProFormInputNumberRange, ProFormItem, ProFormItemProps, ProFormRadio, ProFormSelect, ProFormSwitch, ProFormText, ProFormTextNumber, ProFormTimePicker, ProFormTreeSelect, ProInputNumberRangeProps, ProLoading, ProLoadingProps, ProMenus, ProMenusProps, ProModal, ProModalProps, ProPagination, ProPopover, ProRadio, ProRadioProps, ProSelect, ProSelectProps, ProTable, ProTableColumn, ProTableColumnProps, ProTableOperateItem, ProTableProps, ProTableV2, ProTableV2ColumnProps, ProTableV2Props, ProTabs, ProTree, ProTreeProps, ProUploadProps, ProUploader, TableMethods, UploadMethods, createFormItemComponent, createLoadingId, elementMap, formElementMap };