Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
一臭打代码的 aka 潘先生です
vue-vben-admin
提交
a248e200
V
vue-vben-admin
项目概览
一臭打代码的 aka 潘先生です
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a248e200
编写于
10月 26, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: fix type
上级
ed40b333
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
23 addition
and
24 deletion
+23
-24
src/components/CardList/src/CardList.vue
src/components/CardList/src/CardList.vue
+3
-3
src/components/Form/src/hooks/useFormEvents.ts
src/components/Form/src/hooks/useFormEvents.ts
+1
-1
src/components/Table/src/components/editable/EditableCell.vue
...components/Table/src/components/editable/EditableCell.vue
+1
-1
src/components/Tree/src/Tree.vue
src/components/Tree/src/Tree.vue
+1
-1
src/hooks/web/useCopyToClipboard.ts
src/hooks/web/useCopyToClipboard.ts
+1
-1
src/layouts/default/setting/components/SettingFooter.vue
src/layouts/default/setting/components/SettingFooter.vue
+1
-1
src/utils/file/download.ts
src/utils/file/download.ts
+12
-15
src/utils/http/axios/Axios.ts
src/utils/http/axios/Axios.ts
+2
-0
src/utils/http/axios/helper.ts
src/utils/http/axios/helper.ts
+1
-1
未找到文件。
src/components/CardList/src/CardList.vue
浏览文件 @
a248e200
<
template
>
<div
class=
"p-2"
>
<div
class=
"
bg-white mb-2 p-4
"
>
<div
class=
"
p-4 mb-2 bg-white
"
>
<BasicForm
@
register=
"registerForm"
/>
</div>
{{
sliderProp
.
width
}}
<div
class=
"
bg-white p-2
"
>
<div
class=
"
p-2 bg-white
"
>
<List
:grid=
"
{ gutter: 5, xs: 1, sm: 2, md: 4, lg: 4, xl: 6, xxl: grid }"
:data-source="data"
...
...
@@ -167,7 +167,7 @@
pageSize
.
value
=
pz
;
fetch
();
}
function
pageSizeChange
(
current
,
size
)
{
function
pageSizeChange
(
_
current
,
size
)
{
pageSize
.
value
=
size
;
fetch
();
}
...
...
src/components/Form/src/hooks/useFormEvents.ts
浏览文件 @
a248e200
...
...
@@ -242,7 +242,7 @@ export function useFormEvents({
const
values
=
await
validate
();
const
res
=
handleFormValues
(
values
);
emit
(
'
submit
'
,
res
);
}
catch
(
error
)
{
}
catch
(
error
:
any
)
{
throw
new
Error
(
error
);
}
}
...
...
src/components/Table/src/components/editable/EditableCell.vue
浏览文件 @
a248e200
...
...
@@ -265,7 +265,7 @@
result
=
await
beforeEditSubmit
({
record
:
pick
(
record
,
keys
),
index
,
key
,
key
:
key
as
string
,
value
,
});
}
catch
(
e
)
{
...
...
src/components/Tree/src/Tree.vue
浏览文件 @
a248e200
...
...
@@ -408,7 +408,7 @@
<
span
class
=
{
unref
(
getBindValues
)?.
blockNode
?
`
${
prefixCls
}
__content`
:
''
}
>
<
span
>
{
title
.
substr
(
0
,
searchIdx
)}
<
/span
>
<
span
style
=
{
highlightStyle
}
>
{
searchText
}
<
/span
>
<
span
>
{
title
.
substr
(
searchIdx
+
searchText
.
length
)}
<
/span
>
<
span
>
{
title
.
substr
(
searchIdx
+
(
searchText
as
string
)
.
length
)}
<
/span
>
<
/span
>
)
:
(
title
...
...
src/hooks/web/useCopyToClipboard.ts
浏览文件 @
a248e200
...
...
@@ -51,7 +51,7 @@ export function copyTextToClipboard(input: string, { target = document.body }: O
let
isSuccess
=
false
;
try
{
isSuccess
=
document
.
execCommand
(
'
copy
'
);
}
catch
(
e
)
{
}
catch
(
e
:
any
)
{
throw
new
Error
(
e
);
}
...
...
src/layouts/default/setting/components/SettingFooter.vue
浏览文件 @
a248e200
...
...
@@ -65,7 +65,7 @@
updateColorWeak
(
colorWeak
);
updateGrayMode
(
grayMode
);
createMessage
.
success
(
t
(
'
layout.setting.resetSuccess
'
));
}
catch
(
error
)
{
}
catch
(
error
:
any
)
{
createMessage
.
error
(
error
);
}
}
...
...
src/utils/file/download.ts
浏览文件 @
a248e200
...
...
@@ -36,22 +36,19 @@ export function downloadByBase64(buf: string, filename: string, mime?: string, b
export
function
downloadByData
(
data
:
BlobPart
,
filename
:
string
,
mime
?:
string
,
bom
?:
BlobPart
)
{
const
blobData
=
typeof
bom
!==
'
undefined
'
?
[
bom
,
data
]
:
[
data
];
const
blob
=
new
Blob
(
blobData
,
{
type
:
mime
||
'
application/octet-stream
'
});
if
(
typeof
window
.
navigator
.
msSaveBlob
!==
'
undefined
'
)
{
window
.
navigator
.
msSaveBlob
(
blob
,
filename
);
}
else
{
const
blobURL
=
window
.
URL
.
createObjectURL
(
blob
);
const
tempLink
=
document
.
createElement
(
'
a
'
);
tempLink
.
style
.
display
=
'
none
'
;
tempLink
.
href
=
blobURL
;
tempLink
.
setAttribute
(
'
download
'
,
filename
);
if
(
typeof
tempLink
.
download
===
'
undefined
'
)
{
tempLink
.
setAttribute
(
'
target
'
,
'
_blank
'
);
}
document
.
body
.
appendChild
(
tempLink
);
tempLink
.
click
();
document
.
body
.
removeChild
(
tempLink
);
window
.
URL
.
revokeObjectURL
(
blobURL
);
const
blobURL
=
window
.
URL
.
createObjectURL
(
blob
);
const
tempLink
=
document
.
createElement
(
'
a
'
);
tempLink
.
style
.
display
=
'
none
'
;
tempLink
.
href
=
blobURL
;
tempLink
.
setAttribute
(
'
download
'
,
filename
);
if
(
typeof
tempLink
.
download
===
'
undefined
'
)
{
tempLink
.
setAttribute
(
'
target
'
,
'
_blank
'
);
}
document
.
body
.
appendChild
(
tempLink
);
tempLink
.
click
();
document
.
body
.
removeChild
(
tempLink
);
window
.
URL
.
revokeObjectURL
(
blobURL
);
}
/**
...
...
src/utils/http/axios/Axios.ts
浏览文件 @
a248e200
...
...
@@ -81,6 +81,7 @@ export class VAxios {
this
.
axiosInstance
.
interceptors
.
request
.
use
((
config
:
AxiosRequestConfig
)
=>
{
// If cancel repeat request is turned on, then cancel repeat request is prohibited
const
{
// @ts-ignore
headers
:
{
ignoreCancelToken
},
}
=
config
;
...
...
@@ -149,6 +150,7 @@ export class VAxios {
data
:
formData
,
headers
:
{
'
Content-type
'
:
ContentTypeEnum
.
FORM_DATA
,
// @ts-ignore
ignoreCancelToken
:
true
,
},
});
...
...
src/utils/http/axios/helper.ts
浏览文件 @
a248e200
...
...
@@ -35,7 +35,7 @@ export function formatRequestDate(params: Recordable) {
if
(
value
)
{
try
{
params
[
key
]
=
isString
(
value
)
?
value
.
trim
()
:
value
;
}
catch
(
error
)
{
}
catch
(
error
:
any
)
{
throw
new
Error
(
error
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录