fix: 下载组件
This commit is contained in:
36
stories/UploadSingleFile.stories.ts
Normal file
36
stories/UploadSingleFile.stories.ts
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-07-21 00:37:46
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-07-21 02:56:04
|
||||
* @FilePath: \vue3\stories\UploadSingleFile.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThUploadSingleFile from '../packages/upload-single-file/index.vue'
|
||||
import avatar from './assets/avatar.jpeg'
|
||||
|
||||
const meta = {
|
||||
title: '表单组件/UploadSingleFile',
|
||||
component: ThUploadSingleFile,
|
||||
tags: ['autodocs'],
|
||||
args: {
|
||||
modelValue: '',
|
||||
autoUpload: false,
|
||||
accept: '',
|
||||
disabled: false,
|
||||
text: false,
|
||||
request: () => Promise.resolve({
|
||||
id: 0,
|
||||
url: avatar,
|
||||
}),
|
||||
},
|
||||
} satisfies Meta<typeof ThUploadSingleFile>
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Base: Story = {
|
||||
name: '基本使用',
|
||||
}
|
Reference in New Issue
Block a user