mali-applet-ui 1.1.22 → 1.1.24

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,10 @@ export default {
2
2
  ml: {
3
3
  base: {
4
4
  all: 'All',
5
- pleaseSelect: 'Please select'
5
+ pleaseSelect: 'Select',
6
+ pleaseInput: 'Please input',
7
+ confirm: 'Confirm',
8
+ cancel: 'Cancel'
6
9
  },
7
10
  loading: {
8
11
  loading: 'Loading'
@@ -3,6 +3,7 @@ export default {
3
3
  base: {
4
4
  all: '全部',
5
5
  pleaseSelect: '请选择',
6
+ pleaseInput: '请输入',
6
7
  confirm: '确认',
7
8
  cancel: '取消'
8
9
  },
@@ -74,7 +74,7 @@ export default {
74
74
  },
75
75
  placeholder: {
76
76
  type: String,
77
- default: 'ml.base.pleaseSelect'
77
+ default: 'ml.base.pleaseInput'
78
78
  },
79
79
  maxlength: {
80
80
  type: [String, Number],
@@ -81,6 +81,7 @@ export default {
81
81
  }
82
82
  ].concat(this.options.map(item => {
83
83
  return {
84
+ ...item,
84
85
  [this.optLabelField]: MaliI18n.t(item[this.optLabelField]),
85
86
  [this.optValueField]: item[this.optValueField]
86
87
  }
@@ -88,6 +89,7 @@ export default {
88
89
  }
89
90
  return this.options.map(item => {
90
91
  return {
92
+ ...item,
91
93
  [this.optLabelField]: MaliI18n.t(item[this.optLabelField]),
92
94
  [this.optValueField]: item[this.optValueField]
93
95
  }
@@ -8,7 +8,6 @@
8
8
  <text v-else class="ml-textarea-placeholder">{{ translate(placeholder) }}</text>
9
9
  </view>
10
10
  <view v-if="showWordLimit && !disabled" class="ml-textarea-word-count">
11
- <!-- <VoiceInput v-if="showVoice" v-model="inpVal" @input="inputEvent"></VoiceInput> -->
12
11
  <view class="ml-textarea-word-numbers">{{ value ? value.length : 0 }}/{{ maxLength }}</view>
13
12
  </view>
14
13
  </view>
@@ -27,7 +26,6 @@
27
26
  @blur="blurEvent"
28
27
  :style="{color: fontColor, height: `${rows * 30}rpx`}" />
29
28
  <view v-if="showWordLimit && !disabled" class="ml-textarea-word-count">
30
- <!-- <VoiceInput v-if="showVoice" v-model="inpVal" @input="inputEvent"></VoiceInput> -->
31
29
  <view class="ml-textarea-word-numbers">{{ value ? value.length : 0 }}/{{ maxLength }}</view>
32
30
  </view>
33
31
  </view>
@@ -38,16 +36,12 @@
38
36
  import MaliUtils from '../../../utils'
39
37
  import MaliI18n from '../../../i18n/i18n'
40
38
  import XEUtils from 'xe-utils'
41
- // import VoiceInput from './voice-input.vue'
42
39
 
43
40
  export default {
44
41
  name: 'MlTextarea',
45
42
  options: {
46
43
  virtualHost: true
47
44
  },
48
- // components: {
49
- // VoiceInput
50
- // },
51
45
  props: {
52
46
  value: {
53
47
  type: String,
@@ -65,7 +59,7 @@ export default {
65
59
  },
66
60
  placeholder: {
67
61
  type: String,
68
- default: 'ml.base.pleaseSelec'
62
+ default: 'ml.base.pleaseInput'
69
63
  },
70
64
  showWordLimit: {
71
65
  type: Boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "vue2 码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",