Skip to content

Commit

Permalink
Revert "fix: 🐛 Radio修复在cell里面高度的问题" (Moonofweisheng#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moonofweisheng authored Sep 25, 2024
1 parent 034fd89 commit a31b3ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
15 changes: 1 addition & 14 deletions src/pages/form/demo3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@
<wd-upload :file-list="model.fileList" action="https://ftf.jd.com/api/uploadImg" @change="handleFileChange"></wd-upload>
</wd-cell>
</wd-cell-group>
<wd-cell title="性别" required prop="sex" center>
<wd-radio-group shape="dot" cell inline v-model="model.sex">
<wd-radio :value="1">男</wd-radio>
<wd-radio :value="2">女</wd-radio>
</wd-radio-group>
</wd-cell>
<view class="tip">
<wd-checkbox v-model="model.read" prop="read" custom-label-class="label-class">
已阅读并同意
Expand Down Expand Up @@ -150,7 +144,6 @@ const model = reactive<{
phone: string
read: boolean
fileList: UploadFileItem[]
sex: number
}>({
couponName: '',
platform: [],
Expand All @@ -166,8 +159,7 @@ const model = reactive<{
cardId: '',
phone: '',
read: false,
fileList: [],
sex: 1
fileList: []
})
const rules: FormRules = {
Expand Down Expand Up @@ -423,29 +415,24 @@ function handleIconClick() {
color: $-dark-color3;
}
}
.inline-txt {
display: inline-block;
font-size: 14px;
margin: 0 8px;
color: rgba(0, 0, 0, 0.45);
vertical-align: middle;
}
:deep(.group) {
margin-top: 12px;
}
.tip {
margin: 10px 15px 21px;
color: #999;
font-size: 12px;
}
.footer {
padding: 0 25px 21px;
}
:deep(.label-class) {
color: #999 !important;
font-size: 12px !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,8 @@

// 以下内容用于解决父子组件样式隔离的问题 —— START
@include when(cell-radio) {
padding:0px 15px;
padding: 13px 15px;
margin: 0;
line-height:inherit;

@include when(large) {
padding: 14px 15px;
Expand Down

0 comments on commit a31b3ed

Please sign in to comment.