mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
44 lines
1.1 KiB
HTML
44 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset='utf-8' />
|
|
<title>ShadowEditor.UI</title>
|
|
<link rel="stylesheet" href="../ShadowEditor.Web/assets/css/icon/iconfont.css">
|
|
<link rel="stylesheet" href="css/ShadowEditor.UI.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div id="container">
|
|
|
|
</div>
|
|
<script src="js/react.js"></script>
|
|
<script src="js/react-dom.js"></script>
|
|
<script src="build/ShadowEditor.UI.js"></script>
|
|
<script>
|
|
var panel1 = React.createElement(Shadow.Panel, {
|
|
title: 'West Panel',
|
|
region: 'west',
|
|
key: 1
|
|
});
|
|
var panel2 = React.createElement(Shadow.Panel, {
|
|
title: 'East Panel',
|
|
region: 'east',
|
|
key: 2
|
|
});
|
|
var panel3 = React.createElement(Shadow.Panel, {
|
|
title: 'Center Panel',
|
|
region: 'center',
|
|
key: 3
|
|
});
|
|
var layout = React.createElement(Shadow.VBoxLayout, undefined, [
|
|
panel1,
|
|
panel2,
|
|
panel3,
|
|
]);
|
|
|
|
ReactDOM.render(layout, document.querySelector('#container'));
|
|
</script>
|
|
</body>
|
|
|
|
</html> |