wip
This commit is contained in:
parent
07efc8e150
commit
1a6a72591f
30 changed files with 54 additions and 67 deletions
|
|
@ -119,7 +119,7 @@
|
|||
post_id: this.post.id
|
||||
}).then(() => {
|
||||
if (this.opts.cb) this.opts.cb('pinned', '%i18n:common.tags.mk-post-menu.pinned%');
|
||||
this.unmount();
|
||||
this.$destroy();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -130,7 +130,7 @@
|
|||
category: category
|
||||
}).then(() => {
|
||||
if (this.opts.cb) this.opts.cb('categorized', '%i18n:common.tags.mk-post-menu.categorized%');
|
||||
this.unmount();
|
||||
this.$destroy();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -150,7 +150,7 @@
|
|||
scale: 0.5,
|
||||
duration: 200,
|
||||
easing: 'easeInBack',
|
||||
complete: () => this.unmount()
|
||||
complete: () => this.$destroy()
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -74,41 +74,28 @@
|
|||
},
|
||||
onMouseout: function(e) {
|
||||
this.title = placeholder;
|
||||
},
|
||||
close: function() {
|
||||
this.$refs.backdrop.style.pointerEvents = 'none';
|
||||
anime({
|
||||
targets: this.$refs.backdrop,
|
||||
opacity: 0,
|
||||
duration: 200,
|
||||
easing: 'linear'
|
||||
});
|
||||
|
||||
this.$refs.popover.style.pointerEvents = 'none';
|
||||
anime({
|
||||
targets: this.$refs.popover,
|
||||
opacity: 0,
|
||||
scale: 0.5,
|
||||
duration: 200,
|
||||
easing: 'easeInBack',
|
||||
complete: () => this.$destroy()
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.mixin('api');
|
||||
|
||||
this.post = this.opts.post;
|
||||
this.source = this.opts.source;
|
||||
|
||||
this.on('mount', () => {
|
||||
});
|
||||
|
||||
this.react = reaction => {
|
||||
|
||||
};
|
||||
|
||||
this.close = () => {
|
||||
this.$refs.backdrop.style.pointerEvents = 'none';
|
||||
anime({
|
||||
targets: this.$refs.backdrop,
|
||||
opacity: 0,
|
||||
duration: 200,
|
||||
easing: 'linear'
|
||||
});
|
||||
|
||||
this.$refs.popover.style.pointerEvents = 'none';
|
||||
anime({
|
||||
targets: this.$refs.popover,
|
||||
opacity: 0,
|
||||
scale: 0.5,
|
||||
duration: 200,
|
||||
easing: 'easeInBack',
|
||||
complete: () => this.unmount()
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
<mk-reaction-picker>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue