{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\selector\\EipBoSelector.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\selector\\EipBoSelector.vue","mtime":1675071992225},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport utils from \"@/hotent-ui-util.js\";\nimport { setTimeout } from \"timers\";\n\nvar eipBoDialog = function eipBoDialog() {\n  return import(\"@/components/dialog/EipBoDialog.vue\");\n};\n\nexport default {\n  name: \"eip-bo-selector\",\n  props: {\n    validate: [String, Object],\n    value: [String, Object, Array],\n    name: String,\n    placeholder: {\n      type: String,\n      default: \"请输入内容\"\n    },\n    permission: {\n      type: String,\n      default: \"w\",\n      validator: function validator(value) {\n        return [\"b\", \"w\", \"r\", \"n\"].indexOf(value) !== -1;\n      }\n    },\n    single: {\n      type: Boolean,\n      default: false\n    },\n    config: Object,\n    data: {\n      type: Array,\n      default: function _default() {\n        return [];\n      }\n    },\n    appendToBody: {\n      type: Boolean,\n      default: false\n    }\n  },\n  components: {\n    eipBoDialog: eipBoDialog\n  },\n  data: function data() {\n    return {\n      inputName: null,\n      inputSuffixHeight: 30,\n      description: \"\",\n      selectors: [],\n      dialogVisible: false,\n      currentDemension: null\n    };\n  },\n  computed: {\n    inputWriteable: function inputWriteable() {\n      return utils.getWriteable(this.permission);\n    },\n    inputValidate: function inputValidate() {\n      return utils.addRequiredOrNot(this.permission, this.validate, this);\n    }\n  },\n  watch: {\n    // 当所选择的数据发生变化时，同步到v-model中\n    selectors: function selectors(newVal) {\n      if (newVal && newVal.length >= 0 && newVal[0] && newVal[0].description) {\n        this.description = newVal[0].description;\n      } else {\n        this.description = \"\";\n      }\n    }\n  },\n  mounted: function mounted() {// 组件第一次挂载时，同步value到当前所选数据中\n  },\n  created: function created() {\n    this.inputName = this.name ? this.name : utils.getName();\n    this.$validator = this.$root.$validator;\n  },\n  methods: {\n    showDialog: function showDialog() {\n      if (!this.inputWriteable) {\n        return;\n      }\n\n      this.$refs.eipBoDialog.showDialog(this.selectors);\n    },\n    handleClose: function handleClose(done) {\n      this.$refs.eipBoDialog.handleClose();\n      done && done();\n    },\n    handleDialogSure: function handleDialogSure(data) {\n      this.selectors = data;\n      this.$emit(\"input\", this.selectors);\n      this.handleClose();\n    },\n    handleDialogCancel: function handleDialogCancel() {\n      this.handleClose();\n    },\n    handleRemove: function handleRemove(item) {\n      this.selectors.remove(item);\n    },\n    clear: function clear() {\n      this.selectors = [];\n    },\n    // 更新当前输入框的高度来适配已选数据的高度\n    calacInputSuffixHeight: function calacInputSuffixHeight() {\n      if (!this.$refs.tagSpans) return;\n\n      if (this.$refs.tagSpans.offsetHeight) {\n        this.inputSuffixHeight = this.$refs.tagSpans.offsetHeight + 5;\n      } else {\n        this.inputSuffixHeight = 30;\n      }\n    }\n  }\n};",null]}