更新 README.md
This commit is contained in:
parent
018866ff06
commit
e6f1dc1b85
38
README.md
38
README.md
@ -1,12 +1,17 @@
|
||||
<p align="center">
|
||||
<a href="http://www.layui.com">
|
||||
<a href="http://layui-vue.pearadmin.com">
|
||||
<img src="https://sentsin.gitee.io/res/images/layui/layui.png" alt="layui" width="360">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
A component library for Vue 3 base on layui
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
Vue 3.0 的 桌 面 端 组 件 库 , Layui 的 另 一 种 呈 现 方 式
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.npmjs.com/package/@layui/layui-vue"><img src="https://img.shields.io/npm/v/@layui/layui-vue.svg?sanitize=true" alt="Version"></a>
|
||||
<a href="https://www.npmjs.com/package/layui"><img src="https://img.shields.io/npm/l/layui.svg?sanitize=true" alt="License"></a>
|
||||
@ -14,25 +19,17 @@
|
||||
<a href="https://coveralls.io/r/sentsin/layui?branch=master"><img alt="Test Coverage" src="https://img.shields.io/coveralls/sentsin/layui/master.svg"></a>
|
||||
</p>
|
||||
|
||||
<!--
|
||||
<p align="center">
|
||||
<a href="https://saucelabs.com/beta/builds/7e6196205e4f492496203388fc003b65"><img src="https://saucelabs.com/browser-matrix/layui.svg" alt="Browser Matrix"></a>
|
||||
</p>
|
||||
-->
|
||||
|
||||
---
|
||||
|
||||
Vue 3.0 的 桌 面 端 组 件 库 , Layui 的 另 一 种 呈 现 方 式
|
||||
## 安装 / Install
|
||||
|
||||
## 快速上手 : Beta
|
||||
|
||||
获得 layui-vue 你只需要使用 npm 引入下述文件:
|
||||
获得 layui-vue 你只需要使用 npm 引入 :
|
||||
|
||||
```
|
||||
npm install @layui/layui-vue
|
||||
```
|
||||
|
||||
在 main.ts 中:
|
||||
在 main.ts 中 :
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue'
|
||||
@ -43,7 +40,9 @@ import App from './App.vue'
|
||||
createApp(App).use(Layui).mount('#app')
|
||||
```
|
||||
|
||||
这是一个基本的入门页面:
|
||||
## 例子 / Example
|
||||
|
||||
我们在主页上有不少例子,这是让你入门的第一个:
|
||||
|
||||
```html
|
||||
<template>
|
||||
@ -60,25 +59,20 @@ createApp(App).use(Layui).mount('#app')
|
||||
</template>
|
||||
```
|
||||
|
||||
## [阅读文档](http://layui-vue.pearadmin.com/)
|
||||
## [查阅文档](http://layui-vue.pearadmin.com/)
|
||||
|
||||
从现在开始,尽情地拥抱 layui 吧!但愿她能成为你长远的开发伴侣,化作你方寸屏幕前的亿万字节!
|
||||
|
||||
## 使用趋势
|
||||
## 趋势 / Trend
|
||||
|
||||
[](https://giteye.net/chart/5ZQ67WWS)
|
||||
|
||||
## 贡献者
|
||||
## 贡献 / Contribution
|
||||
|
||||
> 大概是因为 layui - vue 让开发者变得更懒,所以贡献者才这么少?
|
||||
> 好的,姑且就这样认为吧。
|
||||
|
||||
[](https://giteye.net/chart/DBC9Z6HQ)
|
||||
|
||||
## 交流群
|
||||
|
||||

|
||||
|
||||
## 相关
|
||||
## 其他 / Other
|
||||
|
||||
[官网](http://layui-vue.pearadmin.com/)、[更新日志](http://layui-vue.pearadmin.com/zh-CN/guide/changelog)、[交流群](https://jq.qq.com/?_wv=1027&k=ffiUQgnE)
|
||||
|
@ -132,12 +132,11 @@ const components: Record<string, IDefineComponent> = {
|
||||
}
|
||||
|
||||
const install = (app: App, options?: InstallOptions): void => {
|
||||
const _options = options
|
||||
app.config.globalProperties.$PROOPTIONS = _options
|
||||
|
||||
const _options = options;
|
||||
app.config.globalProperties.$PROOPTIONS = _options;
|
||||
for (const key in components) {
|
||||
const item = components[key]
|
||||
app.component(item.name || key, item)
|
||||
const item = components[key];
|
||||
app.component(item.name || key, item);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user