feat(element): 支持指定元素渲染 (#2162)

* feat(element): 支持指定元素渲染

* docs(element): 更新文档

* docs: 更正 tab 定向渲染的文档

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
This commit is contained in:
morning-star
2024-08-16 18:47:19 +08:00
committed by GitHub
parent 4c4c46fc8d
commit 61418aef5e
5 changed files with 31 additions and 20 deletions

View File

@@ -152,8 +152,8 @@ tab 组件提供了三种 UI 风格,分别为:
`element.render('tab', filter);`
- 参数 `'tab'` 是渲染 tab 的固定值
- 参数 `filter` : 对应 tab 容器 `lay-filter` 的属性值
- 参数 `'tab'` 是渲染 tab 的固定值
- 参数 `filter` : 对应 tab 容器 `lay-filter` 的属性值或<sup>2.9.15+</sup>指定元素的 jQuery 对象。
tab 组件会在元素加载完毕后,自动对 tab 元素完成一次渲染,因此该方法主要用于对动态插入的 tab 元素的初始化渲染。