feat: add v-access directive

This commit is contained in:
vince
2024-07-18 21:31:34 +08:00
parent 910a3553ac
commit 01e95e029f
14 changed files with 89 additions and 36 deletions

View File

@@ -66,11 +66,12 @@ const defaultPreferences: Preferences = {
expandOnHover: true,
extraCollapse: true,
hidden: false,
width: 240,
width: 220,
},
tabbar: {
dragable: true,
enable: true,
height: 36,
keepAlive: true,
persist: true,
showIcon: true,

View File

@@ -140,6 +140,8 @@ interface TabbarPreferences {
dragable: boolean;
/** 是否开启多标签页 */
enable: boolean;
/** 标签页高度 */
height: number;
/** 开启标签页缓存功能 */
keepAlive: boolean;
/** 是否持久化标签 */

View File

@@ -44,7 +44,7 @@
"requestTimeout": "请求超时,请稍后再试。",
"networkError": "网络异常,请检查您的网络连接后重试。",
"badRequest": "请求错误。请检查您的输入并重试。",
"unauthorized": "未授权。请登录继续。",
"unauthorized": "登录认证过期。请重新登录继续。",
"forbidden": "禁止访问, 您没有权限访问此资源。",
"notFound": "未找到, 请求的资源不存在。",
"internalServerError": "内部服务器错误,请稍后再试。"

View File

@@ -45,7 +45,7 @@ const props = withDefaults(defineProps<Props>(), {
sidebarTheme: 'dark',
sidebarWidth: 180,
tabbarEnable: true,
tabbarHeight: 38,
tabbarHeight: 36,
zIndex: 200,
});

View File

@@ -12,7 +12,7 @@ const props = defineProps<{
<div
:class="
cn(
'bg-card text-card-foreground border-border rounded-xl border shadow',
'bg-card text-card-foreground border-border rounded-xl border shadow-sm',
props.class,
)
"