bugfix
This commit is contained in:
@@ -119,16 +119,21 @@ module.exports = { hex: hex, tags: tags }
|
|||||||
<view wx:else class="ph icon icon-hanger"></view>
|
<view wx:else class="ph icon icon-hanger"></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 名称 -->
|
<!-- 名称:编辑态给标签 + 浅填充输入框,一眼看出可输入 -->
|
||||||
<view class="cd-name">
|
<view class="cd-name">
|
||||||
<input
|
<block wx:if="{{editMode}}">
|
||||||
wx:if="{{editMode}}"
|
<view class="grp-hd cd-name-hd">
|
||||||
class="cd-input"
|
<text class="gh-cn">名称</text>
|
||||||
value="{{formData.name}}"
|
<text class="gh-en">Name</text>
|
||||||
bindinput="onNameInput"
|
</view>
|
||||||
placeholder="衣物名称"
|
<input
|
||||||
placeholder-class="input-ph"
|
class="cd-input"
|
||||||
/>
|
value="{{formData.name}}"
|
||||||
|
bindinput="onNameInput"
|
||||||
|
placeholder="衣物名称"
|
||||||
|
placeholder-class="input-ph"
|
||||||
|
/>
|
||||||
|
</block>
|
||||||
<view wx:else class="t-lg">{{detail.name || '未命名衣物'}}</view>
|
<view wx:else class="t-lg">{{detail.name || '未命名衣物'}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@@ -44,12 +44,19 @@
|
|||||||
padding: 48rpx var(--pad) 0;
|
padding: 48rpx var(--pad) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 编辑态名称标签:容器已自带左右边距,这里抵消分组标题的左右内边距 */
|
||||||
|
.cd-name-hd {
|
||||||
|
padding: 0 0 18rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 可编辑字段统一用浅填充框(与备注输入框同一套语言),不再只靠发丝下划线 */
|
||||||
.cd-input {
|
.cd-input {
|
||||||
font-family: var(--serif);
|
font-family: var(--serif);
|
||||||
font-size: 40rpx;
|
font-size: 40rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 12rpx;
|
padding: 24rpx 28rpx;
|
||||||
border-bottom: 1rpx solid var(--hairline-2);
|
background: var(--fill);
|
||||||
|
border-radius: var(--r-ctrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cd-group {
|
.cd-group {
|
||||||
|
|||||||
Reference in New Issue
Block a user