docs(data-table): add selection col

This commit is contained in:
07akioni 2021-05-21 22:17:52 +08:00
parent 5c24d05585
commit c0650134da
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,9 @@ import { NTag, NButton, useMessage } from 'naive-ui'
const createColumns = ({ sendMail }) => {
return [
{
type: 'selection'
},
{
type: 'expand',
expandable: (_, index) => index !== 1,

View File

@ -10,6 +10,9 @@ import { NTag, NButton, useMessage } from 'naive-ui'
const createColumns = ({ sendMail }) => {
return [
{
type: 'selection'
},
{
type: 'expand',
expandable: (_, index) => index !== 1,