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

fix(tabs): [tabs] Optimize the tabs document #2497

Merged
merged 1 commit into from
Nov 8, 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
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<tiny-tabs v-model="activeName">
<tiny-tab-item title="表单组件" name="first"> 表单组件,具有与用户交互,并可完成数据采集功能的控件。</tiny-tab-item>
<tiny-tab-item title="表单组件" name="first"> 表单组件具有与用户交互,并可完成数据采集功能的控件。</tiny-tab-item>
<tiny-tab-item title="数据组件" name="second" disabled>
数据组件,提供了非常强大数据表格功能,在Grid可以展示数据列表,可以对数据列表进行选择、编辑等。
数据组件提供了非常强大数据表格功能,在Grid可以展示数据列表,可以对数据列表进行选择、编辑等。
</tiny-tab-item>
<tiny-tab-item title="导航组件" name="third"> 导航组件,帮助网站访问者浏览站点的组件。</tiny-tab-item>
<tiny-tab-item title="业务组件" name="fourth"> 业务组件,与业务紧密相关实现某种业务功能的组件集。</tiny-tab-item>
<tiny-tab-item title="导航组件" name="third"> 导航组件帮助网站访问者浏览站点的组件。</tiny-tab-item>
<tiny-tab-item title="业务组件" name="fourth"> 业务组件与业务紧密相关实现某种业务功能的组件集。</tiny-tab-item>
</tiny-tabs>
</template>

Expand Down
8 changes: 4 additions & 4 deletions examples/sites/demos/pc/app/tabs/basic-usage.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<tiny-tabs v-model="activeName">
<tiny-tab-item title="表单组件" name="first"> 表单组件,具有与用户交互,并可完成数据采集功能的控件。</tiny-tab-item>
<tiny-tab-item title="表单组件" name="first"> 表单组件具有与用户交互,并可完成数据采集功能的控件。</tiny-tab-item>
<tiny-tab-item title="数据组件" name="second" disabled>
数据组件,提供了非常强大数据表格功能,在Grid可以展示数据列表,可以对数据列表进行选择、编辑等。
数据组件提供了非常强大数据表格功能,在Grid可以展示数据列表,可以对数据列表进行选择、编辑等。
</tiny-tab-item>
<tiny-tab-item title="导航组件" name="third"> 导航组件,帮助网站访问者浏览站点的组件。</tiny-tab-item>
<tiny-tab-item title="业务组件" name="fourth"> 业务组件,与业务紧密相关实现某种业务功能的组件集。</tiny-tab-item>
<tiny-tab-item title="导航组件" name="third"> 导航组件帮助网站访问者浏览站点的组件。</tiny-tab-item>
<tiny-tab-item title="业务组件" name="fourth"> 业务组件与业务紧密相关实现某种业务功能的组件集。</tiny-tab-item>
</tiny-tabs>
</template>

Expand Down
1 change: 0 additions & 1 deletion packages/theme/src/tabs/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@
&:hover {
border-color: var(--tv-Tabs-border-color); // aurora新增
color: var(--tv-Tabs-dark-text-color-hover);
background: var(--tv-Tabs-dark-bg-color-hover);
}
}

Expand Down
2 changes: 0 additions & 2 deletions packages/theme/src/tabs/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@
--tv-Tabs-dark-bg-color-active: var(--tv-color-bg-active, #f5f5f5);
// bordercard类型非选中项悬浮文本色
--tv-Tabs-dark-text-color-hover: var(--tv-color-act-info-text-white-hover, #ffffff);
// bordercard类型非选中项悬浮背景色
--tv-Tabs-dark-bg-color-hover: var(--tv-color-bg-active-primary, #191919);
// bordercard类型非选中项文本色
--tv-Tabs-dark-text-color: var(--tv-color-text-disabled, #c2c2c2);
// bordercard类型标签项上外边距
Expand Down
Loading