Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #24 from f3ltron/features/glob-pattern
Browse files Browse the repository at this point in the history
feat(glob): we now use glob pattern that let us exclude components
  • Loading branch information
fgiraud authored May 30, 2019
2 parents c91ccaf + b5c62e6 commit a5ebc3a
Show file tree
Hide file tree
Showing 21 changed files with 1,110 additions and 519 deletions.
9 changes: 9 additions & 0 deletions components/Basics/css/justpreviewcss.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<h1>justpreviewcss</h1>
</template>

<style scoped>
h1 {
background: red;
}
</style>
17 changes: 17 additions & 0 deletions components/Basics/css/justpreviewscss.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<template>
<div>
<h1>justpreviewscss</h1>
<h2>test import</h2>
</div>
</template>

<style lang="scss" scoped>
@import "./test.scss";
h1 {
background: red;
}
</style>

<docs>
<justpreviewscss />
</docs>
3 changes: 3 additions & 0 deletions components/Basics/css/test.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h2 {
background: blue;
}
23 changes: 23 additions & 0 deletions components/Functionnals/subComponents/subwithrender.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<script>
export default {
name: 'MdButton',
props: {
someProp: {
type: String,
default: ""
}
},
render(createElement) {
return createElement(
'div', { },
[
createElement('button', this.someProp)
]
)
}
}
</script>

<docs>
<subwithrender />
</docs>
32 changes: 32 additions & 0 deletions components/Functionnals/withrender.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<script>
import simpleMixin from '../mixins/simple';
import subwithrender from './subComponents/subwithrender';
export default {
name: 'MdButton',
mixins: [simpleMixin],
computed: {
bigText() {
return "big Text";
}
},
render(createElement) {
return createElement(
'div', { },
[
createElement('h1', this.text),
createElement('h1', this.bigText),
createElement(subwithrender, {
props: {
someProp: 'i am a sub component with props'
}
})
]
)
}
}
</script>

<docs>
<withrender />
</docs>
21 changes: 21 additions & 0 deletions components/Functionnals/withtemplate.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template functional>
<div>
<h1>Hello {{props.text}}</h1>
</div>
</template>


<script>
export default {
props: {
text: {
type: String,
default: ""
}
}
}
</script>

<docs>
<withtemplate />
</docs>
131 changes: 0 additions & 131 deletions components/Modals2/Modal.vue

This file was deleted.

4 changes: 2 additions & 2 deletions components/examples.vue → components/fulljsdoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @since Version 1.0.1
*/
export default {
name: 'examplesFull',
name: 'fulljsdoc',
props: {
/**
Expand Down Expand Up @@ -138,6 +138,6 @@

<docs>
```vue live
<examples :columns="[2, 3, 4]" />
<fulljsdoc :columns="[2, 3, 4]" />
```
</docs>
7 changes: 7 additions & 0 deletions components/mixins/simple.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
data() {
return {
text: "Hello vuejs lovers"
}
}
}
Loading

0 comments on commit a5ebc3a

Please sign in to comment.