| | |
| | | type="text" |
| | | :placeholder="placeholder" |
| | | v-model="data" |
| | | :focus="focusData"> |
| | | :focus="focusData" @input="inputVal"> |
| | | |
| | | <uni-icons class="p-icon" |
| | | type="closeempty" |
| | |
| | | }; |
| | | }, |
| | | props: { |
| | | index: { |
| | | type: Number, |
| | | default: 0 |
| | | }, |
| | | desc: { |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | name: { |
| | | type: String, |
| | | default: '' |
| | | }, |
| | |
| | | }, |
| | | placeholder: { |
| | | type: String, |
| | | default: '请输入' |
| | | default: '扫码 / 录入' |
| | | }, |
| | | value: { |
| | | type: [String,Number], |
| | |
| | | this.$emit('input',val) |
| | | } |
| | | }, |
| | | value(val) { |
| | | this.data = val |
| | | }, |
| | | focus(f) { |
| | | console.log(f); |
| | | this.focusData = !f |
| | | setTimeout(()=>{ |
| | | this.focusData = f |
| | |
| | | }, |
| | | clickBtn() { |
| | | this.$emit('clickBtn'); |
| | | }, |
| | | inputVal() { |
| | | this.$emit('inputVal',[this.data,this.name]); |
| | | } |
| | | } |
| | | } |
| | |
| | | align-items: center; |
| | | min-height: 35px; |
| | | background-color: #FFF; |
| | | margin: 8px; |
| | | /* border-bottom: 1px solid darkgray; */ |
| | | } |
| | | .put { |