mali-applet-ui 0.2.11 → 0.2.13
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.isQW" class="ml-amount-input not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
|
|
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}]">
|
|
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,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view v-if="isFromReadonly" class="ml-input is-readonly" :class="[className || '', {'is-right': align === 'right'}]">
|
|
3
|
-
<view class="ml-input-readonly-content">
|
|
3
|
+
<view class="ml-input-readonly-content">{{ inpVal }}</view>
|
|
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}]">
|
|
6
|
+
<view class="ml-input-simulate">
|
|
4
7
|
<text v-if="inpVal">{{ inpVal }}</text>
|
|
5
8
|
<text v-else class="ml-input-placeholder">{{ placeholder }}</text>
|
|
6
9
|
</view>
|
|
7
10
|
</view>
|
|
8
|
-
<view v-else-if="!editable && platformEnv.isQW" class="ml-input not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
|
|
9
|
-
<view class="ml-input-simulate">{{ inpVal }}</view>
|
|
10
|
-
</view>
|
|
11
11
|
<view v-else class="ml-input" :class="[className || '', {'is-right': align === 'right', 'is-border': border, 'is-prefix': prefixIcon || type === 'search', 'is-suffix': suffixIcon, 'is-disabled': disabled, 'is-clear': clearable && inpVal}]">
|
|
12
12
|
<view v-if="prefixIcon || type === 'search'" class="ml-input-prefix-icon">
|
|
13
13
|
<ml-icon v-if="prefixIcon" :className="prefixIcon"></ml-icon>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view v-if="isFromReadonly" class="ml-number-input is-readonly">
|
|
3
|
-
<view class="ml-number-input-readonly-content">
|
|
3
|
+
<view class="ml-number-input-readonly-content">{{ inpVal }}</view>
|
|
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}]">
|
|
6
|
+
<view class="ml-number-input-simulate">
|
|
4
7
|
<text v-if="inpVal">{{ inpVal }}</text>
|
|
5
8
|
<text v-else class="ml-number-input-placeholder">{{ placeholder }}</text>
|
|
6
9
|
</view>
|
|
7
10
|
</view>
|
|
8
|
-
<view v-else-if="!editable && platformEnv.isQW" class="ml-number-input not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
|
|
9
|
-
<view class="ml-number-input-simulate">{{ inpVal }}</view>
|
|
10
|
-
</view>
|
|
11
11
|
<view v-else class="ml-number-input" :class="[{'is-right': align === 'right', 'is-border': border, 'is-disabled': disabled, 'is-clear': clearable && inpVal}, className]">
|
|
12
12
|
<input
|
|
13
13
|
class="ml-number-input-inp"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view v-if="isFromReadonly" class="ml-textarea is-readonly" :class="[className || '', {'is-right': align === 'right'}]">
|
|
3
|
-
<view class="ml-textarea-readonly-content">
|
|
3
|
+
<view class="ml-textarea-readonly-content">{{ inpVal }}</view>
|
|
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}]">
|
|
6
|
+
<view class="ml-textarea-simulate" :style="{color: fontColor, height: `${rows * 30}rpx`}">
|
|
4
7
|
<text v-if="inpVal">{{ inpVal }}</text>
|
|
5
8
|
<text v-else class="ml-textarea-placeholder">{{ placeholder }}</text>
|
|
6
9
|
</view>
|
|
7
|
-
</view>
|
|
8
|
-
<view v-else-if="!editable && platformEnv.isQW" class="ml-textarea not-edit" :class="[className || '', {'is-right': align === 'right', 'is-border': border}]">
|
|
9
|
-
<view class="ml-textarea-simulate" :style="{color: fontColor, height: `${rows * 30}rpx`}">{{ inpVal }}</view>
|
|
10
10
|
<view v-if="showWordLimit && !disabled" class="ml-textarea-word-count">
|
|
11
11
|
<!-- <VoiceInput v-if="showVoice" v-model="inpVal" @input="inputEvent"></VoiceInput> -->
|
|
12
12
|
<view class="ml-textarea-word-numbers">{{ value ? value.length : 0 }}/{{ maxLength }}</view>
|