Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_gzt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c73c922a
authored
2026-04-27 15:49:40 +0800
by
lttnew
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
选择单位
1 parent
3a3694c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
42 deletions
pages.json
pages/index/perfect.vue
pages.json
View file @
c73c922
...
...
@@ -2,7 +2,7 @@
"easycom"
:
{
"autoscan"
:
true
,
"custom"
:
{
"^uni-(.*)"
:
"uni_modules/uni-$1/components/uni-$1/uni-$1.vue"
"^uni-(.*)"
:
"
@/
uni_modules/uni-$1/components/uni-$1/uni-$1.vue"
}
},
"pages"
:
[
...
...
pages/index/perfect.vue
View file @
c73c922
...
...
@@ -61,7 +61,7 @@
</uni-forms-item>
</uni-forms>
<view
class=
"fixedBottom"
>
<button
class=
"btn-red"
@
click=
"submitStep1()"
>
提交,
下一步
</button>
<button
class=
"btn-red"
@
click=
"submitStep1()"
>
下一步
</button>
</view>
</view>
...
...
@@ -1691,14 +1691,14 @@
:deep
(
.uni-forms-item__content
)
{
width
:
100%
!important
;
max-width
:
100%
!important
;
overflow
:
hidden
;
//
overflow
:
hidden
;
box-sizing
:
border-box
;
}
:deep
(
.uni-forms-item
)
{
width
:
100%
;
max-width
:
100%
;
overflow
:
hidden
;
//
overflow
:
hidden
;
}
:deep
(
.uni-forms
)
{
...
...
@@ -1712,22 +1712,22 @@
}
/* 强制限制所有输入框宽度 */
:deep
(
input
)
{
max-width
:
100%
!important
;
width
:
100%
!important
;
}
//
:deep
(
input
)
{
//
max-width
:
100%
!important
;
//
width
:
100%
!important
;
//
}
/* 限制 uni-data-select 下拉框 */
:deep
(
.uni-data-select
)
{
max-width
:
100%
!important
;
width
:
100%
!important
;
overflow
:
hidden
;
}
//
:deep
(
.uni-data-select
)
{
//
max-width
:
100%
!important
;
//
width
:
100%
!important
;
//
overflow
:
hidden
;
//
}
:deep
(
.uni-data-select
.uni-select
)
{
max-width
:
100%
!important
;
width
:
100%
!important
;
}
//
:deep
(
.uni-data-select
.uni-select
)
{
//
max-width
:
100%
!important
;
//
width
:
100%
!important
;
//
}
/* picker 样式 */
.picker-view
{
...
...
@@ -1764,24 +1764,22 @@
width
:
100%
;
max-width
:
100%
;
box-sizing
:
border-box
;
overflow
:
hidden
;
//
overflow
:
hidden
;
}
/* 修复uni-data-picker 文字靠左 + 样式统一(合并重复样式) */
:deep
(
.uni-data-picker
)
{
width
:
100%
;
display
:
block
;
overflow
:
hidden
;
//
overflow
:
hidden
;
}
:deep
(
.uni-data-picker
.selected-area
)
{
width
:
100%
;
max-width
:
100%
;
padding
:
0
20
rpx
;
box-sizing
:
border-box
;
display
:
flex
;
justify-content
:
flex-start
;
text-align
:
left
;
overflow
:
hidden
;
width
:
100%
;
padding
:
0
20
rpx
;
box-sizing
:
border-box
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
:deep
(
.uni-data-picker
.selected-text
)
{
font-size
:
28
rpx
;
...
...
@@ -1833,22 +1831,7 @@
font-size
:
32
rpx
!important
;
}
/* 修复uni-forms-item中内容超出问题 */
/* 暂时移除 overflow: hidden 以避免影响下拉组件 */
/*
:deep(.uni-forms-item__content) {
overflow: hidden;
width: 100%;
}
*/
/* 确保所有表单元素不超出父容器 */
/*
:deep(uni-forms-item) {
width: 100%;
overflow: hidden;
}
*/
/* 修复选择器容器宽度问题 */
.picker-wrapper
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment