Browse Source

chore:

输入框组件
main
zhj 1 month ago
parent
commit
62fbdbe977
  1. 33
      components/auth/InfoItem.vue

33
components/auth/InfoItem.vue

@ -0,0 +1,33 @@
<template>
<view>
<view
style="display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; width: 100%; border-bottom: 1px solid #eee;">
<view style="display: flex; align-items: center;">
<uni-icons :type="iconName" size="18"></uni-icons>
<view style="margin-left: .5em;">{{title}}</view>
</view>
<slot>
<view>
<u--input :value="value" inputAlign="right" border="none" :disabled="da" :readonly="ro" :placeholder="ph" @input="updateValue" clearable ></u--input>
</view>
</slot>
</view>
</view>
</template>
<script>
export default {
props: ['value', 'iconName', 'title', 'ph', 'ro', 'da'], //
methods: {
updateValue(str) {
this.$emit('input', str); //
}
}
}
</script>
<style>
</style>
Loading…
Cancel
Save