@mixd-id/web-scaffold 0.1.230406100 → 0.1.230406102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/components/Alert.vue
CHANGED
|
@@ -12,12 +12,6 @@
|
|
|
12
12
|
<div class="mt-1">
|
|
13
13
|
<Textbox v-if="field.type === 'name'" v-model="form[field.type]" class="bg-white text-xl" :readonly="completed" />
|
|
14
14
|
|
|
15
|
-
<Textbox v-else-if="field.type === 'university'" v-model="form[field.type]"
|
|
16
|
-
class="bg-white text-xl" :readonly="completed" />
|
|
17
|
-
|
|
18
|
-
<Textbox v-else-if="field.type === 'ktpNumber'" maxlength="16" type="tel" v-model="form[field.type]"
|
|
19
|
-
class="bg-white text-xl font-mono" :readonly="completed" />
|
|
20
|
-
|
|
21
15
|
<Textbox v-else-if="field.type === 'email'" v-model="form[field.type]"
|
|
22
16
|
class="bg-white text-xl md:w-[300px] max-w-full" :readonly="completed" />
|
|
23
17
|
|
|
@@ -27,38 +21,7 @@
|
|
|
27
21
|
<Textbox v-else-if="field.type === 'referralCode'" v-model="form[field.type]"
|
|
28
22
|
class="bg-white text-xl md:w-[200px] max-w-full" :readonly="completed" />
|
|
29
23
|
|
|
30
|
-
<div v-else-if="field.type === 'birthDate'" class="flex flex-col md:flex-row gap-2">
|
|
31
|
-
<Textbox v-model="form['birthPlace']" class="bg-base cursor-pointer" @click="$refs.citySelector.open()" readonly="true"
|
|
32
|
-
placeholder="Kota">
|
|
33
|
-
<template #end>
|
|
34
|
-
<div class="p-3">
|
|
35
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" class="fill-text-200" viewBox="0 0 320 512"><path d="M287.968 160H32.038c-28.425 0-42.767 34.488-22.627 54.627l127.962 128c12.496 12.496 32.758 12.497 45.255 0l127.968-128C330.695 194.528 316.45 160 287.968 160zM160 320L32 192h256L160 320z"/></svg>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
</Textbox>
|
|
39
|
-
<Datepicker v-model="form['birthDate']" class="w-[200px] text-lg" default-value="2000-01-01" :readonly="completed" />
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<Dropdown v-else-if="field.type === 'position'" v-model="form[field.type]" class="text-xl">
|
|
43
|
-
<option v-for="item in field.items" :value="item.text">{{ item.text }}</option>
|
|
44
|
-
</Dropdown>
|
|
45
|
-
|
|
46
|
-
<Dropdown v-else-if="field.type === 'provinceName'" v-model="form[field.type]" class="text-xl">
|
|
47
|
-
<option disabled selected value="">Propinsi</option>
|
|
48
|
-
<option v-for="item in field.provinces" :value="item.alias">{{ item.alias }}</option>
|
|
49
|
-
</Dropdown>
|
|
50
|
-
|
|
51
|
-
<Dropdown v-else-if="field.type === 'education'" v-model="form[field.type]" class="text-xl">
|
|
52
|
-
<option v-for="item in field.items" :value="item.text">{{ item.text }}</option>
|
|
53
|
-
</Dropdown>
|
|
54
|
-
|
|
55
|
-
<Dropdown v-else-if="field.type === 'major'" v-model="form[field.type]" class="text-xl">
|
|
56
|
-
<option v-for="item in field.items" :value="item.text">{{ item.text }}</option>
|
|
57
|
-
</Dropdown>
|
|
58
|
-
|
|
59
24
|
<Textarea v-else-if="field.type === 'remark'" v-model="form[field.type]" rows="2" :readonly="completed"></Textarea>
|
|
60
|
-
|
|
61
|
-
<pre v-else>{{ field.type }}</pre>
|
|
62
25
|
</div>
|
|
63
26
|
</div>
|
|
64
27
|
</div>
|
|
@@ -214,13 +214,6 @@ export default{
|
|
|
214
214
|
{ type:'email', label:'Email' },
|
|
215
215
|
{ type:'remark', label:'Pertanyaan' },
|
|
216
216
|
{ type:'referralCode', label:'Kode Referral (optional)' },
|
|
217
|
-
{ type:'ktpNumber', label:'Nomor KTP' },
|
|
218
|
-
{ type:'birthDate', label:'Tempat/Tanggal Lahir' },
|
|
219
|
-
{ type:'position', label:'Jabatan yang Dilamar', _edit:'positionEdit', items:[] },
|
|
220
|
-
{ type:'provinceName', label:'Propinsi Domisili' },
|
|
221
|
-
{ type:'education', label:'Pendidikan Terakhir', _edit:'positionEdit', items:[] },
|
|
222
|
-
{ type:'major', label:'Jurusan', _edit:'positionEdit', items:[] },
|
|
223
|
-
{ type:'university', label:'Nama Sekolah/Institusi/Universitas', _edit:'positionEdit', items:[] },
|
|
224
217
|
]
|
|
225
218
|
}
|
|
226
219
|
},
|