@wx-design/components 1.3.9 → 1.4.0-alpha.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.
- package/es/core/ConfigProvider/index.d.ts +5 -1
- package/es/core/Modal/index.vue.d.ts +2 -2
- package/es/core/Select/index.vue.d.ts +2 -2
- package/es/core/Table/components/CellEditors/Boolean.d.ts +0 -2
- package/es/core/Table/components/FilterTagsDisplay/index.vue.d.ts +1 -1
- package/es/core/Table/components/TableSet/ColumnSet.vue.d.ts +2 -490
- package/es/core/Table/components/TableSet/ColumnSetBody.vue.d.ts +489 -0
- package/es/core/Table/components/TableSet/index.vue.d.ts +1 -6
- package/es/core/Table/components/TableSet/store.d.ts +11 -0
- package/es/core/Table/components/TableSet/utils.d.ts +9 -9
- package/es/core/Table/index.vue.d.ts +2 -2
- package/es/index.mjs +15445 -13322
- package/es/locales/lang/bn.d.ts +5 -1
- package/es/locales/lang/en.d.ts +5 -1
- package/es/locales/lang/vi.d.ts +5 -1
- package/es/locales/lang/zh-cn.d.ts +5 -1
- package/es/locales/useLocale.d.ts +5 -1
- package/es/style.css +1 -1
- package/lib/core/ConfigProvider/index.d.ts +5 -1
- package/lib/core/Modal/index.vue.d.ts +2 -2
- package/lib/core/Select/index.vue.d.ts +2 -2
- package/lib/core/Table/components/CellEditors/Boolean.d.ts +0 -2
- package/lib/core/Table/components/FilterTagsDisplay/index.vue.d.ts +1 -1
- package/lib/core/Table/components/TableSet/ColumnSet.vue.d.ts +2 -490
- package/lib/core/Table/components/TableSet/ColumnSetBody.vue.d.ts +489 -0
- package/lib/core/Table/components/TableSet/index.vue.d.ts +1 -6
- package/lib/core/Table/components/TableSet/store.d.ts +11 -0
- package/lib/core/Table/components/TableSet/utils.d.ts +9 -9
- package/lib/core/Table/index.vue.d.ts +2 -2
- package/lib/index.js +7 -7
- package/lib/locales/lang/bn.d.ts +5 -1
- package/lib/locales/lang/en.d.ts +5 -1
- package/lib/locales/lang/vi.d.ts +5 -1
- package/lib/locales/lang/zh-cn.d.ts +5 -1
- package/lib/locales/useLocale.d.ts +5 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/types/table/column.d.ts +0 -2
- package/types/table/table-set.d.ts +2 -18
package/package.json
CHANGED
package/types/table/column.d.ts
CHANGED
|
@@ -285,8 +285,6 @@ export type SabColumnProps<D = VxeTableDataRow> = VxeColumnProps<D> & {
|
|
|
285
285
|
enableAutoWidth?: boolean;
|
|
286
286
|
|
|
287
287
|
// 其他
|
|
288
|
-
// 参与批量操作, 如果单元格支持编辑的话,默认 true,否则false
|
|
289
|
-
enableBatchAction?: boolean;
|
|
290
288
|
// 不参与动态表头控制
|
|
291
289
|
noHeaderSet?: boolean;
|
|
292
290
|
// 参与表格尾部汇总
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { VxeTableInstance } from "vxe-table";
|
|
2
2
|
import type { SabColumnProps } from "./column";
|
|
3
3
|
|
|
4
|
-
type PureColumn = Pick<SabColumnProps, "field" | "title" | "visible" | "fixed" | "enableBatchAction"> & { __table__seq: number };
|
|
5
|
-
|
|
6
|
-
// 表格配置项存储类型
|
|
7
|
-
export type SabTableSetConfig = {
|
|
8
|
-
// 存储表头排序及显隐控制
|
|
9
|
-
columns?: PureColumn[]
|
|
10
|
-
}
|
|
11
|
-
|
|
12
4
|
export interface TableSetProps {
|
|
13
5
|
// 表名key
|
|
14
6
|
name: string;
|
|
@@ -20,16 +12,14 @@ export interface TableSetProps {
|
|
|
20
12
|
getTableConfig?: (params: {
|
|
21
13
|
// 表名
|
|
22
14
|
name: string;
|
|
23
|
-
}) =>
|
|
15
|
+
}) => VxeTableDefines.CustomStoreData | Promise<VxeTableDefines.CustomStoreData>;
|
|
24
16
|
// 设置表格配置的方法
|
|
25
17
|
setTableConfig?: (params: {
|
|
26
18
|
// 表名
|
|
27
19
|
name: string;
|
|
28
20
|
// 表格配置项
|
|
29
|
-
config:
|
|
21
|
+
config: VxeTableDefines.CustomStoreData;
|
|
30
22
|
}) => any;
|
|
31
|
-
// 当设置完表格的时候触发
|
|
32
|
-
onSetTableConfig?:() => void
|
|
33
23
|
// vxe-table 实例
|
|
34
24
|
tableRef?: VxeTableInstance;
|
|
35
25
|
size?: 'small' | 'large' | 'default'
|
|
@@ -37,13 +27,7 @@ export interface TableSetProps {
|
|
|
37
27
|
|
|
38
28
|
// ColumnSet 表头设置配置
|
|
39
29
|
export interface TableSetColumnsProps {
|
|
40
|
-
// 表格传入的 columns
|
|
41
|
-
columns?: SabColumnProps[]
|
|
42
|
-
// 初始列表配置
|
|
43
|
-
initColumns?: PureColumn[];
|
|
44
30
|
// vxe-table 实例
|
|
45
31
|
tableRef?: VxeTableInstance;
|
|
46
|
-
// 展示批量操作列
|
|
47
|
-
showBatchActionColumn?: boolean
|
|
48
32
|
size?: 'small' | 'large' | 'default'
|
|
49
33
|
}
|