File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
packages/drip-table-generator Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " drip-table-generator" ,
3- "version" : " 3.2.1-alpha.15 " ,
3+ "version" : " 3.2.1-alpha.16 " ,
44 "description" : " A visualization tool for generating schema of drip-table." ,
55 "main" : " dist/index.min.js" ,
66 "module" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -256,6 +256,8 @@ export interface DripTableGeneratorProps<
256256 */
257257 tableTools ?: ( 'config' | 'subtable' ) [ ] ;
258258 columnTools ?: ( 'config' | 'copy' | 'more' | 'delete' ) [ ] ;
259+ checkedTableId ?: string ;
260+ checkedColumnId ?: string ;
259261 /**
260262 * 自定义列添加面板
261263 */
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ const generateStates = <
3737RecordType extends DataSourceTypeAbbr < NonNullable < ExtraOptions [ 'SubtableDataSourceKey' ] > > ,
3838ExtraOptions extends Partial < DripTableExtraOptions > = never ,
3939> ( props : DripTableGeneratorProps < RecordType , ExtraOptions > ) : DripTableGeneratorStates => ( {
40- currentTableID : void 0 ,
40+ currentTableID : props . checkedTableId ,
41+ currentColumnID : props . checkedColumnId ,
4142 previewDataSource : [ ...props . dataSource || [ ] ] ,
4243 mode : props . defaultMode ?? 'edit' ,
4344 } ) ;
You can’t perform that action at this time.
0 commit comments