Commit 605bd2aeda730adbc713540285c11ca28f4d4b42
1 parent
130ea92a
解决Cascader 下拉弹出位置问题
Showing
3 changed files
with
11 additions
and
11 deletions
Show diff stats
examples/routers/cascader.vue
1 | 1 | <template> |
2 | - <Cascader v-model="value3" :data="data" filterable style="width: 400px"></Cascader> | |
2 | + <div> | |
3 | + <Cascader v-model="value3" :data="data" filterable style="width: 400px"></Cascader> | |
4 | + <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> | |
5 | + <Cascader v-model="value3" :data="data" filterable style="width: 400px"></Cascader> | |
6 | + <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> | |
7 | + <Cascader v-model="value3" :data="data" filterable style="width: 400px"></Cascader> | |
8 | + </div> | |
3 | 9 | </template> |
4 | 10 | <script> |
5 | 11 | export default { | ... | ... |
package-lock.json
... | ... | @@ -14027,7 +14027,8 @@ |
14027 | 14027 | "vue": { |
14028 | 14028 | "version": "2.5.16", |
14029 | 14029 | "resolved": "https://registry.npmjs.org/vue/-/vue-2.5.16.tgz", |
14030 | - "integrity": "sha512-/ffmsiVuPC8PsWcFkZngdpas19ABm5mh2wA7iDqcltyCTwlgZjHGeJYOXkBMo422iPwIcviOtrTCUpSfXmToLQ==" | |
14030 | + "integrity": "sha512-/ffmsiVuPC8PsWcFkZngdpas19ABm5mh2wA7iDqcltyCTwlgZjHGeJYOXkBMo422iPwIcviOtrTCUpSfXmToLQ==", | |
14031 | + "dev": true | |
14031 | 14032 | }, |
14032 | 14033 | "vue-hot-reload-api": { |
14033 | 14034 | "version": "2.3.0", |
... | ... | @@ -14227,15 +14228,6 @@ |
14227 | 14228 | } |
14228 | 14229 | } |
14229 | 14230 | }, |
14230 | - "vue-popperjs": { | |
14231 | - "version": "1.2.6", | |
14232 | - "resolved": "https://registry.npmjs.org/vue-popperjs/-/vue-popperjs-1.2.6.tgz", | |
14233 | - "integrity": "sha512-0SEPDdQY8NxRcDiWXTgW6nMpRcc+rSpcELsLszuPzehBqQ5/9AGAr2OGKh1smwcaRe8Rb1CtE399vNz9+jYorw==", | |
14234 | - "requires": { | |
14235 | - "popper.js": "1.14.1", | |
14236 | - "vue": "2.5.16" | |
14237 | - } | |
14238 | - }, | |
14239 | 14231 | "vue-router": { |
14240 | 14232 | "version": "3.0.1", |
14241 | 14233 | "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.0.1.tgz", | ... | ... |
src/components/cascader/cascader.vue
... | ... | @@ -357,6 +357,7 @@ |
357 | 357 | if (this.transfer) { |
358 | 358 | this.$refs.drop.update(); |
359 | 359 | } |
360 | + this.broadcast('Drop', 'on-update-popper'); | |
360 | 361 | } else { |
361 | 362 | if (this.filterable) { |
362 | 363 | this.query = ''; |
... | ... | @@ -365,6 +366,7 @@ |
365 | 366 | if (this.transfer) { |
366 | 367 | this.$refs.drop.destroy(); |
367 | 368 | } |
369 | + this.broadcast('Drop', 'on-destroy-popper'); | |
368 | 370 | } |
369 | 371 | this.$emit('on-visible-change', val); |
370 | 372 | }, | ... | ... |