{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/o_html.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/o_html.vue","mtime":1739760944320},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\nimport Constant from \"@/Constant.js\";\nimport controlHidden from \"@/assets/js/controlHidden.js\";\n// import VueUeditorWrap from 'vue-ueditor-wrap' // ES6 Module\nimport Vue from \"vue\";\nimport VueHtml5Editor from \"vue-html5-editor\";\nVue.use(VueHtml5Editor, {\n // 全局组件名称,使用new VueHtml5Editor(options)时该选项无效\n name: \"vue-html5-editor\",\n // 是否显示模块名称,开启的话会在工具栏的图标后台直接显示名称\n showModuleName: true,\n // 自定义各个图标的class,默认使用的是font-awesome提供的图标\n icons: {\n text: \"fa fa-pencil\",\n color: \"fa fa-paint-brush\",\n font: \"fa fa-font\",\n align: \"fa fa-align-justify\",\n list: \"fa fa-list\",\n link: \"fa fa-chain\",\n unlink: \"fa fa-chain-broken\",\n tabulation: \"fa fa-table\",\n image: \"fa fa-file-image-o\",\n hr: \"fa fa-minus\",\n eraser: \"fa fa-eraser\",\n undo: \"fa-undo fa\",\n \"full-screen\": \"fa fa-arrows-alt\",\n info: \"fa fa-info\"\n },\n // 配置图片模块\n image: {\n // 文件最大体积,单位字节\n sizeLimit: 512 * 1024 * 10,\n // 上传参数,默认把图片转为base64而不上传\n // upload config,default null and convert image to base64\n upload: {\n url: null,\n headers: {},\n params: {},\n fieldName: {}\n },\n // 压缩参数,默认使用localResizeIMG进行压缩,设置为null禁止压缩\n // width和height是文件的最大宽高\n compress: {\n width: 1000,\n height: 600,\n quality: 80\n },\n // 响应数据处理,最终返回图片链接\n uploadHandler: function uploadHandler(responseText) {\n // default accept json data like {ok:false,msg:\"unexpected\"} or {ok:true,data:\"image url\"}\n var json = JSON.parse(responseText);\n if (json.status == 200) {\n return json.data;\n } else {\n alert(json.error);\n }\n }\n },\n // 语言,内建的有英文(en-us)和中文(zh-cn)\n language: \"zh-cn\",\n // 自定义语言\n i18n: {\n \"zh-cn\": {\n align: \"对齐方式\",\n image: \"图片\",\n list: \"列表\",\n link: \"链接\",\n unlink: \"去除链接\",\n table: \"表格\",\n font: \"文字\",\n \"full screen\": \"全屏\",\n text: \"排版\",\n eraser: \"格式清除\",\n info: \"关于\",\n color: \"颜色\",\n \"please enter a url\": \"请输入地址\",\n \"create link\": \"创建链接\",\n bold: \"加粗\",\n italic: \"倾斜\",\n underline: \"下划线\",\n \"strike through\": \"删除线\",\n subscript: \"下标\",\n superscript: \"上标\",\n heading: \"标题\",\n \"font name\": \"字体\",\n \"font size\": \"文字大小\",\n \"left justify\": \"左对齐\",\n \"center justify\": \"居中\",\n \"right justify\": \"右对齐\",\n \"ordered list\": \"有序列表\",\n \"unordered list\": \"无序列表\",\n \"fore color\": \"前景色\",\n \"background color\": \"背景色\",\n \"row count\": \"行数\",\n \"column count\": \"列数\",\n save: \"确定\",\n upload: \"上传\",\n progress: \"进度\",\n unknown: \"未知\",\n \"please wait\": \"请稍等\",\n error: \"错误\",\n abort: \"中断\",\n reset: \"重置\"\n }\n },\n // 隐藏不想要显示出来的模块\n hiddenModules: [],\n // 自定义要显示的模块,并控制顺序\n visibleModules: [\"text\", \"color\", \"font\", \"align\", \"list\", \"link\", \"unlink\", \"tabulation\", \"image\", \"hr\", \"eraser\", \"undo\", \"full-screen\", \"info\"],\n // 扩展模块,具体可以参考examples或查看源码\n // extended modules\n modules: {\n //omit,reference to source code of build-in modules\n }\n});\nexport default {\n name: \"o-html\",\n props: [\"id\"],\n components: {\n // VueUeditorWrap\n },\n computed: {\n field: function field() {\n var formData = this.$parent.findField(this.id);\n if (formData.height) {\n formData.height = formData.height.split(\"px\")[0];\n }\n return formData;\n }\n },\n mounted: function mounted() {\n var _this = this;\n this.$nextTick(function () {\n var that = _this;\n document.getElementById(_this.id).addEventListener(\"click\", function (e) {\n e.stopPropagation;\n var allHtml = document.getElementsByClassName(\"vue-html5-editor\");\n for (var i = 0; i < allHtml.length; i++) {\n allHtml[i].style.zIndex = 1001;\n }\n if (e.target.innerText.indexOf(\"全屏\") > -1) {\n setTimeout(function () {\n var id = that.id + \"_1\";\n var targetDom = document.getElementById(id); //childDom[i].getElementsByClassName('vue-html5-editor')\n if (targetDom) {\n if (that.isFullScrenn) {\n targetDom.style.zIndex = 1001;\n } else {\n targetDom.style.zIndex = 3000;\n }\n }\n }, 100);\n }\n });\n var field = _this.field;\n if (field.textType == \"hidden\" || field.displayType == Constant.PermissionType_HIDDEN) {\n if (field.isHideType) {\n var id = _this.id,\n formShowType = field.formShowType;\n controlHidden({\n id: id,\n field: field,\n formShowType: formShowType\n });\n }\n }\n });\n },\n data: function data() {\n return {\n Constant: Constant,\n isFullScrenn: false\n // myConfig: {\n // // 工具栏\n // toolbars: [\n // [\n // 'undo', //撤销\n // 'redo', //重做\n // 'bold', //加粗\n // 'indent', //首行缩进\n // 'italic', //斜体\n // 'underline', //下划线\n // 'strikethrough', //删除线\n // 'formatmatch', //格式刷\n // 'horizontal', //分隔线\n // 'removeformat', //清除格式\n // 'link', //超链接\n // 'unlink', //取消链接\n // 'inserttable', //插入表格\n // 'insertrow', //前插入行\n // 'insertcol', //前插入列\n // 'mergeright', //右合并单元格\n // 'mergedown', //下合并单元格\n // 'deleterow', //删除行\n // 'deletecol', //删除列\n // 'splittorows', //拆分成行\n // 'splittocols', //拆分成列\n // 'splittocells', //完全拆分单元格\n // 'deletecaption', //删除表格标题\n // 'inserttitle', //插入标题\n // 'mergecells', //合并多个单元格\n // 'deletetable', //删除表格\n // 'fontfamily', //字体\n // 'fontsize', //字号\n // 'simpleupload', //单图上传\n // 'emotion', //表情\n // 'justifyleft', //居左对齐\n // 'justifyright', //居右对齐\n // 'justifycenter', //居中对齐\n // 'justifyjustify', //两端对齐\n // 'forecolor', //字体颜色\n // 'backcolor', //背景色\n // 'insertorderedlist', //有序列表\n // 'insertunorderedlist', //无序列表\n // 'lineheight', //行间距\n // 'edittip ', //编辑提示\n // ],\n // ],\n // // 编辑器不自动被内容撑高\n // autoHeightEnabled: true,\n // // 初始容器高度\n // initialFrameHeight: 240,\n // // 初始容器宽度\n // initialFrameWidth: '100%',\n // // 上传文件接口()\n // serverUrl: 'http://localhost:8088/obpm/api/runtime/upload',\n // // UEditor 资源文件的存放路径,如果你使用的是 vue-cli 生成的项目,通常不需要设置该选项,vue-ueditor-wrap 会自动处理常见的情况,如果需要特殊配置,参考下方的常见问题2\n // UEDITOR_HOME_URL:\n // process.env.NODE_ENV === 'production' ? 'UEditor/' : '/UEditor/',\n // },\n };\n },\n methods: {\n dianji: function dianji() {},\n onChange: function onChange() {\n if (this.field.refreshOnChanged) {\n //判断是否需要刷新\n this.$parent.refresh(this.id);\n }\n },\n updateData: function updateData(event) {\n //console.log(event);\n this.field.value = event;\n }\n }\n};",null]}