Browse Source

优化 docs 子文档的引用路径

pull/1251/head
贤心 2 years ago
parent
commit
89772f47da
  1. 4
      docs/.layui/index.md
  2. 4
      docs/carousel/index.md
  3. 2
      docs/code/index.md
  4. 4
      docs/colorpicker/index.md
  5. 14
      docs/dropdown/detail/demo.md
  6. 10
      docs/dropdown/index.md
  7. 4
      docs/fixbar/index.md
  8. 4
      docs/flow/index.md
  9. 16
      docs/form/index.md
  10. 6
      docs/form/input.md
  11. 22
      docs/laydate/detail/demo.md
  12. 4
      docs/laydate/index.md
  13. 24
      docs/layer/detail/demo.md
  14. 4
      docs/layer/index.md
  15. 4
      docs/laypage/index.md
  16. 4
      docs/laytpl/index.md
  17. 2
      docs/menu/index.md
  18. 2
      docs/nav/index.md
  19. 4
      docs/rate/index.md
  20. 4
      docs/slider/index.md
  21. 2
      docs/tab/index.md
  22. 30
      docs/table/detail/demo.md
  23. 10
      docs/table/index.md
  24. 6
      docs/transfer/index.md
  25. 6
      docs/tree/index.md
  26. 2
      docs/treeTable/detail/demo.md
  27. 4
      docs/treeTable/index.md
  28. 14
      docs/upload/detail/demo.md
  29. 8
      docs/upload/index.md
  30. 2
      docs/util/index.md

4
docs/.layui/index.md

@ -10,7 +10,7 @@ toc: true
<h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2>
<div> <div>
{{- d.include("docs/MOD_NAME/detail/demo.md") }} {{- d.include("/MOD_NAME/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{}">API</h2> <h2 id="api" lay-toc="{}">API</h2>
@ -30,5 +30,5 @@ toc: true
<h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2> <h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2>
<div> <div>
{{- d.include("docs/MOD_NAME/detail/options.md") }} {{- d.include("/MOD_NAME/detail/options.md") }}
</div> </div>

4
docs/carousel/index.md

@ -17,7 +17,7 @@ div[carousel-item]>*:nth-child(2n+1){background-color: #16baaa;}
</style> </style>
<div> <div>
{{- d.include("docs/carousel/detail/demo.md") }} {{- d.include("/carousel/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{}">API</h2> <h2 id="api" lay-toc="{}">API</h2>
@ -60,7 +60,7 @@ inst.reload(options); // 轮播重载
<h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2> <h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2>
<div> <div>
{{- d.include("docs/carousel/detail/options.md") }} {{- d.include("/carousel/detail/options.md") }}
</div> </div>

2
docs/code/index.md

@ -39,5 +39,5 @@ layui.use(function(){
<h2 id="options" lay-toc="{hot: true}">属性</h2> <h2 id="options" lay-toc="{hot: true}">属性</h2>
<div> <div>
{{- d.include("docs/code/detail/options.md") }} {{- d.include("/code/detail/options.md") }}
</div> </div>

4
docs/colorpicker/index.md

@ -10,7 +10,7 @@ toc: true
<h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2>
<div> <div>
{{- d.include("docs/colorpicker/detail/demo.md") }} {{- d.include("/colorpicker/detail/demo.md") }}
</div> </div>
<p></p> <p></p>
@ -54,7 +54,7 @@ layui.use(function(){
<h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2> <h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2>
<div> <div>
{{- d.include("docs/colorpicker/detail/options.md") }} {{- d.include("/colorpicker/detail/options.md") }}
</div> </div>
## 兼容性 ## 兼容性

14
docs/dropdown/detail/demo.md

@ -2,7 +2,7 @@
<pre class="layui-code" lay-options="{preview: true, text: {preview: '基础用法'}, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, text: {preview: '基础用法'}, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/dropdown/examples/base.md") }} {{- d.include("/dropdown/examples/base.md") }}
</textarea> </textarea>
</pre> </pre>
@ -10,7 +10,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/dropdown/examples/complex.md") }} {{- d.include("/dropdown/examples/complex.md") }}
</textarea> </textarea>
</pre> </pre>
@ -18,7 +18,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/dropdown/examples/table.md") }} {{- d.include("/dropdown/examples/table.md") }}
</textarea> </textarea>
</pre> </pre>
@ -26,7 +26,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/dropdown/examples/on.md") }} {{- d.include("/dropdown/examples/on.md") }}
</textarea> </textarea>
</pre> </pre>
@ -34,7 +34,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/dropdown/examples/contextmenu.md") }} {{- d.include("/dropdown/examples/contextmenu.md") }}
</textarea> </textarea>
</pre> </pre>
@ -42,7 +42,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/dropdown/examples/align.md") }} {{- d.include("/dropdown/examples/align.md") }}
</textarea> </textarea>
</pre> </pre>
@ -52,6 +52,6 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/dropdown/examples/content.md") }} {{- d.include("/dropdown/examples/content.md") }}
</textarea> </textarea>
</pre> </pre>

10
docs/dropdown/index.md

@ -10,7 +10,7 @@ toc: true
<h2 id="examples" lay-toc="{anchor: null}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{anchor: null}" style="margin-bottom: 0;">示例</h2>
<div> <div>
{{- d.include("docs/dropdown/detail/demo.md") }} {{- d.include("/dropdown/detail/demo.md") }}
</div> </div>
`content` 属性中传入任意的 html 内容,可替代默认的下拉菜单结构,从而实现更丰富的弹出内容。 `content` 属性中传入任意的 html 内容,可替代默认的下拉菜单结构,从而实现更丰富的弹出内容。
@ -62,13 +62,13 @@ layui.use(function(){
<h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3> <h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3>
<div> <div>
{{- d.include("docs/dropdown/detail/options.md") }} {{- d.include("/dropdown/detail/options.md") }}
</div> </div>
<h3 id="options.data" lay-toc="{level: 3, hot: true}">data 格式</h3> <h3 id="options.data" lay-toc="{level: 3, hot: true}">data 格式</h3>
<div> <div>
{{- d.include("docs/dropdown/detail/options.data.md") }} {{- d.include("/dropdown/detail/options.data.md") }}
</div> </div>
@ -95,7 +95,7 @@ layui.use(function(){
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/dropdown/examples/reload.md") }} {{- d.include("/dropdown/examples/reload.md") }}
</textarea> </textarea>
</pre> </pre>
@ -109,7 +109,7 @@ layui.use(function(){
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/dropdown/examples/reloadData.md") }} {{- d.include("/dropdown/examples/reloadData.md") }}
</textarea> </textarea>
</pre> </pre>

4
docs/fixbar/index.md

@ -10,7 +10,7 @@ toc: true
<h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2>
<div> <div>
{{- d.include("docs/fixbar/detail/demo.md") }} {{- d.include("/fixbar/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{}">API</h2> <h2 id="api" lay-toc="{}">API</h2>
@ -29,5 +29,5 @@ toc: true
<h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2> <h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2>
<div> <div>
{{- d.include("docs/fixbar/detail/options.md") }} {{- d.include("/fixbar/detail/options.md") }}
</div> </div>

4
docs/flow/index.md

@ -18,7 +18,7 @@ toc: true
</style> </style>
<div> <div>
{{- d.include("docs/flow/detail/demo.md") }} {{- d.include("/flow/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{}">API</h2> <h2 id="api" lay-toc="{}">API</h2>
@ -40,7 +40,7 @@ toc: true
<h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2> <h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2>
<div> <div>
{{- d.include("docs/flow/detail/options.md") }} {{- d.include("/flow/detail/options.md") }}
</div> </div>
<h2 id="lazyimg" lay-toc="{level: 2}">图片懒加载</h2> <h2 id="lazyimg" lay-toc="{level: 2}">图片懒加载</h2>

16
docs/form/index.md

@ -15,7 +15,7 @@ toc: true
obj.render() obj.render()
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/form.demo.md') }} {{- d.include("/form/examples/form.demo.md") }}
</textarea> </textarea>
</pre> </pre>
@ -25,7 +25,7 @@ toc: true
obj.render() obj.render()
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/form.pane.md') }} {{- d.include("/form/examples/form.pane.md") }}
</textarea> </textarea>
</pre> </pre>
@ -35,7 +35,7 @@ toc: true
obj.render() obj.render()
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/form.login.md') }} {{- d.include("/form/examples/form.login.md") }}
</textarea> </textarea>
</pre> </pre>
@ -45,7 +45,7 @@ toc: true
obj.render() obj.render()
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/form.reg.md') }} {{- d.include("/form/examples/form.reg.md") }}
</textarea> </textarea>
</pre> </pre>
@ -74,7 +74,7 @@ form 还可以借助*栅格*实现更灵活的响应式布局。
obj.render() obj.render()
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/form.grid.md') }} {{- d.include("/form/examples/form.grid.md") }}
</textarea> </textarea>
</pre> </pre>
@ -232,7 +232,7 @@ Layui 对表单做了相对巧妙的支持,只需在表单元素上设置 `lay
obj.render() obj.render()
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/form.verify.md') }} {{- d.include("/form/examples/form.verify.md") }}
</textarea> </textarea>
</pre> </pre>
@ -252,7 +252,7 @@ Layui 对表单做了相对巧妙的支持,只需在表单元素上设置 `lay
obj.render() obj.render()
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/form.validate.md') }} {{- d.include("/form/examples/form.validate.md") }}
</textarea> </textarea>
</pre> </pre>
@ -268,7 +268,7 @@ Layui 对表单做了相对巧妙的支持,只需在表单元素上设置 `lay
obj.render() obj.render()
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/form.val.md') }} {{- d.include("/form/examples/form.val.md") }}
</textarea> </textarea>
</pre> </pre>

6
docs/form/input.md

@ -66,7 +66,7 @@ toc: true
obj.render(); obj.render();
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/input.group.md') }} {{- d.include("/form/examples/input.group.md") }}
</textarea> </textarea>
</pre> </pre>
@ -91,7 +91,7 @@ toc: true
obj.render(); obj.render();
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/input.pre.suf.md') }} {{- d.include("/form/examples/input.pre.suf.md") }}
</textarea> </textarea>
</pre> </pre>
@ -175,7 +175,7 @@ input 放在前后缀容器中:
obj.render(); obj.render();
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/form/examples/input.affix.custom.md') }} {{- d.include("/form/examples/input.affix.custom.md") }}
</textarea> </textarea>
</pre> </pre>

22
docs/laydate/detail/demo.md

@ -2,7 +2,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', text: {preview: '常规用法'}, layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', text: {preview: '常规用法'}, layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/normal.md") }} {{- d.include("/laydate/examples/normal.md") }}
</textarea> </textarea>
</pre> </pre>
@ -12,7 +12,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/type.md") }} {{- d.include("/laydate/examples/type.md") }}
</textarea> </textarea>
</pre> </pre>
@ -20,7 +20,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/range.md") }} {{- d.include("/laydate/examples/range.md") }}
</textarea> </textarea>
</pre> </pre>
@ -28,7 +28,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/shortcut.md") }} {{- d.include("/laydate/examples/shortcut.md") }}
</textarea> </textarea>
</pre> </pre>
@ -37,7 +37,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/format.md") }} {{- d.include("/laydate/examples/format.md") }}
</textarea> </textarea>
</pre> </pre>
@ -46,7 +46,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/mark.md") }} {{- d.include("/laydate/examples/mark.md") }}
</textarea> </textarea>
</pre> </pre>
@ -55,7 +55,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/limit.md") }} {{- d.include("/laydate/examples/limit.md") }}
</textarea> </textarea>
</pre> </pre>
@ -64,7 +64,7 @@
<pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/elem.md") }} {{- d.include("/laydate/examples/elem.md") }}
</textarea> </textarea>
</pre> </pre>
@ -75,7 +75,7 @@
obj.render(); obj.render();
}}"> }}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/more.md") }} {{- d.include("/laydate/examples/more.md") }}
</textarea> </textarea>
</pre> </pre>
@ -84,7 +84,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/theme.md") }} {{- d.include("/laydate/examples/theme.md") }}
</textarea> </textarea>
</pre> </pre>
@ -92,6 +92,6 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/laydate/examples/static.md") }} {{- d.include("/laydate/examples/static.md") }}
</textarea> </textarea>
</pre> </pre>

4
docs/laydate/index.md

@ -21,7 +21,7 @@ toc: true
</style> </style>
<div class="ws-demo-laydate"> <div class="ws-demo-laydate">
{{- d.include("docs/laydate/detail/demo.md") }} {{- d.include("/laydate/detail/demo.md") }}
</div> </div>
<p></p> <p></p>
@ -69,7 +69,7 @@ layui.use(function(){
<h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3> <h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3>
<div> <div>
{{- d.include("docs/laydate/detail/options.md") }} {{- d.include("/laydate/detail/options.md") }}
</div> </div>
<h3 id="hint" lay-pid="api" class="ws-anchor ws-bold">弹出提示 <sup>2.8+</sup></h3> <h3 id="hint" lay-pid="api" class="ws-anchor ws-bold">弹出提示 <sup>2.8+</sup></h3>

24
docs/layer/detail/demo.md

@ -2,7 +2,7 @@
<pre class="layui-code" lay-options="{preview: true, text: {preview: '在线测试'}, layout: ['preview']}"> <pre class="layui-code" lay-options="{preview: true, text: {preview: '在线测试'}, layout: ['preview']}">
<textarea> <textarea>
{{- d.include("docs/layer/detail/run.md") }} {{- d.include("/layer/detail/run.md") }}
</textarea> </textarea>
</pre> </pre>
@ -10,7 +10,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', text: {preview: '弹层类型'}, layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', text: {preview: '弹层类型'}, layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/type.md") }} {{- d.include("/layer/examples/type.md") }}
</textarea> </textarea>
</pre> </pre>
@ -18,7 +18,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/alert.md") }} {{- d.include("/layer/examples/alert.md") }}
</textarea> </textarea>
</pre> </pre>
@ -26,7 +26,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/page.md") }} {{- d.include("/layer/examples/page.md") }}
</textarea> </textarea>
</pre> </pre>
@ -34,7 +34,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/iframe.md") }} {{- d.include("/layer/examples/iframe.md") }}
</textarea> </textarea>
</pre> </pre>
@ -44,7 +44,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/load.md") }} {{- d.include("/layer/examples/load.md") }}
</textarea> </textarea>
</pre> </pre>
@ -52,7 +52,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/tips.md") }} {{- d.include("/layer/examples/tips.md") }}
</textarea> </textarea>
</pre> </pre>
@ -60,7 +60,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/other.md") }} {{- d.include("/layer/examples/other.md") }}
</textarea> </textarea>
</pre> </pre>
@ -68,19 +68,19 @@
<pre class="layui-code" lay-options="{preview: true, text: {preview: '弹出位置'}, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, text: {preview: '弹出位置'}, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/offset.md") }} {{- d.include("/layer/examples/offset.md") }}
</textarea> </textarea>
</pre> </pre>
<pre class="layui-code" lay-options="{preview: true, text: {preview: '弹出方向 <sup>2.8+</sup>'}, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, text: {preview: '弹出方向 <sup>2.8+</sup>'}, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/direction.md") }} {{- d.include("/layer/examples/direction.md") }}
</textarea> </textarea>
</pre> </pre>
<pre class="layui-code" lay-options="{preview: true, text: {preview: '其他演示'}, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, text: {preview: '其他演示'}, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/more.md") }} {{- d.include("/layer/examples/more.md") }}
</textarea> </textarea>
</pre> </pre>
@ -89,7 +89,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/layer/examples/skin.md") }} {{- d.include("/layer/examples/skin.md") }}
</script> </script>
</textarea> </textarea>
</pre> </pre>

4
docs/layer/index.md

@ -13,7 +13,7 @@ toc: true
点击下述按钮,查看每个示例对应的弹层效果。 点击下述按钮,查看每个示例对应的弹层效果。
<div> <div>
{{- d.include("docs/layer/detail/demo.md") }} {{- d.include("/layer/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{hot: true, bold: true}">API</h2> <h2 id="api" lay-toc="{hot: true, bold: true}">API</h2>
@ -71,7 +71,7 @@ var index = layer.open({
<h2 id="options" lay-toc="{level: 2, hot: true}">基础属性</h2> <h2 id="options" lay-toc="{level: 2, hot: true}">基础属性</h2>
<div> <div>
{{- d.include("docs/layer/detail/options.md") }} {{- d.include("/layer/detail/options.md") }}
</div> </div>
<h2 id="alert" lay-pid="api" class="ws-anchor ws-bold">弹出信息框</h2> <h2 id="alert" lay-pid="api" class="ws-anchor ws-bold">弹出信息框</h2>

4
docs/laypage/index.md

@ -10,7 +10,7 @@ toc: true
<h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2>
<div class="ws-detail"> <div class="ws-detail">
{{- d.include("docs/laypage/detail/demo.md") }} {{- d.include("/laypage/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{}">API</h2> <h2 id="api" lay-toc="{}">API</h2>
@ -29,7 +29,7 @@ toc: true
<h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2> <h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2>
<div> <div>
{{- d.include("docs/laypage/detail/options.md") }} {{- d.include("/laypage/detail/options.md") }}
</div> </div>
## 小贴士 ## 小贴士

4
docs/laytpl/index.md

@ -12,7 +12,7 @@ toc: true
在以下*模板*或*数据*中进行编辑,下方*视图*将呈现对应结果。 在以下*模板*或*数据*中进行编辑,下方*视图*将呈现对应结果。
<div> <div>
{{- d.include("docs/laytpl/detail/demo.md") }} {{- d.include("/laytpl/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{}">API</h2> <h2 id="api" lay-toc="{}">API</h2>
@ -95,7 +95,7 @@ compile.render(data, callback); // 模板渲染
<h2 id="grammar" lay-toc="{level: 2, hot: true}">标签语法</h2> <h2 id="grammar" lay-toc="{level: 2, hot: true}">标签语法</h2>
<div> <div>
{{- d.include("docs/laytpl/detail/options.md") }} {{- d.include("/laytpl/detail/options.md") }}
</div> </div>

2
docs/menu/index.md

@ -11,7 +11,7 @@ toc: true
<pre class="layui-code" lay-options="{preview: 'iframe', style: 'height: 535px;', layout: ['preview', 'code'], tools: ['full', 'window']}"> <pre class="layui-code" lay-options="{preview: 'iframe', style: 'height: 535px;', layout: ['preview', 'code'], tools: ['full', 'window']}">
<textarea> <textarea>
{{- d.include("docs/menu/examples/demo.md") }} {{- d.include("/menu/examples/demo.md") }}
</textarea> </textarea>
</pre> </pre>

2
docs/nav/index.md

@ -207,7 +207,7 @@ toc: true
<pre class="layui-code" lay-options="{preview: 'iframe', style: 'height: 525px;', layout: ['code', 'preview'], tools: ['full', 'window']}"> <pre class="layui-code" lay-options="{preview: 'iframe', style: 'height: 525px;', layout: ['code', 'preview'], tools: ['full', 'window']}">
<textarea> <textarea>
{{- d.include("docs/nav/examples/side.md") }} {{- d.include("/nav/examples/side.md") }}
</textarea> </textarea>
</pre> </pre>

4
docs/rate/index.md

@ -10,7 +10,7 @@ toc: true
<h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2>
<div> <div>
{{- d.include("docs/rate/detail/demo.md") }} {{- d.include("/rate/detail/demo.md") }}
</div> </div>
<p></p> <p></p>
@ -53,5 +53,5 @@ layui.use(function(){
<h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2> <h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2>
<div> <div>
{{- d.include("docs/rate/detail/options.md") }} {{- d.include("/rate/detail/options.md") }}
</div> </div>

4
docs/slider/index.md

@ -14,7 +14,7 @@ toc: true
.demo-slider-container .layui-code-item-preview > div{margin: 24px 0;} .demo-slider-container .layui-code-item-preview > div{margin: 24px 0;}
</style> </style>
<div class="demo-slider-container"> <div class="demo-slider-container">
{{- d.include("docs/slider/detail/demo.md") }} {{- d.include("/slider/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{}">API</h2> <h2 id="api" lay-toc="{}">API</h2>
@ -89,5 +89,5 @@ ins1.setValue(60, 1) // 设置结尾值
<h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2> <h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2>
<div> <div>
{{- d.include("docs/slider/detail/options.md") }} {{- d.include("/slider/detail/options.md") }}
</div> </div>

2
docs/tab/index.md

@ -11,7 +11,7 @@ toc: true
<h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2>
<div class="ws-detail"> <div class="ws-detail">
{{- d.include("docs/tab/detail/demo.md") }} {{- d.include("/tab/detail/demo.md") }}
</div> </div>
<h2 id="skin" lay-toc="{hot: true}">风格</h2> <h2 id="skin" lay-toc="{hot: true}">风格</h2>

30
docs/table/detail/demo.md

@ -15,7 +15,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/demo.md') }} {{- d.include("/table/examples/demo.md") }}
</textarea> </textarea>
</pre> </pre>
@ -25,7 +25,7 @@
<pre class="layui-code" lay-options="{preview: true, style: 'height: 335px; overflow: auto;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, style: 'height: 335px; overflow: auto;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include('docs/table/examples/static.md') }} {{- d.include("/table/examples/static.md") }}
</textarea> </textarea>
</pre> </pre>
@ -41,7 +41,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/autoRender.md') }} {{- d.include("/table/examples/autoRender.md") }}
</textarea> </textarea>
</pre> </pre>
@ -49,7 +49,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 508px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 508px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include('docs/table/examples/init.md') }} {{- d.include("/table/examples/init.md") }}
</textarea> </textarea>
</pre> </pre>
@ -63,7 +63,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/data.md') }} {{- d.include("/table/examples/data.md") }}
</textarea> </textarea>
</pre> </pre>
@ -77,7 +77,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/templet.md') }} {{- d.include("/table/examples/templet.md") }}
</textarea> </textarea>
</pre> </pre>
@ -85,7 +85,7 @@
<pre class="layui-code" lay-options="{preview: 'iframe', style: 'height: 538px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: 'iframe', style: 'height: 538px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include('docs/table/examples/css.md') }} {{- d.include("/table/examples/css.md") }}
</textarea> </textarea>
</pre> </pre>
@ -99,7 +99,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/page.md') }} {{- d.include("/table/examples/page.md") }}
</textarea> </textarea>
</pre> </pre>
@ -114,7 +114,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/search.md') }} {{- d.include("/table/examples/search.md") }}
</textarea> </textarea>
</pre> </pre>
@ -124,7 +124,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 508px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 508px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include('docs/table/examples/editable.md') }} {{- d.include("/table/examples/editable.md") }}
</textarea> </textarea>
</pre> </pre>
@ -136,7 +136,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/editModes.md') }} {{- d.include("/table/examples/editModes.md") }}
</textarea> </textarea>
</pre> </pre>
@ -148,7 +148,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/parse.md') }} {{- d.include("/table/examples/parse.md") }}
</textarea> </textarea>
</pre> </pre>
@ -162,7 +162,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/filter.md') }} {{- d.include("/table/examples/filter.md") }}
</textarea> </textarea>
</pre> </pre>
@ -174,7 +174,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/setRowChecked.md') }} {{- d.include("/table/examples/setRowChecked.md") }}
</textarea> </textarea>
</pre> </pre>
@ -189,7 +189,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/theads.md') }} {{- d.include("/table/examples/theads.md") }}
</textarea> </textarea>
</pre> </pre>

10
docs/table/index.md

@ -12,7 +12,7 @@ toc: true
以下所有示例中演示的数据均为「静态模拟数据」,实际使用时换成您的真实接口即可。 以下所有示例中演示的数据均为「静态模拟数据」,实际使用时换成您的真实接口即可。
<div> <div>
{{- d.include("docs/table/detail/demo.md") }} {{- d.include("/table/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{bold: true, hot: true}">API</h2> <h2 id="api" lay-toc="{bold: true, hot: true}">API</h2>
@ -160,7 +160,7 @@ table 的属性众多,我们大致分为以下几种:
<h3 id="options" lay-toc="{level: 3, hot: true}" class="ws-bold">基础属性</h3> <h3 id="options" lay-toc="{level: 3, hot: true}" class="ws-bold">基础属性</h3>
<div> <div>
{{- d.include("docs/table/detail/options.md") }} {{- d.include("/table/detail/options.md") }}
</div> </div>
<h3 id="options.ajax" lay-toc="{level: 3, hot: true}" class="ws-bold">异步属性</h3> <h3 id="options.ajax" lay-toc="{level: 3, hot: true}" class="ws-bold">异步属性</h3>
@ -168,7 +168,7 @@ table 的属性众多,我们大致分为以下几种:
异步属性本质也是基础属性,当开启 `url` 属性时才有效,由于相关属性成员较多,所以单独提取介绍。 异步属性本质也是基础属性,当开启 `url` 属性时才有效,由于相关属性成员较多,所以单独提取介绍。
<div> <div>
{{- d.include("docs/table/detail/options.ajax.md") }} {{- d.include("/table/detail/options.ajax.md") }}
</div> </div>
<h3 id="options.cols" lay-toc="{level: 3, hot: true}" class="ws-bold">表头属性</h3> <h3 id="options.cols" lay-toc="{level: 3, hot: true}" class="ws-bold">表头属性</h3>
@ -176,7 +176,7 @@ table 的属性众多,我们大致分为以下几种:
表头属性是基础属性 `cols` 的子集,其使用频率甚至超过基础属性本身。 表头属性是基础属性 `cols` 的子集,其使用频率甚至超过基础属性本身。
<div> <div>
{{- d.include("docs/table/detail/options.cols.md") }} {{- d.include("/table/detail/options.cols.md") }}
</div> </div>
<h3 id="reload" lay-toc="{level: 2}" class="ws-anchor ws-bold">重载</h3> <h3 id="reload" lay-toc="{level: 2}" class="ws-anchor ws-bold">重载</h3>
@ -677,7 +677,7 @@ table.on('row(test)', function(obj){
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/table/examples/onrowContextmenu.md') }} {{- d.include("/table/examples/onrowContextmenu.md") }}
</textarea> </textarea>
</pre> </pre>

6
docs/transfer/index.md

@ -10,7 +10,7 @@ toc: true
<h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2>
<div> <div>
{{- d.include("docs/transfer/detail/demo.md") }} {{- d.include("/transfer/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{hot: true}">API</h2> <h2 id="api" lay-toc="{hot: true}">API</h2>
@ -32,13 +32,13 @@ toc: true
<h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3> <h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3>
<div> <div>
{{- d.include("docs/transfer/detail/options.md") }} {{- d.include("/transfer/detail/options.md") }}
</div> </div>
<h3 id="options.data" lay-toc="{level: 3, hot: true}">data 格式</h3> <h3 id="options.data" lay-toc="{level: 3, hot: true}">data 格式</h3>
<div> <div>
{{- d.include("docs/transfer/detail/options.data.md") }} {{- d.include("/transfer/detail/options.data.md") }}
</div> </div>
<h3 id="reload" lay-toc="{level: 2}">重载</h3> <h3 id="reload" lay-toc="{level: 2}">重载</h3>

6
docs/tree/index.md

@ -10,7 +10,7 @@ toc: true
<h2 id="examples" lay-toc="{anchor: null}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{anchor: null}" style="margin-bottom: 0;">示例</h2>
<div> <div>
{{- d.include("docs/tree/detail/demo.md") }} {{- d.include("/tree/detail/demo.md") }}
</div> </div>
<h2 id="api" lay-toc="{hot: true}">API</h2> <h2 id="api" lay-toc="{hot: true}">API</h2>
@ -32,13 +32,13 @@ toc: true
<h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3> <h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3>
<div> <div>
{{- d.include("docs/tree/detail/options.md") }} {{- d.include("/tree/detail/options.md") }}
</div> </div>
<h3 id="options.data" lay-toc="{level: 3, hot: true}">data 格式</h3> <h3 id="options.data" lay-toc="{level: 3, hot: true}">data 格式</h3>
<div> <div>
{{- d.include("docs/tree/detail/options.data.md") }} {{- d.include("/tree/detail/options.data.md") }}
</div> </div>

2
docs/treeTable/detail/demo.md

@ -8,7 +8,7 @@
} }
}}"> }}">
<textarea> <textarea>
{{- d.include('docs/treeTable/examples/demo.md') }} {{- d.include("/treeTable/examples/demo.md") }}
</textarea> </textarea>
</pre> </pre>

4
docs/treeTable/index.md

@ -12,7 +12,7 @@ toc: true
以下所有示例中演示的数据均为「静态模拟数据」,实际使用时换成您的真实接口即可。 以下所有示例中演示的数据均为「静态模拟数据」,实际使用时换成您的真实接口即可。
<div> <div>
{{- d.include("docs/treeTable/detail/demo.md") }} {{- d.include("/treeTable/detail/demo.md") }}
</div> </div>
<p></p> <p></p>
@ -51,7 +51,7 @@ toc: true
`table` 组件的所有基础属性均适用于 `treeTable` 组件。在此基础上,`treeTable` 还专门提供了 `tree` 属性集: `table` 组件的所有基础属性均适用于 `treeTable` 组件。在此基础上,`treeTable` 还专门提供了 `tree` 属性集:
<div> <div>
{{- d.include("docs/treeTable/detail/options.md") }} {{- d.include("/treeTable/detail/options.md") }}
</div> </div>
<h3 id="reload" lay-toc="{level: 2}">重载</h3> <h3 id="reload" lay-toc="{level: 2}">重载</h3>

14
docs/upload/detail/demo.md

@ -4,7 +4,7 @@
obj.render(); obj.render();
}}"> }}">
<textarea> <textarea>
{{- d.include("docs/upload/examples/image.md") }} {{- d.include("/upload/examples/image.md") }}
</script> </script>
</textarea> </textarea>
</pre> </pre>
@ -13,7 +13,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/upload/examples/files.table.md") }} {{- d.include("/upload/examples/files.table.md") }}
</textarea> </textarea>
</pre> </pre>
@ -22,7 +22,7 @@
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/upload/examples/accept.md") }} {{- d.include("/upload/examples/accept.md") }}
</textarea> </textarea>
</pre> </pre>
@ -31,7 +31,7 @@
<pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/upload/examples/size.md") }} {{- d.include("/upload/examples/size.md") }}
</textarea> </textarea>
</pre> </pre>
@ -39,7 +39,7 @@
<pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/upload/examples/auto.md") }} {{- d.include("/upload/examples/auto.md") }}
</textarea> </textarea>
</pre> </pre>
@ -48,7 +48,7 @@
<pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/upload/examples/drag.md") }} {{- d.include("/upload/examples/drag.md") }}
</textarea> </textarea>
</pre> </pre>
@ -57,6 +57,6 @@
<pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}"> <pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}">
<textarea> <textarea>
{{- d.include("docs/upload/examples/form.file.md") }} {{- d.include("/upload/examples/form.file.md") }}
</textarea> </textarea>
</pre> </pre>

8
docs/upload/index.md

@ -12,7 +12,7 @@ toc: true
以下示例的部分上传接口由第三方网站 `https://httpbin.org` 提供,它可以模拟各类 HTTP 请求。若未配置上传接口的,每次上传都会报「请求上传接口出现异常」的提示,这属于正常现象。 以下示例的部分上传接口由第三方网站 `https://httpbin.org` 提供,它可以模拟各类 HTTP 请求。若未配置上传接口的,每次上传都会报「请求上传接口出现异常」的提示,这属于正常现象。
<div> <div>
{{- d.include("docs/upload/detail/demo.md") }} {{- d.include("/upload/detail/demo.md") }}
</div> </div>
<p></p> <p></p>
@ -88,7 +88,7 @@ var inst = upload.render({
}); });
``` ```
<h3 id="render" lay-toc="{level: 2}">重载</h3> <h3 id="reload" lay-toc="{level: 2}">重载</h3>
`inst.reload(options);` `inst.reload(options);`
@ -113,10 +113,10 @@ inst.reload({
<h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3> <h3 id="options" lay-toc="{level: 2, hot: true}">属性</h3>
<div> <div>
{{- d.include("docs/upload/detail/options.md") }} {{- d.include("/upload/detail/options.md") }}
</div> </div>
<h2 id="options" lay-toc="{}">跨域方案</h2> <h2 id="cors-upload" lay-toc="{}">跨域方案</h2>
`upload` 组件支持跨域上传,一般有以下两种场景 `upload` 组件支持跨域上传,一般有以下两种场景

2
docs/util/index.md

@ -10,7 +10,7 @@ toc: true
<h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2> <h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2>
<div> <div>
{{- d.include("docs/util/detail/demo.md") }} {{- d.include("/util/detail/demo.md") }}
</div> </div>
<p></p> <p></p>

Loading…
Cancel
Save