From 627d408e660d393783f4fc0cd9e5b1a2b202d3aa Mon Sep 17 00:00:00 2001 From: qiang Date: Tue, 6 Jun 2023 16:18:37 +0800 Subject: [PATCH] feat(theme-chalk): [form] add default width to Input in inline form (#12897) * feat(theme-chalk): [form] add default width to Input in inline form * docs: add clearable attributes to Input * docs: add a description of the Input width --- docs/en-US/component/form.md | 2 +- docs/examples/form/inline-form.vue | 17 +++++++++++++++-- packages/theme-chalk/src/common/var.scss | 2 ++ .../theme-chalk/src/date-picker/picker.scss | 1 - packages/theme-chalk/src/form.scss | 7 +++++++ packages/theme-chalk/src/input.scss | 2 +- 6 files changed, 26 insertions(+), 5 deletions(-) diff --git a/docs/en-US/component/form.md b/docs/en-US/component/form.md index 271fa6c70d..a3639f6fa7 100644 --- a/docs/en-US/component/form.md +++ b/docs/en-US/component/form.md @@ -37,7 +37,7 @@ To prevent this behavior, you can add `@submit.prevent` on ``. When the vertical space is limited and the form is relatively simple, you can put it in one line. -:::demo Set the `inline` attribute to `true` and the form will be inline. +:::demo Set the `inline` attribute to `true` and the form will be inline. After ^(2.3.6), the ElInput component will get a fixed width to avoid the width change caused by the clearable icon. form/inline-form diff --git a/docs/examples/form/inline-form.vue b/docs/examples/form/inline-form.vue index 651deaa6fb..bdb68631b0 100644 --- a/docs/examples/form/inline-form.vue +++ b/docs/examples/form/inline-form.vue @@ -1,14 +1,26 @@