Commit 83778579 by 姜雷

Merge branch 'develop' into 'test'

添加自动逸选择框接受disabled属性 See merge request !39
parents 4f781ef5 594aa909
<template> <template>
<el-select <el-select
clearable :clearable="clearable"
:disabled="disabled"
filterable filterable
:value="value" :value="value"
@change="changeHandle" @change="changeHandle"
...@@ -30,6 +31,11 @@ export default { ...@@ -30,6 +31,11 @@ export default {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
disabled: Boolean,
clearable: {
type: Boolean,
default: true,
},
}, },
mixins: [areaMixin], mixins: [areaMixin],
methods: { methods: {
......
<template> <template>
<el-select <el-select
clearable :clearable="clearable"
:disabled="disabled"
filterable filterable
:value="value" :value="value"
@change="changeHandle" @change="changeHandle"
...@@ -16,12 +17,18 @@ ...@@ -16,12 +17,18 @@
<script> <script>
import areaMixin from './mixin.js'; import areaMixin from './mixin.js';
import { Select } from 'element-ui';
export default { export default {
name: 'area-select', name: 'area-select',
props: { props: {
size: String, size: String,
value: Number, value: Number,
disabled: Boolean,
clearable: {
type:Boolean,
default: true,
},
}, },
mixins: [areaMixin], mixins: [areaMixin],
computed: { computed: {
......
<template> <template>
<el-select <el-select
clearable :clearable="clearable"
:disabled="disabled"
filterable filterable
:value="value" :value="value"
@change="changeHandle" @change="changeHandle"
...@@ -35,6 +36,11 @@ export default { ...@@ -35,6 +36,11 @@ export default {
type: String, type: String,
default: '', default: '',
}, },
disabled: Boolean,
clearable: {
type: Boolean,
default: true,
},
}, },
data() { data() {
return { return {
......
<template> <template>
<el-select <el-select
clearable :clearable="clearable"
:disabled="disabled"
filterable filterable
:value="value" :value="value"
@change="changeHandle" @change="changeHandle"
...@@ -22,6 +23,11 @@ export default { ...@@ -22,6 +23,11 @@ export default {
props: { props: {
size: String, size: String,
value: Number, value: Number,
disabled: Boolean,
clearable: {
type: Boolean,
default: true,
},
}, },
mixins: [beansMixin], mixins: [beansMixin],
methods: { methods: {
......
<template> <template>
<el-select <el-select
clearable :clearable="clearable"
:disabled="disabled"
filterable filterable
:value="value" :value="value"
@change="changeHandle" @change="changeHandle"
...@@ -28,6 +29,11 @@ export default { ...@@ -28,6 +29,11 @@ export default {
type: Number, type: Number,
default: null, default: null,
}, },
disabled: Boolean,
clearable: {
type:Boolean,
default: true,
},
}, },
computed: { computed: {
......
<template> <template>
<el-select <el-select
clearable :clearable="clearable"
:disabled="disabled"
filterable filterable
:value="value" :value="value"
@change="changeHandle" @change="changeHandle"
...@@ -28,6 +29,11 @@ export default { ...@@ -28,6 +29,11 @@ export default {
type: Number, type: Number,
default: null, default: null,
}, },
disabled: Boolean,
clearable: {
type: Boolean,
default: true,
},
}, },
mixins: [serviceTypeMixin], mixins: [serviceTypeMixin],
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment