mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
fix(components): [el-form] adjust the warn about label (#9889)
This commit is contained in:
parent
e582a2f4cf
commit
5497f0c234
@ -17,7 +17,7 @@ export function useFormLabelWidth() {
|
||||
|
||||
function getLabelWidthIndex(width: number) {
|
||||
const index = potentialLabelWidthArr.value.indexOf(width)
|
||||
if (index === -1) {
|
||||
if (index === -1 && autoLabelWidth.value === '0') {
|
||||
debugWarn(SCOPE, `unexpected width ${width}`)
|
||||
}
|
||||
return index
|
||||
|
Loading…
Reference in New Issue
Block a user