代码拉取完成,页面将自动刷新
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[351],{
/***/ 749:
/***/ (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.prod.js
var vue_esm_browser_prod = __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--3-0!./website/md-loader!./website/docs/zh-CN/timeline.md?vue&type=template&id=9fe42324
const timelinevue_type_template_id_9fe42324_hoisted_1 = {
class: "content element-doc"
};
const timelinevue_type_template_id_9fe42324_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Timeline 时间线 ");
const timelinevue_type_template_id_9fe42324_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "可视化地呈现时间流信息。", -1);
const timelinevue_type_template_id_9fe42324_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("基础用法 ");
const timelinevue_type_template_id_9fe42324_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Timeline 可拆分成多个按照时间戳排列的 activity,时间戳是其区分于其他控件的重要特征,使用时注意与 Steps 步骤条等区分。", -1);
const timelinevue_type_template_id_9fe42324_hoisted_6 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div class=\"block\">\n <el-timeline>\n <el-timeline-item\n v-for=\"(activity, index) in activities\"\n :key=\"index\"\n :timestamp=\"activity.timestamp\"\n >\n {{activity.content}}\n </el-timeline-item>\n </el-timeline>\n</div>\n\n<script>\n export default {\n data() {\n return {\n activities: [\n {\n content: '活动按期开始',\n timestamp: '2018-04-15',\n },\n {\n content: '通过审核',\n timestamp: '2018-04-13',\n },\n {\n content: '创建成功',\n timestamp: '2018-04-11',\n },\n ],\n }\n },\n }\n</script>\n")], -1);
const timelinevue_type_template_id_9fe42324_hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("自定义节点样式 ");
const _hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "可根据实际场景自定义节点尺寸、颜色,或直接使用图标。", -1);
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div class=\"block\">\n <el-timeline>\n <el-timeline-item\n v-for=\"(activity, index) in activities\"\n :key=\"index\"\n :icon=\"activity.icon\"\n :type=\"activity.type\"\n :color=\"activity.color\"\n :size=\"activity.size\"\n :hollow=\"activity.hollow\"\n :timestamp=\"activity.timestamp\"\n >\n {{activity.content}}\n </el-timeline-item>\n </el-timeline>\n</div>\n\n<script>\n export default {\n data() {\n return {\n activities: [\n {\n content: '支持使用图标',\n timestamp: '2018-04-12 20:46',\n size: 'large',\n type: 'primary',\n icon: 'el-icon-more',\n },\n {\n content: '支持自定义颜色',\n timestamp: '2018-04-03 20:46',\n color: '#0bbd87',\n },\n {\n content: '支持自定义尺寸',\n timestamp: '2018-04-03 20:46',\n size: 'large',\n },\n {\n content: '支持空心点',\n timestamp: '2018-04-03 20:46',\n type: 'primary',\n hollow: true,\n },\n {\n content: '默认样式的节点',\n timestamp: '2018-04-03 20:46',\n },\n ],\n }\n },\n }\n</script>\n")], -1);
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("自定义时间戳 ");
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "当内容在垂直方向上过高时,可将时间戳置于内容之上。", -1);
const _hoisted_12 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("pre", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("code", {
class: "html"
}, "<div class=\"block\">\n <el-timeline>\n <el-timeline-item timestamp=\"2018/4/12\" placement=\"top\">\n <el-card>\n <h4>更新 Github 模板</h4>\n <p>王小虎 提交于 2018/4/12 20:46</p>\n </el-card>\n </el-timeline-item>\n <el-timeline-item timestamp=\"2018/4/3\" placement=\"top\">\n <el-card>\n <h4>更新 Github 模板</h4>\n <p>王小虎 提交于 2018/4/3 20:46</p>\n </el-card>\n </el-timeline-item>\n <el-timeline-item timestamp=\"2018/4/2\" placement=\"top\">\n <el-card>\n <h4>更新 Github 模板</h4>\n <p>王小虎 提交于 2018/4/2 20:46</p>\n </el-card>\n </el-timeline-item>\n </el-timeline>\n</div>\n")], -1);
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Timeline-item Attributes ");
const _hoisted_14 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>参数</th><th>说明</th><th>类型</th><th>可选值</th><th>默认值</th></tr></thead><tbody><tr><td>timestamp</td><td>时间戳</td><td>string</td><td>—</td><td>—</td></tr><tr><td>hide-timestamp</td><td>是否隐藏时间戳</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>placement</td><td>时间戳位置</td><td>string</td><td>top / bottom</td><td>bottom</td></tr><tr><td>type</td><td>节点类型</td><td>string</td><td>primary / success / warning / danger / info</td><td>—</td></tr><tr><td>color</td><td>节点颜色</td><td>string</td><td>hsl / hsv / hex / rgb</td><td>—</td></tr><tr><td>size</td><td>节点尺寸</td><td>string</td><td>normal / large</td><td>normal</td></tr><tr><td>icon</td><td>节点图标</td><td>string</td><td>—</td><td>—</td></tr><tr><td>hollow</td><td>是否空心点</td><td>boolean</td><td>—</td><td>false</td></tr></tbody></table>", 1);
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Timeline-Item Slot ");
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("table", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("thead", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "name"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("th", null, "说明")])]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tbody", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "—"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "Timeline-Item 的内容")]), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("tr", null, [/*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "dot"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("td", null, "自定义节点")])])], -1);
function timelinevue_type_template_id_9fe42324_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_app_link = Object(vue_esm_browser_prod["resolveComponent"])("app-link");
const _component_app_heading = Object(vue_esm_browser_prod["resolveComponent"])("app-heading");
const _component_element_demo0 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo0");
const _component_demo_block = Object(vue_esm_browser_prod["resolveComponent"])("demo-block");
const _component_element_demo1 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo1");
const _component_element_demo2 = Object(vue_esm_browser_prod["resolveComponent"])("element-demo2");
const _component_right_nav = Object(vue_esm_browser_prod["resolveComponent"])("right-nav");
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("section", timelinevue_type_template_id_9fe42324_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "timeline-shi-jian-xian",
content: "Timeline 时间线",
href: "#timeline-shi-jian-xian",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [timelinevue_type_template_id_9fe42324_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#timeline-shi-jian-xian"
})]),
_: 1
}), timelinevue_type_template_id_9fe42324_hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "ji-chu-yong-fa",
content: "基础用法",
href: "#ji-chu-yong-fa",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [timelinevue_type_template_id_9fe42324_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#ji-chu-yong-fa"
})]),
_: 1
}), timelinevue_type_template_id_9fe42324_hoisted_5, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo0)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [timelinevue_type_template_id_9fe42324_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "zi-ding-yi-jie-dian-yang-shi",
content: "自定义节点样式",
href: "#zi-ding-yi-jie-dian-yang-shi",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [timelinevue_type_template_id_9fe42324_hoisted_7, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#zi-ding-yi-jie-dian-yang-shi"
})]),
_: 1
}), _hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo1)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_9]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "zi-ding-yi-shi-jian-chuo",
content: "自定义时间戳",
href: "#zi-ding-yi-shi-jian-chuo",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_10, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#zi-ding-yi-shi-jian-chuo"
})]),
_: 1
}), _hoisted_11, Object(vue_esm_browser_prod["createVNode"])(_component_demo_block, null, {
source: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_element_demo2)]),
highlight: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_12]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "timeline-item-attributes",
content: "Timeline-item Attributes",
href: "#timeline-item-attributes",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_13, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#timeline-item-attributes"
})]),
_: 1
}), _hoisted_14, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "timeline-item-slot",
content: "Timeline-Item Slot",
href: "#timeline-item-slot",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_15, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#timeline-item-slot"
})]),
_: 1
}), _hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/zh-CN/timeline.md?vue&type=template&id=9fe42324
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/zh-CN/timeline.md?vue&type=script&lang=ts
/* harmony default export */ var timelinevue_type_script_lang_ts = ({
name: 'component-doc',
components: {
"element-demo0": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
toDisplayString: _toDisplayString,
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createBlock: _createBlock,
createVNode: _createVNode,
createElementVNode: _createElementVNode
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "block"
};
function render(_ctx, _cache) {
const _component_el_timeline_item = _resolveComponent("el-timeline-item");
const _component_el_timeline = _resolveComponent("el-timeline");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", _hoisted_1, [_createVNode(_component_el_timeline, null, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.activities, (activity, index) => {
return _openBlock(), _createBlock(_component_el_timeline_item, {
key: index,
timestamp: activity.timestamp
}, {
default: _withCtx(() => [_createTextVNode(_toDisplayString(activity.content), 1)]),
_: 2
}, 1032, ["timestamp"]);
}), 128))]),
_: 1
})])]);
}
const democomponentExport = {
data() {
return {
activities: [{
content: '活动按期开始',
timestamp: '2018-04-15'
}, {
content: '通过审核',
timestamp: '2018-04-13'
}, {
content: '创建成功',
timestamp: '2018-04-11'
}]
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo1": function () {
const {
renderList: _renderList,
Fragment: _Fragment,
openBlock: _openBlock,
createElementBlock: _createElementBlock,
toDisplayString: _toDisplayString,
createTextVNode: _createTextVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createBlock: _createBlock,
createVNode: _createVNode,
createElementVNode: _createElementVNode
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "block"
};
function render(_ctx, _cache) {
const _component_el_timeline_item = _resolveComponent("el-timeline-item");
const _component_el_timeline = _resolveComponent("el-timeline");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", _hoisted_1, [_createVNode(_component_el_timeline, null, {
default: _withCtx(() => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.activities, (activity, index) => {
return _openBlock(), _createBlock(_component_el_timeline_item, {
key: index,
icon: activity.icon,
type: activity.type,
color: activity.color,
size: activity.size,
hollow: activity.hollow,
timestamp: activity.timestamp
}, {
default: _withCtx(() => [_createTextVNode(_toDisplayString(activity.content), 1)]),
_: 2
}, 1032, ["icon", "type", "color", "size", "hollow", "timestamp"]);
}), 128))]),
_: 1
})])]);
}
const democomponentExport = {
data() {
return {
activities: [{
content: '支持使用图标',
timestamp: '2018-04-12 20:46',
size: 'large',
type: 'primary',
icon: 'el-icon-more'
}, {
content: '支持自定义颜色',
timestamp: '2018-04-03 20:46',
color: '#0bbd87'
}, {
content: '支持自定义尺寸',
timestamp: '2018-04-03 20:46',
size: 'large'
}, {
content: '支持空心点',
timestamp: '2018-04-03 20:46',
type: 'primary',
hollow: true
}, {
content: '默认样式的节点',
timestamp: '2018-04-03 20:46'
}]
};
}
};
return {
render,
...democomponentExport
};
}(),
"element-demo2": function () {
const {
createElementVNode: _createElementVNode,
resolveComponent: _resolveComponent,
withCtx: _withCtx,
createVNode: _createVNode,
openBlock: _openBlock,
createElementBlock: _createElementBlock
} = vue_esm_browser_prod;
const _hoisted_1 = {
class: "block"
};
const _hoisted_2 = /*#__PURE__*/_createElementVNode("h4", null, "更新 Github 模板", -1);
const _hoisted_3 = /*#__PURE__*/_createElementVNode("p", null, "王小虎 提交于 2018/4/12 20:46", -1);
const _hoisted_4 = /*#__PURE__*/_createElementVNode("h4", null, "更新 Github 模板", -1);
const _hoisted_5 = /*#__PURE__*/_createElementVNode("p", null, "王小虎 提交于 2018/4/3 20:46", -1);
const _hoisted_6 = /*#__PURE__*/_createElementVNode("h4", null, "更新 Github 模板", -1);
const _hoisted_7 = /*#__PURE__*/_createElementVNode("p", null, "王小虎 提交于 2018/4/2 20:46", -1);
function render(_ctx, _cache) {
const _component_el_card = _resolveComponent("el-card");
const _component_el_timeline_item = _resolveComponent("el-timeline-item");
const _component_el_timeline = _resolveComponent("el-timeline");
return _openBlock(), _createElementBlock("div", null, [_createElementVNode("div", _hoisted_1, [_createVNode(_component_el_timeline, null, {
default: _withCtx(() => [_createVNode(_component_el_timeline_item, {
timestamp: "2018/4/12",
placement: "top"
}, {
default: _withCtx(() => [_createVNode(_component_el_card, null, {
default: _withCtx(() => [_hoisted_2, _hoisted_3]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_timeline_item, {
timestamp: "2018/4/3",
placement: "top"
}, {
default: _withCtx(() => [_createVNode(_component_el_card, null, {
default: _withCtx(() => [_hoisted_4, _hoisted_5]),
_: 1
})]),
_: 1
}), _createVNode(_component_el_timeline_item, {
timestamp: "2018/4/2",
placement: "top"
}, {
default: _withCtx(() => [_createVNode(_component_el_card, null, {
default: _withCtx(() => [_hoisted_6, _hoisted_7]),
_: 1
})]),
_: 1
})]),
_: 1
})])]);
}
const democomponentExport = {};
return {
render,
...democomponentExport
};
}()
}
});
// CONCATENATED MODULE: ./website/docs/zh-CN/timeline.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/zh-CN/timeline.md
timelinevue_type_script_lang_ts.render = timelinevue_type_template_id_9fe42324_render
/* harmony default export */ var timeline = __webpack_exports__["default"] = (timelinevue_type_script_lang_ts);
/***/ })
}]);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。