Browse Source

Update Demo.jsx

pull/28559/head
偏右 4 years ago
committed by GitHub
parent
commit
58cc8d1038
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      site/theme/template/Content/Demo.jsx

2
site/theme/template/Content/Demo.jsx

@ -175,7 +175,7 @@ class Demo extends React.Component {
const riddlePrefillConfig = {
title: `${localizedTitle} - Ant Design Demo`,
js: sourceCode.replace("'antd';", "'antd@3.x';"),
css: prefillStyle.replace(" 'antd/", " 'antd@3.x/"),
css: prefillStyle.replace(" 'antd/", " '~antd@3.x/"),
};
const dependencies = sourceCode.split('\n').reduce(
(acc, line) => {

Loading…
Cancel
Save