#
whycq
2022-09-23 c5e381984c6342fed7ab3380ec21459451751929
components/y-input/y-input.vue
@@ -1,20 +1,21 @@
<template>
   <view>
      <view class="main">
         <view style="display: flex;align-items: center;">
            <y-title :title="titleText"/>
         </view>
      <!-- <view class="main">
         <y-title :title="titleText"/>
         <view :class="zBig">
            <view style="display: flex;" class="input">
               <input type="text" :placeholder="placeholderText" @input="input"
                placeholder-style="font-size:22rpx" v-model="val">
                <view class="icons">
                <view class="icons" v-if="val.length" @click="clear">
                   <uni-icons type="close"></uni-icons>
                </view>
            </view>
         </view>
      </view>
      </view> -->
      <y-wrapper>
         <y-title :title="titleText"></y-title>
         <z-input></z-input>
      </y-wrapper>
   </view>
</template>
@@ -64,7 +65,7 @@
               backgroundColor: '#cccddd'
               
            },
            zBig: 'big',
            zBig: 'small',
            pps: {
               fontSize: '24rpx',
            }
@@ -73,7 +74,11 @@
      methods: {
         input() {
            this.$emit('input',this.val);
         },
         clear() {
            this.val = ''
         }
      }
   }
</script>