|
@@ -97,9 +97,19 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- innerValue() {
|
|
|
- const { value, multiple } = this.$props;
|
|
|
- return multiple ? "" : value;
|
|
|
+ // innerValue() {
|
|
|
+ // const { value, multiple } = this.$props;
|
|
|
+ // return multiple ? "" : value;
|
|
|
+ // },
|
|
|
+ innerValue:{
|
|
|
+ get(){
|
|
|
+ console.log(value,'value');
|
|
|
+ const { value, multiple } = this.$props;
|
|
|
+ return multiple ? "" : value;
|
|
|
+ },
|
|
|
+ set(val){
|
|
|
+ this.$emit("input", val);
|
|
|
+ }
|
|
|
},
|
|
|
TableColumnTemp() {
|
|
|
const { type } = this.$props;
|
|
@@ -222,6 +232,12 @@ export default {
|
|
|
this.selectData = prop;
|
|
|
}
|
|
|
},
|
|
|
+ handleClear(){
|
|
|
+ if(!this.$props.multiple){
|
|
|
+ this.innerValue = '';
|
|
|
+ console.log(this.innerValue,'this.innerValue');
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {},
|
|
@@ -237,6 +253,7 @@ export default {
|
|
|
:readonly="readonly"
|
|
|
:clearable="clearable"
|
|
|
:placeholder="placeholder"
|
|
|
+ @clear="handleClear"
|
|
|
>
|
|
|
<el-button
|
|
|
:disabled="disabled"
|