提交 fd754af3 编写于 作者: VK1688's avatar VK1688

1.3.6

上级 fe0e3086
### uniCloud云函数路由框架研究Q群:22466457 如有问题或建议可以在群内讨论。
### 插件名称:`vk-unicloud-router`
### 作者:VK
### 更新时间:2020-09-16
### 更新时间:2020-09-21
## 主要功能 以及 对开发者的价值
......@@ -57,7 +57,7 @@ this.vk.callFunction({
#### 6、【1.2.2 新增】 `vk.baseDao`数据库工具包,使小白也能轻松上手对数据库的调用。
#### 7、【1.2.7 新增】 集成`uview-ui` UI框架 版本:1.6.5(感谢`uview-ui`作者)。
#### 7、【1.2.7 新增】 集成`uview-ui` UI框架(感谢`uview-ui`作者)。
#### 8、【1.2.9 新增】 前后端一体动态数据组件
......
### uniCloud 云函数路由研究群:22466457 如有问题或建议可以在群内讨论。
##### gitee公共仓库地址:https://gitee.com/vk-uni/vk-uni-cloud-router.git
### 更新内容
#### 1、【新增】10个实用的js函数(前后端均可用以下方式调用)
```
// 自动根据字符串路径获取对象中的值支持.和[] , 且任意一个值为undefined时,不会报错,会直接返回undefined
vk.pubfn.getData(dataObj,"a.b.c[1]");
// 自动根据字符串路径设置对象中的值 支持.和[]
vk.pubfn.setData(dataObj, "a.b.c[1]", "aa");
// 检测参数是否有值 其中 undefined、null、{}、[]、"" 均为false
vk.pubfn.isNull(value);
// 检测参数是否无值 结果与 vk.pubfn.isNull 相反
vk.pubfn.isNotNull(value);
// 检测所有参数 - 是否至少有一个为空
vk.pubfn.isNullOne(value1,value2,value3,...);
// 检测所有参数 - 是否全部为空
vk.pubfn.isNullAll(value1,value2,value3,...);
// 检测所有参数 - 是否全部都不为空
vk.pubfn.isNotNullAll(value1,value2,value3,...);
// 获取对象数组中的某一个item,根据指定的键值
vk.pubfn.getListItem(list, key, value);
// 产生指定位数的随机数(支持任意字符,默认纯数字)
vk.pubfn.random(6);
vk.pubfn.random(6,"abcdefghijklmnopqrstuvwxyz0123456789");
// 日期对象转字符串 两种格式 2020-09-19 10:10:10 和 20200919101010
vk.pubfn.getFullTime(date);
```
### 你也可以在评论区发布留言交流心得。
\ No newline at end of file
......@@ -88,9 +88,9 @@
"version": "file:../common/uni-id"
},
"vk-unicloud": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/vk-unicloud/-/vk-unicloud-1.2.4.tgz",
"integrity": "sha512-EOaZqusnqad2tUhkl7RYJlKcA5mAYJVuu5wmiyuWWHeoTEQSJU+PnOm3vqgNKXxRFVu48lxVgUXOeuwB0wMtcQ=="
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/vk-unicloud/-/vk-unicloud-1.3.3.tgz",
"integrity": "sha512-fjXgdzUHRXrIn5ODJS7jX+1E85OYGRbBrKsKHKlC8lzDbpF1rktPsi34RKuu2w78eY1yak6NQn9S2ssD0md6uw=="
},
"xml2js": {
"version": "0.4.23",
......
......@@ -14,7 +14,7 @@
"config": "file:../common/config",
"nodemailer": "^6.4.11",
"uni-id": "file:../common/uni-id",
"vk-unicloud": "^1.2.4"
"vk-unicloud": "^1.3.3"
},
"private": true
}
......@@ -27,5 +27,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -21,5 +21,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -21,5 +21,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -22,5 +22,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -21,5 +21,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -38,5 +38,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -24,5 +24,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -21,5 +21,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -35,5 +35,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -20,5 +20,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -21,5 +21,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -21,5 +21,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -20,5 +20,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -23,5 +23,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -33,5 +33,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -21,5 +21,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -28,5 +28,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -29,5 +29,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -25,5 +25,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -38,5 +38,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -39,5 +39,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -53,5 +53,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -39,5 +39,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -18,5 +18,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -39,5 +39,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -27,5 +27,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -23,5 +23,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -30,5 +30,4 @@ module.exports = {
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}
\ No newline at end of file
......@@ -5,9 +5,9 @@
"requires": true,
"dependencies": {
"uview-ui": {
"version": "1.6.9",
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-1.6.9.tgz",
"integrity": "sha512-YTfhAgUO+OXrNmib+SXP6KOxzFEyJu1rloKb0tgL0herkmeQ/6KfsmGnsMGz7z/nC9/mkrZ68iQ8IMcykryYhg=="
"version": "1.7.1",
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-1.7.1.tgz",
"integrity": "sha512-e2s7F7omTHxzdrE8kPtiaEof5LC4ADeY4m6i6ROqLoA0VCEqC2Y4SNGXZKW3y9D04z2EKX239w1l3H1jtdLTow=="
},
"vk-unicloud-dynamic-components": {
"version": "1.0.6",
......@@ -15,11 +15,11 @@
"integrity": "sha512-lvlkpkW/d0VaFFOd91EbJF954KDKCbCmexGo3o1FEiclSwToVgX/p39eVOAiFskPBr2kkqPEckfX42h8kHIeXQ=="
},
"vk-unicloud-page": {
"version": "1.4.6",
"resolved": "https://registry.npmjs.org/vk-unicloud-page/-/vk-unicloud-page-1.4.6.tgz",
"integrity": "sha512-FmFwwkhaMWPsWRZQVcADjrvJX76Fx3r4H1W2scpmcF425RjYQaZYLMY46JymdsfCHyqIcRbSkghVy6WEUZhzUg==",
"version": "1.6.2",
"resolved": "https://registry.npmjs.org/vk-unicloud-page/-/vk-unicloud-page-1.6.2.tgz",
"integrity": "sha512-+EoTLPfTjRNBx4EupSwcif6bM3UmHAchGzHPfqe92rQATmmN81TpZSbGRP0eXMeQkiBLfyaG1T3ZklJR7kwdsQ==",
"requires": {
"uview-ui": "~1.6.9",
"uview-ui": "~1.7.1",
"vk-unicloud-dynamic-components": "~1.0.6"
}
}
......
......@@ -4,7 +4,7 @@
"description": "【开箱即用】vk-uniCloud-router - 云函数路由模式 - uniCloud开发框架 - 已集成uni-id",
"main": "main.js",
"dependencies": {
"vk-unicloud-page": "^1.4.6"
"vk-unicloud-page": "^1.6.2"
},
"devDependencies": {},
"scripts": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册