-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_template.js
64 lines (57 loc) · 1.68 KB
/
main_template.js
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
54
55
56
57
58
59
60
61
62
63
64
Vue.component('atcf-select', {
template: `
<div class="atcf-select">
<label>Label</label>
<select id="" class="bdb-form-select" required="required">
<atcf-select-option>XXX</atcf-select-option>
<atcf-select-option>YYY</atcf-select-option>
<atcf-select-option>ZZZ</atcf-select-option>
</select>
</div>
`
});
Vue.component('atcf-select-option', {
template: '<option value="220" selected="true"><slot></slot></option>'
});
Vue.component('atcf-radio', {
template: `
<div class="atcf-radio">
<label>Label</label>
<form action="">
<atcf-radio-option>AAA</atcf-radio-option>
<atcf-radio-option>BBB</atcf-radio-option>
<atcf-radio-option>CCC</atcf-radio-option>
</form>
</div>
`
});
Vue.component('atcf-radio-option', {
template: '<label><input type="radio" name="gender" checked="true" value="female"> <slot></slot></label>'
});
Vue.component('atcf-imageradio', {
template: `
<div class="atcf-imageradio">
<label>Label</label>
<form action="">
<atcf-imageradio-option><img src="https://www.bidolubaski.com/sites/all/themes/bdbtheme/logo.png"></atcf-imageradio-option>
<atcf-imageradio-option><img src="https://www.bidolubaski.com/sites/all/themes/bdbtheme/logo.png"></atcf-imageradio-option>
<atcf-imageradio-option>CCC</atcf-imageradio-option>
</form>
</div>
`
});
Vue.component('atcf-imageradio-option', {
template: '<label><input type="radio" name="gender" checked="true" value="female"> <slot></slot></label>'
});
Vue.component('atcf-price', {
template: '<div>12345</div>'
});
Vue.component('atcf-pricedetails', {
template: '<div>12345</div>'
});
Vue.component('atcf-timeline', {
template: '<div>12345</div>'
});
new Vue({
el: '#root'
});