PluginProbe
The Innovative Form Builder – IvyForms / 0.8.2
The Innovative Form Builder – IvyForms v0.8.2
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / frontend / src / views / admin / testing / testing-page / TestingLink.vue

TestingLink.vue in The Innovative Form Builder – IvyForms 0.8.2, at frontend/src/views/admin/testing/testing-page/TestingLink.vue

97 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <template>
2 <div>
3 <h3>Link Component Props Controls</h3>
4 <div class="link-controls">
5 <!-- Href -->
6 <label>
7 Href:
8 <input v-model="href" placeholder="Enter the URL" />
9 </label>
10
11 <!-- Target -->
12 <label>
13 Target:
14 <select v-model="target">
15 <option value="_blank">_blank</option>
16 <option value="_self">_self</option>
17 </select>
18 </label>
19
20 <!-- Rel (visible only if target is not _self) -->
21 <label v-if="target !== '_self'">
22 Rel:
23 <select v-model="rel">
24 <option value="noopener">noopener</option>
25 <option value="noreferrer">noreferrer</option>
26 </select>
27 </label>
28
29 <!-- Priority -->
30 <label>
31 Priority:
32 <select v-model="priority">
33 <option value="primary">Primary</option>
34 <option value="secondary">Secondary</option>
35 </select>
36 </label>
37
38 <!-- Size -->
39 <label>
40 Size:
41 <select v-model="size">
42 <option value="d">Default</option>
43 <option value="s">Small</option>
44 </select>
45 </label>
46 </div>
47 <hr />
48
49 <!-- Link Component Preview -->
50 <div class="link-preview">
51 <h3>Link Component Preview</h3>
52 <IvyLink :href="href" :target="target" :rel="rel" :priority="priority" :size="size">
53 Test Link
54 </IvyLink>
55 </div>
56 </div>
57 </template>
58
59 <script setup lang="ts">
60 import { ref } from 'vue'
61 import IvyLink from '@/views/_components/link/IvyLink.vue'
62
63 const href = ref('https://www.example.com')
64 const target = ref<'_blank' | '_self'>('_blank')
65 const rel = ref<'noopener' | 'noreferrer'>('noopener')
66 const priority = ref<'primary' | 'secondary'>('primary')
67 const size = ref<'d' | 's'>('d')
68 </script>
69
70 <style scoped>
71 .link-controls {
72 margin-bottom: 20px;
73 padding: 10px;
74 border: 1px solid #ddd;
75 border-radius: 6px;
76 }
77
78 .link-controls label {
79 display: block;
80 margin-bottom: 10px;
81 }
82
83 .link-preview {
84 margin-top: 20px;
85 }
86
87 .link-preview h3 {
88 margin-bottom: 20px;
89 }
90
91 hr {
92 margin: 20px 0;
93 border: none;
94 border-top: 1px solid #ddd;
95 }
96 </style>
97