Commit ef94152eb7172b59665caf1d4dda9c94056a841a
1 parent
23c5fcce
fix: 调整模板
Showing
3 changed files
with
3 additions
and
3 deletions
src/components/<Feewee>/index.module.less renamed to index.module.less
src/components/<Feewee>/index.tsx renamed to index.tsx
... | ... | @@ -2,9 +2,9 @@ import React from "react"; |
2 | 2 | import clsx from "clsx"; |
3 | 3 | import st from "./index.module.less"; |
4 | 4 | |
5 | -export interface Base<Feewee>Props {} | |
5 | +export interface <Feewee>Props {} | |
6 | 6 | |
7 | -export default function <Feewee>({}: Base<Feewee>Props) { | |
7 | +export default function <Feewee>({}: <Feewee>Props) { | |
8 | 8 | const className = clsx(st['<Feewee>']); |
9 | 9 | |
10 | 10 | return (<span className={className}><Feewee></span>); | ... | ... |
stories/<Feewee>.stories.ts renamed to 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 '../src/components/<Feewee>'; | |
3 | +import <Feewee> from '../index'; | |
4 | 4 | |
5 | 5 | const meta: Meta<typeof <Feewee>> = { |
6 | 6 | title: "H5-Common/Componet/<Feewee>", | ... | ... |