End.
原
ElementUI开发报错,使用el-label的label-width=auto导致。
element-ui开发,报错信息如下:
[Vue warn]: Error in beforeDestroy hook: "Error: [ElementForm]unpected width "
found in ---> <LabelWrap> at packages/form/src/label-wrap.vue
<ElFormItem> at packages/form/src/form-item.vue
<ElForm> at packages/form/src/form.vue
<ElDialog> at packages/dialog/src/component.vue
<UserPower>
<AppMain> at src/layout/components/AppMain.vue
<Layout> at src/layout/index.vue
<App> at src/App.vue
<Root>
解决方法一:
label-width= auto
改为实际宽度,如:label-width="100px"
方法二:
v-show 改为 v-if
PS:暂无效果
End.