EFloatLabel 浮动标签
示例与代码
空值标签
预填内容
密码输入
禁用输入
可清除内容
属性
属性说明取值与默认值
contentalias内容插槽;直接在组件内部声明 QML 子对象。
默认值
fieldContainer.datatextstring显示的文字内容。
默认值
""fixedbool将标签固定在输入框内部顶端。
默认值
falsetargetItem关联的目标控件。
默认值
fieldContainer.children.length ? fieldContainer.children[0] : nullfilledbool字段是否已有值,可覆盖自动判断。
默认值
展开默认值
target ? target.text !== undefined ? String(target.text).length > 0 : target.value !== undefined && target.value !== null && String(target.value).length > 0 : falseraisedbool只读标签是否处于抬起状态。
默认值
fixed || filled || !!(target && target.activeFocus)