GamePortrait/node_modules/.cache/babel-loader/211e84646c8b36163221496de4a194c2008da45c139ca713c72213d6bd0041a2.json

1 line
2.6 KiB
JSON

{"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-c5f47a3a\"), 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));\nconst _hoisted_5 = {\n class: \"demo-input remove-btn\"\n};\nconst _hoisted_6 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/_createElementVNode(\"h3\", null, \"数据展示区:\", -1));\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), [[_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), _createElementVNode(\"button\", {\n type: \"text\",\n onClick: $event => $options.handleRemove(item)\n }, \"remove\", 8, _hoisted_7)]);\n }), 128))]),\n _: 1\n })])]);\n}","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}