bricks/dist/docs/zh/splitter.md
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

14 lines
547 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.

# Splitter
控件功能用于在页面中创建一个分隔线horizontal rule常用于视觉上分割不同区域的内容。
类型:普通控件
父类控件bricks.JsWidget
## 初始化参数
无特殊初始化参数,继承自 `bricks.JsWidget` 的默认参数。构造函数中调用 `super({})`,使用空配置对象初始化父类。
## 主要事件
- **create**:控件创建时触发,内部调用 `_create('hr')` 方法生成 `<hr>` DOM 元素并赋值给 `this.dom_element`,作为该控件的根元素。