1金币
使用
showDateRange=true 保存后回显日期#N/A
let style = new GC.Spread.Sheets.Style();
style.cellButtons = [{
imageType: GC.Spread.Sheets.ButtonImageType.dropdown,
command: "openDateTimePicker",
useButtonStyle: false,
}];
style.dropDowns = [
{
type: GC.Spread.Sheets.DropDownType.dateTimePicker,
option: {
showTime: false,
showDateRange: true
},
}
];
style.formatter = '=IF(ISBLANK(@), "", TEXT(@.start, "yyyy/MM/dd")&"-"&TEXT(@.end, "yyyy/MM/dd"))';
sheet.setStyle(row, 13, style);
|
最佳答案
查看完整内容
您好,把saveAsView置为false即可。
|