[update] 修改bug80175,81310
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
:ref="fieldName"
|
:ref="fieldName"
|
||||||
:dropdownClassName="'j-multiple-date-picker ' + fieldName + '-drop'"
|
:dropdownClassName="'j-multiple-date-picker ' + fieldName + '-drop'"
|
||||||
@openChange="handleOpenChange"
|
@openChange="handleOpenChange"
|
||||||
:getCalendarContainer="(trigger) => trigger.parentNode"
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
>
|
>
|
||||||
@@ -57,9 +56,28 @@ export default {
|
|||||||
console.log(open)
|
console.log(open)
|
||||||
if (open) {
|
if (open) {
|
||||||
this.open = open
|
this.open = open
|
||||||
setTimeout(() => {
|
this.$nextTick(() => {
|
||||||
document.getElementsByClassName(this.fieldName + '-drop')[0].children[0].children[0].children[0].children[0].children[0].value = this.checkedValue.join(',')
|
// 为了固定弹出层,把弹出层dom元素移动
|
||||||
}, 100)
|
const drop = document.getElementsByClassName(this.fieldName + '-drop')[0]
|
||||||
|
const picker = document.getElementById(this.fieldName)
|
||||||
|
// 创建第二层外层元素
|
||||||
|
const outerWrapperTwo = document.createElement('div')
|
||||||
|
outerWrapperTwo.appendChild(drop)
|
||||||
|
// 创建新的外层元素
|
||||||
|
const outerWrapper = document.createElement('div')
|
||||||
|
outerWrapper.style.position = 'absolute'
|
||||||
|
outerWrapper.style.top = '0px'
|
||||||
|
outerWrapper.style.left = '0px'
|
||||||
|
outerWrapper.style.width = '100%'
|
||||||
|
outerWrapper.appendChild(outerWrapperTwo)
|
||||||
|
picker.appendChild(outerWrapper)
|
||||||
|
this.$nextTick(() => {
|
||||||
|
document.getElementsByClassName(this.fieldName + '-drop')[0].children[0].children[0].children[0].children[0].children[0].value = this.checkedValue.join(',')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
// setTimeout(() => {
|
||||||
|
// document.getElementsByClassName(this.fieldName + '-drop')[0].children[0].children[0].children[0].children[0].children[0].value = this.checkedValue.join(',')
|
||||||
|
// }, 100)
|
||||||
} else {
|
} else {
|
||||||
this.open = open
|
this.open = open
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user