-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
60 lines (46 loc) · 1.09 KB
/
main.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
/**
* Main app module.
*/
import Button from "primevue/button";
import InputText from "primevue/inputtext";
import { createApp } from "vue";
const app = createApp({
components: {
"p-button": Button,
"p-inputtext": InputText,
},
data() {
return {
name: "developer",
value1: "",
value2: "",
};
},
template: `
<h2>Greeting using plain Vue</h2>
<p>Hello, {{ name }}!</p>
<h2>PrimeVue Button component</h2>
<h3>Basic</h3>
<p-button label="Submit"></p-button>
<br />
<br />
<h3>Check</h3>
<p-button label="Submit" icon="pi pi-check" iconPos="right"></p-button>
<br />
<br />
<h2>PrimeVue InputText component</h2>
<h3>Basic</h3>
<p-inputtext type="text" v-model="value1"></p-inputtext>
<br />
<span>{{ value1 }}</span>
<br />
<h3>Seach bar with icon</h3>
<span class="p-input-icon-left">
<i class="pi pi-search"></i>
<p-inputtext type="text" v-model="value2" placeholder="Search"></p-inputtext>
</span>
<br />
<span>{{ value2 }}</span>
`,
});
app.mount("#app");