Skip to content

Commit e202474

Browse files
committed
WIP
remove clearfix class clean up spacing in css add unsearchable class to dropdown
1 parent ea11bc2 commit e202474

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

dev.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
<head>
55
<meta charset="utf-8">
66
<title>Vue Select Dev</title>
7-
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
8-
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css"> -->
7+
<!--<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">-->
8+
<!--<link href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.3.1/css/foundation.min.css" rel="stylesheet">-->
9+
<!--<link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.3.2/css/bulma.min.css" rel="stylesheet">-->
10+
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css">-->
911
<style>
1012
html,
1113
body,

src/components/Select.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
2323
}
2424
25-
26-
2725
.dropdown-menu > li > a {
2826
2927
}
@@ -163,6 +161,7 @@
163161
float: left;
164162
line-height: 1.7em;
165163
}
164+
166165
.v-select .selected-tag .close {
167166
float: none;
168167
margin-right: 0;
@@ -176,6 +175,7 @@
176175
.v-select input[type="search"]::-webkit-search-results-decoration {
177176
display: none;
178177
}
178+
179179
.v-select input[type=search],
180180
.v-select input[type=search]:focus {
181181
appearance: none;
@@ -197,6 +197,7 @@
197197
float: left;
198198
clear: none;
199199
}
200+
200201
.v-select.unsearchable input[type=search] {
201202
max-width: 1px;
202203
}
@@ -230,7 +231,6 @@
230231
color: #fff;
231232
}
232233
233-
234234
.v-select .spinner {
235235
opacity: 0;
236236
position: absolute;
@@ -263,9 +263,11 @@
263263
.v-select.open .open-indicator {
264264
bottom: 1px;
265265
}
266+
266267
.v-select.open .open-indicator:before {
267268
transform: rotate(315deg);
268269
}
270+
269271
.v-select.open .dropdown-toggle {
270272
border-bottom: none;
271273
border-bottom-left-radius: 0;
@@ -293,7 +295,7 @@
293295

294296
<template>
295297
<div class="dropdown v-select" :class="dropdownClasses">
296-
<div ref="toggle" @mousedown.prevent="toggleDropdown" class="dropdown-toggle clearfix" type="button">
298+
<div ref="toggle" @mousedown.prevent="toggleDropdown" class="dropdown-toggle" type="button">
297299

298300
<span class="selected-tag" v-for="option in valueAsArray" v-bind:key="option.index">
299301
{{ getOptionLabel(option) }}
@@ -345,7 +347,6 @@
345347
</div>
346348
</template>
347349

348-
349350
<script type="text/babel">
350351
import pointerScroll from '../mixins/pointerScroll'
351352
import typeAheadPointer from '../mixins/typeAheadPointer'
@@ -801,6 +802,7 @@
801802
return {
802803
open: this.dropdownOpen,
803804
searchable: this.searchable,
805+
unsearchable: !this.searchable,
804806
loading: this.mutableLoading
805807
}
806808
},

0 commit comments

Comments
 (0)