|
@@ -1,6 +1,6 @@
|
|
<!-- 带输入框选项 -->
|
|
<!-- 带输入框选项 -->
|
|
<template>
|
|
<template>
|
|
- <div :class="['inpbox',{'iptCheck':item.select||item.value}]">
|
|
|
|
|
|
+ <div :class="['inpbox',{'iptCheck':item.select}]">
|
|
<span class="prefix" v-if="msg.prefix" @click="stopPop">{{msg.prefix}}</span>
|
|
<span class="prefix" v-if="msg.prefix" @click="stopPop">{{msg.prefix}}</span>
|
|
<p v-if="isXy" class="mult-inps">
|
|
<p v-if="isXy" class="mult-inps">
|
|
<input :type="msg.type=='number'?'number':'text'"
|
|
<input :type="msg.type=='number'?'number':'text'"
|
|
@@ -104,8 +104,8 @@ import $ from 'jquery';
|
|
|
|
|
|
},
|
|
},
|
|
handleCli(e){
|
|
handleCli(e){
|
|
- if(this.select||!this.txt){//已选中后点击输入框不取消选中
|
|
|
|
- e.stopPropagation();
|
|
|
|
|
|
+ if(!this.select&&this.txt.match(/\S/g)){//已选中后点击输入框不取消选中
|
|
|
|
+ this.$emit("handleSelect")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|