[update] 修改多选日期组件
This commit is contained in:
@@ -61,23 +61,23 @@ export default {
|
||||
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(() => {
|
||||
console.log(drop)
|
||||
if (drop) {
|
||||
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)
|
||||
}
|
||||
setTimeout(() => {
|
||||
document.getElementsByClassName(this.fieldName + '-drop')[0].children[0].children[0].children[0].children[0].children[0].value = this.checkedValue.join(',')
|
||||
})
|
||||
}, 100)
|
||||
})
|
||||
// setTimeout(() => {
|
||||
// document.getElementsByClassName(this.fieldName + '-drop')[0].children[0].children[0].children[0].children[0].children[0].value = this.checkedValue.join(',')
|
||||
// }, 100)
|
||||
} else {
|
||||
this.open = open
|
||||
this.$nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user