diff --git a/src/locales/lang/en/routes/demo/form.ts b/src/locales/lang/en/routes/demo/form.ts index ce77073e..314a6c2f 100644 --- a/src/locales/lang/en/routes/demo/form.ts +++ b/src/locales/lang/en/routes/demo/form.ts @@ -7,4 +7,5 @@ export default { ruleForm: 'Form validation', dynamicForm: 'Dynamic', customerForm: 'Custom', + appendForm: 'Append', }; diff --git a/src/locales/lang/zh_CN/routes/demo/form.ts b/src/locales/lang/zh_CN/routes/demo/form.ts index 0ab4094f..fef80151 100644 --- a/src/locales/lang/zh_CN/routes/demo/form.ts +++ b/src/locales/lang/zh_CN/routes/demo/form.ts @@ -7,4 +7,5 @@ export default { ruleForm: '表单验证', dynamicForm: '动态表单', customerForm: '自定义组件', + appendForm: '表单增删示例', }; diff --git a/src/router/menus/modules/demo/comp.ts b/src/router/menus/modules/demo/comp.ts index 0fe2cd6a..71bb106c 100644 --- a/src/router/menus/modules/demo/comp.ts +++ b/src/router/menus/modules/demo/comp.ts @@ -47,6 +47,10 @@ const menu: MenuModule = { path: 'customerForm', name: t('routes.demo.form.customerForm'), }, + { + path: 'appendForm', + name: t('routes.demo.form.appendForm'), + }, ], }, { diff --git a/src/router/routes/modules/demo/comp.ts b/src/router/routes/modules/demo/comp.ts index b1344787..6d6756e1 100644 --- a/src/router/routes/modules/demo/comp.ts +++ b/src/router/routes/modules/demo/comp.ts @@ -89,6 +89,14 @@ const comp: AppRouteModule = { title: t('routes.demo.form.customerForm'), }, }, + { + path: 'appendForm', + name: 'appendFormDemo', + component: () => import('/@/views/demo/form/AppendForm.vue'), + meta: { + title: t('routes.demo.form.appendForm'), + }, + }, ], }, { diff --git a/src/views/demo/form/AppendForm.vue b/src/views/demo/form/AppendForm.vue new file mode 100644 index 00000000..35280dd9 --- /dev/null +++ b/src/views/demo/form/AppendForm.vue @@ -0,0 +1,117 @@ + +