parent
ee009f63dd
commit
242ae8e91b
@ -0,0 +1,16 @@
|
||||
const RetweetButton = {
|
||||
props: [ 'status' ],
|
||||
methods: {
|
||||
retweet () {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
classes () {
|
||||
return {
|
||||
'retweeted': this.status.repeated
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default RetweetButton
|
@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div>
|
||||
<i :class='classes' class='icon-retweet fa' v-on:click.prevent=''></i>
|
||||
<span v-if='status.repeat_num > 0'>{{status.repeat_num}}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script src="./retweet_button.js" ></script>
|
||||
|
||||
<style>
|
||||
.icon-retweet {
|
||||
cursor: pointer
|
||||
}
|
||||
.retweeted {
|
||||
cursor: auto;
|
||||
color: green;
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue