feat: 组件

This commit is contained in:
2023-07-18 22:06:20 +08:00
parent bb673dfd8a
commit 30a7f03650
14 changed files with 613 additions and 0 deletions

View 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 = {}