avue-crud 使用总结

2022-04-26  本文已影响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,
上一篇 下一篇

猜你喜欢

热点阅读