zydx-plus 1.35.583 → 1.35.584

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.583",
3
+ "version": "1.35.584",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <onClickOutSide :target="dropdown" :handler="handler">
3
- <div class="wrapper">
3
+ <div class="wrapper" ref="selectRef">
4
4
  <div class="custom-select"
5
5
  :class="{ 'readonly': readonly }">
6
6
  <input type="text"
@@ -10,12 +10,12 @@
10
10
  @click.stop="toggleDropDown"
11
11
  class="select-css" />
12
12
 
13
- <span class="custom-select-icons" v-if="!readonly">
13
+ <span class="custom-select-icons" v-if="!readonly" @click.stop="toggleDropDown">
14
14
  <svg xmlns="http://www.w3.org/2000/svg"
15
15
  width="16"
16
16
  height="16"
17
17
  viewBox="0 0 24 24">
18
- <g :transform="transform">
18
+ <g :transform="transform" >
19
19
  <path fill="#c0c4cc"
20
20
  d="M15.125 21.1L6.7 12.7q-.15-.15-.213-.325T6.425 12q0-.2.062-.375T6.7 11.3l8.425-8.425q.35-.35.875-.35t.9.375q.375.375.375.875t-.375.875L9.55 12l7.35 7.35q.35.35.35.863t-.375.887q-.375.375-.875.375t-.875-.375Z" />
21
21
  </g>
@@ -90,8 +90,8 @@ export default defineComponent({
90
90
  }
91
91
  },
92
92
  methods: {
93
- toggleDropDown: function (e) {
94
- const { x, y, width, height } = e.target.getBoundingClientRect()
93
+ toggleDropDown: function () {
94
+ const { x, y, width, height } = this.$refs.selectRef.getBoundingClientRect()
95
95
  this.x = x
96
96
  this.y = y + height
97
97
  this.width = width
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.583',
92
+ version: '1.35.584',
93
93
  install,
94
94
  Calendar,
95
95
  Message,