<template>
  <layout-cascader
    id="f2598ba72e864eadabf0ca4b664d26b9"
    v-model="modelValue"
    ref="cascaderRef"
    :check-strictly="false"
    :show-all-levels="false"
  />
</template>

<script setup>
import { ref } from "vue";
import { useVModel } from "@vueuse/core";
import LayoutCascader from "@/components/cascader/index.vue";

defineOptions({
  name: "LayoutIndustry",
});
const props = defineProps({
  modelValue: {
    type: Array,
    required: true,
    default: () => [],
  },
});
const emits = defineEmits(["update:modelValue"]);
const modelValue = useVModel(props, "modelValue", emits);
const cascaderRef = ref(null);
const getCheckedNodes = () => {
  return cascaderRef.value.getCheckedNodes();
};
defineExpose({
  getCheckedNodes,
});
</script>

<style scoped></style>
