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
6.9 KiB

1 month ago
  1. {"ast":null,"code":"import { createElementVNode as _createElementVNode, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = {\n class: \"header-right\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_icon = _resolveComponent(\"el-icon\");\n const _component_el_menu_item = _resolveComponent(\"el-menu-item\");\n const _component_el_menu = _resolveComponent(\"el-menu\");\n const _component_el_aside = _resolveComponent(\"el-aside\");\n const _component_el_button = _resolveComponent(\"el-button\");\n const _component_el_header = _resolveComponent(\"el-header\");\n const _component_router_view = _resolveComponent(\"router-view\");\n const _component_el_main = _resolveComponent(\"el-main\");\n const _component_el_container = _resolveComponent(\"el-container\");\n return _openBlock(), _createBlock(_component_el_container, {\n class: \"layout-container\"\n }, {\n default: _withCtx(() => [_createVNode(_component_el_aside, {\n width: \"200px\"\n }, {\n default: _withCtx(() => [_cache[1] || (_cache[1] = _createElementVNode(\"div\", {\n class: \"logo\"\n }, \"物流管理系统\", -1 /* HOISTED */)), _createVNode(_component_el_menu, {\n router: true,\n \"default-active\": $setup.route.path\n }, {\n default: _withCtx(() => [_createVNode(_component_el_menu_item, {\n index: \"/orders/my\"\n }, {\n default: _withCtx(() => [_createVNode(_component_el_icon, null, {\n default: _withCtx(() => [_createVNode($setup[\"Document\"])]),\n _: 1 /* STABLE */\n }), _cache[0] || (_cache[0] = _createElementVNode(\"span\", null, \"我的订单\", -1 /* HOISTED */))]),\n _: 1 /* STABLE */\n })]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"default-active\"])]),\n _: 1 /* STABLE */\n }), _createVNode(_component_el_container, null, {\n default: _withCtx(() => [_createVNode(_component_el_header, null, {\n default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [_createElementVNode(\"span\", null, _toDisplayString($setup.userInfo.username), 1 /* TEXT */), _createVNode(_component_el_button, {\n type: \"text\",\n onClick: $setup.handleLogout\n }, {\n default: _withCtx(() => _cache[2] || (_cache[2] = [_createTextVNode(\"退出登录\")])),\n _: 1 /* STABLE */\n })])]),\n _: 1 /* STABLE */\n }), _createVNode(_component_el_main, null, {\n default: _withCtx(() => [_createVNode(_component_router_view)]),\n _: 1 /* STABLE */\n })]),\n _: 1 /* STABLE */\n })]),\n _: 1 /* STABLE */\n });\n}","map":{"version":3,"names":["class","_createBlock","_component_el_container","default","_withCtx","_createVNode","_component_el_aside","width","_createElementVNode","_component_el_menu","router","$setup","route","path","_component_el_menu_item","index","_component_el_icon","_","_component_el_header","_hoisted_1","_toDisplayString","userInfo","username","_component_el_button","type","onClick","handleLogout","_cache","_createTextVNode","_component_el_main","_component_router_view"],"sources":["D:\\language\\VScode\\Front-end logistics\\src\\components\\layout\\index.vue"],"sourcesContent":["<template>\r\n <el-container class=\"layout-container\">\r\n <el-aside width=\"200px\">\r\n <div class=\"logo\">物流管理系统</div>\r\n <el-menu\r\n :router=\"true\"\r\n :default-active=\"route.path\"\r\n >\r\n <el-menu-item index=\"/orders/my\">\r\n <el-icon><Document /></el-icon>\r\n <span>我的订单</span>\r\n </el-menu-item>\r\n </el-menu>\r\n </el-aside>\r\n \r\n <el-container>\r\n <el-header>\r\n <div class=\"header-right\">\r\n <span>{{ userInfo.username }}</span>\r\n