diff --git a/components.d.ts b/components.d.ts index 6c043a8..d753653 100644 --- a/components.d.ts +++ b/components.d.ts @@ -32,4 +32,7 @@ declare module 'vue' { RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } + export interface GlobalDirectives { + vImagePreview: typeof import('vue-devui/image-preview/index.es.js')['ImagePreviewDirective'] + } } diff --git a/env.d.ts b/env.d.ts index f06121c..554aeb2 100644 --- a/env.d.ts +++ b/env.d.ts @@ -5,13 +5,15 @@ declare global { let $http: any; let $cookies: any; let $msg: any; - let $store:any + let $store:any; + let $modal :any interface Window { // 扩展Windows环境下的全局$http对象 $http: any; $cookies: any; $msg: any; $store:any + $modal:any } } diff --git a/src/App.vue b/src/App.vue index 31f20a9..b391568 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,15 +4,51 @@ + + + {{ modal.content }} +
+ 取消 + | + 确定 +
+
\ No newline at end of file diff --git a/src/api/file/index.ts b/src/api/file/index.ts index e69de29..5dfcb7c 100644 --- a/src/api/file/index.ts +++ b/src/api/file/index.ts @@ -0,0 +1,10 @@ +import request from "@/util/request"; + +//getFileList +export function getFileList(params: Record) { + return request({ + url: "/files/search", + method: "get", + params, + }); +} diff --git a/src/assets/base.less b/src/assets/base.less index 6abe776..da4f1bf 100644 --- a/src/assets/base.less +++ b/src/assets/base.less @@ -10,3 +10,9 @@ .ps__thumb-y { background-color: #f6cbe7 !important; } +.devui-image-preview { + background-color: #00000090 !important; + img { + border-radius: 8px; + } +} \ No newline at end of file diff --git a/src/components/homeSide.vue b/src/components/homeSide.vue index 289b8f5..823950b 100644 --- a/src/components/homeSide.vue +++ b/src/components/homeSide.vue @@ -39,8 +39,8 @@