|
@@ -19,7 +19,7 @@ export function useResizeTable(refName) {
|
|
|
const dragging = ref(false)
|
|
|
const dragState=ref({})
|
|
|
const dragStateHeight = ref({})
|
|
|
-
|
|
|
+ const haveDraggedSize = ref(false)
|
|
|
const handleMouseMove = _.throttle(function(e,rIndex,cIndex) {
|
|
|
|
|
|
if(isMobile()) return
|
|
@@ -160,6 +160,7 @@ export function useResizeTable(refName) {
|
|
|
|
|
|
|
|
|
function initTableCellsWid(type='init',sceneConfig) {
|
|
|
+ haveDraggedSize.value = false;
|
|
|
if(type=='init'){
|
|
|
const { HeightList,WidthList } = sceneConfig;
|
|
|
|
|
@@ -167,6 +168,7 @@ export function useResizeTable(refName) {
|
|
|
const table = refName.value;
|
|
|
if (table) {
|
|
|
if(HeightList&&WidthList) {
|
|
|
+ haveDraggedSize.value = true;
|
|
|
columnsWArr.value = WidthList.split(',').map(_ =>Number(_));
|
|
|
rowsHArr.value = HeightList.split(',').map(_ =>Number(_));
|
|
|
nextTick(() => {
|
|
@@ -192,6 +194,7 @@ export function useResizeTable(refName) {
|
|
|
}
|
|
|
})
|
|
|
}else if(type === 'change') {
|
|
|
+ haveDraggedSize.value = true;
|
|
|
changeTableCellWidSave()
|
|
|
}
|
|
|
}
|
|
@@ -258,5 +261,6 @@ export function useResizeTable(refName) {
|
|
|
getSize,
|
|
|
postSheetHeightMsg,
|
|
|
SheetFFType,
|
|
|
+ haveDraggedSize,
|
|
|
}
|
|
|
}
|