diff --git a/components.d.ts b/components.d.ts new file mode 100644 index 0000000..bedc138 --- /dev/null +++ b/components.d.ts @@ -0,0 +1,14 @@ +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by unplugin-vue-components +// Read more: https://github.com/vuejs/core/pull/3399 +export {} + +declare module 'vue' { + export interface GlobalComponents { + HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] + VanCell: typeof import('vant/es')['Cell'] + VanPopup: typeof import('vant/es')['Popup'] + } +} diff --git a/src/App.vue b/src/App.vue index 5d76ff4..2b73d3c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,7 +16,7 @@ 头像 - +

账号:

@@ -52,6 +52,14 @@ + +
+

文件名: {{ selectedRow ? selectedRow.fileName : '' }}

+

文件格式: {{ selectedRow ? selectedRow.format : '' }}

+

文件大小: {{ selectedRow ? selectedRow.fileSize : '' }}

+

上传者: {{ selectedRow ? selectedRow.uploader : '' }}

+
+
{ }; // 详细信息 +const showAbout = ref(false); +const selectedRow = ref(null); // 保存要显示的属性值// 详细信息弹出框显示状态的响应式变量 const handleAbout = (row: TableRow) => { console.log('点击详细信息按钮', row); - alert('详细信息功能暂未实现' + row.id); + selectedRow.value = row; // 将点击的行数据赋给selectedRow + showAbout.value = true; }; + const userLogin = () => { console.log(username.value, userPassword.value); }; @@ -244,4 +260,8 @@ const showPopup = () => { width: 80%; /* 宽度占80% */ margin: 20px; /* 外边距,上下均为20px */ } + +.BoxFileAbout { + margin: 30px; +} \ No newline at end of file