Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
vk-uni
vk-uview-ui
提交
e76b857b
vk-uview-ui
项目概览
vk-uni
/
vk-uview-ui
9 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
vk-uview-ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e76b857b
编写于
10月 20, 2022
作者:
抓蛙师
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
检查修改1.8.7版本遗漏的地方
上级
c4bd24d1
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
96 addition
and
80 deletion
+96
-80
uni_modules/vk-uview-ui/components/u-badge/u-badge.vue
uni_modules/vk-uview-ui/components/u-badge/u-badge.vue
+17
-17
uni_modules/vk-uview-ui/components/u-calendar/u-calendar.vue
uni_modules/vk-uview-ui/components/u-calendar/u-calendar.vue
+27
-27
uni_modules/vk-uview-ui/components/u-card/u-card.vue
uni_modules/vk-uview-ui/components/u-card/u-card.vue
+10
-10
uni_modules/vk-uview-ui/components/u-collapse-item/u-collapse-item.vue
...k-uview-ui/components/u-collapse-item/u-collapse-item.vue
+4
-3
uni_modules/vk-uview-ui/components/u-image/u-image.vue
uni_modules/vk-uview-ui/components/u-image/u-image.vue
+2
-0
uni_modules/vk-uview-ui/components/u-input/u-input.vue
uni_modules/vk-uview-ui/components/u-input/u-input.vue
+10
-1
uni_modules/vk-uview-ui/components/u-loading/u-loading.vue
uni_modules/vk-uview-ui/components/u-loading/u-loading.vue
+5
-5
uni_modules/vk-uview-ui/components/u-message-input/u-message-input.vue
...k-uview-ui/components/u-message-input/u-message-input.vue
+4
-4
uni_modules/vk-uview-ui/components/u-notice-bar/u-notice-bar.vue
...ules/vk-uview-ui/components/u-notice-bar/u-notice-bar.vue
+2
-2
uni_modules/vk-uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue
...es/vk-uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue
+3
-3
uni_modules/vk-uview-ui/components/u-tabs/u-tabs.vue
uni_modules/vk-uview-ui/components/u-tabs/u-tabs.vue
+3
-3
uni_modules/vk-uview-ui/components/u-toast/u-toast.vue
uni_modules/vk-uview-ui/components/u-toast/u-toast.vue
+2
-2
uni_modules/vk-uview-ui/components/u-upload/u-upload.vue
uni_modules/vk-uview-ui/components/u-upload/u-upload.vue
+7
-3
未找到文件。
uni_modules/vk-uview-ui/components/u-badge/u-badge.vue
浏览文件 @
e76b857b
<
template
>
<view
v-if=
"show"
class=
"u-badge"
:class=
"[
isDot ? 'u-badge-dot' : '',
isDot ? 'u-badge-dot' : '',
size == 'mini' ? 'u-badge-mini' : '',
type ? 'u-badge--bg--' + type : ''
]"
:style=
"[
{
...
...
@@ -113,7 +113,7 @@
style
.
right
=
this
.
offset
[
1
]
+
'
rpx
'
;
style
.
transform
=
"
translateY(0) translateX(0)
"
;
}
// 如果尺寸为mini,后接上scal()
// 如果尺寸为mini,后接上scal
e
()
if
(
this
.
size
==
'
mini
'
)
{
style
.
transform
=
style
.
transform
+
"
scale(0.8)
"
;
}
...
...
@@ -139,7 +139,7 @@
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-badge
{
/* #ifndef APP-NVUE */
display
:
inline-flex
;
...
...
@@ -150,67 +150,67 @@
padding
:
4rpx
8rpx
;
border-radius
:
100rpx
;
z-index
:
9
;
&
--bg--primary
{
background-color
:
$u-type-primary
;
}
&
--bg--error
{
background-color
:
$u-type-error
;
}
&
--bg--success
{
background-color
:
$u-type-success
;
}
&
--bg--info
{
background-color
:
$u-type-info
;
}
&
--bg--warning
{
background-color
:
$u-type-warning
;
}
}
.u-badge-dot
{
height
:
16rpx
;
width
:
16rpx
;
border-radius
:
100rpx
;
line-height
:
1
;
}
.u-badge-mini
{
transform
:
scale
(
0
.8
);
transform-origin
:
center
center
;
}
// .u-primary {
// background: $u-type-primary;
// color: #fff;
// }
// .u-error {
// background: $u-type-error;
// color: #fff;
// }
// .u-warning {
// background: $u-type-warning;
// color: #fff;
// }
// .u-success {
// background: $u-type-success;
// color: #fff;
// }
// .u-black {
// background: #585858;
// color: #fff;
// }
.u-info
{
background-color
:
$u-type-info
;
color
:
#fff
;
}
</
style
>
\ No newline at end of file
</
style
>
uni_modules/vk-uview-ui/components/u-calendar/u-calendar.vue
浏览文件 @
e76b857b
...
...
@@ -68,8 +68,8 @@
* @property {Boolean} change-year 是否显示顶部的切换年份方向的按钮(默认true)
* @property {Boolean} change-month 是否显示顶部的切换月份方向的按钮(默认true)
* @property {String Number} max-year 可切换的最大年份(默认2050)
* @property {String Number} min-year
最小可选日期
(默认1950)
* @property {String Number} min-date
可切换的最小年份
(默认1950-01-01)
* @property {String Number} min-year
可切换的最小年份
(默认1950)
* @property {String Number} min-date
最小可选日期
(默认1950-01-01)
* @property {String Number} max-date 最大可选日期(默认当前日期)
* @property {String Number} 弹窗顶部左右两边的圆角值,单位rpx(默认20)
* @property {Boolean} mask-close-able 是否允许通过点击遮罩关闭日历(默认true)
...
...
@@ -88,7 +88,7 @@
* @property {Boolean} closeable 是否显示右上角的关闭图标(默认true)
* @example <u-calendar v-model="show" :mode="mode"></u-calendar>
*/
export
default
{
name
:
'
u-calendar
'
,
emits
:
[
"
update:modelValue
"
,
"
input
"
,
"
change
"
],
...
...
@@ -189,7 +189,7 @@
rangeBgColor
:
{
type
:
String
,
default
:
'
rgba(41,121,255,0.13)
'
},
},
// 范围内日期字体颜色
rangeColor
:
{
type
:
String
,
...
...
@@ -240,10 +240,10 @@
return
{
popupValue
:
false
,
// 星期几,值为1-7
weekday
:
1
,
weekday
:
1
,
weekdayArr
:[],
// 当前月有多少天
days
:
0
,
days
:
0
,
daysArr
:[],
showTitle
:
''
,
year
:
2020
,
...
...
@@ -270,7 +270,7 @@
// #ifndef VUE3
return
this
.
value
;
// #endif
// #ifdef VUE3
return
this
.
modelValue
;
// #endif
...
...
@@ -512,17 +512,17 @@
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-calendar
{
color
:
$u-content-color
;
&
__header
{
width
:
100%
;
box-sizing
:
border-box
;
font-size
:
30rpx
;
background-color
:
#fff
;
color
:
$u-main-color
;
&
__text
{
margin-top
:
30rpx
;
padding
:
0
60rpx
;
...
...
@@ -531,14 +531,14 @@
align-items
:
center
;
}
}
&
__action
{
padding
:
40rpx
0
40rpx
0
;
&
__icon
{
margin
:
0
16rpx
;
}
&
__text
{
padding
:
0
16rpx
;
color
:
$u-main-color
;
...
...
@@ -547,20 +547,20 @@
font-weight
:
bold
;
}
}
&
__week-day
{
@include
vue-flex
;
align-items
:
center
;
justify-content
:
center
;
padding
:
6px
0
;
overflow
:
hidden
;
&
__text
{
flex
:
1
;
text-align
:
center
;
}
}
&
__content
{
width
:
100%
;
@include
vue-flex
;
...
...
@@ -569,17 +569,17 @@
box-sizing
:
border-box
;
background-color
:
#fff
;
position
:
relative
;
&
--end-date
{
border-top-right-radius
:
8rpx
;
border-bottom-right-radius
:
8rpx
;
}
&
--start-date
{
border-top-left-radius
:
8rpx
;
border-bottom-left-radius
:
8rpx
;
}
&
__item
{
width
:
14
.2857%
;
@include
vue-flex
;
...
...
@@ -589,7 +589,7 @@
overflow
:
hidden
;
position
:
relative
;
z-index
:
2
;
&
__inner
{
height
:
84rpx
;
@include
vue-flex
;
...
...
@@ -599,7 +599,7 @@
font-size
:
32rpx
;
position
:
relative
;
border-radius
:
50%
;
&
__desc
{
width
:
100%
;
font-size
:
24rpx
;
...
...
@@ -612,7 +612,7 @@
bottom
:
2rpx
;
}
}
&
__tips
{
width
:
100%
;
font-size
:
24rpx
;
...
...
@@ -626,7 +626,7 @@
z-index
:
2
;
}
}
&
__bg-month
{
position
:
absolute
;
font-size
:
130px
;
...
...
@@ -638,7 +638,7 @@
z-index
:
1
;
}
}
&
__bottom
{
width
:
100%
;
@include
vue-flex
;
...
...
@@ -650,14 +650,14 @@
box-sizing
:
border-box
;
font-size
:
24rpx
;
color
:
$u-tips-color
;
&
__choose
{
height
:
50rpx
;
}
&
__btn
{
width
:
100%
;
}
}
}
</
style
>
\ No newline at end of file
</
style
>
uni_modules/vk-uview-ui/components/u-card/u-card.vue
浏览文件 @
e76b857b
...
...
@@ -23,12 +23,12 @@
<image
:src=
"thumb"
class=
"u-card__head--left__thumb"
mode=
"aspect
fu
ll"
mode=
"aspect
Fi
ll"
v-if=
"thumb"
:style=
"
{
height: thumbWidth + 'rpx',
width: thumbWidth + 'rpx',
borderRadius: thumbCircle ? '100rpx' : '6rpx'
:style=
"
{
height: thumbWidth + 'rpx',
width: thumbWidth + 'rpx',
borderRadius: thumbCircle ? '100rpx' : '6rpx'
}"
>
</image>
<text
...
...
@@ -251,21 +251,21 @@ export default {
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-card
{
position
:
relative
;
overflow
:
hidden
;
font-size
:
28rpx
;
background-color
:
#ffffff
;
box-sizing
:
border-box
;
&
-full
{
// 如果是与屏幕之间不留空隙,应该设置左右边距为0
margin-left
:
0
!
important
;
margin-right
:
0
!
important
;
width
:
100%
;
}
&
--border
:after
{
border-radius
:
16rpx
;
}
...
...
@@ -273,11 +273,11 @@ export default {
&
__head
{
&
--left
{
color
:
$u-main-color
;
&
__thumb
{
margin-right
:
16rpx
;
}
&
__title
{
max-width
:
400rpx
;
}
...
...
uni_modules/vk-uview-ui/components/u-collapse-item/u-collapse-item.vue
浏览文件 @
e76b857b
...
...
@@ -92,7 +92,7 @@
arrowColor
:
''
,
// 箭头的颜色
hoverClass
:
''
,
// 头部按下时的效果样式类
arrow
:
true
,
// 是否显示右侧箭头
};
},
watch
:
{
...
...
@@ -111,7 +111,8 @@
this
.
parent
=
this
.
$u
.
$parent
.
call
(
this
,
'
u-collapse
'
);
if
(
this
.
parent
)
{
this
.
nameSync
=
this
.
name
?
this
.
name
:
this
.
parent
.
childrens
.
length
;
this
.
parent
.
childrens
.
push
(
this
);
// 不存在时才添加本实例
!
this
.
parent
.
childrens
.
includes
(
this
)
&&
this
.
parent
.
childrens
.
push
(
this
);
this
.
headStyle
=
this
.
parent
.
headStyle
;
this
.
bodyStyle
=
this
.
parent
.
bodyStyle
;
this
.
arrowColor
=
this
.
parent
.
arrowColor
;
...
...
@@ -162,7 +163,7 @@
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-collapse-head
{
position
:
relative
;
@include
vue-flex
;
...
...
uni_modules/vk-uview-ui/components/u-image/u-image.vue
浏览文件 @
e76b857b
...
...
@@ -8,6 +8,7 @@
@
load=
"onLoadHandler"
:lazy-load=
"lazyLoad"
class=
"u-image__image"
:show-menu-by-longpress=
"showMenuByLongpress"
:style=
"
{
borderRadius: shape == 'circle' ? '50%' : $u.addUnit(borderRadius)
}"
...
...
@@ -172,6 +173,7 @@ export default {
this
.
loading
=
false
;
}
else
{
this
.
isError
=
false
;
this
.
loading
=
true
;
}
}
}
...
...
uni_modules/vk-uview-ui/components/u-input/u-input.vue
浏览文件 @
e76b857b
...
...
@@ -28,6 +28,8 @@
:selection-end=
"uSelectionEnd"
:selection-start=
"uSelectionStart"
:cursor-spacing=
"getCursorSpacing"
:show-confirm-bar=
"showConfirmbar"
:adjust-position=
"adjustPosition"
@
input=
"handleInput"
@
blur=
"handleBlur"
@
focus=
"onFocus"
...
...
@@ -49,6 +51,8 @@
:cursor-spacing=
"getCursorSpacing"
:selection-end=
"uSelectionEnd"
:selection-start=
"uSelectionStart"
:show-confirm-bar=
"showConfirmbar"
:adjust-position=
"adjustPosition"
@
focus=
"onFocus"
@
blur=
"handleBlur"
@
input=
"handleInput"
...
...
@@ -233,6 +237,11 @@ export default {
type
:
Boolean
,
default
:
true
},
// 弹出键盘时是否自动调节高度,uni-app默认值是true
adjustPosition
:
{
type
:
Boolean
,
default
:
true
},
// input的背景色
backgroundColor
:
{
type
:
String
,
...
...
@@ -274,7 +283,7 @@ export default {
// #ifndef VUE3
return
this
.
value
;
// #endif
// #ifdef VUE3
return
this
.
modelValue
;
// #endif
...
...
uni_modules/vk-uview-ui/components/u-loading/u-loading.vue
浏览文件 @
e76b857b
...
...
@@ -53,7 +53,7 @@
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-loading-circle
{
/* #ifndef APP-NVUE */
display
:
inline-flex
;
...
...
@@ -73,7 +73,7 @@
height
:
20px
;
display
:
inline-block
;
vertical-align
:
middle
;
-webkit-animation
:
a
1s
steps
(
12
)
infinite
;
-webkit-animation
:
u-flower
1s
steps
(
12
)
infinite
;
animation
:
u-flower
1s
steps
(
12
)
infinite
;
background
:
transparent
url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=)
no-repeat
;
background-size
:
100%
;
...
...
@@ -90,17 +90,17 @@
transform
:
rotate
(
1turn
);
}
}
@keyframes
u-circle
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
to
{
-webkit-transform
:
rotate
(
1turn
);
transform
:
rotate
(
1turn
);
}
}
</
style
>
uni_modules/vk-uview-ui/components/u-message-input/u-message-input.vue
浏览文件 @
e76b857b
...
...
@@ -21,7 +21,7 @@
>
</view>
<view
v-if=
"mode === 'middleLine' && charArrLength
<
=
index
"
:class=
"[breathe && charArrLength == index ? 'u-breathe' : '', charArrLength === index ? 'u-middle-line-active' : '']"
class=
"u-middle-line"
:style=
"
{height: bold ? '4px' : '2px', background: charArrLength === index ? activeColor : inactiveColor}">
</view>
<view
v-if=
"mode === 'bottomLine'"
:class=
"[breathe && charArrLength == index ? 'u-breathe' : '', charArrLength === index ? 'u-b
u
ttom-line-active' : '']"
<view
v-if=
"mode === 'bottomLine'"
:class=
"[breathe && charArrLength == index ? 'u-breathe' : '', charArrLength === index ? 'u-b
o
ttom-line-active' : '']"
class=
"u-bottom-line"
:style=
"
{height: bold ? '4px' : '2px', background: charArrLength === index ? activeColor : inactiveColor}">
</view>
<block
v-if=
"!dotFill"
>
{{
charArr
[
index
]
?
charArr
[
index
]
:
''
}}
</block>
<block
v-else
>
...
...
@@ -130,7 +130,7 @@
// handler(val) {
// this.maxlength = Number(val);
// }
// },
// },
valueCom
:
{
immediate
:
true
,
handler
(
val
)
{
...
...
@@ -151,7 +151,7 @@
// #ifndef VUE3
return
this
.
value
;
// #endif
// #ifdef VUE3
return
this
.
modelValue
;
// #endif
...
...
@@ -310,7 +310,7 @@
transform
:
translate
(
-50%
,
-50%
);
}
.u-b
u
ttom-line-active
{
.u-b
o
ttom-line-active
{
background
:
$u-type-primary
;
}
...
...
uni_modules/vk-uview-ui/components/u-notice-bar/u-notice-bar.vue
浏览文件 @
e76b857b
...
...
@@ -68,8 +68,8 @@
* @property {String Number} font-size 字体大小,单位rpx(默认28)
* @property {Boolean} is-circular mode为horizontal时,指明是否水平衔接滚动(默认true)
* @property {String} play-state 播放状态,play - 播放,paused - 暂停(默认play)
* @property {String Nu
bm
er} border-radius 通知栏圆角(默认为0)
* @property {String Nu
bm
er} padding 内边距,字符串,与普通的内边距css写法一直(默认"18rpx 24rpx")
* @property {String Nu
mb
er} border-radius 通知栏圆角(默认为0)
* @property {String Nu
mb
er} padding 内边距,字符串,与普通的内边距css写法一直(默认"18rpx 24rpx")
* @property {Boolean} no-list-hidden 列表为空时,是否显示组件(默认false)
* @property {Boolean} disable-touch 是否禁止通过手动滑动切换通知,只有mode = vertical,或者mode = horizontal且is-circular = false时有效(默认true)
* @event {Function} click 点击通告文字触发,只有mode = vertical,或者mode = horizontal且is-circular = false时有效
...
...
uni_modules/vk-uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue
浏览文件 @
e76b857b
...
...
@@ -4,7 +4,7 @@
background: bgColor
}">
<scroll-view
scroll-x
class=
"u-scroll-view"
:scroll-left=
"scrollLeft"
scroll-with-animation
:style=
"
{ zIndex: zIndex + 1 }">
<view
class=
"u-tabs-scroll-box"
:class=
"
{'u-tabs-sc
or
ll-flex': !isScroll}">
<view
class=
"u-tabs-scroll-box"
:class=
"
{'u-tabs-sc
ro
ll-flex': !isScroll}">
<view
class=
"u-tabs-item"
:style=
"[tabItemStyle(index)]"
v-for=
"(item, index) in getTabs"
:key=
"index"
:class=
"[preId + index]"
@
tap=
"emit(index)"
>
<u-badge
:count=
"item[count] || item['count'] || 0"
:offset=
"offset"
size=
"mini"
></u-badge>
...
...
@@ -429,12 +429,12 @@
position
:
relative
;
}
.u-tabs-sc
or
ll-flex
{
.u-tabs-sc
ro
ll-flex
{
@include
vue-flex
;
justify-content
:
space-between
;
}
.u-tabs-sc
or
ll-flex
.u-tabs-item
{
.u-tabs-sc
ro
ll-flex
.u-tabs-item
{
flex
:
1
;
}
...
...
uni_modules/vk-uview-ui/components/u-tabs/u-tabs.vue
浏览文件 @
e76b857b
...
...
@@ -5,7 +5,7 @@
<!-- $u.getRect()对组件根节点无效,因为写了.in(this),故这里获取内层接点尺寸 -->
<view
:id=
"id"
>
<scroll-view
scroll-x
class=
"u-scroll-view"
:scroll-left=
"scrollLeft"
scroll-with-animation
>
<view
class=
"u-scroll-box"
:
class=
"
{'u-tabs-scor
ll-flex': !isScroll}">
<view
class=
"u-scroll-box"
:
id=
"id"
:class=
"
{'u-tabs-scro
ll-flex': !isScroll}">
<view
class=
"u-tab-item u-line-1"
:id=
"'u-tab-item-' + index"
v-for=
"(item, index) in list"
:key=
"index"
@
tap=
"clickTab(index)"
:style=
"[tabItemStyle(index)]"
>
<u-badge
:count=
"item[count] || item['count'] || 0"
:offset=
"offset"
size=
"mini"
></u-badge>
...
...
@@ -217,7 +217,7 @@
// #ifndef VUE3
return
this
.
value
;
// #endif
// #ifdef VUE3
return
this
.
modelValue
;
// #endif
...
...
@@ -392,7 +392,7 @@
bottom
:
0
;
}
.u-tabs-sc
or
ll-flex
{
.u-tabs-sc
ro
ll-flex
{
@include
vue-flex
;
justify-content
:
space-between
;
}
...
...
uni_modules/vk-uview-ui/components/u-toast/u-toast.vue
浏览文件 @
e76b857b
...
...
@@ -48,7 +48,7 @@
},
computed
:
{
iconName
()
{
// 只有不为none,并且type为error|warning|succes|info时候,才显示图标
// 只有不为none,并且type为error|warning|succes
s
|info时候,才显示图标
if
([
'
error
'
,
'
warning
'
,
'
success
'
,
'
info
'
].
indexOf
(
this
.
tmpConfig
.
type
)
>=
0
&&
this
.
tmpConfig
.
icon
)
{
let
icon
=
this
.
$u
.
type2icon
(
this
.
tmpConfig
.
type
);
return
icon
;
...
...
@@ -133,7 +133,7 @@
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-toast
{
position
:
fixed
;
z-index
:
-1
;
...
...
uni_modules/vk-uview-ui/components/u-upload/u-upload.vue
浏览文件 @
e76b857b
...
...
@@ -27,7 +27,7 @@
<u-icon
class=
"u-icon"
:name=
"successIcon"
size=
"20"
:color=
"successColor"
></u-icon>
</view>
-->
<u-line-progress
v-if=
"showProgress && item.progress > 0 &&
!item.error && item.progress
<
100
"
v-if=
"showProgress && item.progress > 0 &&
item.progress != 100 && !item.error
"
:show-percent=
"false"
height=
"16"
class=
"u-progress"
...
...
@@ -457,6 +457,9 @@ export default {
name
:
this
.
name
,
formData
:
this
.
formData
,
header
:
this
.
header
,
// #ifdef MP-ALIPAY
fileType
:
'
image
'
,
// #endif
success
:
res
=>
{
// 判断是否json字符串,将其转为json格式
let
data
=
this
.
toJson
&&
this
.
$u
.
test
.
jsonString
(
res
.
data
)
?
JSON
.
parse
(
res
.
data
)
:
res
.
data
;
...
...
@@ -536,8 +539,8 @@ export default {
// 执行移除图片的动作,上方代码只是判断是否可以移除
handlerDeleteItem
(
index
)
{
// 如果文件正在上传中,终止上传任务,进度在0
<
progress
<
100
则意味着正在上传
if
(
this
.
lists
[
index
].
pro
cess
<
100
&&
this
.
lists
[
index
].
proc
ess
>
0
)
{
typeof
this
.
lists
[
index
].
uploadTask
!=
"
undefined
"
&&
this
.
lists
[
index
].
uploadTask
.
abort
();
if
(
this
.
lists
[
index
].
pro
gress
<
100
&&
this
.
lists
[
index
].
progr
ess
>
0
)
{
typeof
this
.
lists
[
index
].
uploadTask
!=
'
undefined
'
&&
this
.
lists
[
index
].
uploadTask
.
abort
();
}
this
.
lists
.
splice
(
index
,
1
);
this
.
$forceUpdate
();
...
...
@@ -549,6 +552,7 @@ export default {
// 判断索引的合法范围
if
(
index
>=
0
&&
index
<
this
.
lists
.
length
)
{
this
.
lists
.
splice
(
index
,
1
);
this
.
$emit
(
'
on-list-change
'
,
this
.
lists
,
this
.
index
);
}
},
// 预览图片
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录