@aspire-ui/element-component-pro 1.0.28 → 1.0.29
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/dist/ProTableForm/CellEditor.vue.d.ts +8 -4
- package/dist/ProTableForm/ProTableForm.vue.d.ts +2 -0
- package/dist/ProTableForm/useProTableForm.d.ts +2 -0
- package/dist/element-component-pro.es.js +1089 -1064
- package/dist/element-component-pro.es.js.map +1 -1
- package/dist/element-component-pro.umd.js +2 -2
- package/dist/element-component-pro.umd.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/types/index.d.ts +10 -4
- package/package.json +1 -1
- package/src/ProForm/ProForm.vue +1 -0
- package/src/ProTableForm/CellEditor.vue +65 -47
- package/src/ProTableForm/ProTableForm.vue +8 -2
- package/src/ProTableForm/useProTableForm.ts +25 -0
- package/src/types/index.ts +10 -4
|
@@ -3,23 +3,27 @@ import { ProTableFormColumn, ProTableFormColumnChild, ProTableFormActionType } f
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
col: ProTableFormColumn | ProTableFormColumnChild;
|
|
5
5
|
value: unknown;
|
|
6
|
-
/** 当前行数据,用于
|
|
6
|
+
/** 当前行数据,用于 componentProps 动态求值 */
|
|
7
7
|
row?: Record<string, unknown>;
|
|
8
|
+
/** 当前行索引 */
|
|
9
|
+
index?: number;
|
|
8
10
|
size?: "medium" | "small" | "large";
|
|
9
11
|
placeholder?: string;
|
|
10
12
|
/** ProTableForm 操作实例 */
|
|
11
|
-
|
|
13
|
+
formActionType?: ProTableFormActionType;
|
|
12
14
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
15
|
update: (v: unknown) => void;
|
|
14
16
|
}, string, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
15
17
|
col: ProTableFormColumn | ProTableFormColumnChild;
|
|
16
18
|
value: unknown;
|
|
17
|
-
/** 当前行数据,用于
|
|
19
|
+
/** 当前行数据,用于 componentProps 动态求值 */
|
|
18
20
|
row?: Record<string, unknown>;
|
|
21
|
+
/** 当前行索引 */
|
|
22
|
+
index?: number;
|
|
19
23
|
size?: "medium" | "small" | "large";
|
|
20
24
|
placeholder?: string;
|
|
21
25
|
/** ProTableForm 操作实例 */
|
|
22
|
-
|
|
26
|
+
formActionType?: ProTableFormActionType;
|
|
23
27
|
}>>>, {}>;
|
|
24
28
|
export default _default;
|
|
25
29
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -64,6 +64,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
64
64
|
getModelValue: () => Record<string, unknown>[];
|
|
65
65
|
setModelValue: (val: Record<string, unknown>[]) => void;
|
|
66
66
|
getFormRef: () => import('..').FormInstance | null;
|
|
67
|
+
getRow: (index: number) => Record<string, unknown>;
|
|
68
|
+
setRow: (index: number, row: Record<string, unknown>) => void;
|
|
67
69
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
70
|
"update:modelValue": (v: Record<string, unknown>[]) => void;
|
|
69
71
|
"add-row": () => void;
|
|
@@ -45,6 +45,8 @@ export interface UseProTableFormReturn {
|
|
|
45
45
|
setCellValue: (tableRow: TableRow, col: ProTableFormColumn, childKey: string | undefined, val: unknown) => void;
|
|
46
46
|
handleAddRow: () => void;
|
|
47
47
|
handleRemoveRow: (index: number) => void;
|
|
48
|
+
getRow: (index: number) => Record<string, unknown>;
|
|
49
|
+
setRow: (index: number, row: Record<string, unknown>) => void;
|
|
48
50
|
validate: () => Promise<boolean>;
|
|
49
51
|
clearValidate: (propsArg?: string | string[]) => void;
|
|
50
52
|
}
|