mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 11:34:10 +08:00
移除 vue-office 示例
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
"@visactor/vchart": "^1.13.8",
|
||||
"@vue-office/docx": "^1.6.3",
|
||||
"@vue-office/excel": "^1.7.14",
|
||||
"@vue-office/pdf": "^2.0.10",
|
||||
"@vueuse/components": "^13.0.0",
|
||||
"@vueuse/core": "^13.0.0",
|
||||
"@vueuse/integrations": "^13.0.0",
|
||||
|
||||
Generated
-18
@@ -32,9 +32,6 @@ importers:
|
||||
'@vue-office/excel':
|
||||
specifier: ^1.7.14
|
||||
version: 1.7.14(vue-demi@0.14.10(vue@3.5.13(typescript@5.8.2)))(vue@3.5.13(typescript@5.8.2))
|
||||
'@vue-office/pdf':
|
||||
specifier: ^2.0.10
|
||||
version: 2.0.10(vue-demi@0.14.10(vue@3.5.13(typescript@5.8.2)))(vue@3.5.13(typescript@5.8.2))
|
||||
'@vueuse/components':
|
||||
specifier: ^13.0.0
|
||||
version: 13.0.0(vue@3.5.13(typescript@5.8.2))
|
||||
@@ -2324,16 +2321,6 @@ packages:
|
||||
'@vue/composition-api':
|
||||
optional: true
|
||||
|
||||
'@vue-office/pdf@2.0.10':
|
||||
resolution: {integrity: sha512-yHVLrMAKpMPBkhBwofFyGEtEeJF0Zd7oGmf56Pe5aj/xObdRq3E1CIZqTqhWJNgHV8oLQqaX0vs4p5T1zq+GIA==}
|
||||
peerDependencies:
|
||||
'@vue/composition-api': ^1.7.1
|
||||
vue: ^2.0.0 || >=3.0.0
|
||||
vue-demi: ^0.14.6
|
||||
peerDependenciesMeta:
|
||||
'@vue/composition-api':
|
||||
optional: true
|
||||
|
||||
'@vue/babel-helper-vue-transform-on@1.4.0':
|
||||
resolution: {integrity: sha512-mCokbouEQ/ocRce/FpKCRItGo+013tHg7tixg3DUNS+6bmIchPt66012kBMm476vyEIJPafrvOf4E5OYj3shSw==}
|
||||
|
||||
@@ -9641,11 +9628,6 @@ snapshots:
|
||||
vue: 3.5.13(typescript@5.8.2)
|
||||
vue-demi: 0.14.10(vue@3.5.13(typescript@5.8.2))
|
||||
|
||||
'@vue-office/pdf@2.0.10(vue-demi@0.14.10(vue@3.5.13(typescript@5.8.2)))(vue@3.5.13(typescript@5.8.2))':
|
||||
dependencies:
|
||||
vue: 3.5.13(typescript@5.8.2)
|
||||
vue-demi: 0.14.10(vue@3.5.13(typescript@5.8.2))
|
||||
|
||||
'@vue/babel-helper-vue-transform-on@1.4.0': {}
|
||||
|
||||
'@vue/babel-plugin-jsx@1.4.0(@babel/core@7.26.9)':
|
||||
|
||||
@@ -148,16 +148,6 @@ const routes: RouteRecordRaw = {
|
||||
icon: 'i-mdi:table-large',
|
||||
},
|
||||
},
|
||||
// TODO: 临时禁用 https://github.com/501351981/vue-office/issues/438
|
||||
// {
|
||||
// path: 'file-preview',
|
||||
// name: 'pluginExampleFilePreview',
|
||||
// component: () => import('@/views/plugin_example/file-preview.vue'),
|
||||
// meta: {
|
||||
// title: '文件预览',
|
||||
// icon: 'i-mdi:file-eye-outline',
|
||||
// },
|
||||
// },
|
||||
{
|
||||
path: 'cropper',
|
||||
name: 'pluginExampleCropper',
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
<route lang="yaml">
|
||||
meta:
|
||||
enabled: false
|
||||
</route>
|
||||
|
||||
<script setup lang="ts">
|
||||
import VueOfficeDocx from '@vue-office/docx'
|
||||
import VueOfficeExcel from '@vue-office/excel'
|
||||
import VueOfficePdf from '@vue-office/pdf'
|
||||
import Alert from './components/alert.vue'
|
||||
import Command from './components/command.vue'
|
||||
import '@vue-office/docx/lib/index.css'
|
||||
import '@vue-office/excel/lib/index.css'
|
||||
|
||||
const docx = new URL('./files/test.docx', import.meta.url).href
|
||||
const excel = new URL('./files/test.xlsx', import.meta.url).href
|
||||
const pdf = new URL('./files/test.pdf', import.meta.url).href
|
||||
|
||||
function open(url: string) {
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<Alert />
|
||||
<FaPageHeader title="文件预览">
|
||||
<template #description>
|
||||
<div class="space-y-2">
|
||||
<p>支持docx、xlsx、pdf文件预览。</p>
|
||||
<p>
|
||||
安装命令:
|
||||
<Command text="pnpm add @vue-office/docx @vue-office/excel @vue-office/pdf" />
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
<FaButton variant="outline" @click="open('https://github.com/501351981/vue-office')">
|
||||
<FaIcon name="i-ep:link" />
|
||||
访问 vue-office
|
||||
</FaButton>
|
||||
</FaPageHeader>
|
||||
<FaPageMain title="docx文件预览">
|
||||
<VueOfficeDocx :src="docx" style="height: 500px;" />
|
||||
</FaPageMain>
|
||||
<FaPageMain title="excel文件预览">
|
||||
<VueOfficeExcel :src="excel" style="height: 500px;" />
|
||||
</FaPageMain>
|
||||
<FaPageMain title="pdf文件预览">
|
||||
<VueOfficePdf :src="pdf" style="height: 500px;" />
|
||||
</FaPageMain>
|
||||
</div>
|
||||
</template>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user