antd-vue-dbthor 1.0.13 → 1.0.14

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.
@@ -46,6 +46,20 @@ export type ciesBtnsVNode = Ref<Partial<{
46
46
  ImportBtn: VNode | JSX.Element;
47
47
  ExportBtn: VNode | JSX.Element;
48
48
  }>>;
49
+ export type controlColumnBtnVNode = {
50
+ DetailBtn: VNode | JSX.Element;
51
+ EditBtn: VNode | JSX.Element;
52
+ DeleteBtn: VNode | JSX.Element;
53
+ };
54
+ export type controlColumnMethods = {
55
+ deleteRow: (record: any) => Promise<any>;
56
+ editRow: (record: any) => Promise<any>;
57
+ openRowDetails: (record: any) => Promise<any>;
58
+ };
59
+ export type queryFormBtnVNode = {
60
+ SubmitBtn: VNode | JSX.Element;
61
+ ResetBtn: VNode | JSX.Element;
62
+ };
49
63
  export interface TableProps extends Omit<ATableProps, 'columns' | 'loading'> {
50
64
  full?: boolean;
51
65
  tableTextConfig?: TableTextConfig;
@@ -62,7 +76,9 @@ export interface TableProps extends Omit<ATableProps, 'columns' | 'loading'> {
62
76
  columns?: TableColumnProps[];
63
77
  columnsTitleNoWrap?: TableUseColumnsProps['columnsTitleNoWrap'];
64
78
  indexColumn?: TableUseColumnsProps['indexColumn'];
79
+ indexColumnWidth?: TableUseColumnsProps['indexColumnWidth'];
65
80
  controlColumn?: TableUseColumnsProps['controlColumn'];
81
+ controlColumnWidth?: TableUseColumnsProps['controlColumnWidth'];
66
82
  columnsAlign?: TableColumnProps['align'];
67
83
  columnsTimeFormat?: TableUseColumnsProps['columnsTimeFormat'];
68
84
  columnsEmptyText?: TableUseColumnsProps['columnsEmptyText'];
@@ -167,22 +183,8 @@ export type TableSlots = {
167
183
  customFilterIcon?: any;
168
184
  customFilterDropdown?: any;
169
185
  default?: any;
170
- queryFormExtraLeft?: (form: TableQueryFormInstance) => VNode[] | JSX.Element[];
171
- queryFormExtraCenter?: (form: TableQueryFormInstance) => VNode[] | JSX.Element[];
172
- queryFormExtraRight?: (form: TableQueryFormInstance) => VNode[] | JSX.Element[];
173
- controlColumnBtnExtraDetailStart?: (obj: {
174
- opt: TableColumnCustomRenderArgs;
175
- metaColumn: TableColumnProps;
176
- }) => VNode[] | JSX.Element[];
177
- controlColumnBtnExtraEditLeft?: (obj: {
178
- opt: TableColumnCustomRenderArgs;
179
- metaColumn: TableColumnProps;
180
- }) => VNode[] | JSX.Element[];
181
- controlColumnBtnExtraEditRight?: (obj: {
182
- opt: TableColumnCustomRenderArgs;
183
- metaColumn: TableColumnProps;
184
- }) => VNode[] | JSX.Element[];
185
- controlColumnBtnExtraEnd?: (obj: {
186
+ customQueryFormBtns?: (originNode: queryFormBtnVNode, form: TableQueryFormInstance) => VNode[] | JSX.Element[];
187
+ customControlColumnBtns?: (originNode: controlColumnBtnVNode & controlColumnMethods, obj: {
186
188
  opt: TableColumnCustomRenderArgs;
187
189
  metaColumn: TableColumnProps;
188
190
  }) => VNode[] | JSX.Element[];
@@ -5,7 +5,6 @@ import { default as numeral } from 'numeral';
5
5
  import { EmitFn, Reactive, Ref, VNode } from 'vue';
6
6
  import { TableProps, TableSlots, TableTextConfig } from './index.type';
7
7
  import { TableUseCUFormItemProps, TableUseCUReturnOptions } from './useCU';
8
- import { JSX } from 'vue/jsx-runtime';
9
8
  import { TableDescItemsProps } from './useDetail';
10
9
 
11
10
  export declare const formatterObjValueWithDate: (obj: {
@@ -43,7 +42,9 @@ export interface TableUseColumnsProps {
43
42
  columns?: TableColumnProps[];
44
43
  columnsAlign?: TableColumnProps['align'];
45
44
  indexColumn?: boolean;
45
+ indexColumnWidth?: number;
46
46
  controlColumn?: boolean;
47
+ controlColumnWidth?: number;
47
48
  pagination?: Ref<{
48
49
  page: number;
49
50
  pageSize: number;
@@ -61,11 +62,7 @@ export interface TableUseColumnsProps {
61
62
  delete: false | (ButtonProps & {
62
63
  children?: VNode | string;
63
64
  });
64
- } | ((orgNode: {
65
- DetailBtn: VNode;
66
- EditBtn: VNode;
67
- DeleteBtn: VNode;
68
- }, methods: TableColumnRowMethods) => VNode | JSX.Element);
65
+ };
69
66
  slots?: TableSlots;
70
67
  openCUModalForm?: TableUseCUReturnOptions['openCUModalForm'] | any;
71
68
  updateSource?: () => Promise<void>;