This commit is contained in:
Zy
2026-06-09 10:10:43 +08:00
parent 93504e2a06
commit 0572000821
9 changed files with 55 additions and 18 deletions

View File

@@ -26,6 +26,7 @@
<uni-forms-item label="房屋号">
<view @tap="handleClick" style="width: 100%">
<uni-easyinput
class="easy-ellipsis-1"
:inputBorder="false"
disabled
v-model="houseName"
@@ -84,6 +85,7 @@ function handleClick() {
/** 处理 扫码 */
function handleScan() {
uni.scanCode({
scanType: ['barCode', 'qrCode', 'datamatrix', 'pdf417'],
success: function (res) {
formData.value.deviceCode = res.result
},
@@ -133,7 +135,7 @@ function handleSubmit() {
<style lang="scss" scoped>
.addreplacement_box {
background: #ffffff;
padding-top: 0;
&:deep(.uni-forms-item) {
display: flex;
align-items: center;
@@ -166,4 +168,9 @@ function handleSubmit() {
margin-left: 20rpx;
}
}
.easy-ellipsis-1:deep(.uni-easyinput__content-input) {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>