yumoqing 1291f7fee3 fix: UiCode build_options uses valueField/textField fallback to 'value'/'text'
When valueField/textField are not explicitly set in opts, the auto-select
logic (line 1140) and nullable empty-option creation (lines 1144-1145) used
data[0][undefined] which returned undefined, causing:
- Single-option selects to show blank (auto-select failed)
- nullable empty options to have undefined keys

Now extracts vf/tf local variables with ||'value'/||'text' fallback at the
top of build_options(), used consistently throughout.
2026-05-29 23:03:52 +08:00

631 B
Raw Blame History

确认控件

弹出式用户确认控件显示标题以及消息并在下方提供确认和放弃两个按钮。点击确认后关闭窗口并触发“comformed”事件

widgettype值

Conform

父类

bricks.Message

构建参数

同bircks.Message控件的参数

方法

事件

conformed

用户点击确认按钮触发的事件

cancelled

用户点击discard按钮触发的事件

使用例子

{
	"id":"uuuu",
	"widgettype":"Conform",
	"options":{
		"width":"40%",
		"height":"40%",
		"archor":"cc",
		"title":"Test Title",
		"message":"This is a test message"
	}
}