@@ -10,7 +10,7 @@ import { UICompBuilder, withDefault } from "../generators";
10
10
import { CommonNameConfig , NameConfig , withExposingConfigs } from "../generators/withExposing" ;
11
11
import { formDataChildren , FormDataPropertyView } from "./formComp/formDataConstants" ;
12
12
import { styleControl } from "comps/controls/styleControl" ;
13
- import { LabelStyle , RatingStyle , RatingStyleType } from "comps/controls/styleControlConstants" ;
13
+ import { ComponentStyle , LabelStyle , RatingStyle , RatingStyleType } from "comps/controls/styleControlConstants" ;
14
14
import { migrateOldData } from "comps/generators/simpleGenerators" ;
15
15
import { disabledPropertyView , hiddenPropertyView } from "comps/utils/propertyUtils" ;
16
16
import { trans } from "i18n" ;
@@ -45,6 +45,7 @@ const RatingBasicComp = (function () {
45
45
onEvent : eventHandlerControl ( EventOptions ) ,
46
46
style : migrateOldData ( styleControl ( RatingStyle ) , fixOldData ) ,
47
47
labelStyle : styleControl ( LabelStyle . filter ( ( style ) => [ 'accent' , 'validate' ] . includes ( style . name ) === false ) ) ,
48
+ field :styleControl ( ComponentStyle ) ,
48
49
...formDataChildren ,
49
50
} ;
50
51
return new UICompBuilder ( childrenMap , ( props ) => {
@@ -66,6 +67,7 @@ const RatingBasicComp = (function () {
66
67
return props . label ( {
67
68
style : props . style ,
68
69
labelStyle : props . labelStyle ,
70
+ field :props . field ,
69
71
children : (
70
72
< RateStyled
71
73
count = { props . max }
@@ -119,6 +121,9 @@ const RatingBasicComp = (function () {
119
121
< Section name = { sectionNames . labelStyle } >
120
122
{ children . labelStyle . getPropertyView ( ) }
121
123
</ Section >
124
+ < Section name = { sectionNames . field } >
125
+ { children . field . getPropertyView ( ) }
126
+ </ Section >
122
127
</ >
123
128
) }
124
129
</ >
0 commit comments