Skip to content

Commit 4acd556

Browse files
authored
fix:修复plus官网借口以及类型文档显示 (#3062)
1 parent a07fcc4 commit 4acd556

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/sites/src/views/components-doc/common.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,10 @@ const loadPage = () => {
279279
props.loadData({ cmpId: state.cmpId, lang }).then(({ mdString, apisJson, demosJson }) => {
280280
// 1、加载顶部md
281281
state.mdString = mdString
282+
// plus隐藏头部集合
283+
const hideTabHeader = ['interfaces', 'types', 'classes'].includes(state.cmpId)
282284
283-
if (demosJson) {
285+
if (demosJson && !hideTabHeader) {
284286
// 默认设置每个实例demo都不和视图相交
285287
demosJson.demos?.forEach((item) => {
286288
item.isIntersecting = false
@@ -292,6 +294,10 @@ const loadPage = () => {
292294
}
293295
} else {
294296
state.activeTab = 'api'
297+
// 隐藏tab的头部
298+
if (hideTabHeader) {
299+
document.querySelector('.tiny-tabs__header').style.display = 'none'
300+
}
295301
}
296302
297303
const { finishTask, waitTasks: allDemoMounted } = useTasksFinish(state.currJson.demos.length)

0 commit comments

Comments
 (0)