| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[7489],{57489:function(e,t,a){a.r(t),a.d(t,{default:function(){return c}});var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"inline-16"},[a("el-popover",{attrs:{placement:"left",width:"190"}},[a("p",{staticClass:"normal-title normal-margin flex-align-center flex-between"},[a("span",[e._v("固定列")]),a("i",{staticClass:"el-icon-refresh",on:{click:e.refresh}})]),a("ul",{staticClass:"fixed-panel"},e._l(e.data,(function(t,i){return a("li",{key:i,staticClass:"flex-align-center flex-between"},[a("p",[e._v(e._s(t.title))]),a("el-radio-group",{staticStyle:{width:"110px"},on:{change:e.radioChange},model:{value:t.radio,callback:function(a){e.$set(t,"radio",a)},expression:"item.radio"}},[a("el-radio",{attrs:{label:"right"}},[e._v("右")]),a("el-radio",{attrs:{label:"left"}},[e._v("左")])],1)],1)})),0),a("i",{staticClass:"el-icon-set-up",attrs:{slot:"reference"},slot:"reference"})])],1)},l=[],r={props:["data"],methods:{radioChange(){let e=this.data.filter((e=>{if("right"===e.radio)return e.columnname})),t=this.data.filter((e=>{if("left"===e.radio)return e.columnname}));this.$emit("onFixedClick",e,t)},refresh(){this.data.forEach((e=>{e.radio=""})),this.$emit("onFixedClick",[],[])}}},n=r,s=a(43736),o=(0,s.Z)(n,i,l,!1,null,"355554dd",null),c=o.exports}}]);
|