zartui 0.1.104 → 0.1.107

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.
@@ -6,6 +6,7 @@ var _createNamespace = createNamespace('calendar-header'),
6
6
 
7
7
  export default createComponent({
8
8
  props: {
9
+ color: String,
9
10
  title: String,
10
11
  subtitle: String,
11
12
  showTitle: Boolean,
@@ -20,7 +21,12 @@ export default createComponent({
20
21
  var title = this.slots('title') || this.title || t('title');
21
22
  return h("div", {
22
23
  "class": bem('header-title')
23
- }, [title]);
24
+ }, [h("span", {
25
+ "class": "hint-block",
26
+ "style": {
27
+ "background": this.color
28
+ }
29
+ }), title]);
24
30
  }
25
31
  },
26
32
  genSubtitle: function genSubtitle() {
@@ -30,7 +30,7 @@ export default createComponent({
30
30
  },
31
31
  computed: {
32
32
  title: function title() {
33
- return formatMonthTitle(this.date);
33
+ return this.getMonthTitle();
34
34
  },
35
35
  rowHeightWithUnit: function rowHeightWithUnit() {
36
36
  return addUnit(this.rowHeight);
@@ -96,6 +96,9 @@ export default createComponent({
96
96
 
97
97
  return this.height;
98
98
  },
99
+ getMonthTitle: function getMonthTitle() {
100
+ return formatMonthTitle(this.date);
101
+ },
99
102
  scrollIntoView: function scrollIntoView(body) {
100
103
  var _this$$refs = this.$refs,
101
104
  days = _this$$refs.days,
@@ -232,9 +235,10 @@ export default createComponent({
232
235
  var h = this.$createElement;
233
236
 
234
237
  if (this.showMonthTitle) {
238
+ var currentTitle = this.getMonthTitle();
235
239
  return h("div", {
236
240
  "class": bem('month-title')
237
- }, [this.title]);
241
+ }, [currentTitle]);
238
242
  }
239
243
  },
240
244
  genMark: function genMark() {
@@ -1 +1 @@
1
- .zt-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff}.zt-calendar__popup.zt-popup--bottom,.zt-calendar__popup.zt-popup--top{height:80%}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__popup .zt-popup__close-icon{top:11px}.zt-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt-calendar__header-title{height:44px;font-weight:700;line-height:44px;text-align:left;padding-left:16px;position:relative}.zt-calendar__header-title::before{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt-calendar__header-title::after{top:44px;left:0;content:'';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-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center}.zt-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt-calendar__header-title{font-size:16px}.zt-calendar__header-subtitle{font-size:14px}.zt-calendar__month-title{font-size:14px}.zt-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt-calendar__day,.zt-calendar__selected-day{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;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:14.285vw;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt-calendar__day--end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected,.zt-calendar__day--start,.zt-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}@media (pointer:coarse){.zt-calendar__day--end,.zt-calendar__day--multiple-middle{margin-left:-1px}}.zt-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--multiple-selected,.zt-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--middle{color:#000}.zt-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt-calendar__day--disabled{color:#c8c9cc;cursor:default}.zt-calendar__bottom-info,.zt-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;line-height:14px}@media (max-width:350px){.zt-calendar__bottom-info,.zt-calendar__top-info{font-size:9px}}.zt-calendar__top-info{top:6px}.zt-calendar__bottom-info{display:none;bottom:6px}.zt-calendar__selected-day{font-weight:700;width:14.285vw;height:14.285vw;color:#fff;background-color:#0091fa;border-radius:calc(14.285vw / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__footer{-webkit-flex-shrink:0;flex-shrink:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-calendar__confirm{border-radius:0}
1
+ .zt-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff}.zt-calendar__popup.zt-popup--bottom,.zt-calendar__popup.zt-popup--top{height:80%}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__popup .zt-popup__close-icon{top:11px}.zt-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt-calendar__header-title{height:44px;font-weight:700;line-height:44px;text-align:left;padding-left:16px;position:relative}.zt-calendar__header-title .hint-block{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt-calendar__header-title::after{top:44px;left:0;content:'';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-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center}.zt-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt-calendar__header-title{font-size:16px}.zt-calendar__header-subtitle{font-size:14px}.zt-calendar__month-title{font-size:14px}.zt-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt-calendar__day,.zt-calendar__selected-day{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;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:14.285vw;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt-calendar__day--end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected,.zt-calendar__day--start,.zt-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}@media (pointer:coarse){.zt-calendar__day--end,.zt-calendar__day--multiple-middle{margin-left:-1px}}.zt-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--multiple-selected,.zt-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--middle{color:#000}.zt-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt-calendar__day--disabled{color:#c8c9cc;cursor:default}.zt-calendar__bottom-info,.zt-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;line-height:14px}@media (max-width:350px){.zt-calendar__bottom-info,.zt-calendar__top-info{font-size:9px}}.zt-calendar__top-info{top:6px}.zt-calendar__bottom-info{display:none;bottom:6px}.zt-calendar__selected-day{font-weight:700;width:14.285vw;height:14.285vw;color:#fff;background-color:#0091fa;border-radius:calc(14.285vw / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__footer{-webkit-flex-shrink:0;flex-shrink:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-calendar__confirm{border-radius:0}
@@ -302,7 +302,7 @@ export default createComponent({
302
302
  /* istanbul ignore else */
303
303
 
304
304
  if (currentMonth) {
305
- this.subtitle = currentMonth.title;
305
+ this.subtitle = currentMonth.getMonthTitle();
306
306
  }
307
307
  },
308
308
  onClickDay: function onClickDay(item) {
@@ -486,6 +486,7 @@ export default createComponent({
486
486
  "class": bem()
487
487
  }, [h(Header, {
488
488
  "attrs": {
489
+ "color": this.color,
489
490
  "title": this.title,
490
491
  "showTitle": this.showTitle,
491
492
  "subtitle": this.subtitle,
@@ -39,7 +39,7 @@
39
39
 
40
40
  }
41
41
 
42
- &__header-title::before {
42
+ &__header-title .hint-block {
43
43
  position: absolute;
44
44
  content: '';
45
45
  top: 14px;
package/es/cell/index.css CHANGED
@@ -1 +1 @@
1
- .zt-cell{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;overflow:hidden;color:rgba(0,0,0,.6);font-size:16px;line-height:24px;background-color:#fff}.zt-cell--noFlex{display:block}.zt-cell--noFlex .zt-cell__title{margin-bottom:10px;width:100%;max-width:100%}.zt-cell::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-cell--borderless::after,.zt-cell:last-child::after{display:none}.zt-cell__label{margin-top:4px;color:#000;font-size:14px;line-height:18px}.zt-cell__title,.zt-cell__value{-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt-cell__placeholder{color:#c8c9cc}.zt-cell__value{position:relative;overflow:hidden;color:#000;text-align:right;vertical-align:middle;word-wrap:break-word}.zt-cell__value--alone{color:rgba(0,0,0,.6);text-align:left}.zt-cell__left-icon,.zt-cell__right-icon{height:24px;font-size:16px;line-height:24px}.zt-cell__left-icon{margin-right:4px}.zt-cell__right-icon{margin:auto 0;margin-left:4px;color:#969799}.zt-cell--clickable{cursor:pointer}.zt-cell--clickable:active{background-color:rgba(0,0,0,.04)}.zt-cell--center{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-cell--large{padding-top:12px;padding-bottom:12px}.zt-cell--large .zt-cell__title{font-size:16px}.zt-cell--large .zt-cell__label{font-size:14px}
1
+ .zt-cell{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;overflow:hidden;color:rgba(0,0,0,.6);font-size:16px;line-height:24px;background-color:#fff}.zt-cell--noFlex{display:block}.zt-cell--noFlex .zt-cell__title{margin-bottom:10px;width:100%;max-width:100%}.zt-cell::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-cell--borderless::after,.zt-cell:last-child::after{display:none}.zt-cell__label{margin-top:4px;color:#000;font-size:14px;line-height:18px}.zt-cell__title,.zt-cell__value{-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt-cell__placeholder{color:#c8c9cc;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right}.zt-cell__value{position:relative;overflow:hidden;color:#000;text-align:right;vertical-align:middle;word-wrap:break-word}.zt-cell__value--alone{color:rgba(0,0,0,.6);text-align:left}.zt-cell__left-icon,.zt-cell__right-icon{height:24px;font-size:16px;line-height:24px}.zt-cell__left-icon{margin-right:4px}.zt-cell__right-icon{margin:auto 0;margin-left:4px;color:#969799}.zt-cell--clickable{cursor:pointer}.zt-cell--clickable:active{background-color:rgba(0,0,0,.04)}.zt-cell--center{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-cell--large{padding-top:12px;padding-bottom:12px}.zt-cell--large .zt-cell__title{font-size:16px}.zt-cell--large .zt-cell__label{font-size:14px}
@@ -45,6 +45,8 @@
45
45
 
46
46
  &__placeholder {
47
47
  color: @field-placeholder-text-color;
48
+ flex: 1;
49
+ text-align: right;
48
50
  }
49
51
 
50
52
  &__value {
@@ -1,4 +1,10 @@
1
1
  export default {
2
+ props: {
3
+ color: {
4
+ type: String,
5
+ default: 'rgba(0,0,0,0.4)'
6
+ }
7
+ },
2
8
  render: function render() {
3
9
  var h = arguments[0];
4
10
  return h("svg", {
@@ -9,8 +15,7 @@ export default {
9
15
  }, [h("path", {
10
16
  "attrs": {
11
17
  "d": "M10,2 C14.418278,2 18,5.581722 18,10 C18,14.418278 14.418278,18 10,18 C5.581722,18 2,14.418278 2,10 C2,5.581722 5.581722,2 10,2 Z M6.46446609,6.46446609 C6.0739418,6.85499039 6.0739418,7.48815536 6.46446609,7.87867966 L8.586,10 L6.46446609,12.1213203 C6.10398213,12.4818043 6.0762526,13.0490354 6.38127749,13.4413266 L6.46446609,13.5355339 C6.85499039,13.9260582 7.48815536,13.9260582 7.87867966,13.5355339 L7.87867966,13.5355339 L10,11.414 L12.1213203,13.5355339 C12.5118446,13.9260582 13.1450096,13.9260582 13.5355339,13.5355339 C13.9260582,13.1450096 13.9260582,12.5118446 13.5355339,12.1213203 L11.414,10 L13.5355339,7.87867966 C13.8960179,7.51819569 13.9237474,6.95096464 13.6187225,6.55867343 L13.5355339,6.46446609 C13.1450096,6.0739418 12.5118446,6.0739418 12.1213203,6.46446609 L12.1213203,6.46446609 L10,8.586 L7.87867966,6.46446609 C7.48815536,6.0739418 6.85499039,6.0739418 6.46446609,6.46446609 Z",
12
- "fill": "#000",
13
- "opacity": ".4",
18
+ "fill": this.color,
14
19
  "fill-rule": "evenodd"
15
20
  }
16
21
  })]);
package/es/field/index.js CHANGED
@@ -56,6 +56,8 @@ export default createComponent({
56
56
  errorMessage: String,
57
57
  errorMessageAlign: String,
58
58
  showWordLimit: Boolean,
59
+ inputColor: String,
60
+ iconColor: String,
59
61
  value: {
60
62
  type: [Number, String],
61
63
  default: ''
@@ -430,6 +432,7 @@ export default createComponent({
430
432
  var readonly = this.getProp('readonly');
431
433
  var inputSlot = this.slots('input');
432
434
  var inputAlign = this.getProp('inputAlign');
435
+ var inputColor = this.getProp('inputColor');
433
436
 
434
437
  if (inputSlot) {
435
438
  return h("div", {
@@ -457,7 +460,10 @@ export default createComponent({
457
460
  directives: [{
458
461
  name: 'model',
459
462
  value: this.value
460
- }]
463
+ }],
464
+ style: {
465
+ color: inputColor
466
+ }
461
467
  };
462
468
 
463
469
  if (type === 'textarea') {
@@ -662,7 +668,10 @@ export default createComponent({
662
668
  "click": this.onClear
663
669
  }
664
670
  }, [h(ClearIcon, {
665
- "class": bem('zt-clear-size')
671
+ "class": bem('zt-clear-size'),
672
+ "attrs": {
673
+ "color": this.iconColor
674
+ }
666
675
  })]), this.type === 'password' && h("div", {
667
676
  "on": {
668
677
  "click": this.togglePwdVisible
@@ -670,11 +679,13 @@ export default createComponent({
670
679
  "style": "width:20px;height:20px;margin-left:12px;display:flex;justify-content:center;align-items:center;color:rgba(0,0,0,.4);"
671
680
  }, [this.showPassword ? h(Icon, {
672
681
  "attrs": {
673
- "name": "eye-open"
682
+ "name": "eye-open",
683
+ "color": this.iconColor
674
684
  }
675
685
  }) : h(Icon, {
676
686
  "attrs": {
677
- "name": "eye-closed"
687
+ "name": "eye-closed",
688
+ "color": this.iconColor
678
689
  }
679
690
  })]), this.genRightIcon(), slots('button') && h("div", {
680
691
  "class": bem('button')
package/es/index.js CHANGED
@@ -75,7 +75,7 @@ import Tag from './tag';
75
75
  import Timeline from './timeline';
76
76
  import Toast from './toast';
77
77
  import Uploader from './uploader';
78
- var version = '0.1.104';
78
+ var version = '0.1.107';
79
79
 
80
80
  function install(Vue) {
81
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];
@@ -17,6 +17,7 @@ export var CheckboxMixin = function CheckboxMixin(_ref) {
17
17
  disabled: Boolean,
18
18
  iconSize: [Number, String],
19
19
  checkedColor: String,
20
+ iconColor: String,
20
21
  labelPosition: String,
21
22
  labelDisabled: Boolean,
22
23
  shape: {
@@ -40,9 +41,11 @@ export var CheckboxMixin = function CheckboxMixin(_ref) {
40
41
  },
41
42
  iconStyle: function iconStyle() {
42
43
  var checkedColor = this.checkedColor || this.parent && this.parent.checkedColor;
44
+ var iconColor = this.iconColor || this.parent && this.parent.iconColor;
43
45
 
44
46
  if (checkedColor && this.checked && !this.isDisabled) {
45
47
  return {
48
+ color: iconColor,
46
49
  borderColor: checkedColor,
47
50
  backgroundColor: checkedColor
48
51
  };
@@ -46,31 +46,16 @@ export default createComponent({
46
46
  return defaultData();
47
47
  },
48
48
  mounted: function mounted() {
49
- this.reset();
50
- this.getPdfNumPages();
49
+ this.init();
51
50
  },
52
51
  activated: function activated() {
53
- this.privateUrl = this.url;
54
- this.recordMeta();
55
- this.recordHeight();
56
- this.recordScrollEvent();
57
- this.setHeight();
58
- this.setMeta();
59
- this.setScrollEvent();
52
+ this.init();
60
53
  },
61
54
  deactivated: function deactivated() {
62
- this.setHeight(true);
63
- this.setMeta(true);
64
- this.setScrollEvent(true);
65
- this.reset();
66
- this.privateUrl = "";
55
+ this.resetAll();
67
56
  },
68
57
  destroyed: function destroyed() {
69
- this.setHeight(true);
70
- this.setMeta(true);
71
- this.setScrollEvent(true);
72
- this.reset();
73
- this.privateUrl = "";
58
+ this.resetAll();
74
59
  },
75
60
  computed: {
76
61
  // 只显示当前页前后几页的pdf
@@ -95,24 +80,22 @@ export default createComponent({
95
80
  url: function url(nv) {
96
81
  this.privateUrl = nv;
97
82
  },
98
- privateUrl: function privateUrl() {
99
- this.getPdfNumPages();
83
+ privateUrl: function privateUrl(nv) {
84
+ if (nv) {
85
+ this.getPdfNumPages();
86
+ }
100
87
  },
101
88
  pageNum: function pageNum(nv) {
102
- var _this = this;
103
-
104
89
  if (this.pageChangeByButton && document.getElementById("pdfContent" + nv)) {
105
- this.loading = true;
106
- setTimeout(function () {
107
- _this.loading = false;
90
+ this.$nextTick(function () {
108
91
  document.getElementById("pdfContent" + nv).scrollIntoView(false);
109
- }, 1000);
92
+ });
110
93
  }
111
94
  },
112
95
  currentShowArr: {
113
96
  deep: true,
114
97
  handler: function handler(value, oldValue) {
115
- var _this2 = this;
98
+ var _this = this;
116
99
 
117
100
  // 因为浏览器对canvas总面积有限制,且销毁vue-pdf组件会同时销毁loadingTask,
118
101
  // 所以要销毁的canvas转为图片进行展示
@@ -123,24 +106,39 @@ export default createComponent({
123
106
  }
124
107
  });
125
108
  toDelete.forEach(function (v) {
126
- _this2.transformCanvasIntoImg(v);
109
+ _this.transformCanvasIntoImg(v);
127
110
  });
128
111
  }
129
112
  }
130
113
  },
131
114
  methods: {
115
+ init: function init() {
116
+ this.privateUrl = this.url;
117
+ this.recordMeta();
118
+ this.recordHeight();
119
+ this.recordScrollEvent();
120
+ this.setHeight();
121
+ this.setMeta();
122
+ this.setScrollEvent();
123
+ },
124
+ resetAll: function resetAll() {
125
+ this.setHeight(true);
126
+ this.setMeta(true);
127
+ this.setScrollEvent(true);
128
+ this.reset();
129
+ },
132
130
  recordScrollEvent: function recordScrollEvent() {
133
131
  this.scrollEvent = window.onscroll;
134
132
  },
135
133
  setScrollEvent: function setScrollEvent(restore) {
136
- var _this3 = this;
134
+ var _this2 = this;
137
135
 
138
136
  if (restore) {
139
137
  window.onscroll = this.scrollEvent;
140
138
  } else {
141
139
  if (this.pdfScrollEvent) {
142
140
  window.onscroll = function () {
143
- _this3.pdfScrollEvent();
141
+ _this2.pdfScrollEvent();
144
142
  };
145
143
  }
146
144
  }
@@ -151,7 +149,7 @@ export default createComponent({
151
149
  this.metaContent = (_document$getElements = document.getElementsByTagName('meta')['viewport']) == null ? void 0 : _document$getElements.getAttribute("content");
152
150
  },
153
151
  transformCanvasIntoImg: function transformCanvasIntoImg(i) {
154
- var _this4 = this;
152
+ var _this3 = this;
155
153
 
156
154
  var pdfContainer = document.getElementById("pdfContent" + i);
157
155
 
@@ -169,7 +167,7 @@ export default createComponent({
169
167
  return v === 255;
170
168
  })) {
171
169
  setTimeout(function () {
172
- _this4.transformCanvasIntoImg(i);
170
+ _this3.transformCanvasIntoImg(i);
173
171
  }, 1000);
174
172
  return;
175
173
  }
@@ -207,7 +205,7 @@ export default createComponent({
207
205
  resetObject(this, defaultData());
208
206
  },
209
207
  getPdfNumPages: function getPdfNumPages() {
210
- var _this5 = this;
208
+ var _this4 = this;
211
209
 
212
210
  if (!this.privateUrl) {
213
211
  return;
@@ -216,33 +214,33 @@ export default createComponent({
216
214
  this.loading = true;
217
215
  this.loadingTask = pdf.createLoadingTask(this.privateUrl);
218
216
  this.loadingTask.promise.then(function (v) {
219
- _this5.pdfPageCount = v.numPages;
217
+ _this4.pdfPageCount = v.numPages;
220
218
  var pdfArr = [];
221
219
 
222
- for (var i = 0; i < _this5.pdfPageCount; i++) {
220
+ for (var i = 0; i < _this4.pdfPageCount; i++) {
223
221
  pdfArr.push({
224
222
  loaded: false
225
223
  });
226
224
  }
227
225
 
228
- _this5.pageNum = 1;
229
- _this5.pdfArr = pdfArr;
226
+ _this4.pageNum = 1;
227
+ _this4.pdfArr = pdfArr;
230
228
 
231
- _this5.buildPdfScrollEvent();
229
+ _this4.buildPdfScrollEvent();
232
230
  }).catch(function (err) {
233
231
  console.error("pdf 加载失败", err);
234
232
  }).finally(function () {
235
- _this5.loading = false;
233
+ _this4.loading = false;
236
234
  });
237
235
  },
238
236
  buildPdfScrollEvent: function buildPdfScrollEvent() {
239
- var _this6 = this;
237
+ var _this5 = this;
240
238
 
241
239
  this.pdfScrollEvent = window.onscroll = _.throttle(function () {
242
- if (_this6.pageChangeByButton) {
243
- _this6.pageChangeByButton = false;
240
+ if (_this5.pageChangeByButton) {
241
+ _this5.pageChangeByButton = false;
244
242
  } else {
245
- _this6.changePage();
243
+ _this5.changePage();
246
244
  }
247
245
  }, 1000);
248
246
  },
@@ -356,7 +354,7 @@ export default createComponent({
356
354
  }
357
355
  },
358
356
  render: function render(h) {
359
- var _this7 = this;
357
+ var _this6 = this;
360
358
 
361
359
  return h("div", {
362
360
  "class": bem()
@@ -429,7 +427,7 @@ export default createComponent({
429
427
  "id": "pdfContainer"
430
428
  }
431
429
  }, [this.pdfArr.map(function (x, i) {
432
- return _this7.genPdf(i + 1);
430
+ return _this6.genPdf(i + 1);
433
431
  })]) : h(), h(Picker, {
434
432
  "attrs": {
435
433
  "show-picker": this.showPicker,
@@ -29,8 +29,7 @@ export var Telemetry = /*#__PURE__*/function () {
29
29
 
30
30
  if (this.send) {
31
31
  this.send(event);
32
- } else {
33
- console.debug(JSON.stringify(event));
32
+ } else {// console.debug(JSON.stringify(event))
34
33
  }
35
34
  };
36
35
 
@@ -12,6 +12,7 @@ var _createNamespace = (0, _utils.createNamespace)('calendar-header'),
12
12
 
13
13
  var _default = createComponent({
14
14
  props: {
15
+ color: String,
15
16
  title: String,
16
17
  subtitle: String,
17
18
  showTitle: Boolean,
@@ -26,7 +27,12 @@ var _default = createComponent({
26
27
  var title = this.slots('title') || this.title || (0, _utils2.t)('title');
27
28
  return h("div", {
28
29
  "class": (0, _utils2.bem)('header-title')
29
- }, [title]);
30
+ }, [h("span", {
31
+ "class": "hint-block",
32
+ "style": {
33
+ "background": this.color
34
+ }
35
+ }), title]);
30
36
  }
31
37
  },
32
38
  genSubtitle: function genSubtitle() {
@@ -38,7 +38,7 @@ var _default = createComponent({
38
38
  },
39
39
  computed: {
40
40
  title: function title() {
41
- return (0, _utils2.formatMonthTitle)(this.date);
41
+ return this.getMonthTitle();
42
42
  },
43
43
  rowHeightWithUnit: function rowHeightWithUnit() {
44
44
  return (0, _utils.addUnit)(this.rowHeight);
@@ -104,6 +104,9 @@ var _default = createComponent({
104
104
 
105
105
  return this.height;
106
106
  },
107
+ getMonthTitle: function getMonthTitle() {
108
+ return (0, _utils2.formatMonthTitle)(this.date);
109
+ },
107
110
  scrollIntoView: function scrollIntoView(body) {
108
111
  var _this$$refs = this.$refs,
109
112
  days = _this$$refs.days,
@@ -240,9 +243,10 @@ var _default = createComponent({
240
243
  var h = this.$createElement;
241
244
 
242
245
  if (this.showMonthTitle) {
246
+ var currentTitle = this.getMonthTitle();
243
247
  return h("div", {
244
248
  "class": (0, _utils2.bem)('month-title')
245
- }, [this.title]);
249
+ }, [currentTitle]);
246
250
  }
247
251
  },
248
252
  genMark: function genMark() {
@@ -1 +1 @@
1
- .zt-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff}.zt-calendar__popup.zt-popup--bottom,.zt-calendar__popup.zt-popup--top{height:80%}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__popup .zt-popup__close-icon{top:11px}.zt-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt-calendar__header-title{height:44px;font-weight:700;line-height:44px;text-align:left;padding-left:16px;position:relative}.zt-calendar__header-title::before{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt-calendar__header-title::after{top:44px;left:0;content:'';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-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center}.zt-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt-calendar__header-title{font-size:16px}.zt-calendar__header-subtitle{font-size:14px}.zt-calendar__month-title{font-size:14px}.zt-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt-calendar__day,.zt-calendar__selected-day{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;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:14.285vw;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt-calendar__day--end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected,.zt-calendar__day--start,.zt-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}@media (pointer:coarse){.zt-calendar__day--end,.zt-calendar__day--multiple-middle{margin-left:-1px}}.zt-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--multiple-selected,.zt-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--middle{color:#000}.zt-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt-calendar__day--disabled{color:#c8c9cc;cursor:default}.zt-calendar__bottom-info,.zt-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;line-height:14px}@media (max-width:350px){.zt-calendar__bottom-info,.zt-calendar__top-info{font-size:9px}}.zt-calendar__top-info{top:6px}.zt-calendar__bottom-info{display:none;bottom:6px}.zt-calendar__selected-day{font-weight:700;width:14.285vw;height:14.285vw;color:#fff;background-color:#0091fa;border-radius:calc(14.285vw / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__footer{-webkit-flex-shrink:0;flex-shrink:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-calendar__confirm{border-radius:0}
1
+ .zt-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff}.zt-calendar__popup.zt-popup--bottom,.zt-calendar__popup.zt-popup--top{height:80%}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__popup .zt-popup__close-icon{top:11px}.zt-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt-calendar__header-title{height:44px;font-weight:700;line-height:44px;text-align:left;padding-left:16px;position:relative}.zt-calendar__header-title .hint-block{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt-calendar__header-title::after{top:44px;left:0;content:'';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-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center}.zt-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt-calendar__header-title{font-size:16px}.zt-calendar__header-subtitle{font-size:14px}.zt-calendar__month-title{font-size:14px}.zt-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt-calendar__day,.zt-calendar__selected-day{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;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:14.285vw;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt-calendar__day--end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected,.zt-calendar__day--start,.zt-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}@media (pointer:coarse){.zt-calendar__day--end,.zt-calendar__day--multiple-middle{margin-left:-1px}}.zt-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--multiple-selected,.zt-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--middle{color:#000}.zt-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt-calendar__day--disabled{color:#c8c9cc;cursor:default}.zt-calendar__bottom-info,.zt-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;line-height:14px}@media (max-width:350px){.zt-calendar__bottom-info,.zt-calendar__top-info{font-size:9px}}.zt-calendar__top-info{top:6px}.zt-calendar__bottom-info{display:none;bottom:6px}.zt-calendar__selected-day{font-weight:700;width:14.285vw;height:14.285vw;color:#fff;background-color:#0091fa;border-radius:calc(14.285vw / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__footer{-webkit-flex-shrink:0;flex-shrink:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-calendar__confirm{border-radius:0}
@@ -318,7 +318,7 @@ var _default2 = (0, _utils.createComponent)({
318
318
  /* istanbul ignore else */
319
319
 
320
320
  if (currentMonth) {
321
- this.subtitle = currentMonth.title;
321
+ this.subtitle = currentMonth.getMonthTitle();
322
322
  }
323
323
  },
324
324
  onClickDay: function onClickDay(item) {
@@ -502,6 +502,7 @@ var _default2 = (0, _utils.createComponent)({
502
502
  "class": (0, _utils.bem)()
503
503
  }, [h(_Header.default, {
504
504
  "attrs": {
505
+ "color": this.color,
505
506
  "title": this.title,
506
507
  "showTitle": this.showTitle,
507
508
  "subtitle": this.subtitle,
@@ -39,7 +39,7 @@
39
39
 
40
40
  }
41
41
 
42
- &__header-title::before {
42
+ &__header-title .hint-block {
43
43
  position: absolute;
44
44
  content: '';
45
45
  top: 14px;
@@ -1 +1 @@
1
- .zt-cell{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;overflow:hidden;color:rgba(0,0,0,.6);font-size:16px;line-height:24px;background-color:#fff}.zt-cell--noFlex{display:block}.zt-cell--noFlex .zt-cell__title{margin-bottom:10px;width:100%;max-width:100%}.zt-cell::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-cell--borderless::after,.zt-cell:last-child::after{display:none}.zt-cell__label{margin-top:4px;color:#000;font-size:14px;line-height:18px}.zt-cell__title,.zt-cell__value{-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt-cell__placeholder{color:#c8c9cc}.zt-cell__value{position:relative;overflow:hidden;color:#000;text-align:right;vertical-align:middle;word-wrap:break-word}.zt-cell__value--alone{color:rgba(0,0,0,.6);text-align:left}.zt-cell__left-icon,.zt-cell__right-icon{height:24px;font-size:16px;line-height:24px}.zt-cell__left-icon{margin-right:4px}.zt-cell__right-icon{margin:auto 0;margin-left:4px;color:#969799}.zt-cell--clickable{cursor:pointer}.zt-cell--clickable:active{background-color:rgba(0,0,0,.04)}.zt-cell--center{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-cell--large{padding-top:12px;padding-bottom:12px}.zt-cell--large .zt-cell__title{font-size:16px}.zt-cell--large .zt-cell__label{font-size:14px}
1
+ .zt-cell{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:10px 16px;overflow:hidden;color:rgba(0,0,0,.6);font-size:16px;line-height:24px;background-color:#fff}.zt-cell--noFlex{display:block}.zt-cell--noFlex .zt-cell__title{margin-bottom:10px;width:100%;max-width:100%}.zt-cell::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:16px;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt-cell--borderless::after,.zt-cell:last-child::after{display:none}.zt-cell__label{margin-top:4px;color:#000;font-size:14px;line-height:18px}.zt-cell__title,.zt-cell__value{-webkit-box-flex:1;-webkit-flex:1;flex:1}.zt-cell__placeholder{color:#c8c9cc;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right}.zt-cell__value{position:relative;overflow:hidden;color:#000;text-align:right;vertical-align:middle;word-wrap:break-word}.zt-cell__value--alone{color:rgba(0,0,0,.6);text-align:left}.zt-cell__left-icon,.zt-cell__right-icon{height:24px;font-size:16px;line-height:24px}.zt-cell__left-icon{margin-right:4px}.zt-cell__right-icon{margin:auto 0;margin-left:4px;color:#969799}.zt-cell--clickable{cursor:pointer}.zt-cell--clickable:active{background-color:rgba(0,0,0,.04)}.zt-cell--center{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-cell--large{padding-top:12px;padding-bottom:12px}.zt-cell--large .zt-cell__title{font-size:16px}.zt-cell--large .zt-cell__label{font-size:14px}
@@ -45,6 +45,8 @@
45
45
 
46
46
  &__placeholder {
47
47
  color: @field-placeholder-text-color;
48
+ flex: 1;
49
+ text-align: right;
48
50
  }
49
51
 
50
52
  &__value {
@@ -3,6 +3,12 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
  var _default = {
6
+ props: {
7
+ color: {
8
+ type: String,
9
+ default: 'rgba(0,0,0,0.4)'
10
+ }
11
+ },
6
12
  render: function render() {
7
13
  var h = arguments[0];
8
14
  return h("svg", {
@@ -13,8 +19,7 @@ var _default = {
13
19
  }, [h("path", {
14
20
  "attrs": {
15
21
  "d": "M10,2 C14.418278,2 18,5.581722 18,10 C18,14.418278 14.418278,18 10,18 C5.581722,18 2,14.418278 2,10 C2,5.581722 5.581722,2 10,2 Z M6.46446609,6.46446609 C6.0739418,6.85499039 6.0739418,7.48815536 6.46446609,7.87867966 L8.586,10 L6.46446609,12.1213203 C6.10398213,12.4818043 6.0762526,13.0490354 6.38127749,13.4413266 L6.46446609,13.5355339 C6.85499039,13.9260582 7.48815536,13.9260582 7.87867966,13.5355339 L7.87867966,13.5355339 L10,11.414 L12.1213203,13.5355339 C12.5118446,13.9260582 13.1450096,13.9260582 13.5355339,13.5355339 C13.9260582,13.1450096 13.9260582,12.5118446 13.5355339,12.1213203 L11.414,10 L13.5355339,7.87867966 C13.8960179,7.51819569 13.9237474,6.95096464 13.6187225,6.55867343 L13.5355339,6.46446609 C13.1450096,6.0739418 12.5118446,6.0739418 12.1213203,6.46446609 L12.1213203,6.46446609 L10,8.586 L7.87867966,6.46446609 C7.48815536,6.0739418 6.85499039,6.0739418 6.46446609,6.46446609 Z",
16
- "fill": "#000",
17
- "opacity": ".4",
22
+ "fill": this.color,
18
23
  "fill-rule": "evenodd"
19
24
  }
20
25
  })]);
@@ -72,6 +72,8 @@ var _default = createComponent({
72
72
  errorMessage: String,
73
73
  errorMessageAlign: String,
74
74
  showWordLimit: Boolean,
75
+ inputColor: String,
76
+ iconColor: String,
75
77
  value: {
76
78
  type: [Number, String],
77
79
  default: ''
@@ -446,6 +448,7 @@ var _default = createComponent({
446
448
  var readonly = this.getProp('readonly');
447
449
  var inputSlot = this.slots('input');
448
450
  var inputAlign = this.getProp('inputAlign');
451
+ var inputColor = this.getProp('inputColor');
449
452
 
450
453
  if (inputSlot) {
451
454
  return h("div", {
@@ -473,7 +476,10 @@ var _default = createComponent({
473
476
  directives: [{
474
477
  name: 'model',
475
478
  value: this.value
476
- }]
479
+ }],
480
+ style: {
481
+ color: inputColor
482
+ }
477
483
  };
478
484
 
479
485
  if (type === 'textarea') {
@@ -678,7 +684,10 @@ var _default = createComponent({
678
684
  "click": this.onClear
679
685
  }
680
686
  }, [h(_ClearIcon.default, {
681
- "class": bem('zt-clear-size')
687
+ "class": bem('zt-clear-size'),
688
+ "attrs": {
689
+ "color": this.iconColor
690
+ }
682
691
  })]), this.type === 'password' && h("div", {
683
692
  "on": {
684
693
  "click": this.togglePwdVisible
@@ -686,11 +695,13 @@ var _default = createComponent({
686
695
  "style": "width:20px;height:20px;margin-left:12px;display:flex;justify-content:center;align-items:center;color:rgba(0,0,0,.4);"
687
696
  }, [this.showPassword ? h(_icon.default, {
688
697
  "attrs": {
689
- "name": "eye-open"
698
+ "name": "eye-open",
699
+ "color": this.iconColor
690
700
  }
691
701
  }) : h(_icon.default, {
692
702
  "attrs": {
693
- "name": "eye-closed"
703
+ "name": "eye-closed",
704
+ "color": this.iconColor
694
705
  }
695
706
  })]), this.genRightIcon(), slots('button') && h("div", {
696
707
  "class": bem('button')