@gmcb/uv-ui 0.3.3 → 0.3.5

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
@@ -3,15 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.3.3](http://10.10.10.16/caoben/front-end/compare/@gmcb/uv-ui@0.3.2...@gmcb/uv-ui@0.3.3) (2026-06-23)
7
-
8
- **Note:** Version bump only for package @gmcb/uv-ui
9
-
10
-
11
-
12
-
13
-
14
- ## [0.3.2](http://10.10.10.16/caoben/front-end/compare/@gmcb/uv-ui@0.3.1...@gmcb/uv-ui@0.3.2) (2026-06-15)
6
+ ## [0.3.5](http://10.10.10.16/caoben/front-end/compare/@gmcb/uv-ui@0.3.4...@gmcb/uv-ui@0.3.5) (2026-07-02)
15
7
 
16
8
  **Note:** Version bump only for package @gmcb/uv-ui
17
9
 
@@ -20,6 +12,31 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
20
12
 
21
13
 
22
14
 
15
+ ## [0.3.4](http://10.10.10.16/caoben/front-end/compare/@gmcb/uv-ui@0.3.3...@gmcb/uv-ui@0.3.4) (2026-07-02)
16
+
17
+ **Note:** Version bump only for package @gmcb/uv-ui
18
+
19
+
20
+
21
+
22
+
23
+ ## [0.3.3](http://10.10.10.16/caoben/front-end/compare/@gmcb/uv-ui@0.3.2...@gmcb/uv-ui@0.3.3) (2026-06-23)
24
+
25
+ **Note:** Version bump only for package @gmcb/uv-ui
26
+
27
+
28
+
29
+
30
+
31
+ ## [0.3.2](http://10.10.10.16/caoben/front-end/compare/@gmcb/uv-ui@0.3.1...@gmcb/uv-ui@0.3.2) (2026-06-15)
32
+
33
+ **Note:** Version bump only for package @gmcb/uv-ui
34
+
35
+
36
+
37
+
38
+
39
+
23
40
  ## [0.3.1](http://10.10.10.16/caoben/front-end/compare/@gmcb/uv-ui@0.2.27...@gmcb/uv-ui@0.3.1) (2026-05-31)
24
41
 
25
42
  **Note:** Version bump only for package @gmcb/uv-ui
@@ -40,6 +40,16 @@ export default {
40
40
  type: [String, Number],
41
41
  default: 14
42
42
  },
43
+ // 图标大小
44
+ iconSize: {
45
+ type: [String, Number],
46
+ default: 18
47
+ },
48
+ // 关闭按钮图标大小
49
+ closeSize: {
50
+ type: [String, Number],
51
+ default: 15
52
+ },
43
53
  ...uni.$uv?.props?.alert
44
54
  }
45
55
  }
@@ -15,7 +15,7 @@
15
15
  >
16
16
  <uv-icon
17
17
  :name="iconName"
18
- size="18"
18
+ :size="$uv.addUnit(iconSize)"
19
19
  :color="iconColor"
20
20
  ></uv-icon>
21
21
  </view>
@@ -52,7 +52,7 @@
52
52
  <uv-icon
53
53
  name="close"
54
54
  :color="iconColor"
55
- size="15"
55
+ :size="$uv.addUnit(closeSize)"
56
56
  ></uv-icon>
57
57
  </view>
58
58
  </view>
@@ -76,14 +76,17 @@
76
76
  * @property {String} effect 多图时,图片缩放裁剪的模式 (默认 'light' )
77
77
  * @property {Boolean} center 文字是否居中 (默认 false )
78
78
  * @property {String | Number} fontSize 字体大小 (默认 14 )
79
+ * @property {String | Number} iconSize 图标大小 (默认 18 )
80
+ * @property {String | Number} closeSize 关闭按钮图标大小 (默认 15 )
79
81
  * @property {Object} customStyle 定义需要用到的外部样式
80
82
  * @event {Function} click 点击组件时触发
83
+ * @event {Function} close 关闭组件时触发
81
84
  * @example <uv-alert :title="title" type = "warning" :closable="closable" :description = "description"></uv-alert>
82
85
  */
83
86
  export default {
84
87
  name: 'uv-alert',
85
88
  mixins: [mpMixin, mixin, props],
86
- emits: ['click'],
89
+ emits: ['click', 'close'],
87
90
  data() {
88
91
  return {
89
92
  show: true
@@ -124,6 +127,7 @@
124
127
  // 点击关闭按钮
125
128
  closeHandler() {
126
129
  this.show = false
130
+ this.$emit('close')
127
131
  }
128
132
  }
129
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/uv-ui",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "uv-ui 破釜沉舟之兼容vue3+2、nvue、app、h5、小程序等多端基于uni-app和uView2.x的生态框架,支持单独导入,开箱即用,利剑出击。",
5
5
  "main": "index.js",
6
6
  "homepage": "https://git.keeprisk.cn/gmcb/front-end/tree/master/packages/uv-ui",
@@ -29,5 +29,5 @@
29
29
  "index.scss",
30
30
  "theme.scss"
31
31
  ],
32
- "gitHead": "00822ef738ac2c4e53d3304dbad4d427728dd82b"
32
+ "gitHead": "2cecb9d1420fd349d575a04d61b8d72b6d083d91"
33
33
  }