mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 表格单元格内输入文字时,表格数据更新异常(#37)
This commit is contained in:
parent
f4e64cec73
commit
8b15e02a17
@ -505,7 +505,7 @@ export default defineComponent({
|
||||
|
||||
// 单元格文字输入时更新表格数据
|
||||
const handleInput = debounce(function(value, rowIndex, colIndex) {
|
||||
tableCells.value = tableCells.value[rowIndex][colIndex].text = value
|
||||
tableCells.value[rowIndex][colIndex].text = value
|
||||
emit('change', tableCells.value)
|
||||
}, 300, { trailing: true })
|
||||
|
||||
|
@ -151,6 +151,7 @@ export default defineComponent({
|
||||
|
||||
// 更新表格内容数据
|
||||
const updateTableCells = (data: TableCell[][]) => {
|
||||
console.log(data)
|
||||
store.commit(MutationTypes.UPDATE_ELEMENT, {
|
||||
id: props.elementInfo.id,
|
||||
props: { data },
|
||||
|
Loading…
x
Reference in New Issue
Block a user