{"remainingRequest":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\artfess-module\\src\\components\\HtTree.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\artfess-module\\src\\components\\HtTree.vue","mtime":1675232038590},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.number.constructor\";\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//\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 \"@/utils.js\";\nimport service from \"@/service.js\";\nimport HtFieldTail from \"@/components/HtFieldTail.vue\";\nimport { Promise } from \"q\";\nimport { setTimeout } from \"timers\";\nimport Locale from \"@/mixins/locale\";\nexport default {\n name: \"ht-tree\",\n mixins: [Locale],\n props: {\n data: Array,\n load: {\n type: Function\n },\n lazy: {\n type: Boolean,\n default: false\n },\n accordion: {\n type: Boolean,\n default: false\n },\n showCheckbox: {\n type: Boolean,\n default: false\n },\n defaultExpandAll: {\n type: Boolean,\n default: false\n },\n props: {\n type: Object,\n default: function _default() {\n return {\n children: \"children\",\n label: \"label\"\n };\n }\n },\n supportFilter: {\n type: Boolean,\n default: false\n },\n showMoreButton: {\n type: Boolean,\n default: false\n },\n iconClass: {\n type: String\n },\n nodeKey: {\n type: String\n },\n defaultExpandedKeys: {\n type: Array\n },\n highlightCurrent: {\n type: Boolean,\n default: false\n },\n renderAfterExpand: {\n type: Boolean,\n default: true\n },\n renderContent: {\n type: Function\n },\n checkOnClickNode: {\n type: Boolean,\n default: false\n },\n autoExpandParent: {\n type: Boolean,\n default: true\n },\n checkStrictly: {\n type: Boolean,\n default: false\n },\n currentNodeKey: {\n type: [String, Number]\n },\n indent: {\n type: Number,\n default: 16\n },\n draggable: {\n type: Boolean,\n default: false\n },\n allowDrag: {\n type: Function\n },\n allowDrop: {\n type: Function\n },\n expandOnClickNode: {\n type: Boolean,\n default: true\n },\n defaultCheckedKeys: {\n type: Array,\n default: function _default() {\n return [];\n }\n }\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.elTree.filter(val);\n },\n defaultCheckedKeys: function defaultCheckedKeys(val) {\n this.$refs.elTree.setCheckedKeys(val);\n }\n },\n methods: {\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data[this.props.label].indexOf(value) !== -1;\n },\n handleNodeClick: function handleNodeClick(data, node, nodeComponent) {\n this.$emit(\"node-click\", data, node, nodeComponent);\n },\n nodeContextmenu: function nodeContextmenu(event, data, node, nodeComponent) {\n this.$emit(\"node-contextmenu\", event, data, node, nodeComponent);\n },\n checkChange: function checkChange(data, isChecked, hasChildChecked) {\n this.$emit(\"check-change\", data, isChecked, hasChildChecked);\n },\n check: function check(data, checkedObj) {\n this.$emit(\"check\", data, checkedObj);\n },\n currentChange: function currentChange(data, node) {\n this.$emit(\"current-change\", data, node);\n },\n nodeExpand: function nodeExpand(data, node, nodeComponent) {\n this.$emit(\"node-expand\", data, node, nodeComponent);\n },\n nodeCollapse: function nodeCollapse(data, node, nodeComponent) {\n this.$emit(\"node-collapse\", data, node, nodeComponent);\n },\n nodeDragStart: function nodeDragStart(node, event) {\n this.$emit(\"node-drag-start\", node, event);\n },\n nodeDragEnter: function nodeDragEnter(dragNode, enterNode, event) {\n this.$emit(\"node-drag-enter\", dragNode, enterNode, event);\n },\n nodeDragLeave: function nodeDragLeave(dragNode, enterNode, event) {\n this.$emit(\"node-drag-leave\", dragNode, enterNode, event);\n },\n nodeDragOver: function nodeDragOver(dragNode, enterNode, event) {\n this.$emit(\"node-drag-over\", dragNode, enterNode, event);\n },\n nodeDragEnd: function nodeDragEnd(dragNode, endNode, position, event) {\n this.$emit(\"node-drag-end\", dragNode, endNode, position, event);\n },\n nodeDrop: function nodeDrop(dragNode, endNode, position, event) {\n this.$emit(\"node-drop\", dragNode, endNode, position, event);\n },\n // 树状菜单的全部展开和收起\n handleExpandCollapse: function handleExpandCollapse() {\n this.isExpand = !this.isExpand;\n var elTree = this.$refs.elTree;\n\n for (var i = 0; i < elTree.store._getAllNodes().length; i++) {\n elTree.store._getAllNodes()[i].expanded = this.isExpand;\n }\n },\n refresh: function refresh() {\n var _this = this;\n\n this.loading = true;\n this.$emit(\"refresh\", function () {\n _this.loading = false;\n _this.isExpand = _this.defaultExpandAll;\n });\n setTimeout(function () {\n _this.loading = false;\n _this.isExpand = _this.defaultExpandAll;\n }, 5000);\n }\n },\n data: function data() {\n return {\n filterText: \"\",\n isExpand: this.defaultExpandAll,\n isIeExplorer: false,\n loading: false,\n defaultProps: {\n children: \"children\",\n label: \"label\"\n }\n };\n },\n mounted: function mounted() {\n if (!!window.ActiveXObject || \"ActiveXObject\" in window) {\n this.isIeExplorer = true;\n }\n }\n};",null]}