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

54 lines
855 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"
2023-12-18 07:32:21 +00:00
:custom-style="`border:0;border-radius: 20rpx;background-color: #F6F6F6;padding: 20rpx 30rpx;${customStyle};`"
:placeholder-style="`color: #0E0708;${placeholderStyle};` " @change="handleChange"
2023-12-10 17:10:09 +00:00
></u-input>
</template>
<script>
export default {
props: {
value: {
default () {
return ''
}
},
2023-12-11 09:44:17 +00:00
placeholder:{
default () {
return ''
}
},
2023-12-18 07:32:21 +00:00
customStyle:{
default () {
return ''
}
},
placeholderStyle:{
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>