2019-05-24 20:09:35 +08:00
|
|
|
<template>
|
2019-06-04 12:09:02 +08:00
|
|
|
<div class="demo">
|
2019-06-23 18:00:21 +08:00
|
|
|
<n-nimbus-service-layout
|
|
|
|
service-icon="md-contacts"
|
2019-06-23 19:52:26 +08:00
|
|
|
name="NAIVE UI (0.1.49)"
|
2019-06-23 18:00:21 +08:00
|
|
|
:items="items"
|
|
|
|
>
|
2019-06-23 19:52:26 +08:00
|
|
|
<router-view />
|
2019-06-23 18:00:21 +08:00
|
|
|
</n-nimbus-service-layout>
|
2019-05-24 20:09:35 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2019-06-23 18:00:21 +08:00
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
items: [
|
2019-06-23 19:52:26 +08:00
|
|
|
{
|
|
|
|
name: 'Installation'
|
|
|
|
},
|
2019-06-23 18:00:21 +08:00
|
|
|
{
|
|
|
|
name: 'Nimbus',
|
|
|
|
path: '/',
|
|
|
|
childItems: [
|
|
|
|
{
|
|
|
|
name: 'Nimbus Service Layout',
|
|
|
|
path: '/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Nimbus Home Layout',
|
|
|
|
path: '/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Nimbus Form Card',
|
|
|
|
path: '/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Nimbus Confirm Card',
|
|
|
|
path: '/'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Common',
|
|
|
|
path: '/',
|
|
|
|
childItems: [
|
|
|
|
{
|
|
|
|
name: 'Button',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-button'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Checkbox',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-checkbox'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Gradient Text',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-gradient-text'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Icon',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-icon'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Input',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-input'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Message',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-message'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Modal',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-modal'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Notification',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-notification'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Pagination',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-pagination'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Select',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-select'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Switch',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-switch'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Table',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-table'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Tooltip',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-tooltip'
|
2019-06-23 18:00:21 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2019-05-24 20:09:35 +08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.demo {
|
2019-06-23 18:00:21 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2019-05-24 20:09:35 +08:00
|
|
|
}
|
|
|
|
</style>
|
2019-06-18 16:53:16 +08:00
|
|
|
|
2019-06-24 01:16:38 +08:00
|
|
|
<style lang="scss">
|
2019-06-18 16:53:16 +08:00
|
|
|
.CodeMirror {
|
2019-06-24 01:16:38 +08:00
|
|
|
border: 2px solid #5C657EFF;
|
2019-06-18 16:53:16 +08:00
|
|
|
height: auto;
|
2019-06-20 22:55:18 +08:00
|
|
|
z-index: 0;
|
2019-06-24 01:16:38 +08:00
|
|
|
border-radius: 8px;
|
|
|
|
padding: 8px;
|
2019-06-23 19:52:26 +08:00
|
|
|
margin-bottom: 18px;
|
2019-06-18 16:53:16 +08:00
|
|
|
}
|
|
|
|
.CodeMirror-scroll {
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
2019-06-23 19:52:26 +08:00
|
|
|
.n-nimbus-service-layout__body {
|
|
|
|
padding: 0!important;
|
|
|
|
}
|
2019-06-24 01:16:38 +08:00
|
|
|
|
|
|
|
.n-doc {
|
|
|
|
width: 780px;
|
|
|
|
margin: 0 auto;
|
|
|
|
.n-doc-header {
|
|
|
|
display: flex;
|
|
|
|
height: 60px;
|
|
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.n-doc-body {
|
|
|
|
padding-top: 14px;
|
|
|
|
}
|
|
|
|
.n-doc-section {
|
|
|
|
.n-doc-section__header {
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
.n-doc-section__view {
|
|
|
|
background: #5C657EFF;
|
|
|
|
padding: 18px;
|
|
|
|
border-radius: 8px;
|
|
|
|
justify-content: center;
|
|
|
|
display: flex;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
.n-doc-section__source {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-18 16:53:16 +08:00
|
|
|
</style>
|