From 4b3e9692fbed36e72740fc1444648c5ad9d10d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Wed, 6 Oct 2021 11:58:06 +0000 Subject: [PATCH] update README.md. --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f0a5e412..14fdfc2c 100644 --- a/README.md +++ b/README.md @@ -39,13 +39,14 @@ npm install @layui/layui-vue ```js import { createApp } from 'vue' +import Layui from '@layui/layui-vue' +import '@layui/layui-vue/lib/layui.css' import App from './App.vue' -import Layui from 'layui-vue' -import 'layui-vue/lib/layui.css' -const app = createApp(App) -app.use(Layui) -app.mount('#app') +createApp(App) +.use(Layui) +.mount('#app') + ``` 这是一个基本的入门页面: