(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[194],{
/***/ 483:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm-browser.js
var vue_esm_browser = __webpack_require__(0);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--2-0!./website/md-loader!./website/docs/zh-CN/container.md?vue&type=template&id=122254f8
var containervue_type_template_id_122254f8_hoisted_1 = {
class: "content element-doc"
};
var containervue_type_template_id_122254f8_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser["m" /* createStaticVNode */])("
Container 布局容器
用于布局的容器组件,方便快速搭建页面的基本结构:
<el-container>
:外层容器。当子元素中包含 <el-header>
或 <el-footer>
时,全部子元素会垂直上下排列,否则会水平左右排列。
<el-header>
:顶栏容器。
<el-aside>
:侧边栏容器。
<el-main>
:主要区域容器。
<el-footer>
:底栏容器。
以上组件采用了 flex 布局,使用前请确定目标浏览器是否兼容。此外,<el-container>
的子元素只能是后四者,后四者的父元素也只能是 <el-container>
。
常见页面布局
", 9);
var containervue_type_template_id_122254f8_hoisted_11 = /*#__PURE__*/Object(vue_esm_browser["o" /* createVNode */])("pre", null, [/*#__PURE__*/Object(vue_esm_browser["o" /* createVNode */])("code", {
class: "html"
}, "\n Header\n Main\n\n\n\n Header\n Main\n Footer\n\n\n\n Aside\n Main\n\n\n\n Header\n \n Aside\n Main\n \n\n\n\n Header\n \n Aside\n \n Main\n Footer\n \n \n\n\n\n Aside\n \n Header\n Main\n \n\n\n\n Aside\n \n Header\n Main\n Footer\n \n\n\n\n")], -1);
var containervue_type_template_id_122254f8_hoisted_12 = /*#__PURE__*/Object(vue_esm_browser["o" /* createVNode */])("h3", {
id: "shi-li"
}, [/*#__PURE__*/Object(vue_esm_browser["o" /* createVNode */])("a", {
class: "header-anchor",
href: "#shi-li"
}, "¶"), /*#__PURE__*/Object(vue_esm_browser["n" /* createTextVNode */])(" 实例")], -1);
var containervue_type_template_id_122254f8_hoisted_13 = /*#__PURE__*/Object(vue_esm_browser["o" /* createVNode */])("pre", null, [/*#__PURE__*/Object(vue_esm_browser["o" /* createVNode */])("code", {
class: "html"
}, "\n \n \n \n 导航一\n \n 分组一\n 选项1\n 选项2\n \n \n 选项3\n \n \n 选项4\n 选项4-1\n \n \n \n 导航二\n \n 分组一\n 选项1\n 选项2\n \n \n 选项3\n \n \n 选项4\n 选项4-1\n \n \n \n 导航三\n \n 分组一\n 选项1\n 选项2\n \n \n 选项3\n \n \n 选项4\n 选项4-1\n \n \n \n \n \n \n \n \n \n \n \n 查看\n 新增\n 删除\n \n \n \n 王小虎\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n\n")], -1);
var containervue_type_template_id_122254f8_hoisted_14 = /*#__PURE__*/Object(vue_esm_browser["m" /* createStaticVNode */])(" Container Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|
direction | 子元素的排列方向 | string | horizontal / vertical | 子元素中有 el-header 或 el-footer 时为 vertical,否则为 horizontal |
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|
height | 顶栏高度 | string | — | 60px |
Aside Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|
width | 侧边栏宽度 | string | — | 300px |
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|
height | 底栏高度 | string | — | 60px |
", 8);
function containervue_type_template_id_122254f8_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_element_demo0 = Object(vue_esm_browser["P" /* resolveComponent */])("element-demo0");
var _component_demo_block = Object(vue_esm_browser["P" /* resolveComponent */])("demo-block");
var _component_element_demo1 = Object(vue_esm_browser["P" /* resolveComponent */])("element-demo1");
return Object(vue_esm_browser["G" /* openBlock */])(), Object(vue_esm_browser["j" /* createBlock */])("section", containervue_type_template_id_122254f8_hoisted_1, [containervue_type_template_id_122254f8_hoisted_2, Object(vue_esm_browser["o" /* createVNode */])(_component_demo_block, null, {
source: Object(vue_esm_browser["eb" /* withCtx */])(function () {
return [Object(vue_esm_browser["o" /* createVNode */])(_component_element_demo0)];
}),
highlight: Object(vue_esm_browser["eb" /* withCtx */])(function () {
return [containervue_type_template_id_122254f8_hoisted_11];
}),
_: 1
}), containervue_type_template_id_122254f8_hoisted_12, Object(vue_esm_browser["o" /* createVNode */])(_component_demo_block, null, {
source: Object(vue_esm_browser["eb" /* withCtx */])(function () {
return [Object(vue_esm_browser["o" /* createVNode */])(_component_element_demo1)];
}),
highlight: Object(vue_esm_browser["eb" /* withCtx */])(function () {
return [containervue_type_template_id_122254f8_hoisted_13];
}),
_: 1
}), containervue_type_template_id_122254f8_hoisted_14]);
}
// CONCATENATED MODULE: ./website/docs/zh-CN/container.md?vue&type=template&id=122254f8
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/extends.js
var helpers_extends = __webpack_require__(7);
var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--2-0!./website/md-loader!./website/docs/zh-CN/container.md?vue&type=script&lang=ts
/* harmony default export */ var containervue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
var _createTextVNode = vue_esm_browser["n" /* createTextVNode */],
_resolveComponent = vue_esm_browser["P" /* resolveComponent */],
_withCtx = vue_esm_browser["eb" /* withCtx */],
_createVNode = vue_esm_browser["o" /* createVNode */],
_openBlock = vue_esm_browser["G" /* openBlock */],
_createBlock = vue_esm_browser["j" /* createBlock */];
var _hoisted_1 = /*#__PURE__*/_createTextVNode("Header");
var _hoisted_2 = /*#__PURE__*/_createTextVNode("Main");
var _hoisted_3 = /*#__PURE__*/_createTextVNode("Header");
var _hoisted_4 = /*#__PURE__*/_createTextVNode("Main");
var _hoisted_5 = /*#__PURE__*/_createTextVNode("Footer");
var _hoisted_6 = /*#__PURE__*/_createTextVNode("Aside");
var _hoisted_7 = /*#__PURE__*/_createTextVNode("Main");
var _hoisted_8 = /*#__PURE__*/_createTextVNode("Header");
var _hoisted_9 = /*#__PURE__*/_createTextVNode("Aside");
var _hoisted_10 = /*#__PURE__*/_createTextVNode("Main");
var _hoisted_11 = /*#__PURE__*/_createTextVNode("Header");
var _hoisted_12 = /*#__PURE__*/_createTextVNode("Aside");
var _hoisted_13 = /*#__PURE__*/_createTextVNode("Main");
var _hoisted_14 = /*#__PURE__*/_createTextVNode("Footer");
var _hoisted_15 = /*#__PURE__*/_createTextVNode("Aside");
var _hoisted_16 = /*#__PURE__*/_createTextVNode("Header");
var _hoisted_17 = /*#__PURE__*/_createTextVNode("Main");
var _hoisted_18 = /*#__PURE__*/_createTextVNode("Aside");
var _hoisted_19 = /*#__PURE__*/_createTextVNode("Header");
var _hoisted_20 = /*#__PURE__*/_createTextVNode("Main");
var _hoisted_21 = /*#__PURE__*/_createTextVNode("Footer");
function render(_ctx, _cache) {
var _component_el_header = _resolveComponent("el-header");
var _component_el_main = _resolveComponent("el-main");
var _component_el_container = _resolveComponent("el-container");
var _component_el_footer = _resolveComponent("el-footer");
var _component_el_aside = _resolveComponent("el-aside");
return _openBlock(), _createBlock("div", null, [_createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_header, null, {
default: _withCtx(function () {
return [_hoisted_1];
}),
_: 1
}), _createVNode(_component_el_main, null, {
default: _withCtx(function () {
return [_hoisted_2];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_header, null, {
default: _withCtx(function () {
return [_hoisted_3];
}),
_: 1
}), _createVNode(_component_el_main, null, {
default: _withCtx(function () {
return [_hoisted_4];
}),
_: 1
}), _createVNode(_component_el_footer, null, {
default: _withCtx(function () {
return [_hoisted_5];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_aside, {
width: "200px"
}, {
default: _withCtx(function () {
return [_hoisted_6];
}),
_: 1
}), _createVNode(_component_el_main, null, {
default: _withCtx(function () {
return [_hoisted_7];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_header, null, {
default: _withCtx(function () {
return [_hoisted_8];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_aside, {
width: "200px"
}, {
default: _withCtx(function () {
return [_hoisted_9];
}),
_: 1
}), _createVNode(_component_el_main, null, {
default: _withCtx(function () {
return [_hoisted_10];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_header, null, {
default: _withCtx(function () {
return [_hoisted_11];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_aside, {
width: "200px"
}, {
default: _withCtx(function () {
return [_hoisted_12];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_main, null, {
default: _withCtx(function () {
return [_hoisted_13];
}),
_: 1
}), _createVNode(_component_el_footer, null, {
default: _withCtx(function () {
return [_hoisted_14];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_aside, {
width: "200px"
}, {
default: _withCtx(function () {
return [_hoisted_15];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_header, null, {
default: _withCtx(function () {
return [_hoisted_16];
}),
_: 1
}), _createVNode(_component_el_main, null, {
default: _withCtx(function () {
return [_hoisted_17];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_aside, {
width: "200px"
}, {
default: _withCtx(function () {
return [_hoisted_18];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_header, null, {
default: _withCtx(function () {
return [_hoisted_19];
}),
_: 1
}), _createVNode(_component_el_main, null, {
default: _withCtx(function () {
return [_hoisted_20];
}),
_: 1
}), _createVNode(_component_el_footer, null, {
default: _withCtx(function () {
return [_hoisted_21];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
})]);
}
var democomponentExport = {};
return extends_default()({
render: render
}, democomponentExport);
}(),
"element-demo1": function () {
var _createVNode = vue_esm_browser["o" /* createVNode */],
_createTextVNode = vue_esm_browser["n" /* createTextVNode */],
_resolveComponent = vue_esm_browser["P" /* resolveComponent */],
_withCtx = vue_esm_browser["eb" /* withCtx */],
_openBlock = vue_esm_browser["G" /* openBlock */],
_createBlock = vue_esm_browser["j" /* createBlock */];
var _hoisted_1 = /*#__PURE__*/_createVNode("i", {
class: "el-icon-message"
}, null, -1);
var _hoisted_2 = /*#__PURE__*/_createTextVNode("导航一");
var _hoisted_3 = /*#__PURE__*/_createTextVNode("分组一");
var _hoisted_4 = /*#__PURE__*/_createTextVNode("选项1");
var _hoisted_5 = /*#__PURE__*/_createTextVNode("选项2");
var _hoisted_6 = /*#__PURE__*/_createTextVNode("选项3");
var _hoisted_7 = /*#__PURE__*/_createTextVNode("选项4");
var _hoisted_8 = /*#__PURE__*/_createTextVNode("选项4-1");
var _hoisted_9 = /*#__PURE__*/_createVNode("i", {
class: "el-icon-menu"
}, null, -1);
var _hoisted_10 = /*#__PURE__*/_createTextVNode("导航二");
var _hoisted_11 = /*#__PURE__*/_createTextVNode("分组一");
var _hoisted_12 = /*#__PURE__*/_createTextVNode("选项1");
var _hoisted_13 = /*#__PURE__*/_createTextVNode("选项2");
var _hoisted_14 = /*#__PURE__*/_createTextVNode("选项3");
var _hoisted_15 = /*#__PURE__*/_createTextVNode("选项4");
var _hoisted_16 = /*#__PURE__*/_createTextVNode("选项4-1");
var _hoisted_17 = /*#__PURE__*/_createVNode("i", {
class: "el-icon-setting"
}, null, -1);
var _hoisted_18 = /*#__PURE__*/_createTextVNode("导航三");
var _hoisted_19 = /*#__PURE__*/_createTextVNode("分组一");
var _hoisted_20 = /*#__PURE__*/_createTextVNode("选项1");
var _hoisted_21 = /*#__PURE__*/_createTextVNode("选项2");
var _hoisted_22 = /*#__PURE__*/_createTextVNode("选项3");
var _hoisted_23 = /*#__PURE__*/_createTextVNode("选项4");
var _hoisted_24 = /*#__PURE__*/_createTextVNode("选项4-1");
var _hoisted_25 = /*#__PURE__*/_createVNode("i", {
class: "el-icon-setting",
style: {
"margin-right": "15px"
}
}, null, -1);
var _hoisted_26 = /*#__PURE__*/_createTextVNode("查看");
var _hoisted_27 = /*#__PURE__*/_createTextVNode("新增");
var _hoisted_28 = /*#__PURE__*/_createTextVNode("删除");
var _hoisted_29 = /*#__PURE__*/_createVNode("span", null, "王小虎", -1);
function render(_ctx, _cache) {
var _component_el_menu_item = _resolveComponent("el-menu-item");
var _component_el_menu_item_group = _resolveComponent("el-menu-item-group");
var _component_el_submenu = _resolveComponent("el-submenu");
var _component_el_menu = _resolveComponent("el-menu");
var _component_el_aside = _resolveComponent("el-aside");
var _component_el_dropdown_item = _resolveComponent("el-dropdown-item");
var _component_el_dropdown_menu = _resolveComponent("el-dropdown-menu");
var _component_el_dropdown = _resolveComponent("el-dropdown");
var _component_el_header = _resolveComponent("el-header");
var _component_el_table_column = _resolveComponent("el-table-column");
var _component_el_table = _resolveComponent("el-table");
var _component_el_main = _resolveComponent("el-main");
var _component_el_container = _resolveComponent("el-container");
return _openBlock(), _createBlock("div", null, [_createVNode(_component_el_container, {
style: {
"height": "500px",
"border": "1px solid #eee"
}
}, {
default: _withCtx(function () {
return [_createVNode(_component_el_aside, {
width: "200px",
style: {
"background-color": "rgb(238, 241, 246)"
}
}, {
default: _withCtx(function () {
return [_createVNode(_component_el_menu, {
"default-openeds": ['1', '3']
}, {
default: _withCtx(function () {
return [_createVNode(_component_el_submenu, {
index: "1"
}, {
title: _withCtx(function () {
return [_hoisted_1, _hoisted_2];
}),
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item_group, null, {
title: _withCtx(function () {
return [_hoisted_3];
}),
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item, {
index: "1-1"
}, {
default: _withCtx(function () {
return [_hoisted_4];
}),
_: 1
}), _createVNode(_component_el_menu_item, {
index: "1-2"
}, {
default: _withCtx(function () {
return [_hoisted_5];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_menu_item_group, {
title: "分组2"
}, {
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item, {
index: "1-3"
}, {
default: _withCtx(function () {
return [_hoisted_6];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_submenu, {
index: "1-4"
}, {
title: _withCtx(function () {
return [_hoisted_7];
}),
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item, {
index: "1-4-1"
}, {
default: _withCtx(function () {
return [_hoisted_8];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_submenu, {
index: "2"
}, {
title: _withCtx(function () {
return [_hoisted_9, _hoisted_10];
}),
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item_group, null, {
title: _withCtx(function () {
return [_hoisted_11];
}),
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item, {
index: "2-1"
}, {
default: _withCtx(function () {
return [_hoisted_12];
}),
_: 1
}), _createVNode(_component_el_menu_item, {
index: "2-2"
}, {
default: _withCtx(function () {
return [_hoisted_13];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_menu_item_group, {
title: "分组2"
}, {
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item, {
index: "2-3"
}, {
default: _withCtx(function () {
return [_hoisted_14];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_submenu, {
index: "2-4"
}, {
title: _withCtx(function () {
return [_hoisted_15];
}),
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item, {
index: "2-4-1"
}, {
default: _withCtx(function () {
return [_hoisted_16];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_submenu, {
index: "3"
}, {
title: _withCtx(function () {
return [_hoisted_17, _hoisted_18];
}),
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item_group, null, {
title: _withCtx(function () {
return [_hoisted_19];
}),
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item, {
index: "3-1"
}, {
default: _withCtx(function () {
return [_hoisted_20];
}),
_: 1
}), _createVNode(_component_el_menu_item, {
index: "3-2"
}, {
default: _withCtx(function () {
return [_hoisted_21];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_menu_item_group, {
title: "分组2"
}, {
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item, {
index: "3-3"
}, {
default: _withCtx(function () {
return [_hoisted_22];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_submenu, {
index: "3-4"
}, {
title: _withCtx(function () {
return [_hoisted_23];
}),
default: _withCtx(function () {
return [_createVNode(_component_el_menu_item, {
index: "3-4-1"
}, {
default: _withCtx(function () {
return [_hoisted_24];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
}), _createVNode(_component_el_container, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_header, {
style: {
"text-align": "right",
"font-size": "12px"
}
}, {
default: _withCtx(function () {
return [_createVNode(_component_el_dropdown, null, {
dropdown: _withCtx(function () {
return [_createVNode(_component_el_dropdown_menu, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_dropdown_item, null, {
default: _withCtx(function () {
return [_hoisted_26];
}),
_: 1
}), _createVNode(_component_el_dropdown_item, null, {
default: _withCtx(function () {
return [_hoisted_27];
}),
_: 1
}), _createVNode(_component_el_dropdown_item, null, {
default: _withCtx(function () {
return [_hoisted_28];
}),
_: 1
})];
}),
_: 1
})];
}),
default: _withCtx(function () {
return [_hoisted_25];
}),
_: 1
}), _hoisted_29];
}),
_: 1
}), _createVNode(_component_el_main, null, {
default: _withCtx(function () {
return [_createVNode(_component_el_table, {
data: _ctx.tableData
}, {
default: _withCtx(function () {
return [_createVNode(_component_el_table_column, {
prop: "date",
label: "日期",
width: "140"
}), _createVNode(_component_el_table_column, {
prop: "name",
label: "姓名",
width: "120"
}), _createVNode(_component_el_table_column, {
prop: "address",
label: "地址"
})];
}),
_: 1
}, 8, ["data"])];
}),
_: 1
})];
}),
_: 1
})];
}),
_: 1
})]);
}
var democomponentExport = {
data: function data() {
var item = {
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
};
return {
tableData: Array(20).fill(item)
};
}
};
return extends_default()({
render: render
}, democomponentExport);
}()
}
});
// CONCATENATED MODULE: ./website/docs/zh-CN/container.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/zh-CN/container.md
containervue_type_script_lang_ts.render = containervue_type_template_id_122254f8_render
/* harmony default export */ var container = __webpack_exports__["default"] = (containervue_type_script_lang_ts);
/***/ })
}]);