docs: fix the incorrect version of antdv in codesandbox (#4942)
parent
57469f4be8
commit
b336d3acca
|
@ -1,4 +1,5 @@
|
||||||
import { getParameters } from 'codesandbox/lib/api/define';
|
import { getParameters } from 'codesandbox/lib/api/define';
|
||||||
|
import packageInfo from '../../../package.json';
|
||||||
|
|
||||||
const indexHtml = `<!DOCTYPE html>
|
const indexHtml = `<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
@ -63,7 +64,7 @@ export function getCodeSandboxParams(code: string, meta: Meta): string {
|
||||||
dependencies: {
|
dependencies: {
|
||||||
...getDeps(code),
|
...getDeps(code),
|
||||||
vue: 'next',
|
vue: 'next',
|
||||||
'ant-design-vue': 'next',
|
'ant-design-vue': packageInfo.version,
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
'@vue/cli-plugin-babel': '~4.5.0',
|
'@vue/cli-plugin-babel': '~4.5.0',
|
||||||
|
|
Loading…
Reference in New Issue