Commit 66bcf48feab4082ad7b995654efa89d2a17d49e0

Authored by 王强
1 parent ef94152e

fix: 调整模板

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