📝 Docs: 商店插件可用性筛选 & 更新排序 (#3334)

This commit is contained in:
StarHeart
2025-02-26 23:05:06 +08:00
committed by GitHub
parent db857b11fa
commit 6cff660af0
42 changed files with 2320 additions and 2374 deletions

View File

@ -2,7 +2,7 @@ import React from "react";
import { Form } from ".";
export default function AdapterForm(): JSX.Element {
export default function AdapterForm(): React.ReactNode {
const formItems = [
{
name: "基本信息",

View File

@ -2,7 +2,7 @@ import React from "react";
import { Form } from ".";
export default function BotForm(): JSX.Element {
export default function BotForm(): React.ReactNode {
const formItems = [
{
name: "基本信息",

View File

@ -18,7 +18,7 @@ export type Props = {
export default function TagFormItem({
allowTags,
onTagUpdate,
}: Props): JSX.Element {
}: Props): React.ReactNode {
const [tags, setTags] = useState<TagType[]>([]);
const [label, setLabel] = useState<TagType["label"]>("");
const [color, setColor] = useState<TagType["color"]>("#ea5252");

View File

@ -2,7 +2,7 @@ import React from "react";
import { Form } from ".";
export default function PluginForm(): JSX.Element {
export default function PluginForm(): React.ReactNode {
const formItems = [
{
name: "包信息",

View File

@ -32,7 +32,7 @@ export function Form({
children,
formItems,
handleSubmit,
}: Props): JSX.Element {
}: Props): React.ReactNode {
const [currentStep, setCurrentStep] = useState<number>(0);
const [result, setResult] = useState<Record<string, string>>({});
const [allowTags, setAllowTags] = useState<TagType[]>([]);
@ -125,7 +125,7 @@ export function FormItem({
allowTags: TagType[];
result: Record<string, string>;
setResult: (key: string, value: string) => void;
}): JSX.Element {
}): React.ReactNode {
return (
<>
<label className="label">