mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
86fc4eb695
Former-commit-id: 227ec9664fa803a11a731cf5336437c497f17066
1 line
3.3 KiB
JavaScript
1 line
3.3 KiB
JavaScript
(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-3904f069"],{"4e60":function(t,e,n){},"7b6d":function(t,e,n){"use strict";n.r(e);n("b0c0");var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"cw-op add-btns-boxs"},[t._l(t.items,(function(n,o){return["button"!==n.type||n.hidden?t._e():e("el-button",t._b({directives:[{name:"show",rawName:"v-show",value:!n.showHidden,expression:"!item.showHidden"}],key:o,on:{click:function(e){return t.op(n,e)}}},"el-button",n.btnAttrs,!1),[t._v(" "+t._s(n.label)+" ")]),"tipBtn"!==n.type||n.hidden?t._e():e("el-tooltip",t._b({directives:[{name:"show",rawName:"v-show",value:!n.showHidden,expression:"!item.showHidden"}],key:o},"el-tooltip",n.tipAttrs,!1),[e("div",{attrs:{slot:"content"},slot:"content"},["slot"===n.tipAttrs.contents?t._t(n.tipAttrs.name):t._e(),"string"===typeof n.tipAttrs.contents&&"slot"!==n.tipAttrs.contents?e("div",{domProps:{innerHTML:t._s(n.tipAttrs.contents)}}):t._e(),Array.isArray(n.tipAttrs.contents)?e("div",t._l(n.tipAttrs.contents,(function(n,o){return e("div",{key:o},[t._v(t._s(n))])})),0):t._e()],2),e("el-button",t._b({class:{"is-disabled":n.btnAttrs._disabled},on:{click:function(e){return t.op(n,e)}}},"el-button",n.btnAttrs,!1),[t._v(t._s(n.label))])],1),"dropdown"!==n.type||n.hidden?t._e():e("el-dropdown",t._b({directives:[{name:"show",rawName:"v-show",value:!n.showHidden,expression:"!item.showHidden"}],key:o,staticStyle:{"margin-right":"10px"},on:{command:function(e){return t.op(n,e)}}},"el-dropdown",n.attrs,!1),[e("span",{staticClass:"el-dropdown-link"},[e("el-button",t._b({},"el-button",n.btnAttrs,!1),[t._v(t._s(n.label))])],1),e("el-dropdown-menu",{staticClass:"cw-op-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(n.dropitems,(function(n,o){return e("el-dropdown-item",t._b({key:o},"el-dropdown-item",n,!1),[t._v(t._s(n.label))])})),1)],1)]})),t._t("default")],2)},s=[],i=(n("d81d"),n("3c4e")),r=n.n(i),d=n("99bd"),a={inheritAttrs:!1,name:"CwOp",mixins:[d["a"]],components:{},props:{isAuto:{type:Boolean,default:!0}},data:function(){return{defaultItems:{button:{type:"button",btnAttrs:{type:"plain",size:"mini"}},tipBtn:{type:"tipBtn",tipAttrs:{effect:"light",placement:"right-start","popper-class":"batch-del-tooltip"},btnAttrs:{type:"plain",size:"mini",_disabled:!1}},dropdown:{type:"dropdown",btnAttrs:{type:"plain",size:"mini",_disabled:!1},attrs:{trigger:"click"}}}}},created:function(){},mounted:function(){},computed:{items:function(){var t=this;return this.$attrs.items.map((function(e){var n=t.defaultItems[e.type],o=r()(n||{},e);return"tipBtn"===e.type&&(o.btnAttrs._disabled=o.btnAttrs.disabled,o.btnAttrs.disabled=!1),o}))}},watch:{},methods:{op:function(t,e){if(!t.btnAttrs._disabled){var n="dropdown"===t.type?e:t.command;this.isAuto&&this.parentOp({commond:n,item:t,event:e}),this.$emit("op",{commond:n,item:t,event:e})}},parentOp:function(t){var e=t.commond+"Click";this.emitMethod(e,t)}}},p=a,c=(n("b133"),n("2877")),l=Object(c["a"])(p,o,s,!1,null,"5cddb4be",null);e["default"]=l.exports},"99bd":function(t,e,n){"use strict";e["a"]={methods:{emitMethod:function(t){var e,n=this.$parent;while(n&&!n[t])n=n.$parent;for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];n&&(e=n)[t].apply(e,s)}}}},b133:function(t,e,n){"use strict";n("4e60")}}]); |