Skip to content

Commit 2f12ac6

Browse files
fix: 🐛 修复Input、Textarea未设置labelWidth时通过CSS变量设置label宽度无效的问题 (#591)
✅ Closes: #573
1 parent dd2d99f commit 2f12ac6

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎src/uni_modules/wot-design-uni/components/wd-input/types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export const inputProps = {
125125
/**
126126
* 设置左侧标题宽度
127127
*/
128-
labelWidth: makeStringProp('33%'),
128+
labelWidth: makeStringProp(''),
129129
/**
130130
* 使用 label 插槽
131131
*/

‎src/uni_modules/wot-design-uni/components/wd-textarea/types.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,17 +207,16 @@ export const textareaProps = {
207207
showWordLimit: makeBooleanProp(false),
208208

209209
/**
210-
* * 设置左侧标题。
210+
* 设置左侧标题。
211211
* 类型:string
212212
*/
213213
label: String,
214214

215215
/**
216-
* * 设置左侧标题宽度。
216+
* 设置左侧标题宽度。
217217
* 类型:string
218-
* 默认值:'33%'
219218
*/
220-
labelWidth: makeStringProp('33%'),
219+
labelWidth: makeStringProp(''),
221220

222221
/**
223222
* * 是否使用label插槽。

0 commit comments

Comments
 (0)