Commit cb207e83 by liyuhang19990520

模板

parent efd7605c
......@@ -717,6 +717,7 @@
/**
* 用户组管理
* @module GroupManage
* @see 720
*/
import "@/icons/ic_add.svg";
import "@/icons/group-item.svg";
......@@ -923,6 +924,7 @@ export default {
/**
* @function dropdownSave
* @example 用户设置添加组成员操作
* @see 929
*/
dropdownSave() {
this.$axios({
......@@ -949,6 +951,7 @@ export default {
* @function visibleChange
* @param {Boolean} val 下拉框出现/隐藏判断标识(出现则为 true,隐藏则为 false)
* @example 当用户设置组成员弹框消失后清空选中的用户
* @see 956
*/
visibleChange(val) {
if (!val) {
......@@ -958,6 +961,7 @@ export default {
/**
* @function offMultiple
* @example 不在批量状态时清空之前选中的数据
* @see 966
*/
offMultiple() {
this.selectBoo = false;
......@@ -966,6 +970,7 @@ export default {
/**
* @function clear
* @example 筛选条件中点击清空后清空筛选条件并更新表格数据
* @see 975
*/
clear() {
for (let key in this.searchParams) {
......@@ -984,6 +989,7 @@ export default {
* @param {String} minus 需要删减对象的字段名
* @param {String} add 需要添加对象的字段名
* @example 角色设置,前端交互动画方法
* @see 994
*/
settingPerson(item, minus, add) {
console.log(minus, add);
......@@ -996,6 +1002,7 @@ export default {
/**
* @function savePerson
* @example 保存角色设置
* @see 1007
*/
savePerson() {
let arr = [...this.xtCheckPersonArr, ...this.zdyCheckPersonArr];
......@@ -1022,7 +1029,11 @@ export default {
* @function strArr
* @param {String} str 用户组角色字符串(逗号分隔)
* @example 当用户组角色大于三个则裁剪否则不操作
* @returns {Object} 返回了一个对象,里面包含arr(裁剪后的角色数组),length(裁剪之前的角色个数)
* @returns {Object} 返回的对象看上图解释(obj)
* @property {object} obj - 该函数返回的对象.
* @property {array} obj.arr - 裁剪后的角色集合.
* @property {number} obj.length - 裁剪前的角色个数.
* @see 1038
*/
strArr(str) {
let arr = str.split(",");
......@@ -1042,6 +1053,7 @@ export default {
* @function toggleSelection
* @param {Object} rows 表格行数据
* @example 如果有数据则表格勾选相应数据,如果没有则清空相应数据
* @see 1058
*/
toggleSelection(rows) {
if (rows) {
......@@ -1057,6 +1069,7 @@ export default {
* @function handleSelectionChange
* @param {Object} val 勾选的用户对象
* @example 将勾选后的用户对象存到multipleSelection变量中
* @see 1074
*/
handleSelectionChange(val) {
this.multipleSelection = val;
......@@ -1066,6 +1079,7 @@ export default {
* @function toggleUserSelection
* @param {Object} rows 用户对象
* @example 用户设置的清除所有选项
* @see 1084
*/
toggleUserSelection(rows) {
if (rows) {
......@@ -1081,6 +1095,7 @@ export default {
* @function userHandleSelectionChange
* @param {Object} val 用户对象
* @example 用户设置的选择用户数据
* @see 1100
*/
userHandleSelectionChange(val) {
this.userMultipleSelection = val;
......@@ -1089,6 +1104,16 @@ export default {
* @function userDel
* @param {String} id 用户id
* @example 用户设置弹窗删除用户
* @property {object} axiosObect - 使用到接口的信息.
* @property {String} [axiosObect.url=http://zwpt.xzclub.top:9333/users/delUserFromGroup] 请求地址
* @property {String} [axiosObect.method=delete] 请求方式
* @property {object} axiosObect.data 请求参数
* @property {String} axiosObect.data.groupId 组id
* @property {String} axiosObect.data.userId 用户id
* @property {object} response - 获取到的数据.
* @property {number} response.code - 状态码(200为成功).
* @property {String} response.info - success为成功.
* @see 1118
*/
userDel(id) {
let userId = id;
......@@ -1117,6 +1142,7 @@ export default {
/**
* @function userBatch
* @example 用户设置弹窗批量操作
* @see 1147
*/
userBatch() {
this.userSelectBoo = !this.userSelectBoo;
......@@ -1125,6 +1151,7 @@ export default {
/**
* @function delUserDatas
* @example 用户设置弹窗批量删除用户
* @see 1154
*/
delUserDatas() {
if (!this.userSelectBoo) {
......@@ -1176,6 +1203,7 @@ export default {
/**
* @function batch
* @example 用户组批量操作
* @see 1206
*/
batch() {
this.selectBoo = !this.selectBoo;
......@@ -1185,6 +1213,7 @@ export default {
* @function handleCurrPageChange
* @param {Number} val 目标页数
* @example 用户组切换页数
* @see 1216
*/
handleCurrPageChange: function (val) {
this.searchParams.page = val;
......@@ -1194,6 +1223,7 @@ export default {
* @function handleSizeChange
* @param {Number} val 目标数量
* @example 用户组每页展示数量发生变化
* @see 1226
*/
handleSizeChange: function (val) {
this.searchParams.size = val;
......@@ -1202,6 +1232,7 @@ export default {
/**
* @function open
* @example 打开新增弹窗
* @see 1235
*/
open() {
this.isShowAddUserDialog = true;
......@@ -1215,6 +1246,7 @@ export default {
/**
* @function canceladd
* @example 关闭新增弹窗
* @see 1249
*/
canceladd() {
this.isShowAddUserDialog = false;
......@@ -1224,6 +1256,7 @@ export default {
* @function openedit
* @param {Object} row 编辑的用户组对象
* @example 打开编辑弹窗
* @see 1259
*/
openedit(row) {
this.checkItem = row;
......@@ -1239,6 +1272,7 @@ export default {
/**
* @function canceledit
* @example 关闭编辑弹窗
* @see 1275
*/
canceledit() {
this.isShowEditGroupDialog = false;
......@@ -1247,6 +1281,7 @@ export default {
/**
* @function cancelrole
* @example 关闭角色设置弹窗
* @see 1284
*/
cancelrole() {
this.isShowRoleDialog = false;
......@@ -1255,6 +1290,7 @@ export default {
/**
* @function canceluser
* @example 关闭用户设置弹窗
* @see 1293
*/
canceluser() {
this.isShowUserDialog = false;
......@@ -1264,6 +1300,7 @@ export default {
* @function setUser
* @param {Object} row 当前用户信息对象
* @example 点击用户设置后保存当前的用户信息
* @see 1303
*/
setUser(row) {
this.checkItem = row;
......@@ -1279,6 +1316,7 @@ export default {
/**
* @function getUserList
* @example 点击用户设置后获取当前用户组所有的用户列表
* @see 1319
*/
getUserList() {
this.$axios
......@@ -1293,6 +1331,7 @@ export default {
/**
* @function getAddUserList
* @example 点击用户设置后获取当前用户组可以添加的用户列表
* @see 1334
*/
getAddUserList() {
this.$axios
......@@ -1308,6 +1347,7 @@ export default {
* @function setRole
* @param {Object} row 当前用户组的对象信息
* @example 打开角色弹窗前保存用户组信息
* @see 1350
*/
setRole(row) {
this.checkItem = row;
......@@ -1324,6 +1364,7 @@ export default {
* @function getPersonData
* @param {String} id 当前用户组id
* @example 获取当前用户组的所有角色
* @see 1367
*/
getPersonData(id) {
this.personId = id;
......@@ -1350,6 +1391,7 @@ export default {
/**
* @function submitForm
* @example 新增用户组
* @see 1394
*/
submitForm(formName) {
this.$refs.addFormParams.validate((valid) => {
......@@ -1392,6 +1434,7 @@ export default {
/**
* @function submitEditForm
* @example 修改用户组
* @see 1437
*/
submitEditForm(formName) {
this.$refs.editFormParams.validate((valid) => {
......@@ -1432,6 +1475,7 @@ export default {
/**
* @function delMore
* @example 用户组批量删除
* @see 1478
*/
delMore() {
let self = this;
......@@ -1464,6 +1508,7 @@ export default {
* @function del
* @param {String} id 用户组id
* @example 用户组单删除
* @see 1511
*/
del(id) {
this.$axios({
......@@ -1489,6 +1534,7 @@ export default {
* @function search
* @param {Boolean|String} boo 如果存在则初始化页数
* @example 查询用户组列表
* @see 1537
*/
search(boo) {
let params = {};
......
......@@ -761,6 +761,7 @@
/**
* 用户组管理
* @module GroupManage
* @see 720
*/
import "@/icons/ic_add.svg";
import "@/icons/group-item.svg";
......@@ -967,6 +968,7 @@ export default {
/**
* @function dropdownSave
* @example 用户设置添加组成员操作
* @see 929
*/
dropdownSave() {
this.$axios({
......@@ -993,6 +995,7 @@ export default {
* @function visibleChange
* @param {Boolean} val 下拉框出现/隐藏判断标识(出现则为 true,隐藏则为 false)
* @example 当用户设置组成员弹框消失后清空选中的用户
* @see 956
*/
visibleChange(val) {
if (!val) {
......@@ -1002,6 +1005,7 @@ export default {
/**
* @function offMultiple
* @example 不在批量状态时清空之前选中的数据
* @see 966
*/
offMultiple() {
this.selectBoo = false;
......@@ -1010,6 +1014,7 @@ export default {
/**
* @function clear
* @example 筛选条件中点击清空后清空筛选条件并更新表格数据
* @see 975
*/
clear() {
for (let key in this.searchParams) {
......@@ -1028,6 +1033,7 @@ export default {
* @param {String} minus 需要删减对象的字段名
* @param {String} add 需要添加对象的字段名
* @example 角色设置,前端交互动画方法
* @see 994
*/
settingPerson(item, minus, add) {
console.log(minus, add);
......@@ -1040,6 +1046,7 @@ export default {
/**
* @function savePerson
* @example 保存角色设置
* @see 1007
*/
savePerson() {
let arr = [...this.xtCheckPersonArr, ...this.zdyCheckPersonArr];
......@@ -1066,7 +1073,11 @@ export default {
* @function strArr
* @param {String} str 用户组角色字符串(逗号分隔)
* @example 当用户组角色大于三个则裁剪否则不操作
* @returns {Object} 返回了一个对象,里面包含arr(裁剪后的角色数组),length(裁剪之前的角色个数)
* @returns {Object} 返回的对象看上图解释(obj)
* @property {object} obj - 该函数返回的对象.
* @property {array} obj.arr - 裁剪后的角色集合.
* @property {number} obj.length - 裁剪前的角色个数.
* @see 1038
*/
strArr(str) {
let arr = str.split(",");
......@@ -1086,6 +1097,7 @@ export default {
* @function toggleSelection
* @param {Object} rows 表格行数据
* @example 如果有数据则表格勾选相应数据,如果没有则清空相应数据
* @see 1058
*/
toggleSelection(rows) {
if (rows) {
......@@ -1101,6 +1113,7 @@ export default {
* @function handleSelectionChange
* @param {Object} val 勾选的用户对象
* @example 将勾选后的用户对象存到multipleSelection变量中
* @see 1074
*/
handleSelectionChange(val) {
this.multipleSelection = val;
......@@ -1110,6 +1123,7 @@ export default {
* @function toggleUserSelection
* @param {Object} rows 用户对象
* @example 用户设置的清除所有选项
* @see 1084
*/
toggleUserSelection(rows) {
if (rows) {
......@@ -1125,6 +1139,7 @@ export default {
* @function userHandleSelectionChange
* @param {Object} val 用户对象
* @example 用户设置的选择用户数据
* @see 1100
*/
userHandleSelectionChange(val) {
this.userMultipleSelection = val;
......@@ -1133,6 +1148,16 @@ export default {
* @function userDel
* @param {String} id 用户id
* @example 用户设置弹窗删除用户
* @property {object} axiosObect - 使用到接口的信息.
* @property {String} [axiosObect.url=http://zwpt.xzclub.top:9333/users/delUserFromGroup] 请求地址
* @property {String} [axiosObect.method=delete] 请求方式
* @property {object} axiosObect.data 请求参数
* @property {String} axiosObect.data.groupId 组id
* @property {String} axiosObect.data.userId 用户id
* @property {object} response - 获取到的数据.
* @property {number} response.code - 状态码(200为成功).
* @property {String} response.info - success为成功.
* @see 1118
*/
userDel(id) {
let userId = id;
......@@ -1161,6 +1186,7 @@ export default {
/**
* @function userBatch
* @example 用户设置弹窗批量操作
* @see 1147
*/
userBatch() {
this.userSelectBoo = !this.userSelectBoo;
......@@ -1169,6 +1195,7 @@ export default {
/**
* @function delUserDatas
* @example 用户设置弹窗批量删除用户
* @see 1154
*/
delUserDatas() {
if (!this.userSelectBoo) {
......@@ -1220,6 +1247,7 @@ export default {
/**
* @function batch
* @example 用户组批量操作
* @see 1206
*/
batch() {
this.selectBoo = !this.selectBoo;
......@@ -1229,6 +1257,7 @@ export default {
* @function handleCurrPageChange
* @param {Number} val 目标页数
* @example 用户组切换页数
* @see 1216
*/
handleCurrPageChange: function (val) {
this.searchParams.page = val;
......@@ -1238,6 +1267,7 @@ export default {
* @function handleSizeChange
* @param {Number} val 目标数量
* @example 用户组每页展示数量发生变化
* @see 1226
*/
handleSizeChange: function (val) {
this.searchParams.size = val;
......@@ -1246,6 +1276,7 @@ export default {
/**
* @function open
* @example 打开新增弹窗
* @see 1235
*/
open() {
this.isShowAddUserDialog = true;
......@@ -1259,6 +1290,7 @@ export default {
/**
* @function canceladd
* @example 关闭新增弹窗
* @see 1249
*/
canceladd() {
this.isShowAddUserDialog = false;
......@@ -1268,6 +1300,7 @@ export default {
* @function openedit
* @param {Object} row 编辑的用户组对象
* @example 打开编辑弹窗
* @see 1259
*/
openedit(row) {
this.checkItem = row;
......@@ -1283,6 +1316,7 @@ export default {
/**
* @function canceledit
* @example 关闭编辑弹窗
* @see 1275
*/
canceledit() {
this.isShowEditGroupDialog = false;
......@@ -1291,6 +1325,7 @@ export default {
/**
* @function cancelrole
* @example 关闭角色设置弹窗
* @see 1284
*/
cancelrole() {
this.isShowRoleDialog = false;
......@@ -1299,6 +1334,7 @@ export default {
/**
* @function canceluser
* @example 关闭用户设置弹窗
* @see 1293
*/
canceluser() {
this.isShowUserDialog = false;
......@@ -1308,6 +1344,7 @@ export default {
* @function setUser
* @param {Object} row 当前用户信息对象
* @example 点击用户设置后保存当前的用户信息
* @see 1303
*/
setUser(row) {
this.checkItem = row;
......@@ -1323,6 +1360,7 @@ export default {
/**
* @function getUserList
* @example 点击用户设置后获取当前用户组所有的用户列表
* @see 1319
*/
getUserList() {
this.$axios
......@@ -1337,6 +1375,7 @@ export default {
/**
* @function getAddUserList
* @example 点击用户设置后获取当前用户组可以添加的用户列表
* @see 1334
*/
getAddUserList() {
this.$axios
......@@ -1352,6 +1391,7 @@ export default {
* @function setRole
* @param {Object} row 当前用户组的对象信息
* @example 打开角色弹窗前保存用户组信息
* @see 1350
*/
setRole(row) {
this.checkItem = row;
......@@ -1368,6 +1408,7 @@ export default {
* @function getPersonData
* @param {String} id 当前用户组id
* @example 获取当前用户组的所有角色
* @see 1367
*/
getPersonData(id) {
this.personId = id;
......@@ -1394,6 +1435,7 @@ export default {
/**
* @function submitForm
* @example 新增用户组
* @see 1394
*/
submitForm(formName) {
this.$refs.addFormParams.validate((valid) => {
......@@ -1436,6 +1478,7 @@ export default {
/**
* @function submitEditForm
* @example 修改用户组
* @see 1437
*/
submitEditForm(formName) {
this.$refs.editFormParams.validate((valid) => {
......@@ -1476,6 +1519,7 @@ export default {
/**
* @function delMore
* @example 用户组批量删除
* @see 1478
*/
delMore() {
let self = this;
......@@ -1508,6 +1552,7 @@ export default {
* @function del
* @param {String} id 用户组id
* @example 用户组单删除
* @see 1511
*/
del(id) {
this.$axios({
......@@ -1533,6 +1578,7 @@ export default {
* @function search
* @param {Boolean|String} boo 如果存在则初始化页数
* @example 查询用户组列表
* @see 1537
*/
search(boo) {
let params = {};
......@@ -1719,7 +1765,7 @@ export default {
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Thu Jan 06 2022 19:08:05 GMT+0800 (中国标准时间) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Fri Jan 07 2022 15:37:09 GMT+0800 (中国标准时间) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>
<script>prettyPrint();</script>
......
......@@ -1357,7 +1357,7 @@ export default {
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Thu Jan 06 2022 19:08:05 GMT+0800 (中国标准时间) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Fri Jan 07 2022 15:37:09 GMT+0800 (中国标准时间) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>
<script>prettyPrint();</script>
......
......@@ -68,7 +68,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Thu Jan 06 2022 19:08:05 GMT+0800 (中国标准时间) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Fri Jan 07 2022 15:37:09 GMT+0800 (中国标准时间) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>
<script>prettyPrint();</script>
......
......@@ -163,7 +163,7 @@
<h3 class="subsection-title">Methods</h3>
<h3 class="subsection-title">方法</h3>
......@@ -236,7 +236,7 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>点击批量操作后的方法</code></pre>
......@@ -332,7 +332,7 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>关闭新增弹窗</code></pre>
......@@ -428,7 +428,7 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>关闭修改弹窗</code></pre>
......@@ -524,7 +524,7 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>清空所有筛选条件并更新用户表格数据</code></pre>
......@@ -620,30 +620,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>单个删除用户</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -765,7 +765,7 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>批量删除用户</code></pre>
......@@ -861,30 +861,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>回显要编辑的人员信息</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -1006,30 +1006,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>当期页发生变化</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -1151,30 +1151,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>将勾选的用户对象保存起来</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -1296,30 +1296,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>每页展示数量发生变化</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -1441,7 +1441,7 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>取消批量操作状态,删除所有选中的用户</code></pre>
......@@ -1537,7 +1537,7 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>打开新增弹窗</code></pre>
......@@ -1633,30 +1633,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>打开编辑弹窗</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -1778,30 +1778,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>重置对应的form表单</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -1923,30 +1923,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>筛选用户表格数据</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -2071,30 +2071,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>当用户角色大于三个则裁剪否则不操作</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -2141,7 +2141,7 @@
<h5>Returns:</h5>
<h5>返回的数据:</h5>
<div class="param-desc">
......@@ -2238,7 +2238,7 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>编辑用户</code></pre>
......@@ -2334,7 +2334,7 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>新增用户</code></pre>
......@@ -2430,30 +2430,30 @@
<h5>Example</h5>
<h5>描述</h5>
<pre class="prettyprint"><code>如果用户对象存在则选中否则清空</code></pre>
<h5>Parameters:</h5>
<h5>参数:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>参数名</th>
<th>Type</th>
<th>类型</th>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -2524,7 +2524,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Thu Jan 06 2022 19:08:05 GMT+0800 (中国标准时间) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Fri Jan 07 2022 15:37:09 GMT+0800 (中国标准时间) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>
<script>prettyPrint();</script>
......
......@@ -100,8 +100,8 @@ h3 {
margin: 1.2em 0 0.3em;
}
.boxItem {
padding: 0.3em 1em.3em;
box-shadow: 0 0 0.3em #fb4a24;
padding: 0.3em 1em 0.3em;
box-shadow: 0px 0px 30px 0px rgba(0, 21, 51, 0.55);
margin: 3em 0;
/* border: 1px solid #FB4A24; */
}
......@@ -112,12 +112,9 @@ h4 {
}
h4.name {
color: #fff;
background: #6d426d;
box-shadow: 0 0.25em 0.5em #d3d3d3;
border-top: 1px solid #d3d3d3;
color: #fd5301;
border-bottom: 1px solid #d3d3d3;
margin: 1.5em 0 0.5em;
margin: 0.5em 0 0.5em;
padding: 0.75em 0 0.75em 10px;
}
......@@ -129,6 +126,26 @@ h4.name a:hover {
border-bottom-color: #fc83ff;
}
h5 {
font-size: 100% !important;
font-weight: 600 !important;
position: relative;
padding-left: 0.7em;
margin-bottom: 1em !important;
}
h5::after {
content: "";
display: block;
width: 5px;
height: 5px;
background-color: #000;
border-radius: 50%;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
h5,
.container-overview .subsection-title {
font-size: 120%;
......@@ -140,7 +157,23 @@ h6 {
font-size: 100%;
letter-spacing: -0.01em;
margin: 6px 0 3px 0;
font-style: italic;
font-weight: 600 !important;
padding-left: 0.7em;
position: relative;
margin-top: 2em;
/* font-style: italic; */
}
h6::after {
content: "";
display: block;
width: 5px;
height: 5px;
background-color: #000;
border-radius: 50%;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
.usertext h1 {
......@@ -439,6 +472,10 @@ footer {
.prettyprint > code {
padding: 15px;
background-color: #f5f7fa;
}
.prettyprint > code > span {
color: #000;
}
.prettyprint .linenums code {
......
......@@ -100,8 +100,8 @@ h3 {
margin: 1.2em 0 0.3em;
}
.boxItem {
padding: 0.3em 1em.3em;
box-shadow: 0 0 0.3em #fb4a24;
padding: 0.3em 1em 0.3em;
box-shadow: 0px 0px 30px 0px rgba(0, 21, 51, 0.55);
margin: 3em 0;
/* border: 1px solid #FB4A24; */
}
......@@ -112,12 +112,9 @@ h4 {
}
h4.name {
color: #fff;
background: #6d426d;
box-shadow: 0 0.25em 0.5em #d3d3d3;
border-top: 1px solid #d3d3d3;
color: #fd5301;
border-bottom: 1px solid #d3d3d3;
margin: 1.5em 0 0.5em;
margin: 0.5em 0 0.5em;
padding: 0.75em 0 0.75em 10px;
}
......@@ -129,6 +126,26 @@ h4.name a:hover {
border-bottom-color: #fc83ff;
}
h5 {
font-size: 100% !important;
font-weight: 600 !important;
position: relative;
padding-left: 0.7em;
margin-bottom: 1em !important;
}
h5::after {
content: "";
display: block;
width: 5px;
height: 5px;
background-color: #000;
border-radius: 50%;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
h5,
.container-overview .subsection-title {
font-size: 120%;
......@@ -140,7 +157,23 @@ h6 {
font-size: 100%;
letter-spacing: -0.01em;
margin: 6px 0 3px 0;
font-style: italic;
font-weight: 600 !important;
padding-left: 0.7em;
position: relative;
margin-top: 2em;
/* font-style: italic; */
}
h6::after {
content: "";
display: block;
width: 5px;
height: 5px;
background-color: #000;
border-radius: 50%;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
.usertext h1 {
......@@ -439,6 +472,10 @@ footer {
.prettyprint > code {
padding: 15px;
background-color: #f5f7fa;
}
.prettyprint > code > span {
color: #000;
}
.prettyprint .linenums code {
......
......@@ -61,7 +61,7 @@
<?js } ?>
<?js if (doc.examples && doc.examples.length) { ?>
<h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
<h3>描述<?js= doc.examples.length > 1? 's':'' ?></h3>
<?js= self.partial('examples.tmpl', doc.examples) ?>
<?js } ?>
<?js } ?>
......@@ -152,7 +152,7 @@
var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
if (methods && methods.length && methods.forEach) {
?>
<h3 class="subsection-title">Methods</h3>
<h3 class="subsection-title">方法</h3>
<?js methods.forEach(function(m) { ?>
<?js= self.partial('method.tmpl', m) ?>
......
......@@ -140,7 +140,7 @@ if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvalu
if (properties && properties.length && properties.forEach) {
?>
<h5 class="subsection-title">Properties:</h5>
<h5 class="subsection-title">对象注解:</h5>
<?js= this.partial('properties.tmpl', data) ?>
......
......@@ -34,7 +34,7 @@ var self = this;
<?js } ?>
<?js if (data.examples && examples.length) { ?>
<h5>Example<?js= examples.length > 1? 's':'' ?></h5>
<h5>描述<?js= examples.length > 1? 's':'' ?></h5>
<?js= this.partial('examples.tmpl', examples) ?>
<?js } ?>
</div>
......@@ -53,12 +53,12 @@ var self = this;
<?js } ?>
<?js if (data.examples && examples.length) { ?>
<h5>Example<?js= examples.length > 1? 's':'' ?></h5>
<h5>描述<?js= examples.length > 1? 's':'' ?></h5>
<?js= this.partial('examples.tmpl', examples) ?>
<?js } ?>
<?js if (data.params && params.length) { ?>
<h5>Parameters:</h5>
<h5>参数:</h5>
<?js= this.partial('params.tmpl', params) ?>
<?js } ?>
......@@ -115,7 +115,7 @@ var self = this;
} } ?>
<?js if (data.returns && returns.length) { ?>
<h5>Returns:</h5>
<h5>返回的数据:</h5>
<?js if (returns.length > 1) { ?><ul><?js
returns.forEach(function(r) { ?>
<li><?js= self.partial('returns.tmpl', r) ?></li>
......
......@@ -62,10 +62,10 @@
<thead>
<tr>
<?js if (params.hasName) {?>
<th>Name</th>
<th>参数名</th>
<?js } ?>
<th>Type</th>
<th>类型</th>
<?js if (params.hasAttributes) {?>
<th>Attributes</th>
......@@ -75,7 +75,7 @@
<th>Default</th>
<?js } ?>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -122,7 +122,7 @@
<?js } ?>
<td class="description last"><?js= param.description ?><?js if (param.subparams) { ?>
<h6>Properties</h6>
<h6>字段注解</h6>
<?js= self.partial('params.tmpl', param.subparams) ?>
<?js } ?></td>
</tr>
......
......@@ -42,10 +42,10 @@
<thead>
<tr>
<?js if (props.hasName) {?>
<th>Name</th>
<th>参数名</th>
<?js } ?>
<th>Type</th>
<th>类型</th>
<?js if (props.hasAttributes) {?>
<th>Attributes</th>
......@@ -55,7 +55,7 @@
<th>Default</th>
<?js } ?>
<th class="last">Description</th>
<th class="last">含义</th>
</tr>
</thead>
......@@ -98,7 +98,7 @@
<?js } ?>
<td class="description last"><?js= prop.description ?><?js if (prop.subprops) { ?>
<h6>Properties</h6><?js= self.partial('properties.tmpl', prop) ?>
<h6>字段注解</h6><?js= self.partial('properties.tmpl', prop) ?>
<?js } ?></td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment