mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:16:06 +08:00
修复任务列表名称标签提示
This commit is contained in:
parent
793da29f22
commit
fc9bc7bea2
|
@ -85,28 +85,32 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
|
||||||
goToScriptManager(record);
|
goToScriptManager(record);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Popover
|
{record.labels && record.labels.length > 0 ? (
|
||||||
placement="right"
|
<Popover
|
||||||
trigger={isPhone ? 'click' : 'hover'}
|
placement="right"
|
||||||
content={
|
trigger={isPhone ? 'click' : 'hover'}
|
||||||
<div>
|
content={
|
||||||
{record.labels?.map((label: string) => (
|
<div>
|
||||||
<Tag
|
{record.labels?.map((label: string) => (
|
||||||
color="blue"
|
<Tag
|
||||||
style={{ cursor: 'point' }}
|
color="blue"
|
||||||
onClick={(e) => {
|
style={{ cursor: 'point' }}
|
||||||
e.stopPropagation();
|
onClick={(e) => {
|
||||||
setSearchValue(`label:${label}`);
|
e.stopPropagation();
|
||||||
}}
|
setSearchValue(`label:${label}`);
|
||||||
>
|
}}
|
||||||
<a>{label}</a>
|
>
|
||||||
</Tag>
|
<a>{label}</a>
|
||||||
))}
|
</Tag>
|
||||||
</div>
|
))}
|
||||||
}
|
</div>
|
||||||
>
|
}
|
||||||
{record.name || '-'}
|
>
|
||||||
</Popover>
|
{record.name || '-'}
|
||||||
|
</Popover>
|
||||||
|
) : (
|
||||||
|
record.name || '-'
|
||||||
|
)}
|
||||||
{record.isPinned ? (
|
{record.isPinned ? (
|
||||||
<span>
|
<span>
|
||||||
<PushpinOutlined />
|
<PushpinOutlined />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user