File tree Expand file tree Collapse file tree 9 files changed +29
-9
lines changed Expand file tree Collapse file tree 9 files changed +29
-9
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.2.1(2022-05-30)
2
+ - 新增 stat 属性 ,是否开启uni统计功能
1
3
## 1.2.0(2021-11-19)
2
4
- 优化 组件UI,并提供设计资源,详见:[ https://uniapp.dcloud.io/component/uniui/resource ] ( https://uniapp.dcloud.io/component/uniui/resource )
3
5
- 文档迁移,详见:[ https://uniapp.dcloud.io/component/uniui/uni-fav ] ( https://uniapp.dcloud.io/component/uniui/uni-fav )
Original file line number Diff line number Diff line change 27
27
* @property {String} fgColorChecked 已收藏时的文字颜色
28
28
* @property {Boolean} circle = [true|false] 是否为圆角
29
29
* @property {Boolean} checked = [true|false] 是否为已收藏
30
- * @property {Object} contentText = [true|false] 收藏按钮文字
30
+ * @property {Object} contentText = [true|false] 收藏按钮文字
31
+ * @property {Boolean} stat 是否开启统计功能
31
32
* @event {Function} click 点击 fav按钮触发事件
32
33
* @example < uni- fav : checked= " true" / >
33
34
*/
79
80
contentFav: " "
80
81
};
81
82
}
83
+ },
84
+ stat: {
85
+ type: Boolean ,
86
+ default: false
82
87
}
83
88
},
84
89
computed: {
90
95
},
91
96
},
92
97
watch: {
93
- checked () {
94
- if (uni .report ) {
98
+ checked () {
99
+ if (uni .report && this . stat ) {
95
100
if (this .checked ) {
96
101
uni .report (" 收藏" , " 收藏" );
97
102
} else {
Original file line number Diff line number Diff line change 1
1
{
2
2
"id" : " uni-fav" ,
3
3
"displayName" : " uni-fav 收藏按钮" ,
4
- "version" : " 1.2.0 " ,
4
+ "version" : " 1.2.1 " ,
5
5
"description" : " Fav 收藏组件,可自定义颜色、大小。" ,
6
6
"keywords" : [
7
7
" fav" ,
Original file line number Diff line number Diff line change
1
+ ## 1.2.1(2022-05-30)
2
+ - 新增 stat属性,是否开启uni统计功能
1
3
## 1.2.0(2021-11-19)
2
4
- 优化 组件UI,并提供设计资源,详见:[ https://uniapp.dcloud.io/component/uniui/resource ] ( https://uniapp.dcloud.io/component/uniui/resource )
3
5
- 文档迁移,详见:[ https://uniapp.dcloud.io/component/uniui/uni-goods-nav ] ( https://uniapp.dcloud.io/component/uniui/uni-goods-nav )
Original file line number Diff line number Diff line change 37
37
* @tutorial https://ext.dcloud.net.cn/plugin?id=865
38
38
* @property {Array} options 组件参数
39
39
* @property {Array} buttonGroup 组件按钮组参数
40
- * @property {Boolean} fill = [true | false] 组件按钮组参数
40
+ * @property {Boolean} fill = [true | false] 组件按钮组参数
41
+ * @property {Boolean} stat 是否开启统计功能
41
42
* @event {Function} click 左侧点击事件
42
43
* @event {Function} buttonClick 右侧按钮组点击事件
43
44
* @example < uni- goods- nav : fill= " true" options= " " buttonGroup= " buttonGroup" @click= " " @buttonClick= " " / >
77
78
fill: {
78
79
type: Boolean ,
79
80
default: false
81
+ },
82
+ stat: {
83
+ type: Boolean ,
84
+ default: false
80
85
}
81
86
},
82
87
methods: {
87
92
})
88
93
},
89
94
buttonClick (index , item ) {
90
- if (uni .report ) {
95
+ if (uni .report && this . stat ) {
91
96
uni .report (item .text , item .text )
92
97
}
93
98
this .$emit (' buttonClick' , {
Original file line number Diff line number Diff line change 1
1
{
2
2
"id" : " uni-goods-nav" ,
3
3
"displayName" : " uni-goods-nav 商品导航" ,
4
- "version" : " 1.2.0 " ,
4
+ "version" : " 1.2.1 " ,
5
5
"description" : " 商品导航组件主要用于电商类应用底部导航,可自定义加入购物车,购买等操作" ,
6
6
"keywords" : [
7
7
" uni-ui" ,
Original file line number Diff line number Diff line change
1
+ ## 1.2.2(2022-05-30)
2
+ - 新增 stat属性,是否开启uni统计功能
1
3
## 1.2.1(2021-11-22)
2
4
- 修复 vue3中某些scss变量无法找到的问题
3
5
## 1.2.0(2021-11-19)
Original file line number Diff line number Diff line change 35
35
mode: {
36
36
type: String ,
37
37
default: ' default'
38
+ },
39
+ stat: {
40
+ type: Boolean ,
41
+ default: false
38
42
}
39
43
},
40
44
data () {
45
49
},
46
50
watch: {
47
51
title (newVal ) {
48
- if (uni .report && newVal !== ' ' ) {
52
+ if (uni .report && this . stat && newVal !== ' ' ) {
49
53
uni .report (' title' , newVal)
50
54
}
51
55
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"id" : " uni-group" ,
3
3
"displayName" : " uni-group 分组" ,
4
- "version" : " 1.2.1 " ,
4
+ "version" : " 1.2.2 " ,
5
5
"description" : " 分组组件可用于将组件用于分组,添加间隔,以产生明显的区块" ,
6
6
"keywords" : [
7
7
" uni-ui" ,
You can’t perform that action at this time.
0 commit comments