Seletbox add clear feature
This commit is contained in:
		@@ -11,6 +11,7 @@
 | 
			
		||||
 | 
			
		||||
        <el-select v-model="selected" :placeholder="placeholder" filterable
 | 
			
		||||
            @change="change" @visible-change="visibleChange" @remove-tag="removeTag" @clear="clear" @blur="blur" @focus="focus"
 | 
			
		||||
            :clearable="clearable"
 | 
			
		||||
            :disabled="disabled"
 | 
			
		||||
            :multiple="multiple"
 | 
			
		||||
            :readonly="readonly"
 | 
			
		||||
@@ -247,6 +248,12 @@ export default {
 | 
			
		||||
            description: "Selectbox disabled status"
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
        clearable: {
 | 
			
		||||
            type: Boolean,
 | 
			
		||||
            default: true,
 | 
			
		||||
            description: "Selectbox clearable status"
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
        disabled: {
 | 
			
		||||
            type: Boolean,
 | 
			
		||||
            default: false,
 | 
			
		||||
 
 | 
			
		||||
@@ -11,6 +11,7 @@
 | 
			
		||||
 | 
			
		||||
        <el-select v-model="selected" :placeholder="placeholder" filterable remote reserve-keyword
 | 
			
		||||
            @change="change" @visible-change="visibleChange" @remove-tag="removeTag" @clear="clear" @blur="blur" @focus="focus"
 | 
			
		||||
            :clearable="clearable"
 | 
			
		||||
            :disabled="disabled"
 | 
			
		||||
            :multiple="multiple"
 | 
			
		||||
            :readonly="readonly"
 | 
			
		||||
@@ -110,6 +111,7 @@
 | 
			
		||||
    <span v-else>
 | 
			
		||||
        <el-select v-model="selected" :placeholder="placeholder" filterable remote reserve-keyword
 | 
			
		||||
            @change="change" @visible-change="visibleChange" @remove-tag="removeTag" @clear="clear" @blur="blur" @focus="focus"
 | 
			
		||||
            :clearable="clearable"
 | 
			
		||||
            :disabled="disabled"
 | 
			
		||||
            :multiple="multiple"
 | 
			
		||||
            :readonly="readonly"
 | 
			
		||||
@@ -338,6 +340,12 @@ export default {
 | 
			
		||||
            description: "Selectbox disabled status"
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
        clearable: {
 | 
			
		||||
            type: Boolean,
 | 
			
		||||
            default: true,
 | 
			
		||||
            description: "Selectbox clearable status"
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
        disabled: {
 | 
			
		||||
            type: Boolean,
 | 
			
		||||
            default: false,
 | 
			
		||||
 
 | 
			
		||||
@@ -79,6 +79,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -57,6 +57,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -81,6 +81,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -59,6 +59,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -73,6 +73,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -51,6 +51,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -75,6 +75,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -53,6 +53,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -75,6 +75,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
@@ -53,6 +53,12 @@
 | 
			
		||||
        :readonly="{{ $attributes['readonly'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['clearable']))
 | 
			
		||||
        :clearable="{{ $attributes['clearable'] }}"
 | 
			
		||||
        @else
 | 
			
		||||
        clearable
 | 
			
		||||
        @endif
 | 
			
		||||
 | 
			
		||||
        @if (isset($attributes['disabled']))
 | 
			
		||||
        :disabled="{{ $attributes['disabled'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user