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

View File

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

View File

@ -146,6 +146,45 @@ textAlign: ['center', 'center']
</div> </div>
</border-box-7> </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"> <border-box-7 class="other-item">
<div class="component"> <div class="component">
<number-show :number="1399" /> <number-show :number="1399" />
@ -245,5 +284,12 @@ export default {
width: 300px; width: 300px;
height: 80px; height: 80px;
} }
.percent-arc {
width: 200px;
height: 200px;
font-size: 50px;
color: aqua;
}
} }
</style> </style>