mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-11 10:05:07 +08:00
34 lines
852 B
HTML
34 lines
852 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Demo</title>
|
|
<link rel="stylesheet" href="../index.css" />
|
|
<style>
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
background: none;
|
|
}
|
|
{{ style }}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="{{ id }}" class="code-box-demo"></div>
|
|
<script>
|
|
function require(module) {
|
|
if (module === 'react-router') {
|
|
return window.ReactRouter;
|
|
}
|
|
return window.parent[module];
|
|
}
|
|
var mountNode = document.getElementById('{{ id }}');
|
|
</script>
|
|
<script src="https://npmcdn.com/react/dist/react.js"></script>
|
|
<script src="https://npmcdn.com/react-dom/dist/react-dom.js"></script>
|
|
<script src="https://npmcdn.com/react-router/umd/ReactRouter.js"></script>
|
|
<script>
|
|
{{ script }}
|
|
</script>
|
|
</body>
|
|
</html>
|