feat: 组件
This commit is contained in:
13
stories/PreviewOffice.stories.ts
Normal file
13
stories/PreviewOffice.stories.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThPreviewOffice from '../packages/preview-office/index.vue'
|
||||
|
||||
const meta = {
|
||||
title: '数据展示/Office预览/PreviewOffice',
|
||||
component: ThPreviewOffice,
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof ThPreviewOffice>
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Base: Story = {}
|
22
stories/PreviewOfficeView.stories.ts
Normal file
22
stories/PreviewOfficeView.stories.ts
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-07-18 12:22:11
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-07-18 12:39:40
|
||||
* @FilePath: \vue3\stories\PreviewOfficeView.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThPreviewOfficeView from '../packages/preview-office-view/index.vue'
|
||||
|
||||
const meta = {
|
||||
title: '数据展示/Office预览/PreviewOfficeView',
|
||||
component: ThPreviewOfficeView,
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof ThPreviewOfficeView>
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Base: Story = {}
|
13
stories/SelectTableModal.stories.ts
Normal file
13
stories/SelectTableModal.stories.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThSelectTableModal from '../packages/select-table-modal/index.vue'
|
||||
|
||||
const meta = {
|
||||
title: '表单组件/SelectTableModal',
|
||||
component: ThSelectTableModal,
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof ThSelectTableModal>
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Base: Story = {}
|
13
stories/UploadAvatar.stories.ts
Normal file
13
stories/UploadAvatar.stories.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThUploadAvatar from '../packages/upload-avatar/index.vue'
|
||||
|
||||
const meta = {
|
||||
title: '表单组件/UploadAvatar',
|
||||
component: ThUploadAvatar,
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof ThUploadAvatar>
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Base: Story = {}
|
32
stories/UploadTable.stories.ts
Normal file
32
stories/UploadTable.stories.ts
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-07-18 12:23:37
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-07-18 16:11:39
|
||||
* @FilePath: \vue3\stories\UploadTable.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
import ThUploadTable from '../packages/upload-table/index.vue'
|
||||
|
||||
const meta = {
|
||||
title: '表单组件/UploadTable',
|
||||
component: ThUploadTable,
|
||||
tags: ['autodocs'],
|
||||
args: {
|
||||
accept: '.jpeg,.jpg,.png,.bmp',
|
||||
label1: '文件名称',
|
||||
label2: '图片上传',
|
||||
label3: '操作',
|
||||
fileList: [],
|
||||
},
|
||||
argTypes: {
|
||||
label1: { control: 'select', options: ['small', 'medium', 'large'] },
|
||||
},
|
||||
} satisfies Meta<typeof ThUploadTable>
|
||||
export default meta
|
||||
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Base: Story = {}
|
Reference in New Issue
Block a user