Skip to content

Commit b336d3a

Browse files
authored
docs: fix the incorrect version of antdv in codesandbox (#4942)
1 parent 57469f4 commit b336d3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/utils/generateOnlineDemo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { getParameters } from 'codesandbox/lib/api/define';
2+
import packageInfo from '../../../package.json';
23

34
const indexHtml = `<!DOCTYPE html>
45
<html lang="en">
@@ -63,7 +64,7 @@ export function getCodeSandboxParams(code: string, meta: Meta): string {
6364
dependencies: {
6465
...getDeps(code),
6566
vue: 'next',
66-
'ant-design-vue': 'next',
67+
'ant-design-vue': packageInfo.version,
6768
},
6869
devDependencies: {
6970
'@vue/cli-plugin-babel': '~4.5.0',

0 commit comments

Comments
 (0)