feat: disabled属性,禁用点击事件

This commit is contained in:
2023-08-14 20:41:46 +08:00
parent 388ef8351d
commit f72e02c634
2 changed files with 28 additions and 7 deletions

View File

@ -2,7 +2,7 @@
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-07-23 16:27:37
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-23 16:39:56
* @LastEditTime: 2023-08-14 20:41:25
* @FilePath: \vue3\stories\MaskText.stories.ts
* @Description:
*
@ -18,10 +18,24 @@ const meta = {
text: '1234567890',
left: 2,
right: 2,
disabled: false,
},
} satisfies Meta<typeof ThMaskText>
export default meta
type Story = StoryObj<typeof meta>
export const Base: Story = {}
export const Base: Story = {
name: '基本使用',
}
export const Disabled: Story = {
name: '禁用点击事件',
args: {
text: '不可见不可见不可见不可见',
left: 3,
right: 3,
disabled: true,
},
}