Ver código fonte

取消公式引用

duy 1 mês atrás
pai
commit
7a2e2e25c7
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7 1
      src/global/components/table-form/index.vue

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

@@ -140,6 +140,8 @@ const getExcelHtml = async () => {
                 emit('render', form)
             },
             onRight: (event, KeyName) => {
+               
+                
                 onRightClick(pkeyId, event, KeyName, pid)
             },
             onLeftClick: (key) => {
@@ -207,7 +209,11 @@ const onRightClick = async (pkeyId, event, KeyName, pid) => {
         const specialDom = await HTableForm.getQuerySelector(KeyName, pid)
         const startPos = specialDom?.selectionStart || 0
         const endPos = specialDom?.selectionEnd || 0
-        emit('rightTap', { event, KeyName, startPos, endPos, pkeyId, pid })
+        console.log(specialDom, 'specialDom')
+        const clearFormula = specialDom.getAttribute('clearFormula') || null
+        const clearautomatic = specialDom.getAttribute('clearautomatic') || null
+      
+        emit('rightTap', { event, KeyName, startPos, endPos, pkeyId, pid, clearFormula, clearautomatic })
     } catch (error) {
         console.error('Error in onRightClick:', error)
     }