|
|
@@ -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)
|
|
|
}
|