generated from thzxcx/vue3
feat: 反馈组件/Alert
This commit is contained in:
37
stories/Alert.stories.ts
Normal file
37
stories/Alert.stories.ts
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* @Author: peerless_hero peerless_hero@outlook.com
|
||||
* @Date: 2023-07-11 01:57:00
|
||||
* @LastEditors: peerless_hero peerless_hero@outlook.com
|
||||
* @LastEditTime: 2023-07-11 03:03:30
|
||||
* @FilePath: \uni\stories\Alert.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThAlert from '../packages/alert/index.vue'
|
||||
|
||||
const meta = {
|
||||
title: '反馈组件/Alert',
|
||||
component: ThAlert,
|
||||
tags: ['autodocs'],
|
||||
args: {
|
||||
modelValue: true,
|
||||
content: '操作执行成功',
|
||||
confirmText: '确定',
|
||||
},
|
||||
argTypes: {
|
||||
onConfirm: { action: 'clicked' },
|
||||
},
|
||||
} satisfies Meta<typeof ThAlert>
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Base: Story = {
|
||||
name: '仅提示操作信息',
|
||||
args: {
|
||||
modelValue: true,
|
||||
content: '信息填写有误',
|
||||
confirmText: '确定',
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user