xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

element-ui checkbox length bug All In One

element-ui checkbox length bug All In One

element-ui.common.js

TypeError: Cannot read properties of undefined (reading 'length') at VueComponent.isLimitDisabled

checkbox-button / checkbox-group

vue 父子组件加载顺序 bug

vue-parent-child-lifecycle-order

https://www.cnblogs.com/xgqfrms/p/12901725.html

bug

初始化 form 的字段 undefined

initForm (form = {}) {
    console.log('\ninit form =', form);
    console.log('form.ua_group =', form.ua_group);
   // undefined
    const ua_group_id = form?.ua_group ? form?.ua_group?.map(i => i.id) : [''];
    this.form = {
        ua_group_id: ua_group_id,
    };
}

demo

refs



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-12-07 17:47  xgqfrms  阅读(887)  评论(5编辑  收藏  举报