@vue-start/element-pro 0.2.37 → 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: {
@@ -2845,7 +2874,11 @@ declare const elementMap: {
2845
2874
  }>>, {
2846
2875
  readonly type: element_plus_es_utils.EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "danger" | "info", unknown>;
2847
2876
  }>;
2848
- }) | (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<{
2849
2882
  readonly border: element_plus_es_utils.EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
2850
2883
  readonly column: element_plus_es_utils.EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
2851
2884
  readonly direction: element_plus_es_utils.EpPropFinalized<StringConstructor, "vertical" | "horizontal", unknown, "horizontal", boolean>;
@@ -8551,4 +8584,4 @@ declare const formElementMap: {
8551
8584
  }>;
8552
8585
  };
8553
8586
 
8554
- 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 };