docs: 更新文档
This commit is contained in:
		
							parent
							
								
									a04dd07764
								
							
						
					
					
						commit
						c9ac10b546
					
				@ -4,6 +4,13 @@
 | 
			
		||||
::: demo
 | 
			
		||||
<template>
 | 
			
		||||
<lay-timeline>
 | 
			
		||||
<lay-timeline-item title="0.1.9">
 | 
			
		||||
[新增] carousel 轮播组件, 初步完成切换逻辑。<br>
 | 
			
		||||
[新增] colorPicker 颜色选择器, 初步完成组件渲染。<br>
 | 
			
		||||
[文档] 新增首页模块。<br>
 | 
			
		||||
[文档] 拆分菜单为指南与组件模块。<br>
 | 
			
		||||
[文档] 新增全局内容检索。<br>
 | 
			
		||||
</lay-timeline-item>
 | 
			
		||||
<lay-timeline-item title="0.1.8">
 | 
			
		||||
[新增] table 表格 size 属性, 提供不同尺寸。<br>
 | 
			
		||||
[新增] transfer 穿梭框 item 插槽, 允许自定义列表项。<br>
 | 
			
		||||
 | 
			
		||||
@ -10,7 +10,7 @@
 | 
			
		||||
          style="margin-top: 0px; margin-bottom: 0px"
 | 
			
		||||
        >
 | 
			
		||||
          <li class="layui-nav-item">
 | 
			
		||||
            <router-link to="/zh-CN/home"> 首页 </router-link>
 | 
			
		||||
            <router-link to="/zh-CN/index"> 首页 </router-link>
 | 
			
		||||
          </li>
 | 
			
		||||
          <li class="layui-nav-item">
 | 
			
		||||
            <router-link to="/zh-CN/guide"> 指南 </router-link>
 | 
			
		||||
@ -43,7 +43,7 @@
 | 
			
		||||
            </a>
 | 
			
		||||
          </li>
 | 
			
		||||
          <li class="layui-nav-item">
 | 
			
		||||
            <a href="javascript:void(0)"> 0.1.8 </a>
 | 
			
		||||
            <a href="javascript:void(0)"> 0.1.9 </a>
 | 
			
		||||
          </li>
 | 
			
		||||
        </ul>
 | 
			
		||||
      </lay-header>
 | 
			
		||||
 | 
			
		||||
@ -1,18 +1,18 @@
 | 
			
		||||
import BaseLayout from '../layouts/Layout.vue'
 | 
			
		||||
import Component from '../view/component.vue'
 | 
			
		||||
import Guide from '../view/guide.vue'
 | 
			
		||||
import Home from '../view/home.vue'
 | 
			
		||||
import Index from '../view/index.vue'
 | 
			
		||||
 | 
			
		||||
const zhCN = [
 | 
			
		||||
  {
 | 
			
		||||
    path: '/',
 | 
			
		||||
    redirect: '/zh-CN/home',
 | 
			
		||||
    redirect: '/zh-CN/index',
 | 
			
		||||
    component: BaseLayout,
 | 
			
		||||
    meta: { title: '首页', icon: 'el-icon-position' },
 | 
			
		||||
    meta: { title: '首页' },
 | 
			
		||||
    children: [
 | 
			
		||||
      {
 | 
			
		||||
        path: '/zh-CN/home',
 | 
			
		||||
        component: Home,
 | 
			
		||||
        path: '/zh-CN/index',
 | 
			
		||||
        component: Index,
 | 
			
		||||
        meta: { title: '指南' },
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,12 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div style="background-color: whitesmoke;height:100%;width:100%;margin-top:60px;">
 | 
			
		||||
  <div
 | 
			
		||||
    style="
 | 
			
		||||
      background-color: whitesmoke;
 | 
			
		||||
      height: 100%;
 | 
			
		||||
      width: 100%;
 | 
			
		||||
      margin-top: 60px;
 | 
			
		||||
    "
 | 
			
		||||
  >
 | 
			
		||||
    <div class="site-banner">
 | 
			
		||||
      <div class="site-banner-main">
 | 
			
		||||
        <div class="site-zfj site-zfj-anim">
 | 
			
		||||
@ -10,18 +17,18 @@
 | 
			
		||||
          >
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="layui-anim site-desc site-desc-anim">
 | 
			
		||||
          <p class="web-font-desc">layui - ui</p>
 | 
			
		||||
          <p class="web-font-desc">layui - vue</p>
 | 
			
		||||
          <cite>layui vue, A component library for Vue 3 base on layui</cite>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="site-download">
 | 
			
		||||
          <router-link
 | 
			
		||||
            class="layui-inline site-down"
 | 
			
		||||
            to="/zh-CN/guide/getStarted"
 | 
			
		||||
            >开始使用</router-link
 | 
			
		||||
            >Get Started</router-link
 | 
			
		||||
          >
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="site-version">
 | 
			
		||||
          <span>当前版本:v<cite class="site-showv">2.6.8</cite></span>
 | 
			
		||||
          <span>当前版本:v<cite class="site-showv">0.1.9</cite></span>
 | 
			
		||||
          <span
 | 
			
		||||
            ><router-link
 | 
			
		||||
              class="layui-inline site-down"
 | 
			
		||||
@ -29,20 +36,20 @@
 | 
			
		||||
              >更新日志</router-link
 | 
			
		||||
            ></span
 | 
			
		||||
          >
 | 
			
		||||
          <span>下载量:<em class="site-showdowns">2380233</em></span>
 | 
			
		||||
          <span>下载量:<em class="site-showdowns">1824</em></span>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="site-banner-other">
 | 
			
		||||
        <a
 | 
			
		||||
          href="https://github.com/sentsin/layui/"
 | 
			
		||||
          href="https://gitee.com/layui-vue"
 | 
			
		||||
          target="_blank"
 | 
			
		||||
          rel="nofollow"
 | 
			
		||||
          class="site-star"
 | 
			
		||||
        >
 | 
			
		||||
          <i class="layui-icon"></i> Star <cite id="getStars">25097</cite>
 | 
			
		||||
          <i class="layui-icon"></i> Star <cite id="getStars">257</cite>
 | 
			
		||||
        </a>
 | 
			
		||||
        <a
 | 
			
		||||
          href="https://gitee.com/sentsin/layui"
 | 
			
		||||
          href="https://gitee.com/layui-vue"
 | 
			
		||||
          target="_blank"
 | 
			
		||||
          rel="nofollow"
 | 
			
		||||
          class="site-fork"
 | 
			
		||||
@ -90,6 +97,13 @@
 | 
			
		||||
        </ul>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="footer footer-index">
 | 
			
		||||
      <p>
 | 
			
		||||
        Copyright © 2021 <a href="/index.html">layui-vue.pearadmin.com</a> MIT
 | 
			
		||||
        Licensed
 | 
			
		||||
      </p>
 | 
			
		||||
      <p></p>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
@ -225,4 +239,12 @@
 | 
			
		||||
  transition: all 0.5s;
 | 
			
		||||
  -webkit-transition: all 0.5s;
 | 
			
		||||
}
 | 
			
		||||
.footer {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    padding: 30px 15px;
 | 
			
		||||
    line-height: 30px;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
    color: #666;
 | 
			
		||||
    font-weight: 300;
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@layui/layui-vue",
 | 
			
		||||
  "version": "0.1.8",
 | 
			
		||||
  "version": "0.1.9",
 | 
			
		||||
  "description": "a component library for Vue 3 base on layui-vue",
 | 
			
		||||
  "main": "lib/layui-vue.umd.js",
 | 
			
		||||
  "module": "lib/layui-vue.es.js",
 | 
			
		||||
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
import type { App } from 'vue'
 | 
			
		||||
import Component from './index.vue'
 | 
			
		||||
import { DefineComponent } from 'vue'
 | 
			
		||||
import type { IDefineComponent } from '../type/index'
 | 
			
		||||
 | 
			
		||||
Component.install = (app: App) => {
 | 
			
		||||
  app.component(Component.name || 'LayColorPicker', Component)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default Component as DefineComponent
 | 
			
		||||
export default Component as IDefineComponent
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user