-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(update): update samples; update tests
- Loading branch information
1 parent
88cb0be
commit 312c3d5
Showing
13 changed files
with
273 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<template> | ||
<article class="article" v-bind="$attrs" v-on="$listeners"> | ||
<content-container class="article" v-bind="$attrs" v-on="$listeners"> | ||
<header v-if="$slots.header"> | ||
<slot name="header" /> | ||
</header> | ||
<slot name="default" /> | ||
</article> | ||
</content-container> | ||
</template> | ||
|
||
<script> | ||
import ContentContainer from '../ContentContainer'; | ||
export default { | ||
components: { ContentContainer }, | ||
inheritAttrs: false | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<div> | ||
<collapsible-container | ||
:dataset="dataset" | ||
collapsible | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import CollapsibleContainer from '@foundation/core/CollapsibleContainer'; | ||
import Dataset from '@foundation/core/CollapsibleContainer/classes/Dataset'; | ||
import Model from '@foundation/core/CollapsibleContainer/classes/Model'; | ||
export default { | ||
components: { CollapsibleContainer }, | ||
layout: 'test', | ||
props: { | ||
dataset: { | ||
type: Dataset, | ||
default () { | ||
return new Dataset([ | ||
{ label: 'Label A', value: 'a', content: 'Content A' }, | ||
{ label: 'Label B', value: 'b', content: 'Content B' }, | ||
{ label: 'Label C', value: 'c', content: 'Content C' } | ||
], new Model('collapsible--container-test', 'a')); | ||
} | ||
} | ||
} | ||
}; | ||
</script> |
Oops, something went wrong.