demo2.vue 426 B

123456789101112131415161718192021
  1. <template>
  2. <button @click="handleClis">激活</button>
  3. <selectZyLevel ref="selectRef" @confirm-btn="onConfirm" :id="13"></selectZyLevel>
  4. </template>
  5. <script setup>
  6. import selectZyLevel from "@/components/selectZyLevel/index.vue"
  7. import {ref} from "vue"
  8. const selectRef = ref(null)
  9. function handleClis() {
  10. selectRef.value.handleShow()
  11. }
  12. function onConfirm(list) {
  13. console.log('list', list)
  14. }
  15. </script>
  16. <style>
  17. </style>