Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤔 提问 | 请问add-template配置component.render怎么用? #59

Open
yibhou opened this issue Jul 10, 2019 · 0 comments
Open

🤔 提问 | 请问add-template配置component.render怎么用? #59

yibhou opened this issue Jul 10, 2019 · 0 comments

Comments

@yibhou
Copy link

yibhou commented Jul 10, 2019

computed: {
  template () {
    return {
      m_newsgrouparentid: {
        title: '上级分类:',
        component: {
          render: (h, row, column, index) => {  // 这里没进来就已经报错了 }
        }
      }
    }
  }
}

image

如果换成component.name方式就这个没问题了

d2-crud版本:2.1.1

@FairyEver FairyEver transferred this issue from d2-projects/d2-admin Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant