File tree Expand file tree Collapse file tree
pages/main/workspace/components/Tree Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ function Tree(props: IProps) {
3535 const [ treeData , setTreeData ] = useState < ITreeNode [ ] | undefined > ( ) ;
3636 const [ searchedTreeData , setSearchedTreeData ] = useState < ITreeNode [ ] | null > ( null ) ;
3737
38-
3938 useEffect ( ( ) => {
4039 setTreeData ( initialData ) ;
4140 } , [ initialData ] )
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ export const treeConfig: { [key in TreeNodeType]: ITreeConfigItem } = {
178178 treeNodeType : TreeNodeType . TABLE ,
179179 key : t . name ,
180180 pinned : t . pinned ,
181+ comment : t . comment ,
181182 extraParams : {
182183 ...params . extraParams ,
183184 tableName : t . name
@@ -239,6 +240,7 @@ export const treeConfig: { [key in TreeNodeType]: ITreeConfigItem } = {
239240 key : item . name ,
240241 isLeaf : true ,
241242 columnType : item . columnType ,
243+ comment : item . comment ,
242244 }
243245 } )
244246 r ( tableList ) ;
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export interface IColumn {
6464 numericPrecision : number ;
6565 numericScale : number ;
6666 characterMaximumLength : number ;
67+ comment : string ;
6768}
6869
6970export interface ISchemaParams {
Original file line number Diff line number Diff line change @@ -18,5 +18,5 @@ export interface ITreeNode {
1818 columnType ?: string ; // 列的类型
1919 extraParams ?: IExtraParams ;
2020 pinned ?: boolean ; // 是否置顶
21- comment : string ; // 表列的注释
21+ comment ? : string ; // 表列的注释
2222}
You can’t perform that action at this time.
0 commit comments