Skip to content

Commit f1be145

Browse files
committed
doc: spellcheck
1 parent 408a456 commit f1be145

File tree

4 files changed

+44
-15
lines changed

4 files changed

+44
-15
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ indent_size = 2
44
end_of_line = lf
55
trim_trailing_whitespace = true
66
insert_final_newline = true
7-
max_line_length = 100
7+
max_line_length = 120

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ install the library via npm
1717
```
1818
npm i -S vue-ellipse-progress
1919
```
20-
The library is provided as a Vuejs plugin. So just initialize it in your ``main.js``
20+
The library is provided as a Vue.js plugin. So just initialize it in your ``main.js``
2121
```js
2222
import VueEllipseProgress from 'vue-ellipse-progress';
2323

@@ -294,7 +294,7 @@ forces no data state. The component provide an no data state for the case that y
294294

295295
- ### `angle`
296296

297-
is any Number. Defines the statring point of the progress cirlce line
297+
is any Number. Defines the starting point of the progress circle line
298298

299299
<br>
300300

@@ -331,10 +331,10 @@ This code ...
331331
```html
332332
<vue-ellipse-progress ....>
333333

334-
<span slot="legend-value">/200</span>
335-
<p slot="legend-caption">TASKS DONE</p>
334+
<span slot="legend-value">/200</span>
335+
<p slot="legend-caption">TASKS DONE</p>
336336

337-
</vue-ellipse-progress>
337+
</vue-ellipse-progress>
338338
```
339339
... produces following result. The slots are marked corresponding:
340340

src/App.vue

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div id="app">
3-
<div class="ep-test-card" :style="{maxHeight: size + 2000 + 'px'}">
3+
<!--<div class="ep-test-card" :style="{maxHeight: size + 2000 + 'px'}">
44
<div>
55
<label for="progress">
66
Progress
@@ -40,6 +40,7 @@
4040
:size="Number(size)"
4141
:thickness="10"
4242
:empty_thickness="5"
43+
line="round"
4344
:line_mode="{mode: 'in', offset: 10}"
4445
:legend="true"
4546
:legend_value="progress"
@@ -68,7 +69,7 @@
6869
:animation="{type: 'loop', duration: 1000}"
6970
font_size="4rem">
7071
<span slot="legend_value">/200</span>
71-
<p slot="legend_capture">GOOD JOB</p>
72+
<p slot="legend-caption">GOOD JOB</p>
7273
</vue-ellipse-progress>
7374
<vue-ellipse-progress :progress="parseFloat(tasksDonePercent)"
7475
:color="color"
@@ -84,7 +85,35 @@
8485
:animation="{type: 'bounce', duration: 1000}"
8586
font_size="2rem">
8687
<span slot="legend_value">/200</span>
87-
<p style="margin-bottom: 0" slot="legend_capture">GOOD JOB</p>
88+
<p style="margin-bottom: 0" slot="legend-caption">GOOD JOB</p>
89+
</vue-ellipse-progress>
90+
</div>-->
91+
<div class="ep-test-card" style="background-color: white; padding: 10%" :style="{maxHeight: size + 2000 + 'px'}">
92+
<vue-ellipse-progress :progress="parseFloat(progress)" :size="size"
93+
:thickness="15"
94+
:empty_thickness="15"
95+
font_size="6rem"
96+
font_color="black"
97+
:color="color"
98+
:line_mode="{mode: 'normal', offset: 10}"
99+
>
100+
<span slot="legend-value" style="color: black">legend value</span>
101+
<p style="color: black" slot="legend-caption">legend Caption</p>
102+
</vue-ellipse-progress>
103+
<vue-ellipse-progress :progress="parseFloat(tasksDonePercent)"
104+
:color="color"
105+
:size="size"
106+
:thickness="21"
107+
angle=""
108+
:loading="loading"
109+
:empty_thickness="20"
110+
:line_mode="{mode: 'normal', offset: 10}"
111+
:legend_value="tasks_done"
112+
font_color="black"
113+
:animation="{type: 'bounce', duration: 1000}"
114+
font_size="6rem">
115+
<span style="color: black; display: inline-block; border: 2px red solid" slot="legend-value">/200</span>
116+
<p style="margin-bottom: 0; border: 2px blue solid; color: black; font-size: 3rem" slot="legend-caption">TASKS DONE</p>
88117
</vue-ellipse-progress>
89118
</div>
90119
</div>
@@ -97,9 +126,9 @@ export default {
97126
data: () => ({
98127
loading: false,
99128
noData: false,
100-
progress: 45.5,
101-
tasks_done: 125,
102-
size: 250,
129+
progress: 100,
130+
tasks_done: 180,
131+
size: 550,
103132
color: {
104133
gradient: {
105134
radial: false,
@@ -111,7 +140,7 @@ export default {
111140
opacity: '1',
112141
},
113142
{
114-
color: '#6849ff',
143+
color: '#572883',
115144
offset: '100',
116145
opacity: '1',
117146
},

src/components/EllipseProgressContainer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
<div class="ep-legend--container" :style="{maxWidth: `${size}px`}">
1919
<span v-show="!loading" v-if="legend && dataIsAvailable" class="ep-legend--value" :style="{fontSize: font_size, color: font_color}">{{legendValue}}
20-
<slot name="legend_value"></slot>
20+
<slot name="legend-value"></slot>
2121
</span>
22-
<slot name="legend_capture"></slot>
22+
<slot name="legend-caption"></slot>
2323
</div>
2424
</div>
2525
</div>

0 commit comments

Comments
 (0)