Commit 8c1b50304336618f58cc6c63d253bb64134c9298
1 parent
66bcf48f
fix: 调整模板
Showing
2 changed files
with
9 additions
and
9 deletions
index.tsx
| @@ -2,10 +2,10 @@ import React from "react"; | @@ -2,10 +2,10 @@ import React from "react"; | ||
| 2 | import clsx from "clsx"; | 2 | import clsx from "clsx"; |
| 3 | import st from "./index.module.less"; | 3 | import st from "./index.module.less"; |
| 4 | 4 | ||
| 5 | -export interface <feewee>Props {} | 5 | +export interface <feewee></feewee>Props {} |
| 6 | 6 | ||
| 7 | -export default function <feewee>({}: <feewee>Props) { | ||
| 8 | - const className = clsx(st['<feewee>']); | 7 | +export default function <feewee></feewee>({}: <feewee></feewee>Props) { |
| 8 | + const className = clsx(st['<feewee></feewee>']); | ||
| 9 | 9 | ||
| 10 | - return (<span className={className}><feewee></span>); | 10 | + return (<span className={className}><feewee></feewee></span>); |
| 11 | } | 11 | } |
stories/index.stories.ts
| 1 | import type { Meta, StoryObj } from "@storybook/react"; | 1 | import type { Meta, StoryObj } from "@storybook/react"; |
| 2 | // import { userEvent, within, fn } from '@storybook/test'; | 2 | // import { userEvent, within, fn } from '@storybook/test'; |
| 3 | -import <feewee> from '../index'; | 3 | +import <feewee></feewee> from '../index'; |
| 4 | 4 | ||
| 5 | -const meta: Meta<typeof <feewee>> = { | ||
| 6 | - title: "H5-Common/Componet/<feewee>", | ||
| 7 | - component: <feewee>, | 5 | +const meta: Meta<typeof <feewee></feewee>> = { |
| 6 | + title: "H5-Common/Componet/<feewee></feewee>", | ||
| 7 | + component: <feewee></feewee>, | ||
| 8 | tags: ["autodocs"], | 8 | tags: ["autodocs"], |
| 9 | parameters: { | 9 | parameters: { |
| 10 | layout: "centered", | 10 | layout: "centered", |
| @@ -16,7 +16,7 @@ const meta: Meta<typeof <feewee>> = { | @@ -16,7 +16,7 @@ const meta: Meta<typeof <feewee>> = { | ||
| 16 | }; | 16 | }; |
| 17 | 17 | ||
| 18 | export default meta; | 18 | export default meta; |
| 19 | -type Story = StoryObj<typeof <feewee>>; | 19 | +type Story = StoryObj<typeof <feewee></feewee>>; |
| 20 | 20 | ||
| 21 | /* | 21 | /* |
| 22 | *👇 Render functions are a framework specific feature to allow you control on how the component renders. | 22 | *👇 Render functions are a framework specific feature to allow you control on how the component renders. |