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
|
2019-06-25 10:15:19 +08:00
|
|
|
icon="md-contacts"
|
2019-07-11 14:05:34 +08:00
|
|
|
:name="`NAIVE UI (${version})`"
|
2019-08-01 15:08:53 +08:00
|
|
|
:padding-body="true"
|
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>
|
2019-07-11 14:05:34 +08:00
|
|
|
import { version } from '../package.json'
|
2019-05-24 20:09:35 +08:00
|
|
|
export default {
|
2019-06-23 18:00:21 +08:00
|
|
|
data () {
|
|
|
|
return {
|
2019-07-11 14:05:34 +08:00
|
|
|
version,
|
2019-06-23 18:00:21 +08:00
|
|
|
items: [
|
2019-06-23 19:52:26 +08:00
|
|
|
{
|
2019-06-24 15:11:27 +08:00
|
|
|
name: 'Start',
|
|
|
|
path: '/start'
|
2019-06-23 19:52:26 +08:00
|
|
|
},
|
2019-06-23 18:00:21 +08:00
|
|
|
{
|
|
|
|
name: 'Nimbus',
|
|
|
|
path: '/',
|
|
|
|
childItems: [
|
|
|
|
{
|
|
|
|
name: 'Nimbus Service Layout',
|
2019-06-24 15:11:27 +08:00
|
|
|
path: '/n-nimbus-service-layout'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
2019-06-24 15:11:27 +08:00
|
|
|
// {
|
|
|
|
// name: 'Nimbus Home Layout',
|
|
|
|
// path: '/n-nimbus-home-layout'
|
|
|
|
// },
|
2019-06-23 18:00:21 +08:00
|
|
|
{
|
|
|
|
name: 'Nimbus Form Card',
|
2019-06-24 15:11:27 +08:00
|
|
|
path: '/n-nimbus-form-card'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Nimbus Confirm Card',
|
2019-06-24 15:11:27 +08:00
|
|
|
path: '/n-nimbus-confirm-card'
|
2019-07-15 11:34:30 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Nimbus Icon',
|
|
|
|
path: '/n-nimbus-icon'
|
2019-06-23 18:00:21 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Common',
|
|
|
|
childItems: [
|
2019-07-14 18:39:36 +08:00
|
|
|
{
|
|
|
|
name: 'AdvanceTable',
|
|
|
|
path: '/n-advance-table'
|
|
|
|
},
|
2019-07-02 18:08:59 +08:00
|
|
|
{
|
|
|
|
name: 'Alert',
|
|
|
|
path: '/n-alert'
|
|
|
|
},
|
2019-08-01 11:14:14 +08:00
|
|
|
{
|
|
|
|
name: 'Badge',
|
|
|
|
path: '/n-badge'
|
|
|
|
},
|
2019-06-23 18:00:21 +08:00
|
|
|
{
|
|
|
|
name: 'Button',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-button'
|
2019-06-23 18:00:21 +08:00
|
|
|
},
|
2019-08-07 11:40:23 +08:00
|
|
|
{
|
|
|
|
name: 'Cascader',
|
|
|
|
path: '/n-cascader'
|
|
|
|
},
|
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
|
|
|
},
|
2019-08-01 11:14:14 +08:00
|
|
|
{
|
|
|
|
name: 'Collapse',
|
|
|
|
path: '/n-collapse'
|
|
|
|
},
|
2019-08-01 14:55:23 +08:00
|
|
|
{
|
|
|
|
name: 'Confirm',
|
|
|
|
path: '/n-confirm'
|
|
|
|
},
|
2019-07-04 16:47:41 +08:00
|
|
|
{
|
|
|
|
name: 'DatePicker',
|
|
|
|
path: '/n-date-picker'
|
|
|
|
},
|
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
|
|
|
},
|
2019-07-10 19:07:16 +08:00
|
|
|
{
|
|
|
|
name: 'InputNumber',
|
|
|
|
path: '/n-input-number'
|
|
|
|
},
|
2019-08-07 16:13:11 +08:00
|
|
|
{
|
|
|
|
name: 'InputKeyValuePairs',
|
|
|
|
path: '/n-InputKeyValuePairs'
|
|
|
|
},
|
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
|
|
|
},
|
2019-07-02 18:08:59 +08:00
|
|
|
{
|
2019-07-11 19:51:59 +08:00
|
|
|
name: 'Popover',
|
|
|
|
path: '/n-popover'
|
2019-07-02 18:08:59 +08:00
|
|
|
},
|
2019-08-01 11:14:14 +08:00
|
|
|
{
|
|
|
|
name: 'Progress',
|
|
|
|
path: '/n-progress'
|
|
|
|
},
|
2019-07-15 15:05:56 +08:00
|
|
|
{
|
|
|
|
name: 'Radio',
|
|
|
|
path: '/n-radio'
|
|
|
|
},
|
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
|
|
|
},
|
2019-08-01 11:14:14 +08:00
|
|
|
{
|
|
|
|
name: 'Steps',
|
|
|
|
path: '/n-steps'
|
|
|
|
},
|
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
|
|
|
},
|
2019-08-01 11:14:14 +08:00
|
|
|
{
|
|
|
|
name: 'Tag',
|
|
|
|
path: '/n-tag'
|
|
|
|
},
|
2019-07-22 17:41:56 +08:00
|
|
|
{
|
|
|
|
name: 'TimePicker',
|
|
|
|
path: '/n-time-picker'
|
|
|
|
},
|
2019-06-23 18:00:21 +08:00
|
|
|
{
|
2019-08-01 11:14:14 +08:00
|
|
|
name: 'Timeline',
|
|
|
|
path: '/n-timeline'
|
|
|
|
},
|
|
|
|
{
|
2019-06-23 18:00:21 +08:00
|
|
|
name: 'Tooltip',
|
2019-06-23 19:52:26 +08:00
|
|
|
path: '/n-tooltip'
|
2019-07-22 19:14:47 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Form',
|
|
|
|
path: '/n-form'
|
2019-07-29 16:40:11 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Tab',
|
|
|
|
path: '/n-tab'
|
2019-06-23 18:00:21 +08:00
|
|
|
}
|
|
|
|
]
|
2019-07-24 23:53:02 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Debug',
|
|
|
|
childItems: [
|
|
|
|
{
|
2019-07-25 10:48:46 +08:00
|
|
|
name: 'PopoverDebug',
|
2019-07-24 23:53:02 +08:00
|
|
|
path: '/n-popover-debug'
|
2019-07-25 10:48:46 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'RouterDebug',
|
|
|
|
path: '/n-router-debug'
|
2019-07-26 16:33:01 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'ModalDebug',
|
|
|
|
path: '/n-modal-debug'
|
2019-07-31 17:34:17 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'ScrollbarDebug',
|
|
|
|
path: '/n-scrollbar-debug'
|
2019-08-07 16:52:18 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'ScrollbarDebug2',
|
|
|
|
path: '/n-scrollbar-debug2'
|
2019-07-24 23:53:02 +08:00
|
|
|
}
|
|
|
|
]
|
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-06-27 16:26:23 +08:00
|
|
|
min-width: 1080px;
|
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-27 18:17:07 +08:00
|
|
|
body {
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
}
|
|
|
|
|
2019-06-18 16:53:16 +08:00
|
|
|
.CodeMirror {
|
2019-06-26 20:16:11 +08:00
|
|
|
border: 2px solid #5c657eff;
|
|
|
|
height: auto !important;
|
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 {
|
2019-06-26 20:16:11 +08:00
|
|
|
overflow-y: hidden !important;
|
|
|
|
overflow-x: auto !important;
|
2019-06-18 16:53:16 +08:00
|
|
|
}
|
2019-06-24 01:16:38 +08:00
|
|
|
.n-doc {
|
2019-06-27 16:26:23 +08:00
|
|
|
width: 720px;
|
2019-06-24 01:16:38 +08:00
|
|
|
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 {
|
2019-06-26 20:16:11 +08:00
|
|
|
background: #5c657eff;
|
2019-06-24 01:16:38 +08:00
|
|
|
padding: 18px;
|
|
|
|
border-radius: 8px;
|
|
|
|
justify-content: center;
|
|
|
|
display: flex;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
2019-07-15 17:41:56 +08:00
|
|
|
.n-doc-section__inspect {
|
|
|
|
background: #5c657eff;
|
|
|
|
padding: 18px;
|
|
|
|
border-radius: 8px;
|
|
|
|
display: flex;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
2019-06-26 13:37:58 +08:00
|
|
|
.n-doc-section__text-content {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2019-06-24 01:16:38 +08:00
|
|
|
.n-doc-section__source {
|
2019-06-28 10:34:29 +08:00
|
|
|
position: relative;
|
2019-06-24 01:16:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-18 16:53:16 +08:00
|
|
|
</style>
|