|
@@ -40,9 +40,7 @@ import $ from 'jquery';
|
|
|
methods:{
|
|
|
changeVal(e){
|
|
|
if(this.msg.type=='number'){//数字键盘
|
|
|
- if(+e.target.value.length>10){
|
|
|
this.txt = e.target.value=e.target.value.replace(/^\.$/,'').slice(0,10)
|
|
|
- }
|
|
|
}
|
|
|
const newData = Object.assign({},this.part,{value:this.txt});
|
|
|
this.$emit("updata",newData);
|