uview-plus 3.4.86 → 3.4.91
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 +15 -0
- package/components/u-agreement/u-agreement.vue +76 -0
- package/components/u-datetime-picker/u-datetime-picker.vue +3 -0
- package/components/u-form-item/u-form-item.vue +2 -2
- package/components/u-signature/u-signature.vue +5 -5
- package/components/u-subsection/props.js +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## 3.4.91(2025-08-14)
|
|
2
|
+
feat: 新增agreement弹窗协议组件
|
|
3
|
+
|
|
4
|
+
## 3.4.90(2025-08-13)
|
|
5
|
+
feat: datetimepicker新增datehour类型
|
|
6
|
+
|
|
7
|
+
## 3.4.89(2025-08-13)
|
|
8
|
+
fix: 修复u-form-item组件缺少对labelPosition的判断
|
|
9
|
+
|
|
10
|
+
## 3.4.88(2025-08-13)
|
|
11
|
+
fix: subsection组件的disabled属性应为Boolean类型
|
|
12
|
+
|
|
13
|
+
## 3.4.87(2025-08-12)
|
|
14
|
+
improvment: 签名组件示例前缀改为up
|
|
15
|
+
|
|
1
16
|
## 3.4.86(2025-08-12)
|
|
2
17
|
feat: 新增signature签名签字组件
|
|
3
18
|
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<style scoped lang="scss">
|
|
2
|
+
.agreement-content {
|
|
3
|
+
width: 100%;;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
.agreement-url {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
color: blue;
|
|
9
|
+
// #ifdef H5
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
// #endif
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
</style>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<view class="up-agreement">
|
|
18
|
+
<up-modal v-model:show="show" showCancelButton @confirm="confirm" @cancel="close" confirmText="阅读并同意">
|
|
19
|
+
<view class="agreement-content">
|
|
20
|
+
<slot>
|
|
21
|
+
我们非常重视您的个人信息和隐私保护。为了更好地保障您的个人权益,在您使用我们的产品前,
|
|
22
|
+
请务必审慎阅读《<text class="agreement-url" @click="urlClick('urlProtocol')">用户协议</text>》
|
|
23
|
+
和《<text class="agreement-url" @click="urlClick('urlPrivacy')">隐私政策</text>》内的所有条款,
|
|
24
|
+
尤其是:1.我们对您的个人信息的收集/保存/使用/对外提供/保护等规则条款,以及您的用户权利等条款;2. 约定我们的限制责任、免责
|
|
25
|
+
条款;3.其他以颜色或加粗进行标识的重要条款。如您对以上协议有任何疑问,请先不要同意,您点击“同意并继续”的行为即表示您已阅读
|
|
26
|
+
完毕并同意以上协议的全部内容。
|
|
27
|
+
</slot>
|
|
28
|
+
</view>
|
|
29
|
+
</up-modal>
|
|
30
|
+
</view>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
export default {
|
|
35
|
+
name: 'up-agreement',
|
|
36
|
+
props: {
|
|
37
|
+
urlProtocol: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: '/pages/user_agreement/agreement/info?title=用户协议'
|
|
40
|
+
},
|
|
41
|
+
urlPrivacy: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: '/pages/user_agreement/agreement/info?title=隐私政策'
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
emits: ['confirm'],
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
show: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
methods: {
|
|
53
|
+
close() {
|
|
54
|
+
// #ifdef H5
|
|
55
|
+
window.opener = null;
|
|
56
|
+
window.close();
|
|
57
|
+
// #endif
|
|
58
|
+
// #ifdef APP-PLUS
|
|
59
|
+
plus.runtime.quit();
|
|
60
|
+
// #endif
|
|
61
|
+
},
|
|
62
|
+
confirm() {
|
|
63
|
+
this.show = false;
|
|
64
|
+
this.$emit('confirm', 1);
|
|
65
|
+
},
|
|
66
|
+
showModal() {
|
|
67
|
+
this.show = true;
|
|
68
|
+
},
|
|
69
|
+
urlClick(type) {
|
|
70
|
+
uni.navigateTo({
|
|
71
|
+
url: this[type]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
</script>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
v-if="required || leftIcon || label"
|
|
16
16
|
:style="{
|
|
17
17
|
width: addUnit(labelWidth || parentData.labelWidth),
|
|
18
|
-
marginBottom: parentData.labelPosition === 'left' ? 0 : '5px',
|
|
18
|
+
marginBottom: (labelPosition || parentData.labelPosition) === 'left' ? 0 : '5px',
|
|
19
19
|
}"
|
|
20
20
|
>
|
|
21
21
|
<!-- 为了块对齐 -->
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
v-if="!!message && parentData.errorType === 'message'"
|
|
63
63
|
class="u-form-item__body__right__message"
|
|
64
64
|
:style="{
|
|
65
|
-
marginLeft: addUnit(parentData.labelPosition === 'top' ? 0 : (labelWidth || parentData.labelWidth))
|
|
65
|
+
marginLeft: addUnit((labelPosition || parentData.labelPosition) === 'top' ? 0 : (labelWidth || parentData.labelWidth))
|
|
66
66
|
}"
|
|
67
67
|
>{{ message }}</text>
|
|
68
68
|
</slot>
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
<view v-if="showToolbar" class="u-signature__toolbar">
|
|
20
20
|
<view class="u-signature__toolbar-icons u-flex u-flex-x">
|
|
21
21
|
<view class="u-signature__toolbar-icon" @click="undo">
|
|
22
|
-
<
|
|
22
|
+
<up-icon name="arrow-left" size="22" :color="pathStack.length === 0 ? '#ccc' : '#999'"></up-icon>
|
|
23
23
|
</view>
|
|
24
24
|
<view class="u-signature__toolbar-icon" @click="clear">
|
|
25
|
-
<
|
|
25
|
+
<up-icon name="trash" size="25" color="#999"></up-icon>
|
|
26
26
|
</view>
|
|
27
27
|
<view class="u-signature__toolbar-icon" @click="toggleBrushSettings">
|
|
28
|
-
<
|
|
28
|
+
<up-icon name="edit-pen" size="25" color="#999"></up-icon>
|
|
29
29
|
</view>
|
|
30
30
|
<view class="u-signature__toolbar-icon" @click="toggleColorSettings">
|
|
31
|
-
<
|
|
31
|
+
<up-icon name="grid" size="24" color="#999"></up-icon>
|
|
32
32
|
</view>
|
|
33
33
|
<view class="u-signature__toolbar-icon" @click="exportSignature">
|
|
34
|
-
<
|
|
34
|
+
<up-icon name="checkmark" size="25" :color="isEmpty ? '#ccc' : '#999'"></up-icon>
|
|
35
35
|
</view>
|
|
36
36
|
</view>
|
|
37
37
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "uview-plus",
|
|
3
3
|
"name": "uview-plus",
|
|
4
4
|
"displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙跨端移动组件库,组件丰富维护更新稳定。",
|
|
5
|
-
"version": "3.4.
|
|
5
|
+
"version": "3.4.91",
|
|
6
6
|
"description": "零云®uview-plus已兼容vue3,100+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名等。",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uview",
|