Skip to content

想写1个能够修改vue组件源码的插件 #14

@jieyuming

Description

@jieyuming

现在在vue组件里面,使用jsx语法,发现如果是返回1个字符串就没问题,能够渲染成功,

         title: (h, { colIndex }) => {
            return item.name  + `(${item.unit})`
         },

但渲染是包含dom元素就无法识别了:
title: (h, { colIndex }) => (


{item.name}

{item.unit}


),

希望可以帮忙写个插件示例,仅仅能让我读取到vue组件内容打印字符串出来即可,后续匹配字符串的逻辑自己来完善

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions