some modify

This commit is contained in:
jiaming 2018-12-21 18:29:49 +08:00
parent 700b617f57
commit 581034faf3
4 changed files with 56 additions and 5 deletions

Binary file not shown.

View File

@ -44,7 +44,7 @@ export default {
},
methods: {
initAxis () {
const { calcMaxMinValue, calcValueAxisTag, calcLabelAxisTag, calcXYAxisFS } = this
const { calcMaxMinValue, calcValueAxisTag, calcLabelAxisTag } = this
calcMaxMinValue()
@ -52,28 +52,32 @@ export default {
calcLabelAxisTag()
calcXYAxisFS()
const { calcXYAxisFS, calcXYLabelMaxWidth, calcAxisMargin } = this
const { calcXYLabelMaxWidth, calcAxisMargin, calcAxisOriginPos } = this
calcXYAxisFS()
calcXYLabelMaxWidth()
calcAxisMargin()
calcAxisOriginPos()
const { calcAxisOriginPos, calcAxisWH, calcValueTagPos } = this
const { calcAxisWH, calcValueTagPos, calcLabelTagPos, calcTagGap, calcTagColor, calcGridColor } = this
calcAxisOriginPos()
calcAxisWH()
calcValueTagPos()
const { calcLabelTagPos, calcTagGap, calcTagColor } = this
calcLabelTagPos()
calcTagGap()
calcTagColor()
const { calcGridColor } = this
calcGridColor()
},
calcMaxMinValue () {

View File

@ -1270,6 +1270,7 @@ export default {
width: 80%;
margin-left: 20%;
text-align: center;
margin-bottom: 20px;
.highlight-code {
margin: -40px 0px;

View File

@ -146,6 +146,45 @@ textAlign: ['center', 'center']
</div>
</border-box-7>
<border-box-7 class="other-item">
<div class="component">
<percent-arc :percent="66" :ringLineWidth="10" :arcLineWidth="20" arcType="round">66</percent-arc>
</div>
<div class="config-info">
<div class="title">Percent-Arc</div>
<highlight-code>
&lt;percent-arc :percent="66" :ringLineWidth="10" :arcLineWidth="20" arcType="round"&gt;66&lt;percent-arc/&gt;
</highlight-code>
<highlight-code>
// slot
// percent
// arcType round | butt
// raidus
// ringLineWidth 线
// arcLineWidth 线
// ringColor 线
// arcColor 线
</highlight-code>
</div>
</border-box-7>
<border-box-7 class="other-item">
<div class="component">
<percent-arc :percent="66" ringColor="#c7166f" :arcColor="['#2755fe', '#ff12cb']">66</percent-arc>
</div>
<div class="config-info">
<div class="title">Percent-Arc</div>
<highlight-code>
&lt;percent-arc :percent="66" ringColor="#c7166f" :arcColor="['#2755fe', '#ff12cb']"&gt;66&lt;percent-arc/&gt;
</highlight-code>
</div>
</border-box-7>
<border-box-7 class="other-item">
<div class="component">
<number-show :number="1399" />
@ -245,5 +284,12 @@ export default {
width: 300px;
height: 80px;
}
.percent-arc {
width: 200px;
height: 200px;
font-size: 50px;
color: aqua;
}
}
</style>