Skip to content

Commit b6700ef

Browse files
authored
Update
1 parent 2c492a6 commit b6700ef

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

input/example/DemoPageView.vue

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ const vFocus = { mounted: (el) => el.focus() }
1717
let accentColor = '#ff6600'
1818
1919
// Inputs
20-
let select1 = ref(null)
21-
let select2 = ref(null)
22-
let prefix = ref(2)
2320
let input = ref('')
2421
let password = ref('')
2522
let textarea = ref('Product description ...')
2623
let payment = ref(['cash']) // Selected in array
2724
let remember_me = ref(false)
2825
let radio = ref('')
26+
let select_country = ref(48)
27+
let select_code = ref(1)
28+
let select_name = ref('Ala')
2929
3030
onMounted(() => {
3131
// Route
@@ -61,29 +61,27 @@ function onSubmit(e) {
6161
<template>
6262
<TopMenu />
6363

64-
<p class="color">Home page {{ name }}</p>
64+
<p class="color">Home page</p>
6565

6666
<form @submit.prevent="onSubmit" style="margin: 50px auto; width: 90%; max-width: 530px; padding: 30px">
6767
<Input :focus="'true'" type="text" name="name" v-model="input" placeholder="Name" label="Name" @keydown="validate" />
6868

6969
<Password type="password" name="password" v-model="password" placeholder="Password" label="Password" @valid="validPass" @invalid="invalidPass" />
7070

71-
<SelectPrefix label="Prefix" v-model="prefix" name="prefix" />
71+
<SelectPrefix name="prefix" v-model="select_country" :label="$t('register.Prefix')" />
7272

7373
<Select
74-
v-model="select1"
75-
:placeholder="'Wybierz'"
76-
:label="'Language'"
77-
:name="'language'"
74+
name="code"
75+
v-model="select_code"
76+
:label="$t('Language')"
7877
:options="[
7978
{ key: 1, value: 'Php' },
8079
{ key: 2, value: 'Css' },
8180
{ key: 3, value: 'Html' },
8281
{ key: 4, value: 'JavaScript' },
83-
]"
84-
:class="'custom-class'" />
82+
]" />
8583

86-
<Select v-model="select2" :placeholder="'Wybierz'" :label="'Language'" :name="'language1'" :options="['Go', 'Python', 'Rust', 'Javascript', 'Php', 'Html', 'Vue', 'React', 'Css']" :class="'custom-class'" />
84+
<Select name="code" v-model="select_name" :label="$t('Language')" :options="['Ala', 'Ma', 'Kota']" />
8785

8886
<Textarea name="desc" v-model="textarea" placeholder="Some text" label="Description" />
8987

@@ -98,7 +96,7 @@ function onSubmit(e) {
9896

9997
<button class="button">Update</button>
10098

101-
<h4>{{ input }} {{ password }} {{ select1 }} {{ select2 }} {{ prefix }} {{ payment }} {{ remember_me }} {{ textarea }} {{ radio }}</h4>
99+
<p></p>
102100
</form>
103101
</template>
104102

0 commit comments

Comments
 (0)