"use strict";(self.webpackChunkmy_package_ext=self.webpackChunkmy_package_ext||[]).push([[2434],{53874:function(e,t,n){n.d(t,{Dv:function(){return r},ah:function(){return o},g6:function(){return i},nH:function(){return s},yF:function(){return d},yg:function(){return a}});var o=function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["LowcodeForm","lowcode_form","lowcode_view","LowcodeView"],n=e.$parent,o=n.$options.name;n&&(!o||!t.some((function(e){return-1<o.indexOf(e)})));)(n=n.$parent)&&(o=n.$options.name);return n},i=function e(t){return["low-code-entry","remote-entry","lowcode"].includes(t.$options.name)?t.appName:t.$parent?e(t.$parent):null},r=function(e){var t=window.location.search,n=window.location.hash;if(t=t&&t.includes(e)?t.substring(1):n?n.split("?")[1]:"")for(var o=t.split("&"),i=0;i<o.length;i++){var r=o[i].split("=");if(r[0]==e)return r[1]}return!1},a=function(e){var t;return e?((t=e).startsWith("rgba")||(e.startsWith("#")?t=c(e,1):e.startsWith("rgb")&&(t=e.replace("rgb","rgba").replace(")",", 1)"))),t.replace("1)","0.15)")):"#f4f4f5"},s=function(e){return e?(e=u(e))&&217<e?"#000":"#fff":"#909399"},c=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=parseInt(e.slice(1,3),16),o=parseInt(e.slice(3,5),16);return e=parseInt(e.slice(5,7),16),"rgba(".concat(n,", ").concat(o,", ").concat(e,", ").concat(t,")")},u=function(e){return(e=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/))?.299*parseInt(e[1],10)+.587*parseInt(e[2],10)+.114*parseInt(e[3],10):null},l=[".vxe-table--body-wrapper"],d=function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];l.forEach((function(t){(t=document.querySelectorAll(t))&&t.forEach((function(t){t.style.overflow=e?"auto":"inherit"}))}))}},92434:function(e,t,n){n.r(t),n.d(t,{default:function(){return i}});var o=n(53874),i=(t={name:"demo",props:{value:"",icon:{type:String,default:""},mode:{default:"edit"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},settings:{type:Object,default:function(){}},processDefName:"",fieldName:"",viewId:"",viewCode:""},computed:{localValue:{get:function(){return this.value||""},set:function(e){this.$emit("input",e)}}},mounted:function(){console.log(this.$attrs,"$attrs")},methods:{toCloseDialog:function(){console.log((0,o.ah)(this),"findComponentUpward"),(0,o.ah)(this).Api.openDialog({id:this.viewId,resourceType:this.viewCode,dialog:{isCheckChange:"false",title:"",width:"960px",top:"15vh",modal:!1,mode:"dialog",center:!1},props:{globalConfig:{chooseCallback:function(e){}}}})},showMessage:function(){this.$message("我是扩展组件里的方法！")}}},(0,n(51900).Z)(t,(function(){var e=this,t=e._self._c;return t("div",[t("div",[e._v("图标: "),t("pm-icon",{attrs:{value:e.icon}})],1),e._v(" "),t("div",[e._v("绑定变量:"+e._s(e.settings.test))]),e._v(" "),t("div",[e._v("流程定义名称:"+e._s(e.processDefName))]),e._v(" "),t("div",[e._v("字段:"+e._s(e.fieldName))]),e._v(" "),t("div",[e._v("资源id:"+e._s(e.viewId))]),e._v(" "),t("div",[e._v("viewCode:"+e._s(e.viewCode))]),e._v("\n  调用低开API"),t("el-button",{attrs:{type:"primary"},on:{click:e.toCloseDialog}},[e._v("打开视图弹窗")])],1)}),[],!1,null,null,null).exports)},51900:function(e,t,n){function o(e,t,n,o,i,r,a,s){var c,u,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c&&(l.functional?(l._injectStyles=c,u=l.render,l.render=function(e,t){return c.call(t),u(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:l}}n.d(t,{Z:function(){return o}})}}]);