feat: 禁用功能
This commit is contained in:
@ -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',
|
||||
}],
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user