@fbkworks/adapter-core 0.7.1 → 0.8.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/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -320,7 +320,6 @@ interface RadioProps<V = string | number> {
|
|
|
320
320
|
}
|
|
321
321
|
interface SpinProps {
|
|
322
322
|
loading?: boolean;
|
|
323
|
-
size?: Size;
|
|
324
323
|
description?: string;
|
|
325
324
|
}
|
|
326
325
|
interface DialogProps {
|
|
@@ -378,7 +377,6 @@ interface FormItemProps {
|
|
|
378
377
|
help?: string;
|
|
379
378
|
/** 同 FormProps.labelWidth,条目级覆盖表单级 */
|
|
380
379
|
labelWidth?: string | number;
|
|
381
|
-
span?: number;
|
|
382
380
|
}
|
|
383
381
|
interface FormProps {
|
|
384
382
|
model: Record<string, any>;
|
|
@@ -403,7 +401,17 @@ interface FormProps {
|
|
|
403
401
|
interface FormExpose {
|
|
404
402
|
validate: () => Promise<true>;
|
|
405
403
|
validateField?: (prop: string | string[]) => Promise<true>;
|
|
404
|
+
/**
|
|
405
|
+
* **重置字段**:清值 + 清校验。
|
|
406
|
+
*
|
|
407
|
+
* 三端的实现能力不同,这一点必须知道:
|
|
408
|
+
* · element-plus:原生支持(ElForm.resetFields)
|
|
409
|
+
* · naive-ui / vant:Form 拿不到「初始值」,只能清校验 ——
|
|
410
|
+
* 调用时会 warnOnce 提示,清值需要业务方自己重置 v-model
|
|
411
|
+
* 只想清红框、不动输入值的场景请用 clearValidate。
|
|
412
|
+
*/
|
|
406
413
|
resetFields: () => void;
|
|
414
|
+
/** **只清校验状态**(不清值)。三端语义一致。 */
|
|
407
415
|
clearValidate: (props?: string | string[]) => void;
|
|
408
416
|
}
|
|
409
417
|
|
package/dist/index.d.ts
CHANGED
|
@@ -320,7 +320,6 @@ interface RadioProps<V = string | number> {
|
|
|
320
320
|
}
|
|
321
321
|
interface SpinProps {
|
|
322
322
|
loading?: boolean;
|
|
323
|
-
size?: Size;
|
|
324
323
|
description?: string;
|
|
325
324
|
}
|
|
326
325
|
interface DialogProps {
|
|
@@ -378,7 +377,6 @@ interface FormItemProps {
|
|
|
378
377
|
help?: string;
|
|
379
378
|
/** 同 FormProps.labelWidth,条目级覆盖表单级 */
|
|
380
379
|
labelWidth?: string | number;
|
|
381
|
-
span?: number;
|
|
382
380
|
}
|
|
383
381
|
interface FormProps {
|
|
384
382
|
model: Record<string, any>;
|
|
@@ -403,7 +401,17 @@ interface FormProps {
|
|
|
403
401
|
interface FormExpose {
|
|
404
402
|
validate: () => Promise<true>;
|
|
405
403
|
validateField?: (prop: string | string[]) => Promise<true>;
|
|
404
|
+
/**
|
|
405
|
+
* **重置字段**:清值 + 清校验。
|
|
406
|
+
*
|
|
407
|
+
* 三端的实现能力不同,这一点必须知道:
|
|
408
|
+
* · element-plus:原生支持(ElForm.resetFields)
|
|
409
|
+
* · naive-ui / vant:Form 拿不到「初始值」,只能清校验 ——
|
|
410
|
+
* 调用时会 warnOnce 提示,清值需要业务方自己重置 v-model
|
|
411
|
+
* 只想清红框、不动输入值的场景请用 clearValidate。
|
|
412
|
+
*/
|
|
406
413
|
resetFields: () => void;
|
|
414
|
+
/** **只清校验状态**(不清值)。三端语义一致。 */
|
|
407
415
|
clearValidate: (props?: string | string[]) => void;
|
|
408
416
|
}
|
|
409
417
|
|