mali-applet-ui 0.1.74 → 0.1.75

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.
@@ -17,6 +17,7 @@
17
17
  :maxlength="maxlength"
18
18
  :disabled="disabled"
19
19
  @input="inputEvent"
20
+ @focus="focusEvent"
20
21
  @blur="blurEvent"
21
22
  @confirm="confirmEvent"/>
22
23
  <view v-if="clearable && !disabled && inpVal" class="ml-input-clear-icon" @click.stop="clearEvent">
@@ -87,6 +88,9 @@ export default {
87
88
  this.$emit('input', value)
88
89
  this.$emit('change', { value })
89
90
  },
91
+ focusEvent () {
92
+ this.$emit('focus', { value: this.inpVal })
93
+ },
90
94
  blurEvent () {
91
95
  this.$emit('blur', { value: this.inpVal })
92
96
  },
@@ -14,6 +14,8 @@
14
14
  :disabled="disabled"
15
15
  :show-count="false"
16
16
  @input="inputEvent"
17
+ @focus="focusEvent"
18
+ @blur="blurEvent"
17
19
  :style="{color: fontColor, height: `${rows * 30}rpx`}" />
18
20
  <view v-if="showWordLimit && !disabled" class="ml-textarea-word-count">
19
21
  <!-- <VoiceInput v-if="showVoice" v-model="inpVal" @input="inputEvent"></VoiceInput> -->
@@ -97,7 +99,13 @@ export default {
97
99
  }
98
100
  this.$emit('input', value)
99
101
  this.$emit('change', { value })
100
- }
102
+ },
103
+ focusEvent () {
104
+ this.$emit('focus', { value: this.inpVal })
105
+ },
106
+ blurEvent () {
107
+ this.$emit('blur', { value: this.inpVal })
108
+ }
101
109
  }
102
110
  }
103
111
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",