zartui 2.0.65 → 2.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/cell/index.css +1 -1
- package/es/cell/index.less +2 -0
- package/es/index.js +1 -1
- package/es/timeline/index.css +1 -1
- package/es/timeline/index.js +63 -42
- package/es/timeline/index.less +16 -0
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.less +2 -0
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/timeline/index.css +1 -1
- package/lib/timeline/index.js +61 -39
- package/lib/timeline/index.less +16 -0
- package/lib/zart.js +64 -43
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -309,7 +309,7 @@ exports.Toast = _toast.default;
|
|
|
309
309
|
var _uploader = _interopRequireDefault(require("./uploader"));
|
|
310
310
|
|
|
311
311
|
exports.Uploader = _uploader.default;
|
|
312
|
-
var version = '2.0.
|
|
312
|
+
var version = '2.0.67';
|
|
313
313
|
exports.version = version;
|
|
314
314
|
|
|
315
315
|
function install(Vue) {
|
package/lib/timeline/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt2-timeline{background-color:#fff}.zt2-timeline .zt2-timeline__top-bar{height:44px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__top-left{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__bar{width:4px;height:16px;background:#0091fa;margin-right:12px}.zt2-timeline .zt2-timeline__top-right{padding-right:16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__fold-text{font-size:14px;color:rgba(45,75,115,.6);line-height:24px;margin-right:8px}.zt2-timeline .zt2-timeline__container{padding-top:16px}.zt2-timeline .zt2-timeline__item{padding:0 16px 16px 16px;display:-webkit-box;display:-webkit-flex;display:flex}.zt2-timeline .zt2-timeline__item.last-item .zt2-timeline__line{height:0}.zt2-timeline .zt2-timeline__left-container{margin-right:8px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__right-container{-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt2-timeline .zt2-timeline__avatar-box{width:40px;height:40px;position:relative}.zt2-timeline .zt2-timeline__status{width:16px;height:16px;position:absolute;bottom:-4px;right:-4px}.zt2-timeline .zt2-timeline__avatar{width:40px;height:40px;background:rgba(0,145,250,.7);border-radius:4px;font-size:14px;font-weight:700;text-align:center;color:#fff;line-height:40px}.zt2-timeline .zt2-timeline__line{background-color:#f5f5f5;width:2px;height:100%;margin-top:4px;margin-bottom:-12px}.zt2-timeline .zt2-timeline__title-box{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:8px}.zt2-timeline .zt2-timeline__main-title{font-size:16px;font-weight:700;color:#2d4b73;line-height:24px}.zt2-timeline .zt2-timeline__title{font-size:14px;font-weight:700;color:#2d4b73;line-height:24px}.zt2-timeline .zt2-timeline__time{font-size:12px;color:rgba(45,75,115,.8);line-height:16px}.zt2-timeline .zt2-timeline__content-box{font-size:14px;color:#2d4b73;line-height:20px;padding-bottom:8px;padding-top:4px}.zt2-timeline .zt2-timeline__human-box{padding-bottom:8px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}.zt2-timeline .zt2-timeline__human-box .zt2-timeline__depart{font-size:14px;color:#2d4b73;line-height:20px;margin-right:8px}.zt2-timeline .zt2-timeline__human-box .zt2-timeline__human{font-weight:700;font-size:14px;color:#2d4b73;line-height:20px}.zt2-timeline .zt2-timeline__main-container{background:rgba(45,75,115,.04);border-radius:4px;padding:8px 12px}.zt2-timeline .zt2-timeline__main-container::before{border-radius:4px}.zt2-timeline .zt2-timeline__main-container .zt2-timeline__text-bold{font-weight:700;color:#2d4b73}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker{margin-top:12px}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker .zt2-media-picker__line{display:none}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker .zt2-media-picker__grid{padding:0!important}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker .zt2-media-picker__grid .zt2-media-picker__media-box{width:100%;height:100%;position:relative}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker .zt2-media-picker__grid .zt2-media-picker__media-box .zt2-media-picker__media-name{width:100%;height:20px;padding:0 12px;position:absolute;bottom:0;left:0;border-radius:0 0 4px 4px;background-color:rgba(45,75,115,.5);font-size:12px;color:#fff;text-align:center;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zt2-timeline .zt2-timeline__opinion-box{padding-top:7px}.zt2-timeline .zt2-timeline__opinion-box .zt2-timeline__opinion--empty{font-size:14px;color:rgba(45,75,115,.2)}.zt2-timeline .zt2-timeline__content-label,.zt2-timeline .zt2-timeline__opinion-label{margin-bottom:4px;font-size:14px;color:rgba(45,75,115,.6);line-height:20px}.zt2-timeline .zt2-timeline__opinion{font-size:14px;color:#2d4b73;line-height:20px}
|
|
1
|
+
.zt2-timeline{background-color:#fff}.zt2-timeline .zt2-timeline__top-bar{height:44px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__top-left{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__bar{width:4px;height:16px;background:#0091fa;margin-right:12px}.zt2-timeline .zt2-timeline__top-right{padding-right:16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt2-timeline .zt2-timeline__fold-text{font-size:14px;color:rgba(45,75,115,.6);line-height:24px;margin-right:8px}.zt2-timeline .zt2-timeline__container{padding-top:16px}.zt2-timeline .zt2-timeline__item{padding:0 16px 16px 16px;display:-webkit-box;display:-webkit-flex;display:flex}.zt2-timeline .zt2-timeline__item.last-item .zt2-timeline__line,.zt2-timeline .zt2-timeline__item.last-item .zt2-timeline__line-dot{height:0}.zt2-timeline .zt2-timeline__item.last-item .zt2-timeline__dot{border-color:#0091fa}.zt2-timeline .zt2-timeline__left-container{margin-right:8px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative}.zt2-timeline .zt2-timeline__right-container{-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt2-timeline .zt2-timeline__avatar-box{width:40px;height:40px;position:relative}.zt2-timeline__dot-container{top:5px}.zt2-timeline__dot{width:12px;height:12px;background-color:#fff;border:1px solid rgba(45,75,115,.2);border-radius:50%;z-index:2}.zt2-timeline .zt2-timeline__status{width:16px;height:16px;position:absolute;bottom:-4px;right:-4px}.zt2-timeline .zt2-timeline__avatar{width:40px;height:40px;background:rgba(0,145,250,.7);border-radius:4px;font-size:14px;font-weight:700;text-align:center;color:#fff;line-height:40px}.zt2-timeline .zt2-timeline__line{background-color:#f5f5f5;width:2px;height:100%;margin-top:4px;margin-bottom:-12px}.zt2-timeline .zt2-timeline__title-box{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:8px}.zt2-timeline .zt2-timeline__main-title{font-size:16px;font-weight:700;color:#2d4b73;line-height:24px}.zt2-timeline .zt2-timeline__title{font-size:14px;font-weight:700;color:#2d4b73;line-height:24px}.zt2-timeline .zt2-timeline__time{font-size:12px;color:rgba(45,75,115,.8);line-height:16px}.zt2-timeline .zt2-timeline__content-box{font-size:14px;color:#2d4b73;line-height:20px;padding-bottom:8px;padding-top:4px}.zt2-timeline .zt2-timeline__human-box{padding-bottom:8px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}.zt2-timeline .zt2-timeline__human-box .zt2-timeline__depart{font-size:14px;color:#2d4b73;line-height:20px;margin-right:8px}.zt2-timeline .zt2-timeline__human-box .zt2-timeline__human{font-weight:700;font-size:14px;color:#2d4b73;line-height:20px}.zt2-timeline .zt2-timeline__main-container{background:rgba(45,75,115,.04);border-radius:4px;padding:8px 12px}.zt2-timeline .zt2-timeline__main-container::before{border-radius:4px}.zt2-timeline .zt2-timeline__main-container .zt2-timeline__text-bold{font-weight:700;color:#2d4b73}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker{margin-top:12px}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker .zt2-media-picker__line{display:none}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker .zt2-media-picker__grid{padding:0!important}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker .zt2-media-picker__grid .zt2-media-picker__media-box{width:100%;height:100%;position:relative}.zt2-timeline .zt2-timeline__main-container .zt2-media-picker .zt2-media-picker__grid .zt2-media-picker__media-box .zt2-media-picker__media-name{width:100%;height:20px;padding:0 12px;position:absolute;bottom:0;left:0;border-radius:0 0 4px 4px;background-color:rgba(45,75,115,.5);font-size:12px;color:#fff;text-align:center;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zt2-timeline .zt2-timeline__opinion-box{padding-top:7px}.zt2-timeline .zt2-timeline__opinion-box .zt2-timeline__opinion--empty{font-size:14px;color:rgba(45,75,115,.2)}.zt2-timeline .zt2-timeline__content-label,.zt2-timeline .zt2-timeline__opinion-label{margin-bottom:4px;font-size:14px;color:rgba(45,75,115,.6);line-height:20px}.zt2-timeline .zt2-timeline__opinion{font-size:14px;color:#2d4b73;line-height:20px}
|
package/lib/timeline/index.js
CHANGED
|
@@ -63,6 +63,10 @@ var _default2 = createComponent({
|
|
|
63
63
|
showFold: {
|
|
64
64
|
type: Boolean,
|
|
65
65
|
default: true
|
|
66
|
+
},
|
|
67
|
+
dot: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
66
70
|
}
|
|
67
71
|
},
|
|
68
72
|
data: function data() {
|
|
@@ -95,11 +99,11 @@ var _default2 = createComponent({
|
|
|
95
99
|
return showProcesses.map(function (item, index) {
|
|
96
100
|
return _this.genProcessItem(item, index === showProcesses.length - 1);
|
|
97
101
|
});
|
|
98
|
-
} else {
|
|
99
|
-
return this.computedProcesses.map(function (item, index) {
|
|
100
|
-
return _this.genProcessItem(item, index === _this.computedProcesses.length - 1);
|
|
101
|
-
});
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
return this.computedProcesses.map(function (item, index) {
|
|
105
|
+
return _this.genProcessItem(item, index === _this.computedProcesses.length - 1);
|
|
106
|
+
});
|
|
103
107
|
},
|
|
104
108
|
genAvatar: function genAvatar(item, avatarSlot) {
|
|
105
109
|
var h = this.$createElement;
|
|
@@ -110,6 +114,12 @@ var _default2 = createComponent({
|
|
|
110
114
|
}, [avatarSlot]);
|
|
111
115
|
}
|
|
112
116
|
|
|
117
|
+
if (this.dot) {
|
|
118
|
+
return h("div", {
|
|
119
|
+
"class": bem('dot')
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
113
123
|
return h("div", {
|
|
114
124
|
"class": bem("avatar-box" + " half-border")
|
|
115
125
|
}, [item.avatar ? h("img", {
|
|
@@ -265,7 +275,7 @@ var _default2 = createComponent({
|
|
|
265
275
|
"click": itemClicked
|
|
266
276
|
}
|
|
267
277
|
}, [h("div", {
|
|
268
|
-
"class": bem("left-container")
|
|
278
|
+
"class": [bem("left-container"), this.dot ? bem('dot-container') : '']
|
|
269
279
|
}, [this.genAvatar(item, avatarSlot), h("div", {
|
|
270
280
|
"class": bem("line")
|
|
271
281
|
})]), h("div", {
|
|
@@ -273,46 +283,58 @@ var _default2 = createComponent({
|
|
|
273
283
|
}, [this.genTitle(item, titleSlot), item.folded ? h() : h("div", {
|
|
274
284
|
"class": bem("main-container")
|
|
275
285
|
}, [this.genHuman(item, humanSlot), this.genContent(item, contentSlot), this.genOpinion(item, opinionSlot), item != null && (_item$fileList = item.fileList) != null && _item$fileList.length ? this.genFiles(item.fileList) : ""])])]);
|
|
286
|
+
},
|
|
287
|
+
genTopBar: function genTopBar() {
|
|
288
|
+
var _this2 = this;
|
|
289
|
+
|
|
290
|
+
var h = this.$createElement;
|
|
291
|
+
var topBarSlot = this.slots("top-bar");
|
|
292
|
+
|
|
293
|
+
if (topBarSlot) {
|
|
294
|
+
return h("div", {
|
|
295
|
+
"class": [bem('top-bar'), _constant.BORDER_BOTTOM]
|
|
296
|
+
}, [topBarSlot]);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return h("div", {
|
|
300
|
+
"directives": [{
|
|
301
|
+
name: "show",
|
|
302
|
+
value: this.title || this.showFold
|
|
303
|
+
}],
|
|
304
|
+
"class": [bem("top-bar" + " half-border-bottom"), _constant.BORDER_BOTTOM]
|
|
305
|
+
}, [h("div", {
|
|
306
|
+
"directives": [{
|
|
307
|
+
name: "show",
|
|
308
|
+
value: this.title
|
|
309
|
+
}],
|
|
310
|
+
"class": bem("top-left")
|
|
311
|
+
}, [h("div", {
|
|
312
|
+
"class": bem("bar")
|
|
313
|
+
}), h("div", {
|
|
314
|
+
"class": bem("main-title")
|
|
315
|
+
}, [this.title])]), h("div", {
|
|
316
|
+
"directives": [{
|
|
317
|
+
name: "show",
|
|
318
|
+
value: this.showFold
|
|
319
|
+
}],
|
|
320
|
+
"class": bem("top-right")
|
|
321
|
+
}, [h("span", {
|
|
322
|
+
"class": bem("fold-text")
|
|
323
|
+
}, ["\u6298\u53E0", this.title]), h(_switch.default, {
|
|
324
|
+
"model": {
|
|
325
|
+
value: _this2.isFold,
|
|
326
|
+
callback: function callback($$v) {
|
|
327
|
+
_this2.isFold = $$v;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
})])]);
|
|
276
331
|
}
|
|
277
332
|
},
|
|
278
333
|
render: function render(h) {
|
|
279
|
-
var _this2 = this;
|
|
280
|
-
|
|
281
334
|
var processes = this.genProcesses();
|
|
282
335
|
return h("div", {
|
|
283
336
|
"class": bem()
|
|
284
|
-
}, [h("div", {
|
|
285
|
-
"directives": [{
|
|
286
|
-
name: "show",
|
|
287
|
-
value: this.title || this.showFold
|
|
288
|
-
}],
|
|
289
|
-
"class": [bem("top-bar" + " half-border-bottom"), _constant.BORDER_BOTTOM]
|
|
290
|
-
}, [h("div", {
|
|
291
|
-
"directives": [{
|
|
292
|
-
name: "show",
|
|
293
|
-
value: this.title
|
|
294
|
-
}],
|
|
295
|
-
"class": bem("top-left")
|
|
296
|
-
}, [h("div", {
|
|
297
|
-
"class": bem("bar")
|
|
298
|
-
}), h("div", {
|
|
299
|
-
"class": bem("main-title")
|
|
300
|
-
}, [this.title])]), h("div", {
|
|
301
|
-
"directives": [{
|
|
302
|
-
name: "show",
|
|
303
|
-
value: this.showFold
|
|
304
|
-
}],
|
|
305
|
-
"class": bem("top-right")
|
|
306
|
-
}, [h("span", {
|
|
307
|
-
"class": bem("fold-text")
|
|
308
|
-
}, ["\u6298\u53E0", this.title]), h(_switch.default, {
|
|
309
|
-
"model": {
|
|
310
|
-
value: _this2.isFold,
|
|
311
|
-
callback: function callback($$v) {
|
|
312
|
-
_this2.isFold = $$v;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
})])]), (processes == null ? void 0 : processes.length) > 0 ? h("div", {
|
|
337
|
+
}, [this.genTopBar(), (processes == null ? void 0 : processes.length) > 0 ? h("div", {
|
|
316
338
|
"class": bem("container")
|
|
317
339
|
}, [processes]) : h()]);
|
|
318
340
|
}
|
package/lib/timeline/index.less
CHANGED
|
@@ -36,9 +36,13 @@
|
|
|
36
36
|
padding: 0 16px 16px 16px;
|
|
37
37
|
display: flex;
|
|
38
38
|
&.last-item {
|
|
39
|
+
.@{base-prefix}-timeline__line-dot,
|
|
39
40
|
.@{base-prefix}-timeline__line {
|
|
40
41
|
height: 0;
|
|
41
42
|
}
|
|
43
|
+
.@{base-prefix}-timeline__dot {
|
|
44
|
+
border-color: #0091fa;
|
|
45
|
+
}
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
.@{base-prefix}-timeline__left-container {
|
|
@@ -46,6 +50,7 @@
|
|
|
46
50
|
display: flex;
|
|
47
51
|
flex-direction: column;
|
|
48
52
|
align-items: center;
|
|
53
|
+
position: relative;
|
|
49
54
|
}
|
|
50
55
|
.@{base-prefix}-timeline__right-container {
|
|
51
56
|
flex: 1;
|
|
@@ -55,6 +60,17 @@
|
|
|
55
60
|
height: 40px;
|
|
56
61
|
position: relative;
|
|
57
62
|
}
|
|
63
|
+
&__dot-container {
|
|
64
|
+
top: 5px;
|
|
65
|
+
}
|
|
66
|
+
&__dot {
|
|
67
|
+
width: 12px;
|
|
68
|
+
height: 12px;
|
|
69
|
+
background-color: #fff;
|
|
70
|
+
border: 1px solid rgba(45, 75, 115, 0.2);
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
z-index: 2;
|
|
73
|
+
}
|
|
58
74
|
.@{base-prefix}-timeline__status {
|
|
59
75
|
width: 16px;
|
|
60
76
|
height: 16px;
|
package/lib/zart.js
CHANGED
|
@@ -29650,13 +29650,12 @@ Tag.props = {
|
|
|
29650
29650
|
|
|
29651
29651
|
|
|
29652
29652
|
|
|
29653
|
+
|
|
29654
|
+
|
|
29653
29655
|
var timeline_createNamespace = Object(utils["b" /* createNamespace */])('timeline'),
|
|
29654
29656
|
timeline_createComponent = timeline_createNamespace[0],
|
|
29655
29657
|
timeline_bem = timeline_createNamespace[1];
|
|
29656
29658
|
|
|
29657
|
-
|
|
29658
|
-
|
|
29659
|
-
|
|
29660
29659
|
var timeline_defaultData = function defaultData() {
|
|
29661
29660
|
return {
|
|
29662
29661
|
isFold: false,
|
|
@@ -29701,6 +29700,10 @@ var timeline_defaultData = function defaultData() {
|
|
|
29701
29700
|
showFold: {
|
|
29702
29701
|
type: Boolean,
|
|
29703
29702
|
default: true
|
|
29703
|
+
},
|
|
29704
|
+
dot: {
|
|
29705
|
+
type: Boolean,
|
|
29706
|
+
default: false
|
|
29704
29707
|
}
|
|
29705
29708
|
},
|
|
29706
29709
|
data: function data() {
|
|
@@ -29733,11 +29736,11 @@ var timeline_defaultData = function defaultData() {
|
|
|
29733
29736
|
return showProcesses.map(function (item, index) {
|
|
29734
29737
|
return _this.genProcessItem(item, index === showProcesses.length - 1);
|
|
29735
29738
|
});
|
|
29736
|
-
} else {
|
|
29737
|
-
return this.computedProcesses.map(function (item, index) {
|
|
29738
|
-
return _this.genProcessItem(item, index === _this.computedProcesses.length - 1);
|
|
29739
|
-
});
|
|
29740
29739
|
}
|
|
29740
|
+
|
|
29741
|
+
return this.computedProcesses.map(function (item, index) {
|
|
29742
|
+
return _this.genProcessItem(item, index === _this.computedProcesses.length - 1);
|
|
29743
|
+
});
|
|
29741
29744
|
},
|
|
29742
29745
|
genAvatar: function genAvatar(item, avatarSlot) {
|
|
29743
29746
|
var h = this.$createElement;
|
|
@@ -29748,6 +29751,12 @@ var timeline_defaultData = function defaultData() {
|
|
|
29748
29751
|
}, [avatarSlot]);
|
|
29749
29752
|
}
|
|
29750
29753
|
|
|
29754
|
+
if (this.dot) {
|
|
29755
|
+
return h("div", {
|
|
29756
|
+
"class": timeline_bem('dot')
|
|
29757
|
+
});
|
|
29758
|
+
}
|
|
29759
|
+
|
|
29751
29760
|
return h("div", {
|
|
29752
29761
|
"class": timeline_bem("avatar-box" + " half-border")
|
|
29753
29762
|
}, [item.avatar ? h("img", {
|
|
@@ -29903,7 +29912,7 @@ var timeline_defaultData = function defaultData() {
|
|
|
29903
29912
|
"click": itemClicked
|
|
29904
29913
|
}
|
|
29905
29914
|
}, [h("div", {
|
|
29906
|
-
"class": timeline_bem("left-container")
|
|
29915
|
+
"class": [timeline_bem("left-container"), this.dot ? timeline_bem('dot-container') : '']
|
|
29907
29916
|
}, [this.genAvatar(item, avatarSlot), h("div", {
|
|
29908
29917
|
"class": timeline_bem("line")
|
|
29909
29918
|
})]), h("div", {
|
|
@@ -29911,46 +29920,58 @@ var timeline_defaultData = function defaultData() {
|
|
|
29911
29920
|
}, [this.genTitle(item, titleSlot), item.folded ? h() : h("div", {
|
|
29912
29921
|
"class": timeline_bem("main-container")
|
|
29913
29922
|
}, [this.genHuman(item, humanSlot), this.genContent(item, contentSlot), this.genOpinion(item, opinionSlot), item != null && (_item$fileList = item.fileList) != null && _item$fileList.length ? this.genFiles(item.fileList) : ""])])]);
|
|
29923
|
+
},
|
|
29924
|
+
genTopBar: function genTopBar() {
|
|
29925
|
+
var _this2 = this;
|
|
29926
|
+
|
|
29927
|
+
var h = this.$createElement;
|
|
29928
|
+
var topBarSlot = this.slots("top-bar");
|
|
29929
|
+
|
|
29930
|
+
if (topBarSlot) {
|
|
29931
|
+
return h("div", {
|
|
29932
|
+
"class": [timeline_bem('top-bar'), BORDER_BOTTOM]
|
|
29933
|
+
}, [topBarSlot]);
|
|
29934
|
+
}
|
|
29935
|
+
|
|
29936
|
+
return h("div", {
|
|
29937
|
+
"directives": [{
|
|
29938
|
+
name: "show",
|
|
29939
|
+
value: this.title || this.showFold
|
|
29940
|
+
}],
|
|
29941
|
+
"class": [timeline_bem("top-bar" + " half-border-bottom"), BORDER_BOTTOM]
|
|
29942
|
+
}, [h("div", {
|
|
29943
|
+
"directives": [{
|
|
29944
|
+
name: "show",
|
|
29945
|
+
value: this.title
|
|
29946
|
+
}],
|
|
29947
|
+
"class": timeline_bem("top-left")
|
|
29948
|
+
}, [h("div", {
|
|
29949
|
+
"class": timeline_bem("bar")
|
|
29950
|
+
}), h("div", {
|
|
29951
|
+
"class": timeline_bem("main-title")
|
|
29952
|
+
}, [this.title])]), h("div", {
|
|
29953
|
+
"directives": [{
|
|
29954
|
+
name: "show",
|
|
29955
|
+
value: this.showFold
|
|
29956
|
+
}],
|
|
29957
|
+
"class": timeline_bem("top-right")
|
|
29958
|
+
}, [h("span", {
|
|
29959
|
+
"class": timeline_bem("fold-text")
|
|
29960
|
+
}, ["\u6298\u53E0", this.title]), h(es_switch, {
|
|
29961
|
+
"model": {
|
|
29962
|
+
value: _this2.isFold,
|
|
29963
|
+
callback: function callback($$v) {
|
|
29964
|
+
_this2.isFold = $$v;
|
|
29965
|
+
}
|
|
29966
|
+
}
|
|
29967
|
+
})])]);
|
|
29914
29968
|
}
|
|
29915
29969
|
},
|
|
29916
29970
|
render: function render(h) {
|
|
29917
|
-
var _this2 = this;
|
|
29918
|
-
|
|
29919
29971
|
var processes = this.genProcesses();
|
|
29920
29972
|
return h("div", {
|
|
29921
29973
|
"class": timeline_bem()
|
|
29922
|
-
}, [h("div", {
|
|
29923
|
-
"directives": [{
|
|
29924
|
-
name: "show",
|
|
29925
|
-
value: this.title || this.showFold
|
|
29926
|
-
}],
|
|
29927
|
-
"class": [timeline_bem("top-bar" + " half-border-bottom"), BORDER_BOTTOM]
|
|
29928
|
-
}, [h("div", {
|
|
29929
|
-
"directives": [{
|
|
29930
|
-
name: "show",
|
|
29931
|
-
value: this.title
|
|
29932
|
-
}],
|
|
29933
|
-
"class": timeline_bem("top-left")
|
|
29934
|
-
}, [h("div", {
|
|
29935
|
-
"class": timeline_bem("bar")
|
|
29936
|
-
}), h("div", {
|
|
29937
|
-
"class": timeline_bem("main-title")
|
|
29938
|
-
}, [this.title])]), h("div", {
|
|
29939
|
-
"directives": [{
|
|
29940
|
-
name: "show",
|
|
29941
|
-
value: this.showFold
|
|
29942
|
-
}],
|
|
29943
|
-
"class": timeline_bem("top-right")
|
|
29944
|
-
}, [h("span", {
|
|
29945
|
-
"class": timeline_bem("fold-text")
|
|
29946
|
-
}, ["\u6298\u53E0", this.title]), h(es_switch, {
|
|
29947
|
-
"model": {
|
|
29948
|
-
value: _this2.isFold,
|
|
29949
|
-
callback: function callback($$v) {
|
|
29950
|
-
_this2.isFold = $$v;
|
|
29951
|
-
}
|
|
29952
|
-
}
|
|
29953
|
-
})])]), (processes == null ? void 0 : processes.length) > 0 ? h("div", {
|
|
29974
|
+
}, [this.genTopBar(), (processes == null ? void 0 : processes.length) > 0 ? h("div", {
|
|
29954
29975
|
"class": timeline_bem("container")
|
|
29955
29976
|
}, [processes]) : h()]);
|
|
29956
29977
|
}
|
|
@@ -30661,7 +30682,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
|
|
|
30661
30682
|
|
|
30662
30683
|
|
|
30663
30684
|
|
|
30664
|
-
var version = '2.0.
|
|
30685
|
+
var version = '2.0.67';
|
|
30665
30686
|
|
|
30666
30687
|
function install(Vue) {
|
|
30667
30688
|
var components = [action_sheet, es_area, avatar, back_top, badge, es_button, calendar, cascader, cell, cell_group, es_checkbox, checkbox_group, col, collapse, collapse_item, count_down, datetime_picker, dialog, divider, dropdown_item, dropdown_menu, empty, es_field, fold_dialog, es_form, grid, grid_item, hierarchy_select, es_icon, es_image, image_preview, index_anchor, index_bar, es_info, lazyload, es_list, es_loading, locale["a" /* default */], media_picker, media_player, multiple_picker, nav_bar, notice_bar, number_keyboard, es_overlay, password_input, es_picker, popover, popup, pull_refresh, es_radio, radio_group, rate, row, search, signature, skeleton, slider, es_step, stepper, es_steps, es_sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, table, tabs, es_tag, timeline, es_toast, uploader];
|