Skip to content

如何渲染多个带 NTooltip 的按钮在 DataTable 中? #2188

Answered by 07akioni
infFox asked this question in Q&A
Discussion options

You must be logged in to vote

你后面两段代码都写的不对,箭头函数没有返回值

trigger: () => {
                    h(
                      NButton,
                      {
                        size: 'small',
                        type: 'warning',
                        onClick: () => popupMsg.info('disable test')
                      },
                      () => h(Icon, { icon: 'fe:disabled' })
                    );
                  },

你应该加上 return

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@infFox
Comment options

Answer selected by 07akioni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants