2023-09-26 11:14:56 +03:00
|
|
|
<script lang="ts">
|
|
|
|
export const name = '<name here>'
|
|
|
|
export const inputType = '<allowed input type(s) here>'
|
2023-10-07 23:57:47 +03:00
|
|
|
// Optional:
|
|
|
|
export const defaultPreprocessor = [
|
|
|
|
'<module path here>',
|
|
|
|
'<method name here>',
|
|
|
|
'<optional args here>',
|
|
|
|
]
|
2023-09-26 11:14:56 +03:00
|
|
|
|
|
|
|
interface Data {
|
|
|
|
dataType: 'here'
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { onMounted } from 'vue'
|
|
|
|
|
2023-10-02 15:01:03 +03:00
|
|
|
// Optional: add your own external dependencies.
|
|
|
|
// import dependency from 'https://<js dependency here>'
|
|
|
|
//
|
|
|
|
// When using typescript, you can also specify typings for your dependencies by locally declaring
|
|
|
|
// the module in a `.d.ts` file in the same directory as this file:
|
|
|
|
// ```ts
|
|
|
|
// module 'https://<js dependency here>' {
|
|
|
|
// export * from '<locally installed typings here>'
|
|
|
|
// }
|
|
|
|
// ```
|
2023-09-26 11:14:56 +03:00
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
data: Data
|
|
|
|
}>()
|
|
|
|
const emit = defineEmits<{
|
|
|
|
// Optional:
|
|
|
|
'update:preprocessor': [module: string, method: string, ...args: string[]]
|
|
|
|
}>()
|
|
|
|
|
|
|
|
// Optional:
|
|
|
|
onMounted(() => {
|
|
|
|
emit('update:preprocessor', '<module path here>', '<method name here>', '<optional args here>')
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2024-09-23 21:31:26 +03:00
|
|
|
<!-- <content here> -->
|
|
|
|
{{ props.data }}
|
2023-09-26 11:14:56 +03:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
/* Optional */
|
|
|
|
@import url('<style>');
|
|
|
|
@import url('<dependencies>');
|
|
|
|
@import url('<here>');
|
|
|
|
</style>
|