(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a3190"],{"0170":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{ref:"text",staticStyle:{display:"flex"},attrs:{contenteditable:"true"},on:{input:t.changeHanlder}},t._l(t.str,(function(e,n){return a("div",{key:n,staticStyle:{display:"flex"}},["string"===e.type?a("span",{staticClass:"string"},[t._v(" "+t._s(e.value)+" ")]):"select"===e.type?a("span",{staticClass:"select",attrs:{contenteditable:"false"}},[a("select",t._l(t.dic_data[e.value],(function(e,n){return a("option",{key:n},[t._v(" "+t._s(e)+" ")])})),0)]):t._e()])})),0),t._v(" "+t._s(t.text)+" ")])},l=[],s=(a("a630"),a("d3b7"),a("ac1f"),a("3ca3"),a("5319"),a("159b"),{data:function(){return{str:[{type:"string",value:"第一句话"},{type:"select",value:"dic_1",val:"无"},{type:"string",value:"第二句话"},{type:"select",value:"dic_2",val:"可能"},{type:"string",value:"第三句话"}],dic_data:{dic_1:["有","无"],dic_2:["是","否","可能"]},text:"第一句话有第二句话是第三句话"}},methods:{changeHanlder:function(){var t=this.$refs.text;console.log(t,12312);var e="";Array.from(t.children).forEach((function(t){var a=t.children[0];"string"===t.children[0].className?e+=a.textContent:"select"===t.children[0].className&&(e+=a.children[0].value)})),this.text=e.replace(/\s/g,"")}}}),c=s,i=a("2877"),r=Object(i["a"])(c,n,l,!1,null,null,null);e["default"]=r.exports}}]);