Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(loading): [loading] Fixed an issue with the loading document level. #2707

Merged
merged 1 commit into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions examples/sites/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ strong {
--docs-tabs-header-zindex: 100;
--docs-float-settings-zindex: 999;
--docs-header-zindex: 200;
--docs-header-zindex-highlight: 2002;
--docs-layout-sider-zindex: 201;
--docs-layout-sider-zindex-highlight: 2001;
}

.tinyui-design-header {
Expand Down
18 changes: 2 additions & 16 deletions examples/sites/src/views/components/components.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<!-- 一个组件的文档: 描述md + demos + apis -->
<header :class="['flex-horizontal', 'docs-header', cmpId === 'loading' && 'docs-header-highlight']">
<header class="flex-horizontal docs-header">
<div class="docs-title-wrap">
<div class="markdown-body markdown-top-body" size="medium" v-html="cmpTopMd"></div>
<version-tip
Expand Down Expand Up @@ -97,13 +97,7 @@
</div>
</div>
</div>
<tiny-tabs
v-else
v-model="activeTab"
ref="demoTabs"
:class="['docs-content-tabs', cmpId === 'loading' && 'docs-content-tabs-highlight']"
@click="onTabsClick"
>
<tiny-tabs v-else v-model="activeTab" ref="demoTabs" class="docs-content-tabs" @click="onTabsClick">
<tiny-tab-item :title="i18nByKey('demos')" name="demos">
<!-- demos列表 -->
<template v-if="currJson?.demos?.length">
Expand Down Expand Up @@ -775,10 +769,6 @@ export default defineComponent({
background-color: #fff;
box-shadow: 12px 0 20px 6px rgba(0, 0, 0, 0.06);

&.docs-header-highlight {
z-index: var(--docs-header-zindex-highlight);
}

.docs-title-wrap {
flex: 1;
min-width: var(--layout-content-main-min-width);
Expand Down Expand Up @@ -829,10 +819,6 @@ export default defineComponent({
--tv-Tabs-header-font-active-text-color: #2f5bea;
--tv-Tabs-item-active-border-color: #2f5bea;

&.docs-content-tabs-highlight :deep(.tiny-tabs__header) {
z-index: var(--docs-layout-sider-zindex-highlight);
}

flex: 1;
transition: all ease-in-out 0.3s;
min-width: var(--layout-content-main-min-width);
Expand Down
Loading