@wx-design/components 0.6.5 → 0.7.0
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/Table/components/TableSet/ColumnSet.vue.d.ts +18 -0
- package/es/core/Table/components/TableSet/index.vue.d.ts +17 -0
- package/es/core/Table/components/TableSet/utils.d.ts +19 -0
- package/es/core/Table/components/Toolbar/index.vue.d.ts +4 -1
- package/es/core/Table/index.vue.d.ts +6 -5
- package/es/index.d.ts +1 -0
- package/es/index.mjs +6353 -1134
- package/es/style.css +1 -1
- package/lib/core/Table/components/TableSet/ColumnSet.vue.d.ts +18 -0
- package/lib/core/Table/components/TableSet/index.vue.d.ts +17 -0
- package/lib/core/Table/components/TableSet/utils.d.ts +19 -0
- package/lib/core/Table/components/Toolbar/index.vue.d.ts +4 -1
- package/lib/core/Table/index.vue.d.ts +6 -5
- package/lib/index.d.ts +1 -0
- package/lib/index.js +10 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +2 -1
- package/types/table/column.d.ts +2 -2
- package/types/table/index.d.ts +3 -0
- package/types/table/table-set.d.ts +43 -0
- package/types/table/table.d.ts +5 -9
- package/types/table/toolbar.d.ts +6 -7
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TableSetColumnsProps } from "../../../../types/table/table-set";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TableSetColumnsProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
"update:columns": (...args: any[]) => void;
|
|
4
|
+
"update:config-columns": (...args: any[]) => void;
|
|
5
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableSetColumnsProps>>> & {
|
|
6
|
+
"onUpdate:columns"?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
"onUpdate:config-columns"?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}, {}, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TableSetProps } from "../../../../types/table/table-set";
|
|
2
|
+
import { SabColumnProps } from "../../../../types/table";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TableSetProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:columns": (columns: SabColumnProps[]) => void;
|
|
5
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableSetProps>>> & {
|
|
6
|
+
"onUpdate:columns"?: ((columns: SabColumnProps[]) => any) | undefined;
|
|
7
|
+
}, {}, {}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TableSetProps, SabTableSetConfig, SabColumnProps } from "../../../../types/table";
|
|
2
|
+
/**
|
|
3
|
+
* 本地获取存储的配置项
|
|
4
|
+
* @param param0
|
|
5
|
+
* @returns {SabTableSetConfig}
|
|
6
|
+
*/
|
|
7
|
+
export declare const getConfigDefault: TableSetProps["getTableConfig"];
|
|
8
|
+
/**
|
|
9
|
+
* 本地存储配置项
|
|
10
|
+
* @param param0
|
|
11
|
+
*/
|
|
12
|
+
export declare const setConfigDefault: TableSetProps["setTableConfig"];
|
|
13
|
+
/**
|
|
14
|
+
* 将 columns 按 缓存配置项 pureColumns 进行排序与显隐控制
|
|
15
|
+
* 1. 字段项的优先级以 columns 为准,columns 没有的直接排除
|
|
16
|
+
* 2. 排序以 pureColumns 为准,columns 中不在 pureColumns 内的排在最后
|
|
17
|
+
* 3. 将 pureColumn 的 visible 和 fixed 属性合到 columns 中
|
|
18
|
+
*/
|
|
19
|
+
export declare const modifyColumnsByPureColumns: (columns?: SabColumnProps[], pureColumns?: SabTableSetConfig["columns"]) => SabColumnProps[];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { ToolbarProps } from "../../../../types/table";
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ToolbarProps<import("vxe-table/types/table").VxeTableDataRow>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ToolbarProps<import("vxe-table/types/table").VxeTableDataRow>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
[x: string]: (...args: unknown[]) => void;
|
|
4
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ToolbarProps<import("vxe-table/types/table").VxeTableDataRow>>>>, {}, {}>, {
|
|
3
5
|
default?(_: {}): any;
|
|
6
|
+
"toolbar-right"?(_: {}): any;
|
|
4
7
|
}>;
|
|
5
8
|
export default _default;
|
|
6
9
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -5,19 +5,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
5
5
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
6
|
[x: string]: (...args: unknown[]) => void;
|
|
7
7
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabTableProps>, Partial<SabTableProps>>>>, {
|
|
8
|
+
name: string;
|
|
8
9
|
data: import("vxe-table").VxeTablePropTypes.Data<import("vxe-table").VxeTableDataRow>;
|
|
9
10
|
class: any;
|
|
10
|
-
columns: Partial<import("../../types/table").SabColumnProps<import("vxe-table").VxeTableDataRow>>[];
|
|
11
11
|
id: string;
|
|
12
12
|
size: import("vxe-table").SizeType;
|
|
13
13
|
cellClassName: import("vxe-table").VxeTablePropTypes.CellClassName<import("vxe-table").VxeTableDataRow>;
|
|
14
14
|
editable: boolean;
|
|
15
15
|
border: import("vxe-table").VxeTablePropTypes.Border;
|
|
16
|
+
columns: Partial<import("../../types/table").SabColumnProps<import("vxe-table").VxeTableDataRow>>[];
|
|
16
17
|
loading: boolean;
|
|
17
18
|
round: boolean;
|
|
19
|
+
maxHeight: import("vxe-table").VxeTablePropTypes.MaxHeight;
|
|
18
20
|
height: import("vxe-table").VxeTablePropTypes.Height;
|
|
19
21
|
minHeight: import("vxe-table").VxeTablePropTypes.MinHeight;
|
|
20
|
-
maxHeight: import("vxe-table").VxeTablePropTypes.MaxHeight;
|
|
21
22
|
stripe: boolean;
|
|
22
23
|
align: import("vxe-table").VxeTablePropTypes.Align;
|
|
23
24
|
headerAlign: import("vxe-table").VxeTablePropTypes.Align;
|
|
@@ -89,6 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
90
|
fit: boolean;
|
|
90
91
|
animat: boolean;
|
|
91
92
|
delayHover: number;
|
|
93
|
+
tableSetConfig: Partial<import("../../types/table").TableSetProps>;
|
|
92
94
|
wrapClassName: any;
|
|
93
95
|
withSeq: boolean;
|
|
94
96
|
withCheckbox: boolean;
|
|
@@ -96,10 +98,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
96
98
|
autoClearSelected: boolean;
|
|
97
99
|
autoColumnWidth: boolean;
|
|
98
100
|
selectWhenClickRow: boolean;
|
|
99
|
-
rowBackgroundHighlight: boolean;
|
|
100
|
-
rowBorderHighlight: boolean;
|
|
101
101
|
}, {}>, Partial<Record<string, (_: any) => any>> & {
|
|
102
|
-
|
|
102
|
+
toolbar?(_: {}): any;
|
|
103
|
+
"toolbar-right"?(_: {}): any;
|
|
103
104
|
"table-footer"?(_: {}): any;
|
|
104
105
|
}>;
|
|
105
106
|
export default _default;
|
package/es/index.d.ts
CHANGED