fix: tsc error

This commit is contained in:
chenos 2022-04-08 17:21:24 +08:00
parent ab633af627
commit c406e5eb8b
4 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1,8 @@
import { Checkbox, message, Table } from 'antd';
import React, { useState } from 'react';
import { useMenuItems } from '.';
import { useAPIClient, useRequest } from '../../api-client';
import { useRecord } from '../../record-provider';
import { useMenuItems } from './RoleTable';
const findUids = (items) => {
if (!Array.isArray(items)) {

View File

@ -4,8 +4,8 @@ import { connect, useField, useForm } from '@formily/react';
import { Checkbox, Table, Tag } from 'antd';
import React, { createContext } from 'react';
import { useTranslation } from 'react-i18next';
import { useAvailableActions } from '.';
import { useCollectionManager, useCompile, useRecord } from '../..';
import { useAvailableActions } from './RoleTable';
import { ScopeSelect } from './ScopeSelect';
const toActionMap = (arr: any[]) => {

View File

@ -3,8 +3,8 @@ import { connect, useField } from '@formily/react';
import { Checkbox, Select, Table, Tag } from 'antd';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { useAvailableActions } from '.';
import { useCompile } from '../..';
import { useAvailableActions } from './RoleTable';
const toScopes = (value) => {
if (!value) {

View File

@ -1,6 +1,6 @@
export * from './MenuConfigure';
export * from './RoleConfigure';
export * from './RolesResourcesActions';
export * from './RoleTable';
export * from './StrategyActions';
export { MenuConfigure } from './MenuConfigure';
export { RoleConfigure } from './RoleConfigure';
export { RolesResourcesActions } from './RolesResourcesActions';
export { RoleTable } from './RoleTable';
export { StrategyActions } from './StrategyActions';