[improvement] Cell: functional (#2729)

This commit is contained in:
neverland
2019-02-13 15:37:11 +08:00
committed by GitHub
parent a08666947f
commit 4aad9add9c
19 changed files with 162 additions and 129 deletions
+3 -4
View File
@@ -1,13 +1,12 @@
import { use } from '../utils';
import Icon from '../icon';
import RouterLink from '../mixins/router-link';
import { route, routeProps } from '../mixins/router-link';
const [sfc, bem] = use('goods-action-mini-btn');
export default sfc({
mixins: [RouterLink],
props: {
...routeProps,
text: String,
info: [String, Number],
icon: String,
@@ -17,7 +16,7 @@ export default sfc({
methods: {
onClick(event) {
this.$emit('click', event);
this.routerLink();
route(this.$router, this);
}
},