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