bricks/dist/docs/zh/splitter.md
yumoqing 2e22085122 feat: 401后登录成功自动重试原始请求
- withLoginInfo 改为接收完整 opts(含 method/headers/params)
- 等待 login_window 的 destroy 事件(=登录成功信号)
- 登录成功后重试原始请求
- 重试仍401则返回null(避免死循环)
- 用户手动关闭登录窗口时也触发重试,401则返回null
2026-05-27 15:39:34 +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`,作为该控件的根元素。