...
|
...
|
@@ -7,7 +7,7 @@ |
|
|
</div>
|
|
|
</i>
|
|
|
<p v-if="viewText" class="icon-btn-text" :style="textStyle">
|
|
|
<span class="view-text">{{Number(viewText) > 0 ? viewText : ''}}</span>
|
|
|
<span class="view-text">{{viewText}}</span>
|
|
|
<span class="placeholder-text">{{placText}}</span>
|
|
|
</p>
|
|
|
</div>
|
...
|
...
|
@@ -153,7 +153,13 @@ export default { |
|
|
return style;
|
|
|
},
|
|
|
viewText() {
|
|
|
return `${(this.editText === null ? this.text : this.editText)}`;
|
|
|
let text = (this.editText === null ? this.text : this.editText);
|
|
|
|
|
|
if (!isNaN(Number(text))) {
|
|
|
text = text > 0 ? text : '';
|
|
|
}
|
|
|
|
|
|
return text;
|
|
|
},
|
|
|
placText() {
|
|
|
if (!isNaN(Number(this.text)) && this.viewText.length) {
|
...
|
...
|
|