@@ -124,25 +124,25 @@ pub fn parse_style_properties(properties: &Vec<(String, Property)>) -> DeclsAndV
124
124
// 基础样式
125
125
"alignContent" => {
126
126
final_properties. push ( StyleValueType :: FlexAlign ( FlexAlign :: from ( (
127
- id . to_string ( ) ,
127
+ property_name . to_string ( ) ,
128
128
value,
129
129
) ) ) ) ;
130
130
}
131
131
"justifyContent" => {
132
132
final_properties. push ( StyleValueType :: FlexAlign ( FlexAlign :: from ( (
133
- id . to_string ( ) ,
133
+ property_name . to_string ( ) ,
134
134
value,
135
135
) ) ) ) ;
136
136
}
137
137
"alignItems" => {
138
138
final_properties. push ( StyleValueType :: AlignItems ( ItemAlign :: from ( (
139
- id . to_string ( ) ,
139
+ property_name . to_string ( ) ,
140
140
value,
141
141
) ) ) ) ;
142
142
}
143
143
"alignSelf" => {
144
144
final_properties. push ( StyleValueType :: AlignItems ( ItemAlign :: from ( (
145
- id . to_string ( ) ,
145
+ property_name . to_string ( ) ,
146
146
value,
147
147
) ) ) ) ;
148
148
}
@@ -151,43 +151,43 @@ pub fn parse_style_properties(properties: &Vec<(String, Property)>) -> DeclsAndV
151
151
}
152
152
"flexBasis" => {
153
153
final_properties. push ( StyleValueType :: FlexBasis ( FlexBasis :: from ( (
154
- id . to_string ( ) ,
154
+ property_name . to_string ( ) ,
155
155
value,
156
156
) ) ) ) ;
157
157
}
158
158
"flexDirection" => {
159
159
final_properties. push ( StyleValueType :: FlexDirection ( FlexDirection :: from ( (
160
- id . to_string ( ) ,
160
+ property_name . to_string ( ) ,
161
161
value,
162
162
) ) ) ) ;
163
163
}
164
164
"flexGrow" => {
165
165
final_properties. push ( StyleValueType :: NumberProperty ( NumberProperty :: from ( (
166
- id . to_string ( ) ,
166
+ property_name . to_string ( ) ,
167
167
value,
168
168
) ) ) ) ;
169
169
}
170
170
"flexShrink" => {
171
171
final_properties. push ( StyleValueType :: NumberProperty ( NumberProperty :: from ( (
172
- id . to_string ( ) ,
172
+ property_name . to_string ( ) ,
173
173
value,
174
174
) ) ) ) ;
175
175
}
176
176
"flexWrap" => {
177
177
final_properties. push ( StyleValueType :: FlexWrap ( FlexWrap :: from ( (
178
- id . to_string ( ) ,
178
+ property_name . to_string ( ) ,
179
179
value,
180
180
) ) ) ) ;
181
181
}
182
182
"aspectRatio" => {
183
183
final_properties. push ( StyleValueType :: AspectRatio ( AspectRatio :: from ( (
184
- id . to_string ( ) ,
184
+ property_name . to_string ( ) ,
185
185
value,
186
186
) ) ) ) ;
187
187
}
188
188
"display" => {
189
189
final_properties. push ( StyleValueType :: Display ( Display :: from ( (
190
- id . to_string ( ) ,
190
+ property_name . to_string ( ) ,
191
191
value,
192
192
) ) ) ) ;
193
193
}
0 commit comments