美文网首页
avue-crud 使用总结

avue-crud 使用总结

作者: 兜兜里冒糖糖 | 来源:发表于2022-04-26 15:28 被阅读0次
this.$refs.crud.searchReset()  //重置搜索条件
searchLabelWidth :200   //设置搜索的label的宽度
//时间的渲染
  {
      label: '支付时间',
      prop: 'payTime',
      width: 90,
      render: (h, params) => {
        return h('div',
          params.row.payTime == null ? '' : params.row.payTime
        )
      },
    }

//公共属性中   设置树表格
  tree: true,     //树表格
  expandLevel: 3,  //表格的层级
  rowKey:'categoryId',  //一定要设置rowKey,默认为id
  treeProps:{ children: 'categoryTypeAttrList' },   //树形表格中需要渲染的子表格的字段 children 默认值为children,

相关文章

网友评论

      本文标题:avue-crud 使用总结

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