no message

Former-commit-id: 800498b074b070bc32eda9b271d721223c25647b
Former-commit-id: e4359520f107af6b4ff4319b28dd338e91571254
Former-commit-id: b1722f550df1df033159f6f97db22b643e6573f5
This commit is contained in:
李杨
2018-03-27 20:38:35 +08:00
parent ac2108c405
commit 48a64fda57

View File

@@ -1,22 +1,22 @@
import sleep from '@/utils/sleep.js'
export default {
mounted () {
// 写法 1 测试有效
window.onload = () => {
console.log(this.$refs)
console.log('----')
for (let prop in this.$refs) {
console.log(this.$refs[prop])
}
}
this.keyboardExtentInit()
},
methods: {
// 初始化
keyboardExtentInit () {
//
async keyboardExtentInit () {
await sleep(1000)
for (const propName in this.$refs) {
if (this.$refs.hasOwnProperty(propName)) {
console.log(propName, this.$refs[propName])
}
}
},
// 返回ref名称
keyboardExtentRefNameMaker (scope) {
return `${scope.$index}${scope.column.property}`
return `kb-${scope.$index}-${scope.column.property}-kb`
}
}
}