fix: ULD编辑页备注对齐最大装载容积,表单输入框统一禁止换行
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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}' />
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user