zydx-plus 1.35.617 → 1.35.618

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.35.617",
3
+ "version": "1.35.618",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -24,7 +24,7 @@
24
24
  fill="#c0c4cc"/>
25
25
  </g>
26
26
  </svg>
27
- <svg v-else
27
+ <svg v-if="selected&&clearShow"
28
28
  @click.stop="clearSelected"
29
29
  height="16"
30
30
  viewBox="0 0 1024 1024"
@@ -105,6 +105,10 @@ export default defineComponent({
105
105
  hover: {
106
106
  type: String,
107
107
  default: '#C64C10'
108
+ },
109
+ clearShow: {
110
+ type: Boolean,
111
+ default: true
108
112
  }
109
113
  },
110
114
  data() {
@@ -153,12 +157,18 @@ export default defineComponent({
153
157
  if (this.multiple) {
154
158
  option.active = !option.active
155
159
  let value = ''
160
+ let label = ''
156
161
  this.options.forEach(x => {
157
- if (x.active) value += `${x.value},`
162
+ if (x.active) {
163
+ value += `${x.value},`
164
+ label += `${x.label}、`
165
+ }
158
166
  })
167
+ this.selected = label.slice(0, -1)
159
168
  this.$emit('update:value', value.slice(0, -1))
160
169
  this.$emit('select', {label: option.label, value: option.value})
161
170
  } else {
171
+ this.selected = option.label
162
172
  this.$emit('update:value', option.value)
163
173
  this.$emit('select', option)
164
174
  this.isOpen = false
package/src/index.js CHANGED
@@ -87,7 +87,7 @@ function install(app) {
87
87
  }
88
88
 
89
89
  export default {
90
- version: '1.35.617',
90
+ version: '1.35.618',
91
91
  install,
92
92
  Calendar,
93
93
  Message,