You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Defined in [fieldState.ts:230](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L230)*
64
+
*Defined in [fieldState.ts:235](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L235)*
64
65
65
66
**Parameters:**
66
67
@@ -79,7 +80,7 @@ Name | Type | Default |
79
80
80
81
*Implementation of [ComposibleValidatable](../interfaces/composiblevalidatable.md).[$](../interfaces/composiblevalidatable.md#$)*
81
82
82
-
*Defined in [fieldState.ts:39](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L39)*
83
+
*Defined in [fieldState.ts:39](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L39)*
83
84
84
85
Value that has bean validated with no error, AKA "safe".
85
86
@@ -91,7 +92,7 @@ ___
91
92
92
93
*Implementation of [ComposibleValidatable](../interfaces/composiblevalidatable.md).[_activated](../interfaces/composiblevalidatable.md#_activated)*
93
94
94
-
*Defined in [fieldState.ts:15](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L15)*
95
+
*Defined in [fieldState.ts:15](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L15)*
95
96
96
97
If activated (with auto validation).
97
98
Field will only be activated when `validate()` or `onChange()` called.
@@ -102,7 +103,7 @@ ___
102
103
103
104
• **_error**? : *undefined | string*
104
105
105
-
*Defined in [fieldState.ts:64](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L64)*
106
+
*Defined in [fieldState.ts:64](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L64)*
106
107
107
108
The original error info of validation.
108
109
@@ -114,7 +115,7 @@ ___
114
115
115
116
*Implementation of [ComposibleValidatable](../interfaces/composiblevalidatable.md).[_validateStatus](../interfaces/composiblevalidatable.md#_validatestatus)*
116
117
117
-
*Defined in [fieldState.ts:52](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L52)*
118
+
*Defined in [fieldState.ts:52](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L52)*
118
119
119
120
The validate status.
120
121
@@ -124,7 +125,7 @@ ___
124
125
125
126
• **_value**: *TValue*
126
127
127
-
*Defined in [fieldState.ts:28](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L28)*
128
+
*Defined in [fieldState.ts:28](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L28)*
128
129
129
130
Value that reacts to `onChange` immediately.
130
131
You should only use it to bind with UI input componnet.
@@ -137,7 +138,7 @@ ___
137
138
138
139
*Implementation of [ComposibleValidatable](../interfaces/composiblevalidatable.md).[value](../interfaces/composiblevalidatable.md#value)*
139
140
140
-
*Defined in [fieldState.ts:34](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L34)*
141
+
*Defined in [fieldState.ts:34](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L34)*
141
142
142
143
Value that can be consumed by your code.
143
144
It's synced from `_value` with debounce of 200ms.
@@ -148,7 +149,7 @@ It's synced from `_value` with debounce of 200ms.
148
149
149
150
• **get dirty**(): *boolean*
150
151
151
-
*Defined in [fieldState.ts:20](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L20)*
152
+
*Defined in [fieldState.ts:20](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L20)*
152
153
153
154
If value has been touched (different with `initialValue`)
154
155
@@ -160,7 +161,7 @@ ___
160
161
161
162
• **get error**(): *undefined | string*
162
163
163
-
*Defined in [fieldState.ts:69](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L69)*
164
+
*Defined in [fieldState.ts:69](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L69)*
164
165
165
166
The error info of validation.
166
167
@@ -172,7 +173,7 @@ ___
172
173
173
174
• **get hasError**(): *boolean*
174
175
175
-
*Defined in [fieldState.ts:76](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L76)*
176
+
*Defined in [fieldState.ts:76](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L76)*
176
177
177
178
If the state contains error.
178
179
@@ -184,7 +185,7 @@ ___
184
185
185
186
• **get validated**(): *boolean*
186
187
187
-
*Defined in [fieldState.ts:84](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L84)*
188
+
*Defined in [fieldState.ts:84](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L84)*
188
189
189
190
If the validation has been done.
190
191
It does not means validation passed.
@@ -197,19 +198,31 @@ ___
197
198
198
199
• **get validating**(): *boolean*
199
200
200
-
*Defined in [fieldState.ts:57](https://github.com/qiniu/formstate-x/blob/f0b789c/src/fieldState.ts#L57)*
201
+
*Defined in [fieldState.ts:57](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L57)*
201
202
202
203
If the state is doing a validation.
203
204
204
205
**Returns:***boolean*
205
206
207
+
___
208
+
209
+
### validationDisabled
210
+
211
+
• **get validationDisabled**(): *boolean*
212
+
213
+
*Defined in [fieldState.ts:197](https://github.com/qiniu/formstate-x/blob/d29c1fc/src/fieldState.ts#L197)*
0 commit comments