Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
4d16de0c
Commit
4d16de0c
authored
Apr 12, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改变博客展示页有子栏目的展示
parent
8aace561
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
24 deletions
+19
-24
components/common/icon/src/icon.vue
+1
-15
components/pc/nav/navCard.vue
+2
-1
components/pc/select/selectCard.vue
+3
-2
components/pc/select/selectContent.vue
+7
-1
pages/blog/index.vue
+5
-4
pages/project/release/index.vue
+1
-1
No files found.
components/common/icon/src/icon.vue
View file @
4d16de0c
<
template
>
<i
:class=
"'iconfont yun-icon--' + name"
:style=
"
{fontSize:size,color:color,transition:'.5s ease',cursor:cursor,verticalAlign:vertical,paddingBottom:pb}"
@mouseenter="changeStyle1" @mouseout="changeStyle2"
>
</i>
<i
:class=
"'iconfont yun-icon--' + name"
:style=
"
{fontSize:size,color:color,transition:'.5s ease',cursor:cursor,verticalAlign:vertical,paddingBottom:pb}" >
</i>
</
template
>
<
script
>
...
...
@@ -12,7 +12,6 @@
color
:
String
,
pb
:
String
,
vertical
:
String
,
hoverColor
:
String
,
canClick
:{
type
:
Boolean
,
default
:
true
,
...
...
@@ -29,20 +28,7 @@
methods
:{
changeStyle1
(){
if
(
this
.
hoverColor
){
this
.
prevColor
=
this
.
nowColor
;
this
.
nowColor
=
this
.
hoverColor
;
}
},
changeStyle2
(){
if
(
this
.
hoverColor
){
this
.
hoverColor
=
this
.
nowColor
;
this
.
nowColor
=
this
.
prevColor
;
}
}
}
};
</
script
>
...
...
components/pc/nav/navCard.vue
View file @
4d16de0c
...
...
@@ -163,11 +163,12 @@
display
:
inline-block
;
width
:
103
*$
length
;
margin-left
:
5
*$
length
;
margin-bottom
:
10
*$
length
;
@extend
%nowrap;
@include
fontStyle(14,20,500,#666,left);
@extend
%animate-transition;
&:hover{
color
:
#00AAE6
;
color
:
#00AAE6
!important
;
}
}
}
...
...
components/pc/select/selectCard.vue
View file @
4d16de0c
...
...
@@ -53,6 +53,7 @@
<select-content
v-for=
"(item, index) in classList"
:item=
"item"
:itemIndex=
"index"
:key=
"`$
{item}${index}`"
@scrollTop="handleScroll"
@select="handleChange2"
...
...
@@ -175,9 +176,9 @@ export default {
this
.
isShow2
=
false
;
this
.
$emit
(
'handleClass'
,
this
.
value
);
},
handleScroll
(
num
){
handleScroll
(
num
,
index
){
setTimeout
(()
=>
{
this
.
$refs
.
tagsBox
.
scrollTop
=
this
.
$refs
.
tagsBox
.
scrollTop
+
40
*
(
num
>
4
?
5
:
num
)
this
.
$refs
.
tagsBox
.
scrollTop
=
this
.
$refs
.
tagsBox
.
scrollTop
+
40
*
index
})
},
...
...
components/pc/select/selectContent.vue
View file @
4d16de0c
...
...
@@ -16,6 +16,7 @@
export
default
{
name
:
"selectContent"
,
props
:
{
itemIndex
:
Number
,
item
:
Object
,
index
:
Number
,
isHot
:
{
...
...
@@ -34,8 +35,13 @@ export default {
methods
:
{
handleClick
(){
if
(
this
.
item
.
childList
){
if
(
this
.
showChildList
){
this
.
showChildList
=
!
this
.
showChildList
;
this
.
$emit
(
'scrollTop'
,
this
.
item
.
childList
.
length
,
this
.
itemIndex
)
}
else
{
this
.
showChildList
=
!
this
.
showChildList
;
this
.
$emit
(
'scrollTop'
,
this
.
item
.
childList
.
length
)
}
}
else
{
this
.
$emit
(
'select'
,
this
.
item
.
tag
,
this
.
item
.
tagId
);
...
...
pages/blog/index.vue
View file @
4d16de0c
...
...
@@ -110,8 +110,8 @@ export default {
this
.
pages
=
this
.
articlePages
;
},
dataGetBlogCategory
(){
this
.
typeList
.
map
(
async
(
val
,
index
)
=>
{
async
dataGetBlogCategory
(){
for
(
const
val
of
this
.
typeList
)
{
if
(
!
val
.
leaf
){
let
childListData
=
await
this
.
$axios
.
$get
(
config
.
api
.
get
.
BlogCategory
.
childList
+
val
.
categoryId
+
'/categories'
)
let
childList
=
[];
...
...
@@ -129,17 +129,18 @@ export default {
childList
})
}
else
{
this
.
list
.
push
({
await
this
.
list
.
push
({
label
:
val
.
category
,
address
:
'/blog'
,
type
:
val
.
categoryId
.
toString
(),
})
}
}
)
}
},
getLabelTitle
(){
let
type
=
this
.
$route
.
query
.
type
;
this
.
list
.
map
((
val
,
index
)
=>
{
...
...
pages/project/release/index.vue
View file @
4d16de0c
...
...
@@ -230,7 +230,7 @@ export default {
data
()
{
return
{
keepAliveTimer
:
null
,
content
:
''
,
markdownOption
:
{
bold
:
true
,
// 粗体
italic
:
true
,
// 斜体
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment