-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
142 additions
and
799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
'use client' | ||
|
||
import { Card, CardBody, CardFooter, CardHeader, Chip, Popover, PopoverContent, PopoverTrigger } from '@nextui-org/react' | ||
import { CaretSortIcon } from '@radix-ui/react-icons' | ||
import React from 'react' | ||
|
||
export default function DefaultTag() { | ||
return ( | ||
<Card> | ||
<CardHeader className="flex gap-3"> | ||
<p>首页</p> | ||
<Popover placement="top"> | ||
<PopoverTrigger className="cursor-pointer"> | ||
<Chip className="select-none" color="success" variant="shadow">/</Chip> | ||
</PopoverTrigger> | ||
<PopoverContent> | ||
<div className="px-1 py-2 select-none"> | ||
<div className="text-small font-bold">路由</div> | ||
<div className="text-tiny">可以访问的一级路径</div> | ||
</div> | ||
</PopoverContent> | ||
</Popover> | ||
</CardHeader> | ||
<CardBody> | ||
<p>首页为默认路由,无法调整</p> | ||
</CardBody> | ||
<CardFooter className="flex space-x-1 select-none"> | ||
<Chip color="success" variant="shadow">显示</Chip> | ||
<Popover placement="top"> | ||
<PopoverTrigger className="cursor-pointer"> | ||
<Chip | ||
color="primary" | ||
variant="shadow" | ||
startContent={<CaretSortIcon />} | ||
>-1</Chip> | ||
</PopoverTrigger> | ||
<PopoverContent> | ||
<div className="px-1 py-2 select-none"> | ||
<div className="text-small font-bold">排序</div> | ||
<div className="text-tiny">首页优先级最高</div> | ||
</div> | ||
</PopoverContent> | ||
</Popover> | ||
</CardFooter> | ||
</Card> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.