mali-applet-ui 0.2.57 → 0.2.59
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/components/ml-amount-input/ml-amount-input.vue +1 -1
- package/components/ml-chunk-group/ml-chunk-group.vue +8 -1
- package/components/ml-input/ml-input.vue +1 -1
- package/components/ml-number-input/ml-number-input.vue +1 -1
- package/components/ml-select-picker/ml-select-picker.vue +1 -1
- package/components/ml-textarea/ml-textarea.vue +1 -1
- package/package.json +1 -1
- package/utils/applet.js +9 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view v-if="isFromReadonly" class="ml-amount-input is-readonly" :class="[className || '', {'is-right': align === 'right'}]">
|
|
3
3
|
<view class="ml-amount-input-readonly-content">¥{{ amountLabel }}</view>
|
|
4
4
|
</view>
|
|
5
|
-
<view v-else-if="!editable && (platformEnv.
|
|
5
|
+
<view v-else-if="!editable && (platformEnv.isWXMP || platformEnv.isQWMP)" class="ml-amount-input not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
|
|
6
6
|
<view class="ml-amount-input-simulate">
|
|
7
7
|
<text v-if="inpVal">{{ inpVal }}</text>
|
|
8
8
|
<text v-else class="ml-amount-input-placeholder">{{ placeholder }}</text>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="ml-chunk-group" :class="[className || '', status ? `ss-${status}` : '', align ? `align-${align}` : '', {'is-vertical': vertical, 'is-header': title || $slots.title}]">
|
|
2
|
+
<view class="ml-chunk-group" :class="[className || '', status ? `ss-${status}` : '', align ? `align-${align}` : '', {'is-status': !!status, 'is-vertical': vertical, 'is-header': title || $slots.title}]">
|
|
3
3
|
<view v-if="title || $slots.title" class="ml-chunk-group-title">
|
|
4
4
|
<slot name="title">
|
|
5
5
|
<view v-if="prefixIcon" class="ml-chunk-group-left-icon">
|
|
@@ -71,6 +71,13 @@ export default {
|
|
|
71
71
|
flex-direction: column;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
&.is-status {
|
|
75
|
+
&.is-header {
|
|
76
|
+
.ml-chunk-group-body {
|
|
77
|
+
padding-bottom: 20rpx;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
74
81
|
&.align-left {
|
|
75
82
|
text-align: left;
|
|
76
83
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view v-if="isFromReadonly" class="ml-input is-readonly" :class="[className || '', {'is-right': align === 'right'}]">
|
|
3
3
|
<view class="ml-input-readonly-content">{{ inpVal }}</view>
|
|
4
4
|
</view>
|
|
5
|
-
<view v-else-if="!editable && (platformEnv.
|
|
5
|
+
<view v-else-if="!editable && (platformEnv.isWXMP || platformEnv.isQWMP)" class="ml-input not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
|
|
6
6
|
<view class="ml-input-simulate">
|
|
7
7
|
<text v-if="inpVal">{{ inpVal }}</text>
|
|
8
8
|
<text v-else class="ml-input-placeholder">{{ placeholder }}</text>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view v-if="isFromReadonly" class="ml-number-input is-readonly">
|
|
3
3
|
<view class="ml-number-input-readonly-content">{{ inpVal }}</view>
|
|
4
4
|
</view>
|
|
5
|
-
<view v-else-if="!editable && (platformEnv.
|
|
5
|
+
<view v-else-if="!editable && (platformEnv.isWXMP || platformEnv.isQWMP)" class="ml-number-input not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
|
|
6
6
|
<view class="ml-number-input-simulate">
|
|
7
7
|
<text v-if="inpVal">{{ inpVal }}</text>
|
|
8
8
|
<text v-else class="ml-number-input-placeholder">{{ placeholder }}</text>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view v-if="isFromReadonly" class="ml-textarea is-readonly" :class="[className || '', {'is-right': align === 'right'}]">
|
|
3
3
|
<view class="ml-textarea-readonly-content">{{ inpVal }}</view>
|
|
4
4
|
</view>
|
|
5
|
-
<view v-else-if="!editable && (platformEnv.
|
|
5
|
+
<view v-else-if="!editable && (platformEnv.isWXMP || platformEnv.isQWMP)" class="ml-textarea not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
|
|
6
6
|
<view class="ml-textarea-simulate" :style="{color: fontColor, height: `${rows * 30}rpx`}">
|
|
7
7
|
<text v-if="inpVal">{{ inpVal }}</text>
|
|
8
8
|
<text v-else class="ml-textarea-placeholder">{{ placeholder }}</text>
|
package/package.json
CHANGED
package/utils/applet.js
CHANGED
|
@@ -11,12 +11,16 @@ export function getPlatformEnv () {
|
|
|
11
11
|
isDDH5: false,
|
|
12
12
|
// 微信
|
|
13
13
|
isWX: false,
|
|
14
|
+
isWXMP: false,
|
|
14
15
|
// 企业微信
|
|
15
16
|
isQW: false,
|
|
17
|
+
isQWMP: false,
|
|
16
18
|
// 钉钉
|
|
17
19
|
isDD: false,
|
|
20
|
+
isDDMP: false,
|
|
18
21
|
// 支付宝
|
|
19
|
-
isZFB: false
|
|
22
|
+
isZFB: false,
|
|
23
|
+
isZFBMP: false
|
|
20
24
|
}
|
|
21
25
|
if (/web/.test(sysRes.uniPlatform)) {
|
|
22
26
|
platform.isH5 = true
|
|
@@ -25,12 +29,16 @@ export function getPlatformEnv () {
|
|
|
25
29
|
} else {
|
|
26
30
|
if (/WeChat/i.test(hostName)) {
|
|
27
31
|
platform.isWX = true
|
|
32
|
+
platform.isWXMP = true
|
|
28
33
|
} else if (/wxwork/i.test(hostName)) {
|
|
29
34
|
platform.isQW = true
|
|
35
|
+
platform.isQWMP = true
|
|
30
36
|
} else if (/DingTalk/i.test(hostName)) {
|
|
31
37
|
platform.isDD = true
|
|
38
|
+
platform.isDDMP = true
|
|
32
39
|
} else if (/alipay/i.test(hostName)) {
|
|
33
40
|
platform.isZFB = true
|
|
41
|
+
platform.isZFBMP = true
|
|
34
42
|
}
|
|
35
43
|
}
|
|
36
44
|
return platform
|