Commit 8c1b50304336618f58cc6c63d253bb64134c9298

Authored by 王强
1 parent 66bcf48f

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></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 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></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 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></feewee>>;
20 20  
21 21 /*
22 22 *👇 Render functions are a framework specific feature to allow you control on how the component renders.
... ...