uview-plus 3.3.17 → 3.3.19
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 +7 -0
- package/components/u-datetime-picker/u-datetime-picker.vue +9 -0
- package/components/u-picker/props.js +6 -1
- package/components/u-picker/u-picker.vue +1 -0
- package/components/u-toolbar/props.js +5 -0
- package/components/u-toolbar/u-toolbar.vue +20 -14
- package/libs/function/index.js +1 -1
- package/package.json +3 -3
package/changelog.md
CHANGED
|
@@ -23,11 +23,20 @@
|
|
|
23
23
|
:confirmText="confirmText"
|
|
24
24
|
:cancelColor="cancelColor"
|
|
25
25
|
:confirmColor="confirmColor"
|
|
26
|
+
:toolbarRightSlot="toolbarRightSlot"
|
|
26
27
|
@close="close"
|
|
27
28
|
@cancel="cancel"
|
|
28
29
|
@confirm="confirm"
|
|
29
30
|
@change="change"
|
|
30
31
|
>
|
|
32
|
+
<template #toolbar-right>
|
|
33
|
+
<slot name="toolbar-right">
|
|
34
|
+
</slot>
|
|
35
|
+
</template>
|
|
36
|
+
<template #toolbar-bottom>
|
|
37
|
+
<slot name="toolbar-bottom">
|
|
38
|
+
</slot>
|
|
39
|
+
</template>
|
|
31
40
|
</u-picker>
|
|
32
41
|
</template>
|
|
33
42
|
|
|
@@ -27,20 +27,23 @@
|
|
|
27
27
|
<view
|
|
28
28
|
class="u-toolbar__right"
|
|
29
29
|
>
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
<view
|
|
31
|
+
v-if="!rightSlot"
|
|
32
|
+
class="u-toolbar__confirm__wrapper"
|
|
33
|
+
hover-class="u-hover-class"
|
|
34
|
+
>
|
|
35
|
+
<text
|
|
36
|
+
class="u-toolbar__wrapper__confirm"
|
|
37
|
+
@tap="confirm"
|
|
38
|
+
:style="{
|
|
39
|
+
color: confirmColor
|
|
40
|
+
}"
|
|
41
|
+
>{{ confirmText }}</text>
|
|
42
|
+
</view>
|
|
43
|
+
<template v-else>
|
|
44
|
+
<slot name="right">
|
|
45
|
+
</slot>
|
|
46
|
+
</template>
|
|
44
47
|
</view>
|
|
45
48
|
</view>
|
|
46
49
|
</template>
|
|
@@ -66,6 +69,9 @@
|
|
|
66
69
|
name: 'u-toolbar',
|
|
67
70
|
mixins: [mpMixin, mixin, props],
|
|
68
71
|
emits: ["confirm", "cancel"],
|
|
72
|
+
created() {
|
|
73
|
+
console.log(this.$slots)
|
|
74
|
+
},
|
|
69
75
|
methods: {
|
|
70
76
|
// 点击取消按钮
|
|
71
77
|
cancel() {
|
package/libs/function/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "uview-plus",
|
|
3
3
|
"name": "uview-plus",
|
|
4
|
-
"displayName": "uview-plus3.0重磅发布,全面的Vue3移动组件库。",
|
|
5
|
-
"version": "3.3.
|
|
6
|
-
"description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
|
|
4
|
+
"displayName": "零云®uview-plus3.0重磅发布,全面的Vue3移动组件库。",
|
|
5
|
+
"version": "3.3.19",
|
|
6
|
+
"description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uview",
|
|
9
9
|
"uview-plus",
|