@@ -7,7 +7,7 @@ import { useEffect, useState } from "react";
7
7
import styled from "styled-components" ;
8
8
import ReactResizeDetector from "react-resize-detector" ;
9
9
import { StyleConfigType , styleControl } from "comps/controls/styleControl" ;
10
- import { LabelStyle , TreeStyle } from "comps/controls/styleControlConstants" ;
10
+ import { ComponentStyle , LabelStyle , TreeStyle } from "comps/controls/styleControlConstants" ;
11
11
import { LabelControl } from "comps/controls/labelControl" ;
12
12
import { withDefault } from "comps/generators" ;
13
13
import { dropdownControl } from "comps/controls/dropdownControl" ;
@@ -77,7 +77,8 @@ const childrenMap = {
77
77
// TODO: more event
78
78
onEvent : SelectEventHandlerControl ,
79
79
style : styleControl ( TreeStyle ) ,
80
- labelStyle : styleControl ( LabelStyle . filter ( ( style ) => [ 'accent' , 'validate' ] . includes ( style . name ) === false ) )
80
+ labelStyle : styleControl ( LabelStyle . filter ( ( style ) => [ 'accent' , 'validate' ] . includes ( style . name ) === false ) ) ,
81
+ field :styleControl ( ComponentStyle )
81
82
} ;
82
83
83
84
const TreeCompView = ( props : RecordConstructorToView < typeof childrenMap > ) => {
@@ -98,6 +99,7 @@ const TreeCompView = (props: RecordConstructorToView<typeof childrenMap>) => {
98
99
...selectInputValidate ( props ) ,
99
100
style,
100
101
labelStyle,
102
+ field :props . field ,
101
103
children : (
102
104
< ReactResizeDetector onResize = { ( w , h ) => setHeight ( h ) } >
103
105
< Container { ...style } >
@@ -184,6 +186,7 @@ let TreeBasicComp = (function () {
184
186
< >
185
187
< Section name = { sectionNames . style } > { children . style . getPropertyView ( ) } </ Section >
186
188
< Section name = { sectionNames . labelStyle } > { children . labelStyle . getPropertyView ( ) } </ Section >
189
+ < Section name = { sectionNames . field } > { children . field . getPropertyView ( ) } </ Section >
187
190
</ >
188
191
) }
189
192
</ >
0 commit comments