feat: 组件名前缀
This commit is contained in:
@ -1,13 +1,13 @@
|
|||||||
import type { Meta, StoryObj } from '@storybook/vue3';
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||||
import <%- component %> from '../packages/<%- lowerName %>/index.vue';
|
import Th<%- component %> from '../packages/<%- lowerName %>/index.vue'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: '某个大类/<%- component %>',
|
title: '某个大类/<%- component %>',
|
||||||
component: <%- component %>,
|
component: Th<%- component %>,
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof <%- component %>>;
|
} satisfies Meta<typeof Th<%- component %>>
|
||||||
export default meta;
|
export default meta
|
||||||
|
|
||||||
type Story = StoryObj<typeof meta>;
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
export const Base: Story = {};
|
export const Base: Story = {}
|
||||||
|
@ -4,6 +4,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup name="<%- component %>">
|
<script lang="ts" setup name="Th<%- component %>">
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user