From 19d917307155f679cacdbedc50c7e882ecfaa3b0 Mon Sep 17 00:00:00 2001 From: linju Date: Mon, 6 Feb 2023 11:43:42 +0800 Subject: [PATCH] 2.1.1 --- changelog.md | 3 + package.json | 2 +- uni_modules/uni-id-pages/changelog.md | 2 + .../uni-id-pages-avatar.vue | 89 +++- .../uni-id-pages-fab-login.vue | 44 +- uni_modules/uni-id-pages/package.json | 2 +- .../uni-id-pages/pages/userinfo/userinfo.vue | 500 +++++++++--------- .../database/uni-id-users.schema.json | 4 +- uni_modules/uni-popup/changelog.md | 2 + .../uni-popup-dialog/uni-popup-dialog.vue | 37 +- uni_modules/uni-popup/package.json | 2 +- 11 files changed, 358 insertions(+), 329 deletions(-) diff --git a/changelog.md b/changelog.md index 309c7ecf..91c51952 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +## 2.1.1(2023-02-02) +- 重要 分包加载uni-id-pages 优化后 运行时主包大小为:637KB 分包为:78KB,发布后主包大小为:585KB 分包为:75KB +- 新增 微信小程序端 支持选择使用微信资料的“头像”和“昵称” 设置用户资料 [详情参考](https://wdoc-76491.picgzc.qpic.cn/MTY4ODg1MDUyNzQyMDUxNw_21263_rTNhg68FTngQGdvQ_1647431233?w=1280&h=695.7176470588236) ## 2.1.0(2023-01-17) - 重要 新增uni-admin需要的相关依赖和初始化数据(方便uni-admin关联uni-starter后可直接运行) - 升级依赖的 [uni-id-pages](https://ext.dcloud.net.cn/plugin?name=uni-id-pages) 修复如下问题: diff --git a/package.json b/package.json index d9484319..2cf142a4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "id": "uni-starter", "displayName": "uni-starter", - "version": "2.1.0", + "version": "2.1.1", "description": "云端一体应用快速开发基本项目模版", "keywords": [ "login", diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 866ac964..9b1fe26c 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,3 +1,5 @@ +## 1.1.1(2023-02-02) +- 新增 微信小程序端 支持选择使用微信资料的“头像”和“昵称” 设置用户资料 [详情参考](https://wdoc-76491.picgzc.qpic.cn/MTY4ODg1MDUyNzQyMDUxNw_21263_rTNhg68FTngQGdvQ_1647431233?w=1280&h=695.7176470588236) ## 1.1.0(2023-01-31) - 【重要】优化 小程序端资源包大小(运行时大小为:731KB,发行后为:583KB;注:可以直接将本插件作为分包使用) - 更新 微信小程序端 上传头像功能 用`wx.cropImage`实现图片裁剪 diff --git a/uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue b/uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue index 694594af..5f0cc664 100644 --- a/uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue +++ b/uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue @@ -1,9 +1,9 @@ - diff --git a/uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json b/uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json index 897b616c..20a9be9e 100644 --- a/uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json +++ b/uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json @@ -32,7 +32,7 @@ "title": "头像地址", "trim": "both", "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "read": true, "write": "doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" } }, @@ -41,7 +41,7 @@ "description": "用file类型方便使用uni-file-picker组件", "title": "头像文件", "permission": { - "read": "doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission", + "read": true, "write": "doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" } }, diff --git a/uni_modules/uni-popup/changelog.md b/uni_modules/uni-popup/changelog.md index 511915d4..41abeb44 100644 --- a/uni_modules/uni-popup/changelog.md +++ b/uni_modules/uni-popup/changelog.md @@ -1,3 +1,5 @@ +## 1.8.2(2023-02-02) +- uni-popup-dialog 组件新增 inputType 属性 ## 1.8.1(2022-12-01) - 修复 nvue 下 v-show 报错 ## 1.8.0(2022-11-29) diff --git a/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue b/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue index 5a1f840b..9bc87fc2 100644 --- a/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue +++ b/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue @@ -10,7 +10,7 @@ - + @@ -56,7 +56,11 @@ name: "uniPopupDialog", mixins: [popup], emits:['confirm','close'], - props: { + props: { + inputType:{ + type: String, + default: 'text' + }, value: { type: [String, Number], default: '' @@ -84,14 +88,14 @@ beforeClose: { type: Boolean, default: false - }, - cancelText:{ - type: String, - default: '' - }, - confirmText:{ - type: String, - default: '' + }, + cancelText:{ + type: String, + default: '' + }, + confirmText:{ + type: String, + default: '' } }, data() { @@ -171,11 +175,6 @@