From 2730c2b3598664248cdf537cfca9400e8d20955a Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Wed, 15 Dec 2021 21:26:14 +0800 Subject: [PATCH] wip(VForm): VForm component development --- src/App.vue | 12 ++++--- src/components/Form/src/VForm.vue | 58 +++++++++++++++++++------------ src/components/Form/src/helper.ts | 21 +++++++++++ 3 files changed, 64 insertions(+), 27 deletions(-) diff --git a/src/App.vue b/src/App.vue index 0a95423..d8f7959 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,15 +15,17 @@ onMounted(() => { const schema = reactive([ { field: 'field1', + component: 'Divider', + componentProps: { + text: 'input示例' + } + }, + { + field: 'field2', label: '字段1', component: 'Input' } ]) -// setTimeout(() => { -// schema.push({ -// field: '2' -// }) -// }, 3000)