style: action code style

pull/1/MERGE
xingyuv 2023-03-22 11:47:48 +08:00
parent 97a338737a
commit c95b974dca
16 changed files with 19 additions and 97 deletions

View File

@ -13,11 +13,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -8,11 +8,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -8,11 +8,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -9,11 +9,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -8,11 +8,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -8,11 +8,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -10,11 +10,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -8,11 +8,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -8,11 +8,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -9,11 +9,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -8,24 +8,10 @@
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
}
]"
:actions="[{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) }]"
:dropDownActions="[
{
icon: 'clarity:note-edit-line',
label: '菜单权限',
onClick: handleEdit.bind(null, record)
},
{
icon: 'clarity:note-edit-line',
label: '数据权限',
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: '菜单权限', onClick: handleEdit.bind(null, record) },
{ icon: 'clarity:note-edit-line', label: '数据权限', onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -9,11 +9,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -9,16 +9,8 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.test'),
onClick: handleSendSms.bind(null, record)
},
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.test'), onClick: handleSendSms.bind(null, record) },
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -9,11 +9,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -8,11 +8,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',

View File

@ -10,11 +10,7 @@
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
label: t('action.edit'),
onClick: handleEdit.bind(null, record)
},
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
{
icon: 'ant-design:delete-outlined',
color: 'error',