zartui 2.0.8 → 2.0.10
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/collapse-item/index.css +1 -1
- package/es/dialog/Dialog.js +8 -2
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +6 -0
- package/es/hierarchy-select/breadcrumb.js +2 -2
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.js +1 -1
- package/es/hierarchy-select/index.less +85 -56
- package/es/hierarchy-select/markList.js +24 -19
- package/es/index.js +4 -3
- package/es/pdf-viewer-v2/index.css +1 -0
- package/es/pdf-viewer-v2/index.js +333 -0
- package/es/pdf-viewer-v2/index.less +44 -0
- package/es/pdf-viewer-v2/style/index.js +10 -0
- package/es/pdf-viewer-v2/style/less.js +10 -0
- package/es/style/var.less +2 -2
- package/lib/collapse-item/index.css +1 -1
- package/lib/dialog/Dialog.js +8 -2
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.less +6 -0
- package/lib/hierarchy-select/breadcrumb.js +2 -2
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.js +1 -1
- package/lib/hierarchy-select/index.less +85 -56
- package/lib/hierarchy-select/markList.js +24 -19
- package/lib/index.css +1 -1
- package/lib/index.js +6 -2
- package/lib/index.less +1 -0
- package/lib/pdf-viewer-v2/index.css +1 -0
- package/lib/pdf-viewer-v2/index.js +345 -0
- package/lib/pdf-viewer-v2/index.less +44 -0
- package/lib/pdf-viewer-v2/style/index.js +10 -0
- package/lib/pdf-viewer-v2/style/less.js +10 -0
- package/lib/style/var.less +2 -2
- package/lib/zart.js +12753 -11503
- package/lib/zart.min.js +11 -11
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-collapse-item{position:relative}.zt-collapse-item__container{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:#fff}.zt-collapse-item__container .zt-cell{padding-left:12px}.zt-collapse-item__bar{width:4px;height:16px;background:#0091fa}.zt-collapse-item__title--iconWhite .zt-icon::before{color:#fff!important}.zt-collapse-item__title .zt-cell__title{font-weight:700;font-family:PingFangSC-Semibold}.zt-collapse-item__title .zt-cell__right-icon::before{-webkit-transform:rotate(90deg) translateZ(0);transform:rotate(90deg) translateZ(0);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;color:rgba(0,0,0,.2)}.zt-collapse-item__title::after{right:16px;display:none}.zt-collapse-item__title--expanded .zt-cell__right-icon::before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);color:#0091fa}.zt-collapse-item__title--expanded::after{display:block}.zt-collapse-item__title--borderless::after{display:none}.zt-collapse-item__title--disabled{cursor:not-allowed}.zt-collapse-item__title--disabled,.zt-collapse-item__title--disabled .zt-cell__right-icon{color:#c8c9cc}.zt-collapse-item__title--disabled:active{background-color:#fff}.zt-collapse-item__wrapper{overflow:hidden;-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out;will-change:height}.zt-collapse-item__content{color:#000;font-size:14px;line-height:20px;background-color
|
|
1
|
+
.zt-collapse-item{position:relative}.zt-collapse-item__container{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:#fff}.zt-collapse-item__container .zt-cell{padding-left:12px}.zt-collapse-item__bar{width:4px;height:16px;background:#0091fa}.zt-collapse-item__title--iconWhite .zt-icon::before{color:#fff!important}.zt-collapse-item__title .zt-cell__title{font-weight:700;font-family:PingFangSC-Semibold}.zt-collapse-item__title .zt-cell__right-icon::before{-webkit-transform:rotate(90deg) translateZ(0);transform:rotate(90deg) translateZ(0);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;color:rgba(0,0,0,.2)}.zt-collapse-item__title::after{right:16px;display:none}.zt-collapse-item__title--expanded .zt-cell__right-icon::before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);color:#0091fa}.zt-collapse-item__title--expanded::after{display:block}.zt-collapse-item__title--borderless::after{display:none}.zt-collapse-item__title--disabled{cursor:not-allowed}.zt-collapse-item__title--disabled,.zt-collapse-item__title--disabled .zt-cell__right-icon{color:#c8c9cc}.zt-collapse-item__title--disabled:active{background-color:#fff}.zt-collapse-item__wrapper{overflow:hidden;-webkit-transition:height .3s ease-in-out;transition:height .3s ease-in-out;will-change:height}.zt-collapse-item__content{color:#000;font-size:14px;line-height:20px;background-color:transparent}
|
package/es/dialog/Dialog.js
CHANGED
|
@@ -102,7 +102,11 @@ export default createComponent({
|
|
|
102
102
|
var _this2 = this;
|
|
103
103
|
|
|
104
104
|
var h = this.$createElement;
|
|
105
|
-
|
|
105
|
+
|
|
106
|
+
if (!this.showCancelButton && !this.showConfirmButton) {
|
|
107
|
+
return "";
|
|
108
|
+
}
|
|
109
|
+
|
|
106
110
|
return h("div", {
|
|
107
111
|
"class": bem('footer')
|
|
108
112
|
}, [this.showCancelButton && h(Button, {
|
|
@@ -206,7 +210,9 @@ export default createComponent({
|
|
|
206
210
|
"role": "dialog",
|
|
207
211
|
"aria-labelledby": this.title || message
|
|
208
212
|
},
|
|
209
|
-
"class": [bem([this.theme]), this.className
|
|
213
|
+
"class": [bem([this.theme]), this.className, {
|
|
214
|
+
"has-button": this.showCancelButton || this.showConfirmButton
|
|
215
|
+
}],
|
|
210
216
|
"style": {
|
|
211
217
|
width: addUnit(this.width)
|
|
212
218
|
}
|
package/es/dialog/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-dialog{position:fixed;top:45%;left:50%;width:327px;overflow:hidden;font-size:16px;background-color:#fff;border-radius:12px;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:.3s;transition:.3s;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform}@media (max-width:328px){.zt-dialog{width:90%}}.zt-dialog__header{padding-top:24px;font-weight:700;line-height:24px;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding-left:16px;padding-right:16px}.zt-dialog__header--isolated{padding:24px 0}.zt-dialog__header--custom-title{height:44px;padding-left:0;padding-right:0;padding-top:0}.zt-dialog__content{text-align:center;word-break:break-all}.zt-dialog__content--isolated{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;min-height:100px}.zt-dialog__message{max-height:60vh;padding:24px 16px;overflow-y:auto;font-size:16px;line-height:20px;color:rgba(0,0,0,.6);display:inline-block;text-align:left;white-space:pre-wrap;word-wrap:break-word;-webkit-overflow-scrolling:touch}.zt-dialog__message--has-title{padding-top:8px;font-size:14px}.zt-dialog__message--left{text-align:left}.zt-dialog__message--right{text-align:right}.zt-dialog__footer{overflow:hidden;-webkit-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:44px;padding:
|
|
1
|
+
.zt-dialog{position:fixed;top:45%;left:50%;width:327px;overflow:hidden;font-size:16px;background-color:#fff;border-radius:12px;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:.3s;transition:.3s;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform}@media (max-width:328px){.zt-dialog{width:90%}}.zt-dialog__header{padding-top:24px;font-weight:700;line-height:24px;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding-left:16px;padding-right:16px}.zt-dialog__header--isolated{padding:24px 0}.zt-dialog__header--custom-title{height:44px;padding-left:0;padding-right:0;padding-top:0}.zt-dialog__content{text-align:center;word-break:break-all}.zt-dialog__content--isolated{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;min-height:100px}.zt-dialog.has-button .zt-dialog__message{padding-bottom:0}.zt-dialog__message{max-height:60vh;padding:24px 16px;overflow-y:auto;font-size:16px;line-height:20px;color:rgba(0,0,0,.6);display:inline-block;text-align:left;white-space:pre-wrap;word-wrap:break-word;-webkit-overflow-scrolling:touch}.zt-dialog__message--has-title{padding-top:8px;font-size:14px}.zt-dialog__message--left{text-align:left}.zt-dialog__message--right{text-align:right}.zt-dialog__footer{overflow:hidden;-webkit-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:44px;padding:24px 32px;position:relative;box-sizing:content-box}.zt-dialog-bounce-enter{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.zt-dialog-bounce-leave-active{-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}
|
package/es/dialog/index.less
CHANGED
|
@@ -55,12 +55,12 @@ export default createComponent({
|
|
|
55
55
|
"class": bem("crumb-item")
|
|
56
56
|
}, [h(Icon, {
|
|
57
57
|
"attrs": {
|
|
58
|
-
"name": "arrow"
|
|
58
|
+
"name": "arrow-right"
|
|
59
59
|
},
|
|
60
60
|
"class": bem("icon-arrow")
|
|
61
61
|
}), h("span", {
|
|
62
62
|
"style": {
|
|
63
|
-
color: index === _this.data.length - 1 ? '' : '#0091fa'
|
|
63
|
+
color: index === _this.data.length - 1 ? '#2D4B73' : '#0091fa'
|
|
64
64
|
},
|
|
65
65
|
"on": {
|
|
66
66
|
"click": function click() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-hierarchy-select__popup{height:100%}.zt-hierarchy-select__popup .zt-hierarchy-select{background-color:#
|
|
1
|
+
.zt-hierarchy-select__popup{height:100%}.zt-hierarchy-select__popup .zt-hierarchy-select{background-color:#f5faff;height:100%}.zt-hierarchy-select__popup .zt-hierarchy-select__title{height:44px;margin-bottom:12px;position:relative}.zt-hierarchy-select__popup .zt-hierarchy-select__title i{font-size:24px;position:absolute;left:16px;top:10px;color:#969799}.zt-hierarchy-select__popup .zt-hierarchy-select__title div{line-height:44px;text-align:center;font-weight:700;font-size:18px;color:#2d4b73}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-core .zt-loading{position:absolute;top:50%;left:50%;margin-left:-18px;margin-right:-18px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-core__list span{height:24px;font-size:16px;font-family:PingFangSC,PingFangSC-Semibold;font-weight:600;color:#0091fa;line-height:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-core__list .flex{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;padding:10px 0}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__indicator-crumb-list{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 16px;overflow-x:auto}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__indicator-crumb-list span{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;white-space:nowrap;height:24px;font-size:14px;font-weight:400;font-family:PingFangSC,PingFangSC-Regular;text-align:left;line-height:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__icon-arrow{margin:0 4px;width:20px;height:20px;font-size:20px;color:#2d4b73;opacity:.4}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__crumb-item{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__fill-blur{position:absolute;top:0;width:16px;height:44px;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,0)),to(#fff))}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-select-breadcrumb__fill-blur:last-child{right:0;top:0;background:-webkit-gradient(linear,right top,left top,from(#fff),to(rgba(255,255,255,0)))}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list{background-color:#fff}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__multiple-button{display:-webkit-box;display:-webkit-flex;display:flex;margin-right:8px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__select-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;text-align:center;border-radius:100%;font-size:22px;cursor:pointer}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__select-icon--normal{color:transparent;background-image:-webkit-linear-gradient(315deg,#e6ebf0 0,#fff 100%);background-image:linear-gradient(135deg,#e6ebf0 0,#fff 100%);border:1px solid rgba(45,75,115,.13);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2)}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__select-icon--checked{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-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__score-item{position:relative;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;padding:10px 0;background-color:#fff;margin-left:16px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__score-item:after{content:" ";position:absolute;bottom:0;height:1px;width:100%;background-color:rgba(0,0,0,.1);box-shadow:0 0 0 0 #000 inset}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__item-content{-webkit-box-flex:1;-webkit-flex:1;flex:1;margin-right:8px;width:278px;font-size:14px;font-family:PingFangSC,PingFangSC-Regular;font-weight:400;text-align:left;color:#2d4b73;line-height:24px;word-break:break-all}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__item-nav{padding:0 16px;border-left:rgba(45,75,115,.1) 1px solid;box-shadow:inset 0 0 0 0 #2d4b73}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-level{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-level span{font-size:14px;color:#0091fa}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-level--disable{opacity:.2}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__sub-icon{margin-right:4px;font-size:0;width:20px;height:20px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__result-box{position:fixed;left:0;bottom:0;background:#fff;width:100%}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__result-list{height:160px;background:#fff;box-shadow:0 -4px 8px 0 rgba(45,75,115,.1);border-radius:16px 16px 0 0;padding:12px 16px;font-size:14px;color:#2d4b73;line-height:24px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__operate-box{display:-webkit-box;display:-webkit-flex;display:flex;height:44px;line-height:44px;padding:8px 16px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding-right:8px;width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:44px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected i{color:#0091fa;font-size:20px;margin-right:4px}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected span{font-size:14px;color:rgba(0,0,0,.6);-webkit-flex-shrink:0;flex-shrink:0}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__selected span.zt-hierarchy-mark-list__blue{color:#0091fa;margin-left:8px;-webkit-flex-shrink:1;flex-shrink:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__reset-button{-webkit-box-flex:1;-webkit-flex:1;flex:1;background:#fff;border-radius:22px;border:1px solid rgba(45,75,115,.2);font-weight:400;font-size:16px;color:#2d4b73;text-align:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__cancel-button{-webkit-box-flex:1;-webkit-flex:1;flex:1;background:#fff;border-radius:22px;border:1px solid rgba(45,75,115,.2);font-weight:400;font-size:16px;color:#2d4b73;text-align:center}.zt-hierarchy-select__popup .zt-hierarchy-select .zt-hierarchy-mark-list__confirm-button{-webkit-box-flex:1;-webkit-flex:1;flex:1;margin-left:8px;font-weight:400;font-size:16px;color:#fff;text-align:center;background-image:-webkit-linear-gradient(135deg,#3cafff 0,#0091fa 100%);background-image:linear-gradient(-45deg,#3cafff 0,#0091fa 100%);border-radius:22px}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
1
3
|
.zt-hierarchy-select__popup {
|
|
2
4
|
height: 100%;
|
|
3
5
|
.zt-hierarchy-select {
|
|
4
|
-
background-color:
|
|
6
|
+
background-color: @background-color;
|
|
5
7
|
height: 100%;
|
|
6
8
|
&__title {
|
|
7
9
|
height: 44px;
|
|
10
|
+
margin-bottom: 12px;
|
|
8
11
|
position: relative;
|
|
9
|
-
background-color: #fff;
|
|
10
|
-
border-bottom: 1px solid rgba(0,0,0,.1);
|
|
11
12
|
i {
|
|
12
|
-
font-size:
|
|
13
|
+
font-size: 24px;
|
|
13
14
|
position: absolute;
|
|
14
|
-
left:
|
|
15
|
-
top:
|
|
15
|
+
left: 16px;
|
|
16
|
+
top: 10px;
|
|
17
|
+
color: @gray-6;
|
|
16
18
|
}
|
|
17
19
|
div {
|
|
18
20
|
line-height: 44px;
|
|
19
21
|
text-align: center;
|
|
20
22
|
font-weight: bold;
|
|
21
23
|
font-size: 18px;
|
|
22
|
-
color:
|
|
24
|
+
color: @text-color-3;
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
.zt-hierarchy-select-core {
|
|
@@ -50,8 +52,6 @@
|
|
|
50
52
|
position: relative;
|
|
51
53
|
display: flex;
|
|
52
54
|
padding: 10px 0;
|
|
53
|
-
background-color: #fff;
|
|
54
|
-
margin-bottom: 16px;
|
|
55
55
|
&__indicator-crumb-list {
|
|
56
56
|
flex: 1;
|
|
57
57
|
display: flex;
|
|
@@ -63,17 +63,21 @@
|
|
|
63
63
|
align-items: center;
|
|
64
64
|
white-space: nowrap;
|
|
65
65
|
height: 24px;
|
|
66
|
-
font-size:
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
font-weight: 400;
|
|
67
68
|
font-family: PingFangSC, PingFangSC-Regular;
|
|
68
69
|
text-align: left;
|
|
69
|
-
color: #000;
|
|
70
70
|
line-height: 24px;
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
&__icon-arrow {
|
|
75
|
+
margin: 0 4px;
|
|
76
|
+
width: 20px;
|
|
77
|
+
height: 20px;
|
|
78
|
+
font-size: 20px;
|
|
79
|
+
color: @text-color-3;
|
|
80
|
+
opacity: 0.4;
|
|
77
81
|
}
|
|
78
82
|
&__crumb-item {
|
|
79
83
|
display: flex;
|
|
@@ -96,18 +100,33 @@
|
|
|
96
100
|
.zt-hierarchy-mark-list {
|
|
97
101
|
background-color: #fff;
|
|
98
102
|
&__multiple-button {
|
|
103
|
+
display: flex;
|
|
99
104
|
margin-right: 8px;
|
|
100
105
|
}
|
|
101
|
-
&
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
&__select-icon {
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
text-align: center;
|
|
111
|
+
border-radius: 100%;
|
|
112
|
+
font-size: 22px;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
|
|
115
|
+
&--normal {
|
|
116
|
+
color: transparent;
|
|
117
|
+
background-image: linear-gradient(135deg, #E6EBF0 0%, #FFF 100%);
|
|
118
|
+
border: 1px solid rgba(45, 75, 115, 0.13);
|
|
119
|
+
box-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 rgb(45 75 115 / 20%);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&--checked {
|
|
123
|
+
color: #fff;
|
|
124
|
+
background-color: #0091FA;
|
|
125
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
126
|
+
box-shadow: inset 1px 1px 2px 0 rgb(0 0 0 / 20%);
|
|
127
|
+
}
|
|
110
128
|
}
|
|
129
|
+
|
|
111
130
|
&__score-item {
|
|
112
131
|
position: relative;
|
|
113
132
|
display: flex;
|
|
@@ -128,27 +147,26 @@
|
|
|
128
147
|
}
|
|
129
148
|
&__item-content {
|
|
130
149
|
flex: 1;
|
|
131
|
-
margin-right:
|
|
150
|
+
margin-right: 8px;
|
|
132
151
|
width: 278px;
|
|
133
|
-
font-size:
|
|
152
|
+
font-size: 14px;
|
|
134
153
|
font-family: PingFangSC, PingFangSC-Regular;
|
|
135
154
|
font-weight: 400;
|
|
136
155
|
text-align: left;
|
|
137
|
-
color:
|
|
156
|
+
color: @text-color-3;
|
|
138
157
|
line-height: 24px;
|
|
139
158
|
word-break: break-all;
|
|
140
|
-
span {
|
|
141
|
-
color: #0091fa;
|
|
142
|
-
}
|
|
143
159
|
}
|
|
144
160
|
&__item-nav {
|
|
145
161
|
padding: 0 16px;
|
|
146
|
-
border-left: rgba(
|
|
162
|
+
border-left: rgba(45, 75, 115, 0.1) 1px solid;
|
|
163
|
+
box-shadow: inset 0 0 0 0 #2D4B73;
|
|
147
164
|
}
|
|
148
165
|
&__sub-level {
|
|
149
166
|
display: flex;
|
|
150
167
|
align-items: center;
|
|
151
168
|
span {
|
|
169
|
+
font-size: 14px;
|
|
152
170
|
color: #0091fa;
|
|
153
171
|
}
|
|
154
172
|
&--disable {
|
|
@@ -170,25 +188,30 @@
|
|
|
170
188
|
}
|
|
171
189
|
&__result-list {
|
|
172
190
|
height: 160px;
|
|
173
|
-
|
|
174
|
-
|
|
191
|
+
background: #FFFFFF;
|
|
192
|
+
box-shadow: 0 -4px 8px 0 rgba(45,75,115,0.10);
|
|
193
|
+
border-radius: 16px 16px 0 0;
|
|
194
|
+
border-radius: 16px 16px 0 0;
|
|
175
195
|
padding: 12px 16px;
|
|
176
196
|
font-size: 14px;
|
|
177
|
-
color: #
|
|
197
|
+
color: #2D4B73;
|
|
178
198
|
line-height: 24px;
|
|
179
199
|
}
|
|
180
200
|
&__operate-box {
|
|
181
201
|
display: flex;
|
|
182
202
|
height: 44px;
|
|
183
203
|
line-height: 44px;
|
|
204
|
+
padding: 8px 16px;
|
|
184
205
|
align-items: center;
|
|
185
206
|
}
|
|
186
207
|
&__selected {
|
|
187
|
-
border-top: 1px solid rgba(0,0,0,.1);
|
|
188
208
|
display: flex;
|
|
189
209
|
align-items: center;
|
|
190
|
-
padding:
|
|
191
|
-
|
|
210
|
+
padding-right: 8px;
|
|
211
|
+
width: 110px;
|
|
212
|
+
white-space: nowrap;
|
|
213
|
+
overflow: hidden;
|
|
214
|
+
text-overflow: ellipsis;
|
|
192
215
|
height: 44px;
|
|
193
216
|
i {
|
|
194
217
|
color: #0091fa;
|
|
@@ -198,41 +221,47 @@
|
|
|
198
221
|
span {
|
|
199
222
|
font-size: 14px;
|
|
200
223
|
color: rgba(0,0,0,.6);
|
|
224
|
+
flex-shrink: 0;
|
|
225
|
+
|
|
201
226
|
&.zt-hierarchy-mark-list__blue {
|
|
202
227
|
color: #0091fa;
|
|
203
|
-
margin-left: 8px
|
|
228
|
+
margin-left: 8px;
|
|
229
|
+
flex-shrink: 1;
|
|
230
|
+
white-space: nowrap;
|
|
231
|
+
overflow: hidden;
|
|
232
|
+
text-overflow: ellipsis;
|
|
204
233
|
}
|
|
205
234
|
}
|
|
206
235
|
}
|
|
207
|
-
&__line {
|
|
208
|
-
width: 1px;
|
|
209
|
-
height: 24px;
|
|
210
|
-
background: rgba(0,0,0,0.10);
|
|
211
|
-
transform: scaleX(0.5);
|
|
212
|
-
border-top: 1px solid rgba(0,0,0,.1);
|
|
213
|
-
}
|
|
214
236
|
&__reset-button {
|
|
215
|
-
|
|
216
|
-
|
|
237
|
+
flex: 1;
|
|
238
|
+
background: #FFFFFF;
|
|
239
|
+
border-radius: 22px;
|
|
240
|
+
border: 1px solid rgba(45,75,115,0.20);
|
|
241
|
+
font-weight: 400;
|
|
217
242
|
font-size: 16px;
|
|
218
|
-
color: #
|
|
243
|
+
color: #2D4B73;
|
|
219
244
|
text-align: center;
|
|
220
245
|
}
|
|
221
246
|
&__cancel-button {
|
|
222
|
-
|
|
223
|
-
|
|
247
|
+
flex: 1;
|
|
248
|
+
background: #FFFFFF;
|
|
249
|
+
border-radius: 22px;
|
|
250
|
+
border: 1px solid rgba(45,75,115,0.20);
|
|
251
|
+
font-weight: 400;
|
|
224
252
|
font-size: 16px;
|
|
225
|
-
color: #
|
|
253
|
+
color: #2D4B73;
|
|
226
254
|
text-align: center;
|
|
227
255
|
}
|
|
228
256
|
&__confirm-button {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
font-weight:
|
|
257
|
+
flex: 1;
|
|
258
|
+
margin-left: 8px;
|
|
259
|
+
font-weight: 400;
|
|
232
260
|
font-size: 16px;
|
|
233
261
|
color: #FFFFFF;
|
|
234
262
|
text-align: center;
|
|
235
|
-
background: #0091FA;
|
|
263
|
+
background-image: linear-gradient(-45deg, #3CAFFF 0%, #0091FA 100%);
|
|
264
|
+
border-radius: 22px;
|
|
236
265
|
}
|
|
237
266
|
}
|
|
238
267
|
}
|
|
@@ -66,14 +66,22 @@ export default createComponent({
|
|
|
66
66
|
},
|
|
67
67
|
getMultipleDom: function getMultipleDom(item) {
|
|
68
68
|
var h = this.$createElement;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
69
|
+
|
|
70
|
+
if (this.multiple) {
|
|
71
|
+
return h(Icon, {
|
|
72
|
+
"attrs": {
|
|
73
|
+
"name": "checkBox-select"
|
|
74
|
+
},
|
|
75
|
+
"class": bem("select-icon", this.getChecked(item) ? "checked" : "normal")
|
|
76
|
+
});
|
|
77
|
+
} else {
|
|
78
|
+
return h(Icon, {
|
|
79
|
+
"attrs": {
|
|
80
|
+
"name": "radio-round"
|
|
81
|
+
},
|
|
82
|
+
"class": bem("select-icon", this.getChecked(item) ? "checked" : "normal")
|
|
83
|
+
});
|
|
84
|
+
}
|
|
77
85
|
},
|
|
78
86
|
getChecked: function getChecked(item) {
|
|
79
87
|
var _this = this;
|
|
@@ -164,21 +172,20 @@ export default createComponent({
|
|
|
164
172
|
}, [this.dataList.map(function (item, index) {
|
|
165
173
|
return h("div", {
|
|
166
174
|
"class": bem("score-item")
|
|
167
|
-
}, [
|
|
175
|
+
}, [h("div", {
|
|
168
176
|
"class": bem("multiple-button"),
|
|
169
177
|
"on": {
|
|
170
178
|
"click": function click() {
|
|
171
179
|
_this4.multipleClicked(item);
|
|
172
180
|
}
|
|
173
181
|
}
|
|
174
|
-
}, [_this4.getMultipleDom(item)])
|
|
182
|
+
}, [_this4.getMultipleDom(item)]), h("div", {
|
|
175
183
|
"class": bem("item-content"),
|
|
176
184
|
"on": {
|
|
177
185
|
"click": function click() {
|
|
178
186
|
_this4.selected(item);
|
|
179
187
|
}
|
|
180
|
-
}
|
|
181
|
-
"style": !_this4.multiple && _this4.choosedValue === item[_this4.valueKey] ? 'color:#0091fa;' : ''
|
|
188
|
+
}
|
|
182
189
|
}, [item[_this4.textKey]]), h("div", {
|
|
183
190
|
"class": bem("item-nav"),
|
|
184
191
|
"on": {
|
|
@@ -191,7 +198,7 @@ export default createComponent({
|
|
|
191
198
|
}, [h(SubIcon, {
|
|
192
199
|
"class": bem("sub-icon")
|
|
193
200
|
}), h("span", ["\u4E0B\u7EA7"])]) : h()])]);
|
|
194
|
-
}),
|
|
201
|
+
}), h("div", {
|
|
195
202
|
"class": bem("result-box")
|
|
196
203
|
}, [this.showResultList ? h("div", {
|
|
197
204
|
"class": bem("result-list")
|
|
@@ -199,7 +206,7 @@ export default createComponent({
|
|
|
199
206
|
return v[_this4.textKey];
|
|
200
207
|
}).join("、") : ""]) : h(), h("div", {
|
|
201
208
|
"class": bem("operate-box")
|
|
202
|
-
}, [h("div", {
|
|
209
|
+
}, [this.multiple ? h("div", {
|
|
203
210
|
"class": bem("selected"),
|
|
204
211
|
"on": {
|
|
205
212
|
"click": function click() {
|
|
@@ -208,13 +215,11 @@ export default createComponent({
|
|
|
208
215
|
}
|
|
209
216
|
}, [h(Icon, {
|
|
210
217
|
"attrs": {
|
|
211
|
-
"name": this.showResultList ? "arrow-up" : "arrow-down"
|
|
218
|
+
"name": this.showResultList ? "keyboard-arrow-up" : "keyboard-arrow-down"
|
|
212
219
|
}
|
|
213
220
|
}), h("span", ["\u5DF2\u9009\u62E9"]), h("span", {
|
|
214
221
|
"class": bem("blue")
|
|
215
|
-
}, [this.checkedList.length])]), h("div", {
|
|
216
|
-
"class": bem("line")
|
|
217
|
-
}), h("div", {
|
|
222
|
+
}, [this.checkedList.length])]) : h(), h("div", {
|
|
218
223
|
"directives": [{
|
|
219
224
|
name: "show",
|
|
220
225
|
value: this.resetReplaceCancel
|
|
@@ -237,6 +242,6 @@ export default createComponent({
|
|
|
237
242
|
"on": {
|
|
238
243
|
"click": this.confirm
|
|
239
244
|
}
|
|
240
|
-
}, ["\u786E\u5B9A"])])])
|
|
245
|
+
}, ["\u786E\u5B9A"])])])]);
|
|
241
246
|
}
|
|
242
247
|
});
|
package/es/index.js
CHANGED
|
@@ -45,6 +45,7 @@ import NumberKeyboard from './number-keyboard';
|
|
|
45
45
|
import Overlay from './overlay';
|
|
46
46
|
import PasswordInput from './password-input';
|
|
47
47
|
import PdfViewer from './pdf-viewer';
|
|
48
|
+
import PdfViewerV2 from './pdf-viewer-v2';
|
|
48
49
|
import Picker from './picker';
|
|
49
50
|
import Popover from './popover';
|
|
50
51
|
import Popup from './popup';
|
|
@@ -75,10 +76,10 @@ import Tag from './tag';
|
|
|
75
76
|
import Timeline from './timeline';
|
|
76
77
|
import Toast from './toast';
|
|
77
78
|
import Uploader from './uploader';
|
|
78
|
-
var version = '2.0.
|
|
79
|
+
var version = '2.0.10';
|
|
79
80
|
|
|
80
81
|
function install(Vue) {
|
|
81
|
-
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, 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];
|
|
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];
|
|
82
83
|
components.forEach(function (item) {
|
|
83
84
|
if (item.install) {
|
|
84
85
|
Vue.use(item);
|
|
@@ -92,7 +93,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
92
93
|
install(window.Vue);
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
export { install, version, 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, 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 };
|
|
96
|
+
export { install, version, 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 };
|
|
96
97
|
export default {
|
|
97
98
|
install: install,
|
|
98
99
|
version: version
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.zt-pdf-viewer-v2{width:100%;height:100%;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.zt-pdf-viewer-v2__inner-container{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:scroll}.zt-pdf-viewer-v2::-webkit-scrollbar{width:0;height:0}.zt-pdf-viewer-v2__page-box{width:100%;height:44px;background-color:#fff;text-align:center;font-size:16px;line-height:44px}.zt-pdf-viewer-v2__page-box .zt-pdf-viewer-v2__next,.zt-pdf-viewer-v2__page-box .zt-pdf-viewer-v2__pre{cursor:pointer;color:#3a90f6}.zt-pdf-viewer-v2__page-box .zt-pdf-viewer-v2__page{margin:0 10px}.zt-pdf-viewer-v2 .zt-loading{position:absolute;top:50%;left:50%;margin-left:-18px;margin-top:-18px}
|