Skip to content

Commit cd46be6

Browse files
committed
优化uni-data-select在pc等大屏下的显示(删除了slice取前25个字符的逻辑)
1 parent 7fa0c0f commit cd46be6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue

+3-5
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@
143143
textShow() {
144144
// 长文本显示
145145
let text = this.current;
146-
if (text.length > 10) {
147-
return text.slice(0, 25) + '...';
148-
}
149146
return text;
150147
},
151148
getOffsetByPlacement() {
@@ -404,14 +401,15 @@
404401
}
405402
406403
.uni-select__input-box {
407-
height: 35px;
404+
height: 35px;
405+
width: 0px;
408406
position: relative;
409407
/* #ifndef APP-NVUE */
410408
display: flex;
411409
/* #endif */
412410
flex: 1;
413411
flex-direction: row;
414-
align-items: center;
412+
align-items: center;
415413
}
416414
417415
.uni-select__input {

0 commit comments

Comments
 (0)