You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0 lines
12 KiB

1 month ago
  1. {"ast":null,"code":"import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = {\n class: \"register-container\"\n};\nconst _hoisted_2 = {\n class: \"register-box\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_input = _resolveComponent(\"el-input\");\n const _component_el_form_item = _resolveComponent(\"el-form-item\");\n const _component_el_button = _resolveComponent(\"el-button\");\n const _component_el_form = _resolveComponent(\"el-form\");\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_cache[7] || (_cache[7] = _createElementVNode(\"h2\", null, \"用户注册\", -1 /* HOISTED */)), _createVNode(_component_el_form, {\n ref: \"formRef\",\n model: $setup.form,\n rules: $setup.rules,\n \"label-width\": \"0\",\n class: \"register-form\"\n }, {\n default: _withCtx(() => [_createVNode(_component_el_form_item, {\n prop: \"username\"\n }, {\n default: _withCtx(() => [_createVNode(_component_el_input, {\n modelValue: $setup.form.username,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => $setup.form.username = $event),\n placeholder: \"请输入用户名\",\n \"prefix-icon\": \"User\"\n }, null, 8 /* PROPS */, [\"modelValue\"])]),\n _: 1 /* STABLE */\n }), _createVNode(_component_el_form_item, {\n prop: \"password\"\n }, {\n default: _withCtx(() => [_createVNode(_component_el_input, {\n modelValue: $setup.form.password,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => $setup.form.password = $event),\n type: \"password\",\n placeholder: \"请输入密码\",\n \"prefix-icon\": \"Lock\",\n \"show-password\": \"\"\n }, null, 8 /* PROPS */, [\"modelValue\"])]),\n _: 1 /* STABLE */\n }), _createVNode(_component_el_form_item, {\n prop: \"confirmPassword\"\n }, {\n default: _withCtx(() => [_createVNode(_component_el_input, {\n modelValue: $setup.form.confirmPassword,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => $setup.form.confirmPassword = $event),\n type: \"password\",\n placeholder: \"请确认密码\",\n \"prefix-icon\": \"Lock\",\n \"show-password\": \"\"\n }, null, 8 /* PROPS */, [\"modelValue\"])]),\n _: 1 /* STABLE */\n }), _createVNode(_component_el_form_item, {\n prop: \"email\"\n }, {\n default: _withCtx(() => [_createVNode(_component_el_input, {\n modelValue: $setup.form.email,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => $setup.form.email = $event),\n placeholder: \"请输入邮箱\",\n \"prefix-icon\": \"Message\"\n }, null, 8 /* PROPS */, [\"modelValue\"])]),\n _: 1 /* STABLE */\n }), _createVNode(_component_el_form_item, null, {\n default: _withCtx(() => [_createVNode(_component_el_button, {\n type: \"primary\",\n class: \"submit-btn\",\n loading: $setup.loading,\n onClick: $setup.handleSubmit\n }, {\n default: _withCtx(() => _cache[5] || (_cache[5] = [_createTextVNode(\" 注册 \")])),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"loading\"]), _createVNode(_component_el_button, {\n class: \"submit-btn\",\n onClick: _cache[4] || (_cache[4] = $event => _ctx.$router.push('/login'))\n }, {\n default: _withCtx(() => _cache[6] || (_cache[6] = [_createTextVNode(\" 返回登录 \")])),\n _: 1 /* STABLE */\n })]),\n _: 1 /* STABLE */\n })]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"model\"])])]);\n}","map":{"version":3,"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_createVNode","_component_el_form","ref","model","$setup","fo