File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
lib/generators/maglev/templates/setting_type/packages/%plugin_name%/app/frontend/editor/components/kit Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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>
You can’t perform that action at this time.
0 commit comments