feat: 禁用功能

This commit is contained in:
2023-08-16 18:34:26 +08:00
parent 777bafbb7d
commit a4a64f0fd6
2 changed files with 18 additions and 2 deletions

View File

@ -31,6 +31,7 @@ const meta = {
component: ThUploadList,
args: {
accept: '*',
disabled: false,
fileList: [],
request,
filePath: '/',
@ -44,3 +45,16 @@ type Story = StoryObj<typeof meta>
export const Base: Story = {
name: '基本使用',
}
export const Disabled: Story = {
name: '禁用',
args: {
disabled: true,
fileList: [{
id: Date.now(),
name: avatar,
url: avatar,
createdBy: 'user',
}],
},
}