directory adjust: delete entry index.js
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
import Swipe from './src/swipe';
|
||||
|
||||
export default Swipe;
|
||||
@@ -1,22 +0,0 @@
|
||||
<template>
|
||||
<div class="van-swipe-item">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'van-swipe-item',
|
||||
|
||||
beforeCreate() {
|
||||
this.$parent.swipes.push(this);
|
||||
},
|
||||
|
||||
destroyed() {
|
||||
const index = this.$parent.swipes.indexOf(this)
|
||||
if (index > -1) {
|
||||
this.$parent.swipes.splice(index, 1)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user