Compare commits
	
		
			3 Commits
		
	
	
		
			V2.9.9-alp
			...
			3b4d6faf35
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					3b4d6faf35 | ||
| 
						 | 
					58e538b0bd | ||
| 
						 | 
					c8fb3596ee | 
@@ -1,3 +1,10 @@
 | 
			
		||||
# 2.9.9-alpha (2020-08-25)
 | 
			
		||||
 | 
			
		||||
### Optmization
 | 
			
		||||
 | 
			
		||||
- **borderBox:** Canonical class name.
 | 
			
		||||
- **autoResize(mixin):** Add exception prompt.
 | 
			
		||||
 | 
			
		||||
# 2.9.8-alpha (2020-08-20)
 | 
			
		||||
 | 
			
		||||
### Optmization
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@jiaminghi/data-view",
 | 
			
		||||
  "version": "2.9.8",
 | 
			
		||||
  "version": "2.9.9",
 | 
			
		||||
  "author": "JiaMing <743192023@qq.com>",
 | 
			
		||||
  "description": "Vue Large screen data display component library",
 | 
			
		||||
  "main": "lib/index.js",
 | 
			
		||||
 
 | 
			
		||||
@@ -32,8 +32,14 @@ export default {
 | 
			
		||||
        $nextTick(e => {
 | 
			
		||||
          const dom = this.dom = $refs[ref]
 | 
			
		||||
 | 
			
		||||
          this.width = dom.clientWidth
 | 
			
		||||
          this.height = dom.clientHeight
 | 
			
		||||
          this.width = dom ? dom.clientWidth : 0
 | 
			
		||||
          this.height = dom ? dom.clientHeight : 0
 | 
			
		||||
 | 
			
		||||
          if (!dom) {
 | 
			
		||||
            console.warn('DataV: Failed to get dom node, component rendering may be abnormal!')
 | 
			
		||||
          } else if (!this.width || !this.height) {
 | 
			
		||||
            console.warn('DataV: Component width or height is 0px, rendering abnormality may occur!')
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          if (typeof onResize === 'function' && resize) onResize()
 | 
			
		||||
 | 
			
		||||
@@ -56,6 +62,8 @@ export default {
 | 
			
		||||
    unbindDomResizeCallback () {
 | 
			
		||||
      let { domObserver, debounceInitWHFun } = this
 | 
			
		||||
 | 
			
		||||
      if (!domObserver) return
 | 
			
		||||
 | 
			
		||||
      domObserver.disconnect()
 | 
			
		||||
      domObserver.takeRecords()
 | 
			
		||||
      domObserver = null
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user