generated from thzxcx/vue3
perf(ejs): 模板
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 <%- component %> from '../packages/<%- lowerName %>/index.vue'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: '某个大类/<%- component %>',
|
title: '某个大类/<%- component %>',
|
||||||
component: <%- component %>,
|
component: <%- component %>,
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof <%- component %>>;
|
} satisfies Meta<typeof <%- 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 = {}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<view>
|
||||||
<%- component %>
|
<%- component %>
|
||||||
</div>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup name="<%- component %>">
|
<script lang="ts" setup name="<%- component %>">
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user