fix Bug or add example

This commit is contained in:
Ah jung
2021-07-16 17:41:11 +08:00
parent a6aa6d4d6d
commit b4857a7559
27 changed files with 780 additions and 304 deletions

View File

@@ -42,16 +42,31 @@ export const columns = [
{
title: '操作',
key: 'actions',
render(row) {
return h(
NButton,
{
size: 'small',
onClick: () => {
}
},
{ default: () => '编辑' }
)
width:150,
//简单写一下例子,不建议这么写,过段时间,这里封二次封装
render() {
return [
h(
NButton,
{
size: 'small',
type:'error',
style:'margin-right:10px',
onClick: () => {
}
},
{ default: () => '删除' }
),
h(
NButton,
{
size: 'small',
onClick: () => {
}
},
{ default: () => '编辑' }
)
]
}
}
]