fix: ULD编辑页备注对齐最大装载容积,表单输入框统一禁止换行

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-23 10:56:28 +08:00
parent 7b2bc00afc
commit 89989ef00a
3 changed files with 9 additions and 1 deletions

View File

@@ -130,7 +130,7 @@
hint='@{"请输入备注"}' hint='@{"请输入备注"}'
inputHeight="@{80}" inputHeight="@{80}"
title='@{"备注"}' title='@{"备注"}'
titleLength="@{3}" titleLength="@{7}"
type="@{DataLayoutType.INPUT}" type="@{DataLayoutType.INPUT}"
value='@={viewModel.uldBean.remark}' /> value='@={viewModel.uldBean.remark}' />

View File

@@ -152,6 +152,10 @@ class PadDataLayout : FrameLayout {
spinner = view.findViewById(R.id.spinner) spinner = view.findViewById(R.id.spinner)
iv = view.findViewById(R.id.iv) iv = view.findViewById(R.id.iv)
// 默认单行,禁止换行(多行输入框通过 inputHeight 属性恢复为多行)
et.isSingleLine = true
et.maxLines = 1
et.doOnTextChanged { text, _, _, _ -> et.doOnTextChanged { text, _, _, _ ->
value = text.toString() value = text.toString()
} }

View File

@@ -198,6 +198,10 @@ class PadDataLayoutNew : FrameLayout {
spinner = view.findViewById(R.id.spinner) spinner = view.findViewById(R.id.spinner)
iv = view.findViewById(R.id.iv) iv = view.findViewById(R.id.iv)
// 默认单行,禁止换行(多行输入框通过 inputHeight 属性恢复为多行)
et.isSingleLine = true
et.maxLines = 1
et.doOnTextChanged { text, _, _, _ -> et.doOnTextChanged { text, _, _, _ ->
value = text.toString() value = text.toString()
} }