"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
;/* empty css                                               */
;/* empty css                                                 */
;/* empty css                                                */
;/* empty css                                               */
;/* empty css                                                      */
const Vue = require("vue");
;/* empty css             */
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
const index = require("../../../../node_modules/vant/es/tabbar/index.js");
const index$1 = require("../../../../node_modules/vant/es/tabbar-item/index.js");
const _sfc_main = {
  __name: "Tabbar",
  props: {
    modelValue: {
      type: Number,
      default: 0
    },
    tabbarOptions: {
      type: Array,
      default: []
    }
  },
  emits: ["update:modelValue"],
  setup(__props, { emit: __emit }) {
    const props = __props;
    const emit = __emit;
    const activeName = Vue.computed({
      get: () => {
        return props.modelValue;
      },
      set: (val) => {
        emit("update:modelValue", val);
      }
    });
    return (_ctx, _cache) => {
      const _component_van_tabbar_item = index$1.TabbarItem;
      const _component_van_tabbar = index.Tabbar;
      return Vue.openBlock(), Vue.createBlock(_component_van_tabbar, Vue.mergeProps(_ctx.$attrs, {
        modelValue: Vue.unref(activeName),
        "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null),
        fixed: false,
        "safe-area-inset-bottom": ""
      }), {
        default: Vue.withCtx(() => [
          (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.tabbarOptions, (item) => {
            return Vue.openBlock(), Vue.createBlock(_component_van_tabbar_item, {
              icon: item.icon,
              name: item.pageId
            }, {
              default: Vue.withCtx(() => [
                Vue.createTextVNode(Vue.toDisplayString(item.title), 1)
              ]),
              _: 2
            }, 1032, ["icon", "name"]);
          }), 256)),
          Vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
        ]),
        _: 3
      }, 16, ["modelValue"]);
    };
  }
};
const _Tabbar = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-04abcf62"]]);
exports.default = _Tabbar;
