@wx-design/components 1.4.0 → 1.4.2

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.
@@ -187,6 +187,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
187
187
  getCheckedFilters(): VxeTableDefines.FilterCheckedParams<any>[] | undefined;
188
188
  clearFilter(fieldOrColumn?: import("vxe-table").VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null): void;
189
189
  refreshData: () => void;
190
+ sortCustomColumns(fields: string | string[], index: number): Promise<void>;
190
191
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
191
192
  params: VxeTablePropTypes.Params;
192
193
  name: string;
@@ -484,12 +485,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
484
485
  customConfig?: (VxeTablePropTypes.CustomConfig<VxeTablePropTypes.Row> & {
485
486
  useSabModal?: boolean;
486
487
  }) | undefined;
487
- }> & Readonly<{}>, "reloadRow" | "clearFilter" | "getCheckedFilters" | ("params" | "name" | "id" | "size" | "border" | "loading" | "round" | "align" | "maxHeight" | "data" | "class" | "height" | "headerFilterConfig" | "minHeight" | "stripe" | "padding" | "headerAlign" | "footerAlign" | "showHeader" | "showFooter" | "footerData" | "footerMethod" | "rowClassName" | "cellClassName" | "headerRowClassName" | "headerCellClassName" | "footerRowClassName" | "footerCellClassName" | "cellStyle" | "rowStyle" | "headerCellStyle" | "headerRowStyle" | "footerRowStyle" | "footerCellStyle" | "showCustomHeader" | "mergeHeaderCells" | "mergeCells" | "mergeFooterCells" | "mergeFooterItems" | "spanMethod" | "footerSpanMethod" | "showOverflow" | "showHeaderOverflow" | "showFooterOverflow" | "keepSource" | "autoResize" | "syncResize" | "columnConfig" | "rowConfig" | "cellConfig" | "headerCellConfig" | "footerCellConfig" | "aggregateConfig" | "rowGroupConfig" | "currentRowConfig" | "currentColumnConfig" | "dragConfig" | "rowDragConfig" | "columnDragConfig" | "customConfig" | "resizeConfig" | "resizableConfig" | "seqConfig" | "sortConfig" | "filterConfig" | "radioConfig" | "checkboxConfig" | "tooltipConfig" | "exportConfig" | "importConfig" | "printConfig" | "expandConfig" | "treeConfig" | "menuConfig" | "mouseConfig" | "areaConfig" | "fnrConfig" | "keyboardConfig" | "clipConfig" | "editConfig" | "validConfig" | "editRules" | "emptyText" | "emptyRender" | "loadingConfig" | "scrollX" | "scrollY" | "virtualXConfig" | "virtualYConfig" | "scrollbarConfig" | "resizable" | "highlightCurrentRow" | "highlightHoverRow" | "highlightCurrentColumn" | "highlightHoverColumn" | "highlightCell" | "columnKey" | "rowKey" | "rowId" | "fit" | "animat" | "delayHover" | "columns" | "tableSetConfig" | "editable" | "wrapClassName" | "checkboxRecords" | "withSeq" | "withCheckbox" | "headerFilterModel" | "showToolbar" | "autoColumnWidth" | "rowBackgroundHighlight" | "reloadWithDestroy") | "getInstance" | "refreshData"> & import('vue').ShallowUnwrapRef<{
488
+ }> & Readonly<{}>, "reloadRow" | "clearFilter" | "getCheckedFilters" | ("params" | "name" | "id" | "size" | "border" | "loading" | "round" | "align" | "maxHeight" | "data" | "class" | "height" | "headerFilterConfig" | "minHeight" | "stripe" | "padding" | "headerAlign" | "footerAlign" | "showHeader" | "showFooter" | "footerData" | "footerMethod" | "rowClassName" | "cellClassName" | "headerRowClassName" | "headerCellClassName" | "footerRowClassName" | "footerCellClassName" | "cellStyle" | "rowStyle" | "headerCellStyle" | "headerRowStyle" | "footerRowStyle" | "footerCellStyle" | "showCustomHeader" | "mergeHeaderCells" | "mergeCells" | "mergeFooterCells" | "mergeFooterItems" | "spanMethod" | "footerSpanMethod" | "showOverflow" | "showHeaderOverflow" | "showFooterOverflow" | "keepSource" | "autoResize" | "syncResize" | "columnConfig" | "rowConfig" | "cellConfig" | "headerCellConfig" | "footerCellConfig" | "aggregateConfig" | "rowGroupConfig" | "currentRowConfig" | "currentColumnConfig" | "dragConfig" | "rowDragConfig" | "columnDragConfig" | "customConfig" | "resizeConfig" | "resizableConfig" | "seqConfig" | "sortConfig" | "filterConfig" | "radioConfig" | "checkboxConfig" | "tooltipConfig" | "exportConfig" | "importConfig" | "printConfig" | "expandConfig" | "treeConfig" | "menuConfig" | "mouseConfig" | "areaConfig" | "fnrConfig" | "keyboardConfig" | "clipConfig" | "editConfig" | "validConfig" | "editRules" | "emptyText" | "emptyRender" | "loadingConfig" | "scrollX" | "scrollY" | "virtualXConfig" | "virtualYConfig" | "scrollbarConfig" | "resizable" | "highlightCurrentRow" | "highlightHoverRow" | "highlightCurrentColumn" | "highlightHoverColumn" | "highlightCell" | "columnKey" | "rowKey" | "rowId" | "fit" | "animat" | "delayHover" | "columns" | "tableSetConfig" | "editable" | "wrapClassName" | "checkboxRecords" | "withSeq" | "withCheckbox" | "headerFilterModel" | "showToolbar" | "autoColumnWidth" | "rowBackgroundHighlight" | "reloadWithDestroy") | "getInstance" | "refreshData" | "sortCustomColumns"> & import('vue').ShallowUnwrapRef<{
488
489
  getInstance: () => import('vxe-table').VxeTableInstance | undefined;
489
490
  reloadRow: (rows: any | any[]) => void;
490
491
  getCheckedFilters(): VxeTableDefines.FilterCheckedParams<any>[] | undefined;
491
492
  clearFilter(fieldOrColumn?: import("vxe-table").VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null): void;
492
493
  refreshData: () => void;
494
+ sortCustomColumns(fields: string | string[], index: number): Promise<void>;
493
495
  }> & {} & import('vue').ComponentCustomProperties & {} & {
494
496
  $slots: Partial<Record<string, (_: any) => any>> & {
495
497
  toolbar?(_: {}): any;
@@ -1,6 +1,6 @@
1
1
  import { VxeTableDefines } from 'vxe-table';
2
2
  import { TableSetProps } from '../../../../types/table';
3
- export declare const getStore: (props: TableSetProps) => {
3
+ export declare const getStore: (props: TableSetProps, wait?: number) => {
4
4
  get: () => Promise<VxeTableDefines.CustomStoreData | {
5
5
  fixedData: Record<string, "left" | "right">;
6
6
  resizableData: undefined;
@@ -7,7 +7,7 @@ export interface UseTableCoreOptions {
7
7
  }
8
8
  export interface UseTableCoreReturn {
9
9
  tableRef: Ref<VxeTableInstance | undefined>;
10
- tableConfig: ComputedRef<any>;
10
+ tableConfig: ComputedRef<SabTableProps>;
11
11
  locale: any;
12
12
  showTable: Ref<boolean>;
13
13
  getInstance: () => VxeTableInstance | undefined;
@@ -12,8 +12,8 @@ export interface UseTableFiltersOptions {
12
12
  updateCheckboxRecords: (records: any[]) => void;
13
13
  emit: (event: string, ...args: any[]) => void;
14
14
  }
15
- export interface UseTableFiltersReturn {
15
+ export declare function useTableFilters(options: UseTableFiltersOptions): {
16
16
  handleClearColumnFilter: (field: string) => void;
17
17
  handleClearAllFilters: () => void;
18
- }
19
- export declare function useTableFilters(options: UseTableFiltersOptions): UseTableFiltersReturn;
18
+ reRenderTable: (forceDestroy?: boolean) => void;
19
+ };
@@ -23,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
23
23
  getCheckedFilters(): VxeTableDefines.FilterCheckedParams<any>[] | undefined;
24
24
  clearFilter(fieldOrColumn?: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null): void;
25
25
  refreshData: () => void;
26
+ sortCustomColumns(fields: string | string[], index: number): Promise<void>;
26
27
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
27
28
  params: import("vxe-table").VxeTablePropTypes.Params;
28
29
  name: string;