📝 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,9 +2,9 @@ import React, { useRef } from "react";
import clsx from "clsx";
import "./styles.css";
import { translate } from "@docusaurus/Translate";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import "./styles.css";
export type Props = {
onChange: (value: string) => void;
@@ -28,7 +28,7 @@ export default function Searcher({
className,
placeholder,
disabled = false,
}: Props): JSX.Element {
}: Props): React.ReactNode {
const ref = useRef<HTMLInputElement>(null);
const handleSubmit = (e: React.FormEvent<HTMLInputElement>) => {
@@ -85,6 +85,10 @@ export default function Searcher({
onClick={() => onTagClick(index)}
>
{tag}
<FontAwesomeIcon
className="searcher-action-icon close ml-1"
icon={["fas", "xmark"]}
/>
</div>
))}
<input