forked from TencentBlueKing/blueking-apigateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deps: 引入vueuse; 升级依赖到最新的minor/patch版本 * feat: 新版导航部分样式 # Reviewed, transaction id: 15944 * feat: sdk使用说明代码块样式 * feat: sdk详情dialog基本样式和逻辑 * feat: 完成sdk详情dialog样式和部分类型声明 * feat: 完成tab类型provide/inject * feat: sdk下载逻辑 * feat: 新版组件API文档页面样式和逻辑 # Reviewed, transaction id: 16139 * feat: 新版组件API文档页右侧导航样式 # Reviewed, transaction id: 16161 * feat: 右侧导航固定 * feat: 导航跳转逻辑 * feat: 详情页顶部导航栏 * feat: 顶部导航栏aside切换 * feat: 文档详情页样式和结构 # Reviewed, transaction id: 16364 * feat: 资源维护人员编辑栏可控提交 # Reviewed, transaction id: 16477 * feat: 新版导航部分样式 * feat: 文档详情页左栏样式 * feat: 基本完成新版文档详情页样式和逻辑 # Reviewed, transaction id: 16620 * deps: yarn.lock # Reviewed, transaction id: 16622 * feat: 新版导航 * feat: 新版导航 * Merge branch 'master' into ft-navi # Reviewed, transaction id: 16871 * feat: 右侧导航跳转功能 # Reviewed, transaction id: 16958 * refactor: 整理代码和样式 * feat: sdk语言切换组件 * fix: 修复导航目录出现重名的情况 * feat: 网关 SDK 弹窗查看逻辑 # Reviewed, transaction id: 17003 * refactor: API文档抽离为新目录和路由 * feat: 完成sdk弹窗查看 * feat: 组件搜索器 * feat: 从文档详情页返回时保持tab状态 * feat: 系统快速跳转下拉菜单 * fix: 样式修复 * fix: 修复下拉跳转 * feat: SDK使用说明空数据提示 * feat: 组件sdk语言tag * fix: 修复系统下拉菜单显示逻辑问题 * feat: 完成网关SDK语言切换功能 * refactor: 表格自定义column的插槽改data=>row;类型标注; * fix: 网关sdk详情弹窗文本 * feat: 文档详情 loading 状态 # Reviewed, transaction id: 17189 * Merge branch 'master' into ft-navi # Reviewed, transaction id: 17190 * fix: 修复i18n问题 # Reviewed, transaction id: 17191 * fix: 修复i18n问题 # Reviewed, transaction id: 17192 * Merge remote-tracking branch 'origin/ft-navi' into ft-navi # Conflicts: # src/dashboard-front/src/language/lang.ts # Reviewed, transaction id: 17193 * chore: 添加注释;改用更语义化的变量名; # Reviewed, transaction id: 17208 * fix: 修复网关文档“是否需申请权限”文本 # Reviewed, transaction id: 17309 * chore: 整理代码 # Reviewed, transaction id: 17474
- Loading branch information
Showing
22 changed files
with
3,860 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @description 获取表格最大显示行数 | ||
* @param {Number} heightTaken 已被占用不能用来展示表格行的高度,单位 px | ||
* @param {Number} lineHeight 单行表格高度,单位 px | ||
* @returns {Number} 最大显示行数, 最小为 1 | ||
*/ | ||
import { useWindowSize } from '@vueuse/core'; | ||
import { toValue } from 'vue'; | ||
|
||
export default function useMaxTableLimit(heightTaken = 347, lineHeight = 42) { | ||
const viewportHeight = toValue(useWindowSize().height); | ||
const heightToUse = viewportHeight - heightTaken; | ||
const limit = Math.floor(heightToUse / lineHeight); | ||
return limit > 0 ? limit : 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.