update 完善了部分开发文档
This commit is contained in:
44
Web/src/pages/system/doc/functions/index.vue
Normal file
44
Web/src/pages/system/doc/functions/index.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<section>
|
||||
<p>
|
||||
现在已经将众多常用的函数挂载到
|
||||
<a-tag class="mr-none" color="orange">Vue</a-tag>原型链中,方便在任意业务组件中直接通过
|
||||
<a-tag class="mr-none" color="orange">this</a-tag>调用。
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>
|
||||
<a-tag color="blue">$api</a-tag>可直接调用webapi,详见
|
||||
<a href="#doc-4">接口</a>。
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<a-tag color="blue">$_</a-tag>调用实用的工具库
|
||||
<a-tag class="mr-none" color="orange">Lodash</a-tag>,使用方式详见
|
||||
<a href="https://www.lodashjs.com/" target="_blank">官方文档</a>。
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<a-tag color="blue">$moment</a-tag>调用轻便的时间工具库
|
||||
<a-tag class="mr-none" color="orange">Moment.js</a-tag>,使用方式详见
|
||||
<a href="http://momentjs.cn/docs/" target="_blank">官方文档</a>。
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<a-tag class="mr-none" color="blue">onOpenContentWindow</a-tag>和
|
||||
<a-tag color="blue">closeContentWindow</a-tag>打开和关闭窗口,详见
|
||||
<a href="#doc-2">窗口</a>。
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<a-tag color="blue">$auth</a-tag>权限渲染组件的函数版,可以用于在js中的权限处理,并返回布尔值。参数格式详见
|
||||
<a href="#doc-5">权限渲染</a>。
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</template>
|
||||
Reference in New Issue
Block a user