diff --git a/.gitignore b/.gitignore index cf3b9d2..65ca53c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,10 @@ dist/ package-lock.json .idea/ -.idea \ No newline at end of file +.idea +# 文件保留路径 +static/ + + +*Privide*.go + diff --git a/client/components.d.ts b/client/components.d.ts index 246ada3..ef63fc4 100644 --- a/client/components.d.ts +++ b/client/components.d.ts @@ -10,25 +10,55 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { CustomDialog: typeof import('./src/components/Popup/CustomDialog.vue')['default'] + ElAside: typeof import('element-plus/es')['ElAside'] + ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElButton: typeof import('element-plus/es')['ElButton'] ElCol: typeof import('element-plus/es')['ElCol'] ElCollapseTransition: typeof import('element-plus/es')['ElCollapseTransition'] + ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElContainer: typeof import('element-plus/es')['ElContainer'] + ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDropdown: typeof import('element-plus/es')['ElDropdown'] + ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] + ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElEmpty: typeof import('element-plus/es')['ElEmpty'] ElFooter: typeof import('element-plus/es')['ElFooter'] + ElForm: typeof import('element-plus/es')['ElForm'] + ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElHeader: typeof import('element-plus/es')['ElHeader'] ElIcon: typeof import('element-plus/es')['ElIcon'] + ElImage: typeof import('element-plus/es')['ElImage'] + ElImageViewer: typeof import('element-plus/es')['ElImageViewer'] + ElInput: typeof import('element-plus/es')['ElInput'] + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] + ElLink: typeof import('element-plus/es')['ElLink'] ElMain: typeof import('element-plus/es')['ElMain'] + ElMenu: typeof import('element-plus/es')['ElMenu'] + ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] + ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] + ElRadio: typeof import('element-plus/es')['ElRadio'] + ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRow: typeof import('element-plus/es')['ElRow'] + ElSelect: typeof import('element-plus/es')['ElSelect'] + ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] + ElSwitch: typeof import('element-plus/es')['ElSwitch'] + ElTable: typeof import('element-plus/es')['ElTable'] + ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] + ElTag: typeof import('element-plus/es')['ElTag'] + ElTooltip: typeof import('element-plus/es')['ElTooltip'] + ElUpload: typeof import('element-plus/es')['ElUpload'] FilmList: typeof import('./src/components/FilmList.vue')['default'] Footer: typeof import('./src/components/Footer.vue')['default'] Header: typeof import('./src/components/Header.vue')['default'] + ImageViewer: typeof import('./src/components/Global/ImageViewer.vue')['default'] Loading: typeof import('./src/components/Loading/Loading.vue')['default'] + ManageHeader: typeof import('./src/components/Manage/ManageHeader.vue')['default'] RelateList: typeof import('./src/components/RelateList.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + Sidebar: typeof import('./src/components/Manage/Sidebar.vue')['default'] Util: typeof import('./src/components/Util.vue')['default'] } } diff --git a/client/index.html b/client/index.html index 33c4454..05d9121 100644 --- a/client/index.html +++ b/client/index.html @@ -10,7 +10,7 @@ (╥﹏╥) - +
diff --git a/client/package.json b/client/package.json index 434d7eb..8012f2d 100644 --- a/client/package.json +++ b/client/package.json @@ -13,7 +13,7 @@ "@element-plus/icons-vue": "^2.1.0", "@videojs-player/vue": "^1.0.0", "axios": "^1.3.4", - "element-plus": "^2.3.2", + "element-plus": "^2.4.4", "video.js": "^8.0.4", "vue": "^3.2.47" }, diff --git a/client/src/App.vue b/client/src/App.vue index ae4803d..0029e9b 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,14 +1,15 @@ \ No newline at end of file diff --git a/client/src/components/Global/preview.ts b/client/src/components/Global/preview.ts new file mode 100644 index 0000000..d3eed30 --- /dev/null +++ b/client/src/components/Global/preview.ts @@ -0,0 +1,20 @@ +import ImageViewer from "./ImageViewer.vue"; +import {createApp} from "vue"; + +const Preview = (options:any) =>{ + // 默认创建 ImageViewer 组件时为显示状态 + options.show = true + // 创建节点用户挂载 + const el = document.createElement("div") + document.body.appendChild(el) + const app = createApp(ImageViewer, { + options, + remove(){ + app.unmount() + document.body.removeChild(el) + } + }) + return app.mount(el) +} + +export {Preview} \ No newline at end of file diff --git a/client/src/components/Header.vue b/client/src/components/Header.vue index 56f2e3d..80e876f 100644 --- a/client/src/components/Header.vue +++ b/client/src/components/Header.vue @@ -3,7 +3,8 @@