zartui 2.0.21 → 2.0.23
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/checkbox/index.css +1 -1
- package/es/checkbox/index.less +2 -1
- package/es/index.js +1 -1
- package/es/radio/index.css +1 -1
- package/es/radio/index.less +2 -1
- package/es/timeline/index.css +1 -1
- package/es/timeline/index.js +58 -12
- package/es/timeline/index.less +63 -37
- package/es/timeline/svg/current.js +30 -0
- package/es/timeline/svg/pass.js +29 -0
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.less +2 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.less +2 -1
- package/lib/timeline/index.css +1 -1
- package/lib/timeline/index.js +60 -12
- package/lib/timeline/index.less +63 -37
- package/lib/timeline/svg/current.js +35 -0
- package/lib/timeline/svg/pass.js +34 -0
- package/lib/zart.js +120 -13
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -317,7 +317,7 @@ exports.Toast = _toast.default;
|
|
|
317
317
|
var _uploader = _interopRequireDefault(require("./uploader"));
|
|
318
318
|
|
|
319
319
|
exports.Uploader = _uploader.default;
|
|
320
|
-
var version = '2.0.
|
|
320
|
+
var version = '2.0.23';
|
|
321
321
|
exports.version = version;
|
|
322
322
|
|
|
323
323
|
function install(Vue) {
|
package/lib/radio/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-radio{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-radio--disabled{cursor:not-allowed}.zt-radio--label-disabled{cursor:default}.zt-radio--horizontal{margin-left:12px}.zt-radio__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt-radio__icon .zt-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid rgba(45,75,115,.13);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-radio__icon--round .zt-icon{border-radius:100%}.zt-radio__icon--checked .zt-icon{color:#fff;background-color:#0091fa;border:1px solid rgba(255,255,255,.5);box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2)}.zt-radio__icon--disabled{cursor:not-allowed}.zt-radio__icon--disabled .zt-icon{background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%);border:1px solid rgba(45,75,115,.08);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2)}.zt-radio__icon--disabled.zt-radio__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-radio__dot{width:calc(16px * .5);height:calc(16px * .5);background-color:#fff;border-radius:50%}.zt-radio__label{margin-left:8px;color:#000;font-size:14px
|
|
1
|
+
.zt-radio{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-radio--disabled{cursor:not-allowed}.zt-radio--label-disabled{cursor:default}.zt-radio--horizontal{margin-left:12px}.zt-radio__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt-radio__icon .zt-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid rgba(45,75,115,.13);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-radio__icon--round .zt-icon{border-radius:100%}.zt-radio__icon--checked .zt-icon{color:#fff;background-color:#0091fa;border:1px solid rgba(255,255,255,.5);box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2)}.zt-radio__icon--disabled{cursor:not-allowed}.zt-radio__icon--disabled .zt-icon{background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%);border:1px solid rgba(45,75,115,.08);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2)}.zt-radio__icon--disabled.zt-radio__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-radio__dot{width:calc(16px * .5);height:calc(16px * .5);background-color:#fff;border-radius:50%}.zt-radio__label{margin-left:8px;color:#000;font-size:14px}.zt-radio__label--left{margin:0 8px 0 0}.zt-radio__label--disabled{color:#c8c9cc}
|
package/lib/radio/index.less
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.zt-radio {
|
|
4
4
|
display: flex;
|
|
5
|
+
align-items: center;
|
|
5
6
|
overflow: hidden;
|
|
6
7
|
cursor: pointer;
|
|
7
8
|
user-select: none;
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
margin-left: @radio-label-margin;
|
|
81
82
|
color: @black;
|
|
82
83
|
font-size: @radio-label-font-size;
|
|
83
|
-
line-height: @radio-size;
|
|
84
|
+
//line-height: @radio-size;
|
|
84
85
|
|
|
85
86
|
&--left {
|
|
86
87
|
margin: 0 @radio-label-margin 0 0;
|
package/lib/timeline/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-timeline{background-color:#fff}.zt-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}.zt-timeline__top-left{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-timeline__bar{width:4px;height:16px;background:#0091fa;margin-right:12px}.zt-
|
|
1
|
+
.zt-timeline{background-color:#fff}.zt-timeline .zt-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}.zt-timeline .zt-timeline__top-left{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-timeline .zt-timeline__bar{width:4px;height:16px;background:#0091fa;margin-right:12px}.zt-timeline .zt-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}.zt-timeline .zt-timeline__fold-text{font-size:14px;color:rgba(45,75,115,.6);line-height:24px;margin-right:8px}.zt-timeline .zt-timeline__container{padding-top:16px}.zt-timeline .zt-timeline__item{padding:0 16px 16px 16px;display:-webkit-box;display:-webkit-flex;display:flex}.zt-timeline .zt-timeline__item.last-item .zt-timeline__line{height:0}.zt-timeline .zt-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}.zt-timeline .zt-timeline__right-container{-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt-timeline .zt-timeline__avatar-box{width:40px;height:40px;position:relative}.zt-timeline .zt-timeline__status{width:16px;height:16px;position:absolute;bottom:-4px;right:-4px}.zt-timeline .zt-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}.zt-timeline .zt-timeline__line{background-color:#f5f5f5;width:2px;height:100%;margin-top:4px;margin-bottom:-12px}.zt-timeline .zt-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}.zt-timeline .zt-timeline__title{font-size:14px;font-weight:700;color:#2d4b73;line-height:24px}.zt-timeline .zt-timeline__time{font-size:12px;color:rgba(45,75,115,.8);line-height:16px}.zt-timeline .zt-timeline__content-box{font-size:14px;color:#2d4b73;line-height:20px;padding-bottom:8px}.zt-timeline .zt-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}.zt-timeline .zt-timeline__human-box .zt-timeline__depart{font-size:14px;color:#2d4b73;line-height:20px;margin-right:8px}.zt-timeline .zt-timeline__human-box .zt-timeline__human{font-weight:700;font-size:14px;color:#2d4b73;line-height:20px}.zt-timeline .zt-timeline__main-container{background:rgba(45,75,115,.04);border-radius:4px;padding:8px 12px}.zt-timeline .zt-timeline__main-container::before{border-radius:4px}.zt-timeline .zt-timeline__main-container .zt-timeline__text-bold{font-weight:700;color:#2d4b73}.zt-timeline .zt-timeline__opinion-box{padding-top:7px}.zt-timeline .zt-timeline__opinion-box .zt-timeline__opinion--empty{font-size:14px;color:rgba(45,75,115,.2)}.zt-timeline .zt-timeline__content-label,.zt-timeline .zt-timeline__opinion-label{margin-bottom:4px;font-size:14px;color:rgba(45,75,115,.6);line-height:20px}.zt-timeline .zt-timeline__opinion{font-size:14px;color:#2d4b73;line-height:20px}
|
package/lib/timeline/index.js
CHANGED
|
@@ -13,6 +13,10 @@ var _constant = require("../utils/constant");
|
|
|
13
13
|
|
|
14
14
|
var _switch = _interopRequireDefault(require("../switch"));
|
|
15
15
|
|
|
16
|
+
var _pass = _interopRequireDefault(require("./svg/pass"));
|
|
17
|
+
|
|
18
|
+
var _current = _interopRequireDefault(require("./svg/current"));
|
|
19
|
+
|
|
16
20
|
var _createNamespace = (0, _utils.createNamespace)('timeline'),
|
|
17
21
|
createComponent = _createNamespace[0],
|
|
18
22
|
bem = _createNamespace[1];
|
|
@@ -50,6 +54,10 @@ var _default2 = createComponent({
|
|
|
50
54
|
type: String,
|
|
51
55
|
default: "处理意见"
|
|
52
56
|
},
|
|
57
|
+
contentKey: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "案件状态"
|
|
60
|
+
},
|
|
53
61
|
enableSingleFold: {
|
|
54
62
|
type: Boolean,
|
|
55
63
|
default: true
|
|
@@ -83,7 +91,7 @@ var _default2 = createComponent({
|
|
|
83
91
|
});
|
|
84
92
|
}
|
|
85
93
|
},
|
|
86
|
-
genAvatar: function genAvatar(item, avatarSlot) {
|
|
94
|
+
genAvatar: function genAvatar(item, avatarSlot, isLast) {
|
|
87
95
|
var h = this.$createElement;
|
|
88
96
|
|
|
89
97
|
if (avatarSlot) {
|
|
@@ -102,7 +110,11 @@ var _default2 = createComponent({
|
|
|
102
110
|
}
|
|
103
111
|
}) : h("div", {
|
|
104
112
|
"class": bem("avatar")
|
|
105
|
-
}, [item.human.slice(-2)])
|
|
113
|
+
}, [item.human.slice(-2)]), isLast ? h(_current.default, {
|
|
114
|
+
"class": bem("status")
|
|
115
|
+
}) : h(_pass.default, {
|
|
116
|
+
"class": bem("status")
|
|
117
|
+
})]);
|
|
106
118
|
},
|
|
107
119
|
genTitle: function genTitle(item, titleSlot) {
|
|
108
120
|
var h = this.$createElement;
|
|
@@ -117,10 +129,27 @@ var _default2 = createComponent({
|
|
|
117
129
|
"class": bem("title-box")
|
|
118
130
|
}, [h("span", {
|
|
119
131
|
"class": bem("title")
|
|
120
|
-
}, [item.
|
|
132
|
+
}, [item.action]), h("span", {
|
|
121
133
|
"class": bem("time")
|
|
122
134
|
}, [item.timestamp])]);
|
|
123
135
|
},
|
|
136
|
+
genHuman: function genHuman(item, humanSlot) {
|
|
137
|
+
var h = this.$createElement;
|
|
138
|
+
|
|
139
|
+
if (humanSlot) {
|
|
140
|
+
return h("div", {
|
|
141
|
+
"class": bem("human-box") + " half-border-bottom"
|
|
142
|
+
}, [humanSlot]);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return h("div", {
|
|
146
|
+
"class": bem("human-box" + " half-border-bottom")
|
|
147
|
+
}, [h("span", {
|
|
148
|
+
"class": bem("depart")
|
|
149
|
+
}, ["" + item.department]), h("span", {
|
|
150
|
+
"class": bem("human")
|
|
151
|
+
}, ["[" + item.human + "]"])]);
|
|
152
|
+
},
|
|
124
153
|
genContent: function genContent(item, contentSlot) {
|
|
125
154
|
var h = this.$createElement;
|
|
126
155
|
|
|
@@ -132,10 +161,28 @@ var _default2 = createComponent({
|
|
|
132
161
|
|
|
133
162
|
return h("div", {
|
|
134
163
|
"class": bem("content-box" + " half-border-bottom")
|
|
135
|
-
}, [
|
|
136
|
-
"class": bem("
|
|
137
|
-
}, [
|
|
138
|
-
"
|
|
164
|
+
}, [h("div", {
|
|
165
|
+
"class": bem("content-label")
|
|
166
|
+
}, [this.contentKey]), h("span", {
|
|
167
|
+
"directives": [{
|
|
168
|
+
name: "show",
|
|
169
|
+
value: item.stage
|
|
170
|
+
}]
|
|
171
|
+
}, ["\u5728", item.stage, "\u9636\u6BB5"]), h("span", [" ", item.action, " "]), h("span", {
|
|
172
|
+
"directives": [{
|
|
173
|
+
name: "show",
|
|
174
|
+
value: item.nextAction
|
|
175
|
+
}]
|
|
176
|
+
}, ["\u5230", item.nextAction]), h("span", {
|
|
177
|
+
"directives": [{
|
|
178
|
+
name: "show",
|
|
179
|
+
value: item.nextDepartment
|
|
180
|
+
}]
|
|
181
|
+
}, [item.nextDepartment]), h("span", {
|
|
182
|
+
"directives": [{
|
|
183
|
+
name: "show",
|
|
184
|
+
value: item.nextHuman
|
|
185
|
+
}]
|
|
139
186
|
}, [" [", item.nextHuman, "]"])]);
|
|
140
187
|
},
|
|
141
188
|
genOpinion: function genOpinion(item, opinionSlot) {
|
|
@@ -152,8 +199,8 @@ var _default2 = createComponent({
|
|
|
152
199
|
}, [h("div", {
|
|
153
200
|
"class": bem("opinion-label")
|
|
154
201
|
}, [this.opinionKey]), h("div", {
|
|
155
|
-
"class": bem("opinion")
|
|
156
|
-
}, [item.opinion])]);
|
|
202
|
+
"class": bem("opinion", item.opinion ? "" : "empty")
|
|
203
|
+
}, [item.opinion || "无"])]);
|
|
157
204
|
},
|
|
158
205
|
genProcessItem: function genProcessItem(item, isLast) {
|
|
159
206
|
var h = this.$createElement;
|
|
@@ -161,6 +208,7 @@ var _default2 = createComponent({
|
|
|
161
208
|
var titleSlot = this.slots("title", item);
|
|
162
209
|
var contentSlot = this.slots("content", item);
|
|
163
210
|
var opinionSlot = this.slots("opinion", item);
|
|
211
|
+
var humanSlot = this.slots("human", item);
|
|
164
212
|
var that = this;
|
|
165
213
|
|
|
166
214
|
function itemClicked() {
|
|
@@ -178,13 +226,13 @@ var _default2 = createComponent({
|
|
|
178
226
|
}
|
|
179
227
|
}, [h("div", {
|
|
180
228
|
"class": bem("left-container")
|
|
181
|
-
}, [this.genAvatar(item, avatarSlot), h("div", {
|
|
229
|
+
}, [this.genAvatar(item, avatarSlot, isLast), h("div", {
|
|
182
230
|
"class": bem("line")
|
|
183
231
|
})]), h("div", {
|
|
184
232
|
"class": bem("right-container")
|
|
185
233
|
}, [this.genTitle(item, titleSlot), item.folded ? h() : h("div", {
|
|
186
|
-
"class": bem("main-container")
|
|
187
|
-
}, [this.genContent(item, contentSlot), this.genOpinion(item, opinionSlot)])])]);
|
|
234
|
+
"class": bem("main-container")
|
|
235
|
+
}, [this.genHuman(item, humanSlot), this.genContent(item, contentSlot), this.genOpinion(item, opinionSlot)])])]);
|
|
188
236
|
}
|
|
189
237
|
},
|
|
190
238
|
render: function render(h) {
|
package/lib/timeline/index.less
CHANGED
|
@@ -2,43 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
.zt-timeline {
|
|
4
4
|
background-color: #fff;
|
|
5
|
-
|
|
5
|
+
.zt-timeline__top-bar {
|
|
6
6
|
height: 44px;
|
|
7
7
|
display: flex;
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
align-items: center;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
.zt-timeline__top-left {
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
.zt-timeline__bar {
|
|
16
16
|
width: 4px;
|
|
17
17
|
height: 16px;
|
|
18
18
|
background: #0091fa;
|
|
19
19
|
margin-right: 12px;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
font-weight: bold;
|
|
24
|
-
color: #000000;
|
|
25
|
-
line-height: 24px;
|
|
26
|
-
}
|
|
27
|
-
&__top-right {
|
|
21
|
+
.zt-timeline__top-right {
|
|
28
22
|
padding-right: 16px;
|
|
29
23
|
display: flex;
|
|
30
24
|
align-items: center;
|
|
31
25
|
}
|
|
32
|
-
|
|
33
|
-
font-size:
|
|
34
|
-
color: rgba(
|
|
26
|
+
.zt-timeline__fold-text {
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
color: rgba(45, 75, 115, .6);
|
|
35
29
|
line-height: 24px;
|
|
36
30
|
margin-right: 8px;
|
|
37
31
|
}
|
|
38
|
-
|
|
32
|
+
.zt-timeline__container {
|
|
39
33
|
padding-top: 16px;
|
|
40
34
|
}
|
|
41
|
-
|
|
35
|
+
.zt-timeline__item {
|
|
42
36
|
padding: 0 16px 16px 16px;
|
|
43
37
|
display: flex;
|
|
44
38
|
&.last-item {
|
|
@@ -47,23 +41,31 @@
|
|
|
47
41
|
}
|
|
48
42
|
}
|
|
49
43
|
}
|
|
50
|
-
|
|
44
|
+
.zt-timeline__left-container {
|
|
51
45
|
margin-right: 8px;
|
|
52
46
|
display: flex;
|
|
53
47
|
flex-direction: column;
|
|
54
48
|
align-items: center;
|
|
55
49
|
}
|
|
56
|
-
|
|
50
|
+
.zt-timeline__right-container {
|
|
57
51
|
flex: 1;
|
|
58
52
|
}
|
|
59
|
-
|
|
53
|
+
.zt-timeline__avatar-box {
|
|
60
54
|
width: 40px;
|
|
61
55
|
height: 40px;
|
|
56
|
+
position: relative;
|
|
62
57
|
}
|
|
63
|
-
|
|
58
|
+
.zt-timeline__status {
|
|
59
|
+
width: 16px;
|
|
60
|
+
height: 16px;
|
|
61
|
+
position: absolute;
|
|
62
|
+
bottom: -4px;
|
|
63
|
+
right: -4px;
|
|
64
|
+
}
|
|
65
|
+
.zt-timeline__avatar {
|
|
64
66
|
width: 40px;
|
|
65
67
|
height: 40px;
|
|
66
|
-
background:
|
|
68
|
+
background: rgba(0,145,250,0.70);
|
|
67
69
|
border-radius: 4px;
|
|
68
70
|
font-size: 14px;
|
|
69
71
|
font-weight: bold;
|
|
@@ -71,38 +73,58 @@
|
|
|
71
73
|
color: #ffffff;
|
|
72
74
|
line-height: 40px;
|
|
73
75
|
}
|
|
74
|
-
|
|
76
|
+
.zt-timeline__line {
|
|
75
77
|
background-color: #f5f5f5;
|
|
76
78
|
width: 2px;
|
|
77
79
|
height: 100%;
|
|
78
80
|
margin-top: 4px;
|
|
79
81
|
margin-bottom: -12px;
|
|
80
82
|
}
|
|
81
|
-
|
|
83
|
+
.zt-timeline__title-box {
|
|
82
84
|
display: flex;
|
|
83
85
|
justify-content: space-between;
|
|
84
86
|
align-items: center;
|
|
85
87
|
margin-bottom: 8px;
|
|
86
88
|
}
|
|
87
|
-
|
|
88
|
-
font-size:
|
|
89
|
+
.zt-timeline__title {
|
|
90
|
+
font-size: 14px;
|
|
89
91
|
font-weight: bold;
|
|
90
|
-
color:
|
|
92
|
+
color: rgba(45, 75, 115, 1);
|
|
91
93
|
line-height: 24px;
|
|
92
94
|
}
|
|
93
|
-
|
|
95
|
+
.zt-timeline__time {
|
|
94
96
|
font-size: 12px;
|
|
95
|
-
color: rgba(
|
|
97
|
+
color: rgba(45, 75, 115, .8);
|
|
96
98
|
line-height: 16px;
|
|
97
99
|
}
|
|
98
|
-
|
|
100
|
+
.zt-timeline__content-box {
|
|
99
101
|
font-size: 14px;
|
|
100
|
-
color:
|
|
102
|
+
color: #2D4B73;
|
|
101
103
|
line-height: 20px;
|
|
102
104
|
padding-bottom: 8px;
|
|
103
105
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
.zt-timeline__human-box {
|
|
107
|
+
padding-bottom: 8px;
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
flex-wrap: wrap;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
.zt-timeline__depart {
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
color: #2D4B73;
|
|
115
|
+
line-height: 20px;
|
|
116
|
+
margin-right: 8px;
|
|
117
|
+
}
|
|
118
|
+
.zt-timeline__human {
|
|
119
|
+
font-weight: bold;
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
color: #2D4B73;
|
|
122
|
+
line-height: 20px;
|
|
123
|
+
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.zt-timeline__main-container {
|
|
127
|
+
background: rgba(45, 75, 115, 0.04);
|
|
106
128
|
border-radius: 4px;
|
|
107
129
|
padding: 8px 12px;
|
|
108
130
|
&::before {
|
|
@@ -110,21 +132,25 @@
|
|
|
110
132
|
}
|
|
111
133
|
.zt-timeline__text-bold {
|
|
112
134
|
font-weight: bold;
|
|
113
|
-
color:
|
|
135
|
+
color: rgba(45, 75, 115, 1);
|
|
114
136
|
}
|
|
115
137
|
}
|
|
116
|
-
|
|
138
|
+
.zt-timeline__opinion-box {
|
|
117
139
|
padding-top: 7px;
|
|
140
|
+
.zt-timeline__opinion--empty {
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
color: rgba(45, 75, 115, .2);
|
|
143
|
+
}
|
|
118
144
|
}
|
|
119
|
-
|
|
145
|
+
.zt-timeline__opinion-label, .zt-timeline__content-label {
|
|
120
146
|
margin-bottom: 4px;
|
|
121
147
|
font-size: 14px;
|
|
122
|
-
color: rgba(
|
|
148
|
+
color: rgba(45, 75, 115, .6);
|
|
123
149
|
line-height: 20px;
|
|
124
150
|
}
|
|
125
|
-
|
|
151
|
+
.zt-timeline__opinion {
|
|
126
152
|
font-size: 14px;
|
|
127
|
-
color: #
|
|
153
|
+
color: #2D4B73;
|
|
128
154
|
line-height: 20px;
|
|
129
155
|
}
|
|
130
156
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _default = {
|
|
6
|
+
render: function render() {
|
|
7
|
+
var h = arguments[0];
|
|
8
|
+
return h("svg", {
|
|
9
|
+
"attrs": {
|
|
10
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
11
|
+
"viewBox": "0 0 16 16"
|
|
12
|
+
},
|
|
13
|
+
"class": "design-iconfont"
|
|
14
|
+
}, [h("g", {
|
|
15
|
+
"attrs": {
|
|
16
|
+
"fill": "none",
|
|
17
|
+
"fill-rule": "evenodd"
|
|
18
|
+
}
|
|
19
|
+
}, [h("path", {
|
|
20
|
+
"attrs": {
|
|
21
|
+
"stroke": "#FFF",
|
|
22
|
+
"stroke-width": "2",
|
|
23
|
+
"fill": "#FF8700",
|
|
24
|
+
"d": "M8 1A7 7 0 1 0 8 15A7 7 0 1 0 8 1Z"
|
|
25
|
+
}
|
|
26
|
+
}), h("path", {
|
|
27
|
+
"attrs": {
|
|
28
|
+
"d": "M11.9521467,5.34818462 C12.342671,5.73870892 12.342671,6.3718739 11.9521467,6.76239819 L9.53793311,9.17661175 C9.14740882,9.56713604 8.51424384,9.56713604 8.12371955,9.17661175 L8.07845049,9.12529141 L5.99434371,7.04178547 C5.63385975,6.68130151 5.60613021,6.11407045 5.9111551,5.72177925 L5.99434371,5.62757191 C6.384868,5.23704762 7.01803298,5.23704762 7.40855727,5.62757191 L7.40855727,5.62757191 L8.83345049,7.05229141 L10.5379331,5.34818462 C10.9284574,4.95766033 11.5616224,4.95766033 11.9521467,5.34818462 Z",
|
|
29
|
+
"fill": "#FFF",
|
|
30
|
+
"transform": "rotate(45 8.973245 7.262398)"
|
|
31
|
+
}
|
|
32
|
+
})])]);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.default = _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _default = {
|
|
6
|
+
render: function render() {
|
|
7
|
+
var h = arguments[0];
|
|
8
|
+
return h("svg", {
|
|
9
|
+
"attrs": {
|
|
10
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
11
|
+
"viewBox": "0 0 16 16"
|
|
12
|
+
},
|
|
13
|
+
"class": "design-iconfont"
|
|
14
|
+
}, [h("g", {
|
|
15
|
+
"attrs": {
|
|
16
|
+
"fill": "none",
|
|
17
|
+
"fill-rule": "evenodd"
|
|
18
|
+
}
|
|
19
|
+
}, [h("path", {
|
|
20
|
+
"attrs": {
|
|
21
|
+
"stroke": "#FFF",
|
|
22
|
+
"stroke-width": "2",
|
|
23
|
+
"fill": "#00E173",
|
|
24
|
+
"d": "M8 1A7 7 0 1 0 8 15A7 7 0 1 0 8 1Z"
|
|
25
|
+
}
|
|
26
|
+
}), h("path", {
|
|
27
|
+
"attrs": {
|
|
28
|
+
"d": "M11.457803,6.04289322 C11.8483273,6.43341751 11.8483273,7.06658249 11.457803,7.45710678 L8.33648262,10.5784271 C7.94595833,10.9689514 7.31279335,10.9689514 6.92226906,10.5784271 L6.877,10.527 L4.79289322,8.44360084 C4.43240926,8.08311688 4.40467972,7.51588583 4.70970461,7.12359462 L4.79289322,7.02938728 C5.18341751,6.63886299 5.81658249,6.63886299 6.20710678,7.02938728 L6.20710678,7.02938728 L7.632,8.454 L10.0435894,6.04289322 C10.4341137,5.65236893 11.0672787,5.65236893 11.457803,6.04289322 Z",
|
|
29
|
+
"fill": "#FFF"
|
|
30
|
+
}
|
|
31
|
+
})])]);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.default = _default;
|
package/lib/zart.js
CHANGED
|
@@ -52822,6 +52822,67 @@ Tag.props = {
|
|
|
52822
52822
|
}
|
|
52823
52823
|
};
|
|
52824
52824
|
/* harmony default export */ var es_tag = (tag_createComponent(Tag));
|
|
52825
|
+
// CONCATENATED MODULE: ./es/timeline/svg/pass.js
|
|
52826
|
+
/* harmony default export */ var pass = ({
|
|
52827
|
+
render: function render() {
|
|
52828
|
+
var h = arguments[0];
|
|
52829
|
+
return h("svg", {
|
|
52830
|
+
"attrs": {
|
|
52831
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
52832
|
+
"viewBox": "0 0 16 16"
|
|
52833
|
+
},
|
|
52834
|
+
"class": "design-iconfont"
|
|
52835
|
+
}, [h("g", {
|
|
52836
|
+
"attrs": {
|
|
52837
|
+
"fill": "none",
|
|
52838
|
+
"fill-rule": "evenodd"
|
|
52839
|
+
}
|
|
52840
|
+
}, [h("path", {
|
|
52841
|
+
"attrs": {
|
|
52842
|
+
"stroke": "#FFF",
|
|
52843
|
+
"stroke-width": "2",
|
|
52844
|
+
"fill": "#00E173",
|
|
52845
|
+
"d": "M8 1A7 7 0 1 0 8 15A7 7 0 1 0 8 1Z"
|
|
52846
|
+
}
|
|
52847
|
+
}), h("path", {
|
|
52848
|
+
"attrs": {
|
|
52849
|
+
"d": "M11.457803,6.04289322 C11.8483273,6.43341751 11.8483273,7.06658249 11.457803,7.45710678 L8.33648262,10.5784271 C7.94595833,10.9689514 7.31279335,10.9689514 6.92226906,10.5784271 L6.877,10.527 L4.79289322,8.44360084 C4.43240926,8.08311688 4.40467972,7.51588583 4.70970461,7.12359462 L4.79289322,7.02938728 C5.18341751,6.63886299 5.81658249,6.63886299 6.20710678,7.02938728 L6.20710678,7.02938728 L7.632,8.454 L10.0435894,6.04289322 C10.4341137,5.65236893 11.0672787,5.65236893 11.457803,6.04289322 Z",
|
|
52850
|
+
"fill": "#FFF"
|
|
52851
|
+
}
|
|
52852
|
+
})])]);
|
|
52853
|
+
}
|
|
52854
|
+
});
|
|
52855
|
+
// CONCATENATED MODULE: ./es/timeline/svg/current.js
|
|
52856
|
+
/* harmony default export */ var svg_current = ({
|
|
52857
|
+
render: function render() {
|
|
52858
|
+
var h = arguments[0];
|
|
52859
|
+
return h("svg", {
|
|
52860
|
+
"attrs": {
|
|
52861
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
52862
|
+
"viewBox": "0 0 16 16"
|
|
52863
|
+
},
|
|
52864
|
+
"class": "design-iconfont"
|
|
52865
|
+
}, [h("g", {
|
|
52866
|
+
"attrs": {
|
|
52867
|
+
"fill": "none",
|
|
52868
|
+
"fill-rule": "evenodd"
|
|
52869
|
+
}
|
|
52870
|
+
}, [h("path", {
|
|
52871
|
+
"attrs": {
|
|
52872
|
+
"stroke": "#FFF",
|
|
52873
|
+
"stroke-width": "2",
|
|
52874
|
+
"fill": "#FF8700",
|
|
52875
|
+
"d": "M8 1A7 7 0 1 0 8 15A7 7 0 1 0 8 1Z"
|
|
52876
|
+
}
|
|
52877
|
+
}), h("path", {
|
|
52878
|
+
"attrs": {
|
|
52879
|
+
"d": "M11.9521467,5.34818462 C12.342671,5.73870892 12.342671,6.3718739 11.9521467,6.76239819 L9.53793311,9.17661175 C9.14740882,9.56713604 8.51424384,9.56713604 8.12371955,9.17661175 L8.07845049,9.12529141 L5.99434371,7.04178547 C5.63385975,6.68130151 5.60613021,6.11407045 5.9111551,5.72177925 L5.99434371,5.62757191 C6.384868,5.23704762 7.01803298,5.23704762 7.40855727,5.62757191 L7.40855727,5.62757191 L8.83345049,7.05229141 L10.5379331,5.34818462 C10.9284574,4.95766033 11.5616224,4.95766033 11.9521467,5.34818462 Z",
|
|
52880
|
+
"fill": "#FFF",
|
|
52881
|
+
"transform": "rotate(45 8.973245 7.262398)"
|
|
52882
|
+
}
|
|
52883
|
+
})])]);
|
|
52884
|
+
}
|
|
52885
|
+
});
|
|
52825
52886
|
// CONCATENATED MODULE: ./es/timeline/index.js
|
|
52826
52887
|
|
|
52827
52888
|
|
|
@@ -52833,6 +52894,8 @@ var timeline_createNamespace = Object(utils["b" /* createNamespace */])('timelin
|
|
|
52833
52894
|
|
|
52834
52895
|
|
|
52835
52896
|
|
|
52897
|
+
|
|
52898
|
+
|
|
52836
52899
|
var timeline_defaultData = function defaultData() {
|
|
52837
52900
|
return {
|
|
52838
52901
|
isFold: false,
|
|
@@ -52866,6 +52929,10 @@ var timeline_defaultData = function defaultData() {
|
|
|
52866
52929
|
type: String,
|
|
52867
52930
|
default: "处理意见"
|
|
52868
52931
|
},
|
|
52932
|
+
contentKey: {
|
|
52933
|
+
type: String,
|
|
52934
|
+
default: "案件状态"
|
|
52935
|
+
},
|
|
52869
52936
|
enableSingleFold: {
|
|
52870
52937
|
type: Boolean,
|
|
52871
52938
|
default: true
|
|
@@ -52899,7 +52966,7 @@ var timeline_defaultData = function defaultData() {
|
|
|
52899
52966
|
});
|
|
52900
52967
|
}
|
|
52901
52968
|
},
|
|
52902
|
-
genAvatar: function genAvatar(item, avatarSlot) {
|
|
52969
|
+
genAvatar: function genAvatar(item, avatarSlot, isLast) {
|
|
52903
52970
|
var h = this.$createElement;
|
|
52904
52971
|
|
|
52905
52972
|
if (avatarSlot) {
|
|
@@ -52918,7 +52985,11 @@ var timeline_defaultData = function defaultData() {
|
|
|
52918
52985
|
}
|
|
52919
52986
|
}) : h("div", {
|
|
52920
52987
|
"class": timeline_bem("avatar")
|
|
52921
|
-
}, [item.human.slice(-2)])
|
|
52988
|
+
}, [item.human.slice(-2)]), isLast ? h(svg_current, {
|
|
52989
|
+
"class": timeline_bem("status")
|
|
52990
|
+
}) : h(pass, {
|
|
52991
|
+
"class": timeline_bem("status")
|
|
52992
|
+
})]);
|
|
52922
52993
|
},
|
|
52923
52994
|
genTitle: function genTitle(item, titleSlot) {
|
|
52924
52995
|
var h = this.$createElement;
|
|
@@ -52933,10 +53004,27 @@ var timeline_defaultData = function defaultData() {
|
|
|
52933
53004
|
"class": timeline_bem("title-box")
|
|
52934
53005
|
}, [h("span", {
|
|
52935
53006
|
"class": timeline_bem("title")
|
|
52936
|
-
}, [item.
|
|
53007
|
+
}, [item.action]), h("span", {
|
|
52937
53008
|
"class": timeline_bem("time")
|
|
52938
53009
|
}, [item.timestamp])]);
|
|
52939
53010
|
},
|
|
53011
|
+
genHuman: function genHuman(item, humanSlot) {
|
|
53012
|
+
var h = this.$createElement;
|
|
53013
|
+
|
|
53014
|
+
if (humanSlot) {
|
|
53015
|
+
return h("div", {
|
|
53016
|
+
"class": timeline_bem("human-box") + " half-border-bottom"
|
|
53017
|
+
}, [humanSlot]);
|
|
53018
|
+
}
|
|
53019
|
+
|
|
53020
|
+
return h("div", {
|
|
53021
|
+
"class": timeline_bem("human-box" + " half-border-bottom")
|
|
53022
|
+
}, [h("span", {
|
|
53023
|
+
"class": timeline_bem("depart")
|
|
53024
|
+
}, ["" + item.department]), h("span", {
|
|
53025
|
+
"class": timeline_bem("human")
|
|
53026
|
+
}, ["[" + item.human + "]"])]);
|
|
53027
|
+
},
|
|
52940
53028
|
genContent: function genContent(item, contentSlot) {
|
|
52941
53029
|
var h = this.$createElement;
|
|
52942
53030
|
|
|
@@ -52948,10 +53036,28 @@ var timeline_defaultData = function defaultData() {
|
|
|
52948
53036
|
|
|
52949
53037
|
return h("div", {
|
|
52950
53038
|
"class": timeline_bem("content-box" + " half-border-bottom")
|
|
52951
|
-
}, [
|
|
52952
|
-
"class": timeline_bem("
|
|
52953
|
-
}, [
|
|
52954
|
-
"
|
|
53039
|
+
}, [h("div", {
|
|
53040
|
+
"class": timeline_bem("content-label")
|
|
53041
|
+
}, [this.contentKey]), h("span", {
|
|
53042
|
+
"directives": [{
|
|
53043
|
+
name: "show",
|
|
53044
|
+
value: item.stage
|
|
53045
|
+
}]
|
|
53046
|
+
}, ["\u5728", item.stage, "\u9636\u6BB5"]), h("span", [" ", item.action, " "]), h("span", {
|
|
53047
|
+
"directives": [{
|
|
53048
|
+
name: "show",
|
|
53049
|
+
value: item.nextAction
|
|
53050
|
+
}]
|
|
53051
|
+
}, ["\u5230", item.nextAction]), h("span", {
|
|
53052
|
+
"directives": [{
|
|
53053
|
+
name: "show",
|
|
53054
|
+
value: item.nextDepartment
|
|
53055
|
+
}]
|
|
53056
|
+
}, [item.nextDepartment]), h("span", {
|
|
53057
|
+
"directives": [{
|
|
53058
|
+
name: "show",
|
|
53059
|
+
value: item.nextHuman
|
|
53060
|
+
}]
|
|
52955
53061
|
}, [" [", item.nextHuman, "]"])]);
|
|
52956
53062
|
},
|
|
52957
53063
|
genOpinion: function genOpinion(item, opinionSlot) {
|
|
@@ -52968,8 +53074,8 @@ var timeline_defaultData = function defaultData() {
|
|
|
52968
53074
|
}, [h("div", {
|
|
52969
53075
|
"class": timeline_bem("opinion-label")
|
|
52970
53076
|
}, [this.opinionKey]), h("div", {
|
|
52971
|
-
"class": timeline_bem("opinion")
|
|
52972
|
-
}, [item.opinion])]);
|
|
53077
|
+
"class": timeline_bem("opinion", item.opinion ? "" : "empty")
|
|
53078
|
+
}, [item.opinion || "无"])]);
|
|
52973
53079
|
},
|
|
52974
53080
|
genProcessItem: function genProcessItem(item, isLast) {
|
|
52975
53081
|
var h = this.$createElement;
|
|
@@ -52977,6 +53083,7 @@ var timeline_defaultData = function defaultData() {
|
|
|
52977
53083
|
var titleSlot = this.slots("title", item);
|
|
52978
53084
|
var contentSlot = this.slots("content", item);
|
|
52979
53085
|
var opinionSlot = this.slots("opinion", item);
|
|
53086
|
+
var humanSlot = this.slots("human", item);
|
|
52980
53087
|
var that = this;
|
|
52981
53088
|
|
|
52982
53089
|
function itemClicked() {
|
|
@@ -52994,13 +53101,13 @@ var timeline_defaultData = function defaultData() {
|
|
|
52994
53101
|
}
|
|
52995
53102
|
}, [h("div", {
|
|
52996
53103
|
"class": timeline_bem("left-container")
|
|
52997
|
-
}, [this.genAvatar(item, avatarSlot), h("div", {
|
|
53104
|
+
}, [this.genAvatar(item, avatarSlot, isLast), h("div", {
|
|
52998
53105
|
"class": timeline_bem("line")
|
|
52999
53106
|
})]), h("div", {
|
|
53000
53107
|
"class": timeline_bem("right-container")
|
|
53001
53108
|
}, [this.genTitle(item, titleSlot), item.folded ? h() : h("div", {
|
|
53002
|
-
"class": timeline_bem("main-container")
|
|
53003
|
-
}, [this.genContent(item, contentSlot), this.genOpinion(item, opinionSlot)])])]);
|
|
53109
|
+
"class": timeline_bem("main-container")
|
|
53110
|
+
}, [this.genHuman(item, humanSlot), this.genContent(item, contentSlot), this.genOpinion(item, opinionSlot)])])]);
|
|
53004
53111
|
}
|
|
53005
53112
|
},
|
|
53006
53113
|
render: function render(h) {
|
|
@@ -54430,7 +54537,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
|
|
|
54430
54537
|
|
|
54431
54538
|
|
|
54432
54539
|
|
|
54433
|
-
var version = '2.0.
|
|
54540
|
+
var version = '2.0.23';
|
|
54434
54541
|
|
|
54435
54542
|
function install(Vue) {
|
|
54436
54543
|
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, pdf_viewer, pdf_viewer_v2, 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];
|