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
Copy file name to clipboardexpand all lines: docs/en-US/components/Form.md
+10-4
Original file line number
Diff line number
Diff line change
@@ -61,10 +61,16 @@ Local component can be passed directly through `component` in `columns` attribut
61
61
62
62
### Configure the v-model arguments for component
63
63
64
-
By default, the ProForm component only supports components that bind values through `v-model`. If you need to use other arguments to bind values, you can configure it through `modelKey`.
64
+
By default, the ProForm component only supports components that bind values through `v-model`. If you need to use other arguments to bind values, you can configure it through `models`. When `models` is specified, the `prop` attribute will be ignored (the binding implemented by `v-model` will be invalid), and you need to pass `{ prop: [prop], key: 'modelValue' }` to `models` to implement the binding.
65
65
66
-
::: demo In addition to supporting strings, modelKey also supports passing in `[prop, event]` (`prop` is used to configure the parameters of the bound value, `event` is used to configure the event of the bound value)
67
-
@/demo/Form/modelKey.vue
66
+
In addition, `models` can also be used to bind multiple parameters to a component
67
+
68
+
::: tip
69
+
Since `1.4.0`, the `modelKey` attribute has been deprecated, please use the `models` attribute instead
70
+
:::
71
+
72
+
::: demo prop: the name of the bound field, key: the parameter used to configure v-model, event: the event used to configure the bound value
73
+
@/demo/Form/models.vue
68
74
:::
69
75
70
76
### Slots
@@ -236,7 +242,7 @@ The function `defineFormColumns` supports passing in a Generics type to infer th
0 commit comments