Skip to content

Commit f1196aa

Browse files
authored
Merge pull request #3 from NervJS/azu
feat: 增加对导出css样式的属性key命名区分、更多的属性支持
2 parents 2666e3b + 7fe9036 commit f1196aa

21 files changed

+1392
-474
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"rust-analyzer.showUnlinkedFileNotification": false
3+
}

__test__/fixure/Mod.scss

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,44 @@
166166
padding-top:16px;
167167
padding-bottom:16px;
168168
}
169+
.normal {
170+
height: 100px;
171+
width: 200px;
172+
min-height: 100px;
173+
max-height: 200px;
174+
min-width: 100px;
175+
max-width: 200px;
176+
margin: 0 20px;
177+
padding: 30px 10px;
178+
179+
display: flex;
180+
flex-direction: column;
181+
align-items: flex-end;
182+
justify-content: flex-end;
183+
align-self: center;
184+
185+
flex: 2 1 100px;
186+
flex-basis: 200px;
187+
188+
background-image: linear-gradient(30deg, #f00, #0ff, #00f);
189+
background-size: 100%;
190+
background-color: #0ff00f;
191+
background-position: 30% bottom;
192+
193+
transform: translate(20px, 30px) rotate(30deg);
194+
195+
font-size: 100px;
196+
font-weight: bold;
197+
color: #0ff00f;
198+
text-align: center;
199+
200+
border-radius: 50%;
201+
border-width: 200px;
202+
border-top-width: 100px;
203+
border-right-width: 101px;
204+
border-bottom-width: 102px;
205+
border-left-width: 103px;
206+
border-top-color: #00f;
207+
208+
border-top-style: dashed;
209+
}

__test__/fixure/mod.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default class Mod extends React.Component {
7979
src='//img14.360buyimg.com/img/jfs/t1/206378/24/25778/195/64eca527F378f17a2/c1623681708609fd.png'
8080
></img>
8181
</div>
82+
<div className='normal'></div>
8283
</div>
8384
)
8485
}

0 commit comments

Comments
 (0)