'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
require('../../../../hooks/index.js');
var companyCategoryCascader = require('./companyCategoryCascader.js');
var index = require('../../../../hooks/store/useCompanyCategoryList/index.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: "GmCompanyCategoryCascader"
  },
  __name: "CompanyCategoryCascader",
  props: {
    "modelValue": {},
    "modelModifiers": {}
  },
  emits: /* @__PURE__ */ vue.mergeModels(companyCategoryCascader.companyCategoryCascaderEmits, ["update:modelValue"]),
  setup(__props, { emit: __emit }) {
    const categoryList = vue.useModel(__props, "modelValue");
    const emit = __emit;
    const companyCategoryListStore = index.useCompanyCategoryListStore();
    return (_ctx, _cache) => {
      const _component_gm_cascader = vue.resolveComponent("gm-cascader");
      return vue.openBlock(), vue.createBlock(_component_gm_cascader, {
        modelValue: categoryList.value,
        "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => categoryList.value = $event),
        options: vue.unref(companyCategoryListStore).companyCategoryList,
        props: { value: "id", label: "name", children: "_child", expandTrigger: "hover" },
        placeholder: "\u516C\u53F8\u5206\u7C7B",
        filterable: "",
        clearable: "",
        onChange: _cache[1] || (_cache[1] = ($event) => emit("change", $event))
      }, null, 8, ["modelValue", "options"]);
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=CompanyCategoryCascader.vue2.js.map
