feat(Tab): add to、url、replace prop (#4422)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { createNamespace, isDef, addUnit } from '../utils';
|
||||
import { scrollLeftTo } from './utils';
|
||||
import { route } from '../utils/router';
|
||||
import { isHidden } from '../utils/dom/style';
|
||||
import { ParentMixin } from '../mixins/relation';
|
||||
import { BindEventMixin } from '../mixins/bind-event';
|
||||
@@ -277,6 +278,7 @@ export default createComponent({
|
||||
swipeThreshold={this.swipeThreshold}
|
||||
onClick={() => {
|
||||
this.onClick(index);
|
||||
route(item.$router, item);
|
||||
}}
|
||||
/>
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user