{"ast":null,"code":"import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\";\nconst _withScopeId = n => (_pushScopeId(\"data-v-7b7e5f8e\"), n = n(), _popScopeId(), n);\nconst _hoisted_1 = {\n class: \"tabbar\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_van_tabbar_item = _resolveComponent(\"van-tabbar-item\");\n const _component_van_tabbar = _resolveComponent(\"van-tabbar\");\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createVNode(_component_van_tabbar, {\n modelValue: $setup.active,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => $setup.active = $event)\n }, {\n default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.tabbar, (item, index) => {\n return _openBlock(), _createBlock(_component_van_tabbar_item, {\n key: index,\n name: item.name,\n onClick: $event => $setup.handleClick(item)\n }, {\n icon: _withCtx(props => [_createElementVNode(\"span\", {\n class: _normalizeClass([\"tab-icon\", {\n active: props.active\n }])\n }, _toDisplayString(item.icon), 3 /* TEXT, CLASS */)]),\n\n default: _withCtx(() => [_createElementVNode(\"span\", {\n class: _normalizeClass([\"tab-text\", {\n active: $setup.active === item.name\n }])\n }, _toDisplayString(item.text), 3 /* TEXT, CLASS */)]),\n\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"name\", \"onClick\"]);\n }), 128 /* KEYED_FRAGMENT */))]),\n\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"modelValue\"])]);\n}","map":{"version":3,"names":["class","_createElementBlock","_hoisted_1","_createVNode","_component_van_tabbar","$setup","active","$event","_Fragment","_renderList","tabbar","item","index","_createBlock","_component_van_tabbar_item","key","name","onClick","handleClick","icon","_withCtx","props","_createElementVNode","_normalizeClass","text"],"sources":["/Users/li/Desktop/work/work2/OG/GamePortrait/src/components/Tabbar.vue"],"sourcesContent":["\n\n\n"],"mappings":";;;EACMA,KAAK,EAAC;AAAQ;;;;uBAAnBC,mBAAA,CASM,OATNC,UASM,GARLC,YAAA,CAOaC,qBAAA;gBAPQC,MAAA,CAAAC,MAAM;+DAAND,MAAA,CAAAC,MAAM,GAAAC,MAAA;;sBACT,MAA+B,E,kBAAhDN,mBAAA,CAKkBO,SAAA,QAAAC,WAAA,CALuBJ,MAAA,CAAAK,MAAM,GAAtBC,IAAI,EAAEC,KAAK;2BAApCC,YAAA,CAKkBC,0BAAA;QALgCC,GAAG,EAAEH,KAAK;QAAGI,IAAI,EAAEL,IAAI,CAACK,IAAI;QAAGC,OAAK,EAAAV,MAAA,IAAEF,MAAA,CAAAa,WAAW,CAACP,IAAI;;QAC5FQ,IAAI,EAAAC,QAAA,CAAEC,KAAK,KACrBC,mBAAA,CAA+E;UAAzEtB,KAAK,EAAAuB,eAAA,EAAC,UAAU;YAAAjB,MAAA,EAAmBe,KAAK,CAACf;UAAM;4BAAOK,IAAI,CAACQ,IAAI,wB;;0BAEtE,MAAuF,CAAvFG,mBAAA,CAAuF;UAAjFtB,KAAK,EAAAuB,eAAA,EAAC,UAAU;YAAAjB,MAAA,EAAmBD,MAAA,CAAAC,MAAM,KAAKK,IAAI,CAACK;UAAI;4BAAOL,IAAI,CAACa,IAAI,wB"},"metadata":{},"sourceType":"module","externalDependencies":[]}