bricks/docs/zh/splitter.md
2025-11-19 12:30:39 +08:00

14 lines
547 B
Markdown
Raw Permalink 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`,作为该控件的根元素。