mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[Improvement] SubmitBar: add left slot (#345)
* fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style * [Doc] add toast english ducoment * [bugfix] Search box-sizing wrong * [Doc] update vant-demo respo * [Doc] translate theme & demo pages * [Doc] add Internationalization document * [bugfix] remove unnecessary props * [fix] optimize clickoutside * [new feature] optimize find-parent * [new feature]: change document title accordinng to language * [new feature] Pagination code review * [improvement] adjust icon-font unicode * [improvement] Icon spinner color inherit * [improvement] icon default width * [bugfix] DateTimePicker validate date props * [bugfix] Tab item text ellipsis * [improvement] optimize single line ellipsis * [Improvement] optimzie staticClass * [Improvement] Button: use sfc instread of jsx * [Improvement] update actionsheet close icon style * fix: yarn.lock * fix: icon test cases * [bugfix] errors during ssr * [Improvement] SubmitBar add left slot
This commit is contained in:
@@ -8,7 +8,6 @@ $van-checkbox-size: 20px;
|
||||
.van-icon-success {
|
||||
color: $white;
|
||||
display: block;
|
||||
line-height: 1;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
@@ -23,11 +22,15 @@ $van-checkbox-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
&__input,
|
||||
&__label {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&__input {
|
||||
position: relative;
|
||||
height: $van-checkbox-size;
|
||||
margin-right: 15px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
&__control {
|
||||
@@ -36,13 +39,12 @@ $van-checkbox-size: 20px;
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
margin: 0;
|
||||
width: $van-checkbox-size;
|
||||
height: $van-checkbox-size;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&__label {
|
||||
display: block;
|
||||
margin-left: 37px;
|
||||
margin-left: 10px;
|
||||
line-height: $van-checkbox-size;
|
||||
}
|
||||
|
||||
|
@@ -5,26 +5,30 @@ $van-radio-size: 20px;
|
||||
.van-radio {
|
||||
overflow: hidden;
|
||||
|
||||
&__input,
|
||||
&__label {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&__input {
|
||||
position: relative;
|
||||
height: $van-radio-size;
|
||||
float: left;
|
||||
}
|
||||
|
||||
&__control {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: $van-radio-size;
|
||||
height: $van-radio-size;
|
||||
opacity: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&__label {
|
||||
line-height: $van-radio-size;
|
||||
display: block;
|
||||
margin-left: 37px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.van-icon {
|
||||
|
Reference in New Issue
Block a user