docs: prefer shorter demo
This commit is contained in:
@@ -132,10 +132,7 @@ import { Toast } from 'vant';
|
||||
export default {
|
||||
setup() {
|
||||
const active = ref(0);
|
||||
const onChange = (index) => {
|
||||
Toast(`Tab ${index}`);
|
||||
};
|
||||
|
||||
const onChange = (index) => Toast(`Tab ${index}`);
|
||||
return {
|
||||
icon,
|
||||
onChange,
|
||||
|
||||
@@ -138,10 +138,7 @@ import { Toast } from 'vant';
|
||||
export default {
|
||||
setup() {
|
||||
const active = ref(0);
|
||||
const onChange = (index) => {
|
||||
Toast(`标签 ${index}`);
|
||||
};
|
||||
|
||||
const onChange = (index) => Toast(`标签 ${index}`);
|
||||
return {
|
||||
icon,
|
||||
onChange,
|
||||
|
||||
Reference in New Issue
Block a user