bricks/dist/docs/ja/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

13 lines
911 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` に割り当てます。この要素が当該コントロールのルート要素となります。