梁文国
梁文国(leong-wan-kok),马来西亚玩具设计师,2006年联合许碧海成立著名潮玩工作室1000Tentacles,在走上玩具创作之路前从事漫画与插图工作长达20多年,其凭借独特的画风与手工雕刻,独自亲自上色的玩具创作理念深受玩家喜爱。
video
热门标签
关联频道
关联品牌
讨论板
登录
后加入讨论
{
$refs.input.focus()
})" x-data="{
init() {
},
text: '',
axEmoji: true,
loadingSubmit: false,
showEmojiCommentContainer: false,
replyComment: {},
firstOpenEmoji: true,
showEmojiCommentContainerHandler(state) {
this.showEmojiCommentContainer = state
this.$nextTick(() => {
const dc = document.querySelector('#pickerContainerCommentFB').querySelectorAll('[class*=EmojiArea_emojis__]')[0]
if(dc) {
dc.scrollTop = 0;
}
})
},
submitCommentHandler(text, replyComment, commenter) {
let id = Date.now().toString(36) + Math.random().toString(36).substr(2);
let tempComment = {
love_reactant: {},
published: false,
id: id,
comment: text,
commenter: {}
}
tempComment.commenter = commenter
if(replyComment.comment !== undefined) {
tempComment.parent = replyComment.comment
}
livewire.emit('comment', tempComment)
window.dispatchEvent(new CustomEvent('add-comment', {
detail: {
comment: tempComment
}
}))
},
scrollBottom() {
this.$nextTick(() => {
let scrollHeight = document.querySelector('.chat-body').scrollHeight
$('.chat-body.scrollbar').scrollTop(scrollHeight)
})
},
closeReply() {
this.replyComment = {}
},
initEmojiButtons() {
const trigger = document.querySelector('.emoji-button');
console.log('emoji-button-comment-input', typeof trigger)
if (typeof trigger === 'object') {
const rootElement = document.querySelector('#pickerContainerCommentFB');
const picker = createPicker({
rootElement,
emojisPerRow: 10,
visibleRows: 3,
showPreview: false,
emojiSize: '27px',
showVariants: false,
showSearch: false,
className: 'comment-emoji comment-emoji-jkl',
i18n: 'zh',
locale: 'zh',
categories: [
'smileys-emotion',
'animals-nature',
'people-body',
]
});
console.log(picker)
picker.addEventListener('data:ready', event => {
console.log('ready!', 'production')
const dc = document.querySelector('#pickerContainerCommentFB').querySelectorAll('[class*=picmo__emojiArea]')[0]
if(dc) {
const ps = new PerfectScrollbar(dc, {
});
dc.scrollTop = 0;
}
})
picker.addEventListener('emoji:select', event => {
console.log('Emoji selected:', event.emoji);
this.text += event.emoji || ''
});
}
}
}"
>
回到顶部