File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
examples/sites/src/views/components-doc Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments