📝 Docs: 商店头像 skeleton (#3362)

This commit is contained in:
StarHeart
2025-03-09 21:18:32 +08:00
committed by GitHub
parent ecab229133
commit 09343c332e
34 changed files with 623 additions and 282 deletions

View File

@ -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>

View File

@ -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 = () =>