-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo-0.4942133829847781.html
89 lines (82 loc) · 2.46 KB
/
demo-0.4942133829847781.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
<!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;
}
</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-alert-demo-banner"></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-alert-demo-banner');
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");
return React.createElement("div", null, React.createElement(_antd.Alert, {
message: "Warning text",
banner: true
}), React.createElement("br", null), React.createElement(_antd.Alert, {
message: "Very long warning text warning text text text text text text text",
banner: true,
closable: true
}), React.createElement("br", null), React.createElement(_antd.Alert, {
showIcon: false,
message: "Warning text without icon",
banner: true
}), React.createElement("br", null), React.createElement(_antd.Alert, {
type: "error",
message: "Error text",
banner: true
}));
}
</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>