From 25b8e7ebf9208bfae4a67a5de315bd99d4975577 Mon Sep 17 00:00:00 2001 From: AwesomeDevin Date: Fri, 3 Nov 2023 18:25:58 +0800 Subject: [PATCH] feat: update readme --- CHINESE-README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHINESE-README.md b/CHINESE-README.md index c7f9479..d040f23 100644 --- a/CHINESE-README.md +++ b/CHINESE-README.md @@ -72,8 +72,11 @@ this.$waterfall.forceUpdate() //forceUpdate 2. 使用了`waterfall`的父组件,如果样式存在问题,可去掉css `scoped`尝试一下 ##### main.js ```javascript +import { createApp } from "vue"; import waterfall from 'vue-waterfall2' -Vue.use(waterfall) + +const app = createApp(App) +app.use(waterfall) ``` ##### app.vue ```javascript