Commit 594aa909 by 姜雷

添加自动逸选择框接受disabled属性

parent bc3e994a
<template>
<el-select
clearable
:clearable="clearable"
:disabled="disabled"
filterable
:value="value"
@change="changeHandle"
......@@ -30,6 +31,11 @@ export default {
type: Boolean,
default: false,
},
disabled: Boolean,
clearable: {
type: Boolean,
default: true,
},
},
mixins: [areaMixin],
methods: {
......
<template>
<el-select
clearable
:clearable="clearable"
:disabled="disabled"
filterable
:value="value"
@change="changeHandle"
......@@ -16,12 +17,18 @@
<script>
import areaMixin from './mixin.js';
import { Select } from 'element-ui';
export default {
name: 'area-select',
props: {
size: String,
value: Number,
disabled: Boolean,
clearable: {
type:Boolean,
default: true,
},
},
mixins: [areaMixin],
computed: {
......
<template>
<el-select
clearable
:clearable="clearable"
:disabled="disabled"
filterable
:value="value"
@change="changeHandle"
......@@ -35,6 +36,11 @@ export default {
type: String,
default: '',
},
disabled: Boolean,
clearable: {
type: Boolean,
default: true,
},
},
data() {
return {
......
<template>
<el-select
clearable
:clearable="clearable"
:disabled="disabled"
filterable
:value="value"
@change="changeHandle"
......@@ -22,6 +23,11 @@ export default {
props: {
size: String,
value: Number,
disabled: Boolean,
clearable: {
type: Boolean,
default: true,
},
},
mixins: [beansMixin],
methods: {
......
<template>
<el-select
clearable
:clearable="clearable"
:disabled="disabled"
filterable
:value="value"
@change="changeHandle"
......@@ -28,6 +29,11 @@ export default {
type: Number,
default: null,
},
disabled: Boolean,
clearable: {
type:Boolean,
default: true,
},
},
computed: {
......
<template>
<el-select
clearable
:clearable="clearable"
:disabled="disabled"
filterable
:value="value"
@change="changeHandle"
......@@ -28,6 +29,11 @@ export default {
type: Number,
default: null,
},
disabled: Boolean,
clearable: {
type: Boolean,
default: true,
},
},
mixins: [serviceTypeMixin],
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