style: collection category style improve (#2637)

This commit is contained in:
katherinehhh 2023-09-13 09:11:30 +08:00 committed by GitHub
parent 6f68506eb4
commit 5e09276497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ import {
} from '@dnd-kit/core';
import { RecursionField, observer } from '@formily/react';
import { uid } from '@formily/shared';
import { App, Badge, Card, Dropdown, Tabs } from 'antd';
import { App, Badge, Card, Dropdown, Space, Tabs } from 'antd';
import _ from 'lodash';
import React, { useContext, useState } from 'react';
import { useTranslation } from 'react-i18next';
@ -71,10 +71,10 @@ const TabBar = ({ item }) => {
const { t } = useTranslation();
const compile = useCompile();
return (
<span>
<Space wrap>
<Badge color={item.color} />
{t(compile(item.name))}
</span>
</Space>
);
};
const DndProvider = observer(