Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
31b1cb91
U
uni-starter
项目概览
DCloud
/
uni-starter
通知
4666
Star
228
Fork
210
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
You need to sign in or sign up before continuing.
提交
31b1cb91
编写于
2月 01, 2023
作者:
DCloud_JSON
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v2' of
https://gitcode.net/dcloud/uni-starter
into v2
上级
78d4c177
a3872614
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
147 addition
and
76 deletion
+147
-76
uni_modules/uni-badge/changelog.md
uni_modules/uni-badge/changelog.md
+2
-0
uni_modules/uni-badge/components/uni-badge/uni-badge.vue
uni_modules/uni-badge/components/uni-badge/uni-badge.vue
+4
-4
uni_modules/uni-badge/package.json
uni_modules/uni-badge/package.json
+1
-1
uni_modules/uni-easyinput/changelog.md
uni_modules/uni-easyinput/changelog.md
+2
-0
uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue
.../uni-easyinput/components/uni-easyinput/uni-easyinput.vue
+12
-1
uni_modules/uni-easyinput/package.json
uni_modules/uni-easyinput/package.json
+1
-1
uni_modules/uni-id-pages/changelog.md
uni_modules/uni-id-pages/changelog.md
+5
-0
uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue
...es/components/uni-id-pages-avatar/uni-id-pages-avatar.vue
+9
-2
uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue
...ponents/uni-id-pages-fab-login/uni-id-pages-fab-login.vue
+33
-21
uni_modules/uni-id-pages/package.json
uni_modules/uni-id-pages/package.json
+1
-1
uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue
uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue
+38
-24
uni_modules/uni-list/changelog.md
uni_modules/uni-list/changelog.md
+4
-2
uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue
...dules/uni-list/components/uni-list-chat/uni-list-chat.vue
+30
-15
uni_modules/uni-list/components/uni-list-item/uni-list-item.vue
...dules/uni-list/components/uni-list-item/uni-list-item.vue
+4
-3
uni_modules/uni-list/package.json
uni_modules/uni-list/package.json
+1
-1
未找到文件。
uni_modules/uni-badge/changelog.md
浏览文件 @
31b1cb91
## 1.2.2(2023-01-28)
-
修复 运行/打包 控制台警告问题
## 1.2.1(2022-09-05)
-
修复 当 text 超过 max-num 时,badge 的宽度计算是根据 text 的长度计算,更改为 css 计算实际展示宽度,详见:
[
https://ask.dcloud.net.cn/question/150473
](
https://ask.dcloud.net.cn/question/150473
)
## 1.2.0(2021-11-19)
...
...
uni_modules/uni-badge/components/uni-badge/uni-badge.vue
浏览文件 @
31b1cb91
...
...
@@ -21,7 +21,7 @@
* @value error 红色
* @property {String} inverted = [true|false] 是否无需背景颜色
* @property {Number} maxNum 展示封顶的数字值,超过 99 显示 99+
* @property {String} absolute = [rightTop|rightBottom|leftBottom|leftTop] 开启绝对定位, 角标将定位到其包裹的标签的四角上
* @property {String} absolute = [rightTop|rightBottom|leftBottom|leftTop] 开启绝对定位, 角标将定位到其包裹的标签的四角上
* @value rightTop 右上
* @value rightBottom 右下
* @value leftTop 左上
...
...
@@ -191,12 +191,13 @@
/* #ifndef APP-NVUE */
display
:
flex
;
overflow
:
hidden
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
font-feature-settings
:
"tnum"
;
min-width
:
20px
;
/* #endif */
justify-content
:
center
;
flex-direction
:
row
;
height
:
20px
;
min-width
:
20px
;
padding
:
0
4px
;
line-height
:
18px
;
color
:
#fff
;
...
...
@@ -206,7 +207,6 @@
border
:
1px
solid
#fff
;
text-align
:
center
;
font-family
:
'Helvetica Neue'
,
Helvetica
,
sans-serif
;
font-feature-settings
:
"tnum"
;
font-size
:
$bage-size
;
/* #ifdef H5 */
z-index
:
999
;
...
...
uni_modules/uni-badge/package.json
浏览文件 @
31b1cb91
{
"id"
:
"uni-badge"
,
"displayName"
:
"uni-badge 数字角标"
,
"version"
:
"1.2.
1
"
,
"version"
:
"1.2.
2
"
,
"description"
:
"数字角标(徽章)组件,在元素周围展示消息提醒,一般用于列表、九宫格、按钮等地方。"
,
"keywords"
:
[
""
,
...
...
uni_modules/uni-easyinput/changelog.md
浏览文件 @
31b1cb91
## 1.1.6(2023-01-28)
-
新增 keyboardheightchange 事件,可监听键盘高度变化
## 1.1.5(2022-11-29)
-
优化 主题样式
## 1.1.4(2022-10-27)
...
...
uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue
浏览文件 @
31b1cb91
...
...
@@ -19,6 +19,7 @@
@blur="_Blur"
@focus="_Focus"
@confirm="onConfirm"
@keyboardheightchange="onkeyboardheightchange"
>
</textarea>
<input
v-else
...
...
@@ -39,6 +40,7 @@
@
blur=
"_Blur"
@
input=
"onInput"
@
confirm=
"onConfirm"
@
keyboardheightchange=
"onkeyboardheightchange"
/>
<template
v-if=
"type === 'password' && passwordIcon"
>
<!-- 开启密码时显示小眼睛 -->
...
...
@@ -339,7 +341,7 @@ export default {
init
()
{
if
(
this
.
value
||
this
.
value
===
0
)
{
this
.
val
=
this
.
value
;
}
else
if
(
this
.
modelValue
||
this
.
modelValue
===
0
)
{
}
else
if
(
this
.
modelValue
||
this
.
modelValue
===
0
||
this
.
modelValue
===
''
)
{
this
.
val
=
this
.
modelValue
;
}
else
{
this
.
val
=
null
;
...
...
@@ -456,6 +458,15 @@ export default {
this
.
$emit
(
'
clear
'
);
},
/**
* 键盘高度发生变化的时候触发此事件
* 兼容性:微信小程序2.7.0+、App 3.1.0+
* @param {Object} event
*/
onkeyboardheightchange
(
event
)
{
this
.
$emit
(
"
keyboardheightchange
"
,
event
);
},
/**
* 去除空格
*/
...
...
uni_modules/uni-easyinput/package.json
浏览文件 @
31b1cb91
{
"id"
:
"uni-easyinput"
,
"displayName"
:
"uni-easyinput 增强输入框"
,
"version"
:
"1.1.
5
"
,
"version"
:
"1.1.
6
"
,
"description"
:
"Easyinput 组件是对原生input组件的增强"
,
"keywords"
:
[
"uni-ui"
,
...
...
uni_modules/uni-id-pages/changelog.md
浏览文件 @
31b1cb91
## 1.1.0(2023-01-31)
-
【重要】优化 小程序端资源包大小(运行时大小为:731KB,发行后为:583KB;注:可以直接将本插件作为分包使用)
-
更新 微信小程序端 上传头像功能 用
`wx.cropImage`
实现图片裁剪
-
修复 选择一键登录时会先显示 非密码登录页面的问题
-
修复 一键登录 点击右上角的关闭按钮没有返回上一页的问题
## 1.0.41(2023-01-16)
-
优化 压缩依赖的文件资源大小
## 1.0.40(2023-01-16)
...
...
uni_modules/uni-id-pages/components/uni-id-pages-avatar/uni-id-pages-avatar.vue
浏览文件 @
31b1cb91
...
...
@@ -122,8 +122,15 @@
callback
(
res
.
tempFilePath
)
},
fail
(
e
){
console
.
error
(
e
)
callback
(
filePath
)
console
.
error
(
e
)
uni
.
showModal
({
content
:
'
wx.cropImage
'
+
e
.
errMsg
,
showCancel
:
false
,
confirmText
:
"
跳过裁剪
"
,
complete
()
{
callback
(
filePath
)
}
});
}
})
// #endif
...
...
uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue
浏览文件 @
31b1cb91
...
...
@@ -2,7 +2,7 @@
<view>
<view
class=
"fab-login-box"
>
<view
class=
"item"
v-for=
"(item,index) in servicesList"
:key=
"index"
@
click=
"item.path?
navigateTo
(item.path):login_before(item.id,false)"
>
@
click=
"item.path?
toPage
(item.path):login_before(item.id,false)"
>
<image
class=
"logo"
:src=
"item.logo"
mode=
"scaleToFill"
></image>
<text
class=
"login-title"
>
{{
item
.
text
}}
</text>
</view>
...
...
@@ -17,7 +17,6 @@
//前一个窗口的页面地址。控制点击切换快捷登录方式是创建还是返回
import
{
store
,
mutations
}
from
'
@/uni_modules/uni-id-pages/common/store.js
'
let
allServicesList
=
[]
export
default
{
computed
:
{
agreements
()
{
...
...
@@ -66,6 +65,7 @@
"
text
"
:
"
微信登录
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/login/uni-fab-login/weixin.png
"
,
},
// #ifndef MP-WEIXIN
{
"
id
"
:
"
apple
"
,
"
text
"
:
"
苹果登录
"
,
...
...
@@ -111,6 +111,7 @@
"
text
"
:
"
新浪微博
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/sinaweibo.png
"
,
}
// #endif
],
univerifyStyle
:
{
//一键登录弹出窗的样式配置参数
"
fullScreen
"
:
true
,
// 是否全屏显示,true表示全屏模式,false表示非全屏模式,默认值为false。
...
...
@@ -203,17 +204,18 @@
}
return
'
/
'
+
pages
[
pages
.
length
-
n
].
route
},
navigateTo
(
path
)
{
toPage
(
path
,
index
=
0
)
{
let
type
=
[
'
navigateTo
'
,
'
redirectTo
'
][
index
]
//console.log('比较', this.getRoute(1),this.getRoute(2), path)
if
(
this
.
getRoute
(
1
)
==
path
.
split
(
'
?
'
)[
0
]
&&
this
.
getRoute
(
1
)
==
'
/uni_modules/uni-id-pages/pages/login/login-withoutpwd
'
)
{
//如果要被打开的页面已经打开,且这个页面是 /uni_modules/uni-id-pages/pages/index/index 则把类型参数传给他
let
t
ype
=
path
.
split
(
'
?
'
)[
1
].
split
(
'
=
'
)[
1
]
uni
.
$emit
(
'
uni-id-pages-set
-login-type
'
,
t
ype
)
let
loginT
ype
=
path
.
split
(
'
?
'
)[
1
].
split
(
'
=
'
)[
1
]
uni
.
$emit
(
'
uni-id-pages-set
LoginType
'
,
loginT
ype
)
}
else
if
(
this
.
getRoute
(
2
)
==
path
)
{
// 如果上一个页面就是,马上要打开的页面,直接返回。防止重复开启
uni
.
navigateBack
();
}
else
if
(
this
.
getRoute
(
1
)
!=
path
)
{
uni
.
navigateTo
({
uni
[
type
]
({
url
:
path
,
animationType
:
'
slide-in-left
'
,
complete
(
e
)
{
...
...
@@ -238,7 +240,7 @@
].
includes
(
type
))
{
return
uni
.
showToast
({
title
:
'
该登录方式暂未实现,欢迎提交pr
'
,
icon
:
'
none
'
,
icon
:
'
none
'
,
duration
:
3000
});
}
...
...
@@ -255,7 +257,7 @@
}
else
{
return
uni
.
showToast
({
title
:
'
当前设备不支持此登录,请选择其他登录方式
'
,
icon
:
'
none
'
,
icon
:
'
none
'
,
duration
:
3000
});
}
...
...
@@ -278,7 +280,7 @@
)
{
return
uni
.
showToast
({
title
:
'
当前设备不支持此登录,请选择其他登录方式
'
,
icon
:
'
none
'
,
icon
:
'
none
'
,
duration
:
3000
});
}
...
...
@@ -321,18 +323,24 @@
uni
.
showLoading
({
mask
:
true
})
if
(
type
==
'
univerify
'
)
{
let
univerifyManager
=
uni
.
getUniverifyManager
()
let
clickAnotherButtons
=
false
let
onButtonsClickFn
=
async
res
=>
{
// console.log('点击了第三方登录,provider:', res, res.provider, this.univerifyStyle.buttons.list);
//同步一键登录弹出层隐私协议框是否打勾
console
.
log
(
'
点击了第三方登录,provider:
'
,
res
,
res
.
provider
,
this
.
univerifyStyle
.
buttons
.
list
);
clickAnotherButtons
=
true
// 同步一键登录弹出层隐私协议框是否打勾
let
agree
=
(
await
uni
.
getCheckBoxState
())[
1
].
state
this
.
agree
=
agree
let
{
path
}
=
this
.
univerifyStyle
.
buttons
.
list
[
res
.
index
]
if
(
path
)
{
this
.
navigateTo
(
path
)
if
(
path
)
{
if
(
this
.
getRoute
(
1
).
includes
(
'
login-withoutpwd
'
)
&&
path
.
includes
(
'
login-withoutpwd
'
)
){
this
.
getParentComponent
().
showCurrentWebview
()
}
this
.
toPage
(
path
,
1
)
closeUniverify
()
}
else
{
if
(
agree
)
{
...
...
@@ -343,7 +351,7 @@
}
else
{
uni
.
showToast
({
title
:
"
你未同意隐私政策协议
"
,
icon
:
'
none
'
,
icon
:
'
none
'
,
duration
:
3000
});
}
...
...
@@ -365,16 +373,20 @@
this
.
login
(
res
.
authResult
,
'
univerify
'
)
},
fail
(
err
)
{
uni
.
showToast
({
title
:
JSON
.
stringify
(
err
),
icon
:
'
none
'
,
duration
:
3000
});
console
.
log
(
err
)
if
(
!
clickAnotherButtons
){
uni
.
navigateBack
()
}
// uni.showToast({
// title: JSON.stringify(err),
// icon: 'none',
// duration: 3000
// });
},
complete
:
async
e
=>
{
uni
.
hideLoading
()
//同步一键登录弹出层隐私协议框是否打勾
this
.
agree
=
(
await
uni
.
getCheckBoxState
())[
1
].
state
//
this.agree = (await uni.getCheckBoxState())[1].state
// 取消订阅自定义按钮点击事件
univerifyManager
.
offButtonsClick
(
onButtonsClickFn
)
}
...
...
@@ -422,7 +434,7 @@
uniIdCo
[
action
](
params
).
then
(
result
=>
{
uni
.
showToast
({
title
:
'
登录成功
'
,
icon
:
'
none
'
,
icon
:
'
none
'
,
duration
:
2000
});
// #ifdef MP-WEIXIN
...
...
uni_modules/uni-id-pages/package.json
浏览文件 @
31b1cb91
{
"id"
:
"uni-id-pages"
,
"displayName"
:
"uni-id-pages"
,
"version"
:
"1.
0.41
"
,
"version"
:
"1.
1.0
"
,
"description"
:
"云端一体简单、统一、可扩展的用户中心页面模版"
,
"keywords"
:
[
"用户管理"
,
...
...
uni_modules/uni-id-pages/pages/login/login-withoutpwd.vue
浏览文件 @
31b1cb91
...
...
@@ -10,8 +10,10 @@
<template
v-if=
"['apple','weixin', 'weixinMobile'].includes(type)"
>
<text
class=
"tip"
>
将根据第三方账号服务平台的授权范围获取你的信息
</text>
<view
class=
"quickLogin"
>
<image
v-if=
"type !== 'weixinMobile'"
@
click=
"quickLogin"
:src=
"imgSrc"
mode=
"widthFix"
class=
"quickLoginBtn"
></image>
<button
v-else
type=
"primary"
open-type=
"getPhoneNumber"
@
getphonenumber=
"quickLogin"
class=
"uni-btn"
>
微信授权手机号登录
</button>
<image
v-if=
"type !== 'weixinMobile'"
@
click=
"quickLogin"
:src=
"imgSrc"
mode=
"widthFix"
class=
"quickLoginBtn"
></image>
<button
v-else
type=
"primary"
open-type=
"getPhoneNumber"
@
getphonenumber=
"quickLogin"
class=
"uni-btn"
>
微信授权手机号登录
</button>
<uni-id-pages-agreements
scope=
"register"
ref=
"agreements"
></uni-id-pages-agreements>
</view>
</
template
>
...
...
@@ -19,8 +21,8 @@
<text
class=
"tip"
>
未注册的账号验证通过后将自动注册
</text>
<view
class=
"phone-box"
>
<view
@
click=
"chooseArea"
class=
"area"
>
+86
</view>
<uni-easyinput
:focus=
"focusPhone"
@
blur=
"focusPhone = false"
class=
"input-box"
type=
"number"
:inputBorder=
"false"
v-model=
"phone"
maxlength=
"11"
placeholder=
"请输入手机号"
/>
<uni-easyinput
:focus=
"focusPhone"
@
blur=
"focusPhone = false"
class=
"input-box"
type=
"number"
:inputBorder=
"false"
v-model=
"phone"
maxlength=
"11"
placeholder=
"请输入手机号"
/>
</view>
<uni-id-pages-agreements
scope=
"register"
ref=
"agreements"
></uni-id-pages-agreements>
<button
class=
"uni-btn"
type=
"primary"
@
click=
"toSmsPage"
>
获取验证码
</button>
...
...
@@ -40,7 +42,7 @@
return
{
type
:
""
,
//快捷登录方式
phone
:
""
,
//手机号码
focusPhone
:
false
,
focusPhone
:
false
,
logo
:
"
/static/logo.png
"
}
},
...
...
@@ -52,24 +54,27 @@
return
/^1
\d{10}
$/
.
test
(
this
.
phone
);
},
imgSrc
()
{
//大快捷登录按钮图
return
this
.
type
==
'
weixin
'
?
'
/uni_modules/uni-id-pages/static/login/weixin.png
'
:
'
/uni_modules/uni-id-pages/static/app-plus/apple.png
'
return
this
.
type
==
'
weixin
'
?
'
/uni_modules/uni-id-pages/static/login/weixin.png
'
:
'
/uni_modules/uni-id-pages/static/app-plus/apple.png
'
}
},
async
onLoad
(
e
)
{
//获取通过url传递的参数type设置当前登录方式,如果没传递直接默认以配置的登录
let
type
=
e
.
type
||
config
.
loginTypes
[
0
]
this
.
type
=
type
// console.log("this.type: -----------",this.type);
if
(
type
!=
'
univerify
'
)
{
if
(
type
!=
'
univerify
'
)
{
this
.
focusPhone
=
true
}
this
.
$nextTick
(()
=>
{
//关闭重复显示的登录快捷方式
if
([
'
weixin
'
,
'
apple
'
].
includes
(
type
))
{
this
.
$refs
.
uniFabLogin
.
servicesList
=
this
.
$refs
.
uniFabLogin
.
servicesList
.
filter
(
item
=>
item
.
id
!=
type
)
this
.
$refs
.
uniFabLogin
.
servicesList
=
this
.
$refs
.
uniFabLogin
.
servicesList
.
filter
(
item
=>
item
.
id
!=
type
)
}
})
uni
.
$on
(
'
uni-id-pages-set
-login-t
ype
'
,
type
=>
{
uni
.
$on
(
'
uni-id-pages-set
LoginT
ype
'
,
type
=>
{
this
.
type
=
type
})
},
...
...
@@ -84,29 +89,38 @@
// #endif
},
onUnload
()
{
uni
.
$off
(
'
uni-id-pages-set
-login-t
ype
'
)
uni
.
$off
(
'
uni-id-pages-set
LoginT
ype
'
)
},
onReady
()
{
//是否优先启动一键登录。即:页面一加载就启动一键登录
//
是否优先启动一键登录。即:页面一加载就启动一键登录
//#ifdef APP-PLUS
if
(
this
.
type
==
"
univerify
"
)
{
const
pages
=
getCurrentPages
();
currentWebview
=
pages
[
pages
.
length
-
1
].
$getAppWebview
();
currentWebview
.
setStyle
({
"
top
"
:
"
2000px
"
// 隐藏当前页面窗体
})
this
.
type
==
this
.
loginTypes
[
1
]
// console.log('开始一键登录');
setTimeout
(()
=>
{
this
.
$refs
.
uniFabLogin
.
login_before
(
'
univerify
'
)
},
100
)
this
.
$refs
.
uniFabLogin
.
login_before
(
'
univerify
'
)
}
//#endif
},
methods
:
{
showCurrentWebview
(){
// 恢复当前页面窗体的显示 一键登录,默认不显示当前窗口
currentWebview
.
setStyle
({
"
top
"
:
0
})
},
quickLogin
(
e
)
{
let
options
=
{}
let
options
=
{}
if
(
e
.
detail
?.
code
)
{
options
.
phoneNumberCode
=
e
.
detail
.
code
}
if
(
e
.
detail
?.
code
)
{
options
.
phoneNumberCode
=
e
.
detail
.
code
}
if
(
this
.
type
===
'
weixinMobile
'
&&
!
e
.
detail
?.
code
)
return
if
(
this
.
type
===
'
weixinMobile
'
&&
!
e
.
detail
?.
code
)
return
this
.
$refs
.
uniFabLogin
.
login_before
(
this
.
type
,
true
,
options
)
},
...
...
@@ -146,13 +160,13 @@
<
style
lang=
"scss"
scoped
>
@import
"@/uni_modules/uni-id-pages/common/login-page.scss"
;
@media
screen
and
(
min-width
:
690px
)
{
.uni-content
{
.uni-content
{
height
:
350px
;
}
}
.uni-content
,
.quickLogin
{
/* #ifndef APP-NVUE */
...
...
@@ -184,7 +198,7 @@
left
:
3px
;
position
:
relative
;
}
/* #ifdef MP */
// 解决小程序端开启虚拟节点virtualHost引起的 class = input-box丢失的问题 [详情参考](https://uniapp.dcloud.net.cn/matter.html#%E5%90%84%E5%AE%B6%E5%B0%8F%E7%A8%8B%E5%BA%8F%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6%E4%B8%8D%E5%90%8C-%E5%8F%AF%E8%83%BD%E5%AD%98%E5%9C%A8%E7%9A%84%E5%B9%B3%E5%8F%B0%E5%85%BC%E5%AE%B9%E9%97%AE%E9%A2%98)
.
phone-box
:
:
v-deep
.
uni-easyinput__content
,
...
...
@@ -220,7 +234,7 @@
}
@media
screen
and
(
min-width
:
690px
)
{
.quickLogin
{
.quickLogin
{
height
:
auto
;
}
}
...
...
uni_modules/uni-list/changelog.md
浏览文件 @
31b1cb91
## 1.2.10(2022-11-23)
修复 uni-list-item 组件 keep-scroll-position 属性 无法设置为false的错误
## 1.2.12(2023-02-01)
-
新增 列表图标新增 customPrefix 属性 ,用法
[
详见
](
https://uniapp.dcloud.net.cn/component/uniui/uni-icons.html#icons-props
)
## 1.2.11(2023-01-31)
-
修复 无反馈效果呈现的bug
## 1.2.9(2022-11-22)
-
修复 uni-list-chat 在vue3下跳转报错的bug
## 1.2.8(2022-11-21)
...
...
uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue
浏览文件 @
31b1cb91
...
...
@@ -223,21 +223,36 @@
this
.
pageApi
(
'
navigateTo
'
);
}
},
pageApi
(
api
)
{
uni
[
api
]({
url
:
this
.
to
,
success
:
res
=>
{
this
.
$emit
(
'
click
'
,
{
data
:
res
});
},
fail
:
err
=>
{
this
.
$emit
(
'
click
'
,
{
data
:
err
});
console
.
error
(
err
.
errMsg
);
}
});
pageApi
(
api
)
{
let
callback
=
{
url
:
this
.
to
,
success
:
res
=>
{
this
.
$emit
(
'
click
'
,
{
data
:
res
});
},
fail
:
err
=>
{
this
.
$emit
(
'
click
'
,
{
data
:
err
});
}
}
switch
(
api
)
{
case
'
navigateTo
'
:
uni
.
navigateTo
(
callback
)
break
case
'
redirectTo
'
:
uni
.
redirectTo
(
callback
)
break
case
'
reLaunch
'
:
uni
.
reLaunch
(
callback
)
break
case
'
switchTab
'
:
uni
.
switchTab
(
callback
)
break
default
:
uni
.
navigateTo
(
callback
)
}
}
}
};
...
...
uni_modules/uni-list/components/uni-list-item/uni-list-item.vue
浏览文件 @
31b1cb91
...
...
@@ -15,7 +15,7 @@
<image
:src=
"thumb"
class=
"uni-list-item__icon-img"
:class=
"['uni-list--' + thumbSize]"
/>
</view>
<view
v-else-if=
"showExtraIcon"
class=
"uni-list-item__icon"
>
<uni-icons
:color=
"extraIcon.color"
:size=
"extraIcon.size"
:type=
"extraIcon.type"
/>
<uni-icons
:c
ustomPrefix=
"extraIcon.customPrefix"
:c
olor=
"extraIcon.color"
:size=
"extraIcon.size"
:type=
"extraIcon.type"
/>
</view>
</view>
</slot>
...
...
@@ -167,7 +167,8 @@
return
{
type
:
''
,
color
:
'
#000000
'
,
size
:
20
size
:
20
,
customPrefix
:
''
};
}
},
...
...
@@ -348,7 +349,7 @@
}
.uni-list-item--hover
{
background-color
:
$uni-bg-color-hover
;
background-color
:
$uni-bg-color-hover
!
important
;
}
.uni-list-item__container
{
...
...
uni_modules/uni-list/package.json
浏览文件 @
31b1cb91
{
"id"
:
"uni-list"
,
"displayName"
:
"uni-list 列表"
,
"version"
:
"1.2.1
0
"
,
"version"
:
"1.2.1
2
"
,
"description"
:
"List 组件 ,帮助使用者快速构建列表。"
,
"keywords"
:
[
""
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录