feat: 组件

This commit is contained in:
2023-07-18 22:06:20 +08:00
parent bb673dfd8a
commit 30a7f03650
14 changed files with 613 additions and 0 deletions

View 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 = {}

View 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 = {}

View 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 = {}

View 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 = {}

View 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 = {}