diff --git a/src/resources/components/UserSelect/UserSelect.vue b/src/resources/components/UserSelect/UserSelect.vue index 48274bb52c69ae89c06730c2de865d4804fc456a..56826a2e7bdb26fa5c9de0aed6aa3c0952017f76 100644 --- a/src/resources/components/UserSelect/UserSelect.vue +++ b/src/resources/components/UserSelect/UserSelect.vue @@ -549,13 +549,19 @@ export default { if ((!$el && $el === event.target) || $el.contains(event.target)) { return; } - this.isVisible = false; + const $contain = this.$refs.dropdownContain ? this.$refs.dropdownContain.$el || null : null; if ((!$contain && $contain === event.target) || $contain.contains(event.target)) { return; } - } else { - this.caretPosition = -1; + + if (this.transfer) { + //如果是transfer的时候下拉的区域点击时是在dropdown外层的div上 + if ($el && $el.offsetParent && ($el.offsetParent === event.target || $el.offsetParent.contains(event.target))) { + return; + } + } + this.isVisible = false; } }, updatePosition() { diff --git a/src/resources/plugins/TsForm/TsFormSelect.vue b/src/resources/plugins/TsForm/TsFormSelect.vue index c39c00d242eb1d1def631cd1ac6082016e4f5afe..a390680711b62c6ed13f2be652d13f0f983a95ad 100755 --- a/src/resources/plugins/TsForm/TsFormSelect.vue +++ b/src/resources/plugins/TsForm/TsFormSelect.vue @@ -1,5 +1,5 @@