indexed-list.nvue 392 B

12345678910111213141516171819202122
  1. <template>
  2. <uni-indexed-list :options="list" :show-select="true" @click="bindClick" />
  3. </template>
  4. <script>
  5. import airport from '@/common/airport.js'
  6. export default {
  7. components: {},
  8. data() {
  9. return {
  10. list: airport.list
  11. }
  12. },
  13. methods: {
  14. bindClick(e) {
  15. console.log('点击item,返回数据' + JSON.stringify(e))
  16. }
  17. }
  18. }
  19. </script>
  20. <style lang="scss"></style>