Skip to content

Commit c6032a2

Browse files
committed
version a missing template file
1 parent 4718e92 commit c6032a2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<template>
2+
<div class="space-y-1 flex flex-col">
3+
<label
4+
class="block font-semibold text-gray-800"
5+
:for="name"
6+
>
7+
<span>{{ label }}</span>
8+
</label>
9+
10+
<!-- TODO: your input here -->
11+
</div>
12+
</template>
13+
14+
<script>
15+
import FocusedInputMixin from '@/mixins/focused-input'
16+
17+
export default {
18+
name: 'UIKit<%= class_name %>Input',
19+
mixins: [FocusedInputMixin],
20+
props: {
21+
label: { type: String, default: 'Label' },
22+
name: { type: String, default: 'text' },
23+
value: { type: String }
24+
},
25+
methods: {
26+
focus() {
27+
// TODO: called when the editor clicks on the highlighted content in the preview window
28+
},
29+
}
30+
}
31+
</script>

0 commit comments

Comments
 (0)