Files
uni/stories/Alert.stories.ts
2023-07-11 04:05:47 +08:00

38 lines
852 B
TypeScript

/*
* @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: '确定',
},
}