فهرست منبع

公式参数修改

duy 1 هفته پیش
والد
کامیت
04fcb5a92d
1فایلهای تغییر یافته به همراه24 افزوده شده و 1 حذف شده
  1. 24 1
      src/global/components/table-form/index.vue

+ 24 - 1
src/global/components/table-form/index.vue

@@ -313,6 +313,7 @@ const getFormData = () => {
     return excelForm.value
 }
 
+
 const setFormData = (data) => {
     excelForm.value = data
     tableFormVM.value?.setFormData(excelForm.value)
@@ -339,7 +340,23 @@ const unmountHtml = () => {
         tableFormApp.value?.unmount()
     }
 }
-
+const getCetCopyKeyList = ()=>{
+    return checkKeyList.value
+}
+//清除所有选中的单元格
+
+const clearCheckKeyList = async ()=>{
+ 
+    
+    // 等待DOM更新
+    await nextTick()
+    
+    checkKeyList.value.forEach(item => {
+        HTableForm.setCheckKeyStyle(item['key'], activeKey.value, true)
+    })
+    checkKeyList.value = []
+    delStoreValue('TableFormCopyKeys')
+}
 // 暴露方法
 defineExpose({
     getFormData,
@@ -351,6 +368,8 @@ defineExpose({
     setIsCtrlKey,
     setCopyKeyList,
     setPasteKeyList,
+    getCetCopyKeyList,
+    clearCheckKeyList,
 })
 </script>
 
@@ -515,4 +534,8 @@ defineExpose({
         box-shadow: 0 0 0 2px #1ECC95 inset !important;
     }
 }
+.hc-upload-table-form .el-upload .hc-table-form-img{
+    width: 100%;
+    height: 100%;
+}
 </style>