naive-ui/demo/demo.vue

283 lines
5.9 KiB
Vue

<template>
<div class="demo">
<n-nimbus-service-layout
icon="md-contacts"
:name="`NAIVE UI (${version})`"
:padding-body="true"
:items="items"
>
<router-view />
</n-nimbus-service-layout>
</div>
</template>
<script>
import { version } from '../package.json'
export default {
data () {
return {
version,
items: [
{
name: 'Start',
path: '/start'
},
{
name: 'Nimbus',
path: '/',
childItems: [
{
name: 'Nimbus Service Layout',
path: '/n-nimbus-service-layout'
},
// {
// name: 'Nimbus Home Layout',
// path: '/n-nimbus-home-layout'
// },
{
name: 'Nimbus Form Card',
path: '/n-nimbus-form-card'
},
{
name: 'Nimbus Confirm Card',
path: '/n-nimbus-confirm-card'
},
{
name: 'Nimbus Icon',
path: '/n-nimbus-icon'
}
]
},
{
name: 'Common',
childItems: [
{
name: 'AdvanceTable',
path: '/n-advance-table'
},
{
name: 'Alert',
path: '/n-alert'
},
{
name: 'Badge',
path: '/n-badge'
},
{
name: 'Button',
path: '/n-button'
},
{
name: 'Cascader',
path: '/n-cascader'
},
{
name: 'Checkbox',
path: '/n-checkbox'
},
{
name: 'Collapse',
path: '/n-collapse'
},
{
name: 'Confirm',
path: '/n-confirm'
},
{
name: 'DatePicker',
path: '/n-date-picker'
},
{
name: 'Gradient Text',
path: '/n-gradient-text'
},
{
name: 'Icon',
path: '/n-icon'
},
{
name: 'Input',
path: '/n-input'
},
{
name: 'InputNumber',
path: '/n-input-number'
},
{
name: 'InputKeyValuePairs',
path: '/n-InputKeyValuePairs'
},
{
name: 'Message',
path: '/n-message'
},
{
name: 'Modal',
path: '/n-modal'
},
{
name: 'Notification',
path: '/n-notification'
},
{
name: 'Pagination',
path: '/n-pagination'
},
{
name: 'Popover',
path: '/n-popover'
},
{
name: 'Progress',
path: '/n-progress'
},
{
name: 'Radio',
path: '/n-radio'
},
{
name: 'Select',
path: '/n-select'
},
{
name: 'Steps',
path: '/n-steps'
},
{
name: 'Switch',
path: '/n-switch'
},
{
name: 'Table',
path: '/n-table'
},
{
name: 'Tag',
path: '/n-tag'
},
{
name: 'TimePicker',
path: '/n-time-picker'
},
{
name: 'Timeline',
path: '/n-timeline'
},
{
name: 'Tooltip',
path: '/n-tooltip'
},
{
name: 'Form',
path: '/n-form'
},
{
name: 'Tab',
path: '/n-tab'
}
]
},
{
name: 'Debug',
childItems: [
{
name: 'PopoverDebug',
path: '/n-popover-debug'
},
{
name: 'RouterDebug',
path: '/n-router-debug'
},
{
name: 'ModalDebug',
path: '/n-modal-debug'
},
{
name: 'ScrollbarDebug',
path: '/n-scrollbar-debug'
},
{
name: 'ScrollbarDebug2',
path: '/n-scrollbar-debug2'
}
]
}
]
}
}
}
</script>
<style lang="scss" scoped>
.demo {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
min-width: 1080px;
}
</style>
<style lang="scss">
body {
-webkit-text-size-adjust: 100%;
}
.CodeMirror {
border: 2px solid #5c657eff;
height: auto !important;
z-index: 0;
border-radius: 8px;
padding: 8px;
margin-bottom: 18px;
}
.CodeMirror-scroll {
overflow-y: hidden !important;
overflow-x: auto !important;
}
.n-doc {
width: 720px;
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__inspect {
background: #5c657eff;
padding: 18px;
border-radius: 8px;
display: flex;
margin-bottom: 12px;
flex-wrap: wrap;
}
.n-doc-section__text-content {
font-size: 16px;
}
.n-doc-section__source {
position: relative;
}
}
}
</style>