uview-plus 3.0.15 → 3.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md
CHANGED
|
@@ -23,6 +23,15 @@
|
|
|
23
23
|
watch: {
|
|
24
24
|
needInit() {
|
|
25
25
|
this.init()
|
|
26
|
+
},
|
|
27
|
+
// 当父组件需要子组件需要共享的参数发生了变化,手动通知子组件
|
|
28
|
+
parentData() {
|
|
29
|
+
if (this.children.length) {
|
|
30
|
+
this.children.map(child => {
|
|
31
|
+
// 判断子组件(u-checkbox)如果有updateParentData方法的话,就就执行(执行的结果是子组件重新从父组件拉取了最新的值)
|
|
32
|
+
typeof(child.updateParentData) === 'function' && child.updateParentData()
|
|
33
|
+
})
|
|
34
|
+
}
|
|
26
35
|
}
|
|
27
36
|
},
|
|
28
37
|
created() {
|
|
@@ -35,17 +44,6 @@
|
|
|
35
44
|
return [this.accordion, this.value]
|
|
36
45
|
}
|
|
37
46
|
},
|
|
38
|
-
watch: {
|
|
39
|
-
// 当父组件需要子组件需要共享的参数发生了变化,手动通知子组件
|
|
40
|
-
parentData() {
|
|
41
|
-
if (this.children.length) {
|
|
42
|
-
this.children.map(child => {
|
|
43
|
-
// 判断子组件(u-checkbox)如果有updateParentData方法的话,就就执行(执行的结果是子组件重新从父组件拉取了最新的值)
|
|
44
|
-
typeof(child.updateParentData) === 'function' && child.updateParentData()
|
|
45
|
-
})
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
47
|
methods: {
|
|
50
48
|
// 重新初始化一次内部的所有子元素
|
|
51
49
|
init() {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
// 如果是显示圆形,设置一个很多的半径值即可
|
|
135
135
|
style.borderRadius = this.shape == 'circle' ? '10000px' : uni.$u.addUnit(this.radius)
|
|
136
136
|
// 如果设置圆角,必须要有hidden,否则可能圆角无效
|
|
137
|
-
style.overflow = this.
|
|
137
|
+
style.overflow = this.radius > 0 ? 'hidden' : 'visible'
|
|
138
138
|
// if (this.fade) {
|
|
139
139
|
// style.opacity = this.opacity
|
|
140
140
|
// // nvue下,这几个属性必须要分开写
|
|
@@ -100,7 +100,9 @@ import nvueMixin from "./nvue.js"
|
|
|
100
100
|
import props from './props.js';
|
|
101
101
|
export default {
|
|
102
102
|
name: 'u-scroll-list',
|
|
103
|
+
// #ifndef APP-NVUE
|
|
103
104
|
mixins: [uni.$u.mpMixin, uni.$u.mixin, props],
|
|
105
|
+
// #endif
|
|
104
106
|
// #ifdef APP-NVUE
|
|
105
107
|
mixins: [uni.$u.mpMixin, uni.$u.mixin, nvueMixin, props],
|
|
106
108
|
// #endif
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "uview-plus",
|
|
3
3
|
"name": "uview-plus",
|
|
4
4
|
"displayName": "uview-plus3.0重磅发布,利剑出鞘,一统江湖",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.17",
|
|
6
6
|
"description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uview",
|
|
@@ -17,12 +17,8 @@
|
|
|
17
17
|
"engines": {
|
|
18
18
|
"HBuilderX": "^3.1.0"
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"前端组件",
|
|
23
|
-
"通用组件"
|
|
24
|
-
],
|
|
25
|
-
"sale": {
|
|
20
|
+
"dcloudext": {
|
|
21
|
+
"sale": {
|
|
26
22
|
"regular": {
|
|
27
23
|
"price": "0.00"
|
|
28
24
|
},
|
|
@@ -38,7 +34,8 @@
|
|
|
38
34
|
"data": "无",
|
|
39
35
|
"permissions": "无"
|
|
40
36
|
},
|
|
41
|
-
|
|
37
|
+
"npmurl": "https://www.npmjs.com/package/uview-plus",
|
|
38
|
+
"type": "component-vue"
|
|
42
39
|
},
|
|
43
40
|
"uni_modules": {
|
|
44
41
|
"dependencies": [],
|