46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
/*
|
||
* @Author: zhaojinfeng 121016171@qq.com
|
||
* @Date: 2023-07-18 12:22:11
|
||
* @LastEditors: peerless_hero peerless_hero@outlook.com
|
||
* @LastEditTime: 2023-08-30 17:57:53
|
||
* @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'],
|
||
args: {
|
||
url: 'https://501351981.github.io/vue-office/examples/dist/static/test-files/test.docx',
|
||
extension: 'docx',
|
||
},
|
||
} satisfies Meta<typeof ThPreviewOfficeView>
|
||
export default meta
|
||
|
||
type Story = StoryObj<typeof meta>
|
||
|
||
export const Docx: Story = {
|
||
name: 'Word文档(仅支持.docx)',
|
||
}
|
||
|
||
export const Excel: Story = {
|
||
name: 'Excel表格(仅支持.xlsx)',
|
||
args: {
|
||
url: 'https://501351981.github.io/vue-office/examples/dist/static/test-files/test.xlsx',
|
||
extension: 'xlsx',
|
||
},
|
||
}
|
||
|
||
export const Pdf: Story = {
|
||
name: 'PDF文档',
|
||
args: {
|
||
url: 'https://501351981.github.io/vue-office/examples/dist/static/test-files/test.pdf',
|
||
extension: 'pdf',
|
||
},
|
||
}
|