mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
22 lines
388 B
JavaScript
22 lines
388 B
JavaScript
import Page from '../../common/page';
|
|
import config from './config';
|
|
|
|
const basic = config.basic.map(item => item.css);
|
|
const outline = config.outline.map(item => item.css);
|
|
const filled = config.filled.map(item => item.css);
|
|
|
|
Page({
|
|
data: {
|
|
basic,
|
|
outline,
|
|
filled,
|
|
active: 0
|
|
},
|
|
|
|
onSwitch(event) {
|
|
this.setData({
|
|
active: event.detail.index
|
|
});
|
|
}
|
|
});
|