var TempSendPanel = { template: '
\
\ 指导模板\
\ 保存\
\
\
\
\ 模板名称:\
\
\ \
{{count}}/{{words}}
\
\
\
\
插入图片(0/9)
\
\ \
\
\ \ 发送\ \
', props: [], data: function() { return { words: 1000, count: 0, content: "" } }, methods: { countWord: function() { if(this.content.length <= this.words) { this.count = this.content.length } else { this.content = this.content.slice(0, this.words) } } } }