Skip to content

Commit 362011b

Browse files
Update documentation
1 parent 3bb2508 commit 362011b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/App.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
onPasteSeparator: '',
1414
tags: ['Jerry', 'Kramer', 'Elaine', 'George'],
1515
htmlCode: '',
16-
validate: ''
16+
validate: '',
17+
length: {min: null, max: null}
1718
}
1819
},
1920
@@ -29,6 +30,7 @@
2930
html += this.tags ? ' :tags="tags"' : ''
3031
html += this.readOnly ? ' :read-only="true"' : ''
3132
html += this.validate ? ` validate="${this.validate}"` : ''
33+
html += this.length.min || this.length.max ? ` length="{min: ${this.length.min}, max: ${this.length.max}}"` : ''
3234
return `${html}></input-tag>`
3335
}
3436
}
@@ -73,7 +75,8 @@
7375
:placeholder='placeholder',
7476
:on-paste-separator='onPasteSeparator',
7577
:read-only='readOnly',
76-
:validate='validate'
78+
:validate='validate',
79+
:length='length'
7780
)
7881

7982
h3
@@ -105,6 +108,13 @@
105108
option(value='digits') Digits
106109
option(value='isodate') ISO Date
107110

111+
.form-group
112+
p.label min tag length:
113+
input(v-model='length.min' type='number')
114+
br
115+
p.label max tag length:
116+
input(v-model='length.max' type='number')
117+
108118
.form-group
109119
p.label tags:
110120
code {{ tags }}

0 commit comments

Comments
 (0)