|
|
|
@ -3,9 +3,9 @@ |
|
|
|
<text v-if="showDay" :style="{ borderColor: borderColor, color: color }" |
|
|
|
class="uni-countdown__number">{{ d }}</text> |
|
|
|
<text v-if="showDay" :style="{ color: splitorColor }" class="uni-countdown__splitor">{{dayText}}</text> |
|
|
|
<text :style="{ borderColor: borderColor, color: color }" |
|
|
|
<text v-if="showHour" :style="{ borderColor: borderColor, color: color }" |
|
|
|
class="uni-countdown__number">{{ h }}</text> |
|
|
|
<text :style="{ color: splitorColor }" class="uni-countdown__splitor">{{ showColon ? '时' : hourText }}</text> |
|
|
|
<text v-if="showHour" :style="{ color: splitorColor }" class="uni-countdown__splitor">{{ showColon ? '时' : hourText }}</text> |
|
|
|
<text :style="{ borderColor: borderColor, color: color }" |
|
|
|
class="uni-countdown__number">{{ i }}</text> |
|
|
|
<text :style="{ color: splitorColor }" class="uni-countdown__splitor">{{ showColon ? '分' : minuteText }}</text> |
|
|
|
@ -45,6 +45,10 @@ |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
showHour: { |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
showColon: { |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
|