From eda2d71cb68bb70256d31115d6ce10285ae4bec2 Mon Sep 17 00:00:00 2001 From: Guarp Date: Sat, 22 Feb 2025 19:21:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=96=B0=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GeneralEditor.vue | 29 -- src/components/GeneralRenderer.vue | 87 +++++ src/components/NavBar.vue | 6 +- .../accountPages/Account_admin_uploadLog.vue | 10 +- src/pages/accountPages/Account_setting.vue | 54 ++- src/pages/test.vue | 349 +++++++++++++++++- src/store/index.js | 10 +- src/utils/getCurrentTime.js | 10 + 8 files changed, 509 insertions(+), 46 deletions(-) delete mode 100644 src/components/GeneralEditor.vue create mode 100644 src/components/GeneralRenderer.vue create mode 100644 src/utils/getCurrentTime.js diff --git a/src/components/GeneralEditor.vue b/src/components/GeneralEditor.vue deleted file mode 100644 index e81d8cc..0000000 --- a/src/components/GeneralEditor.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - diff --git a/src/components/GeneralRenderer.vue b/src/components/GeneralRenderer.vue new file mode 100644 index 0000000..afa5f11 --- /dev/null +++ b/src/components/GeneralRenderer.vue @@ -0,0 +1,87 @@ + + + + \ No newline at end of file diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 7a44025..f060793 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -319,17 +319,21 @@ const toggleTheme = () => { /* 移动端下拉菜单 */ .mobile-nav-items { + display: flex; + flex-direction: column; position: absolute; backdrop-filter: blur(10px); top: 45px; + word-break: keep-all; list-style: none; padding: 1rem; margin: 0; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); - text-align: center; } .mobile-nav-items li { + display: flex; + justify-content: center; margin: 0.5rem; padding: 5px; border-radius: 4px; diff --git a/src/pages/accountPages/Account_admin_uploadLog.vue b/src/pages/accountPages/Account_admin_uploadLog.vue index 956af06..f4bdddd 100644 --- a/src/pages/accountPages/Account_admin_uploadLog.vue +++ b/src/pages/accountPages/Account_admin_uploadLog.vue @@ -23,16 +23,7 @@ const funcButtons = ref([ {name: 'url', func: '[[cur]](https://example.com)'}, {name: 'img', func: '![图片说明](https://example.com/img1.png)'}, ]) -function getFormattedTime() { - const now = new Date(); - const year = now.getFullYear(); - const month = String(now.getMonth() + 1).padStart(2, '0'); // 月份从0开始,需要加1 - const day = String(now.getDate()).padStart(2, '0'); - const hours = String(now.getHours()).padStart(2, '0'); - const minutes = String(now.getMinutes()).padStart(2, '0'); - return `${year}-${month}-${day} ${hours}:${minutes}`; -} function clickFuncBtn(func) { const textarea = document.querySelector('textarea'); // 获取 textarea 元素 const startPos = textarea.selectionStart; // 获取焦点的起始位置 @@ -194,6 +185,7 @@ onUnmounted(() => { width: 70%; } + button { color: white; background: #363636; diff --git a/src/pages/accountPages/Account_setting.vue b/src/pages/accountPages/Account_setting.vue index 235d636..a76b986 100644 --- a/src/pages/accountPages/Account_setting.vue +++ b/src/pages/accountPages/Account_setting.vue @@ -1,5 +1,5 @@