uview-plus 3.4.86 → 3.4.92

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
@@ -1,3 +1,21 @@
1
+ ## 3.4.92(2025-08-14)
2
+ fix: 修复多余空格导致cropper编译出错 #830
3
+
4
+ ## 3.4.91(2025-08-14)
5
+ feat: 新增agreement弹窗协议组件
6
+
7
+ ## 3.4.90(2025-08-13)
8
+ feat: datetimepicker新增datehour类型
9
+
10
+ ## 3.4.89(2025-08-13)
11
+ fix: 修复u-form-item组件缺少对labelPosition的判断
12
+
13
+ ## 3.4.88(2025-08-13)
14
+ fix: subsection组件的disabled属性应为Boolean类型
15
+
16
+ ## 3.4.87(2025-08-12)
17
+ improvment: 签名组件示例前缀改为up
18
+
1
19
  ## 3.4.86(2025-08-12)
2
20
  feat: 新增signature签名签字组件
3
21
 
@@ -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>
@@ -6,8 +6,8 @@
6
6
  <canvas :canvas-id="'oper-canvas-' + instanceId" :id="'oper-canvas-' + instanceId" class="oper-canvas"
7
7
  :style="{top: styleTop, height: cvsStyleHeight}"
8
8
  disable-scroll="false" @touchstart="start" @touchmove="move" @touchend="end"></canvas>
9
- <canvas :canvas-id="'prv-canvas-' + instanceId" :id="'prv-canvas-' + instanceId" class="prv-canvas"disable-scroll="false"
10
- @touchstart="hideImg":style="{ height: cvsStyleHeight, top: prvTop }"></canvas>
9
+ <canvas :canvas-id="'prv-canvas-' + instanceId" :id="'prv-canvas-' + instanceId" class="prv-canvas"
10
+ disable-scroll="false" @touchstart="hideImg" :style="{ height: cvsStyleHeight, top: prvTop }"></canvas>
11
11
  <view class="oper-wrapper" :style="{display: styleDisplay}">
12
12
  <view class="oper">
13
13
  <view class="btn-wrapper" v-if="showOper">
@@ -176,6 +176,9 @@
176
176
  case 'year-month':
177
177
  format = 'YYYY-MM'
178
178
  break;
179
+ case 'datehour':
180
+ format = 'YYYY-MM-DD HH'
181
+ break;
179
182
  case 'datetime':
180
183
  format = 'YYYY-MM-DD HH:mm'
181
184
  break;
@@ -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
- <u-icon name="arrow-left" size="22" :color="pathStack.length === 0 ? '#ccc' : '#999'"></u-icon>
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
- <u-icon name="trash" size="25" color="#999"></u-icon>
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
- <u-icon name="edit-pen" size="25" color="#999"></u-icon>
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
- <u-icon name="grid" size="24" color="#999"></u-icon>
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
- <u-icon name="checkmark" size="25" :color="isEmpty ? '#ccc' : '#999'"></u-icon>
34
+ <up-icon name="checkmark" size="25" :color="isEmpty ? '#ccc' : '#999'"></up-icon>
35
35
  </view>
36
36
  </view>
37
37
 
@@ -60,7 +60,7 @@ export const props = defineMixin({
60
60
  },
61
61
  // 是否禁用
62
62
  disabled: {
63
- type: String,
63
+ type: Boolean,
64
64
  default: () => defProps.subsection.disabled
65
65
  }
66
66
  }
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.86",
5
+ "version": "3.4.92",
6
6
  "description": "零云®uview-plus已兼容vue3,100+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名等。",
7
7
  "keywords": [
8
8
  "uview",