本帖最后由 tony1109669192 于 2021-3-26 11:06 编辑
我通过接口插入table时,怎么弹不出这个窗口?
- var tableStyle = new GC.Spread.Sheets.Tables.TableTheme();
- var thinBorder = new GC.Spread.Sheets.LineBorder(
- 'black',
- GC.Spread.Sheets.LineStyle.thin
- );
- tableStyle.wholeTableStyle(
- new GC.Spread.Sheets.Tables.TableStyle(
- '',
- '',
- '',
- thinBorder,
- thinBorder,
- thinBorder,
- thinBorder,
- thinBorder,
- thinBorder
- )
- );
- if (!table) {
- table = activeSheet.tables.add(
- 'table_0' ,
- selection.row,
- selection.col,
- selection.rowCount,
- selection.colCount,
- tableStyle
- );
- }
- table.filterButtonVisible(0, false);
- table.autoGenerateColumns(false);
- table.filterButtonVisible(false);
- const tableColumns:Array<any> = [];
- $vm.tableFields.map((item:IStdReportTemplateTableFieldData) => {
- const tableColumn1 = new this.spreadNS.Tables.TableColumn();
- tableColumn1.name(item.fieldName);
- tableColumn1.dataField(item.fieldName);
- tableColumns.push(tableColumn1);
- });
- table.bindColumns(tableColumns);
- table.bindingPath(bindingPathValue);
- table.allowAutoExpand(false);
- table.expandBoundRows(true);
- activeSheet.options.allowCellOverflow = false;
复制代码
|
|