zartui 1.0.2 → 2.0.2
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 +62 -40
- 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 -15
- 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 +94 -9
- package/es/field/index.less +81 -11
- package/es/hierarchy-select/hierarchySelect.js +1 -8
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.js +6 -14
- package/es/hierarchy-select/index.less +4 -5
- package/es/hierarchy-select/markList.js +1 -16
- 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 +3 -4
- 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.js +22 -17
- package/es/media-picker/index.less +6 -4
- package/es/media-picker/style/index.js +4 -0
- package/es/media-picker/style/less.js +4 -0
- 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 -7
- 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 +120 -49
- package/es/popup/index.less +31 -2
- package/es/radio/index.css +1 -1
- package/es/radio/index.less +24 -29
- package/es/radio-group/index.js +1 -0
- package/es/search/index.css +1 -1
- package/es/search/index.js +1 -1
- package/es/search/index.less +31 -3
- 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 +106 -62
- 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 +62 -40
- 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 -15
- 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 +94 -9
- package/lib/field/index.less +81 -11
- package/lib/hierarchy-select/hierarchySelect.js +1 -8
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.js +6 -15
- package/lib/hierarchy-select/index.less +4 -5
- package/lib/hierarchy-select/markList.js +1 -16
- 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 +2 -6
- package/lib/index.less +3 -4
- 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.js +22 -11
- package/lib/media-picker/index.less +6 -4
- package/lib/media-picker/style/index.js +4 -0
- package/lib/media-picker/style/less.js +4 -0
- 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 -7
- 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 +120 -49
- package/lib/popup/index.less +31 -2
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.less +24 -29
- package/lib/radio-group/index.js +1 -0
- package/lib/search/index.css +1 -1
- package/lib/search/index.js +1 -1
- package/lib/search/index.less +31 -3
- 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 +106 -62
- 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 +1199 -2181
- package/lib/zart.min.js +4 -4
- package/package.json +5 -6
- package/es/pdf-viewer-v2/index.css +0 -1
- package/es/pdf-viewer-v2/index.js +0 -231
- package/es/pdf-viewer-v2/index.less +0 -40
- package/es/pdf-viewer-v2/style/index.js +0 -8
- package/es/pdf-viewer-v2/style/less.js +0 -8
- package/lib/pdf-viewer-v2/index.css +0 -1
- package/lib/pdf-viewer-v2/index.js +0 -242
- package/lib/pdf-viewer-v2/index.less +0 -40
- package/lib/pdf-viewer-v2/style/index.js +0 -8
- package/lib/pdf-viewer-v2/style/less.js +0 -8
package/lib/picker/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[class*=zt-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid rgba(0,0,0,.1);-webkit-transform:scale(.5);transform:scale(.5)}.zt-hairline,.zt-hairline--bottom,.zt-hairline--left,.zt-hairline--right,.zt-hairline--surround,.zt-hairline--top,.zt-hairline--top-bottom{position:relative}.zt-hairline--top::after{border-top-width:1px}.zt-hairline--left::after{border-left-width:1px}.zt-hairline--right::after{border-right-width:1px}.zt-hairline--bottom::after{border-bottom-width:1px}.zt-hairline--top-bottom::after,.zt-hairline-unset--top-bottom::after{border-width:1px 0}.zt-hairline--surround::after{border-width:1px}.zt-picker{position:relative;background-color:#fff;-webkit-user-select:none;user-select:none}.zt-picker__toolbar{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}.zt-picker__border{position:relative}.zt-picker__border::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-picker__cancel,.zt-picker__confirm{height:100%;padding:0 16px;font-size:
|
|
1
|
+
[class*=zt-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid rgba(0,0,0,.1);-webkit-transform:scale(.5);transform:scale(.5)}.zt-hairline,.zt-hairline--bottom,.zt-hairline--left,.zt-hairline--right,.zt-hairline--surround,.zt-hairline--top,.zt-hairline--top-bottom{position:relative}.zt-hairline--top::after{border-top-width:1px}.zt-hairline--left::after{border-left-width:1px}.zt-hairline--right::after{border-right-width:1px}.zt-hairline--bottom::after{border-bottom-width:1px}.zt-hairline--top-bottom::after,.zt-hairline-unset--top-bottom::after{border-width:1px 0}.zt-hairline--surround::after{border-width:1px}.zt-picker{position:relative;background-color:#fff;-webkit-user-select:none;user-select:none}.zt-picker__toolbar{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:8px 16px 8px 16px;border-top:1px solid rgba(45,75,115,.1);position:relative}.zt-picker__border{position:relative}.zt-picker__border::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-picker__cancel,.zt-picker__confirm{height:100%;padding:0 16px;font-size:14px;background-color:transparent;border:none;cursor:pointer}.zt-picker__cancel:active,.zt-picker__confirm:active{opacity:.7}.zt-picker__confirm{color:#0091fa;font-weight:700}.zt-picker__cancel{color:#000;font-weight:400}.zt-picker__title{font-weight:400;font-size:14px;line-height:20px;text-align:center;color:#2d4b73;opacity:.4;padding:12px 0;border-bottom:1px solid rgba(45,75,115,.1)}.zt-picker__header{width:100%;height:40px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:14px;font-weight:400}.zt-picker__header>li{-webkit-box-flex:1;-webkit-flex:auto;flex:auto;text-align:center}.zt-picker__columns{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;cursor:grab}.zt-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;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;color:#0091fa;background-color:rgba(255,255,255,.9)}.zt-picker__frame{position:absolute;top:50%;right:16px;left:16px;z-index:2;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.zt-picker__background{position:absolute;width:100%;height:100%;opacity:.04;background-color:#000}.zt-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:-webkit-linear-gradient(top,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),-webkit-linear-gradient(bottom,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-image:linear-gradient(180deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),linear-gradient(0deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-repeat:no-repeat;background-position:top,bottom;-webkit-transform:translateZ(0);transform:translateZ(0);pointer-events:none}.zt-picker-column{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;font-size:14px}.zt-picker-column__wrapper{-webkit-transition-timing-function:cubic-bezier(.23,1,.68,1);transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-picker-column__item{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;padding:0 4px;color:#000}.zt-picker-column__item--disabled{cursor:not-allowed;opacity:.3}.zt-picker-column__item--selected{font-weight:700}
|
package/lib/picker/index.js
CHANGED
|
@@ -21,6 +21,8 @@ var _PickerColumn = _interopRequireDefault(require("./PickerColumn"));
|
|
|
21
21
|
|
|
22
22
|
var _popup = _interopRequireDefault(require("../popup"));
|
|
23
23
|
|
|
24
|
+
var _button = _interopRequireDefault(require("../button"));
|
|
25
|
+
|
|
24
26
|
var _popup2 = require("../mixins/popup");
|
|
25
27
|
|
|
26
28
|
// Utils
|
|
@@ -53,7 +55,7 @@ var _default2 = createComponent({
|
|
|
53
55
|
},
|
|
54
56
|
toolbarPosition: {
|
|
55
57
|
type: String,
|
|
56
|
-
default: '
|
|
58
|
+
default: 'bottom'
|
|
57
59
|
},
|
|
58
60
|
valueKey: {
|
|
59
61
|
type: String,
|
|
@@ -337,11 +339,15 @@ var _default2 = createComponent({
|
|
|
337
339
|
},
|
|
338
340
|
genCancel: function genCancel() {
|
|
339
341
|
var h = this.$createElement;
|
|
340
|
-
return h(
|
|
342
|
+
return h(_button.default, {
|
|
341
343
|
"attrs": {
|
|
342
|
-
"
|
|
344
|
+
"size": "normal",
|
|
345
|
+
"block": true
|
|
346
|
+
},
|
|
347
|
+
"style": {
|
|
348
|
+
marginRigth: "4px",
|
|
349
|
+
backgroundColor: "white"
|
|
343
350
|
},
|
|
344
|
-
"class": bem('cancel'),
|
|
345
351
|
"on": {
|
|
346
352
|
"click": this.cancel
|
|
347
353
|
}
|
|
@@ -349,11 +355,15 @@ var _default2 = createComponent({
|
|
|
349
355
|
},
|
|
350
356
|
genConfirm: function genConfirm() {
|
|
351
357
|
var h = this.$createElement;
|
|
352
|
-
return h(
|
|
358
|
+
return h(_button.default, {
|
|
353
359
|
"attrs": {
|
|
354
|
-
"type": "
|
|
360
|
+
"type": "primary",
|
|
361
|
+
"size": "normal",
|
|
362
|
+
"block": true
|
|
363
|
+
},
|
|
364
|
+
"style": {
|
|
365
|
+
marginLeft: "4px"
|
|
355
366
|
},
|
|
356
|
-
"class": bem('confirm'),
|
|
357
367
|
"on": {
|
|
358
368
|
"click": this.confirm
|
|
359
369
|
}
|
|
@@ -365,7 +375,7 @@ var _default2 = createComponent({
|
|
|
365
375
|
if (this.showToolbar) {
|
|
366
376
|
return h("div", {
|
|
367
377
|
"class": bem('toolbar')
|
|
368
|
-
}, [this.slots() || [this.genCancel(), this.
|
|
378
|
+
}, [this.slots() || [this.genCancel(), this.genConfirm()]]);
|
|
369
379
|
}
|
|
370
380
|
},
|
|
371
381
|
genHeaders: function genHeaders() {
|
|
@@ -454,7 +464,7 @@ var _default2 = createComponent({
|
|
|
454
464
|
}, [h("div", {
|
|
455
465
|
"class": bem(),
|
|
456
466
|
"ref": 'columnParent'
|
|
457
|
-
}, [this.toolbarPosition === 'top' ? this.genToolbar() : h(), this.toolbarPosition === 'top' ? h("div", {
|
|
467
|
+
}, [this.toolbarPosition === 'top' ? this.genToolbar() : h(), this.toolbarPosition === 'top' ? h() : this.genTitle(), this.toolbarPosition === 'top' ? h("div", {
|
|
458
468
|
"class": bem('border')
|
|
459
469
|
}) : h(), this.loading ? h(_loading.default, {
|
|
460
470
|
"class": bem('loading')
|
package/lib/picker/index.less
CHANGED
|
@@ -11,6 +11,20 @@
|
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: space-between;
|
|
13
13
|
height: @picker-toolbar-height;
|
|
14
|
+
padding: 8px 16px 8px 16px;
|
|
15
|
+
border-top: 1px solid rgba(45,75,115,0.10);
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
// &::before {
|
|
19
|
+
// content: '';
|
|
20
|
+
// display: inline-block;
|
|
21
|
+
// width: 100%;
|
|
22
|
+
// height: 1px;
|
|
23
|
+
// box-shadow: inset 0 0 0 0 rgba(45,75,115,0.10);
|
|
24
|
+
// position: absolute;
|
|
25
|
+
// top: 0;
|
|
26
|
+
// right: 0;
|
|
27
|
+
// }
|
|
14
28
|
}
|
|
15
29
|
|
|
16
30
|
&__border {
|
|
@@ -46,12 +60,14 @@
|
|
|
46
60
|
}
|
|
47
61
|
|
|
48
62
|
&__title {
|
|
49
|
-
max-width: 50%;
|
|
50
63
|
font-weight: @plain-font-weight;
|
|
51
64
|
font-size: @picker-title-font-size;
|
|
52
65
|
line-height: @picker-title-line-height;
|
|
53
66
|
text-align: center;
|
|
54
|
-
color:
|
|
67
|
+
color: #2D4B73;
|
|
68
|
+
opacity: 0.4;
|
|
69
|
+
padding: 12px 0;
|
|
70
|
+
border-bottom: 1px solid rgba(45,75,115,0.10);
|
|
55
71
|
}
|
|
56
72
|
|
|
57
73
|
&__header {
|
package/lib/picker/style/less.js
CHANGED
package/lib/popup/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:#fff;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-overflow-scrolling:touch}.zt-popup--center{top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:
|
|
1
|
+
.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:#fff;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-overflow-scrolling:touch}.zt-popup__slider{position:fixed;width:100%;bottom:0;border-radius:16px 16px 0 0;background-color:#fff}.zt-popup__slider-title{height:40px;text-align:center}.zt-popup__slider-bar{display:inline-block;width:32px;height:4px;-webkit-transform:scaleY(-1);transform:scaleY(-1);background:rgba(45,75,115,.2);border-radius:3px}.zt-popup__slider-content{overflow-y:auto}.zt-popup--center{top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:16px}.zt-popup--top{top:0;left:0;width:100%}.zt-popup--top.zt-popup--round{border-radius:0 0 16px 16px}.zt-popup--right{top:50%;right:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.zt-popup--right.zt-popup--round{border-radius:16px 0 0 16px}.zt-popup--bottom{bottom:0;left:0;width:100%}.zt-popup--bottom.zt-popup--round{border-radius:16px 16px 0 0}.zt-popup--left{top:50%;left:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.zt-popup--left.zt-popup--round{border-radius:0 16px 16px 0}.zt-popup--safe-area-inset-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-popup-slide-bottom-enter-active,.zt-popup-slide-left-enter-active,.zt-popup-slide-right-enter-active,.zt-popup-slide-top-enter-active{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.zt-popup-slide-bottom-leave-active,.zt-popup-slide-left-leave-active,.zt-popup-slide-right-leave-active,.zt-popup-slide-top-leave-active{-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}.zt-popup-slide-top-enter,.zt-popup-slide-top-leave-active{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.zt-popup-slide-right-enter,.zt-popup-slide-right-leave-active{-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}.zt-popup-slide-bottom-enter,.zt-popup-slide-bottom-leave-active{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.zt-popup-slide-left-enter,.zt-popup-slide-left-leave-active{-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.zt-popup__slider-icon{z-index:1;color:rgba(45,75,115,.6);font-size:24px;cursor:pointer}.zt-popup__close-icon{position:absolute;z-index:1;color:rgba(45,75,115,.6);font-size:24px;cursor:pointer}.zt-popup__close-icon:active{color:#969799}.zt-popup__close-icon--top-left{top:12px;left:16px}.zt-popup__close-icon--top-right{top:12px;right:16px}.zt-popup__close-icon--bottom-left{bottom:16px;left:16px}.zt-popup__close-icon--bottom-right{right:16px;bottom:16px}
|
package/lib/popup/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var _default = createComponent({
|
|
|
25
25
|
safeAreaInsetBottom: Boolean,
|
|
26
26
|
closeIcon: {
|
|
27
27
|
type: String,
|
|
28
|
-
default: '
|
|
28
|
+
default: 'clear'
|
|
29
29
|
},
|
|
30
30
|
closeIconPosition: {
|
|
31
31
|
type: String,
|
|
@@ -46,6 +46,14 @@ var _default = createComponent({
|
|
|
46
46
|
customOnClickOverlay: {
|
|
47
47
|
type: Function,
|
|
48
48
|
default: null
|
|
49
|
+
},
|
|
50
|
+
sliderContentHeight: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: 60
|
|
53
|
+
},
|
|
54
|
+
sliderShow: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
49
57
|
}
|
|
50
58
|
},
|
|
51
59
|
beforeCreate: function beforeCreate() {
|
|
@@ -61,72 +69,135 @@ var _default = createComponent({
|
|
|
61
69
|
this.onOpened = createEmitter('opened');
|
|
62
70
|
this.onClosed = createEmitter('closed');
|
|
63
71
|
},
|
|
72
|
+
data: function data() {
|
|
73
|
+
return {
|
|
74
|
+
positionY: 0,
|
|
75
|
+
timerId: null,
|
|
76
|
+
contentStyle: "height:" + this.sliderContentHeight + "px;",
|
|
77
|
+
touchHeight: 0
|
|
78
|
+
};
|
|
79
|
+
},
|
|
64
80
|
methods: {
|
|
65
81
|
onClickCloseIcon: function onClickCloseIcon(event) {
|
|
66
82
|
this.$emit('click-close-icon', event);
|
|
67
83
|
this.close();
|
|
68
84
|
},
|
|
69
85
|
onClickOverlay: function onClickOverlay() {
|
|
86
|
+
if (this.sliderShow) {
|
|
87
|
+
this.contentStyle = 'height:60px';
|
|
88
|
+
}
|
|
89
|
+
|
|
70
90
|
if (this.customOnClickOverlay) {
|
|
71
91
|
this.customOnClickOverlay();
|
|
72
92
|
} else if (this.closeOnClickOverlay) {
|
|
73
93
|
this.close();
|
|
74
94
|
}
|
|
95
|
+
},
|
|
96
|
+
move: function move(event) {
|
|
97
|
+
var _this2 = this;
|
|
98
|
+
|
|
99
|
+
if (this.timerId) {
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
|
|
104
|
+
this.positionY = event.touches[0].clientY;
|
|
105
|
+
this.timerId = setTimeout(function () {
|
|
106
|
+
if (_this2.positionY === 0 || _this2.positionY < h * 0.15) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
_this2.touchHeight = _this2.positionY - 40 > h - 40 ? h - 40 : _this2.positionY;
|
|
111
|
+
_this2.contentStyle = "height:" + (h - _this2.touchHeight - 40) + "px;";
|
|
112
|
+
}, 10);
|
|
113
|
+
},
|
|
114
|
+
endMove: function endMove() {
|
|
115
|
+
clearInterval(this.timerId);
|
|
116
|
+
this.timerId = null;
|
|
117
|
+
},
|
|
118
|
+
startMove: function startMove() {
|
|
119
|
+
if (this.timerId) {
|
|
120
|
+
clearInterval(this.timerId);
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
allowSliderRender: function allowSliderRender() {
|
|
124
|
+
var h = this.$createElement;
|
|
125
|
+
return h("div", {
|
|
126
|
+
"class": bem('slider'),
|
|
127
|
+
"directives": [{
|
|
128
|
+
name: "show",
|
|
129
|
+
value: this.value
|
|
130
|
+
}]
|
|
131
|
+
}, [h("div", {
|
|
132
|
+
"class": bem('slider-title'),
|
|
133
|
+
"on": {
|
|
134
|
+
"touchmove": this.move,
|
|
135
|
+
"touchend": this.endMove,
|
|
136
|
+
"touchstart": this.startMove
|
|
137
|
+
}
|
|
138
|
+
}, [h("div", {
|
|
139
|
+
"class": bem('slider-bar')
|
|
140
|
+
})]), h("div", {
|
|
141
|
+
"class": bem('slider-content'),
|
|
142
|
+
"style": this.contentStyle
|
|
143
|
+
}, [this.slots()])]);
|
|
144
|
+
},
|
|
145
|
+
popupRender: function popupRender() {
|
|
146
|
+
var _bem;
|
|
147
|
+
|
|
148
|
+
var h = this.$createElement;
|
|
149
|
+
var round = this.round,
|
|
150
|
+
position = this.position,
|
|
151
|
+
duration = this.duration;
|
|
152
|
+
var isCenter = position === 'center';
|
|
153
|
+
var transitionName = this.transition || (isCenter ? 'zt-fade' : "zt-popup-slide-" + position);
|
|
154
|
+
var style = {};
|
|
155
|
+
|
|
156
|
+
if ((0, _utils.isDef)(duration)) {
|
|
157
|
+
var key = isCenter ? 'animationDuration' : 'transitionDuration';
|
|
158
|
+
style[key] = duration + "s";
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return h("transition", {
|
|
162
|
+
"attrs": {
|
|
163
|
+
"appear": this.transitionAppear,
|
|
164
|
+
"name": transitionName
|
|
165
|
+
},
|
|
166
|
+
"on": {
|
|
167
|
+
"afterEnter": this.onOpened,
|
|
168
|
+
"afterLeave": this.onClosed
|
|
169
|
+
}
|
|
170
|
+
}, [h("div", {
|
|
171
|
+
"directives": [{
|
|
172
|
+
name: "show",
|
|
173
|
+
value: this.value
|
|
174
|
+
}],
|
|
175
|
+
"style": style,
|
|
176
|
+
"class": bem((_bem = {
|
|
177
|
+
round: round
|
|
178
|
+
}, _bem[position] = position, _bem['safe-area-inset-bottom'] = this.safeAreaInsetBottom, _bem)),
|
|
179
|
+
"on": {
|
|
180
|
+
"click": this.onClick
|
|
181
|
+
}
|
|
182
|
+
}, [this.slots(), this.closeable && h(_icon.default, {
|
|
183
|
+
"attrs": {
|
|
184
|
+
"role": "button",
|
|
185
|
+
"tabindex": "0",
|
|
186
|
+
"name": this.closeIcon
|
|
187
|
+
},
|
|
188
|
+
"class": bem('close-icon', this.closeIconPosition),
|
|
189
|
+
"on": {
|
|
190
|
+
"click": this.onClickCloseIcon
|
|
191
|
+
}
|
|
192
|
+
})])]);
|
|
75
193
|
}
|
|
76
194
|
},
|
|
77
195
|
render: function render() {
|
|
78
|
-
var _bem;
|
|
79
|
-
|
|
80
|
-
var h = arguments[0];
|
|
81
|
-
|
|
82
196
|
if (!this.shouldRender) {
|
|
83
197
|
return;
|
|
84
198
|
}
|
|
85
199
|
|
|
86
|
-
|
|
87
|
-
position = this.position,
|
|
88
|
-
duration = this.duration;
|
|
89
|
-
var isCenter = position === 'center';
|
|
90
|
-
var transitionName = this.transition || (isCenter ? 'zt-fade' : "zt-popup-slide-" + position);
|
|
91
|
-
var style = {};
|
|
92
|
-
|
|
93
|
-
if ((0, _utils.isDef)(duration)) {
|
|
94
|
-
var key = isCenter ? 'animationDuration' : 'transitionDuration';
|
|
95
|
-
style[key] = duration + "s";
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return h("transition", {
|
|
99
|
-
"attrs": {
|
|
100
|
-
"appear": this.transitionAppear,
|
|
101
|
-
"name": transitionName
|
|
102
|
-
},
|
|
103
|
-
"on": {
|
|
104
|
-
"afterEnter": this.onOpened,
|
|
105
|
-
"afterLeave": this.onClosed
|
|
106
|
-
}
|
|
107
|
-
}, [h("div", {
|
|
108
|
-
"directives": [{
|
|
109
|
-
name: "show",
|
|
110
|
-
value: this.value
|
|
111
|
-
}],
|
|
112
|
-
"style": style,
|
|
113
|
-
"class": bem((_bem = {
|
|
114
|
-
round: round
|
|
115
|
-
}, _bem[position] = position, _bem['safe-area-inset-bottom'] = this.safeAreaInsetBottom, _bem)),
|
|
116
|
-
"on": {
|
|
117
|
-
"click": this.onClick
|
|
118
|
-
}
|
|
119
|
-
}, [this.slots(), this.closeable && h(_icon.default, {
|
|
120
|
-
"attrs": {
|
|
121
|
-
"role": "button",
|
|
122
|
-
"tabindex": "0",
|
|
123
|
-
"name": this.closeIcon
|
|
124
|
-
},
|
|
125
|
-
"class": bem('close-icon', this.closeIconPosition),
|
|
126
|
-
"on": {
|
|
127
|
-
"click": this.onClickCloseIcon
|
|
128
|
-
}
|
|
129
|
-
})])]);
|
|
200
|
+
return this.sliderShow ? this.allowSliderRender() : this.popupRender();
|
|
130
201
|
}
|
|
131
202
|
});
|
|
132
203
|
|
package/lib/popup/index.less
CHANGED
|
@@ -13,6 +13,29 @@
|
|
|
13
13
|
transition: @popup-transition;
|
|
14
14
|
-webkit-overflow-scrolling: touch;
|
|
15
15
|
|
|
16
|
+
&__slider {
|
|
17
|
+
position: fixed;
|
|
18
|
+
width: 100%;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
border-radius: 16px 16px 0 0;
|
|
21
|
+
background-color: #fff;
|
|
22
|
+
|
|
23
|
+
&-title {
|
|
24
|
+
height: 40px;
|
|
25
|
+
text-align: center;
|
|
26
|
+
}
|
|
27
|
+
&-bar {
|
|
28
|
+
display: inline-block;
|
|
29
|
+
width: 32px;
|
|
30
|
+
height: 4px;
|
|
31
|
+
transform: scaleY(-1);
|
|
32
|
+
background: rgba(45,75,115,0.20);
|
|
33
|
+
border-radius: 3px;
|
|
34
|
+
}
|
|
35
|
+
&-content {
|
|
36
|
+
overflow-y: auto;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
16
39
|
&--center {
|
|
17
40
|
top: 50%;
|
|
18
41
|
left: 50%;
|
|
@@ -101,7 +124,13 @@
|
|
|
101
124
|
&-slide-left-leave-active {
|
|
102
125
|
transform: translate3d(-100%, -50%, 0);
|
|
103
126
|
}
|
|
127
|
+
&__slider-icon{
|
|
128
|
+
z-index: @popup-close-icon-z-index;
|
|
129
|
+
color: @popup-close-icon-color;
|
|
130
|
+
font-size: @popup-close-icon-size;
|
|
131
|
+
cursor: pointer;
|
|
104
132
|
|
|
133
|
+
}
|
|
105
134
|
&__close-icon {
|
|
106
135
|
position: absolute;
|
|
107
136
|
z-index: @popup-close-icon-z-index;
|
|
@@ -114,12 +143,12 @@
|
|
|
114
143
|
}
|
|
115
144
|
|
|
116
145
|
&--top-left {
|
|
117
|
-
top: @popup-close-icon-margin;
|
|
146
|
+
top: @popup-close-icon-z-margin-top;
|
|
118
147
|
left: @popup-close-icon-margin;
|
|
119
148
|
}
|
|
120
149
|
|
|
121
150
|
&--top-right {
|
|
122
|
-
top: @popup-close-icon-margin;
|
|
151
|
+
top: @popup-close-icon-z-margin-top;
|
|
123
152
|
right: @popup-close-icon-margin;
|
|
124
153
|
}
|
|
125
154
|
|
package/lib/radio/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-radio{display:-webkit-box;display:-webkit-flex;display:flex
|
|
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:20px;cursor:pointer}.zt-radio__icon .zt-icon{display:block;box-sizing:border-box;width:1em;height:1em;color:transparent;font-size:inherit;-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{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;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__label{margin-left:8px;color:#000;line-height:20px}.zt-radio__label--left{margin:0 8px 0 0}.zt-radio__label--disabled{color:#c8c9cc}.zt-radio__disable-icon .zt-radio__icon--round:not(.zt-radio__icon--disabled,.zt-radio__icon--checked){width:1em;height:1em;box-sizing:border-box;border-radius:100%;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)}
|
package/lib/radio/index.less
CHANGED
|
@@ -2,21 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
.zt-radio {
|
|
4
4
|
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
5
|
overflow: hidden;
|
|
7
6
|
cursor: pointer;
|
|
8
7
|
user-select: none;
|
|
9
8
|
padding: @radio-padding;
|
|
10
9
|
|
|
11
|
-
&__custom-svg {
|
|
12
|
-
width: @radio-size;
|
|
13
|
-
height: @radio-size;
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
}
|
|
16
|
-
&__icon--disabled &__custom-svg {
|
|
17
|
-
opacity: .2;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
10
|
&--disabled {
|
|
21
11
|
cursor: not-allowed;
|
|
22
12
|
}
|
|
@@ -30,19 +20,8 @@
|
|
|
30
20
|
}
|
|
31
21
|
|
|
32
22
|
&__icon {
|
|
33
|
-
flex: none;
|
|
34
|
-
height: 1em;
|
|
35
23
|
font-size: @radio-size;
|
|
36
|
-
line-height: 1em;
|
|
37
24
|
cursor: pointer;
|
|
38
|
-
i, img {
|
|
39
|
-
transform: scale(0.8333);
|
|
40
|
-
transform-origin: center;
|
|
41
|
-
}
|
|
42
|
-
img {
|
|
43
|
-
width: 1em;
|
|
44
|
-
height: 1em;
|
|
45
|
-
}
|
|
46
25
|
|
|
47
26
|
.zt-icon {
|
|
48
27
|
display: block;
|
|
@@ -50,16 +29,16 @@
|
|
|
50
29
|
width: 1em;
|
|
51
30
|
height: 1em;
|
|
52
31
|
color: transparent;
|
|
53
|
-
font-size:
|
|
54
|
-
line-height: 1.25;
|
|
55
|
-
text-align: center;
|
|
56
|
-
border: 1px solid @radio-border-color;
|
|
32
|
+
font-size: inherit;
|
|
57
33
|
transition-duration: @radio-transition-duration;
|
|
58
34
|
transition-property: color, border-color, background-color;
|
|
59
35
|
}
|
|
60
36
|
|
|
61
37
|
&--round {
|
|
62
38
|
.zt-icon {
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
align-items: center;
|
|
63
42
|
border-radius: 100%;
|
|
64
43
|
}
|
|
65
44
|
}
|
|
@@ -68,7 +47,8 @@
|
|
|
68
47
|
.zt-icon {
|
|
69
48
|
color: @white;
|
|
70
49
|
background-color: @radio-checked-icon-color;
|
|
71
|
-
border
|
|
50
|
+
border: 1px solid @checkbox-disabled-border-color;
|
|
51
|
+
box-shadow: inset 1px 1px 2px 0 @gray-a2;
|
|
72
52
|
}
|
|
73
53
|
}
|
|
74
54
|
|
|
@@ -76,14 +56,17 @@
|
|
|
76
56
|
cursor: not-allowed;
|
|
77
57
|
|
|
78
58
|
.zt-icon {
|
|
79
|
-
background-
|
|
80
|
-
border
|
|
59
|
+
background-image: @radio-disabled-background-color;
|
|
60
|
+
border: 1px solid @radio-disabled-border-color;
|
|
61
|
+
box-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 rgba(45,75,115,0.20);
|
|
81
62
|
}
|
|
82
63
|
}
|
|
83
64
|
|
|
84
65
|
&--disabled&--checked {
|
|
85
66
|
.zt-icon {
|
|
86
|
-
|
|
67
|
+
opacity: .4;
|
|
68
|
+
background: @checkbox-checked-icon-color;
|
|
69
|
+
color: @white;
|
|
87
70
|
}
|
|
88
71
|
}
|
|
89
72
|
}
|
|
@@ -102,3 +85,15 @@
|
|
|
102
85
|
}
|
|
103
86
|
}
|
|
104
87
|
}
|
|
88
|
+
|
|
89
|
+
.zt-radio__disable-icon {
|
|
90
|
+
.zt-radio__icon--round:not(.zt-radio__icon--disabled,.zt-radio__icon--checked){
|
|
91
|
+
width: 1em;
|
|
92
|
+
height: 1em;
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
border-radius: 100%;
|
|
95
|
+
background-image: @gradient-white-1;
|
|
96
|
+
border: 1px solid @radio-border-color;
|
|
97
|
+
box-shadow: -1px -1px 2px 0 #FFF, 0 0 3px 0 rgba(45,75,115,0.20);
|
|
98
|
+
}
|
|
99
|
+
}
|
package/lib/radio-group/index.js
CHANGED
package/lib/search/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:8px 16px;background-color:#
|
|
1
|
+
.zt-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:8px 16px;background-color:#f5faff}.zt-search__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;background-color:rgba(45,75,115,.04);border:1px solid transparent;border-radius:2px;box-shadow:inset 4px 4px 8px 0 rgba(45,75,115,.1);background-clip:padding-box;position:relative}.zt-search__content::before{content:'';position:absolute;top:0;right:0;left:0;bottom:0;z-index:-1;margin:-1px;border-radius:inherit;background:-webkit-linear-gradient(#fff,rgba(255,255,255,.4));background:linear-gradient(#fff,rgba(255,255,255,.4))}.zt-search__content--round{border-radius:999px}.zt-search__label{padding:8px 0 8px 12px;color:rgba(0,0,0,.6);font-family:PingFangSC-Semibold;font-weight:400;font-size:14px;line-height:20px}.zt-search .zt-field__root{background-color:transparent;padding:0}.zt-search .zt-field__label{margin-right:0}.zt-search .zt-cell__title.zt-field__label{-webkit-box-flex:unset;-webkit-flex:unset;flex:unset}.zt-search .zt-cell{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:8px 12px;background:0 0;line-height:20px;font-size:14px;font-family:PingFangSC-Regular;font-weight:400}.zt-search .zt-cell__left-icon{color:#969799}.zt-search .zt-field{margin:0}.zt-search .zt-field__control{color:#000}.zt-search--show-action{padding-right:0}.zt-search input{caret-color:#0091fa}.zt-search input::-webkit-search-cancel-button,.zt-search input::-webkit-search-decoration,.zt-search input::-webkit-search-results-button,.zt-search input::-webkit-search-results-decoration{display:none}.zt-search input::-webkit-input-placeholder{color:rgba(45,75,115,.2)}.zt-search input::placeholder{color:rgba(45,75,115,.2)}.zt-search__action{padding:0 16px 0 12px;color:#0091fa;font-size:16px;font-family:PingFangSC-Semibold;height:28px;font-weight:600;cursor:pointer;-webkit-user-select:none;user-select:none;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}.zt-search__action:active{background-color:rgba(0,0,0,.04)}
|
package/lib/search/index.js
CHANGED
package/lib/search/index.less
CHANGED
|
@@ -11,8 +11,24 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
flex: 1;
|
|
13
13
|
background-color: @search-content-background-color;
|
|
14
|
-
border:
|
|
14
|
+
border: 1px solid transparent;
|
|
15
15
|
border-radius: @border-radius-sm;
|
|
16
|
+
box-shadow: @search-content-box-shadow;
|
|
17
|
+
background-clip: padding-box;
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
&::before {
|
|
21
|
+
content: '';
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0;
|
|
24
|
+
right: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
z-index: -1;
|
|
28
|
+
margin: -1px;
|
|
29
|
+
border-radius: inherit;
|
|
30
|
+
background: @search-content-border-color;
|
|
31
|
+
}
|
|
16
32
|
|
|
17
33
|
&--round {
|
|
18
34
|
border-radius: @border-radius-max;
|
|
@@ -33,10 +49,18 @@
|
|
|
33
49
|
padding: 0;
|
|
34
50
|
}
|
|
35
51
|
|
|
52
|
+
.zt-field__label {
|
|
53
|
+
margin-right: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.zt-cell__title.zt-field__label {
|
|
57
|
+
flex: unset;
|
|
58
|
+
}
|
|
59
|
+
|
|
36
60
|
.zt-cell {
|
|
37
61
|
flex: 1;
|
|
38
|
-
padding:
|
|
39
|
-
background
|
|
62
|
+
padding: @search-cell-padding;
|
|
63
|
+
background: transparent;
|
|
40
64
|
line-height: @search-input-height;
|
|
41
65
|
font-size: @font-size-md;
|
|
42
66
|
font-family: PingFangSC-Regular;
|
|
@@ -66,6 +90,10 @@
|
|
|
66
90
|
display: none;
|
|
67
91
|
}
|
|
68
92
|
|
|
93
|
+
&::placeholder {
|
|
94
|
+
color: @text-color-5;
|
|
95
|
+
}
|
|
96
|
+
|
|
69
97
|
caret-color:@search-input-caret-color;
|
|
70
98
|
}
|
|
71
99
|
|
package/lib/signature/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var _default = createComponent({
|
|
|
37
37
|
},
|
|
38
38
|
backgroundStyle: {
|
|
39
39
|
type: String,
|
|
40
|
-
default: '#
|
|
40
|
+
default: '#FFFFFF'
|
|
41
41
|
},
|
|
42
42
|
imageType: {
|
|
43
43
|
type: String,
|
|
@@ -266,23 +266,24 @@ var _default = createComponent({
|
|
|
266
266
|
"class": bem('actions')
|
|
267
267
|
}, [h(_button.default, {
|
|
268
268
|
"attrs": {
|
|
269
|
-
"
|
|
270
|
-
"
|
|
269
|
+
"border-color": "#FF8700",
|
|
270
|
+
"color": "#FF8700",
|
|
271
|
+
"background-color": "#fff"
|
|
271
272
|
},
|
|
272
273
|
"on": {
|
|
273
274
|
"click": this.clear
|
|
274
275
|
}
|
|
275
276
|
}, [t('reSign')]), h(_button.default, {
|
|
276
277
|
"attrs": {
|
|
277
|
-
"
|
|
278
|
-
"
|
|
278
|
+
"border-color": "rgba(45,75,115,0.20)",
|
|
279
|
+
"color": "#2D4B73",
|
|
280
|
+
"background-color": "#fff"
|
|
279
281
|
},
|
|
280
282
|
"on": {
|
|
281
283
|
"click": this.cancel
|
|
282
284
|
}
|
|
283
285
|
}, [t('cancel')]), h(_button.default, {
|
|
284
286
|
"attrs": {
|
|
285
|
-
"block": true,
|
|
286
287
|
"type": "primary",
|
|
287
288
|
"disabled": this.isCompleteButtonDisabled
|
|
288
289
|
},
|