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.
@@ -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.isWX || platformEnv.isQW)" class="ml-amount-input not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
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.isWX || platformEnv.isQW)" class="ml-input not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
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.isWX || platformEnv.isQW)" class="ml-number-input not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
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>
@@ -125,7 +125,7 @@ export default {
125
125
 
126
126
  <style lang="scss">
127
127
  .ml-select-picker {
128
- display: inline-block;
128
+ display: block;
129
129
  font-size: $uni-font-size-base;
130
130
  box-sizing: border-box;
131
131
  padding: 0;
@@ -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.isWX || platformEnv.isQW)" class="ml-textarea not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.57",
3
+ "version": "0.2.59",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"
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