@10yun/cv-mobile-ui 0.5.45 → 0.5.46
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/package.json
CHANGED
|
@@ -239,7 +239,7 @@ export default {
|
|
|
239
239
|
},
|
|
240
240
|
iconColorCom() {
|
|
241
241
|
// 如果是镂空状态,设置了color就用color值,否则使用主题颜色,
|
|
242
|
-
//
|
|
242
|
+
// up-icon的color能接受一个主题颜色的值
|
|
243
243
|
if (this.iconColor) return this.iconColor;
|
|
244
244
|
if (this.plain) {
|
|
245
245
|
return this.color ? this.color : this.type;
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
!disabled && !loading && !color && (plain || type === 'info')
|
|
54
54
|
? 'u-button--active--plain'
|
|
55
55
|
: !disabled && !loading && !plain
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
? 'u-button--active'
|
|
57
|
+
: ''
|
|
58
58
|
"
|
|
59
59
|
@tap="clickHandler"
|
|
60
60
|
:class="bemClass"
|
|
@@ -235,7 +235,7 @@ export default {
|
|
|
235
235
|
emits: ['click', 'getphonenumber', 'getuserinfo', 'error', 'opensetting', 'launchapp', 'agreeprivacyauthorization'],
|
|
236
236
|
methods: {
|
|
237
237
|
addStyle,
|
|
238
|
-
clickHandler(e
|
|
238
|
+
clickHandler(e) {
|
|
239
239
|
// 非禁止并且非加载中,才能点击
|
|
240
240
|
if (!this.disabled && !this.loading) {
|
|
241
241
|
// 进行节流控制,每this.throttle毫秒内,只在开始处执行
|
|
@@ -247,19 +247,19 @@ export default {
|
|
|
247
247
|
this.stop && this.preventEvent(e);
|
|
248
248
|
},
|
|
249
249
|
// 下面为对接uniapp官方按钮开放能力事件回调的对接
|
|
250
|
-
getphonenumber(res
|
|
250
|
+
getphonenumber(res) {
|
|
251
251
|
this.$emit('getphonenumber', res);
|
|
252
252
|
},
|
|
253
|
-
getuserinfo(res
|
|
253
|
+
getuserinfo(res) {
|
|
254
254
|
this.$emit('getuserinfo', res);
|
|
255
255
|
},
|
|
256
|
-
error(res
|
|
256
|
+
error(res) {
|
|
257
257
|
this.$emit('error', res);
|
|
258
258
|
},
|
|
259
|
-
opensetting(res
|
|
259
|
+
opensetting(res) {
|
|
260
260
|
this.$emit('opensetting', res);
|
|
261
261
|
},
|
|
262
|
-
launchapp(res
|
|
262
|
+
launchapp(res) {
|
|
263
263
|
this.$emit('launchapp', res);
|
|
264
264
|
},
|
|
265
265
|
agreeprivacyauthorization(res) {
|