提交 a998f1d1 编写于 作者: DCloud_JSON's avatar DCloud_JSON

更新 升级依赖的uni-captcha的版本为0.7.5

上级 7bf9ef42
## 0.7.5(2023-12-18)
- 修复 在uni-app x项目,部分情况下,执行uni-captcha组件的setFocus无效的问题
## 0.7.4(2023-12-18)
- 更新 `package.json` -> `dependencies` 增加 `uni-popup`
## 0.7.3(2023-11-15) ## 0.7.3(2023-11-15)
- 更新 uni-popup-captcha.uvue依赖的popup组件,直接使用uni_modules下的uni-popup组件 - 更新 uni-popup-captcha.uvue依赖的popup组件,直接使用uni_modules下的uni-popup组件
## 0.7.2(2023-11-07) ## 0.7.2(2023-11-07)
......
...@@ -14,12 +14,8 @@ ...@@ -14,12 +14,8 @@
</template> </template>
<script> <script>
import uniPopup from './uni-popup/uni-popup.uvue';
let confirmCallBack = ():void=>console.log('未传入回调函数') let confirmCallBack = ():void=>console.log('未传入回调函数')
export default { export default {
components: {
uniPopup
},
emits:["modelValue","confirm","cancel"], emits:["modelValue","confirm","cancel"],
data() { data() {
return { return {
......
<template>
<view class="popup-root" v-if="isOpen" v-show="isShow" @click="clickMask">
<view @click.stop>
<slot></slot>
</view>
</view>
</template>
<script>
type CloseCallBack = ()=> void;
let closeCallBack:CloseCallBack = () :void => {};
export default {
emits:["close","clickMask"],
data() {
return {
isShow:false,
isOpen:false
}
},
watch: {
// 设置show = true 时,如果没有 open 需要设置为 open
isShow:{
handler(isShow) {
// console.log("isShow",isShow)
if(isShow && this.isOpen == false){
this.isOpen = true
}
},
immediate:true
},
// 设置isOpen = true 时,如果没有 isShow 需要设置为 isShow
isOpen:{
handler(isOpen) {
// console.log("isOpen",isOpen)
if(isOpen && this.isShow == false){
this.isShow = true
}
},
immediate:true
}
},
methods:{
open(){
// ...funs : CloseCallBack[]
// if(funs.length > 0){
// closeCallBack = funs[0]
// }
this.isOpen = true;
},
clickMask(){
this.$emit('clickMask')
this.close()
},
close(): void{
this.isOpen = false;
this.$emit('close')
closeCallBack()
},
hiden(){
this.isShow = false
},
show(){
this.isShow = true
}
}
}
</script>
<style>
.popup-root {
position: fixed;
top: 0;
left: 0;
width: 750rpx;
height: 100%;
flex: 1;
background-color: rgba(0, 0, 0, 0.3);
justify-content: center;
align-items: center;
z-index: 99;
}
</style>
\ No newline at end of file
{ {
"id": "uni-captcha", "id": "uni-captcha",
"displayName": "uni-captcha", "displayName": "uni-captcha",
"version": "0.7.3", "version": "0.7.5",
"description": "云端一体图形验证码组件", "description": "云端一体图形验证码组件",
"keywords": [ "keywords": [
"captcha", "captcha",
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"engines": { "engines": {
"HBuilderX": "^3.1.0" "HBuilderX": "^3.1.0"
}, },
"dcloudext": { "dcloudext": {
"sale": { "sale": {
"regular": { "regular": {
"price": "0.00" "price": "0.00"
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
"type": "unicloud-template-function" "type": "unicloud-template-function"
}, },
"uni_modules": { "uni_modules": {
"dependencies": [], "dependencies": [
"uni-popup"
],
"encrypt": [], "encrypt": [],
"platforms": { "platforms": {
"cloud": { "cloud": {
...@@ -72,8 +74,8 @@ ...@@ -72,8 +74,8 @@
"联盟": "u" "联盟": "u"
}, },
"Vue": { "Vue": {
"vue2": "y", "vue2": "y",
"vue3": "u" "vue3": "u"
} }
} }
} }
......
## 1.0.5(2023-12-18)
更新 升级依赖的uni-captcha的版本为0.7.5
## 1.0.4(2023-12-16) ## 1.0.4(2023-12-16)
新增 支持一键登录 新增 支持一键登录
## 1.0.3(2023-11-23) ## 1.0.3(2023-11-23)
......
<template> <template>
<view class="popup-root" v-if="isOpen" v-show="isShow" @click="clickMask"> <view class="popup-root" v-if="isOpen" v-show="isShow" @click="clickMask">
<view class="popup-container" @click.stop> <view @click.stop>
<slot></slot> <slot></slot>
</view> </view>
</view> </view>
...@@ -87,7 +87,4 @@ ...@@ -87,7 +87,4 @@
align-items: center; align-items: center;
z-index: 99; z-index: 99;
} }
.popup-container {
margin-top: -120px;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册