style: action code style
parent
97a338737a
commit
c95b974dca
|
@ -13,11 +13,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -8,11 +8,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -8,11 +8,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -9,11 +9,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -8,11 +8,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -8,11 +8,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -10,11 +10,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -8,11 +8,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -8,11 +8,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -9,11 +9,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -8,24 +8,10 @@
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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)
|
|
||||||
}
|
|
||||||
]"
|
|
||||||
:dropDownActions="[
|
:dropDownActions="[
|
||||||
{
|
{ icon: 'clarity:note-edit-line', label: '菜单权限', onClick: handleEdit.bind(null, record) },
|
||||||
icon: 'clarity:note-edit-line',
|
{ icon: 'clarity:note-edit-line', label: '数据权限', onClick: handleEdit.bind(null, record) },
|
||||||
label: '菜单权限',
|
|
||||||
onClick: handleEdit.bind(null, record)
|
|
||||||
},
|
|
||||||
{
|
|
||||||
icon: 'clarity:note-edit-line',
|
|
||||||
label: '数据权限',
|
|
||||||
onClick: handleEdit.bind(null, record)
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
icon: 'ant-design:delete-outlined',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -9,11 +9,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -9,16 +9,8 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
:actions="[
|
||||||
{
|
{ icon: 'clarity:note-edit-line', label: t('action.test'), onClick: handleSendSms.bind(null, record) },
|
||||||
icon: 'clarity:note-edit-line',
|
{ icon: 'clarity:note-edit-line', label: t('action.edit'), onClick: handleEdit.bind(null, record) },
|
||||||
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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -9,11 +9,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -8,11 +8,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
|
@ -10,11 +10,7 @@
|
||||||
<template v-if="column.key === 'action'">
|
<template v-if="column.key === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
: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',
|
icon: 'ant-design:delete-outlined',
|
||||||
color: 'error',
|
color: 'error',
|
||||||
|
|
Loading…
Reference in New Issue