美文网首页
Element 组件对象属性用法

Element 组件对象属性用法

作者: ShoneSingLone | 来源:发表于2020-10-19 13:47 被阅读0次
    image.png
      <el-table-column  v-bind="bindProps" >...
    
      computed: {
        bindProps() {
          /* this.configs 可以动态变更,优先级高于this.$attrs */
          return merge(
            {
              headerAlign: "center",
              align: "center",
            },
            this.$attrs,
            /* configs formitem type 与 el column typ 冲突 需要剔除 */
            omit(this.configs, ["type"])
           /*
            configs:{
                label:"label",
                prop:"prop"
            }
          */
          );
        },
      },
    

    相关文章

      网友评论

          本文标题:Element 组件对象属性用法

          本文链接:https://www.haomeiwen.com/subject/cvpkmktx.html