Merge remote-tracking branch 'baidu/master'
This commit is contained in:
commit
7af18de496
|
@ -6,7 +6,7 @@
|
|||
|
||||
## 入门介绍
|
||||
|
||||
请阅读 <https://baidu.github.io/amis/docs/intro>
|
||||
请阅读 <https://baidu.github.io/amis/docs/index>
|
||||
|
||||
## 相关工具及平台
|
||||
|
||||
|
|
|
@ -23,11 +23,13 @@ import classnames from 'classnames';
|
|||
import Doc, {docs} from './Doc';
|
||||
import Example, {examples} from './Example';
|
||||
|
||||
let PathPrefix = '/examples';
|
||||
let ExamplePathPrefix = '/examples';
|
||||
let DocPathPrefix = '/docs';
|
||||
let ContextPath = '';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
PathPrefix = '';
|
||||
ExamplePathPrefix = '';
|
||||
DocPathPrefix = '';
|
||||
ContextPath = '/amis';
|
||||
}
|
||||
|
||||
|
@ -62,6 +64,14 @@ const locales = [
|
|||
}
|
||||
];
|
||||
|
||||
function getPath(path) {
|
||||
return path
|
||||
? path[0] === '/'
|
||||
? ContextPath + path
|
||||
: `${ContextPath}/${path}`
|
||||
: '';
|
||||
}
|
||||
|
||||
@withRouter
|
||||
export class App extends React.PureComponent {
|
||||
state = {
|
||||
|
@ -178,7 +188,9 @@ export class App extends React.PureComponent {
|
|||
i.isOpen ??
|
||||
(Array.isArray(i.children) &&
|
||||
i.children.length &&
|
||||
!!~i.children.findIndex(item => item.path === location.pathname));
|
||||
!!~i.children.findIndex(
|
||||
item => getPath(item.path) === location.pathname
|
||||
));
|
||||
return {
|
||||
...i,
|
||||
isOpen: item.label === i.label ? !defaultOpen : defaultOpen
|
||||
|
@ -220,10 +232,10 @@ export class App extends React.PureComponent {
|
|||
|
||||
<div className={`${theme.ns}Layout-headerBar`}>
|
||||
<ul className={`${theme.ns}Layout-headerBar-links pull-left`}>
|
||||
<Link to="/docs" activeClassName="is-active">
|
||||
<Link to={`${ContextPath}/docs`} activeClassName="is-active">
|
||||
文档
|
||||
</Link>
|
||||
<Link to="/examples" activeClassName="is-active">
|
||||
<Link to={`${ContextPath}/examples`} activeClassName="is-active">
|
||||
示例
|
||||
</Link>
|
||||
</ul>
|
||||
|
@ -263,6 +275,14 @@ export class App extends React.PureComponent {
|
|||
<div className={`${theme.ns}Layout-searchBar`}>
|
||||
<DocSearch theme={this.state.theme.value} />
|
||||
</div>
|
||||
|
||||
<a
|
||||
className="gh-icon"
|
||||
href="https://github.com/baidu/amis"
|
||||
target="_blank"
|
||||
>
|
||||
<i className="fa fa-github" />
|
||||
</a>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
@ -270,13 +290,13 @@ export class App extends React.PureComponent {
|
|||
renderNavigation(navs, parent?: any) {
|
||||
const pathname = location.pathname;
|
||||
return navs.map(nav => {
|
||||
const path = nav.path;
|
||||
const path = getPath(nav.path);
|
||||
const hasChildren = Array.isArray(nav.children) && nav.children.length;
|
||||
const isOpen =
|
||||
nav.isOpen ||
|
||||
(nav.isOpen !== false &&
|
||||
hasChildren &&
|
||||
!!~nav.children.findIndex(item => item.path === pathname));
|
||||
!!~nav.children.findIndex(item => getPath(item.path) === pathname));
|
||||
|
||||
return (
|
||||
<div
|
||||
|
@ -290,7 +310,7 @@ export class App extends React.PureComponent {
|
|||
<Link
|
||||
onClick={e => {
|
||||
browserHistory.push(
|
||||
`${path || (hasChildren && nav.children[0].path)}`
|
||||
`${path || (hasChildren && getPath(nav.children[0].path))}`
|
||||
);
|
||||
!isOpen && this.toggleOpen(e, nav);
|
||||
}}
|
||||
|
@ -371,7 +391,7 @@ export class App extends React.PureComponent {
|
|||
}
|
||||
}
|
||||
|
||||
function navigations2route(pathPrefix = PathPrefix, navigations) {
|
||||
function navigations2route(pathPrefix = DocPathPrefix, navigations) {
|
||||
let routes = [];
|
||||
|
||||
navigations.forEach(root => {
|
||||
|
@ -384,7 +404,7 @@ function navigations2route(pathPrefix = PathPrefix, navigations) {
|
|||
path={
|
||||
item.path[0] === '/'
|
||||
? ContextPath + item.path
|
||||
: `${ContextPath}${pathPrefix}/${item.path}`
|
||||
: `${ContextPath}/${item.path}`
|
||||
}
|
||||
component={item.component}
|
||||
/>
|
||||
|
@ -396,7 +416,7 @@ function navigations2route(pathPrefix = PathPrefix, navigations) {
|
|||
path={
|
||||
item.path[0] === '/'
|
||||
? ContextPath + item.path
|
||||
: `${ContextPath}${pathPrefix}/${item.path}`
|
||||
: `${ContextPath}/${item.path}`
|
||||
}
|
||||
getComponent={item.getComponent}
|
||||
/>
|
||||
|
@ -409,19 +429,25 @@ function navigations2route(pathPrefix = PathPrefix, navigations) {
|
|||
}
|
||||
|
||||
export default function entry({pathPrefix}) {
|
||||
PathPrefix = pathPrefix || PathPrefix;
|
||||
// PathPrefix = pathPrefix || DocPathPrefix;
|
||||
return (
|
||||
<Router history={browserHistory}>
|
||||
<Route component={App}>
|
||||
<Redirect from={`${ContextPath}/`} to={`${ContextPath}/docs/index`} />
|
||||
<Redirect from={`/examples`} to={`/examples/pages/simple`} />
|
||||
<Redirect from={`/docs`} to={`/docs/index`} />
|
||||
<Redirect
|
||||
from={`${ContextPath}/docs`}
|
||||
to={`${ContextPath}/docs/index`}
|
||||
/>
|
||||
<Redirect
|
||||
from={`${ContextPath}/examples`}
|
||||
to={`${ContextPath}/examples/pages/simple`}
|
||||
/>
|
||||
|
||||
<Route path="/docs" component={Doc}>
|
||||
{navigations2route('/docs', docs)}
|
||||
<Route path={`${ContextPath}/docs`} component={Doc}>
|
||||
{navigations2route(DocPathPrefix, docs)}
|
||||
</Route>
|
||||
<Route path="/examples" component={Example}>
|
||||
{navigations2route('/examples', examples)}
|
||||
<Route path={`${ContextPath}/examples`} component={Example}>
|
||||
{navigations2route(ExamplePathPrefix, examples)}
|
||||
</Route>
|
||||
</Route>
|
||||
|
||||
|
|
|
@ -652,9 +652,9 @@ export const docs = [
|
|||
},
|
||||
{
|
||||
label: 'Cards 卡片组',
|
||||
path: '/docs/components/component',
|
||||
path: '/docs/components/cards',
|
||||
getComponent: (location, cb) =>
|
||||
require(['../../docs/components/component.md'], doc => {
|
||||
require(['../../docs/components/cards.md'], doc => {
|
||||
cb(null, makeMarkdownRenderer(doc));
|
||||
})
|
||||
},
|
||||
|
|
|
@ -73,20 +73,6 @@ import Tab1Schema from './Tabs/Tab1';
|
|||
import Tab2Schema from './Tabs/Tab2';
|
||||
import Tab3Schema from './Tabs/Tab3';
|
||||
import TestComponent from './Test';
|
||||
import Select from '../../src/components/Select';
|
||||
import Button from '../../src/components/Button';
|
||||
import DocSearch from './DocSearch';
|
||||
import {groupBy} from 'lodash';
|
||||
import classnames from 'classnames';
|
||||
import Doc, {docs} from './Doc';
|
||||
|
||||
let PathPrefix = '/examples';
|
||||
let ContextPath = '';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
PathPrefix = '';
|
||||
ContextPath = '/amis';
|
||||
}
|
||||
|
||||
export const examples = [
|
||||
{
|
||||
|
|
|
@ -187,6 +187,7 @@ export default function (schema) {
|
|||
<div className="schema-wrapper">
|
||||
{showCode !== false ? (
|
||||
<DrawerContainer
|
||||
disabled
|
||||
classPrefix={ns}
|
||||
size="lg"
|
||||
onHide={this.close}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
@import '../scss/variables';
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
background-color: #fff !important;
|
||||
&.dark {
|
||||
background-color: #333538;
|
||||
background-color: #333538 !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,6 +116,19 @@ body {
|
|||
right: 0;
|
||||
box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.gh-icon {
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
top: 15px;
|
||||
font-size: 22px;
|
||||
padding: 0 10px;
|
||||
color: #333;
|
||||
|
||||
&:hover {
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-brandBar,
|
||||
|
@ -193,7 +206,7 @@ body {
|
|||
}
|
||||
|
||||
&-searchBar {
|
||||
width: 220px;
|
||||
width: 120px;
|
||||
|
||||
.Doc-search {
|
||||
top: 15px;
|
||||
|
@ -282,7 +295,7 @@ body {
|
|||
|
||||
&-toc {
|
||||
margin: 30px 0;
|
||||
width: 220px;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
&-navigation {
|
||||
|
@ -293,7 +306,7 @@ body {
|
|||
|
||||
> a {
|
||||
// font-size: 16px;
|
||||
// font-weight: 700;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
padding-left: 0;
|
||||
|
@ -310,7 +323,7 @@ body {
|
|||
display: block;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 10px;
|
||||
top: 5px;
|
||||
// color: #666;
|
||||
|
||||
// &:hover {
|
||||
|
@ -497,7 +510,7 @@ body {
|
|||
> .a-Page,
|
||||
> .cxd-Page,
|
||||
> .dark-Page {
|
||||
padding: 0 45px;
|
||||
padding: 0 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -580,6 +593,7 @@ body {
|
|||
&.visible {
|
||||
opacity: 1;
|
||||
z-index: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -613,8 +613,8 @@ if (fis.project.currentMedia() === 'publish') {
|
|||
}),
|
||||
function (ret) {
|
||||
const indexHtml = ret.src['/examples/index.html'];
|
||||
const appJs = ret.src['/examples/components/App.jsx'];
|
||||
const DocJs = ret.src['/examples/components/Doc.jsx'];
|
||||
const appJs = ret.src['/examples/components/App.tsx'];
|
||||
const DocJs = ret.src['/examples/components/Doc.tsx'];
|
||||
|
||||
const pages = [];
|
||||
const source = [appJs.getContent(), DocJs.getContent()].join('\n');
|
||||
|
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
|
@ -0,0 +1,39 @@
|
|||
amis.define('docs/components/alert.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Alert 提示",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "Alert 提示",
|
||||
"icon": null,
|
||||
"order": 27,
|
||||
"html": "<p>用来做文字特殊提示,分为四类:提示类、成功类、警告类和危险类。</p>\n<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8\" href=\"#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本使用</h2><div class=\"amis-preview\" style=\"height: 500px\"><script type=\"text/schema\" height=\"500\" scope=\"body\">[\n {\n \"type\": \"alert\",\n \"body\": \"提示类提示\",\n \"level\": \"info\"\n },\n {\n \"type\": \"alert\",\n \"body\": \"成功类提示\",\n \"level\": \"success\"\n },\n {\n \"type\": \"alert\",\n \"body\": \"警告类提示\",\n \"level\": \"warning\"\n },\n {\n \"type\": \"alert\",\n \"body\": \"危险类提示\",\n \"level\": \"danger\"\n }\n]\n</script></div>\n<h2><a class=\"anchor\" name=\"%E6%98%BE%E7%A4%BA%E5%85%B3%E9%97%AD%E6%8C%89%E9%92%AE\" href=\"#%E6%98%BE%E7%A4%BA%E5%85%B3%E9%97%AD%E6%8C%89%E9%92%AE\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>显示关闭按钮</h2><p>配置<code>"showCloseButton": true</code>实现显示关闭按钮。</p>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"body\">[\n {\n \"type\": \"alert\",\n \"body\": \"默认提示\",\n \"level\": \"info\"\n },\n {\n \"type\": \"alert\",\n \"body\": \"显示关闭按钮的提示\",\n \"level\": \"info\",\n \"showCloseButton\": true\n }\n]\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td><code>"alert"</code></td>\n<td>指定为 alert 渲染器</td>\n</tr>\n<tr>\n<td>className</td>\n<td><code>string</code></td>\n<td></td>\n<td>外层 Dom 的类名</td>\n</tr>\n<tr>\n<td>level</td>\n<td><code>string</code></td>\n<td><code>info</code></td>\n<td>级别,可以是:<code>info</code>、<code>success</code>、<code>warning</code> 或者 <code>danger</code></td>\n</tr>\n<tr>\n<td>body</td>\n<td><a href=\"../types/schemanode\">SchemaNode</a></td>\n<td></td>\n<td>显示内容</td>\n</tr>\n<tr>\n<td>showCloseButton</td>\n<td><code>boolean</code></td>\n<td>false</td>\n<td>是否显示关闭按钮</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本使用",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "显示关闭按钮",
|
||||
"fragment": "%E6%98%BE%E7%A4%BA%E5%85%B3%E9%97%AD%E6%8C%89%E9%92%AE",
|
||||
"fullPath": "#%E6%98%BE%E7%A4%BA%E5%85%B3%E9%97%AD%E6%8C%89%E9%92%AE",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/audio.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Audio 音频",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "Audio 音频",
|
||||
"icon": null,
|
||||
"order": 28,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8\" href=\"#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本使用</h2><div class=\"amis-preview\" style=\"height: 300px\"><script type=\"text/schema\" height=\"300\" scope=\"body\">{\n \"type\": \"audio\",\n \"src\": \"https://amis.bj.bcebos.com/amis/2019-7/1562137295708/chicane-poppiholla-original-radio-edit%20(1).mp3\"\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td><code>"audio"</code></td>\n<td>指定为 audio 渲染器</td>\n</tr>\n<tr>\n<td>className</td>\n<td><code>string</code></td>\n<td></td>\n<td>外层 Dom 的类名</td>\n</tr>\n<tr>\n<td>inline</td>\n<td><code>boolean</code></td>\n<td>true</td>\n<td>是否是内联模式</td>\n</tr>\n<tr>\n<td>src</td>\n<td><code>string</code></td>\n<td></td>\n<td>音频地址</td>\n</tr>\n<tr>\n<td>loop</td>\n<td><code>boolean</code></td>\n<td>false</td>\n<td>是否循环播放</td>\n</tr>\n<tr>\n<td>autoPlay</td>\n<td><code>boolean</code></td>\n<td>false</td>\n<td>是否自动播放</td>\n</tr>\n<tr>\n<td>rates</td>\n<td><code>array</code></td>\n<td><code>[]</code></td>\n<td>可配置音频播放倍速如:<code>[1.0, 1.5, 2.0]</code></td>\n</tr>\n<tr>\n<td>controls</td>\n<td><code>array</code></td>\n<td><code>['rates', 'play', 'time', 'process', 'volume']</code></td>\n<td>内部模块定制化</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本使用",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
|
@ -0,0 +1,27 @@
|
|||
amis.define('docs/components/button.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Button 按钮",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "Button 按钮",
|
||||
"icon": null,
|
||||
"order": 29,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 300px\"><script type=\"text/schema\" height=\"300\" scope=\"body\">{\n \"label\": \"弹个框\",\n \"type\": \"button\",\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"title\": \"弹框\",\n \"body\": \"这是个简单的弹框。\"\n }\n}\n</script></div>\n<p><code>button</code> 实际上是 <code>action</code> 的别名,更多用法见<a href=\"./action\">action</a></p>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/card.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Card 卡片",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "Card 卡片",
|
||||
"icon": null,
|
||||
"order": 31,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"body\">{\n \"type\": \"card\",\n \"header\": {\n \"title\": \"标题\",\n \"subTitle\": \"副标题\",\n \"description\": \"这是一段描述\",\n \"avatarClassName\": \"pull-left thumb-md avatar b-3x m-r\",\n \"avatar\": \"raw:http://hiphotos.baidu.com/fex/%70%69%63/item/c9fcc3cec3fdfc03ccabb38edd3f8794a4c22630.jpg\"\n },\n \"body\": \"这里是内容\",\n \"actions\": [\n {\n \"type\": \"button\",\n \"label\": \"编辑\",\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"title\": \"编辑\",\n \"body\": \"你正在编辑该卡片\"\n }\n },\n {\n \"type\": \"button\",\n \"label\": \"删除\",\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"title\": \"提示\",\n \"body\": \"你删掉了该卡片\"\n }\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td><code>"card"</code></td>\n<td>指定为 Card 渲染器</td>\n</tr>\n<tr>\n<td>className</td>\n<td><code>string</code></td>\n<td><code>"panel-default"</code></td>\n<td>外层 Dom 的类名</td>\n</tr>\n<tr>\n<td>header</td>\n<td><code>Object</code></td>\n<td></td>\n<td>Card 头部内容设置</td>\n</tr>\n<tr>\n<td>header.className</td>\n<td><code>string</code></td>\n<td></td>\n<td>头部类名</td>\n</tr>\n<tr>\n<td>header.title</td>\n<td><a href=\"../concepts/template\">模板</a></td>\n<td></td>\n<td>标题</td>\n</tr>\n<tr>\n<td>header.subTitle</td>\n<td><a href=\"../concepts/template\">模板</a></td>\n<td></td>\n<td>副标题</td>\n</tr>\n<tr>\n<td>header.desc</td>\n<td><a href=\"../concepts/template\">模板</a></td>\n<td></td>\n<td>描述</td>\n</tr>\n<tr>\n<td>header.avatar</td>\n<td><a href=\"../concepts/template\">模板</a></td>\n<td></td>\n<td>图片</td>\n</tr>\n<tr>\n<td>header.avatarText</td>\n<td><a href=\"../concepts/template\">模板</a></td>\n<td></td>\n<td>如果不配置图片,则会在图片处显示该文本</td>\n</tr>\n<tr>\n<td>header.highlight</td>\n<td><code>boolean</code></td>\n<td></td>\n<td>是否显示激活样式</td>\n</tr>\n<tr>\n<td>header.avatarClassName</td>\n<td><code>string</code></td>\n<td><code>"pull-left thumb avatar b-3x m-r"</code></td>\n<td>图片类名</td>\n</tr>\n<tr>\n<td>body</td>\n<td><code>Array</code></td>\n<td></td>\n<td>内容容器,主要用来放置非表单项组件</td>\n</tr>\n<tr>\n<td>bodyClassName</td>\n<td><code>string</code></td>\n<td><code>"padder m-t-sm m-b-sm"</code></td>\n<td>内容区域类名</td>\n</tr>\n<tr>\n<td>actions</td>\n<td>Array<<a href=\"./action\">Action</a>></td>\n<td></td>\n<td>配置按钮集合</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/collapse.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Collapse 折叠器",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "Collapse 折叠器",
|
||||
"icon": null,
|
||||
"order": 36,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 550px\"><script type=\"text/schema\" height=\"550\" scope=\"body\">{\n \"type\": \"collapse\",\n \"title\": \"标题\",\n \"body\": \"这里是内容\"\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td><code>"collapse"</code></td>\n<td>指定为 Collapse 渲染器</td>\n</tr>\n<tr>\n<td>title</td>\n<td><a href=\"../types/schemanode\">SchemaNode</a></td>\n<td></td>\n<td>标题</td>\n</tr>\n<tr>\n<td>body</td>\n<td><a href=\"../types/schemanode\">SchemaNode</a></td>\n<td></td>\n<td>内容</td>\n</tr>\n<tr>\n<td>className</td>\n<td><code>string</code></td>\n<td><code>bg-white wrapper</code></td>\n<td>CSS 类名</td>\n</tr>\n<tr>\n<td>headingClassName</td>\n<td><code>string</code></td>\n<td><code>font-thin b-b b-light text-lg p-b-xs</code></td>\n<td>标题 CSS 类名</td>\n</tr>\n<tr>\n<td>bodyClassName</td>\n<td><code>string</code></td>\n<td></td>\n<td>内容 CSS 类名。</td>\n</tr>\n<tr>\n<td>collapsed</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>默认是否要收起。</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,20 @@
|
|||
amis.define('docs/components/component.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "组件介绍",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "组件介绍",
|
||||
"icon": null,
|
||||
"order": 21,
|
||||
"html": "<p>从这个章节开始,我们将会介绍 amis 中内置的所有组件的使用方法</p>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/container.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Container 容器",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "Container 容器",
|
||||
"icon": null,
|
||||
"order": 38,
|
||||
"html": "<p>Container 是一种容器组件,它可以渲染其他 amis 组件</p>\n<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"body\">{\n \"type\": \"container\",\n \"body\":\"这里是容器内容区\"\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td><code>"alert"</code></td>\n<td>指定为 alert 渲染器</td>\n</tr>\n<tr>\n<td>className</td>\n<td><code>string</code></td>\n<td></td>\n<td>外层 Dom 的类名</td>\n</tr>\n<tr>\n<td>bodyClassName</td>\n<td><code>string</code></td>\n<td></td>\n<td>容器内容区的类名</td>\n</tr>\n<tr>\n<td>body</td>\n<td><a href=\"../types/schemanode\">SchemaNode</a></td>\n<td></td>\n<td>容器内容</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,39 @@
|
|||
amis.define('docs/components/divider.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Divider 分割线",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "Divider 分割线",
|
||||
"icon": null,
|
||||
"order": 42,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"body\">{\n \"type\": \"divider\"\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E4%B8%8D%E5%90%8C%E6%A0%B7%E5%BC%8F\" href=\"#%E4%B8%8D%E5%90%8C%E6%A0%B7%E5%BC%8F\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>不同样式</h2><div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"body\">[\n {\n \"type\": \"divider\"\n },\n {\n \"type\": \"divider\",\n \"lineStyle\": \"solid\"\n }\n]\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td></td>\n<td><code>"dialog"</code> 指定为 Dialog 渲染器</td>\n</tr>\n<tr>\n<td>className</td>\n<td><code>string</code></td>\n<td></td>\n<td>外层 Dom 的类名</td>\n</tr>\n<tr>\n<td>lineStyle</td>\n<td><code>string</code></td>\n<td><code>"dashed"</code></td>\n<td>分割线的样式,支持<code>dashed</code>和<code>solid</code></td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "不同样式",
|
||||
"fragment": "%E4%B8%8D%E5%90%8C%E6%A0%B7%E5%BC%8F",
|
||||
"fullPath": "#%E4%B8%8D%E5%90%8C%E6%A0%B7%E5%BC%8F",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/dropdown-button.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "DropDownButton",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "DropDownButton",
|
||||
"icon": null,
|
||||
"order": 44,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 500px\"><script type=\"text/schema\" height=\"500\">{\n \"type\": \"page\",\n \"body\": {\n \"type\": \"dropdown-button\",\n \"label\": \"下拉菜单\",\n \"buttons\": [\n {\n \"type\": \"button\",\n \"label\": \"按钮1\"\n },\n {\n \"type\": \"button\",\n \"label\": \"按钮2\"\n },\n {\n \"type\": \"button\",\n \"label\": \"按钮3\"\n }\n ]\n }\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td><code>dropdown-button</code></td>\n<td>类型</td>\n</tr>\n<tr>\n<td>label</td>\n<td><code>string</code></td>\n<td></td>\n<td>按钮文本</td>\n</tr>\n<tr>\n<td>className</td>\n<td><code>string</code></td>\n<td></td>\n<td>外层 CSS 类名</td>\n</tr>\n<tr>\n<td>block</td>\n<td><code>boolean</code></td>\n<td></td>\n<td>块状样式</td>\n</tr>\n<tr>\n<td>size</td>\n<td><code>string</code></td>\n<td></td>\n<td>尺寸,支持<code>'xs'</code>、<code>'sm'</code>、<code>'md'</code> 、<code>'lg'</code></td>\n</tr>\n<tr>\n<td>align</td>\n<td><code>string</code></td>\n<td></td>\n<td>位置,可选<code>'left'</code>或<code>'right'</code></td>\n</tr>\n<tr>\n<td>buttons</td>\n<td><code>Array<action></code></td>\n<td></td>\n<td>配置下拉按钮</td>\n</tr>\n<tr>\n<td>caretIcon</td>\n<td><code>string</code></td>\n<td></td>\n<td>caretIcon</td>\n</tr>\n<tr>\n<td>iconOnly</td>\n<td><code>boolean</code></td>\n<td></td>\n<td>只显示icon</td>\n</tr>\n<tr>\n<td>defaultIsOpened</td>\n<td><code>boolean</code></td>\n<td></td>\n<td>默认是否打开</td>\n</tr>\n<tr>\n<td>closeOnOutside</td>\n<td><code>boolean</code></td>\n<td></td>\n<td>点击外侧区域是否收起</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/each.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Each 循环渲染器",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": "⚙ 组件",
|
||||
"menuName": "Each 循环渲染器",
|
||||
"icon": null,
|
||||
"order": 45,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 360px\"><script type=\"text/schema\" height=\"360\" scope=\"body\">{\n \"type\": \"each\",\n \"value\": [\"A\", \"B\", \"C\"],\n \"items\": {\n \"type\": \"tpl\",\n \"tpl\": \"<span class='label label-default'><%= data.item %></span> \"\n }\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td><code>"each"</code></td>\n<td>指定为 Each 组件</td>\n</tr>\n<tr>\n<td>value</td>\n<td><code>array</code></td>\n<td><code>[]</code></td>\n<td>用于循环的值</td>\n</tr>\n<tr>\n<td>name</td>\n<td><code>string</code></td>\n<td></td>\n<td>获取数据域中变量,支持 <a href=\"../concepts/data-mapping\">数据映射</a></td>\n</tr>\n<tr>\n<td>items</td>\n<td><code>object</code></td>\n<td></td>\n<td>使用<code>value</code>中的数据,循环输出渲染器。</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/form/array.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Array 数组输入框",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": null,
|
||||
"menuName": "Array 数组输入框",
|
||||
"icon": null,
|
||||
"order": 3,
|
||||
"html": "<p><a href=\"./formitem\">普通表单项</a>,其实就是 <a href=\"./combo\">Combo</a> 的一个 flat 用法。</p>\n<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form\">[\n {\n \"name\": \"array\",\n \"label\": \"颜色集合\",\n \"type\": \"array\",\n \"value\": [\"red\"],\n \"inline\": true,\n \"items\": {\n \"type\": \"color\"\n }\n }\n]\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><p>除了支持 <a href=\"./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8\">普通表单项属性表</a> 中的配置以外,还支持下面一些配置</p>\n<table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td><code>"array"</code></td>\n<td>指明为<code>array</code>组件</td>\n</tr>\n<tr>\n<td>items</td>\n<td><code>string</code>或 <a href=\"../../types/api\">API</a></td>\n<td></td>\n<td>配置单项表单类型</td>\n</tr>\n<tr>\n<td>addable</td>\n<td><code>boolean</code></td>\n<td></td>\n<td>是否可新增。</td>\n</tr>\n<tr>\n<td>removable</td>\n<td><code>boolean</code></td>\n<td></td>\n<td>是否可删除</td>\n</tr>\n<tr>\n<td>draggable</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>是否可以拖动排序, 需要注意的是当启用拖动排序的时候,会多一个\\$id 字段</td>\n</tr>\n<tr>\n<td>draggableTip</td>\n<td><code>string</code></td>\n<td></td>\n<td>可拖拽的提示文字,默认为:<code>"可通过拖动每行中的【交换】按钮进行顺序调整"</code></td>\n</tr>\n<tr>\n<td>addButtonText</td>\n<td><code>string</code></td>\n<td><code>"新增"</code></td>\n<td>新增按钮文字</td>\n</tr>\n<tr>\n<td>minLength</td>\n<td><code>number</code></td>\n<td></td>\n<td>限制最小长度</td>\n</tr>\n<tr>\n<td>maxLength</td>\n<td><code>number</code></td>\n<td></td>\n<td>限制最大长度</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/form/button-toolbar.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Button-Toolbar 按钮工具栏",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": null,
|
||||
"menuName": "Button-Toolbar",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
"html": "<p>默认按钮独立配置的时候,是独占一行的,如果想让多个按钮在一起放置,可以使用 <code>button-toolbar</code> 组件</p>\n<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8\" href=\"#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本使用</h2><div class=\"amis-preview\" style=\"height: 600px\"><script type=\"text/schema\" height=\"600\" scope=\"body\">{\n \"type\": \"form\",\n \"controls\": [\n {\n \"type\": \"text\",\n \"name\": \"test\",\n \"label\": \"Text\"\n },\n\n {\n \"type\": \"button-toolbar\",\n \"label\": \"按钮组\",\n \"buttons\": [\n {\n \"type\": \"button\",\n \"label\": \"按钮\",\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"title\": \"提示\",\n \"body\": \"对,你刚点击了!\"\n }\n },\n\n {\n \"type\": \"submit\",\n \"label\": \"提交\"\n },\n\n {\n \"type\": \"reset\",\n \"label\": \"重置\"\n }\n ]\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td><code>"button-toolbar"</code></td>\n<td>指定为 ButtonToolbar 组件</td>\n</tr>\n<tr>\n<td>buttons</td>\n<td>Array<<a href=\"./action\">行为按钮</a>></td>\n<td></td>\n<td>按钮组</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本使用",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,45 @@
|
|||
amis.define('docs/components/form/button.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Button 按钮",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": null,
|
||||
"menuName": "Button",
|
||||
"icon": null,
|
||||
"order": 4,
|
||||
"html": "<p><code>form</code>中除了支持 <a href=\"./action\">行为按钮</a>以外,还支持一些特定的按钮。</p>\n<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 550px\"><script type=\"text/schema\" height=\"550\" scope=\"body\">{\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n \"controls\": [\n {\n \"type\": \"text\",\n \"name\": \"name\",\n \"label\": \"姓名:\"\n },\n {\n \"type\": \"action\",\n \"actionType\": \"dialog\",\n \"label\": \"按钮\",\n \"dialog\": {\n \"title\": \"弹框标题\",\n \"body\": \"这是一个弹框\"\n }\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95\" href=\"#%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>提交表单</h2><p>请配置<code>"actionType": "submit"</code>或<code>"type": "submit"</code>按钮,可以触发表单提交行为,</p>\n<div class=\"amis-preview\" style=\"height: 550px\"><script type=\"text/schema\" height=\"550\" scope=\"body\">{\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n \"controls\": [\n {\n \"type\": \"text\",\n \"name\": \"name\",\n \"label\": \"姓名:\"\n },\n {\n \"type\": \"submit\",\n \"label\": \"提交\"\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95\" href=\"#%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>重置表单</h2><p>请配置<code>"actionType": "reset"</code>或<code>"type": "reset"</code>按钮,可以触发表单提交行为。</p>\n<div class=\"amis-preview\" style=\"height: 550px\"><script type=\"text/schema\" height=\"550\" scope=\"body\">{\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n \"controls\": [\n {\n \"type\": \"text\",\n \"name\": \"name\",\n \"label\": \"姓名:\"\n },\n {\n \"type\": \"reset\",\n \"label\": \"重置\"\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><p>见 <a href=\"../action\">Action 行为按钮</a></p>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "提交表单",
|
||||
"fragment": "%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95",
|
||||
"fullPath": "#%E6%8F%90%E4%BA%A4%E8%A1%A8%E5%8D%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "重置表单",
|
||||
"fragment": "%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95",
|
||||
"fullPath": "#%E9%87%8D%E7%BD%AE%E8%A1%A8%E5%8D%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,39 @@
|
|||
amis.define('docs/components/form/checkbox.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Checkbox 勾选框",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": null,
|
||||
"menuName": "Checkbox",
|
||||
"icon": null,
|
||||
"order": 8,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 500px\"><script type=\"text/schema\" height=\"500\" scope=\"body\">{\n \"type\": \"form\",\n \"controls\": [\n {\n \"name\": \"checkbox\",\n \"type\": \"checkbox\",\n \"label\": \"勾选框\",\n \"option\": \"选项说明\"\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E9%85%8D%E7%BD%AE%E7%9C%9F%E5%81%87%E5%80%BC\" href=\"#%E9%85%8D%E7%BD%AE%E7%9C%9F%E5%81%87%E5%80%BC\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>配置真假值</h2><p>默认情况:</p>\n<ul>\n<li>勾选框勾选时,表单项值为:true</li>\n<li>勾选框取消勾选时,表单项值为:false</li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 500px\"><script type=\"text/schema\" height=\"500\" scope=\"body\">{\n \"type\": \"form\",\n \"debug\": true,\n \"controls\": [\n {\n \"name\": \"checkbox\",\n \"type\": \"checkbox\",\n \"label\": \"勾选框\"\n }\n ]\n}\n</script></div>\n<p>如果你想调整这个值,可以配置<code>trueValue</code>和<code>falseValue</code></p>\n<div class=\"amis-preview\" style=\"height: 500px\"><script type=\"text/schema\" height=\"500\" scope=\"body\">{\n \"type\": \"form\",\n \"debug\": true,\n \"controls\": [\n {\n \"name\": \"checkbox\",\n \"type\": \"checkbox\",\n \"label\": \"勾选框\",\n \"trueValue\": 1,\n \"falseValue\": 0\n }\n ]\n}\n</script></div>\n<p>勾选上例中的勾选框,观察数据域变化,会发现勾选后值为<code>1</code>,而取消勾选后为<code>0</code></p>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><p>除了支持 <a href=\"./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8\">普通表单项属性表</a> 中的配置以外,还支持下面一些配置</p>\n<table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明 ## 二级标题</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>option</td>\n<td><code>string</code></td>\n<td></td>\n<td>选项说明</td>\n</tr>\n<tr>\n<td>trueValue</td>\n<td><code>any</code></td>\n<td><code>true</code></td>\n<td>标识真值</td>\n</tr>\n<tr>\n<td>falseValue</td>\n<td><code>any</code></td>\n<td><code>"false"</code></td>\n<td>标识假值</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "配置真假值",
|
||||
"fragment": "%E9%85%8D%E7%BD%AE%E7%9C%9F%E5%81%87%E5%80%BC",
|
||||
"fullPath": "#%E9%85%8D%E7%BD%AE%E7%9C%9F%E5%81%87%E5%80%BC",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,39 @@
|
|||
amis.define('docs/components/form/color.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Color 颜色选择器",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": null,
|
||||
"menuName": "Color",
|
||||
"icon": null,
|
||||
"order": 11,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 600px\"><script type=\"text/schema\" height=\"600\" scope=\"body\">{\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n \"controls\": [\n {\n \"type\": \"color\",\n \"name\": \"color\",\n \"label\": \"颜色\"\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E9%80%89%E6%8B%A9%E5%99%A8%E9%A2%84%E8%AE%BE%E9%A2%9C%E8%89%B2%E5%80%BC\" href=\"#%E9%80%89%E6%8B%A9%E5%99%A8%E9%A2%84%E8%AE%BE%E9%A2%9C%E8%89%B2%E5%80%BC\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>选择器预设颜色值</h2><p>颜色选择器底部预设有会写可选的颜色值,默认为:<code>['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF']</code></p>\n<p>你可以配置<code>presetColors</code>数组进行自定义。</p>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><p>当做选择器表单项使用时,除了支持 <a href=\"./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8\">普通表单项属性表</a> 中的配置以外,还支持下面一些配置</p>\n<table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>format</td>\n<td><code>string</code></td>\n<td><code>hex</code></td>\n<td>请选择 <code>hex</code>、<code>hls</code>、<code>rgb</code>或者<code>rgba</code>。</td>\n</tr>\n<tr>\n<td>presetColors</td>\n<td><code>Array<string></code></td>\n<td><a href=\"./color#%E9%80%89%E6%8B%A9%E5%99%A8%E9%A2%84%E8%AE%BE%E9%A2%9C%E8%89%B2%E5%80%BC\">见选择器预设颜色值</a></td>\n<td>选择器底部的默认颜色,数组内为空则不显示默认颜色</td>\n</tr>\n<tr>\n<td>allowCustomColor</td>\n<td><code>boolean</code></td>\n<td><code>true</code></td>\n<td>为<code>false</code>时只能选择颜色,使用 <code>presetColors</code> 设定颜色选择范围</td>\n</tr>\n<tr>\n<td>clearable</td>\n<td><code>boolean</code></td>\n<td><code>"label"</code></td>\n<td>是否显示清除按钮</td>\n</tr>\n<tr>\n<td>resetValue</td>\n<td><code>string</code></td>\n<td><code>""</code></td>\n<td>清除后,表单项值调整成该值</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "选择器预设颜色值",
|
||||
"fragment": "%E9%80%89%E6%8B%A9%E5%99%A8%E9%A2%84%E8%AE%BE%E9%A2%9C%E8%89%B2%E5%80%BC",
|
||||
"fullPath": "#%E9%80%89%E6%8B%A9%E5%99%A8%E9%A2%84%E8%AE%BE%E9%A2%9C%E8%89%B2%E5%80%BC",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/form/date-range.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Date-Range 日期范围",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": null,
|
||||
"menuName": "Date-Range",
|
||||
"icon": null,
|
||||
"order": 15,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 700px\"><script type=\"text/schema\" height=\"700\" scope=\"body\">{\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n \"controls\": [\n {\n \"type\": \"date-range\",\n \"name\": \"select\",\n \"label\": \"日期范围\"\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><p>除了支持 <a href=\"./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8\">普通表单项属性表</a> 中的配置以外,还支持下面一些配置</p>\n<table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>format</td>\n<td><code>string</code></td>\n<td><code>X</code></td>\n<td><a href=\"./date#%E5%80%BC%E6%A0%BC%E5%BC%8F\">日期选择器值格式</a></td>\n</tr>\n<tr>\n<td>inputFormat</td>\n<td><code>string</code></td>\n<td><code>YYYY-DD-MM</code></td>\n<td><a href=\"./date#%E6%98%BE%E7%A4%BA%E6%A0%BC%E5%BC%8F\">日期选择器显示格式</a></td>\n</tr>\n<tr>\n<td>placeholder</td>\n<td><code>string</code></td>\n<td><code>"请选择日期范围"</code></td>\n<td>占位文本</td>\n</tr>\n<tr>\n<td>shortcuts</td>\n<td><code>string</code></td>\n<td></td>\n<td><a href=\"./date#%E5%BF%AB%E6%8D%B7%E9%94%AE\">日期快捷键</a></td>\n</tr>\n<tr>\n<td>minDate</td>\n<td><code>string</code></td>\n<td></td>\n<td>限制最小日期,用法同 <a href=\"./date#%E9%99%90%E5%88%B6%E8%8C%83%E5%9B%B4\">限制范围</a></td>\n</tr>\n<tr>\n<td>maxDate</td>\n<td><code>string</code></td>\n<td></td>\n<td>限制最大日期,用法同 <a href=\"./date#%E9%99%90%E5%88%B6%E8%8C%83%E5%9B%B4\">限制范围</a></td>\n</tr>\n<tr>\n<td>utc</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td><a href=\"./date#utc\">保存UTC值</a></td>\n</tr>\n<tr>\n<td>clearable</td>\n<td><code>boolean</code></td>\n<td><code>true</code></td>\n<td>是否可清除</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
amis.define('docs/components/form/datetime-range.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Datetime-Range 日期时间范围",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": null,
|
||||
"menuName": "Datetime-Range",
|
||||
"icon": null,
|
||||
"order": 16,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 700px\"><script type=\"text/schema\" height=\"700\" scope=\"body\">{\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n \"controls\": [\n {\n \"type\": \"datetime-range\",\n \"name\": \"select\",\n \"label\": \"日期时间范围\"\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><p>除了支持 <a href=\"./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8\">普通表单项属性表</a> 中的配置以外,还支持下面一些配置</p>\n<table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>format</td>\n<td><code>string</code></td>\n<td><code>X</code></td>\n<td><a href=\"./datetime#%E5%80%BC%E6%A0%BC%E5%BC%8F\">日期时间选择器值格式</a></td>\n</tr>\n<tr>\n<td>inputFormat</td>\n<td><code>string</code></td>\n<td><code>YYYY-DD-MM</code></td>\n<td><a href=\"./datetime#%E6%98%BE%E7%A4%BA%E6%A0%BC%E5%BC%8F\">日期时间选择器显示格式</a></td>\n</tr>\n<tr>\n<td>placeholder</td>\n<td><code>string</code></td>\n<td><code>"请选择日期范围"</code></td>\n<td>占位文本</td>\n</tr>\n<tr>\n<td>shortcuts</td>\n<td><code>string</code></td>\n<td></td>\n<td><a href=\"./datetime#%E5%BF%AB%E6%8D%B7%E9%94%AE\">日期时间快捷键</a></td>\n</tr>\n<tr>\n<td>minDate</td>\n<td><code>string</code></td>\n<td></td>\n<td>限制最小日期时间,用法同 <a href=\"./datetime#%E9%99%90%E5%88%B6%E8%8C%83%E5%9B%B4\">限制范围</a></td>\n</tr>\n<tr>\n<td>maxDate</td>\n<td><code>string</code></td>\n<td></td>\n<td>限制最大日期时间,用法同 <a href=\"./datetime#%E9%99%90%E5%88%B6%E8%8C%83%E5%9B%B4\">限制范围</a></td>\n</tr>\n<tr>\n<td>utc</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td><a href=\"./datetime#utc\">保存UTC值</a></td>\n</tr>\n<tr>\n<td>clearable</td>\n<td><code>boolean</code></td>\n<td><code>true</code></td>\n<td>是否可清除</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,39 @@
|
|||
amis.define('docs/components/form/editor.md', function(require, exports, module, define) {
|
||||
|
||||
module.exports = {
|
||||
"title": "Editor 编辑器",
|
||||
"description": null,
|
||||
"type": 0,
|
||||
"group": null,
|
||||
"menuName": "Editor",
|
||||
"icon": null,
|
||||
"order": 19,
|
||||
"html": "<h2><a class=\"anchor\" name=\"%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" href=\"#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>基本用法</h2><div class=\"amis-preview\" style=\"height: 600px\"><script type=\"text/schema\" height=\"600\" scope=\"body\">{\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n \"controls\": [\n {\n \"type\": \"editor\",\n \"name\": \"editor\",\n \"label\": \"编辑器\"\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E6%94%AF%E6%8C%81%E7%9A%84%E8%AF%AD%E8%A8%80\" href=\"#%E6%94%AF%E6%8C%81%E7%9A%84%E8%AF%AD%E8%A8%80\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>支持的语言</h2><p>可以设置<code>language</code>配置高亮的语言,支持的语言有:</p>\n<p><code>bat</code>、 <code>c</code>、 <code>coffeescript</code>、 <code>cpp</code>、 <code>csharp</code>、 <code>css</code>、 <code>dockerfile</code>、 <code>fsharp</code>、 <code>go</code>、 <code>handlebars</code>、 <code>html</code>、 <code>ini</code>、 <code>java</code>、 <code>javascript</code>、 <code>json</code>、 <code>less</code>、 <code>lua</code>、 <code>markdown</code>、 <code>msdax</code>、 <code>objective-c</code>、 <code>php</code>、 <code>plaintext</code>、 <code>postiats</code>、 <code>powershell</code>、 <code>pug</code>、 <code>python</code>、 <code>r</code>、 <code>razor</code>、 <code>ruby</code>、 <code>sb</code>、 <code>scss</code>、 <code>sol</code>、 <code>sql</code>、 <code>swift</code>、 <code>typescript</code>、 <code>vb</code>、 <code>xml</code>、 <code>yaml</code></p>\n<div class=\"amis-preview\" style=\"height: 600px\"><script type=\"text/schema\" height=\"600\" scope=\"body\">{\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n \"controls\": [\n {\n \"type\": \"editor\",\n \"name\": \"editor\",\n \"label\": \"JSON编辑器\",\n \"language\": \"json\"\n }\n ]\n}\n</script></div>\n<p>当然你也可以使用<code>xxx-editor</code>这种形式,例如<code>"type": "json-editor"</code></p>\n<div class=\"amis-preview\" style=\"height: 600px\"><script type=\"text/schema\" height=\"600\" scope=\"body\">{\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm\",\n \"controls\": [\n {\n \"type\": \"json-editor\",\n \"name\": \"editor\",\n \"label\": \"JSON编辑器\"\n }\n ]\n}\n</script></div>\n<h2><a class=\"anchor\" name=\"%E5%B1%9E%E6%80%A7%E8%A1%A8\" href=\"#%E5%B1%9E%E6%80%A7%E8%A1%A8\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>属性表</h2><p>除了支持 <a href=\"./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8\">普通表单项属性表</a> 中的配置以外,还支持下面一些配置</p>\n<table>\n<thead>\n<tr>\n<th>属性名</th>\n<th>类型</th>\n<th>默认值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>language</td>\n<td><code>string</code></td>\n<td><code>javascript</code></td>\n<td>编辑器高亮的语言</td>\n</tr>\n</tbody>\n</table>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "基本用法",
|
||||
"fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "支持的语言",
|
||||
"fragment": "%E6%94%AF%E6%8C%81%E7%9A%84%E8%AF%AD%E8%A8%80",
|
||||
"fullPath": "#%E6%94%AF%E6%8C%81%E7%9A%84%E8%AF%AD%E8%A8%80",
|
||||
"level": 2
|
||||
},
|
||||
{
|
||||
"label": "属性表",
|
||||
"fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<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="https://bce.bdstatic.com/iconfont/iconfont.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="cxd"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/cxd_ae1e6f7.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
title="dark"
|
||||
disabled href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/dark_4ab4fa5.css" />
|
||||
<style>
|
||||
.app-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
// 百度统计
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?1f80f2c9dbe21dc3af239cf9eee90f1f';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
/* @require examples/index.jsx 标记为同步依赖,提前加载 */
|
||||
amis.require(['ca626e1'], function (app) {
|
||||
var initialState = {};
|
||||
app.bootstrap(document.getElementById('root'), initialState);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>AMis Renderer</title>
|
||||
<title>amis - 低代码前端框架</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@ -14,7 +14,7 @@
|
|||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_bc56774.css" />
|
||||
<link
|
||||
rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_ebc8609.css" />
|
||||
<link rel="stylesheet" href="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/style_a1ead97.css" />
|
||||
<link rel="stylesheet" title="default" href="https://bce.bdstatic.com/fex/amis-gh-pages/scss/themes/default_a0692c3.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
|
@ -35,11 +35,11 @@
|
|||
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_3938ec9.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_de89256.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_de57f66.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_6ad7fdb.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_e51f111.js"></script>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_a99ecf2.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_a8d483f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_34273e3.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_5b6e508.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_7ecd8c1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue