fix Timeline custom head bug
fix Timeline custom head bug
This commit is contained in:
parent
385cfebab6
commit
c649968a4a
5 changed files with 10 additions and 53 deletions
|
@ -1,9 +1,7 @@
|
|||
<template>
|
||||
<li :class="itemClasses">
|
||||
<div :class="tailClasses"></div>
|
||||
<div :class="headClasses" :style="customColor">
|
||||
<slot name="dot"></slot>
|
||||
</div>
|
||||
<div :class="headClasses" :style="customColor" v-el:dot><slot name="dot"></slot></div>
|
||||
<div :class="contentClasses">
|
||||
<slot></slot>
|
||||
</div>
|
||||
|
@ -25,7 +23,7 @@
|
|||
}
|
||||
},
|
||||
ready () {
|
||||
this.dot = this.$children.length ? true : false;
|
||||
this.dot = this.$els.dot.innerHTML.length ? true : false;
|
||||
},
|
||||
computed: {
|
||||
itemClasses () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue