Skip to content

Commit 9388245

Browse files
committed
chore: update vite
1 parent 4283b88 commit 9388245

File tree

5 files changed

+27
-12
lines changed

5 files changed

+27
-12
lines changed

components/descriptions/demo/size.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<docs>
22
---
33
order: 2
4-
title:
4+
title:
55
zh-CN: 自定义尺寸
66
en-US: Custom Size
77
---
@@ -68,7 +68,7 @@ Custom sizes to fit in a variety of containers.
6868
<script lang="ts">
6969
import { defineComponent, ref } from 'vue';
7070
// TODO
71-
import { RadioChangeEvent } from 'ant-design-vue/es/radio/interface';
71+
import type { RadioChangeEvent } from 'ant-design-vue/es/radio/interface';
7272
7373
export default defineComponent({
7474
setup() {

components/style/themes/dark.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
// Menu
291291
// ---
292292
// dark theme
293-
@menu-dark-submenu-bg: @component-background;
293+
@menu-dark-inline-submenu-bg: @component-background;
294294
@menu-dark-bg: @popover-background;
295295
@menu-popup-bg: @popover-background;
296296

@@ -310,6 +310,7 @@
310310
@table-header-bg: #1d1d1d;
311311
@table-body-sort-bg: fade(@white, 1%);
312312
@table-row-hover-bg: #262626;
313+
@table-header-cell-split-color: fade(@white, 8%);
313314
@table-header-sort-bg: #262626;
314315
@table-header-filter-active-bg: #434343;
315316
@table-header-sort-active-bg: #303030;

site/themeConfig.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import less from 'less';
2-
// import { getThemeVariables } from 'ant-design-vue/dist/theme';
2+
import defaultVars from '../scripts/default-vars';
3+
import dark from '../scripts/dark-vars';
34
const themeConfig = [
45
{
56
theme: 'dark',
67
htmlThemeAttr: 'dark',
78
modifyVars: {
8-
// ...getThemeVariables({ dark: true }),
9+
...defaultVars,
10+
...dark,
911
'text-color': 'fade(@white, 65%)',
1012
'gray-8': '@text-color',
1113
'background-color-base': '#555',

site/vite.config.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@ import vue from '@vitejs/plugin-vue';
33
import md from '../plugin/md';
44
import docs from '../plugin/docs';
55
import vueJsx from '@vitejs/plugin-vue-jsx';
6-
// import { getThemeVariables } from 'ant-design-vue/dist/theme';
7-
// import { additionalData } from './themeConfig';
6+
import { additionalData } from './themeConfig';
87
import defaultVar from '../scripts/default-vars';
9-
// import compact from '../scripts/compact-vars';
10-
// import dark from '../scripts/dark-vars';
118
/**
129
* @type {import('vite').UserConfig}
1310
*/
1411
export default {
1512
resolve: {
1613
alias: {
17-
// moment: 'moment/dist/moment.js',
1814
'@': path.join(__dirname, './src'),
1915
vue: 'vue/dist/vue.esm-bundler.js',
2016
'ant-design-vue': path.resolve(__dirname, '../components'),
@@ -23,6 +19,8 @@ export default {
2319
plugins: [
2420
vueJsx({
2521
// options are passed on to @vue/babel-plugin-jsx
22+
mergeProps: false,
23+
enableObjectSlots: false,
2624
}),
2725
docs(),
2826
md(),
@@ -31,15 +29,24 @@ export default {
3129
}),
3230
],
3331
optimizeDeps: {
34-
include: ['fetch-jsonp', '@ant-design/icons-vue', 'lodash-es'],
32+
include: [
33+
'fetch-jsonp',
34+
'@ant-design/icons-vue',
35+
'lodash-es',
36+
'dayjs',
37+
'vue',
38+
'vue-router',
39+
'vue-i18n',
40+
'async-validator',
41+
],
3542
},
3643
css: {
3744
preprocessorOptions: {
3845
less: {
3946
modifyVars: { ...defaultVar },
4047
javascriptEnabled: true,
4148
// includePaths: ["node_modules/"],
42-
// additionalData,
49+
additionalData,
4350
},
4451
},
4552
},

tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"compilerOptions": {
3+
"baseUrl": "./",
4+
"paths": {
5+
"ant-design-vue": ["components/index.tsx"],
6+
"ant-design-vue/es/*": ["components/*"]
7+
},
38
"strictNullChecks": false,
49
"moduleResolution": "node",
510
"esModuleInterop": true,

0 commit comments

Comments
 (0)