emis-sapp/components/tpx-input/tpx-input.vue

44 lines
687 B
Vue
Raw Normal View History

2023-12-10 17:10:09 +00:00
<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 ''
}
},
2023-12-11 09:44:17 +00:00
placeholder:{
default () {
return ''
}
},
2023-12-10 17:10:09 +00:00
},
data() {
},
created() {
},
onHide() {
},
destroyed() {},
methods: {
handleChange(val){
this.$emit('change', val)
this.$emit('update:value', val)
}
}
}
</script>
<style scoped lang="scss">
</style>