6/9
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user