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/es/checkbox/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-left:12px}.zt-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt-checkbox__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-checkbox__icon--round .zt-icon{border-radius:100%}.zt-checkbox__icon--checked .zt-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-checkbox__label{margin-left:8px;color:#000;font-size:14px
|
|
1
|
+
.zt-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-left:12px}.zt-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt-checkbox__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-checkbox__icon--round .zt-icon{border-radius:100%}.zt-checkbox__icon--checked .zt-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-checkbox__label{margin-left:8px;color:#000;font-size:14px}.zt-checkbox__label--left{margin:0 8px 0 0}.zt-checkbox__label--disabled{color:#c8c9cc}
|
package/es/checkbox/index.less
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
.zt-checkbox {
|
|
4
4
|
display: flex;
|
|
5
5
|
overflow: hidden;
|
|
6
|
+
align-items: center;
|
|
6
7
|
cursor: pointer;
|
|
7
8
|
user-select: none;
|
|
8
9
|
padding: @checkbox-padding;
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
margin-left: @checkbox-label-margin;
|
|
75
76
|
color: @black;
|
|
76
77
|
font-size: @checkbox-label-font-size;
|
|
77
|
-
line-height: @checkbox-size;
|
|
78
|
+
//line-height: @checkbox-size;
|
|
78
79
|
|
|
79
80
|
&--left {
|
|
80
81
|
margin: 0 @checkbox-label-margin 0 0;
|
package/es/index.js
CHANGED
|
@@ -76,7 +76,7 @@ import Tag from './tag';
|
|
|
76
76
|
import Timeline from './timeline';
|
|
77
77
|
import Toast from './toast';
|
|
78
78
|
import Uploader from './uploader';
|
|
79
|
-
var version = '2.0.
|
|
79
|
+
var version = '2.0.23';
|
|
80
80
|
|
|
81
81
|
function install(Vue) {
|
|
82
82
|
var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Grid, GridItem, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MediaPicker, MediaPlayer, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, PdfViewer, PdfViewerV2, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, Timeline, Toast, Uploader];
|
package/es/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/es/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/es/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/es/timeline/index.js
CHANGED
|
@@ -7,6 +7,8 @@ var _createNamespace = createNamespace('timeline'),
|
|
|
7
7
|
bem = _createNamespace[1];
|
|
8
8
|
|
|
9
9
|
import Switch from "../switch";
|
|
10
|
+
import PassIcon from "./svg/pass";
|
|
11
|
+
import CurrentIcon from "./svg/current";
|
|
10
12
|
|
|
11
13
|
var defaultData = function defaultData() {
|
|
12
14
|
return {
|
|
@@ -41,6 +43,10 @@ export default createComponent({
|
|
|
41
43
|
type: String,
|
|
42
44
|
default: "处理意见"
|
|
43
45
|
},
|
|
46
|
+
contentKey: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "案件状态"
|
|
49
|
+
},
|
|
44
50
|
enableSingleFold: {
|
|
45
51
|
type: Boolean,
|
|
46
52
|
default: true
|
|
@@ -74,7 +80,7 @@ export default createComponent({
|
|
|
74
80
|
});
|
|
75
81
|
}
|
|
76
82
|
},
|
|
77
|
-
genAvatar: function genAvatar(item, avatarSlot) {
|
|
83
|
+
genAvatar: function genAvatar(item, avatarSlot, isLast) {
|
|
78
84
|
var h = this.$createElement;
|
|
79
85
|
|
|
80
86
|
if (avatarSlot) {
|
|
@@ -93,7 +99,11 @@ export default createComponent({
|
|
|
93
99
|
}
|
|
94
100
|
}) : h("div", {
|
|
95
101
|
"class": bem("avatar")
|
|
96
|
-
}, [item.human.slice(-2)])
|
|
102
|
+
}, [item.human.slice(-2)]), isLast ? h(CurrentIcon, {
|
|
103
|
+
"class": bem("status")
|
|
104
|
+
}) : h(PassIcon, {
|
|
105
|
+
"class": bem("status")
|
|
106
|
+
})]);
|
|
97
107
|
},
|
|
98
108
|
genTitle: function genTitle(item, titleSlot) {
|
|
99
109
|
var h = this.$createElement;
|
|
@@ -108,10 +118,27 @@ export default createComponent({
|
|
|
108
118
|
"class": bem("title-box")
|
|
109
119
|
}, [h("span", {
|
|
110
120
|
"class": bem("title")
|
|
111
|
-
}, [item.
|
|
121
|
+
}, [item.action]), h("span", {
|
|
112
122
|
"class": bem("time")
|
|
113
123
|
}, [item.timestamp])]);
|
|
114
124
|
},
|
|
125
|
+
genHuman: function genHuman(item, humanSlot) {
|
|
126
|
+
var h = this.$createElement;
|
|
127
|
+
|
|
128
|
+
if (humanSlot) {
|
|
129
|
+
return h("div", {
|
|
130
|
+
"class": bem("human-box") + " half-border-bottom"
|
|
131
|
+
}, [humanSlot]);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return h("div", {
|
|
135
|
+
"class": bem("human-box" + " half-border-bottom")
|
|
136
|
+
}, [h("span", {
|
|
137
|
+
"class": bem("depart")
|
|
138
|
+
}, ["" + item.department]), h("span", {
|
|
139
|
+
"class": bem("human")
|
|
140
|
+
}, ["[" + item.human + "]"])]);
|
|
141
|
+
},
|
|
115
142
|
genContent: function genContent(item, contentSlot) {
|
|
116
143
|
var h = this.$createElement;
|
|
117
144
|
|
|
@@ -123,10 +150,28 @@ export default createComponent({
|
|
|
123
150
|
|
|
124
151
|
return h("div", {
|
|
125
152
|
"class": bem("content-box" + " half-border-bottom")
|
|
126
|
-
}, [
|
|
127
|
-
"class": bem("
|
|
128
|
-
}, [
|
|
129
|
-
"
|
|
153
|
+
}, [h("div", {
|
|
154
|
+
"class": bem("content-label")
|
|
155
|
+
}, [this.contentKey]), h("span", {
|
|
156
|
+
"directives": [{
|
|
157
|
+
name: "show",
|
|
158
|
+
value: item.stage
|
|
159
|
+
}]
|
|
160
|
+
}, ["\u5728", item.stage, "\u9636\u6BB5"]), h("span", [" ", item.action, " "]), h("span", {
|
|
161
|
+
"directives": [{
|
|
162
|
+
name: "show",
|
|
163
|
+
value: item.nextAction
|
|
164
|
+
}]
|
|
165
|
+
}, ["\u5230", item.nextAction]), h("span", {
|
|
166
|
+
"directives": [{
|
|
167
|
+
name: "show",
|
|
168
|
+
value: item.nextDepartment
|
|
169
|
+
}]
|
|
170
|
+
}, [item.nextDepartment]), h("span", {
|
|
171
|
+
"directives": [{
|
|
172
|
+
name: "show",
|
|
173
|
+
value: item.nextHuman
|
|
174
|
+
}]
|
|
130
175
|
}, [" [", item.nextHuman, "]"])]);
|
|
131
176
|
},
|
|
132
177
|
genOpinion: function genOpinion(item, opinionSlot) {
|
|
@@ -143,8 +188,8 @@ export default createComponent({
|
|
|
143
188
|
}, [h("div", {
|
|
144
189
|
"class": bem("opinion-label")
|
|
145
190
|
}, [this.opinionKey]), h("div", {
|
|
146
|
-
"class": bem("opinion")
|
|
147
|
-
}, [item.opinion])]);
|
|
191
|
+
"class": bem("opinion", item.opinion ? "" : "empty")
|
|
192
|
+
}, [item.opinion || "无"])]);
|
|
148
193
|
},
|
|
149
194
|
genProcessItem: function genProcessItem(item, isLast) {
|
|
150
195
|
var h = this.$createElement;
|
|
@@ -152,6 +197,7 @@ export default createComponent({
|
|
|
152
197
|
var titleSlot = this.slots("title", item);
|
|
153
198
|
var contentSlot = this.slots("content", item);
|
|
154
199
|
var opinionSlot = this.slots("opinion", item);
|
|
200
|
+
var humanSlot = this.slots("human", item);
|
|
155
201
|
var that = this;
|
|
156
202
|
|
|
157
203
|
function itemClicked() {
|
|
@@ -169,13 +215,13 @@ export default createComponent({
|
|
|
169
215
|
}
|
|
170
216
|
}, [h("div", {
|
|
171
217
|
"class": bem("left-container")
|
|
172
|
-
}, [this.genAvatar(item, avatarSlot), h("div", {
|
|
218
|
+
}, [this.genAvatar(item, avatarSlot, isLast), h("div", {
|
|
173
219
|
"class": bem("line")
|
|
174
220
|
})]), h("div", {
|
|
175
221
|
"class": bem("right-container")
|
|
176
222
|
}, [this.genTitle(item, titleSlot), item.folded ? h() : h("div", {
|
|
177
|
-
"class": bem("main-container")
|
|
178
|
-
}, [this.genContent(item, contentSlot), this.genOpinion(item, opinionSlot)])])]);
|
|
223
|
+
"class": bem("main-container")
|
|
224
|
+
}, [this.genHuman(item, humanSlot), this.genContent(item, contentSlot), this.genOpinion(item, opinionSlot)])])]);
|
|
179
225
|
}
|
|
180
226
|
},
|
|
181
227
|
render: function render(h) {
|
package/es/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,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
render: function render() {
|
|
3
|
+
var h = arguments[0];
|
|
4
|
+
return h("svg", {
|
|
5
|
+
"attrs": {
|
|
6
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
7
|
+
"viewBox": "0 0 16 16"
|
|
8
|
+
},
|
|
9
|
+
"class": "design-iconfont"
|
|
10
|
+
}, [h("g", {
|
|
11
|
+
"attrs": {
|
|
12
|
+
"fill": "none",
|
|
13
|
+
"fill-rule": "evenodd"
|
|
14
|
+
}
|
|
15
|
+
}, [h("path", {
|
|
16
|
+
"attrs": {
|
|
17
|
+
"stroke": "#FFF",
|
|
18
|
+
"stroke-width": "2",
|
|
19
|
+
"fill": "#FF8700",
|
|
20
|
+
"d": "M8 1A7 7 0 1 0 8 15A7 7 0 1 0 8 1Z"
|
|
21
|
+
}
|
|
22
|
+
}), h("path", {
|
|
23
|
+
"attrs": {
|
|
24
|
+
"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",
|
|
25
|
+
"fill": "#FFF",
|
|
26
|
+
"transform": "rotate(45 8.973245 7.262398)"
|
|
27
|
+
}
|
|
28
|
+
})])]);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
render: function render() {
|
|
3
|
+
var h = arguments[0];
|
|
4
|
+
return h("svg", {
|
|
5
|
+
"attrs": {
|
|
6
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
7
|
+
"viewBox": "0 0 16 16"
|
|
8
|
+
},
|
|
9
|
+
"class": "design-iconfont"
|
|
10
|
+
}, [h("g", {
|
|
11
|
+
"attrs": {
|
|
12
|
+
"fill": "none",
|
|
13
|
+
"fill-rule": "evenodd"
|
|
14
|
+
}
|
|
15
|
+
}, [h("path", {
|
|
16
|
+
"attrs": {
|
|
17
|
+
"stroke": "#FFF",
|
|
18
|
+
"stroke-width": "2",
|
|
19
|
+
"fill": "#00E173",
|
|
20
|
+
"d": "M8 1A7 7 0 1 0 8 15A7 7 0 1 0 8 1Z"
|
|
21
|
+
}
|
|
22
|
+
}), h("path", {
|
|
23
|
+
"attrs": {
|
|
24
|
+
"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",
|
|
25
|
+
"fill": "#FFF"
|
|
26
|
+
}
|
|
27
|
+
})])]);
|
|
28
|
+
}
|
|
29
|
+
};
|
package/lib/checkbox/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-left:12px}.zt-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt-checkbox__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-checkbox__icon--round .zt-icon{border-radius:100%}.zt-checkbox__icon--checked .zt-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-checkbox__label{margin-left:8px;color:#000;font-size:14px
|
|
1
|
+
.zt-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;-webkit-box-align:center;-webkit-align-items:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-left:12px}.zt-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt-checkbox__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-checkbox__icon--round .zt-icon{border-radius:100%}.zt-checkbox__icon--checked .zt-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-checkbox__label{margin-left:8px;color:#000;font-size:14px}.zt-checkbox__label--left{margin:0 8px 0 0}.zt-checkbox__label--disabled{color:#c8c9cc}
|
package/lib/checkbox/index.less
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
.zt-checkbox {
|
|
4
4
|
display: flex;
|
|
5
5
|
overflow: hidden;
|
|
6
|
+
align-items: center;
|
|
6
7
|
cursor: pointer;
|
|
7
8
|
user-select: none;
|
|
8
9
|
padding: @checkbox-padding;
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
margin-left: @checkbox-label-margin;
|
|
75
76
|
color: @black;
|
|
76
77
|
font-size: @checkbox-label-font-size;
|
|
77
|
-
line-height: @checkbox-size;
|
|
78
|
+
//line-height: @checkbox-size;
|
|
78
79
|
|
|
79
80
|
&--left {
|
|
80
81
|
margin: 0 @checkbox-label-margin 0 0;
|