37 lines
966 B
TypeScript
37 lines
966 B
TypeScript
/*
|
|
* @Author: zhaojinfeng 121016171@qq.com
|
|
* @Date: 2023-07-21 00:29:39
|
|
* @LastEditors: zhaojinfeng 121016171@qq.com
|
|
* @LastEditTime: 2023-08-22 02:11:14
|
|
* @FilePath: \vue3\stories\PreviewOffice.stories.ts
|
|
* @Description:
|
|
*
|
|
*/
|
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
import ThPreviewOffice from '../packages/preview-office/index.vue'
|
|
|
|
const meta = {
|
|
title: '数据展示/Office预览/PreviewOffice',
|
|
component: ThPreviewOffice,
|
|
tags: ['autodocs'],
|
|
args: {
|
|
file: {
|
|
url: 'https://501351981.github.io/vue-office/examples/dist/static/test-files/test.docx',
|
|
extension: 'docx',
|
|
},
|
|
},
|
|
parameters: {
|
|
file: {
|
|
url: 'https://501351981.github.io/vue-office/examples/dist/static/test-files/test.docx',
|
|
extension: 'docx',
|
|
},
|
|
},
|
|
} satisfies Meta<typeof ThPreviewOffice>
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof meta>
|
|
|
|
export const Base: Story = {
|
|
name: '搭配PreviewOfficeView组件使用',
|
|
}
|