From a4ae9c79fa7006100c907ad9647a7f0f9075b0fe Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 28 Jan 2026 12:21:57 +0800 Subject: [PATCH] =?UTF-8?q?TypeScript=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- auto-imports.d.ts | 90 +++ index.html | 2 +- package.json | 5 +- src/App.vue | 2 +- src/api/{login.js => login.ts} | 121 +-- src/api/{menu.js => menu.ts} | 19 +- src/api/monitor/{cache.js => cache.ts} | 115 +-- src/api/monitor/{job.js => job.ts} | 142 ++-- src/api/monitor/{jobLog.js => jobLog.ts} | 54 +- .../monitor/{logininfor.js => logininfor.ts} | 69 +- src/api/monitor/{online.js => online.ts} | 37 +- src/api/monitor/{operlog.js => operlog.ts} | 53 +- src/api/monitor/{server.js => server.ts} | 19 +- src/api/system/{config.js => config.ts} | 121 +-- src/api/system/{dept.js => dept.ts} | 105 +-- src/api/system/dict/{data.js => data.ts} | 105 +-- src/api/system/dict/{type.js => type.ts} | 121 +-- src/api/system/{menu.js => menu.ts} | 121 +-- src/api/system/{notice.js => notice.ts} | 89 +-- src/api/system/{post.js => post.ts} | 89 +-- src/api/system/{role.js => role.ts} | 239 +++--- src/api/system/{user.js => user.ts} | 273 +++---- src/api/tool/{gen.js => gen.ts} | 173 ++-- src/components/Breadcrumb/index.vue | 30 +- src/components/Crontab/day.vue | 24 +- src/components/Crontab/hour.vue | 22 +- src/components/Crontab/index.vue | 31 +- src/components/Crontab/min.vue | 30 +- src/components/Crontab/month.vue | 24 +- src/components/Crontab/result.vue | 73 +- src/components/Crontab/second.vue | 23 +- src/components/Crontab/week.vue | 26 +- src/components/Crontab/year.vue | 22 +- src/components/DictTag/index.vue | 50 +- src/components/Editor/index.vue | 25 +- src/components/FileUpload/index.vue | 63 +- src/components/Hamburger/index.vue | 2 +- src/components/HeaderSearch/index.vue | 56 +- src/components/IconSelect/index.vue | 8 +- .../{requireIcons.js => requireIcons.ts} | 16 +- src/components/ImagePreview/index.vue | 19 +- src/components/ImageUpload/index.vue | 69 +- src/components/Pagination/index.vue | 10 +- src/components/RightToolbar/index.vue | 37 +- src/components/RuoYi/Doc/index.vue | 6 +- src/components/RuoYi/Git/index.vue | 6 +- src/components/Screenfull/index.vue | 4 +- src/components/SizeSelect/index.vue | 17 +- src/components/SvgIcon/index.vue | 4 +- .../SvgIcon/{svgicon.js => svgicon.ts} | 21 +- src/components/TopNav/index.vue | 36 +- src/components/iFrame/index.vue | 8 +- .../common/{copyText.js => copyText.ts} | 130 +-- src/directive/{index.js => index.ts} | 19 +- .../permission/{hasPermi.js => hasPermi.ts} | 54 +- .../permission/{hasRole.js => hasRole.ts} | 54 +- src/layout/components/AppMain.vue | 8 +- src/layout/components/Copyright/index.vue | 2 +- src/layout/components/IframeToggle/index.vue | 8 +- src/layout/components/InnerLink/index.vue | 8 +- src/layout/components/Navbar.vue | 34 +- src/layout/components/Settings/index.vue | 34 +- src/layout/components/Sidebar/Link.vue | 2 +- src/layout/components/Sidebar/Logo.vue | 2 +- src/layout/components/Sidebar/SidebarItem.vue | 12 +- src/layout/components/Sidebar/index.vue | 6 +- src/layout/components/TagsView/ScrollPane.vue | 49 +- src/layout/components/TagsView/index.vue | 78 +- src/layout/components/TopBar/index.vue | 6 +- src/layout/components/index.js | 4 - src/layout/components/index.ts | 4 + src/layout/index.vue | 5 +- src/{main.js => main.ts} | 169 ++-- src/{permission.js => permission.ts} | 138 ++-- src/plugins/{auth.js => auth.ts} | 120 +-- src/plugins/{cache.js => cache.ts} | 167 ++-- src/plugins/{download.js => download.ts} | 157 ++-- src/plugins/{index.js => index.ts} | 37 +- src/plugins/{modal.js => modal.ts} | 164 ++-- src/plugins/{tab.js => tab.ts} | 142 ++-- src/router/{index.js => index.ts} | 348 ++++----- src/{settings.js => settings.ts} | 114 +-- src/store/{index.js => index.ts} | 6 +- src/store/modules/app.js | 46 -- src/store/modules/app.ts | 59 ++ src/store/modules/{dict.js => dict.ts} | 124 +-- .../modules/{permission.js => permission.ts} | 254 +++--- .../modules/{settings.js => settings.ts} | 118 +-- src/store/modules/tagsView.js | 182 ----- src/store/modules/tagsView.ts | 219 ++++++ src/store/modules/{user.js => user.ts} | 192 ++--- src/types/api/common.ts | 85 ++ src/types/api/index.ts | 29 + src/types/api/login.ts | 50 ++ src/types/api/menu.ts | 33 + src/types/api/monitor/cache.ts | 11 + src/types/api/monitor/job.ts | 33 + src/types/api/monitor/jobLog.ts | 34 + src/types/api/monitor/logininfor.ts | 38 + src/types/api/monitor/online.ts | 27 + src/types/api/monitor/operlog.ts | 58 ++ src/types/api/system/config.ts | 30 + src/types/api/system/dept.ts | 31 + src/types/api/system/dict.ts | 60 ++ src/types/api/system/menu.ts | 50 ++ src/types/api/system/notice.ts | 25 + src/types/api/system/post.ts | 25 + src/types/api/system/role.ts | 71 ++ src/types/api/system/user.ts | 107 +++ src/types/api/tool/gen.ts | 112 +++ src/types/components.d.ts | 11 + src/types/global.d.ts | 134 ++++ src/types/index.ts | 5 + src/utils/auth.js | 15 - src/utils/auth.ts | 15 + src/utils/{dict.js => dict.ts} | 48 +- .../{dynamicTitle.js => dynamicTitle.ts} | 28 +- src/utils/{errorCode.js => errorCode.ts} | 14 +- src/utils/{index.js => index.ts} | 738 +++++++++--------- src/utils/{jsencrypt.js => jsencrypt.ts} | 59 +- src/utils/{permission.js => permission.ts} | 102 +-- src/utils/{request.js => request.ts} | 306 ++++---- src/utils/{ruoyi.js => ruoyi.ts} | 458 +++++------ src/utils/{scroll-to.js => scroll-to.ts} | 122 +-- src/utils/theme.js | 49 -- src/utils/theme.ts | 49 ++ src/utils/{validate.js => validate.ts} | 228 +++--- src/views/error/401.vue | 8 +- src/views/error/404.vue | 4 +- src/views/index.vue | 8 +- src/views/login.vue | 22 +- src/views/monitor/cache/index.vue | 18 +- src/views/monitor/cache/list.vue | 61 +- src/views/monitor/druid/index.vue | 8 +- src/views/monitor/job/index.vue | 89 +-- src/views/monitor/job/log.vue | 44 +- src/views/monitor/logininfor/index.vue | 35 +- src/views/monitor/online/index.vue | 21 +- src/views/monitor/operlog/index.vue | 43 +- src/views/monitor/server/index.vue | 4 +- src/views/redirect/index.vue | 4 +- src/views/register.vue | 21 +- src/views/system/config/index.vue | 43 +- src/views/system/dept/index.vue | 44 +- src/views/system/dict/data.vue | 70 +- src/views/system/dict/index.vue | 49 +- src/views/system/menu/index.vue | 51 +- src/views/system/notice/index.vue | 45 +- src/views/system/post/index.vue | 45 +- src/views/system/role/authUser.vue | 29 +- src/views/system/role/index.vue | 110 +-- src/views/system/role/selectUser.vue | 21 +- src/views/system/user/authRole.vue | 41 +- src/views/system/user/index.vue | 105 +-- src/views/system/user/profile/index.vue | 28 +- src/views/system/user/profile/resetPwd.vue | 23 +- src/views/system/user/profile/userAvatar.vue | 20 +- src/views/system/user/profile/userInfo.vue | 31 +- src/views/tool/build/CodeTypeDialog.vue | 10 +- src/views/tool/build/DraggableItem.vue | 14 +- src/views/tool/build/IconsDialog.vue | 23 +- src/views/tool/build/RightPanel.vue | 110 +-- src/views/tool/build/TreeNodeDialog.vue | 24 +- src/views/tool/build/index.vue | 127 +-- src/views/tool/gen/basicInfoForm.vue | 2 +- src/views/tool/gen/createTable.vue | 10 +- src/views/tool/gen/editTable.vue | 57 +- src/views/tool/gen/genInfoForm.vue | 32 +- src/views/tool/gen/importTable.vue | 19 +- src/views/tool/gen/index.vue | 62 +- src/views/tool/swagger/index.vue | 6 +- tsconfig.json | 40 + vite.config.js => vite.config.ts | 159 ++-- vite/plugins/auto-import.js | 12 - vite/plugins/auto-import.ts | 13 + vite/plugins/compression.js | 28 - vite/plugins/compression.ts | 29 + vite/plugins/index.js | 15 - vite/plugins/index.ts | 16 + .../{setup-extend.js => setup-extend.ts} | 10 +- vite/plugins/svg-icon.js | 10 - vite/plugins/svg-icon.ts | 10 + 183 files changed, 6452 insertions(+), 5024 deletions(-) create mode 100644 auto-imports.d.ts rename src/api/{login.js => login.ts} (65%) rename src/api/{menu.js => menu.ts} (50%) rename src/api/monitor/{cache.js => cache.ts} (60%) rename src/api/monitor/{job.js => job.ts} (61%) rename src/api/monitor/{jobLog.js => jobLog.ts} (54%) rename src/api/monitor/{logininfor.js => logininfor.ts} (56%) rename src/api/monitor/{online.js => online.ts} (51%) rename src/api/monitor/{operlog.js => operlog.ts} (55%) rename src/api/monitor/{server.js => server.ts} (56%) rename src/api/system/{config.js => config.ts} (58%) rename src/api/system/{dept.js => dept.ts} (57%) rename src/api/system/dict/{data.js => data.ts} (57%) rename src/api/system/dict/{type.js => type.ts} (58%) rename src/api/system/{menu.js => menu.ts} (57%) rename src/api/system/{notice.js => notice.ts} (54%) rename src/api/system/{post.js => post.ts} (55%) rename src/api/system/{role.js => role.ts} (58%) rename src/api/system/{user.js => user.ts} (57%) rename src/api/tool/{gen.js => gen.ts} (57%) rename src/components/IconSelect/{requireIcons.js => requireIcons.ts} (78%) rename src/components/SvgIcon/{svgicon.js => svgicon.ts} (62%) rename src/directive/common/{copyText.js => copyText.ts} (61%) rename src/directive/{index.js => index.ts} (76%) rename src/directive/permission/{hasPermi.js => hasPermi.ts} (81%) rename src/directive/permission/{hasRole.js => hasRole.ts} (82%) delete mode 100644 src/layout/components/index.js create mode 100644 src/layout/components/index.ts rename src/{main.js => main.ts} (81%) rename src/{permission.js => permission.ts} (81%) rename src/plugins/{auth.js => auth.ts} (73%) rename src/plugins/{cache.js => cache.ts} (65%) rename src/plugins/{download.js => download.ts} (74%) rename src/plugins/{index.js => index.ts} (85%) rename src/plugins/{modal.js => modal.ts} (73%) rename src/plugins/{tab.js => tab.ts} (81%) rename src/router/{index.js => index.ts} (85%) rename src/{settings.js => settings.ts} (93%) rename src/store/{index.js => index.ts} (56%) delete mode 100644 src/store/modules/app.js create mode 100644 src/store/modules/app.ts rename src/store/modules/{dict.js => dict.ts} (75%) rename src/store/modules/{permission.js => permission.ts} (79%) rename src/store/modules/{settings.js => settings.ts} (78%) delete mode 100644 src/store/modules/tagsView.js create mode 100644 src/store/modules/tagsView.ts rename src/store/modules/{user.js => user.ts} (79%) create mode 100644 src/types/api/common.ts create mode 100644 src/types/api/index.ts create mode 100644 src/types/api/login.ts create mode 100644 src/types/api/menu.ts create mode 100644 src/types/api/monitor/cache.ts create mode 100644 src/types/api/monitor/job.ts create mode 100644 src/types/api/monitor/jobLog.ts create mode 100644 src/types/api/monitor/logininfor.ts create mode 100644 src/types/api/monitor/online.ts create mode 100644 src/types/api/monitor/operlog.ts create mode 100644 src/types/api/system/config.ts create mode 100644 src/types/api/system/dept.ts create mode 100644 src/types/api/system/dict.ts create mode 100644 src/types/api/system/menu.ts create mode 100644 src/types/api/system/notice.ts create mode 100644 src/types/api/system/post.ts create mode 100644 src/types/api/system/role.ts create mode 100644 src/types/api/system/user.ts create mode 100644 src/types/api/tool/gen.ts create mode 100644 src/types/components.d.ts create mode 100644 src/types/global.d.ts create mode 100644 src/types/index.ts delete mode 100644 src/utils/auth.js create mode 100644 src/utils/auth.ts rename src/utils/{dict.js => dict.ts} (62%) rename src/utils/{dynamicTitle.js => dynamicTitle.ts} (87%) rename src/utils/{errorCode.js => errorCode.ts} (72%) rename src/utils/{index.js => index.ts} (57%) rename src/utils/{jsencrypt.js => jsencrypt.ts} (91%) rename src/utils/{permission.js => permission.ts} (77%) rename src/utils/{request.js => request.ts} (91%) rename src/utils/{ruoyi.js => ruoyi.ts} (69%) rename src/utils/{scroll-to.js => scroll-to.ts} (50%) delete mode 100644 src/utils/theme.js create mode 100644 src/utils/theme.ts rename src/utils/{validate.js => validate.ts} (69%) create mode 100644 tsconfig.json rename vite.config.js => vite.config.ts (95%) delete mode 100644 vite/plugins/auto-import.js create mode 100644 vite/plugins/auto-import.ts delete mode 100644 vite/plugins/compression.js create mode 100644 vite/plugins/compression.ts delete mode 100644 vite/plugins/index.js create mode 100644 vite/plugins/index.ts rename vite/plugins/{setup-extend.js => setup-extend.ts} (77%) delete mode 100644 vite/plugins/svg-icon.js create mode 100644 vite/plugins/svg-icon.ts diff --git a/README.md b/README.md index 860323c..a3d213a 100644 --- a/README.md +++ b/README.md @@ -105,4 +105,4 @@ yarn dev ## 若依前后端分离交流群 -QQ群: [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/已满-104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) [![加入QQ群](https://img.shields.io/badge/已满-186866453-blue.svg)](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [![加入QQ群](https://img.shields.io/badge/已满-201396349-blue.svg)](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [![加入QQ群](https://img.shields.io/badge/已满-101456076-blue.svg)](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [![加入QQ群](https://img.shields.io/badge/已满-101539465-blue.svg)](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [![加入QQ群](https://img.shields.io/badge/已满-264312783-blue.svg)](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [![加入QQ群](https://img.shields.io/badge/已满-167385320-blue.svg)](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) [![加入QQ群](https://img.shields.io/badge/已满-104748341-blue.svg)](https://jq.qq.com/?_wv=1027&k=96Dkdq0k) [![加入QQ群](https://img.shields.io/badge/已满-160110482-blue.svg)](https://jq.qq.com/?_wv=1027&k=0fsNiYZt) [![加入QQ群](https://img.shields.io/badge/已满-170801498-blue.svg)](https://jq.qq.com/?_wv=1027&k=7xw4xUG1) [![加入QQ群](https://img.shields.io/badge/已满-108482800-blue.svg)](https://jq.qq.com/?_wv=1027&k=eCx8eyoJ) [![加入QQ群](https://img.shields.io/badge/已满-101046199-blue.svg)](https://jq.qq.com/?_wv=1027&k=SpyH2875) [![加入QQ群](https://img.shields.io/badge/已满-136919097-blue.svg)](https://jq.qq.com/?_wv=1027&k=tKEt51dz) [![加入QQ群](https://img.shields.io/badge/已满-143961921-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0vBbSb0ztbBgVtn3kJS-Q4HUNYwip89G&authKey=8irq5PhutrZmWIvsUsklBxhj57l%2F1nOZqjzigkXZVoZE451GG4JHPOqW7AW6cf0T&noverify=0&group_code=143961921) [![加入QQ群](https://img.shields.io/badge/已满-174951577-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=ZFAPAbp09S2ltvwrJzp7wGlbopsc0rwi&authKey=HB2cxpxP2yspk%2Bo3WKTBfktRCccVkU26cgi5B16u0KcAYrVu7sBaE7XSEqmMdFQp&noverify=0&group_code=174951577) [![加入QQ群](https://img.shields.io/badge/已满-161281055-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Fn2aF5IHpwsy8j6VlalNJK6qbwFLFHat&authKey=uyIT%2B97x2AXj3odyXpsSpVaPMC%2Bidw0LxG5MAtEqlrcBcWJUA%2FeS43rsF1Tg7IRJ&noverify=0&group_code=161281055) [![加入QQ群](https://img.shields.io/badge/已满-138988063-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=XIzkm_mV2xTsUtFxo63bmicYoDBA6Ifm&authKey=dDW%2F4qsmw3x9govoZY9w%2FoWAoC4wbHqGal%2BbqLzoS6VBarU8EBptIgPKN%2FviyC8j&noverify=0&group_code=138988063) [![加入QQ群](https://img.shields.io/badge/已满-151450850-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=DkugnCg68PevlycJSKSwjhFqfIgrWWwR&authKey=pR1Pa5lPIeGF%2FFtIk6d%2FGB5qFi0EdvyErtpQXULzo03zbhopBHLWcuqdpwY241R%2F&noverify=0&group_code=151450850) [![加入QQ群](https://img.shields.io/badge/已满-224622315-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=F58bgRa-Dp-rsQJThiJqIYv8t4-lWfXh&authKey=UmUs4CVG5OPA1whvsa4uSespOvyd8%2FAr9olEGaWAfdLmfKQk%2FVBp2YU3u2xXXt76&noverify=0&group_code=224622315) [![加入QQ群](https://img.shields.io/badge/已满-287842588-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Nxb2EQ5qozWa218Wbs7zgBnjLSNk_tVT&authKey=obBKXj6SBKgrFTJZx0AqQnIYbNOvBB2kmgwWvGhzxR67RoRr84%2Bus5OadzMcdJl5&noverify=0&group_code=287842588) [![加入QQ群](https://img.shields.io/badge/已满-187944233-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=numtK1M_I4eVd2Gvg8qtbuL8JgX42qNh&authKey=giV9XWMaFZTY%2FqPlmWbkB9g3fi0Ev5CwEtT9Tgei0oUlFFCQLDp4ozWRiVIzubIm&noverify=0&group_code=187944233) [![加入QQ群](https://img.shields.io/badge/已满-228578329-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=G6r5KGCaa3pqdbUSXNIgYloyb8e0_L0D&authKey=4w8tF1eGW7%2FedWn%2FHAypQksdrML%2BDHolQSx7094Agm7Luakj9EbfPnSTxSi2T1LQ&noverify=0&group_code=228578329) [![加入QQ群](https://img.shields.io/badge/已满-191164766-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=GsOo-OLz53J8y_9TPoO6XXSGNRTgbFxA&authKey=R7Uy%2Feq%2BZsoKNqHvRKhiXpypW7DAogoWapOawUGHokJSBIBIre2%2FoiAZeZBSLuBc&noverify=0&group_code=191164766) [![加入QQ群](https://img.shields.io/badge/174569686-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=PmYavuzsOthVqfdAPbo4uAeIbu7Ttjgc&authKey=p52l8%2FXa4PS1JcEmS3VccKSwOPJUZ1ZfQ69MEKzbrooNUljRtlKjvsXf04bxNp3G&noverify=0&group_code=174569686) 点击按钮入群。 \ No newline at end of file +QQ群: [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/已满-104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) [![加入QQ群](https://img.shields.io/badge/已满-186866453-blue.svg)](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [![加入QQ群](https://img.shields.io/badge/已满-201396349-blue.svg)](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [![加入QQ群](https://img.shields.io/badge/已满-101456076-blue.svg)](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [![加入QQ群](https://img.shields.io/badge/已满-101539465-blue.svg)](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [![加入QQ群](https://img.shields.io/badge/已满-264312783-blue.svg)](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [![加入QQ群](https://img.shields.io/badge/已满-167385320-blue.svg)](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) [![加入QQ群](https://img.shields.io/badge/已满-104748341-blue.svg)](https://jq.qq.com/?_wv=1027&k=96Dkdq0k) [![加入QQ群](https://img.shields.io/badge/已满-160110482-blue.svg)](https://jq.qq.com/?_wv=1027&k=0fsNiYZt) [![加入QQ群](https://img.shields.io/badge/已满-170801498-blue.svg)](https://jq.qq.com/?_wv=1027&k=7xw4xUG1) [![加入QQ群](https://img.shields.io/badge/已满-108482800-blue.svg)](https://jq.qq.com/?_wv=1027&k=eCx8eyoJ) [![加入QQ群](https://img.shields.io/badge/已满-101046199-blue.svg)](https://jq.qq.com/?_wv=1027&k=SpyH2875) [![加入QQ群](https://img.shields.io/badge/已满-136919097-blue.svg)](https://jq.qq.com/?_wv=1027&k=tKEt51dz) [![加入QQ群](https://img.shields.io/badge/已满-143961921-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0vBbSb0ztbBgVtn3kJS-Q4HUNYwip89G&authKey=8irq5PhutrZmWIvsUsklBxhj57l%2F1nOZqjzigkXZVoZE451GG4JHPOqW7AW6cf0T&noverify=0&group_code=143961921) [![加入QQ群](https://img.shields.io/badge/已满-174951577-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=ZFAPAbp09S2ltvwrJzp7wGlbopsc0rwi&authKey=HB2cxpxP2yspk%2Bo3WKTBfktRCccVkU26cgi5B16u0KcAYrVu7sBaE7XSEqmMdFQp&noverify=0&group_code=174951577) [![加入QQ群](https://img.shields.io/badge/已满-161281055-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Fn2aF5IHpwsy8j6VlalNJK6qbwFLFHat&authKey=uyIT%2B97x2AXj3odyXpsSpVaPMC%2Bidw0LxG5MAtEqlrcBcWJUA%2FeS43rsF1Tg7IRJ&noverify=0&group_code=161281055) [![加入QQ群](https://img.shields.io/badge/已满-138988063-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=XIzkm_mV2xTsUtFxo63bmicYoDBA6Ifm&authKey=dDW%2F4qsmw3x9govoZY9w%2FoWAoC4wbHqGal%2BbqLzoS6VBarU8EBptIgPKN%2FviyC8j&noverify=0&group_code=138988063) [![加入QQ群](https://img.shields.io/badge/已满-151450850-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=DkugnCg68PevlycJSKSwjhFqfIgrWWwR&authKey=pR1Pa5lPIeGF%2FFtIk6d%2FGB5qFi0EdvyErtpQXULzo03zbhopBHLWcuqdpwY241R%2F&noverify=0&group_code=151450850) [![加入QQ群](https://img.shields.io/badge/已满-224622315-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=F58bgRa-Dp-rsQJThiJqIYv8t4-lWfXh&authKey=UmUs4CVG5OPA1whvsa4uSespOvyd8%2FAr9olEGaWAfdLmfKQk%2FVBp2YU3u2xXXt76&noverify=0&group_code=224622315) [![加入QQ群](https://img.shields.io/badge/已满-287842588-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Nxb2EQ5qozWa218Wbs7zgBnjLSNk_tVT&authKey=obBKXj6SBKgrFTJZx0AqQnIYbNOvBB2kmgwWvGhzxR67RoRr84%2Bus5OadzMcdJl5&noverify=0&group_code=287842588) [![加入QQ群](https://img.shields.io/badge/已满-187944233-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=numtK1M_I4eVd2Gvg8qtbuL8JgX42qNh&authKey=giV9XWMaFZTY%2FqPlmWbkB9g3fi0Ev5CwEtT9Tgei0oUlFFCQLDp4ozWRiVIzubIm&noverify=0&group_code=187944233) [![加入QQ群](https://img.shields.io/badge/已满-228578329-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=G6r5KGCaa3pqdbUSXNIgYloyb8e0_L0D&authKey=4w8tF1eGW7%2FedWn%2FHAypQksdrML%2BDHolQSx7094Agm7Luakj9EbfPnSTxSi2T1LQ&noverify=0&group_code=228578329) [![加入QQ群](https://img.shields.io/badge/已满-191164766-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=GsOo-OLz53J8y_9TPoO6XXSGNRTgbFxA&authKey=R7Uy%2Feq%2BZsoKNqHvRKhiXpypW7DAogoWapOawUGHokJSBIBIre2%2FoiAZeZBSLuBc&noverify=0&group_code=191164766) [![加入QQ群](https://img.shields.io/badge/已满-174569686-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=PmYavuzsOthVqfdAPbo4uAeIbu7Ttjgc&authKey=p52l8%2FXa4PS1JcEmS3VccKSwOPJUZ1ZfQ69MEKzbrooNUljRtlKjvsXf04bxNp3G&noverify=0&group_code=174569686) [![加入QQ群](https://img.shields.io/badge/127358632-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=M9y5NjAl44lAL_Vh2crmEehZU_PMU6KS&authKey=ZSDz8hEREWSaPuxQV3gEwqGIaGjfRNnkB4rJjf0IvXhrSUGSGwQFmBA%2Boe8HFxyl&noverify=0&group_code=127358632) 点击按钮入群。 \ No newline at end of file diff --git a/auto-imports.d.ts b/auto-imports.d.ts new file mode 100644 index 0000000..ab12676 --- /dev/null +++ b/auto-imports.d.ts @@ -0,0 +1,90 @@ +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// noinspection JSUnusedGlobalSymbols +// Generated by unplugin-auto-import +// biome-ignore lint: disable +export {} +declare global { + const EffectScope: typeof import('vue')['EffectScope'] + const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate'] + const computed: typeof import('vue')['computed'] + const createApp: typeof import('vue')['createApp'] + const createPinia: typeof import('pinia')['createPinia'] + const customRef: typeof import('vue')['customRef'] + const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] + const defineComponent: typeof import('vue')['defineComponent'] + const defineEmits: typeof import('vue')['defineEmits'] + const defineProps: typeof import('vue')['defineProps'] + const defineStore: typeof import('pinia')['defineStore'] + const effectScope: typeof import('vue')['effectScope'] + const getActivePinia: typeof import('pinia')['getActivePinia'] + const getCurrentInstance: typeof import('vue')['getCurrentInstance'] + const getCurrentScope: typeof import('vue')['getCurrentScope'] + const h: typeof import('vue')['h'] + const inject: typeof import('vue')['inject'] + const isProxy: typeof import('vue')['isProxy'] + const isReactive: typeof import('vue')['isReactive'] + const isReadonly: typeof import('vue')['isReadonly'] + const isRef: typeof import('vue')['isRef'] + const mapActions: typeof import('pinia')['mapActions'] + const mapGetters: typeof import('pinia')['mapGetters'] + const mapState: typeof import('pinia')['mapState'] + const mapStores: typeof import('pinia')['mapStores'] + const mapWritableState: typeof import('pinia')['mapWritableState'] + const markRaw: typeof import('vue')['markRaw'] + const nextTick: typeof import('vue')['nextTick'] + const onActivated: typeof import('vue')['onActivated'] + const onBeforeMount: typeof import('vue')['onBeforeMount'] + const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave'] + const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate'] + const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] + const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] + const onDeactivated: typeof import('vue')['onDeactivated'] + const onErrorCaptured: typeof import('vue')['onErrorCaptured'] + const onMounted: typeof import('vue')['onMounted'] + const onRenderTracked: typeof import('vue')['onRenderTracked'] + const onRenderTriggered: typeof import('vue')['onRenderTriggered'] + const onScopeDispose: typeof import('vue')['onScopeDispose'] + const onServerPrefetch: typeof import('vue')['onServerPrefetch'] + const onUnmounted: typeof import('vue')['onUnmounted'] + const onUpdated: typeof import('vue')['onUpdated'] + const onWatcherCleanup: typeof import('vue')['onWatcherCleanup'] + const provide: typeof import('vue')['provide'] + const reactive: typeof import('vue')['reactive'] + const readonly: typeof import('vue')['readonly'] + const ref: typeof import('vue')['ref'] + const resolveComponent: typeof import('vue')['resolveComponent'] + const setActivePinia: typeof import('pinia')['setActivePinia'] + const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix'] + const shallowReactive: typeof import('vue')['shallowReactive'] + const shallowReadonly: typeof import('vue')['shallowReadonly'] + const shallowRef: typeof import('vue')['shallowRef'] + const storeToRefs: typeof import('pinia')['storeToRefs'] + const toRaw: typeof import('vue')['toRaw'] + const toRef: typeof import('vue')['toRef'] + const toRefs: typeof import('vue')['toRefs'] + const toValue: typeof import('vue')['toValue'] + const triggerRef: typeof import('vue')['triggerRef'] + const unref: typeof import('vue')['unref'] + const useAttrs: typeof import('vue')['useAttrs'] + const useCssModule: typeof import('vue')['useCssModule'] + const useCssVars: typeof import('vue')['useCssVars'] + const useId: typeof import('vue')['useId'] + const useLink: typeof import('vue-router')['useLink'] + const useModel: typeof import('vue')['useModel'] + const useRoute: typeof import('vue-router')['useRoute'] + const useRouter: typeof import('vue-router')['useRouter'] + const useSlots: typeof import('vue')['useSlots'] + const useTemplateRef: typeof import('vue')['useTemplateRef'] + const watch: typeof import('vue')['watch'] + const watchEffect: typeof import('vue')['watchEffect'] + const watchPostEffect: typeof import('vue')['watchPostEffect'] + const watchSyncEffect: typeof import('vue')['watchSyncEffect'] +} +// for type re-export +declare global { + // @ts-ignore + export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' + import('vue') +} diff --git a/index.html b/index.html index 3553e10..a11feaa 100644 --- a/index.html +++ b/index.html @@ -209,7 +209,7 @@
正在加载系统资源,请耐心等待
- + \ No newline at end of file diff --git a/package.json b/package.json index ef8a592..5b881d8 100644 --- a/package.json +++ b/package.json @@ -38,12 +38,15 @@ }, "devDependencies": { "@vitejs/plugin-vue": "5.2.4", + "@vue/tsconfig": "0.5.1", "sass-embedded": "1.97.2", + "typescript": "5.6.3", "unplugin-auto-import": "0.18.6", "unplugin-vue-setup-extend-plus": "1.0.1", "vite": "6.4.1", "vite-plugin-compression": "0.5.1", - "vite-plugin-svg-icons": "2.0.1" + "vite-plugin-svg-icons": "2.0.1", + "vue-tsc": "2.1.10" }, "overrides": { "quill": "2.0.2" diff --git a/src/App.vue b/src/App.vue index fd2b3d5..299ae41 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,7 +2,7 @@ - diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index efd0edc..e154056 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -19,18 +19,19 @@ ref="quillEditorRef" v-model:content="content" contentType="html" - @textChange="(e) => $emit('update:modelValue', content)" + @textChange="(e: any) => $emit('update:modelValue', content)" :options="options" :style="styles" /> - diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index b7f7d17..2b21de8 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -29,20 +29,27 @@
  • - + {{ getFileName(file.name) }}
    -  删除 +  删除
  • - diff --git a/src/components/IconSelect/index.vue b/src/components/IconSelect/index.vue index 3bb177f..810a436 100644 --- a/src/components/IconSelect/index.vue +++ b/src/components/IconSelect/index.vue @@ -23,7 +23,7 @@ - diff --git a/src/components/RuoYi/Doc/index.vue b/src/components/RuoYi/Doc/index.vue index 91aebe0..31006e8 100644 --- a/src/components/RuoYi/Doc/index.vue +++ b/src/components/RuoYi/Doc/index.vue @@ -4,10 +4,10 @@ - \ No newline at end of file diff --git a/src/components/RuoYi/Git/index.vue b/src/components/RuoYi/Git/index.vue index 96fdea7..6e3a941 100644 --- a/src/components/RuoYi/Git/index.vue +++ b/src/components/RuoYi/Git/index.vue @@ -4,10 +4,10 @@ - diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue index cf23223..977da2e 100644 --- a/src/components/Screenfull/index.vue +++ b/src/components/Screenfull/index.vue @@ -4,10 +4,10 @@ -