mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 04:26:45 +00:00
📝 Docs: 商店头像 skeleton (#3362)
This commit is contained in:
@ -8,7 +8,8 @@ import { ChromePicker, type ColorResult } from "react-color";
|
||||
import "./styles.css";
|
||||
|
||||
import TagComponent from "@/components/Tag";
|
||||
import { Tag as TagType } from "@/types/tag";
|
||||
|
||||
import type { Tag as TagType } from "@/types/tag";
|
||||
|
||||
export type Props = {
|
||||
allowTags: TagType[];
|
||||
@ -103,7 +104,7 @@ export default function TagFormItem({
|
||||
<ChromePicker
|
||||
className="my-4 fix-input-color"
|
||||
color={color}
|
||||
disableAlpha={true}
|
||||
disableAlpha
|
||||
onChangeComplete={onChangeColor}
|
||||
/>
|
||||
</div>
|
||||
|
@ -4,10 +4,13 @@ import clsx from "clsx";
|
||||
|
||||
import "./styles.css";
|
||||
|
||||
|
||||
import type { Resource } from "@/libs/store";
|
||||
import { fetchRegistryData } from "@/libs/store";
|
||||
|
||||
import TagFormItem from "./Items/Tag";
|
||||
|
||||
import { fetchRegistryData, Resource } from "@/libs/store";
|
||||
import { Tag as TagType } from "@/types/tag";
|
||||
import type { Tag as TagType } from "@/types/tag";
|
||||
|
||||
export type FormItemData = {
|
||||
type: string;
|
||||
@ -62,8 +65,8 @@ export function Form({
|
||||
(item) => item.name
|
||||
);
|
||||
if (currentStepNames.every((name) => result[name]))
|
||||
setCurrentStep(currentStep + 1);
|
||||
else return;
|
||||
{setCurrentStep(currentStep + 1);}
|
||||
else {}
|
||||
};
|
||||
const onPrev = () => currentStep > 0 && setCurrentStep(currentStep - 1);
|
||||
const onNext = () =>
|
||||
|
Reference in New Issue
Block a user