update dist and lib

This commit is contained in:
jiaming743
2020-05-25 15:57:26 +08:00
parent 71a9be2a13
commit e938b66dc0
17 changed files with 136 additions and 101 deletions

View File

@ -44,6 +44,8 @@
</template>
<script>
import { uuid } from '../../../util/index'
import { deepMerge } from '@jiaminghi/charts/lib/util/index'
import { deepClone } from '@jiaminghi/c-render/lib/plugin/util'
@ -57,13 +59,14 @@ export default {
}
},
data () {
const timestamp = Date.now()
const id = uuid()
return {
gradientId1: `percent-pond-gradientId1-${timestamp}`,
gradientId2: `percent-pond-gradientId2-${timestamp}`,
gradientId1: `percent-pond-gradientId1-${id}`,
gradientId2: `percent-pond-gradientId2-${id}`,
width: 0,
height: 0,
id: 0,
defaultConfig: {
/**
@ -234,10 +237,10 @@ export default {
await $nextTick()
const dom = $refs['percent-pond']
const { clientWidth, clientHeight } = $refs['percent-pond']
this.width = dom.clientWidth
this.height = dom.clientHeight
this.width = clientWidth
this.height = clientHeight
},
mergeConfig () {
const { config, defaultConfig } = this