Compare commits
	
		
			7 Commits
		
	
	
		
			V2.9.8-alp
			...
			3b4d6faf35
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					3b4d6faf35 | ||
| 
						 | 
					58e538b0bd | ||
| 
						 | 
					c8fb3596ee | ||
| 
						 | 
					1db9bd4b6b | ||
| 
						 | 
					d8899785a7 | ||
| 
						 | 
					918653c9d9 | ||
| 
						 | 
					051cb8f8de | 
@@ -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",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="dv-border-box-10" :ref="ref" :style="`box-shadow: inset 0 0 25px 3px ${mergedColor[0]}`">
 | 
			
		||||
    <svg class="border" :width="width" :height="height">
 | 
			
		||||
    <svg class="dv-border-svg-container" :width="width" :height="height">
 | 
			
		||||
      <polygon :fill="backgroundColor" :points="`
 | 
			
		||||
        4, 0 ${width - 4}, 0 ${width}, 4 ${width}, ${height - 4} ${width - 4}, ${height}
 | 
			
		||||
        4, ${height} 0, ${height - 4} 0, 4
 | 
			
		||||
@@ -12,7 +12,7 @@
 | 
			
		||||
      height="150px"
 | 
			
		||||
      :key="item"
 | 
			
		||||
      v-for="item in border"
 | 
			
		||||
      :class="`${item} border`"
 | 
			
		||||
      :class="`${item} dv-border-svg-container`"
 | 
			
		||||
    >
 | 
			
		||||
      <polygon
 | 
			
		||||
        :fill="mergedColor[1]"
 | 
			
		||||
@@ -86,7 +86,7 @@ export default {
 | 
			
		||||
  height: 100%;
 | 
			
		||||
  border-radius: 6px;
 | 
			
		||||
 | 
			
		||||
  .border {
 | 
			
		||||
  .dv-border-svg-container {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    display: block;
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -292,7 +292,7 @@ export default {
 | 
			
		||||
    top: 0px;
 | 
			
		||||
    left: 0px;
 | 
			
		||||
 | 
			
		||||
    polyline {
 | 
			
		||||
    & > polyline {
 | 
			
		||||
      fill: none;
 | 
			
		||||
      stroke-width: 1;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -89,7 +89,7 @@ export default {
 | 
			
		||||
    top: 0px;
 | 
			
		||||
    left: 0px;
 | 
			
		||||
 | 
			
		||||
    polyline {
 | 
			
		||||
    & > polyline {
 | 
			
		||||
      fill: none;
 | 
			
		||||
      stroke-width: 1;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -93,7 +93,7 @@ export default {
 | 
			
		||||
    top: 0px;
 | 
			
		||||
    left: 0px;
 | 
			
		||||
 | 
			
		||||
    polyline {
 | 
			
		||||
    & > polyline {
 | 
			
		||||
      fill: none;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -105,7 +105,7 @@ export default {
 | 
			
		||||
    top: 0px;
 | 
			
		||||
    left: 0px;
 | 
			
		||||
 | 
			
		||||
    polyline {
 | 
			
		||||
    & > polyline {
 | 
			
		||||
      fill: none;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="dv-border-box-5" :ref="ref">
 | 
			
		||||
    <svg :class="`dv-svg-container  ${reverse && 'dv-reverse'}`" :width="width" :height="height">
 | 
			
		||||
    <svg :class="`dv-border-svg-container  ${reverse && 'dv-reverse'}`" :width="width" :height="height">
 | 
			
		||||
      <polygon :fill="backgroundColor" :points="`
 | 
			
		||||
        10, 22 ${width - 22}, 22 ${width - 22}, ${height - 86} ${width - 84}, ${height - 24} 10, ${height - 24}
 | 
			
		||||
      `" />
 | 
			
		||||
@@ -94,14 +94,14 @@ export default {
 | 
			
		||||
    transform: rotate(180deg);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .dv-svg-container {
 | 
			
		||||
  .dv-border-svg-container {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0px;
 | 
			
		||||
    left: 0px;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
 | 
			
		||||
    polyline {
 | 
			
		||||
    & > polyline {
 | 
			
		||||
      fill: none;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="dv-border-box-6" :ref="ref">
 | 
			
		||||
    <svg class="dv-svg-container" :width="width" :height="height">
 | 
			
		||||
    <svg class="dv-border-svg-container" :width="width" :height="height">
 | 
			
		||||
      <polygon :fill="backgroundColor" :points="`
 | 
			
		||||
        9, 7 ${width - 9}, 7 ${width - 9}, ${height - 7} 9, ${height - 7}
 | 
			
		||||
      `" />
 | 
			
		||||
@@ -86,14 +86,14 @@ export default {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  height: 100%;
 | 
			
		||||
 | 
			
		||||
  .dv-svg-container {
 | 
			
		||||
  .dv-border-svg-container {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0px;
 | 
			
		||||
    left: 0px;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
 | 
			
		||||
    polyline {
 | 
			
		||||
    & > polyline {
 | 
			
		||||
      fill: none;
 | 
			
		||||
      stroke-width: 1;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@
 | 
			
		||||
    :style="`box-shadow: inset 0 0 40px ${mergedColor[0]}; border: 1px solid ${mergedColor[0]}; background-color: ${backgroundColor}`"
 | 
			
		||||
    :ref="ref"
 | 
			
		||||
  >
 | 
			
		||||
    <svg class="dv-svg-container" :width="width" :height="height">
 | 
			
		||||
    <svg class="dv-border-svg-container" :width="width" :height="height">
 | 
			
		||||
      <polyline class="dv-bb7-line-width-2" :stroke="mergedColor[0]" :points="`0, 25 0, 0 25, 0`" />
 | 
			
		||||
      <polyline class="dv-bb7-line-width-2" :stroke="mergedColor[0]" :points="`${width - 25}, 0 ${width}, 0 ${width}, 25`" />
 | 
			
		||||
      <polyline class="dv-bb7-line-width-2" :stroke="mergedColor[0]" :points="`${width - 25}, ${height} ${width}, ${height} ${width}, ${height - 25}`" />
 | 
			
		||||
@@ -80,14 +80,14 @@ export default {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  height: 100%;
 | 
			
		||||
 | 
			
		||||
  .dv-svg-container {
 | 
			
		||||
  .dv-border-svg-container {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0px;
 | 
			
		||||
    left: 0px;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
 | 
			
		||||
    polyline {
 | 
			
		||||
    & > polyline {
 | 
			
		||||
      fill: none;
 | 
			
		||||
      stroke-linecap: round;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="dv-border-box-8" :ref="ref">
 | 
			
		||||
    <svg class="dv-svg-container" :width="width" :height="height">
 | 
			
		||||
    <svg class="dv-border-svg-container" :width="width" :height="height">
 | 
			
		||||
      <defs>
 | 
			
		||||
        <path
 | 
			
		||||
          :id="path"
 | 
			
		||||
@@ -147,7 +147,7 @@ export default {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  height: 100%;
 | 
			
		||||
 | 
			
		||||
  svg {
 | 
			
		||||
  .dv-border-svg-container {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="dv-border-box-9" :ref="ref">
 | 
			
		||||
    <svg class="dv-svg-container" :width="width" :height="height">
 | 
			
		||||
    <svg class="dv-border-svg-container" :width="width" :height="height">
 | 
			
		||||
      <defs>
 | 
			
		||||
        <linearGradient :id="gradientId" x1="0%" y1="0%" x2="100%" y2="100%">
 | 
			
		||||
          <animate
 | 
			
		||||
@@ -185,7 +185,7 @@ export default {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  height: 100%;
 | 
			
		||||
 | 
			
		||||
  svg {
 | 
			
		||||
  .dv-border-svg-container {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
 
 | 
			
		||||
@@ -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