32 lines
509 B
Perl
32 lines
509 B
Perl
---
|
|
to: "src/components/<%= h.changeCase.kebab(name).toLowerCase().slice(0, 5) === 'base-' ? '_' : '' %><%= h.changeCase.kebab(name) %>.vue"
|
|
---
|
|
<%
|
|
if (blocks.indexOf('script') !== -1) {
|
|
%><script>
|
|
export default {
|
|
<% if (blocks.indexOf('template') === -1) {
|
|
%>render(h) {
|
|
return <div/>
|
|
}<% } %>
|
|
}
|
|
</script>
|
|
<%
|
|
}
|
|
|
|
if (blocks.indexOf('template') !== -1) {
|
|
%>
|
|
<template>
|
|
<div/>
|
|
</template>
|
|
<%
|
|
}
|
|
|
|
if (blocks.indexOf('style') !== -1) {
|
|
%>
|
|
<style lang="scss" module>
|
|
@import '@design';
|
|
</style><%
|
|
}
|
|
%>
|