#
whycq
2023-10-13 12d5e958374114425dae7e530656a034e0c38b1a
components/z-input/z-input.vue
@@ -7,7 +7,7 @@
               type="text" 
               :placeholder="placeholder" 
               v-model="data" 
               :focus="focusData">
               :focus="focusData" @input="inputVal">
               
            <uni-icons class="p-icon" 
               type="closeempty" 
@@ -34,7 +34,15 @@
         };
      },
      props: {
         index: {
            type: Number,
            default: 0
         },
         desc: {
            type: String,
            default: ''
         },
         name: {
            type: String,
            default: ''
         },
@@ -48,7 +56,7 @@
         },
         placeholder: {
            type: String,
            default: '请输入'
            default: '扫码 / 录入'
         },
         value: {
            type: [String,Number],
@@ -78,8 +86,10 @@
               this.$emit('input',val)
            }
         },
         value(val) {
            this.data = val
         },
         focus(f) {
            console.log(f);
            this.focusData = !f
            setTimeout(()=>{
               this.focusData = f
@@ -96,6 +106,9 @@
         },
         clickBtn() {
            this.$emit('clickBtn');
         },
         inputVal() {
            this.$emit('inputVal',[this.data,this.name]);
         }
      }
   }
@@ -107,6 +120,7 @@
      align-items: center;
      min-height: 35px;
      background-color: #FFF;
      margin: 8px;
      /* border-bottom: 1px solid darkgray; */
   }
   .put {