{"ast":null,"code":"import { vModelText as _vModelText, createElementVNode as _createElementVNode, withDirectives as _withDirectives, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, TransitionGroup as _TransitionGroup, withCtx as _withCtx, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\";\nconst _withScopeId = n => (_pushScopeId(\"data-v-5752faac\"), n = n(), _popScopeId(), n);\nconst _hoisted_1 = {\n id: \"demo\"\n};\nconst _hoisted_2 = {\n span: \"9\"\n};\nconst _hoisted_3 = {\n class: \"demo-input\"\n};\nconst _hoisted_4 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", {\n span: \"15\"\n}, [/*#__PURE__*/_createElementVNode(\"span\")], -1 /* HOISTED */));\nconst _hoisted_5 = {\n class: \"demo-input remove-btn\"\n};\nconst _hoisted_6 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/_createElementVNode(\"h3\", null, \"数据展示区:\", -1 /* HOISTED */));\nconst _hoisted_7 = [\"onClick\"];\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", null, [_createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"div\", _hoisted_3, [_withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => $data.value = $event),\n maxlength: \"10\",\n \"show-word-limit\": \"\",\n clearable: \"\",\n placeholder: \"请输入添加项...\",\n style: {\n \"width\": \"200px\"\n }\n }, null, 512 /* NEED_PATCH */), [[_vModelText, $data.value]]), _createElementVNode(\"button\", {\n class: \"add-btn\",\n type: \"success\",\n onClick: _cache[1] || (_cache[1] = (...args) => $options.handleAdd && $options.handleAdd(...args))\n }, \" 添加 \")])]), _hoisted_4]), _createElementVNode(\"div\", _hoisted_5, [_hoisted_6, _createVNode(_TransitionGroup, {\n name: \"myfade\",\n tag: \"ul\"\n }, {\n default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList($data.dataList, item => {\n return _openBlock(), _createElementBlock(\"li\", {\n key: item.id\n }, [_createTextVNode(_toDisplayString(item.label) + \" \" + _toDisplayString(item.id) + \" \", 1 /* TEXT */), _createElementVNode(\"button\", {\n type: \"text\",\n onClick: $event => $options.handleRemove(item)\n }, \"remove\", 8 /* PROPS */, _hoisted_7)]);\n }), 128 /* KEYED_FRAGMENT */))]),\n\n _: 1 /* STABLE */\n })])]);\n}","map":{"version":3,"names":["id","span","class","_createElementVNode","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_3","$data","value","$event","maxlength","clearable","placeholder","style","type","onClick","_cache","args","$options","handleAdd","_hoisted_4","_hoisted_5","_hoisted_6","_createVNode","_TransitionGroup","name","tag","_Fragment","_renderList","dataList","item","key","label","_toDisplayString","handleRemove","_hoisted_7"],"sources":["/Users/li/Desktop/work/work2/OG/GamePortrait/src/views/test.vue"],"sourcesContent":["\n \n \n \n \n \n \n 添加\n \n \n \n \n \n \n 数据展示区:\n \n \n {{ item.label }} {{ item.id }}\n remove\n \n \n \n \n\n\n\n\n\n"],"mappings":";;;EACOA,EAAE,EAAC;AAAM;;EAELC,IAAI,EAAC;AAAG;;EACNC,KAAK,EAAC;AAAY;gEAczBC,mBAAA,CAAkC;EAA7BF,IAAI,EAAC;AAAI,I,aAACE,mBAAA,CAAa,Q;;EAEzBD,KAAK,EAAC;AAAuB;gEAChCC,mBAAA,CAAe,YAAX,QAAM;;;uBApBdC,mBAAA,CA4BM,OA5BNC,UA4BM,GA3BJF,mBAAA,CAiBM,cAhBJA,mBAAA,CAcM,OAdNG,UAcM,GAbJH,mBAAA,CAYM,OAZNI,UAYM,G,gBAXJJ,mBAAA,CAOE;+DANSK,KAAA,CAAAC,KAAK,GAAAC,MAAA;IACdC,SAAS,EAAC,IAAI;IACd,iBAAe,EAAf,EAAe;IACfC,SAAS,EAA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