Skip to content

Commit ffb9486

Browse files
committed
chore(examples/basic): add min/max with input count
1 parent 3255b36 commit ffb9486

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/basic/src/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,16 @@ const launch = el(
2929
'button',
3030
{
3131
onclick: () => {
32-
fireworks.launch(Number(fires.value))
32+
fireworks.launch(Number(count.value))
3333
}
3434
},
3535
'Launch'
3636
)
3737

38-
const fires = el('input', {
38+
const count = el('input', {
3939
value: '1',
40+
min: '1',
41+
max: '15',
4042
type: 'number',
4143
placeholder: 'count',
4244
style: {
@@ -56,7 +58,7 @@ const buttons = el(
5658
start,
5759
stop,
5860
launch,
59-
fires
61+
count
6062
)
6163

6264
document.body.appendChild(buttons)

0 commit comments

Comments
 (0)