@@ -1344,7 +1344,7 @@
"show": true,
"author": "yushuang24",
"taro": true,
- "styleDeps": ["Button"]
+ "styleDeps": ["Button", "Swipe"]
},
{
"version": "3.0.0",
@@ -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
@@ -8,12 +8,10 @@
@@ -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'],
import Button from '../button/index.vue';
+import Swipe from '../swipe/index.vue';