@chenghongyu/xpt-file-viewer 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/extensions.json +3 -0
- package/README.md +5 -0
- package/auto-imports.d.ts +12 -0
- package/components.d.ts +45 -0
- package/dist.zip +0 -0
- package/index.html +13 -0
- package/package.json +100 -0
- package/presets/eslint/.eslintrc-auto-import.json +462 -0
- package/presets/plugins/html.ts +14 -0
- package/presets/shared/env.ts +46 -0
- package/presets/shared/resolvers.ts +29 -0
- package/presets/tov.ts +132 -0
- package/presets/types/auto-imports.d.ts +806 -0
- package/presets/types/components.d.ts +164 -0
- package/presets/types/env.d.ts +17 -0
- package/public/favicon.svg +1 -0
- package/public/icons.svg +24 -0
- package/public/testfile/README.md +5 -0
- package/public/testfile/useFileContextMenu.js +74 -0
- package/public/testfile//345/217/221/347/245/250.pdf +0 -0
- package/public/testfile//346/216/245/346/224/266/345/207/275.docx +0 -0
- package/public/testfile//350/247/204/346/240/274/345/236/213/345/217/2671.txt +263 -0
- package/public/testfile//350/247/206/351/242/2211.mp4 +0 -0
- package/public/testfile//351/237/263/351/242/2211.mp3 +0 -0
- package/src/App.vue +8 -0
- package/src/api/admin/admin-2fa.js +18 -0
- package/src/api/admin/admin-download-log.js +37 -0
- package/src/api/admin/admin-login-log.js +9 -0
- package/src/api/admin/admin-permission.js +9 -0
- package/src/api/admin/admin-setting.js +121 -0
- package/src/api/admin/admin-share.js +20 -0
- package/src/api/admin/admin-short-link.js +49 -0
- package/src/api/admin/admin-sso.js +38 -0
- package/src/api/admin/admin-storage.js +189 -0
- package/src/api/admin/admin-user.js +61 -0
- package/src/api/home/common.js +9 -0
- package/src/api/home/file-operator.js +89 -0
- package/src/api/home/home.js +87 -0
- package/src/api/home/install.js +18 -0
- package/src/api/home/login.js +9 -0
- package/src/api/home/only-office.js +10 -0
- package/src/api/home/share.js +115 -0
- package/src/api/home/user.js +74 -0
- package/src/api/tools/tools-115.js +17 -0
- package/src/api/tools/tools-gd.js +13 -0
- package/src/api/tools/tools-s3.js +25 -0
- package/src/api/tools/tools-sharepoint.js +19 -0
- package/src/assets/hero.png +0 -0
- package/src/assets/icons/401.svg +1 -0
- package/src/assets/icons/403.svg +45 -0
- package/src/assets/icons/404.svg +1 -0
- package/src/assets/icons/500.svg +1 -0
- package/src/assets/icons/admin-login.svg +1 -0
- package/src/assets/icons/document.svg +1 -0
- package/src/assets/icons/empty.svg +145 -0
- package/src/assets/icons/file-type-apk.svg +1 -0
- package/src/assets/icons/file-type-archive.svg +1 -0
- package/src/assets/icons/file-type-audio.svg +1 -0
- package/src/assets/icons/file-type-back.svg +1 -0
- package/src/assets/icons/file-type-css.svg +1 -0
- package/src/assets/icons/file-type-deb.svg +1 -0
- package/src/assets/icons/file-type-dll.svg +1 -0
- package/src/assets/icons/file-type-doc.svg +1 -0
- package/src/assets/icons/file-type-document.svg +1 -0
- package/src/assets/icons/file-type-docx.svg +1 -0
- package/src/assets/icons/file-type-exe.svg +1 -0
- package/src/assets/icons/file-type-expression.svg +1 -0
- package/src/assets/icons/file-type-file.svg +1 -0
- package/src/assets/icons/file-type-folder.svg +1 -0
- package/src/assets/icons/file-type-html.svg +1 -0
- package/src/assets/icons/file-type-image.svg +1 -0
- package/src/assets/icons/file-type-java.svg +1 -0
- package/src/assets/icons/file-type-js.svg +1 -0
- package/src/assets/icons/file-type-less.svg +1 -0
- package/src/assets/icons/file-type-md.svg +1 -0
- package/src/assets/icons/file-type-office.svg +1 -0
- package/src/assets/icons/file-type-pdf.svg +1 -0
- package/src/assets/icons/file-type-php.svg +1 -0
- package/src/assets/icons/file-type-ppt.svg +1 -0
- package/src/assets/icons/file-type-pptx.svg +1 -0
- package/src/assets/icons/file-type-py.svg +1 -0
- package/src/assets/icons/file-type-rb.svg +1 -0
- package/src/assets/icons/file-type-root.svg +1 -0
- package/src/assets/icons/file-type-rpm.svg +1 -0
- package/src/assets/icons/file-type-rust.svg +1 -0
- package/src/assets/icons/file-type-script.svg +1 -0
- package/src/assets/icons/file-type-text.svg +1 -0
- package/src/assets/icons/file-type-three3d.svg +5 -0
- package/src/assets/icons/file-type-vbs.svg +1 -0
- package/src/assets/icons/file-type-video.svg +1 -0
- package/src/assets/icons/file-type-xls.svg +1 -0
- package/src/assets/icons/file-type-xlsx.svg +1 -0
- package/src/assets/icons/file-type-xml.svg +1 -0
- package/src/assets/icons/file-type-yaml.svg +1 -0
- package/src/assets/icons/file-upload.svg +1 -0
- package/src/assets/icons/github.svg +1 -0
- package/src/assets/icons/install-step.svg +40 -0
- package/src/assets/icons/reset-password.svg +1 -0
- package/src/assets/icons/storage-aliyun.svg +1 -0
- package/src/assets/icons/storage-baidu.svg +1 -0
- package/src/assets/icons/storage-doge-cloud.svg +207 -0
- package/src/assets/icons/storage-ftp.svg +13 -0
- package/src/assets/icons/storage-google-drive.svg +8 -0
- package/src/assets/icons/storage-huawei.svg +1 -0
- package/src/assets/icons/storage-local.svg +11 -0
- package/src/assets/icons/storage-minio.svg +1 -0
- package/src/assets/icons/storage-onedrive-china.svg +18 -0
- package/src/assets/icons/storage-onedrive.svg +4 -0
- package/src/assets/icons/storage-open115.svg +23 -0
- package/src/assets/icons/storage-qiniu.svg +1 -0
- package/src/assets/icons/storage-s3.svg +5 -0
- package/src/assets/icons/storage-sftp.svg +13 -0
- package/src/assets/icons/storage-sharepoint-china.svg +23 -0
- package/src/assets/icons/storage-sharepoint.svg +1 -0
- package/src/assets/icons/storage-tencent.svg +9 -0
- package/src/assets/icons/storage-ufile.svg +14 -0
- package/src/assets/icons/storage-upyun.svg +1 -0
- package/src/assets/icons/storage-webdav.svg +1 -0
- package/src/assets/icons/upload.svg +50 -0
- package/src/assets/icons/zfile-basic.svg +17 -0
- package/src/assets/icons/zfile-horizontal.svg +16 -0
- package/src/assets/icons/zfile.svg +1 -0
- package/src/assets/vite.svg +1 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/HelloWorld.vue +319 -0
- package/src/components/common/QrCodePreview.vue +118 -0
- package/src/components/common/dialog/ZDialog.vue +171 -0
- package/src/components/common/dialog/types.ts +19 -0
- package/src/components/common/dialog/useDialog.ts +18 -0
- package/src/components/common/dialog/useDialogWithForm.ts +21 -0
- package/src/components/copy.vue +133 -0
- package/src/components/file/preview/AudioPlayer.vue +333 -0
- package/src/components/file/preview/CopyCode.vue +47 -0
- package/src/components/file/preview/FileGallery.vue +199 -0
- package/src/components/file/preview/ImageViewer.vue +432 -0
- package/src/components/file/preview/KkFileViewer.vue +86 -0
- package/src/components/file/preview/KkFileViewerDialog.vue +42 -0
- package/src/components/file/preview/MarkdownViewer.vue +102 -0
- package/src/components/file/preview/MarkdownViewerAsyncLoading.vue +17 -0
- package/src/components/file/preview/MarkdownViewerDialogAsyncLoading.vue +12 -0
- package/src/components/file/preview/OfficeViewer.vue +76 -0
- package/src/components/file/preview/OfficeViewerDialog.vue +55 -0
- package/src/components/file/preview/PdfViewer.vue +157 -0
- package/src/components/file/preview/PdfViewerDialog.vue +41 -0
- package/src/components/file/preview/TextViewer.vue +232 -0
- package/src/components/file/preview/TextViewerAsyncLoading.vue +22 -0
- package/src/components/file/preview/TextViewerDialog.vue +53 -0
- package/src/components/file/preview/Three3dPreview.vue +114 -0
- package/src/components/file/preview/Three3dPreviewDialog.vue +50 -0
- package/src/components/file/preview/VideoPlayer.vue +341 -0
- package/src/components/file/preview/VideoPlayerAsyncLoading.vue +45 -0
- package/src/components/file/preview/VideoPlayerDialog.vue +51 -0
- package/src/components/file/selectFolder/SelectFolder.vue +208 -0
- package/src/components/file/selectFolder/index.ts +50 -0
- package/src/components/file/selectFolder/types.ts +5 -0
- package/src/components/fileReview/AudioPlayer-copy.vue +333 -0
- package/src/components/fileReview/PdfViewer-copy.vue +157 -0
- package/src/components/fileReview/TextViewer-copy.vue +44 -0
- package/src/components/fileReview/VideoPlayer-copy.vue +341 -0
- package/src/components/messageBox/confirm/confirm.vue +137 -0
- package/src/components/messageBox/confirm/index.ts +27 -0
- package/src/components/messageBox/confirm/types.ts +15 -0
- package/src/components/messageBox/messageBox.ts +9 -0
- package/src/components/messageBox/prompt/index.ts +27 -0
- package/src/components/messageBox/prompt/prompt.vue +178 -0
- package/src/components/messageBox/prompt/types.ts +24 -0
- package/src/components/vue-codemirror/editor.vue +212 -0
- package/src/components/vue-codemirror/encodings.ts +27 -0
- package/src/components/vue-codemirror/index.vue +380 -0
- package/src/components/vue-codemirror/lang-code/cpp/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/css/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/dockerfile/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/erlang/index.ts +6 -0
- package/src/components/vue-codemirror/lang-code/go/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/html/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/java/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/javascript/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/json/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/jsx/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/lua/index.ts +6 -0
- package/src/components/vue-codemirror/lang-code/markdown/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/mysql/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/nginx/index.ts +6 -0
- package/src/components/vue-codemirror/lang-code/perl/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/pgsql/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/php/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/powershell/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/python/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/r/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/ruby/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/rust/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/shell/index.ts +5 -0
- package/src/components/vue-codemirror/lang-code/sql/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/stylus/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/swift/index.ts +4 -0
- package/src/components/vue-codemirror/lang-code/toml/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/tsx/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/typescript/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/vb/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/vbscript/index.ts +3 -0
- package/src/components/vue-codemirror/lang-code/xml/index.ts +2 -0
- package/src/components/vue-codemirror/lang-code/yaml/index.ts +3 -0
- package/src/components/vue-codemirror/languages.ts +8 -0
- package/src/components/vue-codemirror/themes.ts +5 -0
- package/src/components/vue-codemirror/toolbar.vue +183 -0
- package/src/components/vue-codemirror/types.ts +12 -0
- package/src/components.d.ts +49 -0
- package/src/composables/admin/layout/admin-layout.js +53 -0
- package/src/composables/admin/link/useLinkSetting.js +16 -0
- package/src/composables/admin/sso/baseSsoConfig.js +54 -0
- package/src/composables/admin/sso/useSsoConfig.js +176 -0
- package/src/composables/admin/storage/storage-copy.js +89 -0
- package/src/composables/admin/storage/storage-filter.js +64 -0
- package/src/composables/admin/storage/storage-list.js +202 -0
- package/src/composables/admin/storage/storage-password.js +101 -0
- package/src/composables/admin/storage/storage-readme.js +102 -0
- package/src/composables/admin/storage/utils/open115-util.js +61 -0
- package/src/composables/admin/useAdminSetting.js +60 -0
- package/src/composables/admin/useClientInfo.js +20 -0
- package/src/composables/admin/user/user-copy.js +79 -0
- package/src/composables/file/useBatchOperatorResult.js +19 -0
- package/src/composables/file/useFileContextMenu.js +74 -0
- package/src/composables/file/useFileData.js +243 -0
- package/src/composables/file/useFileLink.js +175 -0
- package/src/composables/file/useFileLoading.js +41 -0
- package/src/composables/file/useFileLongPressEvent.js +71 -0
- package/src/composables/file/useFileOperator.js +347 -0
- package/src/composables/file/useFilePreview.js +99 -0
- package/src/composables/file/useFilePwd.js +138 -0
- package/src/composables/file/useFileSelect.js +105 -0
- package/src/composables/file/useFileShare.js +39 -0
- package/src/composables/file/useFileUpload.js +1045 -0
- package/src/composables/file/useKkFileViewDialog.js +24 -0
- package/src/composables/file/useOfficeViewerDialog.js +20 -0
- package/src/composables/file/usePdfViewerDialog.js +22 -0
- package/src/composables/file/useShareActions.js +94 -0
- package/src/composables/file/useShareTableOperator.js +84 -0
- package/src/composables/file/useTableOperator.js +211 -0
- package/src/composables/file/useTextViewerDialog.js +22 -0
- package/src/composables/file/useThree3dPreviewDialog.js +23 -0
- package/src/composables/file/useVideoPlayerDialog.js +19 -0
- package/src/composables/header/useHeaderBreadcrumb.js +111 -0
- package/src/composables/header/useHeaderStorageList.js +150 -0
- package/src/composables/header/useSetting.js +58 -0
- package/src/composables/share/useShareData.js +178 -0
- package/src/composables/useDarks.ts +4 -0
- package/src/composables/useRouterData.js +41 -0
- package/src/constant/index.js +193 -0
- package/src/http/index.js +153 -0
- package/src/http/request.js +31 -0
- package/src/main.ts +23 -0
- package/src/stores/file-data.ts +108 -0
- package/src/stores/global-config.ts +115 -0
- package/src/stores/storage-config.ts +123 -0
- package/src/style.css +296 -0
- package/src/styles/admin.scss +91 -0
- package/src/styles/code-editor-variables.scss +52 -0
- package/src/styles/element-plus.scss +22 -0
- package/src/styles/error-page.css +26 -0
- package/src/styles/main.css +142 -0
- package/src/styles/tailwind/index.scss +33 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/models/base.ts +34 -0
- package/src/utils/models/file.ts +95 -0
- package/src/utils/models/path.ts +117 -0
- package/src/utils/models/qrcode.ts +21 -0
- package/src/utils/models/time.ts +132 -0
- package/src/utils/models/util.ts +42 -0
- package/src/utils/models/window.ts +14 -0
- package/stats.html +4950 -0
- package/tsconfig.app.json +16 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +26 -0
- package/vite.config.ts +57 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="video-player-container">
|
|
3
|
+
<!-- 视频播放器区域 -->
|
|
4
|
+
<div class="artplayer-app" ref="playerRef"></div>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script setup>
|
|
9
|
+
import { ref, onMounted, onUnmounted, watch } from 'vue'
|
|
10
|
+
import Mpegts from "mpegts.js"
|
|
11
|
+
import Hls from 'hls.js/dist/hls.light.min'
|
|
12
|
+
import Artplayer from "artplayer"
|
|
13
|
+
import { ElMessage } from 'element-plus'
|
|
14
|
+
|
|
15
|
+
// 组件接收的属性
|
|
16
|
+
const props = defineProps({
|
|
17
|
+
// 视频文件 URL
|
|
18
|
+
fileUrl: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
// 视频文件名
|
|
23
|
+
fileName: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: true
|
|
26
|
+
},
|
|
27
|
+
// 是否允许下载
|
|
28
|
+
allowDownload: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: true
|
|
31
|
+
},
|
|
32
|
+
// 视频列表(用于上下视频切换)
|
|
33
|
+
videoList: {
|
|
34
|
+
type: Array,
|
|
35
|
+
default: () => []
|
|
36
|
+
},
|
|
37
|
+
// 自动播放
|
|
38
|
+
autoPlay: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
// 发射事件
|
|
45
|
+
const emit = defineEmits(['error', 'ready', 'ended'])
|
|
46
|
+
|
|
47
|
+
// 响应式数据
|
|
48
|
+
const playerRef = ref(null)
|
|
49
|
+
const hiddenTools = ref(false)
|
|
50
|
+
const isMobile = ref(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
|
|
51
|
+
const currentVideo = ref({ name: '', url: '' })
|
|
52
|
+
const prevVideo = ref(null)
|
|
53
|
+
const nextVideo = ref(null)
|
|
54
|
+
let art = null
|
|
55
|
+
let hlsInstance = null
|
|
56
|
+
|
|
57
|
+
// 初始化播放器
|
|
58
|
+
const initArtPlayer = async (name, url) => {
|
|
59
|
+
currentVideo.value = { name, url }
|
|
60
|
+
|
|
61
|
+
// 销毁旧实例
|
|
62
|
+
if (art) {
|
|
63
|
+
art.destroy(true)
|
|
64
|
+
}
|
|
65
|
+
if (hlsInstance) {
|
|
66
|
+
hlsInstance.destroy()
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// 判断视频类型
|
|
70
|
+
let videoType = 'mp4'
|
|
71
|
+
const nameLower = name.toLowerCase()
|
|
72
|
+
if (nameLower.endsWith('flv')) {
|
|
73
|
+
videoType = 'flv'
|
|
74
|
+
} else if (nameLower.endsWith('m3u8')) {
|
|
75
|
+
videoType = 'm3u8'
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// 播放器配置
|
|
79
|
+
const options = {
|
|
80
|
+
container: playerRef.value,
|
|
81
|
+
title: name,
|
|
82
|
+
url: url,
|
|
83
|
+
type: videoType,
|
|
84
|
+
setting: true,
|
|
85
|
+
playbackRate: true,
|
|
86
|
+
flip: true,
|
|
87
|
+
fullscreen: true,
|
|
88
|
+
fastForward: true,
|
|
89
|
+
autoOrientation: true,
|
|
90
|
+
aspectRatio: true,
|
|
91
|
+
fullscreenWeb: true,
|
|
92
|
+
theme: '#23ade5',
|
|
93
|
+
lock: true,
|
|
94
|
+
miniProgressBar: true,
|
|
95
|
+
autoplay: props.autoPlay,
|
|
96
|
+
whitelist: ['*'],
|
|
97
|
+
airplay: true,
|
|
98
|
+
moreVideoAttr: {
|
|
99
|
+
'x5-video-player-type': 'h5',
|
|
100
|
+
'x5-video-player-fullscreen': false,
|
|
101
|
+
'x5-video-orientation': 'portraint',
|
|
102
|
+
preload: "metadata",
|
|
103
|
+
crossOrigin: 'anonymous',
|
|
104
|
+
},
|
|
105
|
+
// 自定义类型处理
|
|
106
|
+
customType: {
|
|
107
|
+
flv: function(video, url) {
|
|
108
|
+
if (Mpegts.isSupported()) {
|
|
109
|
+
const flvPlayer = Mpegts.createPlayer({
|
|
110
|
+
type: 'flv',
|
|
111
|
+
url: url,
|
|
112
|
+
})
|
|
113
|
+
flvPlayer.attachMediaElement(video)
|
|
114
|
+
flvPlayer.load()
|
|
115
|
+
} else {
|
|
116
|
+
ElMessage.error('不支持播放格式:flv')
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
m3u8: function(video, url) {
|
|
120
|
+
if (Hls.isSupported()) {
|
|
121
|
+
hlsInstance = new Hls()
|
|
122
|
+
hlsInstance.loadSource(url)
|
|
123
|
+
hlsInstance.attachMedia(video)
|
|
124
|
+
} else {
|
|
125
|
+
const canPlay = video.canPlayType('application/vnd.apple.mpegurl')
|
|
126
|
+
if (canPlay === 'probably' || canPlay === 'maybe') {
|
|
127
|
+
video.src = url
|
|
128
|
+
} else {
|
|
129
|
+
ElMessage.error('不支持播放格式:m3u8')
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
// 右键菜单
|
|
135
|
+
contextmenu: props.allowDownload ? [
|
|
136
|
+
{
|
|
137
|
+
html: '下载',
|
|
138
|
+
click: function() {
|
|
139
|
+
window.open(url)
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
] : [],
|
|
143
|
+
// 控制栏
|
|
144
|
+
controls: [
|
|
145
|
+
{
|
|
146
|
+
name: 'hidden-tools',
|
|
147
|
+
position: 'right',
|
|
148
|
+
html: hiddenTools.value ? '🙈' : '👁️',
|
|
149
|
+
click: function(_, event) {
|
|
150
|
+
hiddenTools.value = !hiddenTools.value
|
|
151
|
+
event.target.innerHTML = hiddenTools.value ? '🙈' : '👁️'
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// 创建播放器实例
|
|
158
|
+
art = new Artplayer(options)
|
|
159
|
+
|
|
160
|
+
// 错误处理
|
|
161
|
+
art.on("error", (error) => {
|
|
162
|
+
emit('error', error)
|
|
163
|
+
ElMessage.error('视频加载失败')
|
|
164
|
+
})
|
|
165
|
+
|
|
166
|
+
// 就绪事件
|
|
167
|
+
art.on('ready', () => {
|
|
168
|
+
emit('ready', { name, url })
|
|
169
|
+
updatePrevNextVideo(name)
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
// 播放结束事件
|
|
173
|
+
art.on('video:ended', () => {
|
|
174
|
+
emit('ended', { name, url })
|
|
175
|
+
})
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// 更新上下视频信息
|
|
179
|
+
const updatePrevNextVideo = (currentName) => {
|
|
180
|
+
if (!props.videoList || props.videoList.length === 0) {
|
|
181
|
+
prevVideo.value = null
|
|
182
|
+
nextVideo.value = null
|
|
183
|
+
return
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
const currentIndex = props.videoList.findIndex(v => v.name === currentName)
|
|
187
|
+
if (currentIndex !== -1) {
|
|
188
|
+
prevVideo.value = props.videoList[currentIndex - 1] || null
|
|
189
|
+
nextVideo.value = props.videoList[currentIndex + 1] || null
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// 播放上一个视频
|
|
194
|
+
const playPrevVideo = () => {
|
|
195
|
+
if (prevVideo.value) {
|
|
196
|
+
initArtPlayer(prevVideo.value.name, prevVideo.value.url)
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// 播放下一个视频
|
|
201
|
+
const playNextVideo = () => {
|
|
202
|
+
if (nextVideo.value) {
|
|
203
|
+
initArtPlayer(nextVideo.value.name, nextVideo.value.url)
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// 打开外部播放器
|
|
208
|
+
const openTarget = (mode) => {
|
|
209
|
+
const url = currentVideo.value.url
|
|
210
|
+
const name = currentVideo.value.name
|
|
211
|
+
|
|
212
|
+
const handlers = {
|
|
213
|
+
download: () => { window.location = url },
|
|
214
|
+
thunder: () => { window.location = `thunder://${btoa('AA' + url + 'ZZ')}` },
|
|
215
|
+
motrix: () => { window.location = `motrix://new-task?uri=${encodeURIComponent(url)}&out=${encodeURIComponent(name)}` },
|
|
216
|
+
potplayer: () => { window.location = `potplayer://${url}` },
|
|
217
|
+
vlc: () => { window.location = `vlc://${url}` },
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (handlers[mode]) {
|
|
221
|
+
handlers[mode]()
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// 监听属性变化
|
|
226
|
+
watch(() => [props.fileUrl, props.fileName], ([newUrl, newName]) => {
|
|
227
|
+
if (newUrl && newName) {
|
|
228
|
+
initArtPlayer(newName, newUrl)
|
|
229
|
+
}
|
|
230
|
+
}, { immediate: true })
|
|
231
|
+
|
|
232
|
+
// 生命周期
|
|
233
|
+
onMounted(() => {
|
|
234
|
+
if (props.fileUrl && props.fileName) {
|
|
235
|
+
initArtPlayer(props.fileName, props.fileUrl)
|
|
236
|
+
}
|
|
237
|
+
})
|
|
238
|
+
|
|
239
|
+
onUnmounted(() => {
|
|
240
|
+
if (art) {
|
|
241
|
+
art.destroy(true)
|
|
242
|
+
}
|
|
243
|
+
if (hlsInstance) {
|
|
244
|
+
hlsInstance.destroy()
|
|
245
|
+
}
|
|
246
|
+
})
|
|
247
|
+
|
|
248
|
+
// 暴露方法给父组件
|
|
249
|
+
defineExpose({
|
|
250
|
+
play: () => art?.play(),
|
|
251
|
+
pause: () => art?.pause(),
|
|
252
|
+
destroy: () => art?.destroy(true),
|
|
253
|
+
})
|
|
254
|
+
</script>
|
|
255
|
+
|
|
256
|
+
<style scoped lang="scss">
|
|
257
|
+
.video-player-container {
|
|
258
|
+
width: 100%;
|
|
259
|
+
background-color: #f5f5f5;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.artplayer-app {
|
|
263
|
+
width: 100%;
|
|
264
|
+
height: 60vh;
|
|
265
|
+
min-height: 400px;
|
|
266
|
+
background-color: #000;
|
|
267
|
+
|
|
268
|
+
:deep(.art-controls .art-control) {
|
|
269
|
+
min-width: 14px;
|
|
270
|
+
min-height: 14px;
|
|
271
|
+
|
|
272
|
+
@media (min-width: 640px) {
|
|
273
|
+
min-width: 46px;
|
|
274
|
+
min-height: 46px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.art-icon {
|
|
278
|
+
width: 28px;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.zfile-video-switch-tools {
|
|
284
|
+
display: flex;
|
|
285
|
+
justify-content: space-between;
|
|
286
|
+
padding: 12px 20px;
|
|
287
|
+
background-color: #f9fafb;
|
|
288
|
+
border-bottom: 1px solid #e5e7eb;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.zfile-video-tools {
|
|
292
|
+
display: grid;
|
|
293
|
+
grid-template-columns: repeat(3, 1fr);
|
|
294
|
+
gap: 0;
|
|
295
|
+
padding: 12px;
|
|
296
|
+
background-color: #f9fafb;
|
|
297
|
+
|
|
298
|
+
@media (min-width: 640px) {
|
|
299
|
+
display: flex;
|
|
300
|
+
flex-wrap: wrap;
|
|
301
|
+
justify-content: center;
|
|
302
|
+
gap: 16px;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.zfile-video-tools-item {
|
|
306
|
+
display: flex;
|
|
307
|
+
flex-direction: column;
|
|
308
|
+
align-items: center;
|
|
309
|
+
justify-content: center;
|
|
310
|
+
padding: 8px 12px;
|
|
311
|
+
margin: 4px;
|
|
312
|
+
background-color: #fff;
|
|
313
|
+
border-radius: 6px;
|
|
314
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
315
|
+
cursor: pointer;
|
|
316
|
+
transition: all 0.2s;
|
|
317
|
+
|
|
318
|
+
&:hover {
|
|
319
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
320
|
+
transform: translateY(-2px);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
img {
|
|
324
|
+
width: 32px;
|
|
325
|
+
height: 32px;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.zfile-video-tools-tips {
|
|
331
|
+
padding: 8px;
|
|
332
|
+
text-align: center;
|
|
333
|
+
color: #6b7280;
|
|
334
|
+
font-size: 12px;
|
|
335
|
+
background-color: #f9fafb;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.hidden-important {
|
|
339
|
+
display: none !important;
|
|
340
|
+
}
|
|
341
|
+
</style>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="zfile-async-loading">
|
|
3
|
+
<el-skeleton class="w-full h-[40vh] sm:h-[80vh]" animated>
|
|
4
|
+
<template #template>
|
|
5
|
+
<div class="flex justify-center items-center h-full loading">
|
|
6
|
+
<i-custom-file-type-video class="w-16 h-16" />
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
</el-skeleton>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup>
|
|
14
|
+
import { onMounted } from 'vue'
|
|
15
|
+
onMounted(() => {
|
|
16
|
+
document.querySelector(".el-dialog .z-dialog-title").innerHTML = '加载中...';
|
|
17
|
+
})
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<style lang="scss" scoped>
|
|
21
|
+
|
|
22
|
+
.zfile-async-loading {
|
|
23
|
+
:deep(.el-skeleton__item) {
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.loading {
|
|
28
|
+
background: linear-gradient(
|
|
29
|
+
100deg,
|
|
30
|
+
rgba(255, 255, 255, 0) 40%,
|
|
31
|
+
rgba(255, 255, 255, .5) 50%,
|
|
32
|
+
rgba(255, 255, 255, 0) 60%
|
|
33
|
+
) #ededed;
|
|
34
|
+
background-size: 200% 100%;
|
|
35
|
+
background-position-x: 180%;
|
|
36
|
+
animation: 1s loading ease-in-out infinite;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes loading {
|
|
40
|
+
to {
|
|
41
|
+
background-position-x: -20%;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
</style>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<z-dialog
|
|
3
|
+
v-model="visible"
|
|
4
|
+
draggable
|
|
5
|
+
top="5vh"
|
|
6
|
+
width="90%"
|
|
7
|
+
class="zfile-video-player-dialog"
|
|
8
|
+
:title="name"
|
|
9
|
+
:showFooter="false"
|
|
10
|
+
>
|
|
11
|
+
<video-player v-if="visible" />
|
|
12
|
+
</z-dialog>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup>
|
|
16
|
+
import { defineAsyncComponent } from "vue";
|
|
17
|
+
import ZDialog from "~/components/common/dialog/ZDialog.vue";
|
|
18
|
+
import VideoPlayerAsyncLoading from "~/components/file/preview/VideoPlayerAsyncLoading.vue";
|
|
19
|
+
|
|
20
|
+
const VideoPlayer = defineAsyncComponent({
|
|
21
|
+
loader: () => import("~/components/file/preview/VideoPlayer.vue"),
|
|
22
|
+
loadingComponent: VideoPlayerAsyncLoading
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
import useVideoPlayerDialog from "~/composables/file/useVideoPlayerDialog";
|
|
26
|
+
const { visible, name } = useVideoPlayerDialog();
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style scoped lang="scss">
|
|
30
|
+
:deep(.el-dialog) {
|
|
31
|
+
// 视频无边框
|
|
32
|
+
@apply p-0;
|
|
33
|
+
|
|
34
|
+
// 标题有边框
|
|
35
|
+
.el-dialog__header {
|
|
36
|
+
@apply p-2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// 全屏时,视频播放器高度 90vh
|
|
40
|
+
&.is-fullscreen {
|
|
41
|
+
.artplayer-app {
|
|
42
|
+
@apply h-[50vh] md:h-[80vh];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// 隐藏底部按钮
|
|
47
|
+
.el-dialog__footer {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="zfile-select-folder-body">
|
|
3
|
+
<el-dialog width="400px" v-model="props.show" :title="title" @close="handlerClose('cancel')">
|
|
4
|
+
<div class="zfile-select-folder-breadcrumb h-12">
|
|
5
|
+
<breadcrumb class="h-12" :items="breadcrumbData" @breadcrumb-click="onClickBreadcrumb" />
|
|
6
|
+
</div>
|
|
7
|
+
<div class="zfile-select-folder-body" v-loading="listLoading">
|
|
8
|
+
<nav class="space-y-1" aria-label="Sidebar">
|
|
9
|
+
<a v-for="item in fileList"
|
|
10
|
+
@click="onChangePath(item)"
|
|
11
|
+
:key="item.name"
|
|
12
|
+
:href="item.href"
|
|
13
|
+
:class="['text-gray-600 hover:bg-gray-50 hover:text-gray-900', 'group flex items-center rounded-md px-3 py-2 text-sm font-medium select-none']">
|
|
14
|
+
<i-custom-file-type-folder name="file-type-folder" class="text-2xl mr-3 h-6 w-6 flex-shrink-0" />
|
|
15
|
+
<span class="truncate select-none">{{ item.name }}</span>
|
|
16
|
+
</a>
|
|
17
|
+
<div v-if="fileList.length === 0">
|
|
18
|
+
<div class="flex items-center justify-center h-20">
|
|
19
|
+
<span class="text-gray-500">无文件夹</span>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</nav>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="zfile-select-folder-footer">
|
|
25
|
+
<div>
|
|
26
|
+
<i-lucide-folder-plus class="h-6 w-6 cursor-pointer text-blue-400" v-show="storageConfigStore.permission.newFolder" @click="onNewFolder"/>
|
|
27
|
+
</div>
|
|
28
|
+
<div>
|
|
29
|
+
<el-button type="info" @click="handlerClose('cancel')">取消</el-button>
|
|
30
|
+
<el-button type="primary" :loading="loading" @click="handlerClose('confirm')">确认</el-button>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</el-dialog>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script setup>
|
|
38
|
+
import { concatPath } from "~/utils";
|
|
39
|
+
import { ElMessage } from "element-plus";
|
|
40
|
+
|
|
41
|
+
import { inject } from 'vue'
|
|
42
|
+
import { loadFileListReq } from "~/api/home/home";
|
|
43
|
+
|
|
44
|
+
import useStorageConfigStore from "~/stores/storage-config";
|
|
45
|
+
let storageConfigStore = useStorageConfigStore();
|
|
46
|
+
|
|
47
|
+
import useFilePwd from "~/composables/file/useFilePwd";
|
|
48
|
+
let { getPathPwd, putPathPwd, popPassword } = useFilePwd();
|
|
49
|
+
|
|
50
|
+
import useFileOperator from "~/composables/file/useFileOperator";
|
|
51
|
+
const { newFolder } = useFileOperator();
|
|
52
|
+
|
|
53
|
+
const onNewFolder = () => {
|
|
54
|
+
newFolder(selectPath.value).then(() => {
|
|
55
|
+
loadFileList();
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// 组件传参及回写
|
|
60
|
+
const props = defineProps({
|
|
61
|
+
show: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: false
|
|
64
|
+
},
|
|
65
|
+
title: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: '选择文件夹'
|
|
68
|
+
},
|
|
69
|
+
storageKey: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: true
|
|
72
|
+
},
|
|
73
|
+
basePath: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: '/'
|
|
76
|
+
},
|
|
77
|
+
onClose: {
|
|
78
|
+
type: Function,
|
|
79
|
+
default: () => {}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
const loading = inject('loading');
|
|
84
|
+
|
|
85
|
+
const selectPath = ref('');
|
|
86
|
+
const fileList = ref([]);
|
|
87
|
+
const breadcrumbData = computed(() => {
|
|
88
|
+
let data = [
|
|
89
|
+
{
|
|
90
|
+
name: '根目录',
|
|
91
|
+
href: "/",
|
|
92
|
+
disable: false
|
|
93
|
+
}
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
let paths = selectPath.value.split('/');
|
|
97
|
+
if (paths) {
|
|
98
|
+
// 去除 paths 中所有空白字符
|
|
99
|
+
paths = paths.filter((item) => {
|
|
100
|
+
return !!item;
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
paths.forEach((item, index, arr) => {
|
|
104
|
+
let breadcrumbItem = {
|
|
105
|
+
name: item,
|
|
106
|
+
href: concatPath('/', arr.slice(0, index + 1).join('/')),
|
|
107
|
+
disable: index === arr.length - 1
|
|
108
|
+
}
|
|
109
|
+
data.push(breadcrumbItem);
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
return data;
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
onMounted(() => {
|
|
116
|
+
// 初始化路径
|
|
117
|
+
selectPath.value = props.basePath;
|
|
118
|
+
// 加载文件列表
|
|
119
|
+
loadFileList();
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
const listLoading = ref(false);
|
|
124
|
+
|
|
125
|
+
const loadFileList = async (password, rememberPassword) => {
|
|
126
|
+
const param = {
|
|
127
|
+
storageKey: props.storageKey,
|
|
128
|
+
path: selectPath.value,
|
|
129
|
+
password: password || getPathPwd(selectPath.value, true)
|
|
130
|
+
};
|
|
131
|
+
listLoading.value = true;
|
|
132
|
+
loadFileListReq(param).then((res) => {
|
|
133
|
+
// 过滤所有 type 为 FOLDER 的数据
|
|
134
|
+
res.data.files = res.data.files.filter((item) => {
|
|
135
|
+
return item.type === 'FOLDER';
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
let passwordPattern = res.data.passwordPattern;
|
|
139
|
+
putPathPwd(passwordPattern, param.password, rememberPassword);
|
|
140
|
+
|
|
141
|
+
fileList.value = res.data.files;
|
|
142
|
+
}).catch((error) => {
|
|
143
|
+
const onConfirm = (password, rememberPassword) => {
|
|
144
|
+
loadFileList(password, rememberPassword);
|
|
145
|
+
};
|
|
146
|
+
let data = error.response.data;
|
|
147
|
+
// 如果需要密码或密码错误进行提示, 并弹出输入密码的框.
|
|
148
|
+
if (data.code === constant.responseCode.INVALID_PASSWORD) {
|
|
149
|
+
ElMessage.warning('密码错误,请重新输入!');
|
|
150
|
+
popPassword(onConfirm);
|
|
151
|
+
} else if (data.code === constant.responseCode.REQUIRED_PASSWORD) {
|
|
152
|
+
popPassword(onConfirm);
|
|
153
|
+
} else {
|
|
154
|
+
ElMessage.error(data.msg);
|
|
155
|
+
}
|
|
156
|
+
}).finally(() => {
|
|
157
|
+
listLoading.value = false;
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
const onChangePath = (file) => {
|
|
162
|
+
selectPath.value = concatPath(file.path + '/' + file.name);
|
|
163
|
+
loadFileList();
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const onClickBreadcrumb = (item) => {
|
|
167
|
+
if (item.href) {
|
|
168
|
+
selectPath.value = decodeURI(item.href);
|
|
169
|
+
loadFileList();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// 响应关闭事件
|
|
174
|
+
const emit = defineEmits(['update:show'])
|
|
175
|
+
const handlerClose = (type) => {
|
|
176
|
+
const result = {
|
|
177
|
+
value: selectPath.value,
|
|
178
|
+
type
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (type === 'confirm') {
|
|
182
|
+
loading.value = true;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
emit('update:show', false)
|
|
186
|
+
props.onClose(result)
|
|
187
|
+
}
|
|
188
|
+
</script>
|
|
189
|
+
|
|
190
|
+
<style lang="scss" scoped>
|
|
191
|
+
|
|
192
|
+
.zfile-select-folder-body {
|
|
193
|
+
@apply h-96 overflow-y-auto;
|
|
194
|
+
|
|
195
|
+
:deep(.el-dialog) {
|
|
196
|
+
@apply w-96;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:deep(.el-dialog__body) {
|
|
200
|
+
@apply py-0;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.zfile-select-folder-footer {
|
|
205
|
+
@apply h-20 flex items-center justify-between;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
</style>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createApp } from "vue";
|
|
2
|
+
import SelectFolder from "./SelectFolder.vue";
|
|
3
|
+
import type { ConfirmResult } from "./types";
|
|
4
|
+
|
|
5
|
+
const createDialog = (title: string,
|
|
6
|
+
storageKey: string,
|
|
7
|
+
basePath: string,
|
|
8
|
+
onConfirm: Function)=> {
|
|
9
|
+
const mountNode = document.createElement('div')
|
|
10
|
+
const Instance = createApp(SelectFolder, {
|
|
11
|
+
show: true,
|
|
12
|
+
title,
|
|
13
|
+
storageKey,
|
|
14
|
+
basePath,
|
|
15
|
+
onClose: (res: ConfirmResult) => {
|
|
16
|
+
|
|
17
|
+
const stopLoading = () => {
|
|
18
|
+
loading.value = false;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const closeDialog = () => {
|
|
22
|
+
Instance.unmount();
|
|
23
|
+
document.body.removeChild(mountNode);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (res.type === 'confirm') {
|
|
27
|
+
onConfirm({
|
|
28
|
+
...res,
|
|
29
|
+
callback: {
|
|
30
|
+
stopLoading,
|
|
31
|
+
closeDialog
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
closeDialog();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
// 通过 inject 方法获取 loading 的值
|
|
41
|
+
const loading = ref(false);
|
|
42
|
+
Instance.provide("loading", loading);
|
|
43
|
+
|
|
44
|
+
document.body.appendChild(mountNode)
|
|
45
|
+
Instance.mount(mountNode)
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
export default createDialog;
|