{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\cqlt-fvue\\src\\mixins\\tableMixin.js","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\mixins\\tableMixin.js","mtime":1677645393648},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["/*\r\n * @Description: \r\n * @Author: @liulin\r\n * @Date: 2023-01-30 16:21:12\r\n * @LastEditors: Do not edit\r\n * @LastEditTime: 2023-02-28 16:32:05\r\n */\nexport var TableMixin = {\n data: function data() {\n return {\n tableMaxHeight: 600,\n showMore: false\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.calcTableHeight();\n this.$root.$on(\"resize\", function () {\n _this.calcTableHeight(500);\n });\n },\n methods: {\n calcTableHeight: function calcTableHeight(delay) {\n var _this2 = this;\n\n // 动态计算表格的高度,自适应当前容器\n setTimeout(function () {\n if (!_this2.$refs.contentPanel) {\n return;\n }\n\n var contentPanelHeight = _this2.$refs.contentPanel.clientHeight || _this2.$refs.contentPanel.$el.clientHeight;\n var paginationPanelHeight = _this2.$refs.paginationPanel.$el.clientHeight ? 32 : 0;\n var btnPanelHeight = 0;\n\n if (_this2.$refs.btnPanel.clientHeight) {\n btnPanelHeight = _this2.$refs.btnPanel.clientHeight;\n } else if (_this2.$refs.btnPanel.$el && _this2.$refs.btnPanel.$el.clientHeight) {\n btnPanelHeight = _this2.$refs.btnPanel.$el.clientHeight;\n }\n\n console.log(contentPanelHeight, btnPanelHeight, paginationPanelHeight);\n _this2.tableMaxHeight = contentPanelHeight - btnPanelHeight - paginationPanelHeight - (btnPanelHeight ? 40 : 0);\n }, delay || 0);\n },\n handleDbClick: function handleDbClick(row, column, event) {\n this.handleUpdate(row);\n },\n commonPageClick: function commonPageClick() {\n if (this.showMore) {\n this.showMore = false;\n }\n }\n }\n};",null]}