From 7dc65e9f0281c7ca0b066b4742afac55a8e68a97 Mon Sep 17 00:00:00 2001 From: ARuan <3205647203@qq.com> Date: Sat, 5 Oct 2024 22:15:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?nuiui-cat=E6=96=87=E6=A1=A3=E7=9A=84?= =?UTF-8?q?=E5=BF=AB=E9=80=9F=E4=B8=8A=E6=89=8B=E7=9A=84=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E6=94=B9=E4=B8=BAvue2=E7=9A=84=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/docs/start.md | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/docs/start.md b/src/docs/start.md index c29f84fe..3554593b 100644 --- a/src/docs/start.md +++ b/src/docs/start.md @@ -23,39 +23,43 @@ npm i @nutui/nutui-cat -S - + - + -
- -
+
+ ``` > 在页面中直接引入,将无法使用 **主题定制** 等功能。我们推荐使用 *NPM* 或 *YARN* 方式安装,不推荐在页面中直接引入的用法 #### NPM 使用示例 ```javascript -import { createApp } from "vue"; import App from "./App.vue"; import NutCat from "@nutui/nutui-cat"; import "@nutui/nutui-cat/dist/nutui-cat.css"; -createApp(App).use(NutCat).mount("#app"); +Vue.use(NutCat) +new Vue({ + render: (h) => h(App), +}).$mount('#app') ``` > 注意:这种方式将会导入所有组件 From 88f7bde19c6079a5b2bb6c9b54a03d88bb162e28 Mon Sep 17 00:00:00 2001 From: ARuan <3205647203@qq.com> Date: Sat, 5 Oct 2024 22:47:44 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BD=BF=E7=94=A8NutBott?= =?UTF-8?q?om=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=EF=BC=8CTypeError:=20t.$?= =?UTF-8?q?get=20is=20not=20a=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/bottom/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/bottom/index.vue b/src/packages/bottom/index.vue index ef27d6d1..b68a0638 100644 --- a/src/packages/bottom/index.vue +++ b/src/packages/bottom/index.vue @@ -14,7 +14,7 @@ From a4f9c1efff9bf1e8e3d12bedeb9b048724576b41 Mon Sep 17 00:00:00 2001 From: ARuan <3205647203@qq.com> Date: Sat, 5 Oct 2024 23:12:42 +0800 Subject: [PATCH 3/3] =?UTF-8?q?NutStarbrand=E6=8C=89=E7=85=A7=E6=96=87?= =?UTF-8?q?=E6=A1=A3callback=E4=BA=8B=E4=BB=B6=E5=BA=94=E8=AF=A5=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E2=80=9C=E5=BD=93=E5=89=8Ditem=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E2=80=9D=EF=BC=8C=E8=80=8C=E9=9D=9E=E2=80=9Cswiper?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/starbrand/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/starbrand/index.vue b/src/packages/starbrand/index.vue index c8b74217..079f818c 100644 --- a/src/packages/starbrand/index.vue +++ b/src/packages/starbrand/index.vue @@ -76,7 +76,7 @@ export default create({ freeModeMomentum: false, // 取消惯性 on: { click(swiper:any) { - that.$emit("callback", swiper); + that.$emit("callback", item[index]); } } });