Commit 109eb52ddece981e3cdeada70efd95c54128d23d

Authored by 梁灏
1 parent d14a61aa

update Card style

examples/routers/card.vue
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <Card style="width:350px"> 2 <Card style="width:350px">
3 <p slot="title"> 3 <p slot="title">
4 <Icon type="ios-film-outline"></Icon> 4 <Icon type="ios-film-outline"></Icon>
5 - 经典电影 5 + <span>经典电影</span>
6 </p> 6 </p>
7 <a href="#" slot="extra" @click.prevent="changeLimit"> 7 <a href="#" slot="extra" @click.prevent="changeLimit">
8 <Icon type="ios-loop-strong"></Icon> 8 <Icon type="ios-loop-strong"></Icon>
src/components/card/card.vue
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <div :class="headClasses" v-if="showHead"><slot name="title"> 3 <div :class="headClasses" v-if="showHead"><slot name="title">
4 <p v-if="title"> 4 <p v-if="title">
5 <Icon v-if="icon" :type="icon"></Icon> 5 <Icon v-if="icon" :type="icon"></Icon>
6 - {{title}} 6 + <span>{{title}}</span>
7 </p> 7 </p>
8 </slot></div> 8 </slot></div>
9 <div :class="extraClasses" v-if="showExtra"><slot name="extra"></slot></div> 9 <div :class="extraClasses" v-if="showExtra"><slot name="extra"></slot></div>
src/styles/mixins/content.less
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 text-overflow: ellipsis; 19 text-overflow: ellipsis;
20 white-space: nowrap; 20 white-space: nowrap;
21 } 21 }
22 - p i{ 22 + p i, p span{
23 vertical-align: middle; 23 vertical-align: middle;
24 } 24 }
25 } 25 }