[Improvement] extract component common part (#703)

This commit is contained in:
neverland
2018-03-16 17:10:46 +08:00
committed by GitHub
parent f26ad3b912
commit ffd72e5442
81 changed files with 174 additions and 207 deletions
+11 -4
View File
@@ -37,11 +37,18 @@
</template>
<script>
import { create } from '../utils';
import Icon from '../icon';
import install from '../utils/install';
import RouterLink from '../mixins/router-link';
export default create({
name: 'van-cell',
export default {
install,
name: 'cell',
components: {
Icon
},
mixins: [RouterLink],
@@ -65,5 +72,5 @@ export default create({
this.routerLink();
}
}
});
};
</script>