|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="width">
|
|
|
<textarea v-bind:class="{ textarea: true, not_enough: highlight && !isEnough, enough: highlight && isEnough }" type="text" v-model="inputText" />
|
|
|
- <SimpleProgressBar class="progbar" :count="len" max="270" steps="10"/>
|
|
|
+ <SimpleProgressBar class="progbar" :count="len" :max="options.min" :steps="options.steps"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -16,12 +16,13 @@
|
|
|
},
|
|
|
|
|
|
props: [
|
|
|
- 'highlight'
|
|
|
+ 'highlight',
|
|
|
+ 'options'
|
|
|
],
|
|
|
|
|
|
computed: {
|
|
|
isEnough() {
|
|
|
- return this.inputText.length >= 270
|
|
|
+ return this.inputText.length >= this.options.min
|
|
|
},
|
|
|
len() {
|
|
|
return this.inputText.length
|