-
Notifications
You must be signed in to change notification settings - Fork 1
/
DOCS en-US65.0cb71eee40c7d7b6716e.js
393 lines (333 loc) · 21 KB
/
DOCS en-US65.0cb71eee40c7d7b6716e.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[63],{
/***/ 816:
/***/ (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/en-US/timeline.md?vue&type=template&id=80e7e1a2
const timelinevue_type_template_id_80e7e1a2_hoisted_1 = {
class: "content element-doc"
};
const timelinevue_type_template_id_80e7e1a2_hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Timeline ");
const timelinevue_type_template_id_80e7e1a2_hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Visually display timeline.", -1);
const timelinevue_type_template_id_80e7e1a2_hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Basic usage ");
const timelinevue_type_template_id_80e7e1a2_hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Timeline can be split into multiple activities. Timestamps are important features that distinguish them from other components. Note the difference with Steps.", -1);
const timelinevue_type_template_id_80e7e1a2_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: 'Event start',\n timestamp: '2018-04-15',\n },\n {\n content: 'Approved',\n timestamp: '2018-04-13',\n },\n {\n content: 'Success',\n timestamp: '2018-04-11',\n },\n ],\n }\n },\n }\n</script>\n")], -1);
const timelinevue_type_template_id_80e7e1a2_hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Custom node ");
const _hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Size, color, and icons can be customized in node.", -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: 'Custom icon',\n timestamp: '2018-04-12 20:46',\n size: 'large',\n type: 'primary',\n icon: 'el-icon-more',\n },\n {\n content: 'Custom color',\n timestamp: '2018-04-03 20:46',\n color: '#0bbd87',\n },\n {\n content: 'Custom size',\n timestamp: '2018-04-03 20:46',\n size: 'large',\n },\n {\n content: 'Custom hollow',\n timestamp: '2018-04-03 20:46',\n type: 'primary',\n hollow: true,\n },\n {\n content: 'Default node',\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"])("Custom timestamp ");
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Timestamp can be placed on top of content when content is too high.", -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>Update Github template</h4>\n <p>Tom committed 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>Update Github template</h4>\n <p>Tom committed 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>Update Github template</h4>\n <p>Tom committed 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 Slots ");
const _hoisted_14 = /*#__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, "Description")])]), /*#__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, "Custom content for timeline")])])], -1);
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Timeline-Item Attributes ");
const _hoisted_16 = /*#__PURE__*/Object(vue_esm_browser_prod["createStaticVNode"])("<table><thead><tr><th>Attribute</th><th>Description</th><th>Type</th><th>Accepted Values</th><th>Default</th></tr></thead><tbody><tr><td>timestamp</td><td>timestamp content</td><td>string</td><td>—</td><td>—</td></tr><tr><td>hide-timestamp</td><td>whether to show timestamp</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>placement</td><td>position of timestamp</td><td>string</td><td>top / bottom</td><td>bottom</td></tr><tr><td>type</td><td>node type</td><td>string</td><td>primary / success / warning / danger / info</td><td>—</td></tr><tr><td>color</td><td>background color of node</td><td>string</td><td>hsl / hsv / hex / rgb</td><td>—</td></tr><tr><td>size</td><td>node size</td><td>string</td><td>normal / large</td><td>normal</td></tr><tr><td>icon</td><td>icon class name</td><td>string</td><td>—</td><td>—</td></tr><tr><td>hollow</td><td>icon is hollow</td><td>boolean</td><td>—</td><td>false</td></tr></tbody></table>", 1);
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Timeline-Item Slots ");
const _hoisted_18 = /*#__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, "Description")])]), /*#__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, "Custom content for 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, "Custom defined node")])])], -1);
function timelinevue_type_template_id_80e7e1a2_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_80e7e1a2_hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "timeline",
content: "Timeline",
href: "#timeline",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [timelinevue_type_template_id_80e7e1a2_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#timeline"
})]),
_: 1
}), timelinevue_type_template_id_80e7e1a2_hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "basic-usage",
content: "Basic usage",
href: "#basic-usage",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [timelinevue_type_template_id_80e7e1a2_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#basic-usage"
})]),
_: 1
}), timelinevue_type_template_id_80e7e1a2_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_80e7e1a2_hoisted_6]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "custom-node",
content: "Custom node",
href: "#custom-node",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [timelinevue_type_template_id_80e7e1a2_hoisted_7, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#custom-node"
})]),
_: 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: "custom-timestamp",
content: "Custom timestamp",
href: "#custom-timestamp",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_10, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#custom-timestamp"
})]),
_: 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-slots",
content: "Timeline Slots",
href: "#timeline-slots",
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-slots"
})]),
_: 1
}), _hoisted_14, 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_15, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#timeline-item-attributes"
})]),
_: 1
}), _hoisted_16, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "timeline-item-slots",
content: "Timeline-Item Slots",
href: "#timeline-item-slots",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_17, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#timeline-item-slots"
})]),
_: 1
}), _hoisted_18, Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/en-US/timeline.md?vue&type=template&id=80e7e1a2
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/en-US/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: 'Event start',
timestamp: '2018-04-15'
}, {
content: 'Approved',
timestamp: '2018-04-13'
}, {
content: 'Success',
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: 'Custom icon',
timestamp: '2018-04-12 20:46',
size: 'large',
type: 'primary',
icon: 'el-icon-more'
}, {
content: 'Custom color',
timestamp: '2018-04-03 20:46',
color: '#0bbd87'
}, {
content: 'Custom size',
timestamp: '2018-04-03 20:46',
size: 'large'
}, {
content: 'Custom hollow',
timestamp: '2018-04-03 20:46',
type: 'primary',
hollow: true
}, {
content: 'Default node',
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, "Update Github template", -1);
const _hoisted_3 = /*#__PURE__*/_createElementVNode("p", null, "Tom committed 2018/4/12 20:46", -1);
const _hoisted_4 = /*#__PURE__*/_createElementVNode("h4", null, "Update Github template", -1);
const _hoisted_5 = /*#__PURE__*/_createElementVNode("p", null, "Tom committed 2018/4/3 20:46", -1);
const _hoisted_6 = /*#__PURE__*/_createElementVNode("h4", null, "Update Github template", -1);
const _hoisted_7 = /*#__PURE__*/_createElementVNode("p", null, "Tom committed 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/en-US/timeline.md?vue&type=script&lang=ts
// CONCATENATED MODULE: ./website/docs/en-US/timeline.md
timelinevue_type_script_lang_ts.render = timelinevue_type_template_id_80e7e1a2_render
/* harmony default export */ var timeline = __webpack_exports__["default"] = (timelinevue_type_script_lang_ts);
/***/ })
}]);