Open yanglongjuan opened 3 years ago
handleItemClick (obj) { this.hideSubMenu = !this.hideSubMenu,(想要加句代码) this.currentCode = obj.dialCode // 更改父组件的值 this.$emit('update:countryCode', obj.dialCode) setTimeout(() => { document.querySelector('.highlight').scrollIntoView({ block: 'center', behavior: 'smooth' }) }, 100) }
不好意思,隔了这么久才看到你的消息,是我疏忽,实在抱歉!!! 我已经在github上修改了,已经更新到npm上了
handleItemClick (obj) { this.hideSubMenu = !this.hideSubMenu,(想要加句代码) this.currentCode = obj.dialCode // 更改父组件的值 this.$emit('update:countryCode', obj.dialCode) setTimeout(() => { document.querySelector('.highlight').scrollIntoView({ block: 'center', behavior: 'smooth' }) }, 100) }