Kaynağa Gözat

1.优化测算表全屏功能、表格操作体验

GouGengquan 4 ay önce
ebeveyn
işleme
c3712f5946

+ 0 - 1
src/directives/zoomMax.js

@@ -1,7 +1,6 @@
 // directives/zoomMax.js
 export default {
   mounted(el, binding) {
-    console.log('Directive mounted', el, binding);
     // 指令逻辑
     const domList = [
       {

+ 5 - 3
src/views/assets/workbench/eqpt/calculate/importInfo.vue

@@ -106,7 +106,9 @@
         :loading="loading"
         :column-config="{ resizable: true, maxFixedSize: 0 }"
         :edit-config="editConfig"
+        :mouse-config="{selected: true}"
         :scroll-y="{ enabled: true, gt: 0 }"
+        :keyboard-config="{isArrow: true, isDel: true, isEnter: true, isTab: true, isEdit: true}"
       >
         <vxe-column field="sortId" title="序号" width="160" :edit-render="{ name: 'VxeNumberInput', props: { controls: false } }"></vxe-column>
         <vxe-column field="equipmentName" title="设备名称" width="160" :edit-render="{ name: 'VxeInput' }">
@@ -594,7 +596,7 @@
         show-header-overflow
         show-footer-overflow
         ref="importedTableRef"
-        height="100%"
+        height="90%"
         size="mini"
         :loading="loading"
         :column-config="{ resizable: true }"
@@ -766,7 +768,7 @@
         show-header-overflow
         show-footer-overflow
         ref="nonStandardTableRef"
-        height="100%"
+        height="90%"
         size="mini"
         :loading="loading"
         :column-config="{ resizable: true }"
@@ -1053,7 +1055,7 @@ export default {
   data() {
     // 虚拟表格配置
     const editConfig: VxeTablePropTypes.EditConfig = {
-      trigger: 'click',
+      trigger: 'dblclick',
       mode: 'cell',
     }
     // 日期选择组件