From 8c1b50304336618f58cc6c63d253bb64134c9298 Mon Sep 17 00:00:00 2001 From: 王强 Date: Mon, 25 Mar 2024 11:39:51 +0800 Subject: [PATCH] fix: 调整模板 --- index.tsx | 8 ++++---- stories/index.stories.ts | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.tsx b/index.tsx index a19e4db..59f7ab9 100644 --- a/index.tsx +++ b/index.tsx @@ -2,10 +2,10 @@ import React from "react"; import clsx from "clsx"; import st from "./index.module.less"; -export interface Props {} +export interface Props {} -export default function ({}: Props) { - const className = clsx(st['']); +export default function ({}: Props) { + const className = clsx(st['']); - return (); + return (); } diff --git a/stories/index.stories.ts b/stories/index.stories.ts index 917b68f..51e2cfc 100644 --- a/stories/index.stories.ts +++ b/stories/index.stories.ts @@ -1,10 +1,10 @@ import type { Meta, StoryObj } from "@storybook/react"; // import { userEvent, within, fn } from '@storybook/test'; -import from '../index'; +import from '../index'; -const meta: Meta> = { - title: "H5-Common/Componet/", - component: , +const meta: Meta> = { + title: "H5-Common/Componet/", + component: , tags: ["autodocs"], parameters: { layout: "centered", @@ -16,7 +16,7 @@ const meta: Meta> = { }; export default meta; -type Story = StoryObj>; +type Story = StoryObj>; /* *👇 Render functions are a framework specific feature to allow you control on how the component renders. -- libgit2 0.22.2