Commit 9f249603d0877aee3e5d69d7a43493e932881eff
1 parent
1e175649
update Input style
Showing
2 changed files
with
20 additions
and
0 deletions
Show diff stats
examples/routers/input.vue
@@ -129,7 +129,11 @@ | @@ -129,7 +129,11 @@ | ||
129 | <Icon type="ios-aperture" slot="prefix" /> | 129 | <Icon type="ios-aperture" slot="prefix" /> |
130 | </Input> | 130 | </Input> |
131 | <br><br><br><br> | 131 | <br><br><br><br> |
132 | + <Input v-model="value" search enter-button style="width: 300px" @on-search="hs" size="small" /> | ||
133 | + <br> | ||
132 | <Input v-model="value" search enter-button style="width: 300px" @on-search="hs" /> | 134 | <Input v-model="value" search enter-button style="width: 300px" @on-search="hs" /> |
135 | + <br> | ||
136 | + <Input v-model="value" search enter-button style="width: 300px" @on-search="hs" size="large" /> | ||
133 | <br><br> | 137 | <br><br> |
134 | <Input v-model="value" search style="width: 300px" @on-search="hs" /> | 138 | <Input v-model="value" search style="width: 300px" @on-search="hs" /> |
135 | <br><br> | 139 | <br><br> |
src/styles/components/input.less
@@ -113,6 +113,10 @@ | @@ -113,6 +113,10 @@ | ||
113 | position: relative; | 113 | position: relative; |
114 | z-index: 2; | 114 | z-index: 2; |
115 | 115 | ||
116 | + i{ | ||
117 | + font-size: 16px; | ||
118 | + } | ||
119 | + | ||
116 | &:hover{ | 120 | &:hover{ |
117 | background: tint(@primary-color, 20%) !important; | 121 | background: tint(@primary-color, 20%) !important; |
118 | border-color: tint(@primary-color, 20%) !important; | 122 | border-color: tint(@primary-color, 20%) !important; |
@@ -141,6 +145,18 @@ | @@ -141,6 +145,18 @@ | ||
141 | background: inherit; | 145 | background: inherit; |
142 | } | 146 | } |
143 | } | 147 | } |
148 | + &-wrapper-small &-search{ | ||
149 | + padding: 0 12px !important; | ||
150 | + i{ | ||
151 | + font-size: 14px; | ||
152 | + } | ||
153 | + } | ||
154 | + &-wrapper-large &-search{ | ||
155 | + padding: 0 20px !important; | ||
156 | + i{ | ||
157 | + font-size: 18px; | ||
158 | + } | ||
159 | + } | ||
144 | &-with-search{ | 160 | &-with-search{ |
145 | &:hover{ | 161 | &:hover{ |
146 | .@{input-prefix-cls} { | 162 | .@{input-prefix-cls} { |