vft 0.0.440 → 0.0.442

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 (47) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/components/carousel/use-carousel.js +1 -1
  4. package/es/components/config-provider/hooks/use-global-config.js +3 -3
  5. package/es/components/input/input.vue2.js +4 -4
  6. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  7. package/es/components/pagination/index.d.ts +3 -1
  8. package/es/components/pagination/pagination.vue.d.ts +3 -1
  9. package/es/components/pagination/pagination.vue2.js +47 -44
  10. package/es/components/super-form/super-form-item.vue2.js +1 -1
  11. package/es/components/table/constants.d.ts +2 -1
  12. package/es/components/table/constants.js +2 -2
  13. package/es/components/table/field.d.ts +60 -0
  14. package/es/components/table/index.d.ts +1224 -551
  15. package/es/components/table/table.vue.d.ts +291 -124
  16. package/es/components/table/table.vue2.js +130 -127
  17. package/es/components/table/types.d.ts +48 -43
  18. package/es/components/table/use/use-data-source.js +69 -69
  19. package/es/components/table/use/use-pagination.d.ts +11 -7
  20. package/es/components/table/use/use-pagination.js +36 -46
  21. package/es/components/table/utils.d.ts +24 -4
  22. package/es/package.json.d.ts +2 -1
  23. package/es/package.json.js +1 -1
  24. package/es/utils/vue/vnode.js +1 -1
  25. package/lib/components/input/input.vue2.cjs +1 -1
  26. package/lib/components/pagination/index.d.ts +3 -1
  27. package/lib/components/pagination/pagination.vue.d.ts +3 -1
  28. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  29. package/lib/components/table/constants.cjs +1 -1
  30. package/lib/components/table/constants.d.ts +2 -1
  31. package/lib/components/table/field.d.ts +60 -0
  32. package/lib/components/table/index.d.ts +1224 -551
  33. package/lib/components/table/table.vue.d.ts +291 -124
  34. package/lib/components/table/table.vue2.cjs +1 -1
  35. package/lib/components/table/types.d.ts +48 -43
  36. package/lib/components/table/use/use-data-source.cjs +1 -1
  37. package/lib/components/table/use/use-pagination.cjs +1 -1
  38. package/lib/components/table/use/use-pagination.d.ts +11 -7
  39. package/lib/components/table/utils.d.ts +24 -4
  40. package/lib/package.json.cjs +1 -1
  41. package/lib/package.json.d.ts +2 -1
  42. package/package.json +6 -5
  43. package/tags.json +1 -1
  44. package/theme-style/index.css +1 -1
  45. package/theme-style/src/table.scss +6 -1
  46. package/theme-style/vft-table.css +1 -1
  47. package/web-types.json +1 -1
@@ -1,8 +1,19 @@
1
1
  import type { ColumnItemProps } from './types';
2
+ /** 序号列配置 */
2
3
  export declare const SEQ_FIELD: ColumnItemProps;
4
+ /** 复选框列配置 */
3
5
  export declare const CHECKED_FIELD: ColumnItemProps;
6
+ /** ID 列配置 */
4
7
  export declare const ID_FIELD: ColumnItemProps;
8
+ /** 名称列配置 */
5
9
  export declare const NAME_FIELD: ColumnItemProps;
10
+ /**
11
+ * 日期列配置生成器
12
+ * @param format - 日期格式,默认为 'YYYY-MM-DD'
13
+ * @param field - 字段名,默认为 'date'
14
+ * @param title - 列标题,默认为 '时间'
15
+ * @returns 日期列配置对象
16
+ */
6
17
  export declare const DATE_FIELD: ({ format, field, title, }?: {
7
18
  format?: string | undefined;
8
19
  field?: string | undefined;
@@ -15,6 +26,13 @@ export declare const DATE_FIELD: ({ format, field, title, }?: {
15
26
  row: any;
16
27
  }) => string;
17
28
  };
29
+ /**
30
+ * 日期时间列配置生成器
31
+ * @param format - 日期时间格式,默认为 'YYYY-MM-DD HH:mm:ss'
32
+ * @param field - 字段名,默认为 'date'
33
+ * @param title - 列标题,默认为 '时间'
34
+ * @returns 日期时间列配置对象
35
+ */
18
36
  export declare const DATE_TIME_FIELD: ({ format, field, title, }?: {
19
37
  format?: string | undefined;
20
38
  field?: string | undefined;
@@ -27,6 +45,13 @@ export declare const DATE_TIME_FIELD: ({ format, field, title, }?: {
27
45
  row: any;
28
46
  }) => string;
29
47
  };
48
+ /**
49
+ * 创建时间列配置生成器
50
+ * @param format - 日期时间格式,默认为 'YYYY-MM-DD HH:mm:ss'
51
+ * @param field - 字段名,默认为 'createTime'
52
+ * @param title - 列标题,默认为 '创建时间'
53
+ * @returns 创建时间列配置对象
54
+ */
30
55
  export declare const CREATE_TIME_FIELD: ({ format, field, title, }?: {
31
56
  format?: string | undefined;
32
57
  field?: string | undefined;
@@ -39,6 +64,13 @@ export declare const CREATE_TIME_FIELD: ({ format, field, title, }?: {
39
64
  row: any;
40
65
  }) => string;
41
66
  };
67
+ /**
68
+ * 更新时间列配置生成器
69
+ * @param format - 日期时间格式,默认为 'YYYY-MM-DD HH:mm:ss'
70
+ * @param field - 字段名,默认为 'updateTime'
71
+ * @param title - 列标题,默认为 '更新时间'
72
+ * @returns 更新时间列配置对象
73
+ */
42
74
  export declare const UPDATE_TIME_FIELD: ({ format, field, title, }?: {
43
75
  format?: string | undefined;
44
76
  field?: string | undefined;
@@ -51,6 +83,15 @@ export declare const UPDATE_TIME_FIELD: ({ format, field, title, }?: {
51
83
  row: any;
52
84
  }) => string;
53
85
  };
86
+ /**
87
+ * 状态列配置生成器
88
+ * @param field - 字段名,默认为 'status'
89
+ * @param title - 列标题,默认为 '状态'
90
+ * @param normalText - 正常状态显示文本,默认为 '正常'
91
+ * @param disabledText - 禁用状态显示文本,默认为 '禁用'
92
+ * @param strToNumber - 是否将字符串转换为数字进行判断,默认为 true
93
+ * @returns 状态列配置对象
94
+ */
54
95
  export declare const STATUS_FIELD: ({ field, title, normalText, disabledText, strToNumber, }?: {
55
96
  field?: string | undefined;
56
97
  title?: string | undefined;
@@ -58,14 +99,33 @@ export declare const STATUS_FIELD: ({ field, title, normalText, disabledText, st
58
99
  disabledText?: string | undefined;
59
100
  strToNumber?: boolean | undefined;
60
101
  }) => ColumnItemProps;
102
+ /** 操作列配置参数接口 */
61
103
  interface ActionFieldProps {
104
+ /** 确认删除提示文本 */
62
105
  confirmText?: string;
106
+ /** 左侧按钮点击回调函数 */
63
107
  leftCallback?: (data?: any) => void;
108
+ /** 右侧按钮点击回调函数,支持异步操作 */
64
109
  rightCallback?: ((data?: any) => Promise<any>) | ((data?: any) => void);
110
+ /** 左侧按钮文本 */
65
111
  leftText?: string;
112
+ /** 右侧按钮文本 */
66
113
  rightText?: string;
114
+ /** 是否显示左侧按钮 */
67
115
  showLeft?: boolean;
116
+ /** 是否显示右侧按钮 */
68
117
  showRight?: boolean;
69
118
  }
119
+ /**
120
+ * 操作列配置生成器
121
+ * @param confirmText - 确认删除提示文本,默认为 '确认删除?'
122
+ * @param leftCallback - 左侧按钮点击回调
123
+ * @param rightCallback - 右侧按钮点击回调
124
+ * @param leftText - 左侧按钮文本,默认为 '编辑'
125
+ * @param rightText - 右侧按钮文本,默认为 '删除'
126
+ * @param showLeft - 是否显示左侧按钮,默认为 true
127
+ * @param showRight - 是否显示右侧按钮,默认为 true
128
+ * @returns 操作列配置对象
129
+ */
70
130
  export declare const ACTION_FIELD: ({ confirmText, leftCallback, rightCallback, leftText, rightText, showLeft, showRight, }?: ActionFieldProps) => ColumnItemProps;
71
131
  export {};