@dazhicheng/ui 1.5.166 → 1.5.167
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/tt-form/src/hooks/useFieldArray.d.ts +1 -1
- package/dist/index.js +4561 -4546
- package/package.json +3 -3
|
@@ -2,6 +2,6 @@ import { MaybeRefOrGetter } from 'vue';
|
|
|
2
2
|
import { ResolvedFieldArrayContext } from '../types/forms';
|
|
3
3
|
/**
|
|
4
4
|
* 与 vee-validate `useFieldArray` API 对齐:稳定 `key`、`entry.value` 可写(支持 v-model),
|
|
5
|
-
* 外部 `resetForm` / `setValues`
|
|
5
|
+
* 外部 `resetForm` / `setValues` 时同步行列表;仅在行级同步深层变更,避免整数组深层 watch。
|
|
6
6
|
*/
|
|
7
7
|
export declare function useFieldArray<TValue extends Record<string, unknown> = Record<string, unknown>>(arrayPath: MaybeRefOrGetter<string>): ResolvedFieldArrayContext<TValue>;
|