emis-sapp/components/tpx-input/tpx-input.vue
2023-12-11 17:44:17 +08:00

44 lines
687 B
Vue

<template>
<u-input shape="circle" :placeholder="placeholder" :modelValue="value" :clearable="true"
custom-style="border:0;border-radius: 20rpx;background-color: #F6F6F6;padding: 20rpx 30rpx;"
placeholder-style="color: #0E0708; " @change="handleChange"
></u-input>
</template>
<script>
export default {
props: {
value: {
default () {
return ''
}
},
placeholder:{
default () {
return ''
}
},
},
data() {
},
created() {
},
onHide() {
},
destroyed() {},
methods: {
handleChange(val){
this.$emit('change', val)
this.$emit('update:value', val)
}
}
}
</script>
<style scoped lang="scss">
</style>