2016-11-23 03:37:50 +00:00
|
|
|
<template>
|
|
|
|
|
<md-card class="example-box">
|
|
|
|
|
<md-toolbar class="md-dense example-title" v-md-theme="'white'">
|
|
|
|
|
<h3 class="md-title">{{ cardTitle }}</h3>
|
|
|
|
|
</md-toolbar>
|
|
|
|
|
|
|
|
|
|
<md-tabs md-right :md-dynamic-height="false" class="md-transparent example-tabs">
|
|
|
|
|
<md-tab class="example-content" md-label="Demo">
|
|
|
|
|
<slot name="demo"></slot>
|
|
|
|
|
</md-tab>
|
|
|
|
|
|
|
|
|
|
<md-tab class="code-content" md-label="Code">
|
|
|
|
|
<slot name="code"></slot>
|
|
|
|
|
</md-tab>
|
|
|
|
|
</md-tabs>
|
|
|
|
|
</md-card>
|
|
|
|
|
</template>
|
|
|
|
|
|
2016-11-29 02:58:21 +00:00
|
|
|
<style lang="scss">
|
|
|
|
|
.example-box .code-content {
|
|
|
|
|
.code-block {
|
|
|
|
|
margin: -16px;
|
|
|
|
|
|
|
|
|
|
+ .code-block {
|
|
|
|
|
margin-top: 40px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
2016-11-23 03:37:50 +00:00
|
|
|
<style lang="scss" scoped>
|
2016-11-23 17:31:52 +00:00
|
|
|
.example-box {
|
|
|
|
|
margin-bottom: 16px;
|
2016-11-23 03:37:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.example-title {
|
|
|
|
|
border-bottom: 1px solid rgba(#000, .12);
|
|
|
|
|
|
|
|
|
|
.md-title {
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 3;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.example-tabs {
|
|
|
|
|
margin-top: -48px;
|
2016-11-23 03:45:28 +00:00
|
|
|
|
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
}
|
2016-11-23 03:37:50 +00:00
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
cardTitle: String
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|