@squirrel-cloud/ui-vue 0.2.41 → 0.2.43
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/components/form/form.d.ts +2 -2
- package/dist/props/input/input.d.ts +4 -0
- package/dist/squirrel-cloud-ui-vue.js +1244 -1233
- package/dist/squirrel-cloud-ui-vue.umd.cjs +22 -22
- package/dist/typings/Form.d.ts +10 -9
- package/dist/typings/PopoverTrigger.d.ts +1 -1
- package/dist/typings/TriggerType.d.ts +1 -1
- package/package.json +1 -1
package/dist/typings/Form.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare interface FormRule {
|
|
|
26
26
|
requiredText?: string
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* 响应触发类型
|
|
30
30
|
*/
|
|
31
31
|
trigger?: Arrayable<TriggerType>
|
|
32
32
|
|
|
@@ -35,8 +35,9 @@ export declare interface FormRule {
|
|
|
35
35
|
*/
|
|
36
36
|
validateFunc?: (
|
|
37
37
|
value: unknown,
|
|
38
|
+
signal: AbortSignal,
|
|
38
39
|
trigger?: TriggerType,
|
|
39
|
-
) => Promiseable<string | boolean>
|
|
40
|
+
) => Promiseable<string | boolean | undefined>
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
/**
|
|
@@ -87,7 +88,7 @@ export declare interface FormConfigBase {
|
|
|
87
88
|
/**
|
|
88
89
|
* 输入框表单项配置
|
|
89
90
|
*/
|
|
90
|
-
export declare interface
|
|
91
|
+
export declare interface FormConfigInput extends FormConfigBase {
|
|
91
92
|
/**
|
|
92
93
|
* 类型
|
|
93
94
|
*/
|
|
@@ -96,13 +97,13 @@ export declare interface FormInputConfig extends FormConfigBase {
|
|
|
96
97
|
/**
|
|
97
98
|
* 输入框配置
|
|
98
99
|
*/
|
|
99
|
-
props?: Omit<InputProps, 'name' | 'status' | 'showStatusIcon'>
|
|
100
|
+
props?: Omit<InputProps, 'name' | 'status' | 'showStatusIcon' | 'loading'>
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
/**
|
|
103
104
|
* 文本域表单项配置
|
|
104
105
|
*/
|
|
105
|
-
export declare interface
|
|
106
|
+
export declare interface FormConfigTextarea extends FormConfigBase {
|
|
106
107
|
/**
|
|
107
108
|
* 类型
|
|
108
109
|
*/
|
|
@@ -122,7 +123,7 @@ declare type CustomExcludeKeys = 'name' | 'binding' | 'rule'
|
|
|
122
123
|
/**
|
|
123
124
|
* 自定义表单项配置
|
|
124
125
|
*/
|
|
125
|
-
export declare type
|
|
126
|
+
export declare type FormConfigCustom = Omit<
|
|
126
127
|
FormConfigBase,
|
|
127
128
|
CustomExcludeKeys
|
|
128
129
|
> & {
|
|
@@ -141,6 +142,6 @@ export declare type FormCustomConfig = Omit<
|
|
|
141
142
|
* 表单项配置
|
|
142
143
|
*/
|
|
143
144
|
export declare type FormConfig =
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
|
|
|
145
|
+
| FormConfigCustom
|
|
146
|
+
| FormConfigTextarea
|
|
147
|
+
| FormConfigInput
|