@vtj/ui 0.6.11 → 0.6.13
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/cdn/index.js +1 -1
- package/cdn/style.css +1 -1
- package/lib/index.js +1723 -1353
- package/lib/style.css +1 -1
- package/package.json +5 -5
- package/types/components/dialog/Dialog.d.ts +2 -1
- package/types/components/field/Field.d.ts +66 -9
- package/types/components/field/builtin.d.ts +7 -0
- package/types/components/field/editors/CheckboxEditor.d.ts +29 -0
- package/types/components/field/editors/RadioEditor.d.ts +29 -0
- package/types/components/field/editors/SelectEditor.d.ts +27 -2
- package/types/components/field/editors/index.d.ts +4 -0
- package/types/components/field/hooks/useEditor.d.ts +7 -8
- package/types/components/field/types.d.ts +84 -8
- package/types/components/form/Form.d.ts +75 -2
- package/types/components/form/types.d.ts +61 -1
- package/types/version.d.ts +1 -1
|
@@ -1 +1,61 @@
|
|
|
1
|
-
|
|
1
|
+
import { PropType, InjectionKey, ComponentInternalInstance } from 'vue';
|
|
2
|
+
import { ComponentPropsType } from '../shared';
|
|
3
|
+
import type Form from "./Form";
|
|
4
|
+
export declare const formProps: {
|
|
5
|
+
/**
|
|
6
|
+
* 表单模型
|
|
7
|
+
*/
|
|
8
|
+
model: {
|
|
9
|
+
type: PropType<Record<string, any>>;
|
|
10
|
+
default(): any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* inline模式
|
|
14
|
+
*/
|
|
15
|
+
inline: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* inline模式显示列数
|
|
20
|
+
*/
|
|
21
|
+
inlineColumns: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 显示底部操作按钮
|
|
26
|
+
*/
|
|
27
|
+
footer: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 提交按钮文本
|
|
33
|
+
*/
|
|
34
|
+
submitText: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 重置按钮文本
|
|
40
|
+
*/
|
|
41
|
+
resetText: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 表单提交处理方法
|
|
47
|
+
*/
|
|
48
|
+
submitMethod: {
|
|
49
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export type FormProps = ComponentPropsType<typeof formProps>;
|
|
53
|
+
export type FormEmits = {
|
|
54
|
+
change: [model: Record<string, any>];
|
|
55
|
+
submit: [model: Record<string, any>];
|
|
56
|
+
reset: [];
|
|
57
|
+
};
|
|
58
|
+
export type FormInstance = InstanceType<typeof Form>;
|
|
59
|
+
export declare const formInstanceKey: InjectionKey<ComponentInternalInstance | null>;
|
|
60
|
+
export type FormModel = Record<string, any>;
|
|
61
|
+
export declare const formModelKey: InjectionKey<FormModel | null>;
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.6.
|
|
1
|
+
export declare const version = "0.6.13";
|