first commit
This commit is contained in:
31
ui/generators/new/component/component.ejs.t
Normal file
31
ui/generators/new/component/component.ejs.t
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
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><%
|
||||
}
|
||||
%>
|
||||
Reference in New Issue
Block a user