Commit f7b97e8a by vben

chore: update deps

1 parent c531f0c1
Showing 47 changed files with 379 additions and 196 deletions
...@@ -2,13 +2,12 @@ import type { ExRouteRecordRaw, MenuRecordRaw } from '@vben/types'; ...@@ -2,13 +2,12 @@ import type { ExRouteRecordRaw, MenuRecordRaw } from '@vben/types';
import type { RouteRecordRaw, Router } from 'vue-router'; import type { RouteRecordRaw, Router } from 'vue-router';
import { LOGIN_PATH } from '@vben/constants';
import { useAccessStore } from '@vben/stores'; import { useAccessStore } from '@vben/stores';
import { filterTree, mapTree, traverseTreeValues } from '@vben/utils'; import { filterTree, mapTree, traverseTreeValues } from '@vben/utils';
import { dynamicRoutes } from '../routes'; import { dynamicRoutes } from '@/router/routes';
// 登录页面路由 path
const LOGIN_ROUTE_PATH = '/auth/login';
// 不需要权限的页面白名单 // 不需要权限的页面白名单
const WHITE_ROUTE_NAMES = new Set<string>([]); const WHITE_ROUTE_NAMES = new Set<string>([]);
...@@ -29,14 +28,15 @@ function configAccessGuard(router: Router) { ...@@ -29,14 +28,15 @@ function configAccessGuard(router: Router) {
} }
// 白名单路由列表检查 // 白名单路由列表检查
// TODO: 不是很需要,通过 ignoreAccess 也可以做到,考虑删除
if (WHITE_ROUTE_NAMES.has(to.name as string)) { if (WHITE_ROUTE_NAMES.has(to.name as string)) {
return true; return true;
} }
// 没有访问权限,跳转登录页面 // 没有访问权限,跳转登录页面
if (to.fullPath !== LOGIN_ROUTE_PATH) { if (to.fullPath !== LOGIN_PATH) {
return { return {
path: LOGIN_ROUTE_PATH, path: LOGIN_PATH,
// 如不需要,直接删除 query // 如不需要,直接删除 query
query: { redirect: encodeURIComponent(to.fullPath) }, query: { redirect: encodeURIComponent(to.fullPath) },
// 携带当前跳转的页面,登录后重新跳转该页面 // 携带当前跳转的页面,登录后重新跳转该页面
......
...@@ -12,9 +12,11 @@ import { configAccessGuard } from './access'; ...@@ -12,9 +12,11 @@ import { configAccessGuard } from './access';
* @param router * @param router
*/ */
function configCommonGuard(router: Router) { function configCommonGuard(router: Router) {
// 记录已经加载的页面
const loadedPaths = new Set<string>(); const loadedPaths = new Set<string>();
router.beforeEach(async (to) => { router.beforeEach(async (to) => {
// 页面加载进度条
if (preference.pageProgress) { if (preference.pageProgress) {
startProgress(); startProgress();
} }
...@@ -25,6 +27,8 @@ function configCommonGuard(router: Router) { ...@@ -25,6 +27,8 @@ function configCommonGuard(router: Router) {
router.afterEach((to) => { router.afterEach((to) => {
// 记录页面是否加载,如果已经加载,后续的页面切换动画等效果不在重复执行 // 记录页面是否加载,如果已经加载,后续的页面切换动画等效果不在重复执行
loadedPaths.add(to.path); loadedPaths.add(to.path);
// 关闭页面加载进度条
if (preference.pageProgress) { if (preference.pageProgress) {
stopProgress(); stopProgress();
} }
......
...@@ -2,9 +2,12 @@ import type { RouteRecordRaw } from 'vue-router'; ...@@ -2,9 +2,12 @@ import type { RouteRecordRaw } from 'vue-router';
import { AuthPageLayout } from '@/layouts'; import { AuthPageLayout } from '@/layouts';
import { Fallback } from '@vben/common-ui'; import { Fallback } from '@vben/common-ui';
import { $t } from '@vben/locales';
/** 静态路由列表,访问这些页面可以不需要权限 */ import Login from '@/views/_essential/authentication/login.vue';
const builtinRoutes: RouteRecordRaw[] = [
/** 基本路由,这些路由是必须存在的 */
const essentialRoutes: RouteRecordRaw[] = [
{ {
component: AuthPageLayout, component: AuthPageLayout,
meta: { meta: {
...@@ -16,46 +19,50 @@ const builtinRoutes: RouteRecordRaw[] = [ ...@@ -16,46 +19,50 @@ const builtinRoutes: RouteRecordRaw[] = [
{ {
name: 'Login', name: 'Login',
path: 'login', path: 'login',
component: () => import('@/views/authentication/login.vue'), component: Login,
meta: { meta: {
ignoreAccess: true, ignoreAccess: true,
title: 'Login', title: $t('page.login'),
}, },
}, },
{ {
name: 'CodeLogin', name: 'CodeLogin',
path: 'code-login', path: 'code-login',
component: () => import('@/views/authentication/code-login.vue'), component: () =>
import('@/views/_essential/authentication/code-login.vue'),
meta: { meta: {
ignoreAccess: true, ignoreAccess: true,
title: 'CodeLogin', title: $t('page.code-login'),
}, },
}, },
{ {
name: 'QrCodeLogin', name: 'QrCodeLogin',
path: 'qrcode-login', path: 'qrcode-login',
component: () => import('@/views/authentication/qrcode-login.vue'), component: () =>
import('@/views/_essential/authentication/qrcode-login.vue'),
meta: { meta: {
ignoreAccess: true, ignoreAccess: true,
title: 'QrCodeLogin', title: $t('page.qrcode-login'),
}, },
}, },
{ {
name: 'ForgetPassword', name: 'ForgetPassword',
path: 'forget-password', path: 'forget-password',
component: () => import('@/views/authentication/forget-password.vue'), component: () =>
import('@/views/_essential/authentication/forget-password.vue'),
meta: { meta: {
ignoreAccess: true, ignoreAccess: true,
title: 'ForgetPassword', title: $t('page.forget-password'),
}, },
}, },
{ {
name: 'Register', name: 'Register',
path: 'register', path: 'register',
component: () => import('@/views/authentication/register.vue'), component: () =>
import('@/views/_essential/authentication/register.vue'),
meta: { meta: {
ignoreAccess: true, ignoreAccess: true,
title: 'Register', title: $t('page.register'),
}, },
}, },
], ],
...@@ -67,6 +74,7 @@ const builtinRoutes: RouteRecordRaw[] = [ ...@@ -67,6 +74,7 @@ const builtinRoutes: RouteRecordRaw[] = [
hideInBreadcrumb: true, hideInBreadcrumb: true,
hideInMenu: true, hideInMenu: true,
hideInTab: true, hideInTab: true,
ignoreAccess: true,
title: 'Fallback', title: 'Fallback',
}, },
name: 'Fallback', name: 'Fallback',
...@@ -74,4 +82,4 @@ const builtinRoutes: RouteRecordRaw[] = [ ...@@ -74,4 +82,4 @@ const builtinRoutes: RouteRecordRaw[] = [
}, },
]; ];
export { builtinRoutes }; export { essentialRoutes };
import type { RouteRecordRaw } from 'vue-router'; import type { RouteRecordRaw } from 'vue-router';
import { BasicLayout } from '@/layouts'; import { essentialRoutes } from './_essential';
import { builtinRoutes } from './builtin';
import { nestedRoutes } from './modules/nested'; import { nestedRoutes } from './modules/nested';
import { outsideRoutes } from './modules/outside'; import { outsideRoutes } from './modules/outside';
import { rootRoutes } from './modules/root';
import { vbenRoutes } from './modules/vben'; import { vbenRoutes } from './modules/vben';
/** 动态路由 */ /** 动态路由 */
const dynamicRoutes: RouteRecordRaw[] = [ const dynamicRoutes: RouteRecordRaw[] = [
// 根路由 // 根路由
{ ...rootRoutes,
component: BasicLayout,
meta: {
hideChildrenInMenu: true,
title: '首页',
},
name: 'Home',
path: '/',
redirect: '/welcome',
children: [
{
name: 'Welcome',
path: '/welcome',
component: () => import('@/views/dashboard/index.vue'),
meta: {
affixTab: true,
title: 'Welcome',
},
},
],
},
...nestedRoutes, ...nestedRoutes,
...outsideRoutes, ...outsideRoutes,
...vbenRoutes, ...vbenRoutes,
...@@ -40,6 +19,6 @@ const dynamicRoutes: RouteRecordRaw[] = [ ...@@ -40,6 +19,6 @@ const dynamicRoutes: RouteRecordRaw[] = [
const externalRoutes: RouteRecordRaw[] = []; const externalRoutes: RouteRecordRaw[] = [];
/** 静态路由列表,访问这些页面可以不需要权限 */ /** 静态路由列表,访问这些页面可以不需要权限 */
const staticRoutes: RouteRecordRaw[] = [...builtinRoutes]; const staticRoutes: RouteRecordRaw[] = [...essentialRoutes];
export { dynamicRoutes, externalRoutes, staticRoutes }; export { dynamicRoutes, externalRoutes, staticRoutes };
import type { RouteRecordRaw } from 'vue-router';
import { BasicLayout } from '@/layouts';
const rootRoutes: RouteRecordRaw[] = [
{
component: BasicLayout,
meta: {
hideChildrenInMenu: true,
title: '首页',
},
name: 'Home',
path: '/',
redirect: '/welcome',
children: [
{
name: 'Welcome',
path: '/welcome',
component: () => import('@/views/dashboard/index.vue'),
meta: {
affixTab: true,
title: 'Welcome',
},
},
],
},
];
export { rootRoutes };
# \_essential
此目录包含应用程序正常运行所需的基本视图。这些视图是应用程序布局中使用的视图。
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-i": "^2.29.1", "eslint-plugin-i": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.6", "eslint-plugin-jsdoc": "^48.2.7",
"eslint-plugin-jsonc": "^2.16.0", "eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-n": "^17.7.0", "eslint-plugin-n": "^17.7.0",
"eslint-plugin-no-only-tests": "^3.1.0", "eslint-plugin-no-only-tests": "^3.1.0",
......
import type { Linter } from 'eslint';
export async function disableds(): Promise<Linter.FlatConfig[]> {
return [
{
files: ['**/__tests__/**/*.?([cm])[jt]s?(x)'],
name: 'disables/test',
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'no-console': 'off',
},
},
{
files: ['**/*.d.ts'],
name: 'disables/dts',
rules: {
'@typescript-eslint/triple-slash-reference': 'off',
},
},
{
files: ['**/*.js', '**/*.mjs', '**/*.cjs'],
name: 'disables/js',
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
},
];
}
...@@ -19,7 +19,6 @@ export async function ignores(): Promise<Linter.FlatConfig[]> { ...@@ -19,7 +19,6 @@ export async function ignores(): Promise<Linter.FlatConfig[]> {
'**/tmp', '**/tmp',
'**/.tmp', '**/.tmp',
'**/.history', '**/.history',
'**/.vitepress/cache',
'**/.nuxt', '**/.nuxt',
'**/.next', '**/.next',
'**/.vercel', '**/.vercel',
...@@ -33,6 +32,9 @@ export async function ignores(): Promise<Linter.FlatConfig[]> { ...@@ -33,6 +32,9 @@ export async function ignores(): Promise<Linter.FlatConfig[]> {
'**/*.min.*', '**/*.min.*',
'**/LICENSE*', '**/LICENSE*',
'**/__snapshots__', '**/__snapshots__',
'**/*.snap',
'**/fixtures/**',
'**/.vitepress/cache/**',
'**/auto-import?(s).d.ts', '**/auto-import?(s).d.ts',
'**/components.d.ts', '**/components.d.ts',
'**/vite.config.mts.*', '**/vite.config.mts.*',
......
export * from './command'; export * from './command';
export * from './comments'; export * from './comments';
export * from './disableds';
export * from './ignores'; export * from './ignores';
export * from './import'; export * from './import';
export * from './javascript'; export * from './javascript';
......
...@@ -3,6 +3,7 @@ import type { Linter } from 'eslint'; ...@@ -3,6 +3,7 @@ import type { Linter } from 'eslint';
import { import {
command, command,
comments, comments,
disableds,
ignores, ignores,
importPluginConfig, importPluginConfig,
javascript, javascript,
...@@ -35,6 +36,7 @@ async function defineConfig(config: FlatConfig[] = []) { ...@@ -35,6 +36,7 @@ async function defineConfig(config: FlatConfig[] = []) {
prettier(), prettier(),
typescript(), typescript(),
jsonc(), jsonc(),
disableds(),
importPluginConfig(), importPluginConfig(),
node(), node(),
perfectionist(), perfectionist(),
......
...@@ -32,6 +32,6 @@ ...@@ -32,6 +32,6 @@
}, },
"dependencies": { "dependencies": {
"prettier": "^3.2.5", "prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14" "prettier-plugin-tailwindcss": "^0.6.0"
} }
} }
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
"./*": "./*" "./*": "./*"
}, },
"dependencies": { "dependencies": {
"@iconify/json": "^2.2.214", "@iconify/json": "^2.2.215",
"@iconify/tailwind": "^1.1.1", "@iconify/tailwind": "^1.1.1",
"@tailwindcss/forms": "^0.5.7", "@tailwindcss/forms": "^0.5.7",
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e", "@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
......
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
], ],
"dependencies": { "dependencies": {
"@vben/types": "workspace:*", "@vben/types": "workspace:*",
"vite": "5.2.11" "vite": "6.0.0-alpha.17"
} }
} }
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
"@types/html-minifier-terser": "^7.0.2", "@types/html-minifier-terser": "^7.0.2",
"@vben/node-utils": "workspace:*", "@vben/node-utils": "workspace:*",
"@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue-jsx": "^3.1.0", "@vitejs/plugin-vue-jsx": "^4.0.0",
"dayjs": "^1.11.11", "dayjs": "^1.11.11",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"rollup-plugin-visualizer": "^5.12.0", "rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.77.2", "sass": "^1.77.4",
"unplugin-turbo-console": "^1.8.6", "unplugin-turbo-console": "^1.8.6",
"vite": "5.2.11", "vite": "6.0.0-alpha.17",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-dts": "^3.9.1", "vite-plugin-dts": "^3.9.1",
"vite-plugin-html": "^3.2.2", "vite-plugin-html": "^3.2.2",
......
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
"devDependencies": { "devDependencies": {
"@changesets/cli": "^2.27.5", "@changesets/cli": "^2.27.5",
"@ls-lint/ls-lint": "^2.2.3", "@ls-lint/ls-lint": "^2.2.3",
"@types/jsdom": "^21.1.6", "@types/jsdom": "^21.1.7",
"@types/node": "^20.12.12", "@types/node": "^20.12.13",
"@vben/commitlint-config": "workspace:*", "@vben/commitlint-config": "workspace:*",
"@vben/eslint-config": "workspace:*", "@vben/eslint-config": "workspace:*",
"@vben/lint-staged-config": "workspace:*", "@vben/lint-staged-config": "workspace:*",
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
"turbo": "^1.13.3", "turbo": "^1.13.3",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"unbuild": "^2.0.0", "unbuild": "^2.0.0",
"vite": "5.2.11", "vite": "6.0.0-alpha.17",
"vitest": "^2.0.0-beta.3", "vitest": "^2.0.0-beta.3",
"vue-tsc": "^2.0.19" "vue-tsc": "^2.0.19"
}, },
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
"node": ">=18.7.0", "node": ">=18.7.0",
"pnpm": ">=8.5.0" "pnpm": ">=8.5.0"
}, },
"packageManager": "pnpm@9.1.3", "packageManager": "pnpm@9.1.4",
"pnpm": { "pnpm": {
"overrides": { "overrides": {
"@ctrl/tinycolor": "4.1.0", "@ctrl/tinycolor": "4.1.0",
......
...@@ -61,6 +61,8 @@ interface Preference { ...@@ -61,6 +61,8 @@ interface Preference {
footerFixed: boolean; footerFixed: boolean;
/** 页脚是否可见 */ /** 页脚是否可见 */
footerVisible: boolean; footerVisible: boolean;
/** 顶栏是否隐藏 */
headerHidden: boolean;
/** header显示模式 */ /** header显示模式 */
headerMode: LayoutHeaderMode; headerMode: LayoutHeaderMode;
/** 顶栏是否可见 */ /** 顶栏是否可见 */
...@@ -103,6 +105,8 @@ interface Preference { ...@@ -103,6 +105,8 @@ interface Preference {
sideExpandOnHover: boolean; sideExpandOnHover: boolean;
/** 侧边栏扩展区域是否折叠 */ /** 侧边栏扩展区域是否折叠 */
sideExtraCollapse: boolean; sideExtraCollapse: boolean;
/** 侧边栏是否隐藏 */
sideHidden: boolean;
/** 侧边栏是否可见 */ /** 侧边栏是否可见 */
sideVisible: boolean; sideVisible: boolean;
/** 侧边栏宽度 */ /** 侧边栏宽度 */
......
...@@ -112,7 +112,7 @@ function handleOpenMenu() { ...@@ -112,7 +112,7 @@ function handleOpenMenu() {
<template> <template>
<header <header
:style="style" :style="style"
class="border-border top-0 flex w-full flex-[0_0_auto] items-center border-b" class="border-border top-0 flex w-full flex-[0_0_auto] items-center border-b transition-[margin-top] duration-200"
> >
<div v-if="slots.logo" :style="logoStyle"> <div v-if="slots.logo" :style="logoStyle">
<slot name="logo"></slot> <slot name="logo"></slot>
......
...@@ -136,11 +136,11 @@ const style = computed((): CSSProperties => { ...@@ -136,11 +136,11 @@ const style = computed((): CSSProperties => {
}); });
const extraStyle = computed((): CSSProperties => { const extraStyle = computed((): CSSProperties => {
const { extraBackgroundColor, extraWidth, width, zIndex } = props; const { extraBackgroundColor, extraWidth, show, width, zIndex } = props;
return { return {
backgroundColor: extraBackgroundColor, backgroundColor: extraBackgroundColor,
left: `${width}px`, left: `${width}px`,
width: extraVisible.value ? `${extraWidth}px` : 0, width: extraVisible.value && show ? `${extraWidth}px` : 0,
zIndex, zIndex,
}; };
}); });
...@@ -156,9 +156,6 @@ const extraTitleStyle = computed((): CSSProperties => { ...@@ -156,9 +156,6 @@ const extraTitleStyle = computed((): CSSProperties => {
const contentWidthStyle = computed((): CSSProperties => { const contentWidthStyle = computed((): CSSProperties => {
const { collapseWidth, fixedExtra, isSideMixed, mixedWidth } = props; const { collapseWidth, fixedExtra, isSideMixed, mixedWidth } = props;
if (isSideMixed && fixedExtra) { if (isSideMixed && fixedExtra) {
// if (!extraVisible.value) {
// return {};
// }
return { width: `${collapse.value ? collapseWidth : mixedWidth}px` }; return { width: `${collapse.value ? collapseWidth : mixedWidth}px` };
} }
return {}; return {};
...@@ -204,14 +201,6 @@ watchEffect(() => { ...@@ -204,14 +201,6 @@ watchEffect(() => {
extraVisible.value = props.fixedExtra ? true : extraVisible.value; extraVisible.value = props.fixedExtra ? true : extraVisible.value;
}); });
// onClickOutside(asideRef, (event) => {
// const { fixedExtra, width } = props;
// // 防止点击 aside 区域关闭
// if (!fixedExtra && event.clientX >= width && extraVisible.value) {
// extraVisible.value = false;
// }
// });
function calcMenuWidthStyle(isHiddenDom: boolean): CSSProperties { function calcMenuWidthStyle(isHiddenDom: boolean): CSSProperties {
const { backgroundColor, extraWidth, fixedExtra, isSideMixed, show, width } = const { backgroundColor, extraWidth, fixedExtra, isSideMixed, show, width } =
props; props;
...@@ -294,6 +283,7 @@ function handleScroll(event: Event) { ...@@ -294,6 +283,7 @@ function handleScroll(event: Event) {
v-if="isSideMixed" v-if="isSideMixed"
ref="asideRef" ref="asideRef"
:class="e('extra')" :class="e('extra')"
class="transition-[width] duration-200"
:style="extraStyle" :style="extraStyle"
> >
<SideCollapseButton <SideCollapseButton
......
...@@ -78,6 +78,11 @@ interface VbenLayoutProps { ...@@ -78,6 +78,11 @@ interface VbenLayoutProps {
*/ */
headerHeightOffset?: number; headerHeightOffset?: number;
/** /**
* 顶栏是否隐藏
* @default false
*/
headerHidden?: boolean;
/**
* header 显示模式 * header 显示模式
* @default 'fixed' * @default 'fixed'
*/ */
...@@ -118,6 +123,11 @@ interface VbenLayoutProps { ...@@ -118,6 +123,11 @@ interface VbenLayoutProps {
*/ */
sideCollapseWidth?: number; sideCollapseWidth?: number;
/** /**
* 侧边栏是否隐藏
* @default false
*/
sideHidden?: boolean;
/**
* 混合侧边扩展区域是否可见 * 混合侧边扩展区域是否可见
* @default false * @default false
*/ */
......
...@@ -33,6 +33,7 @@ const props = withDefaults(defineProps<Props>(), { ...@@ -33,6 +33,7 @@ const props = withDefaults(defineProps<Props>(), {
// headerBackgroundColor: 'hsl(var(--color-background))', // headerBackgroundColor: 'hsl(var(--color-background))',
headerHeight: 50, headerHeight: 50,
headerHeightOffset: 10, headerHeightOffset: 10,
headerHidden: false,
headerMode: 'fixed', headerMode: 'fixed',
headerVisible: true, headerVisible: true,
...@@ -41,6 +42,7 @@ const props = withDefaults(defineProps<Props>(), { ...@@ -41,6 +42,7 @@ const props = withDefaults(defineProps<Props>(), {
sideCollapseShowTitle: false, sideCollapseShowTitle: false,
// sideCollapse: false, // sideCollapse: false,
sideCollapseWidth: 60, sideCollapseWidth: 60,
sideHidden: false,
sideMixedWidth: 80, sideMixedWidth: 80,
sideSemiDark: true, sideSemiDark: true,
sideTheme: 'dark', sideTheme: 'dark',
...@@ -68,7 +70,7 @@ const { y: mouseY } = useMouse({ type: 'client' }); ...@@ -68,7 +70,7 @@ const { y: mouseY } = useMouse({ type: 'client' });
// side是否处于hover状态展开菜单中 // side是否处于hover状态展开菜单中
const sideExpandOnHovering = ref(false); const sideExpandOnHovering = ref(false);
const sideHidden = ref(false); // const sideHidden = ref(false);
const headerIsHidden = ref(false); const headerIsHidden = ref(false);
const realLayout = computed(() => { const realLayout = computed(() => {
...@@ -104,11 +106,11 @@ const isHeaderAuto = computed(() => props.headerMode === 'auto'); ...@@ -104,11 +106,11 @@ const isHeaderAuto = computed(() => props.headerMode === 'auto');
* header区域高度 * header区域高度
*/ */
const getHeaderHeight = computed(() => { const getHeaderHeight = computed(() => {
const { headerHeight, headerHeightOffset, headerVisible } = props; const { headerHeight, headerHeightOffset } = props;
if (!headerVisible) { // if (!headerVisible) {
return 0; // return 0;
} // }
// 顶部存在导航时,增加10 // 顶部存在导航时,增加10
const offset = isMixedNav.value || isHeaderNav.value ? headerHeightOffset : 0; const offset = isMixedNav.value || isHeaderNav.value ? headerHeightOffset : 0;
...@@ -118,7 +120,7 @@ const getHeaderHeight = computed(() => { ...@@ -118,7 +120,7 @@ const getHeaderHeight = computed(() => {
const headerWrapperHeight = computed(() => { const headerWrapperHeight = computed(() => {
let height = 0; let height = 0;
if (props.headerVisible) { if (props.headerVisible && !props.headerHidden) {
height += getHeaderHeight.value; height += getHeaderHeight.value;
} }
if (props.tabsVisible) { if (props.tabsVisible) {
...@@ -154,12 +156,16 @@ const sidePaddingTop = computed(() => { ...@@ -154,12 +156,16 @@ const sidePaddingTop = computed(() => {
* 动态获取侧边宽度 * 动态获取侧边宽度
*/ */
const getSideWidth = computed(() => { const getSideWidth = computed(() => {
const { isMobile, sideMixedWidth, sideWidth } = props; const { isMobile, sideHidden, sideMixedWidth, sideWidth } = props;
let width = 0; let width = 0;
if (sideHidden) {
return width;
}
if ( if (
!sideVisibleState.value || !sideVisibleState.value ||
(sideHidden.value && !isSideMixedNav.value && !isMixedNav.value) (sideHidden && !isSideMixedNav.value && !isMixedNav.value)
) { ) {
return width; return width;
} }
...@@ -190,6 +196,9 @@ const isSideMode = computed(() => ...@@ -190,6 +196,9 @@ const isSideMode = computed(() =>
); );
const showSide = computed(() => { const showSide = computed(() => {
// if (isMixedNav.value && !props.sideHidden) {
// return false;
// }
return isSideMode.value && sideVisible.value; return isSideMode.value && sideVisible.value;
}); });
...@@ -441,7 +450,7 @@ function handleClickMask() { ...@@ -441,7 +450,7 @@ function handleClickMask() {
function handleToggleMenu() { function handleToggleMenu() {
// sideVisible.value = !sideVisible.value; // sideVisible.value = !sideVisible.value;
sideHidden.value = !sideHidden.value; // sideHidden.value = !sideHidden.value;
} }
function handleOpenMenu() { function handleOpenMenu() {
...@@ -452,7 +461,7 @@ function handleOpenMenu() { ...@@ -452,7 +461,7 @@ function handleOpenMenu() {
<template> <template>
<div class="relative flex min-h-full w-full"> <div class="relative flex min-h-full w-full">
<slot name="preference"></slot> <slot name="preference"></slot>
<slot name="back-top"></slot> <slot name="floating-button-group"></slot>
<LayoutSide <LayoutSide
v-if="sideVisibleState" v-if="sideVisibleState"
v-model:collapse="sideCollapse" v-model:collapse="sideCollapse"
...@@ -498,13 +507,13 @@ function handleOpenMenu() { ...@@ -498,13 +507,13 @@ function handleOpenMenu() {
> >
<div <div
:style="headerWrapperStyle" :style="headerWrapperStyle"
class="overflow-hidden transition-all duration-200 ease-in-out" class="overflow-hidden transition-all duration-200"
> >
<LayoutHeader <LayoutHeader
v-if="headerVisible" v-if="headerVisible"
:full-width="!isSideMode" :full-width="!isSideMode"
:height="getHeaderHeight" :height="getHeaderHeight"
:show="!fullContent" :show="!fullContent && !headerHidden"
:side-hidden="sideHidden" :side-hidden="sideHidden"
:show-toggle-btn="showHeaderToggleButton" :show-toggle-btn="showHeaderToggleButton"
:width="mainStyle.width" :width="mainStyle.width"
...@@ -531,7 +540,7 @@ function handleOpenMenu() { ...@@ -531,7 +540,7 @@ function handleOpenMenu() {
<!-- </div> --> <!-- </div> -->
<LayoutContent <LayoutContent
class="transition-[margin-top] duration-300 ease-in" class="transition-[margin-top] duration-200"
:style="contentStyle" :style="contentStyle"
:content-compact="contentCompact" :content-compact="contentCompact"
:content-compact-width="contentCompactWidth" :content-compact-width="contentCompactWidth"
......
...@@ -14,6 +14,7 @@ defineOptions({ name: 'BackTop' }); ...@@ -14,6 +14,7 @@ defineOptions({ name: 'BackTop' });
const props = withDefaults(defineProps<Props>(), { const props = withDefaults(defineProps<Props>(), {
bottom: 40, bottom: 40,
isGroup: false,
right: 40, right: 40,
target: '', target: '',
visibilityHeight: 200, visibilityHeight: 200,
...@@ -31,7 +32,7 @@ const { handleClick, visible } = useBackTop(props); ...@@ -31,7 +32,7 @@ const { handleClick, visible } = useBackTop(props);
<VbenButton <VbenButton
v-if="visible" v-if="visible"
:style="backTopStyle" :style="backTopStyle"
class="bg-accent fixed bottom-5 right-5 h-10 w-10 rounded-full" class="bg-accent data fixed bottom-10 right-5 h-10 w-10 rounded-full"
size="icon" size="icon"
variant="icon" variant="icon"
@click="handleClick" @click="handleClick"
......
...@@ -31,6 +31,7 @@ export const backtopProps = { ...@@ -31,6 +31,7 @@ export const backtopProps = {
export interface BacktopProps { export interface BacktopProps {
bottom?: number; bottom?: number;
isGroup?: boolean;
right?: number; right?: number;
target?: string; target?: string;
visibilityHeight?: number; visibilityHeight?: number;
......
<script setup>
import { ref } from 'vue';
const isMenuOpen = ref(false);
const menuItems = ref(['1', '2', '3', '4']);
const toggleMenu = () => {
isMenuOpen.value = !isMenuOpen.value;
};
const handleMenuItemClick = (_item) => {
// console.log(111, item);
};
</script>
<template>
<div class="fixed bottom-5 right-5 flex flex-col-reverse items-center gap-2">
<button
class="flex h-12 w-12 items-center justify-center rounded-full bg-blue-500 text-xl text-white transition-transform duration-300"
:class="{ 'rotate-45': isMenuOpen }"
@click="toggleMenu"
>
✖
</button>
<div
class="absolute bottom-16 right-0 flex flex-col-reverse gap-2 transition-all duration-300"
:class="{
'visible translate-y-0 opacity-100': isMenuOpen,
'invisible translate-y-2 opacity-0': !isMenuOpen,
}"
>
<button
v-for="(item, index) in menuItems"
:key="index"
class="flex h-12 w-12 items-center justify-center rounded-full bg-blue-500 text-xl text-white"
@click="handleMenuItemClick(item)"
>
{{ item }}
</button>
</div>
</div>
</template>
<style scoped>
/* 可以在这里添加任何需要的额外样式 */
</style>
export { default as VbenFloatingButtonGroup } from './floating-button-group.vue';
...@@ -7,6 +7,7 @@ export * from './button'; ...@@ -7,6 +7,7 @@ export * from './button';
export * from './checkbox'; export * from './checkbox';
export * from './context-menu'; export * from './context-menu';
export * from './dropdown-menu'; export * from './dropdown-menu';
export * from './floating-button-group';
export * from './full-screen'; export * from './full-screen';
export * from './hover-card'; export * from './hover-card';
export * from './icon'; export * from './icon';
......
<script setup lang="ts"> <script setup lang="ts">
import { computed } from 'vue'; import { computed } from 'vue';
import { VbenAvatar } from '../avatar';
interface Props { interface Props {
/** /**
* Logo 图标 alt * Logo 图标 alt
...@@ -42,7 +40,7 @@ const props = withDefaults(defineProps<Props>(), { ...@@ -42,7 +40,7 @@ const props = withDefaults(defineProps<Props>(), {
alt: 'Vben', alt: 'Vben',
collapse: false, collapse: false,
href: 'javascript:void 0', href: 'javascript:void 0',
logoSize: 32, logoSize: 36,
src: '', src: '',
text: '', text: '',
theme: 'light', theme: 'light',
...@@ -59,13 +57,12 @@ const logoClass = computed(() => { ...@@ -59,13 +57,12 @@ const logoClass = computed(() => {
class="flex h-full items-center gap-2 overflow-hidden px-3 font-semibold leading-normal transition-all duration-500" class="flex h-full items-center gap-2 overflow-hidden px-3 font-semibold leading-normal transition-all duration-500"
:class="$attrs.class" :class="$attrs.class"
> >
<VbenAvatar <img
v-if="src" v-if="src"
:src="src" :src="src"
:alt="alt" :alt="alt"
:height="logoSize"
:width="logoSize" :width="logoSize"
class="relative size-9 rounded-none bg-transparent" class="relative rounded-none bg-transparent"
/> />
<span <span
v-if="!collapse" v-if="!collapse"
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
opacity: 0; opacity: 0;
transform: translateX(30px) skewX(-30deg); transform: translateX(30px) skewX(-30deg);
} }
/* /*
.breadcrumb-transition-move, .breadcrumb-transition-move,
.breadcrumb-transition-enter-active { .breadcrumb-transition-enter-active {
......
<script lang="ts" setup> <script lang="ts" setup>
import { VbenAdminLayout } from '@vben-core/layout-ui'; import { VbenAdminLayout } from '@vben-core/layout-ui';
import { VbenBackTop, VbenLogo } from '@vben-core/shadcn-ui'; import {
VbenBackTop,
// VbenFloatingButtonGroup,
VbenLogo,
} from '@vben-core/shadcn-ui';
import { mapTree } from '@vben-core/toolkit'; import { mapTree } from '@vben-core/toolkit';
import { MenuRecordRaw } from '@vben-core/typings'; import { MenuRecordRaw } from '@vben-core/typings';
...@@ -107,9 +111,11 @@ function wrapperMenus(menus: MenuRecordRaw[]) { ...@@ -107,9 +111,11 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
:footer-fixed="preference.footerFixed" :footer-fixed="preference.footerFixed"
:side-semi-dark="preference.semiDarkMenu" :side-semi-dark="preference.semiDarkMenu"
:side-theme="theme" :side-theme="theme"
:side-hidden="preference.sideHidden"
:side-visible="sideVisible" :side-visible="sideVisible"
:footer-visible="preference.footerVisible" :footer-visible="preference.footerVisible"
:header-visible="preference.headerVisible" :header-visible="preference.headerVisible"
:header-hidden="preference.headerHidden"
:side-width="preference.sideWidth" :side-width="preference.sideWidth"
:tabs-visible="preference.tabsVisible" :tabs-visible="preference.tabsVisible"
:side-expand-on-hover="preference.sideExpandOnHover" :side-expand-on-hover="preference.sideExpandOnHover"
...@@ -131,8 +137,9 @@ function wrapperMenus(menus: MenuRecordRaw[]) { ...@@ -131,8 +137,9 @@ function wrapperMenus(menus: MenuRecordRaw[]) {
<PreferenceWidget /> <PreferenceWidget />
</template> </template>
<template #back-top> <template #floating-button-group>
<VbenBackTop /> <VbenBackTop />
<!-- <VbenFloatingButtonGroup /> -->
</template> </template>
<!-- logo --> <!-- logo -->
......
...@@ -17,8 +17,8 @@ const menus = computed(() => { ...@@ -17,8 +17,8 @@ const menus = computed(() => {
function handleScreenChange(screen: boolean) { function handleScreenChange(screen: boolean) {
updatePreference({ updatePreference({
headerVisible: !screen, headerHidden: !!screen,
sideVisible: !screen, sideHidden: !!screen,
}); });
} }
</script> </script>
...@@ -27,7 +27,7 @@ function handleScreenChange(screen: boolean) { ...@@ -27,7 +27,7 @@ function handleScreenChange(screen: boolean) {
<div class="flex-center h-full"> <div class="flex-center h-full">
<TabsMore :menus="menus" /> <TabsMore :menus="menus" />
<TabsScreen <TabsScreen
:screen="!preference.headerVisible && !preference.sideVisible" :screen="preference.sideHidden && preference.sideHidden"
@change="handleScreenChange" @change="handleScreenChange"
@update:screen="handleScreenChange" @update:screen="handleScreenChange"
/> />
......
/**
* @zh_CN 登陆页面 url 地址
*/
const LOGIN_PATH = '/auth/login';
/**
* @zh_CN 登陆页面路由名称
*/
const LOGIN_NAME = 'Login';
export { LOGIN_NAME, LOGIN_PATH };
export * from './_essential';
export * from './vben'; export * from './vben';
export const VBEN_GITHUB_URL = 'https://github.com/vbenjs/vue-vben-admin'; /**
* @zh_CN GITHUB 仓库地址
*/
const VBEN_GITHUB_URL = 'https://github.com/vbenjs/vue-vben-admin';
export { VBEN_GITHUB_URL };
...@@ -38,6 +38,59 @@ search: ...@@ -38,6 +38,59 @@ search:
no-recent: No recent searches no-recent: No recent searches
recent: Recent recent: Recent
authentication:
layout-title: Plug-and-play backend system
layout-desc: Efficient, versatile frontend template
login-success: Login successful
login-success-desc: Welcome back
welcome-back: Welcome Back
login-subtitle: Enter your account details to manage your projects
username: Username
password: Password
username-tip: Username is required
password-tip: Password is required
account-tip: Don't have an account yet?
create-an-account: Create an account
create-account: Create account
already-account: Already have an account?
remember-me: Remember Me
sign-up: Sign Up
sign-up-subtitle: Make managing your applications simple and fun
comfirm-password: Comfirm Password
comfirm-password-tip: The passwords entered twice do not match
sign-up-agree: I agree to
sign-up-privacy-policy: Privacy-policy
sign-up-terms: Terms
sign-up-agree-tip: Please agree to the Privacy Policy and Terms
go-login: Login instead
password-strength: Use 8 or more characters with a mix of letters, numbers & symbols
forget-password: Forget Password?
forget-password-subtitle: Enter your email and we'll send you instructions to reset your password
email-tip: Email is required
send-reset-link: Send Reset Link
email: Email
qrcode-subtitle: Please scan the QR code to log in on your mobile device
qrcode-prompt: Scanning the code to complete the login
qrcode-login: QR Login
code-subtitle: Please enter your phone number to start managing your projects
code: Security code
code-tip: Security code is required
mobile: Mobile
mobile-login: Mobile Login
mobile-tip: Mobile is required
send-code: Get Security code
send-text: "Reacquire in {0}s"
third-party-login: Or continue with
page:
about: About
document: Document
login: Login
register: Register
code-login: Code Login
qrcode-login: Qrcode Login
forget-password: Forget Password
preference: preference:
preferences: Preferences preferences: Preferences
preferences-subtitle: Customize Preferences & Preview in Real Time preferences-subtitle: Customize Preferences & Preview in Real Time
...@@ -111,51 +164,3 @@ preference: ...@@ -111,51 +164,3 @@ preference:
footer-visible: Display Footer footer-visible: Display Footer
logo-visible: Display Logo logo-visible: Display Logo
reset-tip: The data has changed, click to reset reset-tip: The data has changed, click to reset
authentication:
layout-title: Plug-and-play backend system
layout-desc: Efficient, versatile frontend template
login-success: Login successful
login-success-desc: Welcome back
welcome-back: Welcome Back
login-subtitle: Enter your account details to manage your projects
username: Username
password: Password
username-tip: Username is required
password-tip: Password is required
account-tip: Don't have an account yet?
create-an-account: Create an account
create-account: Create account
already-account: Already have an account?
remember-me: Remember Me
sign-up: Sign Up
sign-up-subtitle: Make managing your applications simple and fun
comfirm-password: Comfirm Password
comfirm-password-tip: The passwords entered twice do not match
sign-up-agree: I agree to
sign-up-privacy-policy: Privacy-policy
sign-up-terms: Terms
sign-up-agree-tip: Please agree to the Privacy Policy and Terms
go-login: Login instead
password-strength: Use 8 or more characters with a mix of letters, numbers & symbols
forget-password: Forget Password?
forget-password-subtitle: Enter your email and we'll send you instructions to reset your password
email-tip: Email is required
send-reset-link: Send Reset Link
email: Email
qrcode-subtitle: Please scan the QR code to log in on your mobile device
qrcode-prompt: Scanning the code to complete the login
qrcode-login: QR Login
code-subtitle: Please enter your phone number to start managing your projects
code: Security code
code-tip: Security code is required
mobile: Mobile
mobile-login: Mobile Login
mobile-tip: Mobile is required
send-code: Get Security code
send-text: "Reacquire in {0}s"
third-party-login: Or continue with
page:
about: About
document: Document
...@@ -37,6 +37,59 @@ search: ...@@ -37,6 +37,59 @@ search:
no-recent: 没有搜索历史 no-recent: 没有搜索历史
recent: 搜索历史 recent: 搜索历史
authentication:
layout-title: 开箱即用的大型中后台管理系统
layout-desc: 工程化、高性能、跨组件库的前端模版
login-success: 登录成功
login-success-desc: 欢迎回来
welcome-back: 欢迎回来
login-subtitle: 请输入您的帐户信息以开始管理您的项目
username: 账号
password: 密码
username-tip: 请输入用户名
password-tip: 请输入用户名
remember-me: 记住账号
create-an-account: 创建一个账号
create-account: 创建账号
already-account: 已经有账号了?
account-tip: 还没有账号?
sign-up: 注册
sign-up-subtitle: 让您的应用程序管理变得简单而有趣
comfirm-password: 确认密码
comfirm-password-tip: 两次输入的密码不一致
sign-up-agree: 我同意
sign-up-privacy-policy: 隐私政策
sign-up-terms: 条款
sign-up-agree-tip: 请同意隐私政策和条款
go-login: 去登录
password-strength: 使用 8 个或更多字符,混合字母、数字和符号
forget-password: 忘记密码?
forget-password-subtitle: 输入您的电子邮件,我们将向您发送重置密码的连接
email-tip: 请输入邮箱
send-reset-link: 发送重置链接
email: 邮箱
qrcode-subtitle: 请用手机扫描二维码登录
qrcode-prompt: 扫码后点击 '确认',即可完成登录
qrcode-login: 扫码登录
code-subtitle: 请输入您的手机号码以开始管理您的项目
code: 验证码
code-tip: 请输入验证码
mobile: 手机号码
mobile-login: 手机号登录
mobile-tip: 请输入手机号码
send-code: 获取验证码
send-text: "{0}秒后重新获取"
third-party-login: 其他登录方式
page:
about: 关于
document: 文档
login: 登陆
register: 注册
code-login: 验证码登陆
qrcode-login: 二维码登陆
forget-password: 忘记密码
preference: preference:
preferences: 偏好设置 preferences: 偏好设置
preferences-subtitle: 自定义偏好设置 & 实时预览 preferences-subtitle: 自定义偏好设置 & 实时预览
...@@ -110,51 +163,3 @@ preference: ...@@ -110,51 +163,3 @@ preference:
footer-fixed: 固定在底部 footer-fixed: 固定在底部
logo-visible: 显示 Logo logo-visible: 显示 Logo
reset-tip: 数据有变化,点击可进行重置 reset-tip: 数据有变化,点击可进行重置
authentication:
layout-title: 开箱即用的大型中后台管理系统
layout-desc: 工程化、高性能、跨组件库的前端模版
login-success: 登录成功
login-success-desc: 欢迎回来
welcome-back: 欢迎回来
login-subtitle: 请输入您的帐户信息以开始管理您的项目
username: 账号
password: 密码
username-tip: 请输入用户名
password-tip: 请输入用户名
remember-me: 记住账号
create-an-account: 创建一个账号
create-account: 创建账号
already-account: 已经有账号了?
account-tip: 还没有账号?
sign-up: 注册
sign-up-subtitle: 让您的应用程序管理变得简单而有趣
comfirm-password: 确认密码
comfirm-password-tip: 两次输入的密码不一致
sign-up-agree: 我同意
sign-up-privacy-policy: 隐私政策
sign-up-terms: 条款
sign-up-agree-tip: 请同意隐私政策和条款
go-login: 去登录
password-strength: 使用 8 个或更多字符,混合字母、数字和符号
forget-password: 忘记密码?
forget-password-subtitle: 输入您的电子邮件,我们将向您发送重置密码的连接
email-tip: 请输入邮箱
send-reset-link: 发送重置链接
email: 邮箱
qrcode-subtitle: 请用手机扫描二维码登录
qrcode-prompt: 扫码后点击 '确认',即可完成登录
qrcode-login: 扫码登录
code-subtitle: 请输入您的手机号码以开始管理您的项目
code: 验证码
code-tip: 请输入验证码
mobile: 手机号码
mobile-login: 手机号登录
mobile-tip: 请输入手机号码
send-code: 获取验证码
send-text: "{0}秒后重新获取"
third-party-login: 其他登录方式
page:
about: 关于
document: 文档
...@@ -15,17 +15,18 @@ const defaultPreference: Preference = { ...@@ -15,17 +15,18 @@ const defaultPreference: Preference = {
contentCompact: 'wide', contentCompact: 'wide',
copyright: 'Copyright © 2024 Vben Admin PRO', copyright: 'Copyright © 2024 Vben Admin PRO',
defaultAvatar: defaultAvatar:
'https://cdn.jsdelivr.net/gh/vbenjs/vben-cdn-static@0.1.2/vben-admin/pro-avatar.webp', 'https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.0/source/avatar-v1.webp',
dynamicTitle: true, dynamicTitle: true,
footerFixed: true, footerFixed: true,
footerVisible: true, footerVisible: true,
headerHidden: false,
headerMode: 'fixed', headerMode: 'fixed',
headerVisible: true, headerVisible: true,
isMobile: false, isMobile: false,
keepAlive: true, keepAlive: true,
layout: 'side-nav', layout: 'side-nav',
locale: 'zh-CN', locale: 'zh-CN',
logo: 'https://cdn.jsdelivr.net/gh/vbenjs/vben-cdn-static@0.1.2/vben-admin/admin-logo.png', logo: 'https://cdn.jsdelivr.net/npm/@vbenjs/static-source@0.1.0/source/logo-v1.webp',
logoVisible: true, logoVisible: true,
navigationAccordion: true, navigationAccordion: true,
navigationSplit: true, navigationSplit: true,
...@@ -40,6 +41,7 @@ const defaultPreference: Preference = { ...@@ -40,6 +41,7 @@ const defaultPreference: Preference = {
sideCollapseShowTitle: true, sideCollapseShowTitle: true,
sideExpandOnHover: true, sideExpandOnHover: true,
sideExtraCollapse: true, sideExtraCollapse: true,
sideHidden: false,
sideVisible: true, sideVisible: true,
sideWidth: 240, sideWidth: 240,
tabsIcon: true, tabsIcon: true,
......
// #!/bin/bash
// #/ Usage: script/update-dependencies
// #/ Create a branch to update a dependency.
// # Delete update-dependencies branch if it exists
// if git branch | grep -q "update-dependencies"; then
// echo "Deleting update-dependencies branch 🗑"
// git branch -D update-dependencies
// echo "Branch deleted 🎉"
// fi
// # Create update-dependencies branch
// echo "Creating update-dependencies branch 🌱"
// git checkout -b update-dependencies
// echo "Branch created 🎉"
// # Update dependencies in package.json
// echo "Updating dependencies in package.json 📦"
// pnpm update --interactive --recursive --latest
// # Clean up pnpm-lock.yaml file and install dependencies
// script/clean && pnpm install
// # Git operations
// git add -A
// git commit -am "chore: update dependencies 📦"
// git push origin update-dependencies
// gh pr create --fill
// echo "Dependencies updated 🎉"
...@@ -15,7 +15,6 @@ async function runLint({ format }: LintCommandOptions) { ...@@ -15,7 +15,6 @@ async function runLint({ format }: LintCommandOptions) {
await $`stylelint "**/*.{vue,css,less.scss}" --cache --fix`; await $`stylelint "**/*.{vue,css,less.scss}" --cache --fix`;
await $`eslint . --cache --fix`; await $`eslint . --cache --fix`;
await $`prettier . --write --cache`; await $`prettier . --write --cache`;
// await $`vsh publint --check`;
return; return;
} }
...@@ -24,7 +23,6 @@ async function runLint({ format }: LintCommandOptions) { ...@@ -24,7 +23,6 @@ async function runLint({ format }: LintCommandOptions) {
// $`ls-lint`, // $`ls-lint`,
$`prettier . --ignore-unknown --check --cache`, $`prettier . --ignore-unknown --check --cache`,
$`stylelint "**/*.{vue,css,less.scss}" --cache`, $`stylelint "**/*.{vue,css,less.scss}" --cache`,
// $`vsh publint --check`,
]); ]);
} }
......
...@@ -25,6 +25,10 @@ ...@@ -25,6 +25,10 @@
"cache": false, "cache": false,
"persistent": true "persistent": true
}, },
"typecheck": {} "typecheck": {
"outputs": [],
"outputMode": "errors-only"
// "outputMode": "new-only"
}
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!