touch-select
首先
; //rem初始化 设置 psd设计图宽度320 Vue;
template
js
//当表情面板展示的状态下 如果切换到某个div 聚焦时 需要隐藏表情面板 那么对那个标签加上 class='look_out' //在需要表情的输入框加上class='look_set_img' 输入框必须为div标签 //函数look_to_content(html) 将带表情的文本框内的html传入返回字符串 存储到服务器 //函数complie_content(cont) 将被look_to_content编译过的字符串转换为带表情的html //函数hide_look() 隐藏表情面板 methods: //将对话框内的 文字以及html 编译 为 字符串 并返回 用以发送到后台保存 { ifhtmls var tha=this; var html =htmls; return tha$children0 //tha.$children[0] 表示expression组件 也可能为[1]或者[2]自己打印出列表查看expression组件具体是第几个下标内 } //将字符串 编译为 html代码 并返回 用以展示到评论区 { iftexts var tha=this; var text =texts; return tha$children0 }
style