vue3 h 函数 添加style,class,click等等

import { ref, reactive,h} from "vue"

 

const tableColumns = [

  {

    prop: "username",

    label: "Account",

    showOverflowTooltip: true,

    slot: 'account',

    width: '220',

  },

  {

    prop: "description",

    label: "Nick Name",

    showOverflowTooltip: true,

    slot: 'description',

//       render: ({ row }: any) =>{

//         const props = { class: ['button', 'is-outlined'], style: { color: "#1972F5" }, id:'1234', onClick: submitForm};

//         return h("span", props, row.description);

//       }

  },

你可能感兴趣的:(vue.js)