From 5ccb5f1ec9a1e746ca320d64b08c8024fe761e9b Mon Sep 17 00:00:00 2001 From: roymondchen Date: Tue, 9 Aug 2022 19:53:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui-vue2):=20button,container,text=20formcon?= =?UTF-8?q?fig=E8=A1=A5=E5=85=85=E5=AE=8C=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui-vue2/src/button/formConfig.ts | 7 ++++++- packages/ui-vue2/src/container/formConfig.ts | 13 ++++++++++++- packages/ui-vue2/src/text/formConfig.ts | 12 +++++++++++- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/packages/ui-vue2/src/button/formConfig.ts b/packages/ui-vue2/src/button/formConfig.ts index 9a11d765..9f4529b2 100644 --- a/packages/ui-vue2/src/button/formConfig.ts +++ b/packages/ui-vue2/src/button/formConfig.ts @@ -16,4 +16,9 @@ * limitations under the License. */ -export default []; +export default [ + { + text: '文本', + name: 'text', + }, +]; diff --git a/packages/ui-vue2/src/container/formConfig.ts b/packages/ui-vue2/src/container/formConfig.ts index 9a11d765..d9e97a47 100644 --- a/packages/ui-vue2/src/container/formConfig.ts +++ b/packages/ui-vue2/src/container/formConfig.ts @@ -16,4 +16,15 @@ * limitations under the License. */ -export default []; +export default [ + { + name: 'layout', + text: '容器布局', + type: 'select', + defaultValue: 'absolute', + options: [ + { value: 'absolute', text: '绝对定位' }, + { value: 'relative', text: '流式布局' }, + ], + }, +]; diff --git a/packages/ui-vue2/src/text/formConfig.ts b/packages/ui-vue2/src/text/formConfig.ts index 9a11d765..fed6e928 100644 --- a/packages/ui-vue2/src/text/formConfig.ts +++ b/packages/ui-vue2/src/text/formConfig.ts @@ -16,4 +16,14 @@ * limitations under the License. */ -export default []; +export default [ + { + name: 'text', + text: '文本', + }, + { + name: 'multiple', + text: '多行文本', + type: 'switch', + }, +];