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 | 129 | <Icon type="ios-aperture" slot="prefix" /> |
130 | 130 | </Input> |
131 | 131 | <br><br><br><br> |
132 | + <Input v-model="value" search enter-button style="width: 300px" @on-search="hs" size="small" /> | |
133 | + <br> | |
132 | 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 | 137 | <br><br> |
134 | 138 | <Input v-model="value" search style="width: 300px" @on-search="hs" /> |
135 | 139 | <br><br> | ... | ... |
src/styles/components/input.less
... | ... | @@ -113,6 +113,10 @@ |
113 | 113 | position: relative; |
114 | 114 | z-index: 2; |
115 | 115 | |
116 | + i{ | |
117 | + font-size: 16px; | |
118 | + } | |
119 | + | |
116 | 120 | &:hover{ |
117 | 121 | background: tint(@primary-color, 20%) !important; |
118 | 122 | border-color: tint(@primary-color, 20%) !important; |
... | ... | @@ -141,6 +145,18 @@ |
141 | 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 | 160 | &-with-search{ |
145 | 161 | &:hover{ |
146 | 162 | .@{input-prefix-cls} { | ... | ... |