2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +03:00

Prevent removal of items when disabled

This commit is contained in:
Andrew
2017-10-20 21:18:57 +11:00
parent f836eaeb6a
commit d6b822771b
3 changed files with 40 additions and 18 deletions
+7 -8
View File
@@ -9,17 +9,15 @@
<!--<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">-->
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"> -->
<style>
html,
body,
#app {
height: 100vh;
}
#app {
height: 95vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: flex-start;
flex-wrap: wrap;
align-content: center;
}
.v-select {
@@ -50,7 +48,8 @@
{{option.label}} ({{option.value}})
</template>
</v-select>
<v-select disabled placeholder="disabled" value="Some Selected Value"></v-select>
<v-select disabled placeholder="disabled" value="disabled"></v-select>
<v-select disabled multiple placeholder="disabled" :value="['disabled', 'multiple']"></v-select>
</div>
</body>