1234567891011121314151617181920212223 |
- // template.js
- module.exports = {
- vueTemplate: compoenntName => {
- return `<template>
- <div class="${compoenntName}">
- ${compoenntName}组件
- </div>
- </template>
- <script>
- export default {
- name: '${compoenntName}'
- }
- </script>
- <style lang="less" scoped>
- .${compoenntName} {
- }
- </style>
- `
- },
- entryTemplate: `import Main from './main.vue'
- export default Main`
- }
|