| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <template>
- <div class="index">
- <div class="index-header">
- <img src="@/sites/assets/images/logo-red.png" alt="" srcset="" />
- <div class="info">
- <h1>Nut UI</h1>
- <p>一套京东风格的轻量级移动端 Vue 组件库</p>
- </div>
- </div>
- <div class="index-components">
- <ol v-for="_nav in nav" :key="_nav">
- <li>{{ _nav.name }}</li>
- <ul>
- <li v-for="_package in _nav.packages" :key="_package">
- <router-link :to="_package.name.toLocaleLowerCase()">{{ _package.name }} {{ _package.cName }}
- </router-link>
- </li>
- </ul>
- </ol>
- </div>
- </div>
- </template>
- <script lang="ts">
- import { defineComponent, reactive } from 'vue';
- import { nav, versions } from '@/config';
- export default defineComponent({
- name: 'doc',
- components: {},
- setup() {
- return reactive({
- nav,
- versions
- });
- }
- });
- </script>
- <style lang="scss" scoped>
- .index {
- height: 100%;
- width: 100%;
- padding-top: 30px;
- &-header {
- display: flex;
- align-items: center;
- padding: 0 34px;
- height: 117px;
- > img {
- width: 67px;
- height: 67px;
- margin-right: 18px;
- flex-shrink: 0;
- }
- .info {
- display: flex;
- flex-direction: column;
- h1 {
- height: 48px;
- line-height: 48px;
- font-size: 34px;
- color: rgba(51, 51, 51, 1);
- }
- p {
- height: 18px;
- line-height: 18px;
- font-size: 12px;
- color: rgba(154, 155, 157, 1);
- }
- }
- }
- &-components {
- background: #f7f8fa;
- border-radius: 30px 30px 0 0;
- overflow: hidden;
- padding: 30px 25px;
- > ol {
- margin-bottom: 17px;
- > li {
- line-height: 20px;
- font-size: 14px;
- color: rgba(144, 156, 164, 1);
- margin-bottom: 10px;
- }
- > ul {
- li {
- padding: 0 24px;
- width: 100%;
- height: 45px;
- line-height: 45px;
- background: rgba(255, 255, 255, 1);
- border-radius: 22px;
- box-shadow: 0px 1px 4px 0px rgba(102, 102, 102, 0.06);
- margin-bottom: 13px;
- a {
- width: 100%;
- height: 100%;
- font-size: 15px;
- font-weight: bold;
- display: block;
- color: rgba(51, 51, 51, 1);
- }
- }
- }
- }
- }
- }
- </style>
|