Skip to content

Commit

Permalink
refactor: 使用 TableActions 替代 LinkActions
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Feb 18, 2024
1 parent abf599f commit 411f6a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pages/admin/sms-templates/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {Table, TableProvider, CTableDeleteLink, useTable} from '@mxjs/a-table';
import { Table, TableProvider, CTableDeleteLink, useTable, TableActions } from '@mxjs/a-table';
import {CEditLink, CNewBtn} from '@mxjs/a-clink';
import {Page, PageActions} from '@mxjs/a-page';
import {LinkActions} from '@mxjs/actions';

const Index = () => {
const [table] = useTable();
Expand Down Expand Up @@ -36,10 +35,10 @@ const Index = () => {
title: '操作',
dataIndex: 'id',
render: (id) => (
<LinkActions>
<TableActions>
<CEditLink id={id}/>
<CTableDeleteLink id={id}/>
</LinkActions>
</TableActions>
),
},
]}
Expand Down

0 comments on commit 411f6a6

Please sign in to comment.