File tree Expand file tree Collapse file tree 2 files changed +21
-10
lines changed
src/components/index-list Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 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 >
2927 },
3028 data () {
3129 return {
32- title: ' Current City: BEIJING' ,
3330 cityData: cityData
3431 }
3532 },
6158 margin : 0 auto
6259 overflow : hidden
6360 & .custom
61+ .cube-index-list-content
62+ background-color : #2 2 2
63+ color : #90 90 90
64+ .cube-index-list-anchor
65+ background-color : #3 3 3
66+ height : 30px
67+ line-height : 30px
68+ padding : 0 0 0 20px
6469 .custom-item
6570 position : relative
66- height : 50 px
67- line-height : 50 px
71+ height : 70 px
72+ line-height : 70 px
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 : #90 90 90
7384 </style >
Original file line number Diff line number Diff line change 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()" >
You can’t perform that action at this time.
0 commit comments