Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
feat(notched-outline): Synchronise with mdc-web v0.34.1 (add notched …
Browse files Browse the repository at this point in the history
…prop)
  • Loading branch information
matsp committed Apr 4, 2018
1 parent c333244 commit e19b0e0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
33 changes: 22 additions & 11 deletions components/notched-outline/NotchedOutline.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
<template>
<div>
<div class="mdc-notched-outline" :class="classes">
<svg>
<path class="mdc-notched-outline__path"/>
</svg>
</div>
<div class="mdc-notched-outline__idle"/>
</div>
</template>
<script>
import themeClassMixin from '../base/themeClassMixin.js'
export default {
functional: true,
mixins: [themeClassMixin],
render (h) {
return [
h('div', {'class': 'mdc-notched-outline'},
[
h('svg', [
h('path', {'class': 'mdc-notched-outline__path'})
])
]
),
h('div', {'class': 'mdc-notched-outline__idle'})]
props: {
notched: {
type: Boolean,
default: false
}
},
computed: {
classes () {
return {
'mdc-notched-outline--notched': this.notched
}
}
}
}
</script>
6 changes: 6 additions & 0 deletions components/notched-outline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@
</m-textfield>
```

### Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| notched | Boolean | false | open notch outline |

0 comments on commit e19b0e0

Please sign in to comment.