index.js 208 B

12345678910111213
  1. import ad from '../index/ad'
  2. ad({
  3. data: {
  4. current: '1',
  5. },
  6. onChange(e) {
  7. console.log('onChange', e)
  8. this.setData({
  9. current: e.detail.key,
  10. })
  11. },
  12. })