From 09429fd69d9c6771e3e77d2fcd5183658cc874a2 Mon Sep 17 00:00:00 2001 From: kooriookami Date: Fri, 18 Jun 2021 23:47:47 +0800 Subject: [PATCH] style(form): use flex layout --- packages/form/__tests__/form.spec.ts | 1 - packages/form/src/form-item.vue | 33 ++++---------------- packages/form/src/label-wrap.ts | 46 +++------------------------- packages/theme-chalk/src/form.scss | 44 +++++++++++--------------- 4 files changed, 29 insertions(+), 95 deletions(-) diff --git a/packages/form/__tests__/form.spec.ts b/packages/form/__tests__/form.spec.ts index 43ae5d3e07..f59c4613d1 100644 --- a/packages/form/__tests__/form.spec.ts +++ b/packages/form/__tests__/form.spec.ts @@ -48,7 +48,6 @@ describe('Form', () => { }, }) expect(findStyle(wrapper, '.el-form-item__label').width).toBe('80px') - expect(findStyle(wrapper, '.el-form-item__content').marginLeft).toBe('80px') }) /* diff --git a/packages/form/src/form-item.vue b/packages/form/src/form-item.vue index 131813cbab..24223f17a0 100644 --- a/packages/form/src/form-item.vue +++ b/packages/form/src/form-item.vue @@ -42,31 +42,16 @@