Merge branch 'main' of https://gitea.dykj.co/sundongyu/dykj-admin
This commit is contained in:
commit
0286915f6a
2
.env.dev
2
.env.dev
|
@ -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
|
||||||
|
|
|
@ -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
21
LICENSE
|
@ -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.
|
|
|
@ -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"
|
||||||
|
|
2360
pnpm-lock.yaml
2360
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,6 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: {
|
plugins: {
|
||||||
|
// Autoprefixer会根据当前浏览器的流行度和你项目中设置的浏览器支持目标来自行决定需要添加哪些前缀
|
||||||
autoprefixer: {}
|
autoprefixer: {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,5 +24,4 @@ const config: {
|
||||||
*/
|
*/
|
||||||
default_headers: 'application/json'
|
default_headers: 'application/json'
|
||||||
}
|
}
|
||||||
|
|
||||||
export { config }
|
export { config }
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// 全局时间总线
|
||||||
import mitt from 'mitt'
|
import mitt from 'mitt'
|
||||||
|
|
||||||
interface Option {
|
interface Option {
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user