zartui 0.1.113 → 2.0.1
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/action-sheet/index.css +1 -1
- package/es/action-sheet/index.js +3 -3
- package/es/action-sheet/index.less +12 -8
- package/es/area/style/index.js +1 -0
- package/es/area/style/less.js +1 -0
- package/es/avatar/index.css +1 -1
- package/es/button/index.css +1 -1
- package/es/button/index.js +28 -13
- package/es/button/index.less +60 -27
- package/es/calendar/components/Header.js +1 -6
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.js +31 -8
- package/es/calendar/index.less +16 -10
- package/es/cell/index.css +1 -1
- package/es/cell/index.js +60 -38
- package/es/cell/index.less +67 -12
- package/es/cell/shared.js +2 -0
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.less +18 -6
- package/es/checkbox-group/index.js +1 -0
- package/es/datetime-picker/style/index.js +1 -0
- package/es/datetime-picker/style/less.js +1 -0
- package/es/field/index.css +1 -1
- package/es/field/index.js +80 -7
- package/es/field/index.less +60 -8
- package/es/icon/index.css +1 -1
- package/es/image/index.css +1 -1
- package/es/image-preview/ImagePreview.js +1 -1
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.less +4 -2
- package/es/index.js +1 -1
- package/es/loading/index.css +1 -1
- package/es/loading/index.js +3 -3
- package/es/loading/index.less +1 -1
- package/es/media-picker/image/PickFileIcon.js +2 -9
- package/es/media-picker/image/PickPhotoIcon.js +2 -9
- package/es/media-picker/image/TakeAudioIcon.js +2 -9
- package/es/media-picker/image/TakePhotoIcon.js +2 -9
- package/es/media-picker/image/TakeVideoIcon.js +2 -9
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/index.less +6 -4
- package/es/mixins/checkbox.js +12 -30
- package/es/multiple-picker/index.css +1 -1
- package/es/multiple-picker/index.js +18 -11
- package/es/multiple-picker/index.less +11 -5
- package/es/multiple-picker/style/index.js +1 -0
- package/es/multiple-picker/style/less.js +1 -0
- package/es/pdf-viewer/style/index.js +1 -0
- package/es/pdf-viewer/style/less.js +1 -0
- package/es/picker/index.css +1 -1
- package/es/picker/index.js +18 -9
- package/es/picker/index.less +18 -2
- package/es/picker/style/index.js +1 -0
- package/es/picker/style/less.js +1 -0
- package/es/popup/index.css +1 -1
- package/es/popup/index.js +1 -1
- package/es/popup/index.less +2 -2
- package/es/radio/index.css +1 -1
- package/es/radio/index.less +23 -22
- package/es/radio-group/index.js +1 -0
- package/es/signature/index.js +7 -6
- package/es/signature/index.less +1 -1
- package/es/step/index.css +1 -1
- package/es/step/index.js +3 -5
- package/es/step/index.less +3 -1
- package/es/stepper/index.css +1 -1
- package/es/steps/index.css +1 -1
- package/es/steps/index.less +3 -3
- package/es/style/reset.css +1 -1
- package/es/style/var.less +92 -53
- package/es/switch-cell/index.css +1 -1
- package/es/tabs/Title.js +6 -1
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.js +2 -4
- package/es/tabs/index.less +18 -15
- package/es/toast/index.css +1 -1
- package/es/uploader/index.css +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.js +3 -3
- package/lib/action-sheet/index.less +12 -8
- package/lib/area/style/index.js +1 -0
- package/lib/area/style/less.js +1 -0
- package/lib/avatar/index.css +1 -1
- package/lib/button/index.css +1 -1
- package/lib/button/index.js +28 -13
- package/lib/button/index.less +60 -27
- package/lib/calendar/components/Header.js +1 -6
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.js +31 -8
- package/lib/calendar/index.less +16 -10
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.js +60 -38
- package/lib/cell/index.less +67 -12
- package/lib/cell/shared.js +2 -0
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.less +18 -6
- package/lib/checkbox-group/index.js +1 -0
- package/lib/datetime-picker/style/index.js +1 -0
- package/lib/datetime-picker/style/less.js +1 -0
- package/lib/field/index.css +1 -1
- package/lib/field/index.js +80 -7
- package/lib/field/index.less +60 -8
- package/lib/icon/index.css +1 -1
- package/lib/image/index.css +1 -1
- package/lib/image-preview/ImagePreview.js +1 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.less +4 -2
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.js +3 -3
- package/lib/loading/index.less +1 -1
- package/lib/media-picker/image/PickFileIcon.js +2 -9
- package/lib/media-picker/image/PickPhotoIcon.js +2 -9
- package/lib/media-picker/image/TakeAudioIcon.js +2 -9
- package/lib/media-picker/image/TakePhotoIcon.js +2 -9
- package/lib/media-picker/image/TakeVideoIcon.js +2 -9
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.less +6 -4
- package/lib/mixins/checkbox.js +12 -30
- package/lib/multiple-picker/index.css +1 -1
- package/lib/multiple-picker/index.js +19 -11
- package/lib/multiple-picker/index.less +11 -5
- package/lib/multiple-picker/style/index.js +1 -0
- package/lib/multiple-picker/style/less.js +1 -0
- package/lib/pdf-viewer/style/index.js +1 -0
- package/lib/pdf-viewer/style/less.js +1 -0
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.js +19 -9
- package/lib/picker/index.less +18 -2
- package/lib/picker/style/index.js +1 -0
- package/lib/picker/style/less.js +1 -0
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +1 -1
- package/lib/popup/index.less +2 -2
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.less +23 -22
- package/lib/radio-group/index.js +1 -0
- package/lib/signature/index.js +7 -6
- package/lib/signature/index.less +1 -1
- package/lib/step/index.css +1 -1
- package/lib/step/index.js +3 -5
- package/lib/step/index.less +3 -1
- package/lib/stepper/index.css +1 -1
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.less +3 -3
- package/lib/style/reset.css +1 -1
- package/lib/style/var.less +92 -53
- package/lib/switch-cell/index.css +1 -1
- package/lib/tabs/Title.js +6 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.js +2 -4
- package/lib/tabs/index.less +18 -15
- package/lib/toast/index.css +1 -1
- package/lib/uploader/index.css +1 -1
- package/lib/zart.js +547 -450
- package/lib/zart.min.js +1 -1
- package/package.json +3 -3
package/lib/tabs/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-tab{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-
|
|
1
|
+
.zt-tab{position:relative;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;box-sizing:border-box;padding:0 16px;color:rgba(45,75,115,.6);font-size:14px;line-height:20px;cursor:pointer}.zt-tab--active{color:#2d4b73;font-weight:700;font-size:16px}.zt-tab--disabled{color:#c8c9cc;cursor:not-allowed}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper{position:relative}.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__wrap--scrollable .zt-tab{-webkit-box-flex:1;-webkit-flex:1 0 auto;flex:1 0 auto;padding:0 12px}.zt-tabs__wrap--scrollable .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__wrap--scrollable .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;background-color:#f5faff;-webkit-user-select:none;user-select:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:15px}.zt-tabs__nav--line.zt-tabs__nav--complete{padding-right:8px;padding-left:8px}.zt-tabs__nav--card{-webkit-box-flex:1;-webkit-flex:1;flex:1;margin:0 60px;-webkit-justify-content:space-around;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;height:32px;background:rgba(45,75,115,.04);box-shadow:inset 4px 4px 8px 0 rgba(45,75,115,.1);border-radius:16px}.zt-tabs__nav--card .zt-tab{color:#000}.zt-tabs__nav--card .zt-tab.zt-tab--active{height:24px;color:#fff;font-size:14px;background-image:-webkit-linear-gradient(top,#3cafff 0,#0091fa 100%);background-image:linear-gradient(180deg,#3cafff 0,#0091fa 100%);box-shadow:0 2px 4px 0 rgba(0,145,250,.24);border-radius:14px}.zt-tabs__nav--card .zt-tab--disabled{color:#c8c9cc}.zt-tabs__line{position:absolute;bottom:15px;left:0;z-index:1;width:12px;height:4px;background-color:#0091fa;border-radius:2px}.zt-tabs__track{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:44px}.zt-tabs--card>.zt-tabs__wrap{height:32px}
|
package/lib/tabs/index.js
CHANGED
|
@@ -219,11 +219,10 @@ var _default2 = createComponent({
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
var title = titles[_this4.currentIndex].$el;
|
|
222
|
-
var
|
|
223
|
-
lineHeight = _this4.lineHeight;
|
|
222
|
+
var lineHeight = _this4.lineHeight;
|
|
224
223
|
var left = title.offsetLeft + title.offsetWidth / 2;
|
|
225
224
|
var lineStyle = {
|
|
226
|
-
width:
|
|
225
|
+
// width: addUnit(title.offsetWidth),
|
|
227
226
|
backgroundColor: _this4.color,
|
|
228
227
|
transform: "translateX(" + left + "px) translateX(-50%)"
|
|
229
228
|
};
|
|
@@ -422,7 +421,6 @@ var _default2 = createComponent({
|
|
|
422
421
|
|
|
423
422
|
var Wrap = h("div", {
|
|
424
423
|
"ref": "wrap",
|
|
425
|
-
"style": wrapStyle,
|
|
426
424
|
"class": [bem('wrap', {
|
|
427
425
|
scrollable: scrollable
|
|
428
426
|
}), (_ref = {}, _ref[_constant.BORDER_TOP_BOTTOM] = type === 'line' && this.border, _ref)]
|
package/lib/tabs/index.less
CHANGED
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
.zt-tab {
|
|
5
5
|
position: relative;
|
|
6
6
|
display: flex;
|
|
7
|
-
flex: 1;
|
|
8
7
|
align-items: center;
|
|
9
8
|
justify-content: center;
|
|
10
9
|
box-sizing: border-box;
|
|
11
|
-
padding: 0 @padding-
|
|
12
|
-
color: @
|
|
10
|
+
padding: 0 @padding-md;
|
|
11
|
+
color: @text-color-1;
|
|
13
12
|
font-size: @tab-font-size;
|
|
14
13
|
line-height: @tab-line-height;
|
|
15
14
|
cursor: pointer;
|
|
@@ -17,6 +16,7 @@
|
|
|
17
16
|
&--active {
|
|
18
17
|
color: @tab-active-text-color;
|
|
19
18
|
font-weight: @font-weight-bold;
|
|
19
|
+
font-size: 16px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&--disabled {
|
|
@@ -74,7 +74,8 @@
|
|
|
74
74
|
&__nav {
|
|
75
75
|
position: relative;
|
|
76
76
|
display: flex;
|
|
77
|
-
|
|
77
|
+
justify-content: flex-start;
|
|
78
|
+
background-color: #f5faff;
|
|
78
79
|
user-select: none;
|
|
79
80
|
|
|
80
81
|
&--line {
|
|
@@ -89,26 +90,27 @@
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
&--card {
|
|
93
|
+
flex: 1;
|
|
94
|
+
margin: 0 60px;
|
|
95
|
+
justify-content: space-around;
|
|
96
|
+
align-items: center;
|
|
92
97
|
box-sizing: border-box;
|
|
93
98
|
height: @tabs-card-height;
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
background: rgba(45,75,115,0.04);
|
|
100
|
+
box-shadow: inset 4px 4px 8px 0 rgba(45,75,115,0.10);
|
|
101
|
+
border-radius: 16px;
|
|
96
102
|
|
|
97
|
-
&::after {
|
|
98
|
-
.hairline-surround(rgba(0, 0, 0, 0.2))
|
|
99
|
-
}
|
|
100
103
|
|
|
101
104
|
.zt-tab {
|
|
102
105
|
color: @black;
|
|
103
106
|
|
|
104
|
-
&:not(:last-child)::after {
|
|
105
|
-
.hairline-right(rgba(0, 0, 0, 0.2))
|
|
106
|
-
}
|
|
107
|
-
|
|
108
107
|
&.zt-tab--active {
|
|
108
|
+
height: 24px;
|
|
109
109
|
color: @white;
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
font-size: @tab-font-size;
|
|
111
|
+
background-image: linear-gradient(180deg, #3CAFFF 0%, #0091FA 100%);
|
|
112
|
+
box-shadow: 0 2px 4px 0 rgba(0,145,250,0.24);
|
|
113
|
+
border-radius: 14px;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
&--disabled {
|
|
@@ -126,6 +128,7 @@
|
|
|
126
128
|
width: @tabs-bottom-bar-width;
|
|
127
129
|
height: @tabs-bottom-bar-height;
|
|
128
130
|
background-color: @tabs-bottom-bar-color;
|
|
131
|
+
border-radius: 2px;
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
&__track {
|
package/lib/toast/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-toast{position:fixed;top:50%;left:50%;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;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;width:88px;max-width:70%;min-height:84px;padding:16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-break:break-all;background-color:rgba(
|
|
1
|
+
.zt-toast{position:fixed;top:50%;left:50%;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;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;width:88px;max-width:70%;min-height:84px;padding:16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-break:break-all;background-color:rgba(45,75,115,.8);border-radius:8px;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.zt-toast--unclickable{overflow:hidden}.zt-toast--unclickable *{pointer-events:none}.zt-toast--html,.zt-toast--text{width:-webkit-fit-content;width:fit-content;min-width:96px;min-height:0;padding:8px 12px}.zt-toast--html .zt-toast__text,.zt-toast--text .zt-toast__text{margin-top:0}.zt-toast--top{top:20%}.zt-toast--bottom{top:auto;bottom:20%}.zt-toast__icon{font-size:36px}.zt-toast__loading{padding:4px;color:#fff}.zt-toast__text{margin-top:4px}.zt-toast--fail svg,.zt-toast--success svg{width:36px;height:36px}
|
package/lib/uploader/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-uploader{position:relative;display:inline-block}.zt-uploader__wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.zt-uploader__wrapper--disabled{opacity:.4}.zt-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.zt-uploader__input-wrapper{position:relative}.zt-uploader__input:disabled{cursor:not-allowed}.zt-uploader__upload{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;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:80px;height:80px;margin:0 8px 8px 0;background-color:#f5f5fa}.zt-uploader__upload:active{background-color:rgba(0,0,0,.04)}.zt-uploader__upload--readonly:active{background-color:#f5f5fa}.zt-uploader__upload-icon{color:#dcdee0;font-size:24px}.zt-uploader__upload-text{margin-top:8px;color:#969799;font-size:12px}.zt-uploader__preview{position:relative;margin:0 8px 8px 0;cursor:pointer}.zt-uploader__preview-image{display:block;width:80px;height:80px;overflow:hidden}.zt-uploader__preview-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 12px}.zt-uploader__preview-delete-icon{position:absolute;top:-2px;right:-2px;color:#fff;font-size:16px;-webkit-transform:scale(.5);transform:scale(.5)}.zt-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.zt-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;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;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#fff;background-color:rgba(50,50,51,.88)}.zt-uploader__mask-icon{font-size:22px}.zt-uploader__mask-message{margin-top:6px;padding:0 4px;font-size:12px;line-height:14px}.zt-uploader__loading{width:22px;height:22px;color:#fff}.zt-uploader__file{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;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:80px;height:80px;background-color:#
|
|
1
|
+
.zt-uploader{position:relative;display:inline-block}.zt-uploader__wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.zt-uploader__wrapper--disabled{opacity:.4}.zt-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.zt-uploader__input-wrapper{position:relative}.zt-uploader__input:disabled{cursor:not-allowed}.zt-uploader__upload{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;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:80px;height:80px;margin:0 8px 8px 0;background-color:#f5f5fa}.zt-uploader__upload:active{background-color:rgba(0,0,0,.04)}.zt-uploader__upload--readonly:active{background-color:#f5f5fa}.zt-uploader__upload-icon{color:#dcdee0;font-size:24px}.zt-uploader__upload-text{margin-top:8px;color:#969799;font-size:12px}.zt-uploader__preview{position:relative;margin:0 8px 8px 0;cursor:pointer}.zt-uploader__preview-image{display:block;width:80px;height:80px;overflow:hidden}.zt-uploader__preview-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 12px}.zt-uploader__preview-delete-icon{position:absolute;top:-2px;right:-2px;color:#fff;font-size:16px;-webkit-transform:scale(.5);transform:scale(.5)}.zt-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.zt-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;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;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;color:#fff;background-color:rgba(50,50,51,.88)}.zt-uploader__mask-icon{font-size:22px}.zt-uploader__mask-message{margin-top:6px;padding:0 4px;font-size:12px;line-height:14px}.zt-uploader__loading{width:22px;height:22px;color:#fff}.zt-uploader__file{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;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:80px;height:80px;background-color:#f5faff}.zt-uploader__file-icon{color:#646566;font-size:20px}.zt-uploader__file-name{box-sizing:border-box;width:100%;margin-top:8px;padding:0 4px;color:#646566;font-size:12px;text-align:center}
|