some modify

This commit is contained in:
jiaming 2018-12-17 16:49:33 +08:00
parent 2a9b465bb7
commit 29d29c2739
5 changed files with 84 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
.DS_Store
node_modules
/dist
/.svn
# local env files
.env.local

Binary file not shown.

View File

@ -12,7 +12,6 @@
<div class="text-info">并在main.js中引入他们即可使用</div>
<highlight-code>
// componentshighlightCode, ,
// main.js
import datavComponents from './components/index.js'
import datavPlugins from './plugin/index.js'

View File

@ -45,6 +45,18 @@ export default {
}
]
}
},
methods: {
initActiveIndex () {
const { $route: { name }, menuData } = this
this.activeIndex = menuData.findIndex(({ routerName }) => routerName === name)
}
},
created () {
const { initActiveIndex } = this
initActiveIndex()
}
}
</script>

View File

@ -1,5 +1,65 @@
<template>
<div id="other">
<border-box-7 class="other-item">
<div class="component">
<water-level-pond :level="[60, 40]" />
</div>
<div class="config-info">
<div class="title">Water-Level-Pond</div>
<highlight-code>
&lt;water-level-pond :level="[60, 40]" /&gt;
</highlight-code>
<highlight-code>
// level
// colors 使
// colors
// noGradienttrue
</highlight-code>
</div>
</border-box-7>
<border-box-7 class="other-item">
<div class="component">
<water-level-pond :level="[60, 40]" type="rect" :waveNum="2" :waveHeight="0.3" />
</div>
<div class="config-info">
<div class="title">Water-Level-Pond</div>
<highlight-code>
&lt;water-level-pond :level="[60, 40]" type="rect" :waveNum="2" :waveHeight="0.3" /&gt;
</highlight-code>
<highlight-code>
//
// waveNum
// waveHeight
</highlight-code>
</div>
</border-box-7>
<border-box-7 class="other-item">
<div class="component">
<water-level-pond :level="[60, 40]" type="roundRect" borderColor="rgba(45, 219, 216, 0.5)" />
</div>
<div class="config-info">
<div class="title">Water-Level-Pond</div>
<highlight-code>
&lt;water-level-pond :level="[60, 40]" type="roundRect" borderColor="rgba(45, 219, 216, 0.5)" /&gt;
</highlight-code>
<highlight-code>
//
//
</highlight-code>
</div>
</border-box-7>
<border-box-7 class="other-item">
<div class="component">
<percent-pond :percent="66" />
@ -9,7 +69,7 @@
<div class="title">Percent-Pond</div>
<highlight-code>
&lt;percent-pond :percent="1399" /&gt;
&lt;percent-pond :percent="66" /&gt;
</highlight-code>
</div>
</border-box-7>
@ -32,7 +92,10 @@
<script>
export default {
name: 'Other'
name: 'Other',
data () {
return {}
}
}
</script>
@ -59,6 +122,7 @@ export default {
display: flex;
flex-direction: row;
justify-content: center;
flex-shrink: 0;
}
.config-info {
@ -71,6 +135,11 @@ export default {
}
}
.water-level-pond {
width: 150px;
height: 200px;
}
.percent-pond {
width: 300px;
height: 80px;