-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo-0.345298196649936.html
167 lines (161 loc) · 6.33 KB
/
demo-0.345298196649936.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
<link rel="stylesheet" href="../index.css" />
<link rel="stylesheet" href="../index-1.css" />
<link rel="stylesheet" href="../index-2.css" />
<style>
html, body {
height: 100%;
margin: 0;
background: none;
}
#components-layout-demo-fixed-sider .logo {
height: 32px;
background: rgba(255,255,255,.2);
margin: 16px;
}
</style>
<script>
// sync parent style generated by style-loader into iframe
if (parent.location.port) {
[].forEach.call(parent.document.getElementsByTagName('head')[0].querySelectorAll('style'), function(node) {
document.getElementsByTagName('head')[0].appendChild(node.cloneNode(true));
});
}
</script>
</head>
<body>
<div id="components-layout-demo-fixed-sider"></div>
<script>
function require(module) {
if (module === 'react-router') {
return window.ReactRouter;
}
if (module === 'react-router-dom') {
return window.ReactRouterDOM;
}
return window.parent[module];
}
var mountNode = document.getElementById('components-layout-demo-fixed-sider');
var React = require('react');
var ReactDOM = require('react-dom');
</script>
<script>
function bishengPluginReactPreviewer() {
var React = require("react");
var ReactDOM = require("react-dom");
var _antd = require("antd");
var Header = _antd.Layout.Header,
Content = _antd.Layout.Content,
Footer = _antd.Layout.Footer,
Sider = _antd.Layout.Sider;
return React.createElement(_antd.Layout, null, React.createElement(Sider, {
style: {
overflow: 'auto',
height: '100vh',
position: 'fixed',
left: 0
}
}, React.createElement("div", {
className: "logo"
}), React.createElement(_antd.Menu, {
theme: "dark",
mode: "inline",
defaultSelectedKeys: ['4']
}, React.createElement(_antd.Menu.Item, {
key: "1"
}, React.createElement(_antd.Icon, {
type: "user"
}), React.createElement("span", {
className: "nav-text"
}, "nav 1")), React.createElement(_antd.Menu.Item, {
key: "2"
}, React.createElement(_antd.Icon, {
type: "video-camera"
}), React.createElement("span", {
className: "nav-text"
}, "nav 2")), React.createElement(_antd.Menu.Item, {
key: "3"
}, React.createElement(_antd.Icon, {
type: "upload"
}), React.createElement("span", {
className: "nav-text"
}, "nav 3")), React.createElement(_antd.Menu.Item, {
key: "4"
}, React.createElement(_antd.Icon, {
type: "bar-chart"
}), React.createElement("span", {
className: "nav-text"
}, "nav 4")), React.createElement(_antd.Menu.Item, {
key: "5"
}, React.createElement(_antd.Icon, {
type: "cloud-o"
}), React.createElement("span", {
className: "nav-text"
}, "nav 5")), React.createElement(_antd.Menu.Item, {
key: "6"
}, React.createElement(_antd.Icon, {
type: "appstore-o"
}), React.createElement("span", {
className: "nav-text"
}, "nav 6")), React.createElement(_antd.Menu.Item, {
key: "7"
}, React.createElement(_antd.Icon, {
type: "team"
}), React.createElement("span", {
className: "nav-text"
}, "nav 7")), React.createElement(_antd.Menu.Item, {
key: "8"
}, React.createElement(_antd.Icon, {
type: "shop"
}), React.createElement("span", {
className: "nav-text"
}, "nav 8")))), React.createElement(_antd.Layout, {
style: {
marginLeft: 200
}
}, React.createElement(Header, {
style: {
background: '#fff',
padding: 0
}
}), React.createElement(Content, {
style: {
margin: '24px 16px 0',
overflow: 'initial'
}
}, React.createElement("div", {
style: {
padding: 24,
background: '#fff',
textAlign: 'center'
}
}, "...", React.createElement("br", null), "Really", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "long", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "...", React.createElement("br", null), "content")), React.createElement(Footer, {
style: {
textAlign: 'center'
}
}, "Ant Design \xA92018 Created by Ant UED")));
}
</script>
<script>
var ReactDOM = require('react-dom');
var app = bishengPluginReactPreviewer();
if (true) {
var container = null;
app = React.createElement(
require('antd').ConfigProvider,
{
getPopupContainer() { return container; },
},
[
app,
React.createElement('div', { ref(node) { container = node; }, }),
],
);
}
ReactDOM.render(app, mountNode);
</script>
</body>
</html>