amis2/examples/index.html
2024-11-29 08:38:12 +00:00

81 lines
3.9 KiB
HTML

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<title>amis - 低代码前端框架</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="image/x-icon" rel="shortcut icon" href="/amis/static/favicon_b3b0647.png" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1"
/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <link rel="stylesheet" href="/amis/pkg/style_c32722e.css" />
<link rel="stylesheet" href="/amis/pkg/npm_181bd8c.css" />
<style>
.app-wrapper,
.schema-wrapper {
position: relative;
width: 100%;
height: 100%;
}
</style>
<script type="text/javascript">// gitee 最近特别慢
if (location.hostname === 'baidu.gitee.io') {
location.hostname = 'aisuda.bce.baidu.com';
}
var theme = localStorage.getItem('amis-theme') || 'cxd';
if (theme === 'default') {
theme = 'cxd';
}
// 非 IE 模式
if (window.navigator.userAgent.indexOf('Trident') === -1) {
document.write("<link rel=\"stylesheet\" title=\"ang\" ".concat(theme !== 'ang' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/ang_f2a8c0c.css', "\" />"));
document.write("<link rel=\"stylesheet\" title=\"cxd\" ".concat(theme !== 'cxd' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/cxd_e9076ac.css', "\" />"));
document.write("<link rel=\"stylesheet\" title=\"dark\" ".concat(theme !== 'dark' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/dark_26e78ed.css', "\" />"));
document.write("<link rel=\"stylesheet\" title=\"antd\" ".concat(theme !== 'antd' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/antd_9357176.css', "\" />"));
}
else {
document.write("<link rel=\"stylesheet\" title=\"ang\" ".concat(theme !== 'ang' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/ang-ie11_1795b7b.css', "\" />"));
document.write("<link rel=\"stylesheet\" title=\"cxd\" ".concat(theme !== 'cxd' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/cxd-ie11_5fcf16f.css', "\" />"));
document.write("<link rel=\"stylesheet\" title=\"dark\" ".concat(theme !== 'dark' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/dark-ie11_0a746a8.css', "\" />"));
document.write("<link rel=\"stylesheet\" title=\"antd\" ".concat(theme !== 'antd' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/antd-ie11_3ed54b0.css', "\" />"));
}
</script>
<link rel="stylesheet" href="/amis/n/amis/lib/helper_e9038b1.css" /> </head>
<body>
<div id="root" class="app-wrapper"></div>
<script src="/amis/pkg/npm_438ecb3.js"></script>
<script type="text/javascript" src="/amis/pkg/examples/index.html_map_26cf176.js"></script>
<script type="text/javascript" src="/amis/pkg/app_941d47d.js"></script>
<script type="text/javascript" src="/amis/pkg/tinymce_b0ad439.js"></script>
<script type="text/javascript" src="/amis/pkg/color-picker_ed409c5.js"></script>
<script type="text/javascript" src="/amis/pkg/barcode_92ae0a9.js"></script>
<script type="text/javascript" src="/amis/pkg/markdown_5c129a3.js"></script>
<script type="text/javascript" src="/amis/pkg/rest_e206126.js"></script>
<script type="text/javascript">
if (location.hostname !== 'localhost') {
var _hmt = _hmt || [];
// 百度统计
(function () {
var hm = document.createElement('script');
hm.src =
'https://hm.baidu.com/hm.js?286766a21abb57abefedbd5257a26dc8';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(hm, s);
})();
}
window.enableAMISDebug = true;
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
amis.require(['ca626e1'], function (app) {
var initialState = {};
app.bootstrap(document.getElementById('root'), initialState);
});
</script>
</body>
</html>