update for v2.0.0-alpha
This commit is contained in:
1 parent
31fa0c6698
commit
d1bab347aa
8 files changed
+357
-299
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { debounce, observerDomResize } from '../util/index'
|
||||
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
@@ -40,12 +42,12 @@ export default {
|
||||
})
|
||||
},
|
||||
getDebounceInitWHFun () {
|
||||
const { debounce, initWH } = this
|
||||
const { initWH } = this
|
||||
|
||||
this.debounceInitWHFun = debounce(100, initWH)
|
||||
},
|
||||
bindDomResizeCallback () {
|
||||
const { dom, debounceInitWHFun, observerDomResize } = this
|
||||
const { dom, debounceInitWHFun } = this
|
||||
|
||||
this.domObserver = observerDomResize(dom, debounceInitWHFun)
|
||||
|
||||
|
||||
Reference in new issue
Block a user