Skip to content

Commit bed5298

Browse files
committed
fix: lint
1 parent 655ce2c commit bed5298

File tree

135 files changed

+203
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+203
-215
lines changed

apps/web-antd/src/views/dashboard/analytics/analytics-visits-sales.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ onMounted(() => {
2424
{ name: '定制', value: 310 },
2525
{ name: '技术支持', value: 274 },
2626
{ name: '远程', value: 400 },
27-
].sort((a, b) => {
27+
].toSorted((a, b) => {
2828
return a.value - b.value;
2929
}),
3030
name: '商业占比',

apps/web-ele/src/views/dashboard/analytics/analytics-visits-sales.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ onMounted(() => {
2424
{ name: '定制', value: 310 },
2525
{ name: '技术支持', value: 274 },
2626
{ name: '远程', value: 400 },
27-
].sort((a, b) => {
27+
].toSorted((a, b) => {
2828
return a.value - b.value;
2929
}),
3030
name: '商业占比',

apps/web-naive/src/views/dashboard/analytics/analytics-visits-sales.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ onMounted(() => {
2424
{ name: '定制', value: 310 },
2525
{ name: '技术支持', value: 274 },
2626
{ name: '远程', value: 400 },
27-
].sort((a, b) => {
27+
].toSorted((a, b) => {
2828
return a.value - b.value;
2929
}),
3030
name: '商业占比',

apps/web-tdesign/src/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script lang="ts" setup>
22
import type { GlobalConfigProvider } from 'tdesign-vue-next';
3-
import { ConfigProvider } from 'tdesign-vue-next';
43
54
import { onMounted } from 'vue';
65
76
import { usePreferences } from '@vben/preferences';
87
98
import { merge } from 'es-toolkit/compat';
9+
import { ConfigProvider } from 'tdesign-vue-next';
1010
import zhConfig from 'tdesign-vue-next/es/locale/zh_CN';
1111
1212
defineOptions({ name: 'App' });

apps/web-tdesign/src/bootstrap.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import { registerLoadingDirective } from '@vben/common-ui/es/loading';
55
import { preferences } from '@vben/preferences';
66
import { initStores } from '@vben/stores';
77
import '@vben/styles';
8-
// import '@vben/styles/antd';
9-
// 引入组件库的少量全局样式变量
10-
import 'tdesign-vue-next/es/style/index.css';
8+
119
import { useTitle } from '@vueuse/core';
1210

1311
import { $t, setupI18n } from '#/locales';
@@ -17,6 +15,10 @@ import { initSetupVbenForm } from './adapter/form';
1715
import App from './app.vue';
1816
import { router } from './router';
1917

18+
// import '@vben/styles/antd';
19+
// 引入组件库的少量全局样式变量
20+
import 'tdesign-vue-next/es/style/index.css';
21+
2022
async function bootstrap(namespace: string) {
2123
// 初始化组件适配器
2224
await initComponentAdapter();

apps/web-tdesign/src/views/dashboard/analytics/analytics-visits-sales.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ onMounted(() => {
2424
{ name: '定制', value: 310 },
2525
{ name: '技术支持', value: 274 },
2626
{ name: '远程', value: 400 },
27-
].sort((a, b) => {
27+
].toSorted((a, b) => {
2828
return a.value - b.value;
2929
}),
3030
name: '商业占比',

docs/.vitepress/components/demo-preview.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ const parsedFiles = computed(() => {
1919
</script>
2020

2121
<template>
22-
<div class="border-border shadow-float relative rounded-xl border">
22+
<div class="relative rounded-xl border border-border shadow-float">
2323
<div
2424
class="not-prose relative w-full overflow-x-auto rounded-t-lg px-4 py-6"
2525
>
2626
<div class="flex w-full max-w-[700px] px-2">
2727
<ClientOnly>
2828
<slot v-if="parsedFiles.length > 0"></slot>
29-
<div v-else class="text-destructive text-sm">
30-
<span class="bg-destructive text-foreground rounded-sm px-1 py-1">
29+
<div v-else class="text-sm text-destructive">
30+
<span class="rounded-sm bg-destructive px-1 py-1 text-foreground">
3131
ERROR:
3232
</span>
3333
The preview directory does not exist. Please check the 'dir'

docs/.vitepress/components/preview-group.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ const toggleOpen = () => {
4848
<template>
4949
<TabsRoot
5050
v-model="currentTab"
51-
class="bg-background-deep border-border overflow-hidden rounded-b-xl border-t"
51+
class="overflow-hidden rounded-b-xl border-t border-border bg-background-deep"
5252
@update:model-value="open = true"
5353
>
54-
<div class="border-border bg-background flex border-b-2 pr-2">
54+
<div class="flex border-b-2 border-border bg-background pr-2">
5555
<div class="flex w-full items-center justify-between text-[13px]">
5656
<TabsList class="relative flex">
5757
<template v-if="open">
@@ -64,7 +64,7 @@ const toggleOpen = () => {
6464
v-for="(tab, index) in tabs"
6565
:key="index"
6666
:value="tab.label"
67-
class="border-box text-foreground px-4 py-3 data-[state=active]:text-[var(--vp-c-indigo-1)]"
67+
class="border-box px-4 py-3 text-foreground data-[state=active]:text-[var(--vp-c-indigo-1)]"
6868
tabindex="-1"
6969
>
7070
{{ tab.label }}
@@ -81,7 +81,7 @@ const toggleOpen = () => {
8181
<VbenTooltip side="top">
8282
<template #trigger>
8383
<Code
84-
class="hover:bg-accent size-7 cursor-pointer rounded-full p-1.5"
84+
class="size-7 cursor-pointer rounded-full p-1.5 hover:bg-accent"
8585
@click="toggleOpen"
8686
/>
8787
</template>
@@ -101,7 +101,7 @@ const toggleOpen = () => {
101101
as-child
102102
class="rounded-xl"
103103
>
104-
<div class="text-foreground relative rounded-xl">
104+
<div class="relative rounded-xl text-foreground">
105105
<component :is="tab.component" class="border-0" />
106106
</div>
107107
</TabsContent>

docs/.vitepress/config/plugins/demo-preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const demoPreviewPlugin = (md: MarkdownRenderer) => {
8484
return '';
8585
}
8686
const firstString = 'index.vue';
87-
childFiles = childFiles.sort((a, b) => {
87+
childFiles = childFiles.toSorted((a, b) => {
8888
if (a === firstString) return -1;
8989
if (b === firstString) return 1;
9090
return a.localeCompare(b, 'en', { sensitivity: 'base' });

docs/src/demos/vben-drawer/auto-height/drawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function handleUpdate(len: number) {
3232
<div
3333
v-for="item in list"
3434
:key="item"
35-
class="even:bg-heavy bg-muted flex-center h-[220px] w-full"
35+
class="flex-center h-[220px] w-full bg-muted even:bg-heavy"
3636
>
3737
{{ item }}
3838
</div>

0 commit comments

Comments
 (0)