eoss-mobiles 0.2.91 → 0.2.93

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.
@@ -6,12 +6,11 @@
6
6
  v-model="inputValue"
7
7
  readonly
8
8
  clickable
9
-
10
9
  :right-icon="disabled || readonly ? '' : 'arrow'"
11
10
  >
12
11
  <template slot="input">
13
- <div style="width:100%" @click="clickTree()">
14
- <div @click.stop="handleClick" style="width:100%">
12
+ <div style="width:100%" @click="clickTree()">
13
+ <div style="width:100%">
15
14
  <div
16
15
  v-if="newNextUserList.length > 0 && multiple"
17
16
  class="selector-checkList"
@@ -35,6 +34,7 @@
35
34
  :disabled="selectDisabled"
36
35
  :data="newNextUserList"
37
36
  direction="horizontal"
37
+ @click="handleClickRadio"
38
38
  @change="handleChange"
39
39
  />
40
40
  </div>
@@ -59,7 +59,10 @@
59
59
 
60
60
  <div v-else style="color:#c8c9cc">
61
61
  {{
62
- disabled && !$attrs.placeholder ?'暂无数据' : !$attrs.placeholder ? '请选择' + $attrs.label
62
+ disabled && !$attrs.placeholder
63
+ ? '暂无数据'
64
+ : !$attrs.placeholder
65
+ ? '请选择' + $attrs.label
63
66
  : $attrs.placeholder
64
67
  }}
65
68
  </div>
@@ -76,6 +79,7 @@ export default {
76
79
  newSelectList: [],
77
80
  newNextUserList: [],
78
81
  selectValue: '',
82
+ openSelect: true
79
83
  };
80
84
  },
81
85
  props: {
@@ -87,9 +91,9 @@ export default {
87
91
  type: Boolean,
88
92
  default: false
89
93
  },
90
- inputValue:{
91
- type:String,
92
- default:''
94
+ inputValue: {
95
+ type: String,
96
+ default: ''
93
97
  },
94
98
  readonly: { type: Boolean, default: false },
95
99
  selectDisabled: {
@@ -142,7 +146,9 @@ export default {
142
146
  }
143
147
  },
144
148
  methods: {
145
- handleClick() {},
149
+ handleClickRadio(val){
150
+ this.openSelect = false
151
+ },
146
152
  getDefault() {
147
153
  let selectArr = [];
148
154
  const _that = this;
@@ -183,6 +189,7 @@ export default {
183
189
  },
184
190
  handleChange(val, info) {
185
191
  const _this = this;
192
+ _this.openSelect = false;
186
193
  if (_this.multiple) {
187
194
  if (info.checked) {
188
195
  if (this.newSelectList.length > 0 && !this.multiple) {
@@ -215,7 +222,12 @@ export default {
215
222
  if (this.disabled === true) {
216
223
  return; // 表单禁用不显示弹窗
217
224
  }
218
- this.$emit('click');
225
+ setTimeout(() => {
226
+ if (this.openSelect) {
227
+ this.$emit('click');
228
+ }
229
+ this.openSelect = true;
230
+ }, 30);
219
231
  },
220
232
  /**
221
233
  * delteList
package/src/index.js CHANGED
@@ -105,7 +105,7 @@ if (typeof window !== 'undefined' && window.Vue) {
105
105
  }
106
106
 
107
107
  export default {
108
- version: '0.2.91',
108
+ version: '0.2.93',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,