mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
更新 gh-pages
This commit is contained in:
parent
63745c5cd0
commit
ef9e0e8696
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
File diff suppressed because one or more lines are too long
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,20 +0,0 @@
|
||||
define('docs/renderers/Definitions.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h2><a class=\"anchor\" name=\"definitions\" href=\"#definitions\" 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>Definitions</h2><p><code>Definitions</code>建立当前页面公共的配置项,在其他组件中可以通过<code>$ref</code>来引用当前配置项中的内容</p>\n<div class=\"amis-preview\" style=\"height: 800px\"><script type=\"text/schema\" height=\"800\">{\n \"definitions\": {\n \"aa\": {\n \"type\": \"text\",\n \"name\": \"jack\",\n \"value\": \"ref value\",\n \"remark\": \"通过<code>\\\\$ref</code>引入的组件\"\n },\n \"bb\": {\n \"type\": \"combo\",\n \"multiple\": true,\n \"multiLine\": true,\n \"remark\": \"<code>combo</code>中的子项引入自身,实现嵌套的效果\",\n \"controls\": [\n {\n \"label\": \"combo 1\",\n \"type\": \"text\",\n \"name\": \"key\"\n },\n {\n \"label\": \"combo 2\",\n \"name\": \"value\",\n \"$ref\": \"aa\",\n \"remark\": \"<code>definitions</code> 中可以引用 <code>definitions</code> 中其他的属性\"\n },\n {\n \"name\": \"children\",\n \"label\": \"children\",\n \"$ref\": \"bb\"\n }\n ]\n }\n },\n \"type\": \"page\",\n \"title\": \"引用\",\n \"body\": [\n {\n \"type\": \"form\",\n \"api\": \"api/xxx\",\n \"actions\": [],\n \"controls\": [\n {\n \"label\": \"text2\",\n \"$ref\": \"aa\",\n \"name\": \"ref1\"\n },\n {\n \"label\": \"combo\",\n \"$ref\": \"bb\",\n \"name\": \"ref2\"\n }\n ]\n },\n {\n \"type\": \"form\",\n \"api\": \"api/xxx\",\n \"actions\": [],\n \"controls\": [\n {\n \"label\": \"select\",\n \"$ref\": \"aa\",\n \"name\": \"select\",\n \"type\": \"select\",\n \"value\": 1,\n \"options\": [\n {\n \"label\": \"Option A\",\n \"value\": 1\n },\n {\n \"label\": \"Option B\",\n \"value\": 2\n }\n ],\n \"remark\": \"原属性会覆盖引用中的属性\"\n },\n {\n \"label\": \"radios\",\n \"$ref\": \"bb\",\n \"type\": \"radios\",\n \"name\": \"radios\",\n \"value\": \"Option A\",\n \"options\": [\n \"Option A\",\n \"Option B\"\n ],\n \"remark\": \"原属性会覆盖引用中的属性\"\n }\n ]\n }\n ]\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "Definitions",
|
||||
"fragment": "definitions",
|
||||
"fullPath": "#definitions",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
20
gh-pages/docs/renderers/Definitions_e21167a.js
Normal file
20
gh-pages/docs/renderers/Definitions_e21167a.js
Normal file
@ -0,0 +1,20 @@
|
||||
define('docs/renderers/Definitions.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h2><a class=\"anchor\" name=\"definitions\" href=\"#definitions\" 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>Definitions</h2><p><code>Definitions</code>建立当前页面公共的配置项,在其他组件中可以通过<code>$ref</code>来引用当前配置项中的内容。注意 definitions 只能在顶级节点中定义,定义在其他位置,将引用不到。</p>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\">{\n \"definitions\": {\n \"aa\": {\n \"type\": \"text\",\n \"name\": \"jack\",\n \"value\": \"ref value\",\n \"labelRemark\": \"通过<code>\\\\$ref</code>引入的组件\"\n }\n },\n \"type\": \"page\",\n \"title\": \"引用\",\n \"body\": [\n {\n \"type\": \"form\",\n \"api\": \"api/xxx\",\n \"actions\": [],\n \"controls\": [\n {\n \"$ref\": \"aa\"\n }\n ]\n }\n ]\n}\n</script></div>\n<p><code>Definitions</code> 最大的作用其实是能够实现对数据格式的递归引用。来看这个栗子吧。</p>\n<div class=\"amis-preview\" style=\"height: 800px\"><script type=\"text/schema\" height=\"800\">{\n \"definitions\": {\n \"options\": {\n \"type\": \"combo\",\n \"multiple\": true,\n \"multiLine\": true,\n \"name\": \"options\",\n \"controls\": [\n {\n \"type\": \"group\",\n \"controls\": [\n {\n \"label\": \"名称\",\n \"name\": \"label\",\n \"type\": \"text\",\n \"required\": true\n },\n {\n \"label\": \"值\",\n \"name\": \"value\",\n \"type\": \"text\",\n \"required\": true\n }\n ]\n },\n {\n \"label\": \"包含子选项\",\n \"type\": \"switch\",\n \"name\": \"hasChildren\",\n \"mode\": \"inline\",\n \"className\": \"block\"\n },\n {\n \"$ref\": \"options\",\n \"label\": \"子选项\",\n \"name\": \"children\",\n \"visibleOn\": \"this.hasOwnProperty('hasChildren') && this.hasChildren\",\n \"addButtonText\": \"新增子选项\"\n }\n ]\n }\n },\n \"type\": \"page\",\n \"title\": \"引用\",\n \"body\": [\n {\n \"type\": \"form\",\n \"api\": \"api/xxx\",\n \"actions\": [],\n \"controls\": [\n {\n \"$ref\": \"options\",\n \"label\": \"选项\"\n },\n\n {\n \"type\": \"static\",\n \"label\": \"当前值\",\n \"tpl\": \"<pre>${options|json}</pre>\"\n }\n ]\n }\n ]\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "Definitions",
|
||||
"fragment": "definitions",
|
||||
"fullPath": "#definitions",
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Dialog.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h2><a class=\"anchor\" name=\"dialog\" href=\"#dialog\" 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>Dialog</h2><p>Dialog 由 <a href=\"/amis/docs/renderers/Action\">Action</a> 触发。他是一个类似于 <a href=\"/amis/docs/renderers/Page\">Page</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></td>\n<td><code>"dialog"</code> 指定为 Dialog 渲染器</td>\n</tr>\n<tr>\n<td>title</td>\n<td><code>string</code> 或者 <a href=\"/amis/docs/renderers/Types#Container\">Container</a></td>\n<td></td>\n<td>弹出层标题</td>\n</tr>\n<tr>\n<td>body</td>\n<td><a href=\"/amis/docs/renderers/Types#Container\">Container</a></td>\n<td></td>\n<td>往 Dialog 内容区加内容</td>\n</tr>\n<tr>\n<td>size</td>\n<td><code>string</code></td>\n<td></td>\n<td>指定 dialog 大小,支持: <code>xs</code>、<code>sm</code>、<code>md</code>、<code>lg</code></td>\n</tr>\n<tr>\n<td>bodyClassName</td>\n<td><code>string</code></td>\n<td><code>modal-body</code></td>\n<td>Dialog body 区域的样式类名</td>\n</tr>\n<tr>\n<td>closeOnEsc</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>是否支持按 <code>Esc</code> 关闭 Dialog</td>\n</tr>\n<tr>\n<td>disabled</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>如果设置此属性,则该 Dialog 只读没有提交操作。</td>\n</tr>\n<tr>\n<td>actions</td>\n<td>Array Of <a href=\"/amis/docs/renderers/Action\">Action</a></td>\n<td></td>\n<td>可以不设置,默认只有【确认】和【取消】两个按钮。</td>\n</tr>\n</tbody>\n</table>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\">{\n \"body\": {\n \"label\": \"弹出\",\n \"type\": \"button\",\n \"level\": \"primary\",\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"title\": \"表单设置\",\n \"body\": {\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1\",\n \"controls\": [\n {\n \"type\": \"text\",\n \"name\": \"text\",\n \"label\": \"文本\"\n }\n ]\n }\n }\n }\n}\n</script></div>\n",
|
||||
"html": "<h2><a class=\"anchor\" name=\"dialog\" href=\"#dialog\" 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>Dialog</h2><p>Dialog 由 <a href=\"/amis/docs/renderers/Action\">Action</a> 触发。他是一个类似于 <a href=\"/amis/docs/renderers/Page\">Page</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></td>\n<td><code>"dialog"</code> 指定为 Dialog 渲染器</td>\n</tr>\n<tr>\n<td>title</td>\n<td><code>string</code> 或者 <a href=\"/amis/docs/renderers/Types#Container\">Container</a></td>\n<td></td>\n<td>弹出层标题</td>\n</tr>\n<tr>\n<td>body</td>\n<td><a href=\"/amis/docs/renderers/Types#Container\">Container</a></td>\n<td></td>\n<td>往 Dialog 内容区加内容</td>\n</tr>\n<tr>\n<td>size</td>\n<td><code>string</code></td>\n<td></td>\n<td>指定 dialog 大小,支持: <code>xs</code>、<code>sm</code>、<code>md</code>、<code>lg</code></td>\n</tr>\n<tr>\n<td>bodyClassName</td>\n<td><code>string</code></td>\n<td><code>modal-body</code></td>\n<td>Dialog body 区域的样式类名</td>\n</tr>\n<tr>\n<td>closeOnEsc</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>是否支持按 <code>Esc</code> 关闭 Dialog</td>\n</tr>\n<tr>\n<td>disabled</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>如果设置此属性,则该 Dialog 只读没有提交操作。</td>\n</tr>\n<tr>\n<td>actions</td>\n<td>Array Of <a href=\"/amis/docs/renderers/Action\">Action</a></td>\n<td></td>\n<td>可以不设置,默认只有【确认】和【取消】两个按钮。</td>\n</tr>\n<tr>\n<td>data</td>\n<td><code>object</code></td>\n<td></td>\n<td>用于数据映射,如果不设定将默认将触发按钮的上下文中继承数据。用法同 api 中的 <a href=\"/amis/docs/renderers/Types#api\">data</a> 用法</td>\n</tr>\n</tbody>\n</table>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\">{\n \"body\": {\n \"label\": \"弹出\",\n \"type\": \"button\",\n \"level\": \"primary\",\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"title\": \"表单设置\",\n \"body\": {\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1\",\n \"controls\": [\n {\n \"type\": \"text\",\n \"name\": \"text\",\n \"label\": \"文本\"\n }\n ]\n }\n }\n }\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Drawer.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h2><a class=\"anchor\" name=\"drawer\" href=\"#drawer\" 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>Drawer</h2><p>Drawer 由 <a href=\"/amis/docs/renderers/Action\">Action</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></td>\n<td><code>"drawer"</code> 指定为 Drawer 渲染器</td>\n</tr>\n<tr>\n<td>title</td>\n<td><code>string</code> 或者 <a href=\"/amis/docs/renderers/Types#Container\">Container</a></td>\n<td></td>\n<td>弹出层标题</td>\n</tr>\n<tr>\n<td>body</td>\n<td><a href=\"/amis/docs/renderers/Types#Container\">Container</a></td>\n<td></td>\n<td>往 Drawer 内容区加内容</td>\n</tr>\n<tr>\n<td>size</td>\n<td><code>string</code></td>\n<td></td>\n<td>指定 Drawer 大小,支持: <code>xs</code>、<code>sm</code>、<code>md</code>、<code>lg</code></td>\n</tr>\n<tr>\n<td>bodyClassName</td>\n<td><code>string</code></td>\n<td><code>modal-body</code></td>\n<td>Drawer body 区域的样式类名</td>\n</tr>\n<tr>\n<td>closeOnEsc</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>是否支持按 <code>Esc</code> 关闭 Drawer</td>\n</tr>\n<tr>\n<td>closeOnOutside</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>点击内容区外是否关闭 Drawer</td>\n</tr>\n<tr>\n<td>overlay</td>\n<td><code>boolean</code></td>\n<td><code>true</code></td>\n<td>是否显示蒙层</td>\n</tr>\n<tr>\n<td>resizable</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>是否可通过拖拽改变 Drawer 大小</td>\n</tr>\n<tr>\n<td>actions</td>\n<td>Array Of <a href=\"/amis/docs/renderers/Action\">Action</a></td>\n<td></td>\n<td>可以不设置,默认只有【确认】和【取消】两个按钮。</td>\n</tr>\n</tbody>\n</table>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\">{\n \"body\": {\n \"label\": \"弹出\",\n \"type\": \"button\",\n \"level\": \"primary\",\n \"actionType\": \"drawer\",\n \"drawer\": {\n \"title\": \"表单设置\",\n \"body\": {\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1\",\n \"controls\": [\n {\n \"type\": \"text\",\n \"name\": \"text\",\n \"label\": \"文本\"\n }\n ]\n }\n }\n }\n}\n</script></div>\n",
|
||||
"html": "<h2><a class=\"anchor\" name=\"drawer\" href=\"#drawer\" 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>Drawer</h2><p>Drawer 由 <a href=\"/amis/docs/renderers/Action\">Action</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></td>\n<td><code>"drawer"</code> 指定为 Drawer 渲染器</td>\n</tr>\n<tr>\n<td>title</td>\n<td><code>string</code> 或者 <a href=\"/amis/docs/renderers/Types#Container\">Container</a></td>\n<td></td>\n<td>弹出层标题</td>\n</tr>\n<tr>\n<td>body</td>\n<td><a href=\"/amis/docs/renderers/Types#Container\">Container</a></td>\n<td></td>\n<td>往 Drawer 内容区加内容</td>\n</tr>\n<tr>\n<td>size</td>\n<td><code>string</code></td>\n<td></td>\n<td>指定 Drawer 大小,支持: <code>xs</code>、<code>sm</code>、<code>md</code>、<code>lg</code></td>\n</tr>\n<tr>\n<td>bodyClassName</td>\n<td><code>string</code></td>\n<td><code>modal-body</code></td>\n<td>Drawer body 区域的样式类名</td>\n</tr>\n<tr>\n<td>closeOnEsc</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>是否支持按 <code>Esc</code> 关闭 Drawer</td>\n</tr>\n<tr>\n<td>closeOnOutside</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>点击内容区外是否关闭 Drawer</td>\n</tr>\n<tr>\n<td>overlay</td>\n<td><code>boolean</code></td>\n<td><code>true</code></td>\n<td>是否显示蒙层</td>\n</tr>\n<tr>\n<td>resizable</td>\n<td><code>boolean</code></td>\n<td><code>false</code></td>\n<td>是否可通过拖拽改变 Drawer 大小</td>\n</tr>\n<tr>\n<td>actions</td>\n<td>Array Of <a href=\"/amis/docs/renderers/Action\">Action</a></td>\n<td></td>\n<td>可以不设置,默认只有【确认】和【取消】两个按钮。</td>\n</tr>\n<tr>\n<td>data</td>\n<td><code>object</code></td>\n<td></td>\n<td>用于数据映射,如果不设定将默认将触发按钮的上下文中继承数据。用法同 api 中的 <a href=\"/amis/docs/renderers/Types#api\">data</a> 用法</td>\n</tr>\n</tbody>\n</table>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\">{\n \"body\": {\n \"label\": \"弹出\",\n \"type\": \"button\",\n \"level\": \"primary\",\n \"actionType\": \"drawer\",\n \"drawer\": {\n \"title\": \"表单设置\",\n \"body\": {\n \"type\": \"form\",\n \"api\": \"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1\",\n \"controls\": [\n {\n \"type\": \"text\",\n \"name\": \"text\",\n \"label\": \"文本\"\n }\n ]\n }\n }\n }\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Array.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"array\" href=\"#array\" 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>Array</h3><p>数组输入框配置</p>\n<p>其实就是 <a href=\"/amis/docs/renderers/Form/Combo\">Combo</a> 的一个 flat 用法。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>array</code></li>\n<li><code>items</code> 配置单项表单类型</li>\n<li><code>addable</code> 是否可新增。</li>\n<li><code>removable</code> 是否可删除</li>\n<li><code>draggable</code> 默认为 <code>false</code>, 是否可以拖动排序, 需要注意的是当启用拖动排序的时候,会多一个\\$id 字段</li>\n<li><code>draggableTip</code> 可拖拽的提示文字,默认为:<code>"可通过拖动每行中的【交换】按钮进行顺序调整"</code></li>\n<li><code>addButtonText</code> 新增按钮文字,默认为 <code>"新增"</code>。</li>\n<li><code>minLength</code> 限制最小长度。</li>\n<li><code>maxLength</code> 限制最大长度。</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 650px\"><script type=\"text/schema\" height=\"650\" 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 {\n \"type\": \"static\",\n \"name\": \"array\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"array\" href=\"#array\" 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>Array</h3><p>数组输入框配置</p>\n<p>其实就是 <a href=\"/amis/docs/renderers/Form/Combo\">Combo</a> 的一个 flat 用法。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>array</code></li>\n<li><code>items</code> 配置单项表单类型</li>\n<li><code>addable</code> 是否可新增。</li>\n<li><code>removable</code> 是否可删除</li>\n<li><code>draggable</code> 默认为 <code>false</code>, 是否可以拖动排序, 需要注意的是当启用拖动排序的时候,会多一个\\$id 字段</li>\n<li><code>draggableTip</code> 可拖拽的提示文字,默认为:<code>"可通过拖动每行中的【交换】按钮进行顺序调整"</code></li>\n<li><code>addButtonText</code> 新增按钮文字,默认为 <code>"新增"</code>。</li>\n<li><code>minLength</code> 限制最小长度。</li>\n<li><code>maxLength</code> 限制最大长度。</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 650px\"><script type=\"text/schema\" height=\"650\" 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 {\n \"type\": \"static\",\n \"name\": \"array\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Button-Group.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"button-group-formitem-\" href=\"#button-group-formitem-\" 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>Button-Group(FormItem)</h3><p>按钮集合,直接看示例吧。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>button-group</code></li>\n<li><code>buttons</code> 配置按钮集合。</li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form\">[\n {\n \"type\": \"text\",\n \"name\": \"test\",\n \"label\": \"Text\"\n },\n\n {\n \"type\": \"button-toolbar\",\n \"buttons\": [\n {\n \"type\": \"button-group\",\n \"buttons\": [\n {\n \"type\": \"button\",\n \"label\": \"Button\",\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"confirmMode\": false,\n \"title\": \"提示\",\n \"body\": \"对,你刚点击了!\"\n }\n },\n\n {\n \"type\": \"submit\",\n \"label\": \"Submit\"\n },\n\n {\n \"type\": \"reset\",\n \"label\": \"Reset\"\n }\n ]\n },\n\n {\n \"type\": \"submit\",\n \"icon\": \"fa fa-check text-success\"\n },\n\n {\n \"type\": \"reset\",\n \"icon\": \"fa fa-times text-danger\"\n }\n ]\n }\n]\n</script></div>\n<p>button-group 有两种模式,除了能让按钮组合在一起,还能做类似于单选功能。</p>\n<p>当不配置 buttons 属性时,就可以当复选框用。</p>\n<ul>\n<li><code>options</code> 选项配置,类型为数组,成员格式如下。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n<li><code>image</code> 图片的 <code>http</code> 地址。</li>\n</ul>\n</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>multiple</code> 默认为 <code>false</code>, 设置成 <code>true</code> 表示可多选。</li>\n<li><code>joinValues</code> 默认为 <code>true</code></li>\n<li>单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。</li>\n<li>多选模式:选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 <code>value</code> 的值封装为数组,作为当前表单项的值。</li>\n<li><code>clearable</code> 默认为 <code>true</code>, 表示可以取消选中。</li>\n<li><code>size</code> 按钮大小,从小到大依次为<code>xs, sm, md, lg</code></li>\n<li><code>disabled</code> 是否禁用<code>options</code> 中选项</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"button-group\",\n \"name\": \"select\",\n \"label\": \"单选\",\n \"options\": [\n {\n \"label\": \"Option A\",\n \"value\": \"a\"\n },\n {\n \"label\": \"Option B\",\n \"value\": \"b\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"button-group-formitem-\" href=\"#button-group-formitem-\" 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>Button-Group(FormItem)</h3><p>按钮集合,直接看示例吧。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>button-group</code></li>\n<li><code>buttons</code> 配置按钮集合。</li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form\">[\n {\n \"type\": \"text\",\n \"name\": \"test\",\n \"label\": \"Text\"\n },\n\n {\n \"type\": \"button-toolbar\",\n \"buttons\": [\n {\n \"type\": \"button-group\",\n \"buttons\": [\n {\n \"type\": \"button\",\n \"label\": \"Button\",\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"confirmMode\": false,\n \"title\": \"提示\",\n \"body\": \"对,你刚点击了!\"\n }\n },\n\n {\n \"type\": \"submit\",\n \"label\": \"Submit\"\n },\n\n {\n \"type\": \"reset\",\n \"label\": \"Reset\"\n }\n ]\n },\n\n {\n \"type\": \"submit\",\n \"icon\": \"fa fa-check text-success\"\n },\n\n {\n \"type\": \"reset\",\n \"icon\": \"fa fa-times text-danger\"\n }\n ]\n }\n]\n</script></div>\n<p>button-group 有两种模式,除了能让按钮组合在一起,还能做类似于单选功能。</p>\n<p>当不配置 buttons 属性时,就可以当复选框用。</p>\n<ul>\n<li><code>options</code> 选项配置,类型为数组,成员格式如下。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n<li><code>image</code> 图片的 <code>http</code> 地址。</li>\n</ul>\n</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>multiple</code> 默认为 <code>false</code>, 设置成 <code>true</code> 表示可多选。</li>\n<li><code>joinValues</code> 默认为 <code>true</code></li>\n<li>单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。</li>\n<li>多选模式:选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 <code>value</code> 的值封装为数组,作为当前表单项的值。</li>\n<li><code>clearable</code> 默认为 <code>true</code>, 表示可以取消选中。</li>\n<li><code>size</code> 按钮大小,从小到大依次为<code>xs, sm, md, lg</code></li>\n<li><code>disabled</code> 是否禁用<code>options</code> 中选项</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"button-group\",\n \"name\": \"select\",\n \"label\": \"单选\",\n \"options\": [\n {\n \"label\": \"Option A\",\n \"value\": \"a\"\n },\n {\n \"label\": \"Option B\",\n \"value\": \"b\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Chained-Select.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"chained-select\" href=\"#chained-select\" 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>Chained-Select</h3><p>无限级别下拉,只支持单选,且必须和 <code>source</code> 搭配,通过 API 拉取数据,只要 API 有返回结果,就能一直无限级别下拉下去。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>chained-select</code></li>\n<li><code>options</code> 选项配置,类型为数组,成员格式如下。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n</ul>\n</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。另外也可以用 <code>$xxxx</code> 来获取当前作用域中的变量。</li>\n<li><code>joinValues</code> 默认为 <code>true</code></li>\n<li>单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。</li>\n<li>多选模式:选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 <code>value</code> 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 500px\"><script type=\"text/schema\" height=\"500\" scope=\"form-item\">{\n \"name\": \"select3\",\n \"type\": \"chained-select\",\n \"label\": \"级联下拉\",\n \"source\": \"https://houtai.baidu.com/api/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4&waiSeconds=1\",\n \"value\": \"a,b\"\n}\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"chained-select\" href=\"#chained-select\" 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>Chained-Select</h3><p>无限级别下拉,只支持单选,且必须和 <code>source</code> 搭配,通过 API 拉取数据,只要 API 有返回结果,就能一直无限级别下拉下去。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>chained-select</code></li>\n<li><code>options</code> 选项配置,类型为数组,成员格式如下。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n</ul>\n</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。另外也可以用 <code>$xxxx</code> 来获取当前作用域中的变量。</li>\n<li><code>joinValues</code> 默认为 <code>true</code></li>\n<li>单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。</li>\n<li>多选模式:选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 <code>value</code> 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 500px\"><script type=\"text/schema\" height=\"500\" scope=\"form-item\">{\n \"name\": \"select3\",\n \"type\": \"chained-select\",\n \"label\": \"级联下拉\",\n \"source\": \"https://houtai.baidu.com/api/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4&waiSeconds=1\",\n \"value\": \"a,b\"\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Checkbox.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"checkbox\" href=\"#checkbox\" 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>Checkbox</h3><p>勾选框</p>\n<ul>\n<li><code>type</code> 请设置成 <code>checkbox</code></li>\n<li><code>option</code> 选项说明</li>\n<li><code>trueValue</code> 默认 <code>true</code></li>\n<li><code>falseValue</code> 默认 <code>false</code></li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form-item\">{\n \"name\": \"checkbox\",\n \"type\": \"checkbox\",\n \"label\": \"Checkbox\",\n \"option\": \"选项说明\"\n}\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"checkbox\" href=\"#checkbox\" 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>Checkbox</h3><p>勾选框</p>\n<ul>\n<li><code>type</code> 请设置成 <code>checkbox</code></li>\n<li><code>option</code> 选项说明</li>\n<li><code>trueValue</code> 默认 <code>true</code></li>\n<li><code>falseValue</code> 默认 <code>false</code></li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form-item\">{\n \"name\": \"checkbox\",\n \"type\": \"checkbox\",\n \"label\": \"Checkbox\",\n \"option\": \"选项说明\"\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Checkboxes.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"checkboxes\" href=\"#checkboxes\" 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>Checkboxes</h3><p>复选框</p>\n<ul>\n<li><code>type</code> 请设置成 <code>checkboxes</code></li>\n<li><code>options</code> 选项配置,类型为数组,成员格式如下。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n</ul>\n</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>joinValues</code> 默认为 <code>true</code> 选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li><code>columnsCount</code> 默认为 <code>1</code> 可以配置成一行显示多个。</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 530px\"><script type=\"text/schema\" height=\"530\" scope=\"form\">[\n {\n \"name\": \"checkboxes\",\n \"type\": \"checkboxes\",\n \"label\": \"Checkboxes\",\n \"options\": [\n {\n \"label\": \"OptionA\",\n \"value\": \"a\"\n },\n {\n \"label\": \"OptionB\",\n \"value\": \"b\"\n },\n {\n \"label\": \"OptionC\",\n \"value\": \"c\"\n },\n {\n \"label\": \"OptionD\",\n \"value\": \"d\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"checkboxes\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"checkboxes\" href=\"#checkboxes\" 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>Checkboxes</h3><p>复选框</p>\n<ul>\n<li><code>type</code> 请设置成 <code>checkboxes</code></li>\n<li><code>options</code> 选项配置,类型为数组,成员格式如下。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n</ul>\n</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>joinValues</code> 默认为 <code>true</code> 选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li><code>columnsCount</code> 默认为 <code>1</code> 可以配置成一行显示多个。</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 530px\"><script type=\"text/schema\" height=\"530\" scope=\"form\">[\n {\n \"name\": \"checkboxes\",\n \"type\": \"checkboxes\",\n \"label\": \"Checkboxes\",\n \"options\": [\n {\n \"label\": \"OptionA\",\n \"value\": \"a\"\n },\n {\n \"label\": \"OptionB\",\n \"value\": \"b\"\n },\n {\n \"label\": \"OptionC\",\n \"value\": \"c\"\n },\n {\n \"label\": \"OptionD\",\n \"value\": \"d\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"checkboxes\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
20
gh-pages/docs/renderers/Form/City_3b58d02.js
Normal file
20
gh-pages/docs/renderers/Form/City_3b58d02.js
Normal file
@ -0,0 +1,20 @@
|
||||
define('docs/renderers/Form/City.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"city\" href=\"#city\" 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>City</h3><p>城市选择器,可用于让用户输入城市。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>city</code></li>\n<li><code>allowDistrict</code> 默认 <code>true</code> 允许输入区域</li>\n<li><code>allowCity</code> 默认 <code>true</code> 允许输入城市</li>\n<li><code>extractValue</code> 默认 <code>true</code> 是否抽取值,如果设置成 <code>false</code> 值格式会变成对象,包含 <code>code</code>、<code>province</code>、<code>city</code> 和 <code>district</code> 文字信息。</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form\">[\n {\n \"name\": \"city\",\n \"type\": \"city\",\n \"label\": \"城市选择\"\n },\n\n {\n \"type\": \"static\",\n \"name\": \"city\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>从配置项可以看出来,通过设置 <code>allowDistrict</code> 和 <code>allowCity</code> 是可以限制用户输入级别的,比如只选择省份。</p>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form\">[\n {\n \"name\": \"city\",\n \"type\": \"city\",\n \"label\": \"城市选择\",\n \"allowDistrict\": false,\n \"allowCity\": false\n },\n\n {\n \"type\": \"static\",\n \"name\": \"city\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>从上面的栗子可以看出来,值默认格式是编码(即 <code>code</code>),如果你想要详细点的信息,可以把 <code>extractValue</code> 设置成 <code>false</code>。</p>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form\">[\n {\n \"name\": \"city\",\n \"type\": \"city\",\n \"label\": \"城市选择\",\n \"extractValue\": false\n },\n\n {\n \"type\": \"static\",\n \"name\": \"city\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "City",
|
||||
"fragment": "city",
|
||||
"fullPath": "#city",
|
||||
"level": 3
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
@ -1,20 +0,0 @@
|
||||
define('docs/renderers/Form/City.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"city\" href=\"#city\" 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>City</h3><p>城市选择器,可用于让用户输入城市。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>city</code></li>\n<li><code>allowDistrict</code> 默认 <code>true</code> 允许输入区域</li>\n<li><code>allowCity</code> 默认 <code>true</code> 允许输入城市</li>\n<li><code>extractValue</code> 默认 <code>true</code> 是否抽取值,如果设置成 <code>false</code> 值格式会变成对象,包含 <code>code</code>、<code>province</code>、<code>city</code> 和 <code>district</code> 文字信息。</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form\">[\n {\n \"name\": \"city\",\n \"type\": \"city\",\n \"label\": \"城市选择\"\n },\n\n {\n \"type\": \"static\",\n \"name\": \"city\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>从配置项可以看出来,通过设置 <code>allowDistrict</code> 和 <code>allowCity</code> 是可以限制用户输入级别的,比如只选择省份。</p>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form\">[\n {\n \"name\": \"city\",\n \"type\": \"city\",\n \"label\": \"城市选择\",\n \"allowDistrict\": false,\n \"allowCity\": false\n },\n\n {\n \"type\": \"static\",\n \"name\": \"city\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>从上面的栗子可以看出来,值默认格式是编码(即 <code>code</code>),如果你想要详细点的信息,可以把 <code>extractValue</code> 设置成 <code>false</code>。</p>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form\">[\n {\n \"name\": \"city\",\n \"type\": \"city\",\n \"label\": \"城市选择\",\n \"extractValue\": false\n },\n\n {\n \"type\": \"static\",\n \"name\": \"city\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "City",
|
||||
"fragment": "city",
|
||||
"fullPath": "#city",
|
||||
"level": 3
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
File diff suppressed because one or more lines are too long
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Date-Range.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"date-range\" href=\"#date-range\" 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>Date-Range</h3><p>日期范围类型。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>date-range</code></li>\n<li><code>format</code> 默认 <code>X</code> 即时间戳格式,用来提交的时间格式。更多格式类型请参考 <a href=\"http://momentjs.com/\">moment</a>.</li>\n<li><code>inputFormat</code> 默认 <code>HH:mm</code> 用来配置显示的时间格式。</li>\n<li><code>minDate</code> 限制最小日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></li>\n<li><code>maxDate</code> 限制最大日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"date-range\",\n \"name\": \"select\",\n \"label\": \"日期范围\"\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>考虑到大家都习惯用两个字段来存储,那么就用 date 来代替吧。</p>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n [\n {\n \"type\": \"date\",\n \"name\": \"start\",\n \"label\": \"开始日期\",\n \"maxDate\": \"$end\"\n },\n\n {\n \"type\": \"date\",\n \"name\": \"end\",\n \"label\": \"结束日期\",\n \"minDate\": \"$start\"\n }\n ],\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\",\n \"description\": \"包含开始日期和结束日期\",\n \"tpl\": \"$start - $end\"\n }\n]\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"date-range\" href=\"#date-range\" 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>Date-Range</h3><p>日期范围类型。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>date-range</code></li>\n<li><code>format</code> 默认 <code>X</code> 即时间戳格式,用来提交的时间格式。更多格式类型请参考 <a href=\"http://momentjs.com/\">moment</a>.</li>\n<li><code>inputFormat</code> 默认 <code>HH:mm</code> 用来配置显示的时间格式。</li>\n<li><code>minDate</code> 限制最小日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></li>\n<li><code>maxDate</code> 限制最大日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"date-range\",\n \"name\": \"select\",\n \"label\": \"日期范围\"\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>考虑到大家都习惯用两个字段来存储,那么就用 date 来代替吧。</p>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n [\n {\n \"type\": \"date\",\n \"name\": \"start\",\n \"label\": \"开始日期\",\n \"maxDate\": \"$end\"\n },\n\n {\n \"type\": \"date\",\n \"name\": \"end\",\n \"label\": \"结束日期\",\n \"minDate\": \"$start\"\n }\n ],\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\",\n \"description\": \"包含开始日期和结束日期\",\n \"tpl\": \"$start - $end\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Date.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"date\" href=\"#date\" 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>Date</h3><p>日期类型。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>date</code></li>\n<li><code>format</code> 默认 <code>X</code> 即时间戳格式,用来提交的时间格式。更多格式类型请参考 <a href=\"http://momentjs.com/\">moment</a>.</li>\n<li><code>inputFormat</code> 默认 <code>YYYY-MM-DD</code> 用来配置显示的时间格式。</li>\n<li><code>placeholder</code> 默认 <code>请选择日期</code></li>\n<li><code>value</code> 这里面 value 需要特殊说明一下,因为支持相对值。如:<ul>\n<li><code>-2mins</code> 2 分钟前</li>\n<li><code>+2days</code> 2 天后</li>\n<li><code>-10week</code> 十周前</li>\n</ul>\n</li>\n<li><code>minDate</code> 限制最小日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></li>\n<li><p><code>maxDate</code> 限制最大日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></p>\n<p>可用单位: <code>min</code>、<code>hour</code>、<code>day</code>、<code>week</code>、<code>month</code>、<code>year</code>。所有单位支持复数形式。</p>\n</li>\n<li><p>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></p>\n</li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"date\",\n \"name\": \"select\",\n \"label\": \"日期\"\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"date\" href=\"#date\" 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>Date</h3><p>日期类型。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>date</code></li>\n<li><code>format</code> 默认 <code>X</code> 即时间戳格式,用来提交的时间格式。更多格式类型请参考 <a href=\"http://momentjs.com/\">moment</a>.</li>\n<li><code>inputFormat</code> 默认 <code>YYYY-MM-DD</code> 用来配置显示的时间格式。</li>\n<li><code>placeholder</code> 默认 <code>请选择日期</code></li>\n<li><code>value</code> 这里面 value 需要特殊说明一下,因为支持相对值。如:<ul>\n<li><code>-2mins</code> 2 分钟前</li>\n<li><code>+2days</code> 2 天后</li>\n<li><code>-10week</code> 十周前</li>\n</ul>\n</li>\n<li><code>minDate</code> 限制最小日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></li>\n<li><p><code>maxDate</code> 限制最大日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></p>\n<p>可用单位: <code>min</code>、<code>hour</code>、<code>day</code>、<code>week</code>、<code>month</code>、<code>year</code>。所有单位支持复数形式。</p>\n</li>\n<li><p><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></p>\n</li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"date\",\n \"name\": \"select\",\n \"label\": \"日期\"\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Datetime.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"datetime\" href=\"#datetime\" 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>Datetime</h3><p>日期时间类型。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>datetime</code></li>\n<li><code>format</code> 默认 <code>X</code> 即时间戳格式,用来提交的时间格式。更多格式类型请参考 <a href=\"http://momentjs.com/\">moment</a>.</li>\n<li><code>inputFormat</code> 默认 <code>YYYY-MM-DD HH:mm:ss</code> 用来配置显示的时间格式。</li>\n<li><code>placeholder</code> 默认 <code>请选择日期</code></li>\n<li><code>timeConstraints</code> 请参考: <a href=\"https://github.com/YouCanBookMe/react-datetime\">react-datetime</a></li>\n<li><code>value</code> 这里面 <code>value</code> 需要特殊说明一下,因为支持相对值。如:<ul>\n<li><code>-2mins</code> 2 分钟前</li>\n<li><code>+2days</code> 2 天后</li>\n<li><code>-10week</code> 十周前</li>\n</ul>\n</li>\n<li><code>minDate</code> 限制最小日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></li>\n<li><p><code>maxDate</code> 限制最大日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></p>\n<p>可用单位: <code>min</code>、<code>hour</code>、<code>day</code>、<code>week</code>、<code>month</code>、<code>year</code>。所有单位支持复数形式。</p>\n</li>\n<li><p>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></p>\n</li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"datetime\",\n \"name\": \"select\",\n \"label\": \"日期\"\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"datetime\" href=\"#datetime\" 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>Datetime</h3><p>日期时间类型。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>datetime</code></li>\n<li><code>format</code> 默认 <code>X</code> 即时间戳格式,用来提交的时间格式。更多格式类型请参考 <a href=\"http://momentjs.com/\">moment</a>.</li>\n<li><code>inputFormat</code> 默认 <code>YYYY-MM-DD HH:mm:ss</code> 用来配置显示的时间格式。</li>\n<li><code>placeholder</code> 默认 <code>请选择日期</code></li>\n<li><code>timeConstraints</code> 请参考: <a href=\"https://github.com/YouCanBookMe/react-datetime\">react-datetime</a></li>\n<li><code>value</code> 这里面 <code>value</code> 需要特殊说明一下,因为支持相对值。如:<ul>\n<li><code>-2mins</code> 2 分钟前</li>\n<li><code>+2days</code> 2 天后</li>\n<li><code>-10week</code> 十周前</li>\n</ul>\n</li>\n<li><code>minDate</code> 限制最小日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></li>\n<li><p><code>maxDate</code> 限制最大日期,可用 <code>${xxx}</code> 取值,或者输入相对时间,或者时间戳。如:<code>${start}</code>、<code>+3days</code>、<code>+3days+2hours</code>或者 <code>${start|default:-2days}+3days</code></p>\n<p>可用单位: <code>min</code>、<code>hour</code>、<code>day</code>、<code>week</code>、<code>month</code>、<code>year</code>。所有单位支持复数形式。</p>\n</li>\n<li><p><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></p>\n</li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"datetime\",\n \"name\": \"select\",\n \"label\": \"日期\"\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Editor.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"editor\" href=\"#editor\" 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>Editor</h3><h3><a class=\"anchor\" name=\"xxx-editor\" href=\"#xxx-editor\" 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>XXX-Editor</h3><ul>\n<li><code>type</code> 请设置成 <code>editor</code> 或者 <code>bat-editor</code>、<code>c-editor</code>、<code>coffeescript-editor</code>、<code>cpp-editor</code>、<code>csharp-editor</code>、<code>css-editor</code>、<code>dockerfile-editor</code>、<code>fsharp-editor</code>、<code>go-editor</code>、<code>handlebars-editor</code>、<code>html-editor</code>、<code>ini-editor</code>、<code>java-editor</code>、<code>javascript-editor</code>、<code>json-editor</code>、<code>less-editor</code>、<code>lua-editor</code>、<code>markdown-editor</code>、<code>msdax-editor</code>、<code>objective-c-editor</code>、<code>php-editor</code>、<code>plaintext-editor</code>、<code>postiats-editor</code>、<code>powershell-editor</code>、<code>pug-editor</code>、<code>python-editor</code>、<code>r-editor</code>、<code>razor-editor</code>、<code>ruby-editor</code>、<code>sb-editor</code>、<code>scss-editor</code>、<code>sol-editor</code>、<code>sql-editor</code>、<code>swift-editor</code>、<code>typescript-editor</code>、<code>vb-editor</code>、<code>xml-editor</code>、<code>yaml-editor</code>。</li>\n<li><code>language</code> 默认为 <code>javascript</code> 当 <code>type</code> 为 <code>editor</code> 的时候有用。</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 550px\"><script type=\"text/schema\" height=\"550\" scope=\"form-item\">{\n \"type\": \"json-editor\",\n \"name\": \"json\",\n \"label\": \"Json Editor\"\n}\n</script></div>\n<h3><a class=\"anchor\" name=\"diff-editor\" href=\"#diff-editor\" 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>Diff-Editor</h3><ul>\n<li><code>type</code> 请设置成 <code>diff-editor</code></li>\n<li><code>language</code> 默认为 <code>javascript</code> 当 <code>type</code> 为 <code>diff-editor</code> 的时候有用</li>\n<li><code>diffValue</code> 设置左侧编辑器的值,支持<code>${xxx}</code>获取变量</li>\n<li><code>disabled</code> 配置 <strong>右侧编辑器</strong> 是否可编辑,<strong>左侧编辑器</strong>始终不可编辑</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<p>PS: 当用作纯展示时,可以通过<code>value</code>配置项,设置右侧编辑器的值</p>\n<div class=\"amis-preview\" style=\"height: 550px\"><script type=\"text/schema\" height=\"550\" scope=\"form-item\">{\n \"type\": \"diff-editor\",\n \"name\": \"diff\",\n \"diffValue\": \"hello world\",\n \"label\": \"Diff-Editor\"\n}\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"editor\" href=\"#editor\" 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>Editor</h3><h3><a class=\"anchor\" name=\"xxx-editor\" href=\"#xxx-editor\" 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>XXX-Editor</h3><ul>\n<li><code>type</code> 请设置成 <code>editor</code> 或者 <code>bat-editor</code>、<code>c-editor</code>、<code>coffeescript-editor</code>、<code>cpp-editor</code>、<code>csharp-editor</code>、<code>css-editor</code>、<code>dockerfile-editor</code>、<code>fsharp-editor</code>、<code>go-editor</code>、<code>handlebars-editor</code>、<code>html-editor</code>、<code>ini-editor</code>、<code>java-editor</code>、<code>javascript-editor</code>、<code>json-editor</code>、<code>less-editor</code>、<code>lua-editor</code>、<code>markdown-editor</code>、<code>msdax-editor</code>、<code>objective-c-editor</code>、<code>php-editor</code>、<code>plaintext-editor</code>、<code>postiats-editor</code>、<code>powershell-editor</code>、<code>pug-editor</code>、<code>python-editor</code>、<code>r-editor</code>、<code>razor-editor</code>、<code>ruby-editor</code>、<code>sb-editor</code>、<code>scss-editor</code>、<code>sol-editor</code>、<code>sql-editor</code>、<code>swift-editor</code>、<code>typescript-editor</code>、<code>vb-editor</code>、<code>xml-editor</code>、<code>yaml-editor</code>。</li>\n<li><code>language</code> 默认为 <code>javascript</code> 当 <code>type</code> 为 <code>editor</code> 的时候有用。</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 550px\"><script type=\"text/schema\" height=\"550\" scope=\"form-item\">{\n \"type\": \"json-editor\",\n \"name\": \"json\",\n \"label\": \"Json Editor\"\n}\n</script></div>\n<h3><a class=\"anchor\" name=\"diff-editor\" href=\"#diff-editor\" 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>Diff-Editor</h3><ul>\n<li><code>type</code> 请设置成 <code>diff-editor</code></li>\n<li><code>language</code> 默认为 <code>javascript</code> 当 <code>type</code> 为 <code>diff-editor</code> 的时候有用</li>\n<li><code>diffValue</code> 设置左侧编辑器的值,支持<code>${xxx}</code>获取变量</li>\n<li><code>disabled</code> 配置 <strong>右侧编辑器</strong> 是否可编辑,<strong>左侧编辑器</strong>始终不可编辑</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<p>PS: 当用作纯展示时,可以通过<code>value</code>配置项,设置右侧编辑器的值</p>\n<div class=\"amis-preview\" style=\"height: 550px\"><script type=\"text/schema\" height=\"550\" scope=\"form-item\">{\n \"type\": \"diff-editor\",\n \"name\": \"diff\",\n \"diffValue\": \"hello world\",\n \"label\": \"Diff-Editor\"\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Email.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"email\" href=\"#email\" 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>Email</h3><p>Email 输入框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>email</code></li>\n<li><code>addOn</code> 输入框附加组件,比如附带一个提示文字,或者附带一个提交按钮。</li>\n<li><code>addOn.type</code> 请选择 <code>text</code> 、<code>button</code> 或者 <code>submit</code>。</li>\n<li><code>addOn.label</code> 文字说明</li>\n<li><code>addOn.xxx</code> 其他参数请参考按钮配置部分。</li>\n<li><code>hint</code> 当输入框获得焦点的时候显示,用来提示用户输入内容。</li>\n<li><code>trimContents</code> 是否去除首尾空白。</li>\n<li><code>clearable</code> 在有值的时候是否显示一个删除图标在右侧。</li>\n<li><code>resetValue</code> 默认为 <code>""</code>, 删除后设置此配置项给定的值。</li>\n<li><code>options</code> 可选,选项配置,类型为数组,成员格式如下,配置后用户输入内容时会作为选项提示辅助输入。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n</ul>\n</li>\n<li><code>source</code> 通过 <code>options</code> 只能配置静态数据,如果设置了 <code>source</code> 则会从接口拉取,实现动态效果。</li>\n<li><code>autoComplete</code> 跟 <code>source</code> 不同的是,每次用户输入都会去接口获取提示。</li>\n<li><code>multiple</code> 默认为 <code>false</code>, 设置成 <code>true</code> 表示可多选。</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form-item\">{\n \"type\": \"email\",\n \"name\": \"text\",\n \"validateOnChange\": true,\n \"label\": \"Email\"\n}\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"email\" href=\"#email\" 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>Email</h3><p>Email 输入框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>email</code></li>\n<li><code>addOn</code> 输入框附加组件,比如附带一个提示文字,或者附带一个提交按钮。</li>\n<li><code>addOn.type</code> 请选择 <code>text</code> 、<code>button</code> 或者 <code>submit</code>。</li>\n<li><code>addOn.label</code> 文字说明</li>\n<li><code>addOn.xxx</code> 其他参数请参考按钮配置部分。</li>\n<li><code>hint</code> 当输入框获得焦点的时候显示,用来提示用户输入内容。</li>\n<li><code>trimContents</code> 是否去除首尾空白。</li>\n<li><code>clearable</code> 在有值的时候是否显示一个删除图标在右侧。</li>\n<li><code>resetValue</code> 默认为 <code>""</code>, 删除后设置此配置项给定的值。</li>\n<li><code>options</code> 可选,选项配置,类型为数组,成员格式如下,配置后用户输入内容时会作为选项提示辅助输入。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n</ul>\n</li>\n<li><code>source</code> 通过 <code>options</code> 只能配置静态数据,如果设置了 <code>source</code> 则会从接口拉取,实现动态效果。</li>\n<li><code>autoComplete</code> 跟 <code>source</code> 不同的是,每次用户输入都会去接口获取提示。</li>\n<li><code>multiple</code> 默认为 <code>false</code>, 设置成 <code>true</code> 表示可多选。</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form-item\">{\n \"type\": \"email\",\n \"name\": \"text\",\n \"validateOnChange\": true,\n \"label\": \"Email\"\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/File.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"file\" href=\"#file\" 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>File</h3><p>文件输入,amis 也默认处理了图片存储,提交给 API 的是文件的下载地址。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>file</code></li>\n<li><code>reciever</code> 默认 <code>/api/upload/file</code> 如果想自己存储,请设置此选项。(PS: 如果想存自己的 bos, 系统配置中可以直接填写自己的 bos 配置。)</li>\n<li><code>accept</code> 默认 <code>text/plain</code> 默认只支持纯文本,要支持其他类型,请配置此属性。</li>\n<li><code>maxSize</code> 默认没有限制,当设置后,文件大小大于此值将不允许上传。</li>\n<li><code>multiple</code> 是否多选。</li>\n<li><code>maxLength</code> 默认没有限制,当设置后,一次只允许上传指定数量文件。</li>\n<li><code>joinValues</code> 多选时是否将多个值用 <code>delimiter</code> 连接起来。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 链接符</li>\n<li><code>autoUpload</code> 是否选择完就自动开始上传?默认为 <code>true</code></li>\n<li><code>fileField</code> 默认 <code>file</code>, 如果你不想自己存储,则可以忽略此属性。</li>\n<li><code>downloadUrl</code> 默认显示文件路径的时候会支持直接下载,可以支持加前缀如:<code>http://xx.dom/filename=</code> ,如果不希望这样,可以把当前配置项设置为 <code>false</code>。</li>\n<li><code>useChunk</code> 默认为 'auto' amis 所在服务器,限制了文件上传大小不得超出 10M,所以 amis 在用户选择大文件的时候,自动会改成分块上传模式。</li>\n<li><code>chunkSize</code> 分块大小,默认为 5M.</li>\n<li><code>startChunkApi</code> 默认 <code>/api/upload/startChunk</code> 想自己存储时才需要关注。</li>\n<li><code>chunkApi</code> 默认 <code>/api/upload/chunk</code> 想自己存储时才需要关注。</li>\n<li><code>finishChunkApi</code> 默认 <code>/api/upload/finishChunk</code> 想自己存储时才需要关注。</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form-item\">{\n \"type\": \"file\",\n \"name\": \"file\",\n \"label\": \"File\",\n \"maxSize\": 1048576\n}\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"file\" href=\"#file\" 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>File</h3><p>文件输入,amis 也默认处理了图片存储,提交给 API 的是文件的下载地址。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>file</code></li>\n<li><code>reciever</code> 默认 <code>/api/upload/file</code> 如果想自己存储,请设置此选项。(PS: 如果想存自己的 bos, 系统配置中可以直接填写自己的 bos 配置。)</li>\n<li><code>accept</code> 默认 <code>text/plain</code> 默认只支持纯文本,要支持其他类型,请配置此属性。</li>\n<li><code>maxSize</code> 默认没有限制,当设置后,文件大小大于此值将不允许上传。</li>\n<li><code>multiple</code> 是否多选。</li>\n<li><code>maxLength</code> 默认没有限制,当设置后,一次只允许上传指定数量文件。</li>\n<li><code>joinValues</code> 多选时是否将多个值用 <code>delimiter</code> 连接起来。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 链接符</li>\n<li><code>autoUpload</code> 是否选择完就自动开始上传?默认为 <code>true</code></li>\n<li><code>fileField</code> 默认 <code>file</code>, 如果你不想自己存储,则可以忽略此属性。</li>\n<li><code>downloadUrl</code> 默认显示文件路径的时候会支持直接下载,可以支持加前缀如:<code>http://xx.dom/filename=</code> ,如果不希望这样,可以把当前配置项设置为 <code>false</code>。</li>\n<li><code>useChunk</code> 默认为 'auto' amis 所在服务器,限制了文件上传大小不得超出 10M,所以 amis 在用户选择大文件的时候,自动会改成分块上传模式。</li>\n<li><code>chunkSize</code> 分块大小,默认为 5M.</li>\n<li><code>startChunkApi</code> 默认 <code>/api/upload/startChunk</code> 想自己存储时才需要关注。</li>\n<li><code>chunkApi</code> 默认 <code>/api/upload/chunk</code> 想自己存储时才需要关注。</li>\n<li><code>finishChunkApi</code> 默认 <code>/api/upload/finishChunk</code> 想自己存储时才需要关注。</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form-item\">{\n \"type\": \"file\",\n \"name\": \"file\",\n \"label\": \"File\",\n \"maxSize\": 1048576\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Image.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"image\" href=\"#image\" 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>Image</h3><p>图片格式输入,默认 amis 会直接存储在 FEX 的 hiphoto 里面,提交到 form 是直接的图片 url。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>image</code></li>\n<li><code>reciever</code> 默认 <code>/api/upload</code> 如果想自己存储,请设置此选项。</li>\n<li><code>multiple</code> 是否多选。</li>\n<li><code>maxLength</code> 默认没有限制,当设置后,一次只允许上传指定数量文件。</li>\n<li><code>joinValues</code> 多选时是否将多个值用 <code>delimiter</code> 连接起来。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 连接符,默认是 <code>,</code>, 多选时且 <code>joinValues</code> 为 <code>true</code> 时用来连接值。</li>\n<li><code>autoUpload</code> 是否选择完就自动开始上传?默认为 <code>true</code></li>\n<li><code>compress</code> 默认 <code>true</code> 如果想默认压缩请开启。</li>\n<li><code>compressOptions</code><ul>\n<li><code>maxWidth</code> 设置最大宽度。</li>\n<li><code>maxHeight</code> 设置最大高度。</li>\n</ul>\n</li>\n<li><code>showCompressOptions</code> 默认为 false, 开启后,允许用户输入压缩选项。</li>\n<li><code>crop</code> 用来设置是否支持裁剪。<ul>\n<li><code>aspectRatio</code> 浮点型,默认 <code>1</code> 即 <code>1:1</code>,如果要设置 <code>16:9</code> 请设置 <code>1.7777777777777777</code> 即 <code>16 / 9</code>。</li>\n</ul>\n</li>\n<li><code>allowInput</code> 默认都是通过用户选择图片后上传返回图片地址,如果开启此选项,则可以允许用户图片地址。</li>\n<li><code>limit</code> 限制图片大小,超出不让上传。<ul>\n<li><code>width</code> 限制图片宽度。</li>\n<li><code>height</code> 限制图片高度。</li>\n<li><code>minWidth</code> 限制图片最小宽度。</li>\n<li><code>minHeight</code> 限制图片最小高度。</li>\n<li><code>maxWidth</code> 限制图片最大宽度。</li>\n<li><code>maxHeight</code> 限制图片最大高度。</li>\n</ul>\n</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form-item\">{\n \"type\": \"image\",\n \"name\": \"image\",\n \"label\": \"Images\"\n}\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"image\" href=\"#image\" 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>Image</h3><p>图片格式输入,默认 amis 会直接存储在 FEX 的 hiphoto 里面,提交到 form 是直接的图片 url。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>image</code></li>\n<li><code>reciever</code> 默认 <code>/api/upload</code> 如果想自己存储,请设置此选项。</li>\n<li><code>multiple</code> 是否多选。</li>\n<li><code>maxLength</code> 默认没有限制,当设置后,一次只允许上传指定数量文件。</li>\n<li><code>joinValues</code> 多选时是否将多个值用 <code>delimiter</code> 连接起来。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 连接符,默认是 <code>,</code>, 多选时且 <code>joinValues</code> 为 <code>true</code> 时用来连接值。</li>\n<li><code>autoUpload</code> 是否选择完就自动开始上传?默认为 <code>true</code></li>\n<li><code>compress</code> 默认 <code>true</code> 如果想默认压缩请开启。</li>\n<li><code>compressOptions</code><ul>\n<li><code>maxWidth</code> 设置最大宽度。</li>\n<li><code>maxHeight</code> 设置最大高度。</li>\n</ul>\n</li>\n<li><code>showCompressOptions</code> 默认为 false, 开启后,允许用户输入压缩选项。</li>\n<li><code>crop</code> 用来设置是否支持裁剪。<ul>\n<li><code>aspectRatio</code> 浮点型,默认 <code>1</code> 即 <code>1:1</code>,如果要设置 <code>16:9</code> 请设置 <code>1.7777777777777777</code> 即 <code>16 / 9</code>。</li>\n</ul>\n</li>\n<li><code>allowInput</code> 默认都是通过用户选择图片后上传返回图片地址,如果开启此选项,则可以允许用户图片地址。</li>\n<li><code>limit</code> 限制图片大小,超出不让上传。<ul>\n<li><code>width</code> 限制图片宽度。</li>\n<li><code>height</code> 限制图片高度。</li>\n<li><code>minWidth</code> 限制图片最小宽度。</li>\n<li><code>minHeight</code> 限制图片最小高度。</li>\n<li><code>maxWidth</code> 限制图片最大宽度。</li>\n<li><code>maxHeight</code> 限制图片最大高度。</li>\n</ul>\n</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form-item\">{\n \"type\": \"image\",\n \"name\": \"image\",\n \"label\": \"Images\"\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
20
gh-pages/docs/renderers/Form/List_31c82a5.js
Normal file
20
gh-pages/docs/renderers/Form/List_31c82a5.js
Normal file
@ -0,0 +1,20 @@
|
||||
define('docs/renderers/Form/List.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"list-formitem-\" href=\"#list-formitem-\" 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>List(FormItem)</h3><p>简单的列表选择框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>list</code></li>\n<li><code>options</code> 选项配置,类型为数组,成员格式如下。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n<li><code>image</code> 图片的 http 地址。</li>\n</ul>\n</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>multiple</code> 默认为 <code>false</code>, 设置成 <code>true</code> 表示可多选。</li>\n<li><code>joinValues</code> 默认为 <code>true</code></li>\n<li>单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。</li>\n<li>多选模式:选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<p>单选</p>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"list\",\n \"name\": \"select\",\n \"label\": \"单选\",\n \"clearable\": true,\n \"options\": [\n {\n \"label\": \"Option A\",\n \"value\": \"a\"\n },\n {\n \"label\": \"Option B\",\n \"value\": \"b\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>多选</p>\n<div class=\"amis-preview\" style=\"height: 480px\"><script type=\"text/schema\" height=\"480\" scope=\"form\">[\n {\n \"type\": \"list\",\n \"name\": \"select\",\n \"label\": \"多选\",\n \"clearable\": true,\n \"multiple\": true,\n \"options\": [\n {\n \"label\": \"OptionA\",\n \"value\": \"a\"\n },\n {\n \"label\": \"OptionB\",\n \"value\": \"b\"\n },\n {\n \"label\": \"OptionC\",\n \"value\": \"c\"\n },\n {\n \"label\": \"OptionD\",\n \"value\": \"d\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>选项带图片</p>\n<div class=\"amis-preview\" style=\"height: 480px\"><script type=\"text/schema\" height=\"480\" scope=\"form\">[\n {\n \"type\": \"list\",\n \"name\": \"select\",\n \"label\": \"图片\",\n \"clearable\": true,\n \"options\": [\n {\n \"label\": \"OptionA\",\n \"value\": \"a\",\n \"image\": \"raw:https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg\"\n },\n {\n \"label\": \"OptionB\",\n \"value\": \"b\",\n \"image\": \"raw:https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg\"\n },\n {\n \"label\": \"OptionC\",\n \"value\": \"c\",\n \"image\": \"raw:https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg\"\n },\n {\n \"label\": \"OptionD\",\n \"value\": \"d\",\n \"image\": \"raw:https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "List(FormItem)",
|
||||
"fragment": "list-formitem-",
|
||||
"fullPath": "#list-formitem-",
|
||||
"level": 3
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
@ -1,20 +0,0 @@
|
||||
define('docs/renderers/Form/List.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"list-formitem-\" href=\"#list-formitem-\" 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>List(FormItem)</h3><p>简单的列表选择框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>list</code></li>\n<li><code>options</code> 选项配置,类型为数组,成员格式如下。<ul>\n<li><code>label</code> 文字</li>\n<li><code>value</code> 值</li>\n<li><code>image</code> 图片的 http 地址。</li>\n</ul>\n</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>multiple</code> 默认为 <code>false</code>, 设置成 <code>true</code> 表示可多选。</li>\n<li><code>joinValues</code> 默认为 <code>true</code></li>\n<li>单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。</li>\n<li>多选模式:选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<p>单选</p>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form\">[\n {\n \"type\": \"list\",\n \"name\": \"select\",\n \"label\": \"单选\",\n \"clearable\": true,\n \"options\": [\n {\n \"label\": \"Option A\",\n \"value\": \"a\"\n },\n {\n \"label\": \"Option B\",\n \"value\": \"b\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>多选</p>\n<div class=\"amis-preview\" style=\"height: 480px\"><script type=\"text/schema\" height=\"480\" scope=\"form\">[\n {\n \"type\": \"list\",\n \"name\": \"select\",\n \"label\": \"多选\",\n \"clearable\": true,\n \"multiple\": true,\n \"options\": [\n {\n \"label\": \"OptionA\",\n \"value\": \"a\"\n },\n {\n \"label\": \"OptionB\",\n \"value\": \"b\"\n },\n {\n \"label\": \"OptionC\",\n \"value\": \"c\"\n },\n {\n \"label\": \"OptionD\",\n \"value\": \"d\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n<p>选项带图片</p>\n<div class=\"amis-preview\" style=\"height: 480px\"><script type=\"text/schema\" height=\"480\" scope=\"form\">[\n {\n \"type\": \"list\",\n \"name\": \"select\",\n \"label\": \"图片\",\n \"clearable\": true,\n \"options\": [\n {\n \"label\": \"OptionA\",\n \"value\": \"a\",\n \"image\": \"raw:https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg\"\n },\n {\n \"label\": \"OptionB\",\n \"value\": \"b\",\n \"image\": \"raw:https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg\"\n },\n {\n \"label\": \"OptionC\",\n \"value\": \"c\",\n \"image\": \"raw:https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg\"\n },\n {\n \"label\": \"OptionD\",\n \"value\": \"d\",\n \"image\": \"raw:https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg\"\n }\n ]\n },\n\n {\n \"type\": \"static\",\n \"name\": \"select\",\n \"label\": \"当前值\"\n }\n]\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
||||
"children": [
|
||||
{
|
||||
"label": "List(FormItem)",
|
||||
"fragment": "list-formitem-",
|
||||
"fullPath": "#list-formitem-",
|
||||
"level": 3
|
||||
}
|
||||
],
|
||||
"level": 0
|
||||
}
|
||||
};
|
||||
|
||||
});
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Matrix.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"matrix\" href=\"#matrix\" 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>Matrix</h3><p>矩阵类型的输入框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>matrix</code></li>\n<li><code>columns</code> 列信息, 数组中 <code>label</code> 字段是必须给出的</li>\n<li><code>rows</code> 行信息, 数组中 <code>label</code> 字段是必须给出的</li>\n<li><code>rowLabel</code> 行标题说明</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>multiple</code> 多选,默认为 <code>true</code></li>\n<li><code>singleSelectMode</code> 设置单选模式,<code>multiple</code>为<code>false</code>时有效,可设置为<code>cell</code>, <code>row</code>, <code>column</code> 分别为全部选项中只能单选某个单元格、每行只能单选某个单元格,每列只能单选某个单元格</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form-item\">{\n \"type\": \"matrix\",\n \"name\": \"matrix\",\n \"label\": \"Matrix\",\n \"rowLabel\": \"行标题说明\",\n \"columns\": [\n {\n \"label\": \"列1\"\n },\n {\n \"label\": \"列2\"\n }\n ],\n \"rows\": [\n {\n \"label\": \"行1\"\n },\n {\n \"label\": \"行2\"\n }\n ]\n}\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"matrix\" href=\"#matrix\" 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>Matrix</h3><p>矩阵类型的输入框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>matrix</code></li>\n<li><code>columns</code> 列信息, 数组中 <code>label</code> 字段是必须给出的</li>\n<li><code>rows</code> 行信息, 数组中 <code>label</code> 字段是必须给出的</li>\n<li><code>rowLabel</code> 行标题说明</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>multiple</code> 多选,默认为 <code>true</code></li>\n<li><code>singleSelectMode</code> 设置单选模式,<code>multiple</code>为<code>false</code>时有效,可设置为<code>cell</code>, <code>row</code>, <code>column</code> 分别为全部选项中只能单选某个单元格、每行只能单选某个单元格,每列只能单选某个单元格</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 450px\"><script type=\"text/schema\" height=\"450\" scope=\"form-item\">{\n \"type\": \"matrix\",\n \"name\": \"matrix\",\n \"label\": \"Matrix\",\n \"rowLabel\": \"行标题说明\",\n \"columns\": [\n {\n \"label\": \"列1\"\n },\n {\n \"label\": \"列2\"\n }\n ],\n \"rows\": [\n {\n \"label\": \"行1\"\n },\n {\n \"label\": \"行2\"\n }\n ]\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/NestedSelect.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"nestedselect\" href=\"#nestedselect\" 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>NestedSelect</h3><p>树形结构选择框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>nested-select</code></li>\n<li><code>options</code> 类似于 <a href=\"/amis/docs/renderers/Form/Select\">select</a> 中 <code>options</code>, 并且支持通过 <code>children</code> 无限嵌套。</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>multiple</code> 默认为 <code>false</code>, 设置成 <code>true</code> 表示可多选。</li>\n<li><code>joinValues</code> 默认为 <code>true</code></li>\n<li>单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。</li>\n<li>多选模式:选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 500px\"><script type=\"text/schema\" height=\"500\" scope=\"form-item\">{\n \"type\": \"nested-select\",\n \"name\": \"nestedSelect\",\n \"label\": \"级联选择器\",\n \"size\": \"sm\",\n \"options\": [\n {\n \"label\": \"A\",\n \"value\": \"a\"\n },\n {\n \"label\": \"B\",\n \"value\": \"b\",\n \"children\": [\n {\n \"label\": \"B-1\",\n \"value\": \"b-1\"\n },\n {\n \"label\": \"B-2\",\n \"value\": \"b-2\"\n },\n {\n \"label\": \"B-3\",\n \"value\": \"b-3\"\n }\n ]\n },\n {\n \"label\": \"C\",\n \"value\": \"c\"\n }\n ]\n}\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"nestedselect\" href=\"#nestedselect\" 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>NestedSelect</h3><p>树形结构选择框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>nested-select</code></li>\n<li><code>options</code> 类似于 <a href=\"/amis/docs/renderers/Form/Select\">select</a> 中 <code>options</code>, 并且支持通过 <code>children</code> 无限嵌套。</li>\n<li><code>source</code> Api 地址,如果选项不固定,可以通过配置 <code>source</code> 动态拉取。</li>\n<li><code>multiple</code> 默认为 <code>false</code>, 设置成 <code>true</code> 表示可多选。</li>\n<li><code>joinValues</code> 默认为 <code>true</code></li>\n<li>单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。</li>\n<li>多选模式:选中的多个选项的 <code>value</code> 会通过 <code>delimiter</code> 连接起来,否则直接将以数组的形式提交值。</li>\n<li><code>extractValue</code> 默认为 <code>false</code>, <code>joinValues</code>设置为<code>false</code>时生效, 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。</li>\n<li><code>delimiter</code> 默认为 <code>,</code></li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 500px\"><script type=\"text/schema\" height=\"500\" scope=\"form-item\">{\n \"type\": \"nested-select\",\n \"name\": \"nestedSelect\",\n \"label\": \"级联选择器\",\n \"size\": \"sm\",\n \"options\": [\n {\n \"label\": \"A\",\n \"value\": \"a\"\n },\n {\n \"label\": \"B\",\n \"value\": \"b\",\n \"children\": [\n {\n \"label\": \"B-1\",\n \"value\": \"b-1\"\n },\n {\n \"label\": \"B-2\",\n \"value\": \"b-2\"\n },\n {\n \"label\": \"B-3\",\n \"value\": \"b-3\"\n }\n ]\n },\n {\n \"label\": \"C\",\n \"value\": \"c\"\n }\n ]\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -1,7 +1,7 @@
|
||||
define('docs/renderers/Form/Number.md', function(require, exports, module) {
|
||||
|
||||
module.exports = {
|
||||
"html": "<h3><a class=\"anchor\" name=\"number\" href=\"#number\" 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>Number</h3><p>数字输入框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>number</code></li>\n<li><code>min</code> 最小值,支持用<code>${xxx}</code>获取变量</li>\n<li><code>max</code> 最大值,支持用<code>${xxx}</code>获取变量</li>\n<li><code>step</code> 步长</li>\n<li><code>precision</code> 精度</li>\n<li>更多配置请参考 <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form-item\">{\n \"type\": \"number\",\n \"name\": \"text\",\n \"label\": \"数字\",\n \"min\": 1,\n \"max\": 10,\n \"step\": 1\n}\n</script></div>\n",
|
||||
"html": "<h3><a class=\"anchor\" name=\"number\" href=\"#number\" 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>Number</h3><p>数字输入框。</p>\n<ul>\n<li><code>type</code> 请设置成 <code>number</code></li>\n<li><code>min</code> 最小值,支持用<code>${xxx}</code>获取变量</li>\n<li><code>max</code> 最大值,支持用<code>${xxx}</code>获取变量</li>\n<li><code>step</code> 步长</li>\n<li><code>precision</code> 精度</li>\n<li><strong>还有更多通用配置请参考</strong> <a href=\"/amis/docs/renderers/Form/FormItem\">FormItem</a></li>\n</ul>\n<div class=\"amis-preview\" style=\"height: 400px\"><script type=\"text/schema\" height=\"400\" scope=\"form-item\">{\n \"type\": \"number\",\n \"name\": \"text\",\n \"label\": \"数字\",\n \"min\": 1,\n \"max\": 10,\n \"step\": 1\n}\n</script></div>\n",
|
||||
"toc": {
|
||||
"label": "目录",
|
||||
"type": "toc",
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<body>
|
||||
<div id="root" class="app-wrapper"></div>
|
||||
<script src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/npm_443c08f.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_6b0f724.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/examples/index.html_map_7d5cd4a.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/app_b754f1d.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rich-text_e6dc6f0.js"></script>
|
||||
<script type="text/javascript" src="https://bce.bdstatic.com/fex/amis-gh-pages/pkg/rest_ce58d6e.js"></script>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user