feat: 组件
This commit is contained in:
32
stories/UploadTable.stories.ts
Normal file
32
stories/UploadTable.stories.ts
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-07-18 12:23:37
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-07-18 16:11:39
|
||||
* @FilePath: \vue3\stories\UploadTable.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThUploadTable from '../packages/upload-table/index.vue'
|
||||
|
||||
const meta = {
|
||||
title: '表单组件/UploadTable',
|
||||
component: ThUploadTable,
|
||||
tags: ['autodocs'],
|
||||
args: {
|
||||
accept: '.jpeg,.jpg,.png,.bmp',
|
||||
label1: '文件名称',
|
||||
label2: '图片上传',
|
||||
label3: '操作',
|
||||
fileList: [],
|
||||
},
|
||||
argTypes: {
|
||||
label1: { control: 'select', options: ['small', 'medium', 'large'] },
|
||||
},
|
||||
} satisfies Meta<typeof ThUploadTable>
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Base: Story = {}
|
Reference in New Issue
Block a user