generated from thzxcx/vue3
feat: 反馈组件/Confirm
This commit is contained in:
42
stories/Confirm.stories.ts
Normal file
42
stories/Confirm.stories.ts
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* @Author: peerless_hero peerless_hero@outlook.com
|
||||
* @Date: 2023-07-11 01:15:23
|
||||
* @LastEditors: peerless_hero peerless_hero@outlook.com
|
||||
* @LastEditTime: 2023-07-11 03:43:39
|
||||
* @FilePath: \uni\stories\Confirm.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThConfirm from '../packages/confirm/index.vue'
|
||||
|
||||
const meta = {
|
||||
title: '反馈组件/Confirm',
|
||||
component: ThConfirm,
|
||||
tags: ['autodocs'],
|
||||
args: {
|
||||
modelValue: true,
|
||||
title: '确认提示',
|
||||
content: '是否执行此操作?',
|
||||
confirmText: '确定',
|
||||
cancelText: '取消',
|
||||
showConfirm: true,
|
||||
showCancel: true,
|
||||
},
|
||||
argTypes: {
|
||||
onConfirm: { action: 'clicked' },
|
||||
onCancel: { action: 'clicked' },
|
||||
},
|
||||
} satisfies Meta<typeof ThConfirm>
|
||||
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const OnlyConfirm: Story = {
|
||||
name: '仅提示',
|
||||
args: {
|
||||
content: '提示描述',
|
||||
showCancel: false,
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user