This commit is contained in:
sundongyu 2024-05-22 14:53:30 +08:00
commit 0286915f6a
10 changed files with 1191 additions and 1213 deletions

View File

@ -4,7 +4,7 @@ NODE_ENV=production
VITE_DEV=true VITE_DEV=true
# 请求路径 # 请求路径
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn' VITE_BASE_URL='http://192.168.1.14:48080'
# 文件上传类型server - 后端上传, client - 前端直连上传仅支持S3服务 # 文件上传类型server - 后端上传, client - 前端直连上传仅支持S3服务
VITE_UPLOAD_TYPE=server VITE_UPLOAD_TYPE=server

View File

@ -4,7 +4,7 @@ NODE_ENV=production
VITE_DEV=false VITE_DEV=false
# 请求路径 # 请求路径
VITE_BASE_URL='http://localhost:48080' VITE_BASE_URL='http://192.168.1.14:48080'
# 文件上传类型server - 后端上传, client - 前端直连上传仅支持S3服务 # 文件上传类型server - 后端上传, client - 前端直连上传仅支持S3服务
VITE_UPLOAD_TYPE=server VITE_UPLOAD_TYPE=server

21
LICENSE
View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2021-present Archer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -129,14 +129,6 @@
"vue-tsc": "^1.8.27" "vue-tsc": "^1.8.27"
}, },
"license": "MIT", "license": "MIT",
"repository": {
"type": "git",
"url": "git+https://gitee.com/yudaocode/yudao-ui-admin-vue3"
},
"bugs": {
"url": "https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues"
},
"homepage": "https://gitee.com/yudaocode/yudao-ui-admin-vue3",
"engines": { "engines": {
"node": ">= 16.0.0", "node": ">= 16.0.0",
"pnpm": ">=8.6.0" "pnpm": ">=8.6.0"

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
module.exports = { module.exports = {
plugins: { plugins: {
// Autoprefixer会根据当前浏览器的流行度和你项目中设置的浏览器支持目标来自行决定需要添加哪些前缀
autoprefixer: {} autoprefixer: {}
} }
} }

View File

@ -24,5 +24,4 @@ const config: {
*/ */
default_headers: 'application/json' default_headers: 'application/json'
} }
export { config } export { config }

View File

@ -1,3 +1,4 @@
// 动画效果
export interface ScrollToParams { export interface ScrollToParams {
el: HTMLElement el: HTMLElement
to: number to: number
@ -6,6 +7,7 @@ export interface ScrollToParams {
callback?: () => void callback?: () => void
} }
// 缓动函数(缓入缓出)
const easeInOutQuad = (t: number, b: number, c: number, d: number) => { const easeInOutQuad = (t: number, b: number, c: number, d: number) => {
t /= d / 2 t /= d / 2
if (t < 1) { if (t < 1) {
@ -14,10 +16,13 @@ const easeInOutQuad = (t: number, b: number, c: number, d: number) => {
t-- t--
return (-c / 2) * (t * (t - 2) - 1) + b return (-c / 2) * (t * (t - 2) - 1) + b
} }
// 移动函数
const move = (el: HTMLElement, position: string, amount: number) => { const move = (el: HTMLElement, position: string, amount: number) => {
el[position] = amount el[position] = amount
} }
// 主函数(实现了实现了基于requestAnimationFrame的平滑滚动逻辑)
export function useScrollTo({ export function useScrollTo({
el, el,
position = 'scrollLeft', position = 'scrollLeft',

View File

@ -1,3 +1,4 @@
// 全局时间总线
import mitt from 'mitt' import mitt from 'mitt'
interface Option { interface Option {

View File

@ -30,7 +30,8 @@
"@types/qrcode", "@types/qrcode",
"vite-plugin-svg-icons/client" "vite-plugin-svg-icons/client"
], ],
"outDir": "target", // tsconfig.json "outDir": "target",
// tsconfig.json
"typeRoots": ["./node_modules/@types/", "./types"] "typeRoots": ["./node_modules/@types/", "./types"]
}, },
"include": [ "include": [