有两个下拉列表,我需要根据B列的下拉值变化改变F列对应行的单元格的下拉列表,有方法可以只监听下拉列表的单元格的值的改变吗,而不是使用valueChanged
let sheet = this.spread.getSheet(0);
let combo = new GC.Spread.Sheets.CellTypes.ComboBox();
let arr = [
{ text: "元", value: 1 },
{ text: "千", value: 1000 },
{ text: "万", value: 10000 },
{ text: "十万", value: 100000 },
{ text: "百万", value: 1000000 },
{ text: "千万", value: 10000000 },
{ text: "亿", value: 100000000 },
];
combo.items(arr);
combo.editorValueType(GC.Spread.Sheets.CellTypes.EditorValueType.value);
for (let i = 0; i < 20; i++) {
sheet.setCellType( i + 1, 1, combo, GC.Spread.Sheets.SheetArea.viewport);
sheet.setCellType( i + 1, 5, combo, GC.Spread.Sheets.SheetArea.viewport);
}
|
|