[Vuejs]-In Table component, is there a way to use customRender to both set a slot name and a rowSpan

-1👍

Have you tried this?

components-table-demo-colspan-and-rowspan

Inside this example: children(VNode) and colSpan are working at the same time.

const columns = [
  {
    customRender: (text) => {
      return {
        children: <a href="javascript:;">{text}</a>,
        attrs: {
          colSpan: 5,
        },
      };
    },
  },
];

Leave a comment