Skip to content

Commit

Permalink
feat(cli-template): add block config and PascalCase example
Browse files Browse the repository at this point in the history
  • Loading branch information
allen-zh committed Jul 19, 2019
1 parent 67515f0 commit 91209c7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
11 changes: 8 additions & 3 deletions packages/mars-cli-template/generator/template/mars/src/app.vue
@@ -1,5 +1,5 @@
<script>
export default {
<script type="config">
{
config: {
pages: [
'pages/home/index'
Expand All @@ -11,7 +11,12 @@ export default {
networkTimeout: {
request: 30000
}
},
}
}
</script>

<script>
export default {
onLaunch() {},
onShow() {}
};
Expand Down
Expand Up @@ -6,13 +6,16 @@
</view>
</template>

<script>
export default {
<script type="config">
{
config: {
component: true
}
};
}
</script>

<script>
export default {};
</script>

<style>
Expand Down
Expand Up @@ -5,22 +5,27 @@
</view>
</template>

<script type="config">
{
config: {
navigationBarTitleText: 'Mars'
}
}
</script>

<script>
import Hello from '../../components/Hello/Hello';
export default {
config: {
navigationBarTitleText: 'Mars'
},
data() {
return {};
},
components: {
hello: Hello
Hello
}
};
</script>

<style>
.home-wrap {
width: 100vw;
Expand Down

0 comments on commit 91209c7

Please sign in to comment.