refactor(tag): type类型

This commit is contained in:
2023-08-03 17:31:00 +08:00
parent b6e30a9c20
commit 37e2c05605
2 changed files with 53 additions and 17 deletions

View File

@ -1,8 +1,8 @@
/*
* @Author: peerless_hero peerless_hero@outlook.com
* @Date: 2023-07-11 02:12:08
* @LastEditors: peerless_hero peerless_hero@outlook.com
* @LastEditTime: 2023-07-11 03:02:55
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-08-03 17:29:30
* @FilePath: \uni\stories\Tag.stories.ts
* @Description:
*
@ -16,9 +16,10 @@ const meta = {
args: {
text: '默认',
type: 'default',
plain: false,
},
argTypes: {
type: { control: 'select', options: ['default', 'warning', 'error'] },
type: { control: 'select', options: ['default', 'primary', 'danger', 'warning', 'success', 'info'] },
},
tags: ['autodocs'],
} satisfies Meta<typeof ThTag>
@ -33,6 +34,13 @@ export const Default: Story = {
},
}
export const Primary: Story = {
args: {
text: '主要',
type: 'primary',
},
}
export const Warning: Story = {
args: {
text: '警告',
@ -43,7 +51,7 @@ export const Warning: Story = {
export const ErrorType: Story = {
name: 'Error',
args: {
text: '错误',
type: 'error',
text: '危险',
type: 'danger',
},
}