Skip to content

Commit 6f39e91

Browse files
authored
Merge branch 'main' into feature/antd上传组件支持调用Image组件查看图片
2 parents 1d77b01 + 1f1ba16 commit 6f39e91

158 files changed

Lines changed: 1019 additions & 1287 deletions

File tree

Some content is hidden

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

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/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,8 @@
4444
"dayjs": "catalog:",
4545
"es-toolkit": "catalog:",
4646
"pinia": "catalog:",
47-
"tdesign-vue-next": "^1.17.1",
47+
"tdesign-vue-next": "catalog:",
4848
"vue": "catalog:",
4949
"vue-router": "catalog:"
50-
},
51-
"devDependencies": {
52-
"@types/lodash-es": "^4.17.12"
5350
}
5451
}

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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { initStores } from '@vben/stores';
77
import '@vben/styles';
88
// import '@vben/styles/antd';
99
// 引入组件库的少量全局样式变量
10-
import 'tdesign-vue-next/es/style/index.css';
10+
1111
import { useTitle } from '@vueuse/core';
1212

1313
import { $t, setupI18n } from '#/locales';
@@ -17,6 +17,8 @@ import { initSetupVbenForm } from './adapter/form';
1717
import App from './app.vue';
1818
import { router } from './router';
1919

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: '商业占比',

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"sortablejs",
4343
"styl",
4444
"taze",
45+
"tdesign",
4546
"ui-kit",
4647
"uicons",
4748
"unplugin",

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>

0 commit comments

Comments
 (0)