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

28 lines
615 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tabular
数据驱动的表格状数据展示控件,每行显示一条数据
## widgettype值
Tabular
## 父类
bricks.DynamicAccordion
## 构建参数
## 方法
### render
语法:
render(params)
#### params 参数
字典类型以kv形式提供获参数提供Tabular获取后台数据的条件
## 事件
### toolbar中定义的事件
工具条上的工具在点击时, Tabular会触发所点击tool的name事件
### 编辑事件
当Tabular设置可编辑时toolbar中会添加add update delete三个工具点击后会触发相应的add, update和delete事件
## 使用例子
```
```