@wx-design/components 0.5.2 → 0.6.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/CellEditors/Boolean.d.ts +2 -7
- package/es/core/Table/components/CellEditors/DynamicCell.d.ts +8 -0
- package/es/core/Table/components/CellEditors/PopOver.d.ts +3 -4
- package/es/core/Table/components/CellEditors/Select.d.ts +2 -1
- package/es/core/Table/configs/column.d.ts +2 -0
- package/es/core/Table/constants.d.ts +2 -1
- package/es/core/Table/index.vue.d.ts +1 -2
- package/es/demos/table/mock.d.ts +5 -0
- package/es/index.mjs +771 -698
- package/es/style.css +1 -1
- package/lib/core/Table/components/CellEditors/Boolean.d.ts +2 -7
- package/lib/core/Table/components/CellEditors/DynamicCell.d.ts +8 -0
- package/lib/core/Table/components/CellEditors/PopOver.d.ts +3 -4
- package/lib/core/Table/components/CellEditors/Select.d.ts +2 -1
- package/lib/core/Table/configs/column.d.ts +2 -0
- package/lib/core/Table/constants.d.ts +2 -1
- package/lib/core/Table/index.vue.d.ts +1 -2
- package/lib/demos/table/mock.d.ts +5 -0
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/types/table/column.d.ts +63 -16
- package/types/table/table.d.ts +0 -2
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 单元格-Boolean
|
|
3
3
|
*/
|
|
4
|
+
import { CheckboxProps } from "element-plus";
|
|
4
5
|
import type { SabColumnProps } from "../../../../types/table";
|
|
5
|
-
declare const SabCellBoolean: import("vue").DefineComponent<{
|
|
6
|
-
modelValue: StringConstructor;
|
|
7
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
modelValue: StringConstructor;
|
|
9
|
-
}>> & {
|
|
10
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
}, {}, {}>;
|
|
6
|
+
declare const SabCellBoolean: import("vue").DefineComponent<CheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<CheckboxProps>, {}, {}>;
|
|
12
7
|
export default SabCellBoolean;
|
|
13
8
|
export declare const config: Partial<SabColumnProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TODO: 单元格编辑-动态
|
|
3
|
+
*/
|
|
4
|
+
import { InputProps } from "element-plus";
|
|
5
|
+
import type { SabColumnProps } from "../../../../types/table";
|
|
6
|
+
declare const SabDynamicCell: import("vue").DefineComponent<InputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<InputProps>, {}, {}>;
|
|
7
|
+
export default SabDynamicCell;
|
|
8
|
+
export declare const config: Partial<SabColumnProps>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TODO: 单元格编辑-轻弹窗 Popover
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import type { SabColumnProps, VxeColumnSlotTypes, VxeTableDataRow } from "../../../../types/table";
|
|
4
|
+
import type { SabColumnProps, VxeColumnSlotTypes, VxeTableDataRow, SabPopoverParams } from "../../../../types/table";
|
|
6
5
|
type SabCellEditPopoverProps = {
|
|
7
6
|
column: SabColumnProps;
|
|
8
7
|
scope: VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>;
|
|
9
|
-
popover
|
|
8
|
+
popover: Partial<SabPopoverParams>;
|
|
10
9
|
};
|
|
11
|
-
declare const SabCellEditPopover:
|
|
10
|
+
declare const SabCellEditPopover: (props: Partial<SabCellEditPopoverProps> & {}) => any;
|
|
12
11
|
export default SabCellEditPopover;
|
|
13
12
|
export declare const config: Partial<SabColumnProps>;
|
|
@@ -20,7 +20,7 @@ declare const SabCellEditSelect: import("vue").DefineComponent<{
|
|
|
20
20
|
type: StringConstructor;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:label")[], "update:modelValue" | "update:label", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
24
|
options: ArrayConstructor;
|
|
25
25
|
modelValue: {
|
|
26
26
|
type: StringConstructor;
|
|
@@ -40,6 +40,7 @@ declare const SabCellEditSelect: import("vue").DefineComponent<{
|
|
|
40
40
|
};
|
|
41
41
|
}>> & {
|
|
42
42
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
"onUpdate:label"?: ((...args: any[]) => any) | undefined;
|
|
43
44
|
}, {
|
|
44
45
|
modelValue: string;
|
|
45
46
|
labelKey: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { SabCellType } from "../constants";
|
|
1
2
|
import type { SabColumnProps, SabTableProps } from "../../../types/table";
|
|
2
3
|
export declare const defaultColumnConfig: Partial<SabColumnProps>;
|
|
4
|
+
export declare const generateCellRender: (sabCellType?: SabCellType) => Partial<SabColumnProps> | undefined;
|
|
3
5
|
export declare const modifyColumnConfig: (column: SabColumnProps) => SabColumnProps;
|
|
4
6
|
export declare const setColumnWidth: (column: SabColumnProps, tableConfig: Partial<SabTableProps>) => SabColumnProps;
|
|
5
7
|
export declare const setDefaultColumnConfigs: (columns: SabColumnProps[], tableConfig: Partial<SabTableProps>) => SabColumnProps[];
|
|
@@ -12,13 +12,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
12
|
size: import("vxe-table").SizeType;
|
|
13
13
|
cellClassName: import("vxe-table").VxeTablePropTypes.CellClassName<import("vxe-table").VxeTableDataRow>;
|
|
14
14
|
editable: boolean;
|
|
15
|
+
border: import("vxe-table").VxeTablePropTypes.Border;
|
|
15
16
|
loading: boolean;
|
|
16
17
|
round: boolean;
|
|
17
18
|
height: import("vxe-table").VxeTablePropTypes.Height;
|
|
18
19
|
minHeight: import("vxe-table").VxeTablePropTypes.MinHeight;
|
|
19
20
|
maxHeight: import("vxe-table").VxeTablePropTypes.MaxHeight;
|
|
20
21
|
stripe: boolean;
|
|
21
|
-
border: import("vxe-table").VxeTablePropTypes.Border;
|
|
22
22
|
align: import("vxe-table").VxeTablePropTypes.Align;
|
|
23
23
|
headerAlign: import("vxe-table").VxeTablePropTypes.Align;
|
|
24
24
|
footerAlign: import("vxe-table").VxeTablePropTypes.Align;
|
|
@@ -89,7 +89,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
89
|
fit: boolean;
|
|
90
90
|
animat: boolean;
|
|
91
91
|
delayHover: number;
|
|
92
|
-
popoverConfig: import("../../types/table").SabPopoverParams;
|
|
93
92
|
wrapClassName: any;
|
|
94
93
|
withSeq: boolean;
|
|
95
94
|
withCheckbox: boolean;
|
package/es/demos/table/mock.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const mockData: ({
|
|
|
3
3
|
name: string;
|
|
4
4
|
nickname: string;
|
|
5
5
|
role: string;
|
|
6
|
+
roleId: string;
|
|
6
7
|
sex: string;
|
|
7
8
|
sex2: string[];
|
|
8
9
|
num1: number;
|
|
@@ -18,6 +19,7 @@ export declare const mockData: ({
|
|
|
18
19
|
name: string;
|
|
19
20
|
nickname: string;
|
|
20
21
|
role: string;
|
|
22
|
+
roleId: string;
|
|
21
23
|
sex: string;
|
|
22
24
|
sex2: string[];
|
|
23
25
|
num1: number;
|
|
@@ -33,6 +35,7 @@ export declare const mockData: ({
|
|
|
33
35
|
name: string;
|
|
34
36
|
nickname: string;
|
|
35
37
|
role: string;
|
|
38
|
+
roleId: string;
|
|
36
39
|
sex: string;
|
|
37
40
|
sex2: string[];
|
|
38
41
|
num1: number;
|
|
@@ -48,6 +51,7 @@ export declare const mockData: ({
|
|
|
48
51
|
name: string;
|
|
49
52
|
nickname: string;
|
|
50
53
|
role: string;
|
|
54
|
+
roleId: string;
|
|
51
55
|
sex: string;
|
|
52
56
|
sex2: string[];
|
|
53
57
|
num1: number;
|
|
@@ -63,6 +67,7 @@ export declare const mockData: ({
|
|
|
63
67
|
name: string;
|
|
64
68
|
nickname: string;
|
|
65
69
|
role: string;
|
|
70
|
+
roleId: string;
|
|
66
71
|
sex: string;
|
|
67
72
|
sex2: string[];
|
|
68
73
|
num1: number;
|