Skip to content

Commit

Permalink
fix(skeleton): fix title always displayed (didi#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
VSirrr authored and xxyan0205 committed Nov 8, 2019
1 parent c106268 commit 202f2c9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/skeleton/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}"
></div>
<div class="md-skeleton-content">
<h4 class="md-skeleton-title" :style="{ width: getTitleWidth() }" />
<h4 v-if="title" class="md-skeleton-title" :style="{ width: getTitleWidth() }" />
<div
v-for="index in row"
class="md-skeleton-row"
Expand All @@ -23,7 +23,8 @@
<slot></slot>
</div>
</template>
<script>const DEFUALT_TITLE_WIDTH = '40%'
<script>
const DEFUALT_TITLE_WIDTH = '40%'
const DEFUALT_WIDTH = '100%'
export default {
Expand Down Expand Up @@ -82,7 +83,8 @@ export default {
},
},
}
</script>
</script>

<style lang="stylus">
placeHolder()
Expand Down

0 comments on commit 202f2c9

Please sign in to comment.