tenghui-ui 2.0.19 → 2.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var mc=Object.defineProperty,vc=Object.defineProperties;var gc=Object.getOwnPropertyDescriptors;var ko=Object.getOwnPropertySymbols;var yc=Object.prototype.hasOwnProperty,bc=Object.prototype.propertyIsEnumerable;var Bo=(fe,ie,ye)=>ie in fe?mc(fe,ie,{enumerable:!0,configurable:!0,writable:!0,value:ye}):fe[ie]=ye,ge=(fe,ie)=>{for(var ye in ie||(ie={}))yc.call(ie,ye)&&Bo(fe,ye,ie[ye]);if(ko)for(var ye of ko(ie))bc.call(ie,ye)&&Bo(fe,ye,ie[ye]);return fe},Ke=(fe,ie)=>vc(fe,gc(ie));(function(fe,ie){typeof exports=="object"&&typeof module!="undefined"?module.exports=ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],ie):(fe=typeof globalThis!="undefined"?globalThis:fe||self,fe["tenghui-ui"]=ie(fe.Vue))})(this,function(fe){"use strict";function ie(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ye=ie(fe),Sc="",Wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-template"},[n("h1",[e._v(e._s(e.msg))]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[n("el-table-column",{attrs:{prop:"date",label:"\u65E5\u671F",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"\u59D3\u540D",width:"180"}}),n("el-table-column",{attrs:{prop:"address",label:"\u5730\u5740"}})],1)],1)},Ho=[],xc="";function le(e,t,n,r,a,o,i,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o);var c;if(i?(c=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(d=__VUE_SSR_CONTEXT__),a&&a.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(i)},l._ssrRegister=c):a&&(c=s?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(h,p){return c.call(p),u(h,p)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}const zo={name:"ComTemplate",data(){return{msg:"\u6D4B\u8BD5\u7EC4\u4EF611111",tableData:[{date:"2016-05-02",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04"},{date:"2016-05-04",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1517 \u5F04"},{date:"2016-05-01",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1519 \u5F04"},{date:"2016-05-03",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1516 \u5F04"}]}},methods:{}},ar={};var Go=le(zo,Wo,Ho,!1,Uo,"183fe45a",null,null);function Uo(e){for(let t in ar)this[t]=ar[t]}var It=function(){return Go.exports}();It.install=e=>{e.component(It.name,It)};const ir=It;var Vo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-menu",class:{"flex-direction-column ui-hasbg":e.mode=="vertical"},style:{width:e.isCollapse?"64px":"200px"}},[e.mode=="vertical"?n("div",{staticClass:"ui-menu__header"},[n("div",{staticClass:"ui-collapse"},[n("span",{class:e.isCollapse?"icon-qiehuan1 mr-24":"icon-qiehuan",on:{click:function(r){e.isCollapse=!e.isCollapse}}})]),n("div",{staticClass:"ui-user"},[e._t("avatar",[n("div",{staticClass:"ui-user__img"})],{size:e.isCollapse?30:64}),n("div",{staticClass:"ui-user--name"},[e._v(" "+e._s(e.userData.userName)+" ")])],2)]):e._e(),n("div",{staticClass:"ui-fast__search",class:{"ui-collapse--form":e.isCollapse}},[n("com-form-item",{attrs:{type:"cascader","popper-class":"fast_search__cascader",options:e.data,props:e.searchProps,placeholder:"\u641C\u7D22\u83DC\u5355"},on:{change:e.handleSearch},model:{value:e.activePath,callback:function(r){e.activePath=r},expression:"activePath"}})],1),n("com-container",{attrs:{"static-class":[".ui-fast__search",".ui-user",".el-header"],"static-num":50}},[n("el-menu",{class:"ui-menu--"+e.mode,attrs:{"background-color":"#545c64","text-color":"#FFF","active-text-color":"#FFF","menu-trigger":"hover",mode:e.mode,"default-active":e.$route.path,collapse:e.isCollapse},on:{select:e.handleJump}},[e._l(e.data,function(r,a){return[r.children?n("el-submenu",{attrs:{index:r.path||r.name}},[n("template",{slot:"title"},[n("i",{class:r.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",[e._v(e._s(r.name))])]),e._l(r.children,function(o,i){return[o.children?n("el-submenu",{attrs:{index:o.path||o.name}},[n("template",{slot:"title"},[e._v(e._s(o.name))]),e._l(o.children,function(s,l){return n("el-menu-item",{key:s.name,attrs:{index:s.path||s.name}},[e._v(e._s(s.name))])})],2):n("el-menu-item",{attrs:{index:o.path||o.name}},[e._v(e._s(o.name))])]})],2):n("el-menu-item",{attrs:{index:r.path||r.name}},[n("i",{class:r.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.name))])])]})],2)],1)],1)},Jo=[],Cc="";const Xo={name:"ComMenu",props:{data:{type:Array,default(){return[]}},mode:{type:String,default:"horizontal"},userData:{type:Object,default(){return{}}}},data(){return{searchProps:{label:"name",value:"path",emitPath:!1},activePath:"",isCollapse:localStorage.getItem("SAVE_COLLAPSE_STATE")==1}},methods:{handleJump(e){this.$emit("jump",e)},handleSearch(e){!e||this.handleJump(e)}},watch:{"$route.path"(e){this.activePath=e},isCollapse(e){localStorage.setItem("SAVE_COLLAPSE_STATE",e?1:0)}}},sr={};var Ko=le(Xo,Vo,Jo,!1,Yo,"0c59bf82",null,null);function Yo(e){for(let t in sr)this[t]=sr[t]}var At=function(){return Ko.exports}();At.install=e=>{e.component(At.name,At)};const lr=At;var Qo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-tabs"},[n("div",{staticClass:"inline-block h-full"},[n("div",{staticClass:"h-full flex items-end"},e._l(e.data,function(r,a){return n("div",{key:r.path,staticClass:"admin-tab__chrome-tab",class:{"admin-tab__chrome-tab--active":e.currentTab.path===r.path,"admin-tab__chrome-tab--hover":e.hoverItem==r.path},on:{click:function(o){return e.handleToggle(r.path)},mouseenter:function(o){return e.itemEnter(r.path)},mouseleave:function(o){return e.itemLeave(r.path)}}},[n("div",{staticClass:"admin-tab__chrome-tab__bg"},[n("svg",{staticStyle:{width:"100%",height:"100%"}},[n("defs",[n("symbol",{attrs:{id:"geometry-left",viewBox:"0 0 214 36"}},[n("path",{attrs:{d:"M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"}})]),n("symbol",{attrs:{id:"geometry-right",viewBox:"0 0 214 36"}},[n("use",{attrs:{"xlink:href":"#geometry-left"}})]),n("clipPath",[n("rect",{attrs:{width:"100%",height:"100%",x:"0"}})])]),n("svg",{attrs:{width:"52%",height:"100%"}},[n("use",{attrs:{"xlink:href":"#geometry-left",width:"214",height:"36",fill:e.stateColor(r.path)}})]),n("g",{attrs:{transform:"scale(-1, 1)"}},[n("svg",{attrs:{width:"52%",height:"100%",x:"-100%",y:"0"}},[n("use",{attrs:{"xlink:href":"#geometry-right",width:"214",height:"36",fill:e.stateColor(r.path)}})])])])]),n("span",{staticClass:"admin-tab__chrome-tab__slot"},[n("i",{class:r.icon||"",staticStyle:{"margin-right":"5px"}}),e._v(" "+e._s(r.name)+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:r.path!=="/Home",expression:"item.path !== '/Home'"}],staticClass:"admin-tab__chrome-tab__icon"},[n("div",{staticClass:"admin-tab__icon",on:{click:function(o){return o.stopPropagation(),e.handleDeleteTab(r.path)}}},[n("i",{staticClass:"icon-guanbi1 font-size-12"})])]),n("div",{staticClass:"admin-tab__chrome-tab__divider",class:{"admin-tab__chrome-tab__divider--hide":e.hoverItem==r.path||e.currentTab.path===r.path}})])}),0)])])},Zo=[],_c="";const qo={name:"ComTabs",props:{data:{type:Array,default(){return[]}},currentTab:{type:Object,default(){return{}}}},data(){return{hoverItem:""}},methods:{handleToggle(e){this.$emit("toggle",e)},handleDeleteTab(e){this.$emit("deleteTab",e)},itemEnter(e){this.hoverItem=e},itemLeave(e){this.hoverItem=""},stateColor(e){const t="#dee1e6",n="#f5f7fa";return this.currentTab.path==e?t:this.hoverItem==e?n:"#FFFFFF"}}},cr={};var ea=le(qo,Qo,Zo,!1,ta,"355ab970",null,null);function ta(e){for(let t in cr)this[t]=cr[t]}var Tt=function(){return ea.exports}();Tt.install=e=>{e.component(Tt.name,Tt)};const ur=Tt;var na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-tool"},[e.themes.length?n("el-dropdown",{on:{command:function(r){return e.handleOperation("theme",r)}}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"icon-pifu"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.themes,function(r){return n("el-dropdown-item",{key:r.value,attrs:{command:r.value}},[n("i",{staticClass:"el-icon-s-platform",style:{color:r.theme["@theme-color"]}}),n("span",[e._v(e._s(r.label))])])}),1)],1):e._e(),n("el-dropdown",{on:{command:e.handleOperation}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"el-icon-s-tools"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{icon:"icon-tuichudenglu",command:"outLogin"}},[e._v("\u9000\u51FA\u767B\u5F55")])],1)],1)],1)},ra=[],wc="";const oa={name:"ComTool",props:{themes:{type:Array,default(){return[]}}},methods:{handleOperation(e,t){switch(e){case"outLogin":this.$confirm("\u786E\u8BA4\u9000\u51FA\u767B\u5F55?","\u63D0\u793A",{type:"warning"}).then(()=>{console.log("out login"),this.$emit("operation",e)});break;default:this.$emit("operation",e,t);break}}}},fr={};var aa=le(oa,na,ra,!1,ia,"236d5a2a",null,null);function ia(e){for(let t in fr)this[t]=fr[t]}var Dt=function(){return aa.exports}();Dt.install=e=>{e.component(Dt.name,Dt)};const dr=Dt;var sa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{"append-to-body":"",top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{close:e.handleClose},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[e.showBtn?n("el-button",{attrs:{size:"small"},on:{click:e.handleCancel}},[e._v("\u53D6\u6D88")]):e._e(),e.showBtn?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\u786E\u5B9A")]):e._e()])]},proxy:!0}],null,!0)},[e._t("default")],2)},la=[],Oc="";const ca={name:"ComDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"},width:{type:String,default:"600px"},top:{type:String,default:"50px"},closeOnClickModal:{type:Boolean,default:!0},beforeClose:{type:Function,default(e){e()}},showBtn:{type:Boolean,default:!0}},data(){return{show:!1}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)}}},pr={};var ua=le(ca,sa,la,!1,fa,"26b67942",null,null);function fa(e){for(let t in pr)this[t]=pr[t]}var Pt=function(){return ua.exports}();Pt.install=e=>{e.component(Pt.name,Pt)};const hr=Pt,mr={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},da=Ke(ge({},mr),{type:"datetimerange","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss"}),pa=Ke(ge({},mr),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"}),ha={input:{size:"small"},select:{size:"small",clearable:!0,placeholder:"\u8BF7\u9009\u62E9"},textarea:{placeholder:"\u8BF7\u8F93\u5165",size:"small",rows:4},"input-number":{"controls-position":"right",size:"small"},cascader:{size:"small",clearable:!0},daterange:pa,datetimerange:da,datetime:{type:"datetime","default-time":"00:00:00",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},date:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"}};var ma=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-form__item",class:"ui-form__item--"+e.type,style:e.staticStyle},[n("div",[e._t("label",[e.label?n("div",{staticClass:"ui-item__label"},[n("span",[e._v(e._s(e.label))])]):e._e()])],2),n("div",{staticClass:"ui-item__main",class:e.inlineLabel?"inline_form":""},[e.type==="input"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(r,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="select"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"remote-method":e.remoteMethod,"filter-method":e.checkFilterMethod,"popper-class":"ui-select__popper--"+e.itemFlag},on:{"visible-change":e.handleSetSelectOpeWidth},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(r,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),[e.multiple&&e.filterOptions.length?n("div",{staticClass:"ui-select__ope"},[n("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleSelectCheck(!0)}}},[e._v("\u5168\u9009")]),n("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleSelectCheck()}}},[e._v("\u53CD\u9009")])],1):e._e(),e._l(e.filterOptions,function(r,a){return n("el-option",{key:""+r.value+a,attrs:{value:r.value.toString(),label:r.label}})})],2)],1)]:e.type==="bigselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"filter-method":e.bigFilterMethod},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(r,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.bigOptions,function(r,a){return n("el-option",{key:""+r.value+a,attrs:{value:r.value.toString(),label:r.label}})}),1)],1)]:e.type==="textarea"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:"textarea"},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="input-number"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-input-number",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-input-number",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="cascader"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-cascader",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{options:e.options,props:e.props,filterable:e.filterable,collapseTags:e.collapseTags},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-cascader",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="daterange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetime"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:["date","month"].includes(e.type)?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="inputrange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"ui-input__range",class:{inline_content:e.inlineLabel}},[e._t("prepend"),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},model:{value:e.modelForm[0],callback:function(r){e.$set(e.modelForm,0,r)},expression:"modelForm[0]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},model:{value:e.modelForm[1],callback:function(r){e.$set(e.modelForm,1,r)},expression:"modelForm[1]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],2)]:e.type==="radio"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-radio-group",e._g(e._b({model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-radio-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(r){return n("el-radio",{key:r.value,attrs:{label:r.value}},[e._v(e._s(r.label))])}),1)]:e._e()],2)])},va=[],Ic="";const ga={inheritAttrs:!1,name:"ComFormItem",model:{prop:"model",event:"changes"},props:{model:void 0,type:{type:String,default:"input"},label:{type:String,default:""},options:{type:[Object,Array],default(){return[]}},props:{type:Object,default(){return{value:"value",label:"label"}}},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},remote:{type:Boolean,default:!1},reserveKeyword:{type:Boolean,default:!1},remoteMethod:{type:Function},inlineLabel:{type:String,default:""},labelWidth:{type:String,default:"120px"},minWidth:{type:[String,Number],default:""}},data(){return{modelForm:this.model,bigOptions:[],itemFlag:Math.ceil(Math.random()*1e4),filterOptions:[]}},computed:{staticStyle(){return ge({},this.minWidth?{minWidth:`${parseFloat(this.minWidth)}px`}:{})},selectOption(){let e=[];if(Array.isArray(this.options)&&this.options.length&&this.options[0][this.props.label]===void 0){const{label:t,value:n}=this.props;e=this.options.map((r,a)=>{const o={label:r,value:a};return{label:o[t],value:Number.isFinite(Number(o[n]))?o[n].toString():o[n]}})}else if(!Array.isArray(this.options))e=Object.entries(this.options).map(([t,n])=>({label:n,value:Number.isFinite(Number(t))?t.toString():t}));else{let t=[];t.push(...this.options),e=t.map(n=>({label:n[this.props.label],value:Number.isFinite(Number(n[this.props.value]))?n[this.props.value].toString():n[this.props.value]}))}return e}},created(){this.bigOptions=this.selectOption.slice(0,150),this.filterOptions=this.selectOption.slice(0)},methods:{bigFilterMethod(e){let t=[];e?t=this.selectOption.filter(r=>r.label.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,150):t=JSON.parse(JSON.stringify(this.selectOption.slice(0,150)));const n=this.selectOption.findIndex(r=>r.value==this.modelForm);n<150?this.bigOptions=t:this.bigOptions=[this.selectOption[n],...t]},getComponentSlots(e){const t=["label"],n={};return Object.entries(e).forEach(([r,a])=>{t.includes(r)||(n[r]=a)}),n},getCurrentInstance(){return this.$refs[this.type]},polyfillAttrs(e){return Ke(ge({},e),{disabled:e.readonly||e.disabled})},getformItemConfig(){if(!this.$UICONFIG)return{};const{formItemConfig:e}=this.$UICONFIG;return e||{}},setDefaultAttrs(e){const{type:t}=this,r=this.getformItemConfig()[t]||ha[t]||{};return ge(ge({},r),e)},handleEnter(){const e=this.$parent.$refs.Search?this.$parent:this.$parent.$parent.$refs.Search?this.$parent.$parent:null;e&&e.handleQuery()},async handleSetSelectOpeWidth(e){if(!e){this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));return}await this.$nextTick();const t=document.querySelector(`.ui-select__popper--${this.itemFlag}`),n=t&&t.querySelector(".ui-select__ope");n&&(n.style.width=`${t.offsetWidth-2}px`)},handleSelectCheck(e){e?this.modelForm=this.filterOptions.map(t=>t.value):this.modelForm=this.filterOptions.reduce((t,n)=>this.modelForm.includes(n.value)?t:[...t,n.value],[])},checkFilterMethod(e){let t=[];e?t=this.selectOption.filter(n=>n.label.toLowerCase().indexOf(e.toLowerCase())>-1):t=JSON.parse(JSON.stringify(this.selectOption)),this.filterOptions=t}},watch:{modelForm(e){this.$emit("changes",e)},model(e){this.modelForm=e},selectOption(e){this.bigOptions=e.slice(0,200),this.filterOptions=e.slice(0)}}},vr={};var ya=le(ga,ma,va,!1,ba,"3f9bf4cc",null,null);function ba(e){for(let t in vr)this[t]=vr[t]}var Mt=function(){return ya.exports}();Mt.install=e=>{e.component(Mt.name,Mt)};const gr=Mt;var Sa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.showItems,function(r,a){return[n(r.constructor,e._g(e._b({directives:[{name:"permit",rawName:"v-permit",value:{value:r.$attrs.permit||"break"},expression:"{ value: item.$attrs.permit || 'break' }"}],tag:"component",attrs:{size:"mini","btn-type":"mock",type:r.type=="text"?"primary":r.type,icon:r.icon}},"component",e.$attrs,!1),r.$listeners),[e._v(" "+e._s(r.$slots.default[0].text)+" ")])]})],2)},xa=[],Ac="";const Ca={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},yr={};var _a=le(Ca,Sa,xa,!1,wa,"c24a1f4c",null,null);function wa(e){for(let t in yr)this[t]=yr[t]}var Oa=function(){return _a.exports}(),Ea=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},$a=[],Tc="";const Ia={name:"ComOperation",components:{Items:Oa},prop:{type:String,default:"main"},data(){return{isInit:!1,listItems:[]}},computed:{showItems(){return this.listItems.filter(e=>e.$options._componentTag=="el-button")}},mounted(){this.listItems=this.$children},watch:{listItems(e){e.length&&(this.isInit=!0)}}},br={};var Aa=le(Ia,Ea,$a,!1,Ta,"3592f4b8",null,null);function Ta(e){for(let t in br)this[t]=br[t]}var Ft=function(){return Aa.exports}();Ft.install=e=>{e.component(Ft.name,Ft)};const Sr=Ft;var Da=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xr(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Cr={exports:{}};/**!
1
+ var mc=Object.defineProperty,vc=Object.defineProperties;var gc=Object.getOwnPropertyDescriptors;var ko=Object.getOwnPropertySymbols;var yc=Object.prototype.hasOwnProperty,bc=Object.prototype.propertyIsEnumerable;var Bo=(fe,ie,ye)=>ie in fe?mc(fe,ie,{enumerable:!0,configurable:!0,writable:!0,value:ye}):fe[ie]=ye,ge=(fe,ie)=>{for(var ye in ie||(ie={}))yc.call(ie,ye)&&Bo(fe,ye,ie[ye]);if(ko)for(var ye of ko(ie))bc.call(ie,ye)&&Bo(fe,ye,ie[ye]);return fe},Ke=(fe,ie)=>vc(fe,gc(ie));(function(fe,ie){typeof exports=="object"&&typeof module!="undefined"?module.exports=ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],ie):(fe=typeof globalThis!="undefined"?globalThis:fe||self,fe["tenghui-ui"]=ie(fe.Vue))})(this,function(fe){"use strict";function ie(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ye=ie(fe),Sc="",Wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-template"},[n("h1",[e._v(e._s(e.msg))]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[n("el-table-column",{attrs:{prop:"date",label:"\u65E5\u671F",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"\u59D3\u540D",width:"180"}}),n("el-table-column",{attrs:{prop:"address",label:"\u5730\u5740"}})],1)],1)},Ho=[],xc="";function le(e,t,n,r,a,o,i,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o);var c;if(i?(c=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(d=__VUE_SSR_CONTEXT__),a&&a.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(i)},l._ssrRegister=c):a&&(c=s?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(h,p){return c.call(p),u(h,p)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}const zo={name:"ComTemplate",data(){return{msg:"\u6D4B\u8BD5\u7EC4\u4EF611111",tableData:[{date:"2016-05-02",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04"},{date:"2016-05-04",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1517 \u5F04"},{date:"2016-05-01",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1519 \u5F04"},{date:"2016-05-03",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1516 \u5F04"}]}},methods:{}},ar={};var Go=le(zo,Wo,Ho,!1,Uo,"183fe45a",null,null);function Uo(e){for(let t in ar)this[t]=ar[t]}var It=function(){return Go.exports}();It.install=e=>{e.component(It.name,It)};const ir=It;var Vo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-menu",class:{"flex-direction-column ui-hasbg":e.mode=="vertical"},style:{width:e.isCollapse?"64px":"200px"}},[e.mode=="vertical"?n("div",{staticClass:"ui-menu__header"},[n("div",{staticClass:"ui-collapse"},[n("span",{class:e.isCollapse?"icon-qiehuan1 mr-24":"icon-qiehuan",on:{click:function(r){e.isCollapse=!e.isCollapse}}})]),n("div",{staticClass:"ui-user"},[e._t("avatar",[n("div",{staticClass:"ui-user__img"})],{size:e.isCollapse?30:64}),n("div",{staticClass:"ui-user--name"},[e._v(" "+e._s(e.userData.userName)+" ")])],2)]):e._e(),n("div",{staticClass:"ui-fast__search",class:{"ui-collapse--form":e.isCollapse}},[n("com-form-item",{attrs:{type:"cascader","popper-class":"fast_search__cascader",options:e.data,props:e.searchProps,placeholder:"\u641C\u7D22\u83DC\u5355"},on:{change:e.handleSearch},model:{value:e.activePath,callback:function(r){e.activePath=r},expression:"activePath"}})],1),n("com-container",{attrs:{"static-class":[".ui-fast__search",".ui-user",".el-header"],"static-num":50}},[n("el-menu",{class:"ui-menu--"+e.mode,attrs:{"background-color":"#545c64","text-color":"#FFF","active-text-color":"#FFF","menu-trigger":"hover",mode:e.mode,"default-active":e.$route.path,collapse:e.isCollapse},on:{select:e.handleJump}},[e._l(e.data,function(r,a){return[r.children?n("el-submenu",{attrs:{index:r.path||r.name}},[n("template",{slot:"title"},[n("i",{class:r.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",[e._v(e._s(r.name))])]),e._l(r.children,function(o,i){return[o.children?n("el-submenu",{attrs:{index:o.path||o.name}},[n("template",{slot:"title"},[e._v(e._s(o.name))]),e._l(o.children,function(s,l){return n("el-menu-item",{key:s.name,attrs:{index:s.path||s.name}},[e._v(e._s(s.name))])})],2):n("el-menu-item",{attrs:{index:o.path||o.name}},[e._v(e._s(o.name))])]})],2):n("el-menu-item",{attrs:{index:r.path||r.name}},[n("i",{class:r.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.name))])])]})],2)],1)],1)},Jo=[],Cc="";const Xo={name:"ComMenu",props:{data:{type:Array,default(){return[]}},mode:{type:String,default:"horizontal"},userData:{type:Object,default(){return{}}}},data(){return{searchProps:{label:"name",value:"path",emitPath:!1},activePath:"",isCollapse:localStorage.getItem("SAVE_COLLAPSE_STATE")==1}},methods:{handleJump(e){this.$emit("jump",e)},handleSearch(e){!e||this.handleJump(e)}},watch:{"$route.path"(e){this.activePath=e},isCollapse(e){localStorage.setItem("SAVE_COLLAPSE_STATE",e?1:0)}}},sr={};var Ko=le(Xo,Vo,Jo,!1,Yo,"0c59bf82",null,null);function Yo(e){for(let t in sr)this[t]=sr[t]}var At=function(){return Ko.exports}();At.install=e=>{e.component(At.name,At)};const lr=At;var Qo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-tabs"},[n("div",{staticClass:"inline-block h-full"},[n("div",{staticClass:"h-full flex items-end"},e._l(e.data,function(r,a){return n("div",{key:r.path,staticClass:"admin-tab__chrome-tab",class:{"admin-tab__chrome-tab--active":e.currentTab.path===r.path,"admin-tab__chrome-tab--hover":e.hoverItem==r.path},on:{click:function(o){return e.handleToggle(r.path)},mouseenter:function(o){return e.itemEnter(r.path)},mouseleave:function(o){return e.itemLeave(r.path)}}},[n("div",{staticClass:"admin-tab__chrome-tab__bg"},[n("svg",{staticStyle:{width:"100%",height:"100%"}},[n("defs",[n("symbol",{attrs:{id:"geometry-left",viewBox:"0 0 214 36"}},[n("path",{attrs:{d:"M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"}})]),n("symbol",{attrs:{id:"geometry-right",viewBox:"0 0 214 36"}},[n("use",{attrs:{"xlink:href":"#geometry-left"}})]),n("clipPath",[n("rect",{attrs:{width:"100%",height:"100%",x:"0"}})])]),n("svg",{attrs:{width:"52%",height:"100%"}},[n("use",{attrs:{"xlink:href":"#geometry-left",width:"214",height:"36",fill:e.stateColor(r.path)}})]),n("g",{attrs:{transform:"scale(-1, 1)"}},[n("svg",{attrs:{width:"52%",height:"100%",x:"-100%",y:"0"}},[n("use",{attrs:{"xlink:href":"#geometry-right",width:"214",height:"36",fill:e.stateColor(r.path)}})])])])]),n("span",{staticClass:"admin-tab__chrome-tab__slot"},[n("i",{class:r.icon||"",staticStyle:{"margin-right":"5px"}}),e._v(" "+e._s(r.name)+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:r.path!=="/Home",expression:"item.path !== '/Home'"}],staticClass:"admin-tab__chrome-tab__icon"},[n("div",{staticClass:"admin-tab__icon",on:{click:function(o){return o.stopPropagation(),e.handleDeleteTab(r.path)}}},[n("i",{staticClass:"icon-guanbi1 font-size-12"})])]),n("div",{staticClass:"admin-tab__chrome-tab__divider",class:{"admin-tab__chrome-tab__divider--hide":e.hoverItem==r.path||e.currentTab.path===r.path}})])}),0)])])},Zo=[],_c="";const qo={name:"ComTabs",props:{data:{type:Array,default(){return[]}},currentTab:{type:Object,default(){return{}}}},data(){return{hoverItem:""}},methods:{handleToggle(e){this.$emit("toggle",e)},handleDeleteTab(e){this.$emit("deleteTab",e)},itemEnter(e){this.hoverItem=e},itemLeave(e){this.hoverItem=""},stateColor(e){const t="#dee1e6",n="#f5f7fa";return this.currentTab.path==e?t:this.hoverItem==e?n:"#FFFFFF"}}},cr={};var ea=le(qo,Qo,Zo,!1,ta,"355ab970",null,null);function ta(e){for(let t in cr)this[t]=cr[t]}var Tt=function(){return ea.exports}();Tt.install=e=>{e.component(Tt.name,Tt)};const ur=Tt;var na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-tool"},[e.themes.length?n("el-dropdown",{on:{command:function(r){return e.handleOperation("theme",r)}}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"icon-pifu"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.themes,function(r){return n("el-dropdown-item",{key:r.value,attrs:{command:r.value}},[n("i",{staticClass:"el-icon-s-platform",style:{color:r.theme["@theme-color"]}}),n("span",[e._v(e._s(r.label))])])}),1)],1):e._e(),n("el-dropdown",{on:{command:e.handleOperation}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"el-icon-s-tools"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{icon:"icon-tuichudenglu",command:"outLogin"}},[e._v("\u9000\u51FA\u767B\u5F55")])],1)],1)],1)},ra=[],wc="";const oa={name:"ComTool",props:{themes:{type:Array,default(){return[]}}},methods:{handleOperation(e,t){switch(e){case"outLogin":this.$confirm("\u786E\u8BA4\u9000\u51FA\u767B\u5F55?","\u63D0\u793A",{type:"warning"}).then(()=>{console.log("out login"),this.$emit("operation",e)});break;default:this.$emit("operation",e,t);break}}}},fr={};var aa=le(oa,na,ra,!1,ia,"236d5a2a",null,null);function ia(e){for(let t in fr)this[t]=fr[t]}var Dt=function(){return aa.exports}();Dt.install=e=>{e.component(Dt.name,Dt)};const dr=Dt;var sa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{"append-to-body":"",top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{close:e.handleClose},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[e.showBtn?n("el-button",{attrs:{size:"small"},on:{click:e.handleCancel}},[e._v("\u53D6\u6D88")]):e._e(),e.showBtn?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\u786E\u5B9A")]):e._e()])]},proxy:!0}],null,!0)},[e._t("default")],2)},la=[],Oc="";const ca={name:"ComDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"},width:{type:String,default:"600px"},top:{type:String,default:"50px"},closeOnClickModal:{type:Boolean,default:!0},beforeClose:{type:Function,default(e){e()}},showBtn:{type:Boolean,default:!0}},data(){return{show:!1}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)}}},pr={};var ua=le(ca,sa,la,!1,fa,"26b67942",null,null);function fa(e){for(let t in pr)this[t]=pr[t]}var Pt=function(){return ua.exports}();Pt.install=e=>{e.component(Pt.name,Pt)};const hr=Pt,mr={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},da=Ke(ge({},mr),{type:"datetimerange","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss"}),pa=Ke(ge({},mr),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"}),ha={input:{size:"small"},select:{size:"small",clearable:!0,placeholder:"\u8BF7\u9009\u62E9"},textarea:{placeholder:"\u8BF7\u8F93\u5165",size:"small",rows:4},"input-number":{"controls-position":"right",size:"small"},cascader:{size:"small",clearable:!0},daterange:pa,datetimerange:da,datetime:{type:"datetime","default-time":"00:00:00",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},date:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"}};var ma=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-form__item",class:"ui-form__item--"+e.type,style:e.staticStyle},[n("div",[e._t("label",[e.label?n("div",{staticClass:"ui-item__label"},[n("span",[e._v(e._s(e.label))])]):e._e()])],2),n("div",{staticClass:"ui-item__main",class:e.inlineLabel?"inline_form":""},[e.type==="input"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(r,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="select"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"remote-method":e.remoteMethod,"filter-method":e.checkFilterMethod,"popper-class":e.multiple?"ui-select__popper--"+e.itemFlag:""},on:{"visible-change":e.handleSetSelectOpeWidth},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(r,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),[e.multiple&&e.filterOptions.length?n("div",{staticClass:"ui-select__ope"},[n("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleSelectCheck(!0)}}},[e._v("\u5168\u9009")]),n("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleSelectCheck()}}},[e._v("\u53CD\u9009")])],1):e._e(),e._l(e.filterOptions,function(r,a){return n("el-option",{key:""+r.value+a,attrs:{value:r.value.toString(),label:r.label}})})],2)],1)]:e.type==="bigselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"filter-method":e.bigFilterMethod},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(r,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.bigOptions,function(r,a){return n("el-option",{key:""+r.value+a,attrs:{value:r.value.toString(),label:r.label}})}),1)],1)]:e.type==="textarea"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:"textarea"},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="input-number"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-input-number",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-input-number",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="cascader"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-cascader",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{options:e.options,props:e.props,filterable:e.filterable,collapseTags:e.collapseTags},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-cascader",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="daterange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetime"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:["date","month"].includes(e.type)?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="inputrange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"ui-input__range",class:{inline_content:e.inlineLabel}},[e._t("prepend"),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},model:{value:e.modelForm[0],callback:function(r){e.$set(e.modelForm,0,r)},expression:"modelForm[0]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.handleEnter(r)}},model:{value:e.modelForm[1],callback:function(r){e.$set(e.modelForm,1,r)},expression:"modelForm[1]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],2)]:e.type==="radio"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-radio-group",e._g(e._b({model:{value:e.modelForm,callback:function(r){e.modelForm=r},expression:"modelForm"}},"el-radio-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(r){return n("el-radio",{key:r.value,attrs:{label:r.value}},[e._v(e._s(r.label))])}),1)]:e._e()],2)])},va=[],Ic="";const ga={inheritAttrs:!1,name:"ComFormItem",model:{prop:"model",event:"changes"},props:{model:void 0,type:{type:String,default:"input"},label:{type:String,default:""},options:{type:[Object,Array],default(){return[]}},props:{type:Object,default(){return{value:"value",label:"label"}}},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},remote:{type:Boolean,default:!1},reserveKeyword:{type:Boolean,default:!1},remoteMethod:{type:Function},inlineLabel:{type:String,default:""},labelWidth:{type:String,default:"120px"},minWidth:{type:[String,Number],default:""}},data(){return{modelForm:this.model,bigOptions:[],itemFlag:Math.ceil(Math.random()*1e4),filterOptions:[]}},computed:{staticStyle(){return ge({},this.minWidth?{minWidth:`${parseFloat(this.minWidth)}px`}:{})},selectOption(){let e=[];if(Array.isArray(this.options)&&this.options.length&&this.options[0][this.props.label]===void 0){const{label:t,value:n}=this.props;e=this.options.map((r,a)=>{const o={label:r,value:a};return{label:o[t],value:Number.isFinite(Number(o[n]))?o[n].toString():o[n]}})}else if(!Array.isArray(this.options))e=Object.entries(this.options).map(([t,n])=>({label:n,value:Number.isFinite(Number(t))?t.toString():t}));else{let t=[];t.push(...this.options),e=t.map(n=>({label:n[this.props.label],value:Number.isFinite(Number(n[this.props.value]))?n[this.props.value].toString():n[this.props.value]}))}return e}},created(){this.bigOptions=this.selectOption.slice(0,150),this.filterOptions=this.selectOption.slice(0)},methods:{bigFilterMethod(e){let t=[];e?t=this.selectOption.filter(r=>r.label.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,150):t=JSON.parse(JSON.stringify(this.selectOption.slice(0,150)));const n=this.selectOption.findIndex(r=>r.value==this.modelForm);n<150?this.bigOptions=t:this.bigOptions=[this.selectOption[n],...t]},getComponentSlots(e){const t=["label"],n={};return Object.entries(e).forEach(([r,a])=>{t.includes(r)||(n[r]=a)}),n},getCurrentInstance(){return this.$refs[this.type]},polyfillAttrs(e){return Ke(ge({},e),{disabled:e.readonly||e.disabled})},getformItemConfig(){if(!this.$UICONFIG)return{};const{formItemConfig:e}=this.$UICONFIG;return e||{}},setDefaultAttrs(e){const{type:t}=this,r=this.getformItemConfig()[t]||ha[t]||{};return ge(ge({},r),e)},handleEnter(){const e=this.$parent.$refs.Search?this.$parent:this.$parent.$parent.$refs.Search?this.$parent.$parent:null;e&&e.handleQuery()},async handleSetSelectOpeWidth(e){if(!e){this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));return}await this.$nextTick();const t=document.querySelector(`.ui-select__popper--${this.itemFlag}`),n=t&&t.querySelector(".ui-select__ope");n&&(n.style.width=`${t.offsetWidth-2}px`)},handleSelectCheck(e){e?this.modelForm=this.filterOptions.map(t=>t.value):this.modelForm=this.filterOptions.reduce((t,n)=>this.modelForm.includes(n.value)?t:[...t,n.value],[])},checkFilterMethod(e){let t=[];e?t=this.selectOption.filter(n=>n.label.toLowerCase().indexOf(e.toLowerCase())>-1):t=JSON.parse(JSON.stringify(this.selectOption)),this.filterOptions=t}},watch:{modelForm(e){this.$emit("changes",e)},model(e){this.modelForm=e},selectOption(e){this.bigOptions=e.slice(0,200),this.filterOptions=e.slice(0)}}},vr={};var ya=le(ga,ma,va,!1,ba,"31879d0e",null,null);function ba(e){for(let t in vr)this[t]=vr[t]}var Mt=function(){return ya.exports}();Mt.install=e=>{e.component(Mt.name,Mt)};const gr=Mt;var Sa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.showItems,function(r,a){return[n(r.constructor,e._g(e._b({directives:[{name:"permit",rawName:"v-permit",value:{value:r.$attrs.permit||"break"},expression:"{ value: item.$attrs.permit || 'break' }"}],tag:"component",attrs:{size:"mini","btn-type":"mock",type:r.type=="text"?"primary":r.type,icon:r.icon}},"component",e.$attrs,!1),r.$listeners),[e._v(" "+e._s(r.$slots.default[0].text)+" ")])]})],2)},xa=[],Ac="";const Ca={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},yr={};var _a=le(Ca,Sa,xa,!1,wa,"c24a1f4c",null,null);function wa(e){for(let t in yr)this[t]=yr[t]}var Oa=function(){return _a.exports}(),Ea=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},$a=[],Tc="";const Ia={name:"ComOperation",components:{Items:Oa},prop:{type:String,default:"main"},data(){return{isInit:!1,listItems:[]}},computed:{showItems(){return this.listItems.filter(e=>e.$options._componentTag=="el-button")}},mounted(){this.listItems=this.$children},watch:{listItems(e){e.length&&(this.isInit=!0)}}},br={};var Aa=le(Ia,Ea,$a,!1,Ta,"3592f4b8",null,null);function Ta(e){for(let t in br)this[t]=br[t]}var Ft=function(){return Aa.exports}();Ft.install=e=>{e.component(Ft.name,Ft)};const Sr=Ft;var Da=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xr(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Cr={exports:{}};/**!
2
2
  * Sortable 1.10.2
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>