-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...e/packages/%plugin_name%/app/frontend/editor/components/kit/%component_name%-input.vue.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<div class="space-y-1 flex flex-col"> | ||
<label | ||
class="block font-semibold text-gray-800" | ||
:for="name" | ||
> | ||
<span>{{ label }}</span> | ||
</label> | ||
|
||
<!-- TODO: your input here --> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import FocusedInputMixin from '@/mixins/focused-input' | ||
|
||
export default { | ||
name: 'UIKit<%= class_name %>Input', | ||
mixins: [FocusedInputMixin], | ||
props: { | ||
label: { type: String, default: 'Label' }, | ||
name: { type: String, default: 'text' }, | ||
value: { type: String } | ||
}, | ||
methods: { | ||
focus() { | ||
// TODO: called when the editor clicks on the highlighted content in the preview window | ||
}, | ||
} | ||
} | ||
</script> |