Skip to content

Commit e0a1e6f

Browse files
authored
docs(loading): 修复loading文档层级的问题 (#2707)
1 parent 1b2de8e commit e0a1e6f

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

examples/sites/src/style.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ strong {
1414
--docs-tabs-header-zindex: 100;
1515
--docs-float-settings-zindex: 999;
1616
--docs-header-zindex: 200;
17-
--docs-header-zindex-highlight: 2002;
1817
--docs-layout-sider-zindex: 201;
19-
--docs-layout-sider-zindex-highlight: 2001;
2018
}
2119

2220
.tinyui-design-header {

examples/sites/src/views/components/components.vue

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<!-- 一个组件的文档: 描述md + demos + apis -->
3-
<header :class="['flex-horizontal', 'docs-header', cmpId === 'loading' && 'docs-header-highlight']">
3+
<header class="flex-horizontal docs-header">
44
<div class="docs-title-wrap">
55
<div class="markdown-body markdown-top-body" size="medium" v-html="cmpTopMd"></div>
66
<version-tip
@@ -97,13 +97,7 @@
9797
</div>
9898
</div>
9999
</div>
100-
<tiny-tabs
101-
v-else
102-
v-model="activeTab"
103-
ref="demoTabs"
104-
:class="['docs-content-tabs', cmpId === 'loading' && 'docs-content-tabs-highlight']"
105-
@click="onTabsClick"
106-
>
100+
<tiny-tabs v-else v-model="activeTab" ref="demoTabs" class="docs-content-tabs" @click="onTabsClick">
107101
<tiny-tab-item :title="i18nByKey('demos')" name="demos">
108102
<!-- demos列表 -->
109103
<template v-if="currJson?.demos?.length">
@@ -775,10 +769,6 @@ export default defineComponent({
775769
background-color: #fff;
776770
box-shadow: 12px 0 20px 6px rgba(0, 0, 0, 0.06);
777771
778-
&.docs-header-highlight {
779-
z-index: var(--docs-header-zindex-highlight);
780-
}
781-
782772
.docs-title-wrap {
783773
flex: 1;
784774
min-width: var(--layout-content-main-min-width);
@@ -829,10 +819,6 @@ export default defineComponent({
829819
--tv-Tabs-header-font-active-text-color: #2f5bea;
830820
--tv-Tabs-item-active-border-color: #2f5bea;
831821
832-
&.docs-content-tabs-highlight :deep(.tiny-tabs__header) {
833-
z-index: var(--docs-layout-sider-zindex-highlight);
834-
}
835-
836822
flex: 1;
837823
transition: all ease-in-out 0.3s;
838824
min-width: var(--layout-content-main-min-width);

0 commit comments

Comments
 (0)