Skip to content

Commit 5043d04

Browse files
committed
<fix>(index-list): remove border, update custom demo
1 parent 657d306 commit 5043d04

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

example/pages/index-list/custom.vue

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
<div class="view-wrapper">
55
<div class="index-list-wrapper custom">
66
<cube-index-list
7-
:data="cityData"
8-
:title="title"
9-
@title-click="clickTitle">
7+
:data="cityData">
108
<cube-index-list-group v-for="(group, index) in cityData" :key="index" :group="group">
119
<cube-index-list-item v-for="(item, index) in group.items" :key="index" :item="item" @select="selectItem">
1210
<div class="custom-item">我是自定义 {{item.name}}</div>
@@ -29,7 +27,6 @@
2927
},
3028
data() {
3129
return {
32-
title: 'Current City: BEIJING',
3330
cityData: cityData
3431
}
3532
},
@@ -61,13 +58,27 @@
6158
margin: 0 auto
6259
overflow: hidden
6360
&.custom
61+
.cube-index-list-content
62+
background-color: #222
63+
color: #909090
64+
.cube-index-list-anchor
65+
background-color: #333
66+
height: 30px
67+
line-height: 30px
68+
padding: 0 0 0 20px
6469
.custom-item
6570
position: relative
66-
height: 50px
67-
line-height: 50px
71+
height: 70px
72+
line-height: 70px
6873
padding: 0 16px
6974
font-size: $fontsize-medium
70-
color: $index-list-item-color
71-
&:last-child
72-
border-none()
75+
.cube-index-list-nav
76+
padding: 20px 0
77+
border-radius: 10px
78+
background: rgba(0,0,0,.3)
79+
>ul
80+
>li
81+
padding: 3px
82+
font-size: 12px
83+
color: #909090
7384
</style>

src/components/index-list/index-list-item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="cube-index-list-item border-bottom-1px"
3+
class="cube-index-list-item"
44
@touchstart="addActiveCls"
55
@touchend="removeActiveCls"
66
@click="selectItem()">

0 commit comments

Comments
 (0)