@@ -37,6 +37,12 @@ export function initSheet(container,options={},sheetInfo={},limit,callbackItems)
},0)
}
},
+ cellUpdateBefore:()=>{
+ if(limit.disabled){
+ // 不可编辑
+ return false
+ }
+ },
// rangeCopyBefore:(range,data)=>{
// // 不触发
// console.log(range,data,'range,data','rangeCopyBefore');
@@ -627,6 +627,9 @@ export default {
if(!value){
cell.DataType = 3;
cell.ShowValue = '';
+ if(!this.disabled && this.hasInit){
+ this.$emit("autoSave")
return