-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.vue
53 lines (50 loc) · 1.15 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<template lang="pug">
.app
label Country:
input(v-query:sync="'country'", v-model="countryData")
label City:
input(v-query:sync="'city'")
.numbers
label Min:
select(v-query:sync="'min'", v-model="minValueData")
option(selected, value="") Min..
option(v-for="i in 10", :key="i", :value="i * 10") {{ i * 10 }} $
label Max:
select(v-query:sync="'max'")
option(selected, value="") Max..
option(v-for="i in 10", :key="i", :value="i * 10") {{ i * 10 }} $
label Is Registered:
input(
type="checkbox",
v-query:sync="'registered'",
v-model="isRegisteredData"
)
p Country: {{ countryData }}
p Min Value: {{ minValueData }}
p IsRegistered: {{ isRegisteredData }}
</template>
<script lang="ts">
import Vue from "vue";
export default Vue.extend({
name: "App",
data() {
return {
countryData: "",
minValueData: 0,
isRegisteredData: false,
};
},
});
</script>
<style lang="scss">
.app {
display: flex;
align-items: center;
flex-direction: column;
gap: 10px;
.numbers {
display: flex;
gap: 10px;
}
}
</style>