Skip to content

Commit d0612fd

Browse files
committed
2 parents 458cffb + 091c8d5 commit d0612fd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

components/form/demo/index.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ const md = {
5151
5252
这里我们封装了表单域 \`<Form.Item />\`
5353
54-
**注意:** 如果使用 \`Form.create\` 处理表单使其具有自动收集数据并校验的功能,建议使用\`jsx\`
54+
55+
## 注意:
56+
1、如果使用 \`Form.create\` 处理表单使其具有自动收集数据并校验的功能,建议使用\`jsx\`
57+
2、如果不是使用Vue.use(Form)形式注册的\`Form\`组件,你需要自行将\`$form\`挂载到Vue原型上。
58+
\`Vue.prototype.$form = Form\`
59+
60+
5561
## 代码演示
5662
`,
5763
us: `# Form
@@ -70,7 +76,11 @@ You can align the controls of a \`form\` using the \`layout\` prop:
7076
A form consists of one or more form fields whose type includes input, textarea, checkbox, radio, select, tag, and more.
7177
A form field is defined using \`<Form.Item />\`.
7278
73-
**Note:** If you use \`Form.create\` to process forms with automatic data collection and validation, we recommend using \`jsx\`
79+
## Note:
80+
1. If you use \`Form.create\` to process the form to have the ability to automatically collect data and verify it, it is recommended to use \`jsx\`.
81+
2. If you are not using the \`Form\` component registered in Vue.use(Form) form, you need to mount \`$form\` to the Vue prototype yourself.
82+
\`Vue.prototype.$form = Form\`
83+
7484
## Examples
7585
`,
7686
}

0 commit comments

Comments
 (0)