nocobase/packages/client/src/schemas/table/TableOperation.tsx
SemmyWong 12f58effad
refactor: code splitting of the table component (#121)
* refactor: 表格拆分模块化

* refactor: 表格拆分模块化

* refactor: code splitting of the table component (#120)

* missing TableIndex

* refactor: 表格拆分模块化

* code format

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-12-02 22:56:16 +08:00

17 lines
482 B
TypeScript

import React from 'react';
import { observer } from '@formily/react';
import { useTranslation } from 'react-i18next';
import { useDesignable } from '..';
import { Table } from './Table';
export const TableOperation = observer((props: any) => {
const { designable, schema } = useDesignable();
const { t } = useTranslation();
return (
<div className={'nb-table-column'}>
{t('Operations')}
<Table.Operation.DesignableBar path={props.path} />
</div>
);
});