Browse Source

fix(addresslist): 增加组件依赖关系

eiinu 3 years ago
parent
commit
f9d5a21f37

+ 1 - 1
src/config.json

@@ -1344,7 +1344,7 @@
           "show": true,
           "author": "yushuang24",
           "taro": true,
-          "styleDeps": ["Button"]
+          "styleDeps": ["Button", "Swipe"]
         },
         {
           "version": "3.0.0",

+ 1 - 3
src/packages/__VUE/addresslist/doc.en-US.md

@@ -8,12 +8,10 @@ It is mainly used to display and operate the address list. Dependent components:
 
 ```javascript
 import { createApp } from "vue";
-import { AddressList, Swipe, Button } from "@nutui/nutui";
+import { AddressList } from "@nutui/nutui";
 
 const app = createApp();
 app.use(AddressList);
-app.use(Swipe);
-app.use(Button);
 ```
 
 ### Basic Usage

+ 1 - 3
src/packages/__VUE/addresslist/doc.md

@@ -8,12 +8,10 @@
 
 ```javascript
 import { createApp } from "vue";
-import { AddressList, Swipe, Button } from "@nutui/nutui";
+import { AddressList } from "@nutui/nutui";
 
 const app = createApp();
 app.use(AddressList);
-app.use(Swipe);
-app.use(Button);
 ```
 
 

+ 1 - 3
src/packages/__VUE/addresslist/doc.taro.md

@@ -8,12 +8,10 @@
 
 ```javascript
 import { createApp } from "vue";
-import { AddressList, Swipe, Button } from "@nutui/nutui";
+import { AddressList } from "@nutui/nutui";
 
 const app = createApp();
 app.use(AddressList);
-app.use(Swipe);
-app.use(Button);
 ```
 
 

+ 3 - 1
src/packages/__VUE/addresslist/index.taro.vue

@@ -65,6 +65,7 @@ import SwipeShell from './components/SwipeShell.vue';
 import GeneralShell from './components/GeneralShell.vue';
 import { floatData } from '@/packages/utils/util';
 import Button from '../button/index.taro.vue';
+import Swipe from '../swipe/index.taro.vue';
 export default /* @__PURE__ */ create({
   props: {
     data: {
@@ -91,7 +92,8 @@ export default /* @__PURE__ */ create({
   components: {
     SwipeShell,
     GeneralShell,
-    [Button.name]: Button
+    [Button.name]: Button,
+    [Swipe.name]: Swipe
   },
   emits: ['delIcon', 'editIcon', 'itemClick', 'longCopy', 'longSet', 'longDel', 'swipeDel', 'add'],
 

+ 3 - 1
src/packages/__VUE/addresslist/index.vue

@@ -65,6 +65,7 @@ import SwipeShell from './components/SwipeShell.vue';
 import GeneralShell from './components/GeneralShell.vue';
 import { floatData } from '@/packages/utils/util';
 import Button from '../button/index.vue';
+import Swipe from '../swipe/index.vue';
 export default /* @__PURE__ */ create({
   props: {
     data: {
@@ -91,7 +92,8 @@ export default /* @__PURE__ */ create({
   components: {
     SwipeShell,
     GeneralShell,
-    [Button.name]: Button
+    [Button.name]: Button,
+    [Swipe.name]: Swipe
   },
   emits: ['delIcon', 'editIcon', 'itemClick', 'longCopy', 'longSet', 'longDel', 'swipeDel', 'add'],