Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
web-framework-temp
/
vue-cli3-vt-template-master
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7e8d4779
authored
2023-06-27 10:11:40 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化调整
1 parent
a8d19002
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
src/App.vue
src/components/empty-tips/index.vue
src/utils/utils.js
src/App.vue
View file @
7e8d477
...
...
@@ -42,15 +42,11 @@ export default {
<
style
lang=
"scss"
>
#app
{
/* font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px; */
border
:
0
;
margin
:
0
;
padding
:
0
;
font-size
:
$
fontSize
;
color
:
$
color
;
}
body
,
...
...
@@ -68,7 +64,6 @@ div {
margin
:
20px
;
}
.app__bgc
{
position
:
fixed
;
background-color
:
#ffffff
;
...
...
src/components/empty-tips/index.vue
View file @
7e8d477
<
template
>
<div
class=
"empty-tips"
v-if=
"vis
b
"
>
<div
class=
"empty-tips"
v-if=
"vis
ible
"
>
<div
class=
"tips"
>
<span
class=
"iconfont iconempty"
></span>
<div
class=
"tips"
>
{{
innerText
?
innerText
:
'
这里空空如也~
'
}}
</div>
<div
class=
"tips"
>
{{
innerText
?
innerText
:
'
暂无记录
'
}}
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
[
'vis
b
'
,
'innerText'
],
props
:
[
'vis
ible
'
,
'innerText'
],
data
()
{
return
{
key
:
'value'
...
...
@@ -23,21 +23,21 @@ export default {
box-sizing
:
border-box
;
position
:
fixed
;
text-align
:
center
;
color
:
#
666666
;
color
:
#
888
;
font-size
:
32px
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
justify-content
:
center
;
top
:
3
5
%
;
top
:
3
0
%
;
.iconfont
{
font-size
:
1
0
0px
;
font-size
:
1
6
0px
;
}
.tips
{
position
:
relative
;
padding
:
20
px
;
padding
:
12
px
;
}
}
</
style
>
...
...
src/utils/utils.js
View file @
7e8d477
...
...
@@ -178,8 +178,10 @@ export function formatDate(date, fmt) {
if
(
!
date
)
return
'-'
// 把-换成/ 避免iOS和安卓真机问题
var
reg
=
/-/g
;
if
(
typeof
date
==
'object'
)
{
date
+=
""
;
date
=
date
&&
date
.
replace
(
reg
,
'/'
);
}
date
=
new
Date
(
date
)
const
o
=
{
'M+'
:
date
.
getMonth
()
+
1
,
// 月份
...
...
@@ -202,6 +204,7 @@ export function formatDate(date, fmt) {
/**
* @desc 函数防抖
* @param func 函数
...
...
Please
register
or
sign in
to post a comment