zartui 2.0.19 → 2.0.21

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.
@@ -1 +1 @@
1
- .zt-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:12px 0}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-left:12px}.zt-checkbox__icon{-webkit-box-flex:0;-webkit-flex:none;flex:none;height:1em;font-size:20px;line-height:1em;cursor:pointer}.zt-checkbox__icon .zt-icon{display:block;box-sizing:border-box;width:1em;height:1em;color:transparent;font-size:1em;line-height:.95em;text-align:center;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);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-checkbox__icon--round .zt-icon{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-checkbox__icon--checked .zt-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-checkbox__label{margin-left:8px;color:#000;font-size:14px;line-height:20px}.zt-checkbox__label--left{margin:0 8px 0 0}.zt-checkbox__label--disabled{color:#c8c9cc}
1
+ .zt-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-left:12px}.zt-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt-checkbox__icon .zt-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid rgba(45,75,115,.13);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-checkbox__icon--round .zt-icon{border-radius:100%}.zt-checkbox__icon--checked .zt-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-checkbox__label{margin-left:8px;color:#000;font-size:14px;line-height:16px}.zt-checkbox__label--left{margin:0 8px 0 0}.zt-checkbox__label--disabled{color:#c8c9cc}
@@ -20,33 +20,24 @@
20
20
  }
21
21
 
22
22
  &__icon {
23
- flex: none;
24
- height: 1em;
25
23
  font-size: @checkbox-size;
26
- line-height: 1em;
27
24
  cursor: pointer;
28
-
25
+ box-sizing: border-box;
29
26
  .zt-icon {
30
- display: block;
31
- box-sizing: border-box;
27
+ display: flex;
28
+ justify-content: center;
29
+ align-items: center;
32
30
  width: 1em;
33
31
  height: 1em;
34
32
  color: transparent;
35
- font-size: 1em;
36
- line-height: 0.95em;
37
33
  text-align: center;
38
- background-image: @gradient-white-1;
39
- border: 1px solid @radio-border-color;
40
- box-shadow: -1px -1px 2px 0 #FFF, 0 0 3px 0 rgba(45,75,115,0.20);
34
+ border: 1px solid @checkbox-border-color;
41
35
  transition-duration: @checkbox-transition-duration;
42
36
  transition-property: color, border-color, background-color;
43
37
  }
44
38
 
45
39
  &--round {
46
40
  .zt-icon {
47
- display: flex;
48
- justify-content: center;
49
- align-items: center;
50
41
  border-radius: 100%;
51
42
  }
52
43
  }
@@ -56,7 +47,7 @@
56
47
  color: @white;
57
48
  background: @checkbox-checked-icon-color;
58
49
  box-shadow: inset 1px 1px 2px 0 @gray-a2;
59
- border: 1px solid rgba(255,255,255,0.50);
50
+ border: 1px solid @white-1;
60
51
  }
61
52
  }
62
53
 
@@ -73,7 +64,7 @@
73
64
  &--disabled&--checked {
74
65
  .zt-icon {
75
66
  opacity: .4;
76
- background: @radio-checked-icon-color;
67
+ background: @checkbox-checked-icon-color;
77
68
  color: @white;
78
69
  }
79
70
  }
@@ -123,6 +123,15 @@ export default createComponent({
123
123
  formatValue: function formatValue(value) {
124
124
  var _this2 = this;
125
125
 
126
+ if (typeof value === "string") {
127
+ try {
128
+ value = value.replace(/-/g, "/");
129
+ value = new Date(value);
130
+ } catch (error) {
131
+ console.error("datetime-picker strToDate error", error);
132
+ }
133
+ }
134
+
126
135
  if (!isDate(value)) {
127
136
  return null;
128
137
  }
@@ -174,6 +174,15 @@ export default createComponent({
174
174
  })
175
175
  }, [h("div", _mergeJSXProps([{}, data]))]);
176
176
  }
177
+ },
178
+ genBottom: function genBottom(bottomSlot) {
179
+ var h = this.$createElement;
180
+
181
+ if (bottomSlot) {
182
+ return h("div", {
183
+ "class": bem('bottom')
184
+ }, [bottomSlot]);
185
+ }
177
186
  }
178
187
  },
179
188
  render: function render() {
@@ -186,6 +195,7 @@ export default createComponent({
186
195
  var message = this.message;
187
196
  var messageSlot = this.slots();
188
197
  var customTitle = this.slots('title');
198
+ var bottomSlot = this.slots('bottom');
189
199
  var title = customTitle || this.title;
190
200
  var Title = title && h("div", {
191
201
  "class": bem('header', {
@@ -216,6 +226,6 @@ export default createComponent({
216
226
  "style": {
217
227
  width: addUnit(this.width)
218
228
  }
219
- }, [Title, this.genContent(title, messageSlot), this.genButtons()])]);
229
+ }, [Title, this.genContent(title, messageSlot), this.genButtons(), this.genBottom(bottomSlot)])]);
220
230
  }
221
231
  });
package/es/index.js CHANGED
@@ -76,7 +76,7 @@ import Tag from './tag';
76
76
  import Timeline from './timeline';
77
77
  import Toast from './toast';
78
78
  import Uploader from './uploader';
79
- var version = '2.0.19';
79
+ var version = '2.0.21';
80
80
 
81
81
  function install(Vue) {
82
82
  var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Grid, GridItem, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MediaPicker, MediaPlayer, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, PdfViewer, PdfViewerV2, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, Timeline, Toast, Uploader];
@@ -98,12 +98,16 @@ export var CheckboxMixin = function CheckboxMixin(_ref) {
98
98
  }
99
99
  }, [this.slots('icon', {
100
100
  checked: checked
101
- }) || h(Icon, {
101
+ }) || (role === 'radio' ? h(Icon, {
102
+ "style": this.iconStyle
103
+ }, [checked ? h("div", {
104
+ "class": bem('dot')
105
+ }) : '']) : h(Icon, {
102
106
  "attrs": {
103
- "name": role === 'radio' ? "radio-round" : "checkBox-select"
107
+ "name": "checkBox-select"
104
108
  },
105
109
  "style": this.iconStyle
106
- })]);
110
+ }))]);
107
111
  },
108
112
  genLabel: function genLabel() {
109
113
  var h = this.$createElement;
@@ -86,6 +86,10 @@ export default createComponent({
86
86
  _this.children.forEach(function (child) {
87
87
  child.setConfirmIndex();
88
88
  });
89
+
90
+ _this.children.forEach(function (child) {
91
+ child.recordConfirmIndex();
92
+ });
89
93
  });
90
94
  }
91
95
  },
@@ -1 +1 @@
1
- .zt-radio{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-radio--disabled{cursor:not-allowed}.zt-radio--label-disabled{cursor:default}.zt-radio--horizontal{margin-left:12px}.zt-radio__icon{font-size: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;font-size:14px;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)}
1
+ .zt-radio{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-radio--disabled{cursor:not-allowed}.zt-radio--label-disabled{cursor:default}.zt-radio--horizontal{margin-left:12px}.zt-radio__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt-radio__icon .zt-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid rgba(45,75,115,.13);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-radio__icon--round .zt-icon{border-radius:100%}.zt-radio__icon--checked .zt-icon{color:#fff;background-color:#0091fa;border:1px solid rgba(255,255,255,.5);box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2)}.zt-radio__icon--disabled{cursor:not-allowed}.zt-radio__icon--disabled .zt-icon{background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%);border:1px solid rgba(45,75,115,.08);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2)}.zt-radio__icon--disabled.zt-radio__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-radio__dot{width:calc(16px * .5);height:calc(16px * .5);background-color:#fff;border-radius:50%}.zt-radio__label{margin-left:8px;color:#000;font-size:14px;line-height:16px}.zt-radio__label--left{margin:0 8px 0 0}.zt-radio__label--disabled{color:#c8c9cc}
@@ -22,23 +22,22 @@
22
22
  &__icon {
23
23
  font-size: @radio-size;
24
24
  cursor: pointer;
25
-
25
+ box-sizing: border-box;
26
26
  .zt-icon {
27
- display: block;
28
- box-sizing: border-box;
27
+ display: flex;
28
+ justify-content: center;
29
+ align-items: center;
29
30
  width: 1em;
30
31
  height: 1em;
31
32
  color: transparent;
32
- font-size: inherit;
33
+ text-align: center;
34
+ border: 1px solid @radio-border-color;
33
35
  transition-duration: @radio-transition-duration;
34
36
  transition-property: color, border-color, background-color;
35
37
  }
36
38
 
37
39
  &--round {
38
40
  .zt-icon {
39
- display: flex;
40
- justify-content: center;
41
- align-items: center;
42
41
  border-radius: 100%;
43
42
  }
44
43
  }
@@ -47,7 +46,7 @@
47
46
  .zt-icon {
48
47
  color: @white;
49
48
  background-color: @radio-checked-icon-color;
50
- border: 1px solid @checkbox-disabled-border-color;
49
+ border: 1px solid @white-1;
51
50
  box-shadow: inset 1px 1px 2px 0 @gray-a2;
52
51
  }
53
52
  }
@@ -71,6 +70,12 @@
71
70
  }
72
71
  }
73
72
 
73
+ &__dot {
74
+ width: calc(@radio-size * 0.5);
75
+ height: calc(@radio-size * 0.5);
76
+ background-color: @white;
77
+ border-radius: 50%;
78
+ }
74
79
  &__label {
75
80
  margin-left: @radio-label-margin;
76
81
  color: @black;
@@ -86,15 +91,3 @@
86
91
  }
87
92
  }
88
93
  }
89
-
90
- .zt-radio__disable-icon {
91
- .zt-radio__icon--round:not(.zt-radio__icon--disabled,.zt-radio__icon--checked){
92
- width: 1em;
93
- height: 1em;
94
- box-sizing: border-box;
95
- border-radius: 100%;
96
- background-image: @gradient-white-1;
97
- border: 1px solid @radio-border-color;
98
- box-shadow: -1px -1px 2px 0 #FFF, 0 0 3px 0 rgba(45,75,115,0.20);
99
- }
100
- }
package/es/style/var.less CHANGED
@@ -299,8 +299,8 @@
299
299
  @cell-group-inset-title-padding: @padding-md @padding-md @padding-xs @padding-xl;
300
300
 
301
301
  // Checkbox
302
- @checkbox-size: 20px;
303
- @checkbox-padding: 12px 0;
302
+ @checkbox-size: 16px;
303
+ @checkbox-padding: 14px 0;
304
304
  @checkbox-border-color: @border-color-3;
305
305
  @checkbox-transition-duration: @animation-duration-fast;
306
306
  @checkbox-label-margin: @padding-xs;
@@ -732,7 +732,7 @@
732
732
  @pull-refresh-head-background:@background-color;
733
733
 
734
734
  // Radio
735
- @radio-size: 20px;
735
+ @radio-size: 16px;
736
736
  @radio-padding: 14px 0;
737
737
  @radio-border-color: @border-color-3;
738
738
  @radio-transition-duration: @animation-duration-fast;
@@ -1 +1 @@
1
- .zt-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:12px 0}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-left:12px}.zt-checkbox__icon{-webkit-box-flex:0;-webkit-flex:none;flex:none;height:1em;font-size:20px;line-height:1em;cursor:pointer}.zt-checkbox__icon .zt-icon{display:block;box-sizing:border-box;width:1em;height:1em;color:transparent;font-size:1em;line-height:.95em;text-align:center;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);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-checkbox__icon--round .zt-icon{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-checkbox__icon--checked .zt-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-checkbox__label{margin-left:8px;color:#000;font-size:14px;line-height:20px}.zt-checkbox__label--left{margin:0 8px 0 0}.zt-checkbox__label--disabled{color:#c8c9cc}
1
+ .zt-checkbox{display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:14px 0}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-left:12px}.zt-checkbox__icon{font-size:16px;cursor:pointer;box-sizing:border-box}.zt-checkbox__icon .zt-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid rgba(45,75,115,.13);-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:color,border-color,background-color;transition-property:color,border-color,background-color}.zt-checkbox__icon--round .zt-icon{border-radius:100%}.zt-checkbox__icon--checked .zt-icon{color:#fff;background:#0091fa;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.5)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:1px solid rgba(255,255,255,.5);box-shadow:-1px -1px 2px 0 #fff,0 0 3px 0 rgba(45,75,115,.2);background-image:-webkit-linear-gradient(316deg,#e1e6eb 0,#e5edf5 100%);background-image:linear-gradient(134deg,#e1e6eb 0,#e5edf5 100%)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:.4;background:#0091fa;color:#fff}.zt-checkbox__label{margin-left:8px;color:#000;font-size:14px;line-height:16px}.zt-checkbox__label--left{margin:0 8px 0 0}.zt-checkbox__label--disabled{color:#c8c9cc}
@@ -20,33 +20,24 @@
20
20
  }
21
21
 
22
22
  &__icon {
23
- flex: none;
24
- height: 1em;
25
23
  font-size: @checkbox-size;
26
- line-height: 1em;
27
24
  cursor: pointer;
28
-
25
+ box-sizing: border-box;
29
26
  .zt-icon {
30
- display: block;
31
- box-sizing: border-box;
27
+ display: flex;
28
+ justify-content: center;
29
+ align-items: center;
32
30
  width: 1em;
33
31
  height: 1em;
34
32
  color: transparent;
35
- font-size: 1em;
36
- line-height: 0.95em;
37
33
  text-align: center;
38
- background-image: @gradient-white-1;
39
- border: 1px solid @radio-border-color;
40
- box-shadow: -1px -1px 2px 0 #FFF, 0 0 3px 0 rgba(45,75,115,0.20);
34
+ border: 1px solid @checkbox-border-color;
41
35
  transition-duration: @checkbox-transition-duration;
42
36
  transition-property: color, border-color, background-color;
43
37
  }
44
38
 
45
39
  &--round {
46
40
  .zt-icon {
47
- display: flex;
48
- justify-content: center;
49
- align-items: center;
50
41
  border-radius: 100%;
51
42
  }
52
43
  }
@@ -56,7 +47,7 @@
56
47
  color: @white;
57
48
  background: @checkbox-checked-icon-color;
58
49
  box-shadow: inset 1px 1px 2px 0 @gray-a2;
59
- border: 1px solid rgba(255,255,255,0.50);
50
+ border: 1px solid @white-1;
60
51
  }
61
52
  }
62
53
 
@@ -73,7 +64,7 @@
73
64
  &--disabled&--checked {
74
65
  .zt-icon {
75
66
  opacity: .4;
76
- background: @radio-checked-icon-color;
67
+ background: @checkbox-checked-icon-color;
77
68
  color: @white;
78
69
  }
79
70
  }
@@ -137,6 +137,15 @@ var _default2 = createComponent({
137
137
  formatValue: function formatValue(value) {
138
138
  var _this2 = this;
139
139
 
140
+ if (typeof value === "string") {
141
+ try {
142
+ value = value.replace(/-/g, "/");
143
+ value = new Date(value);
144
+ } catch (error) {
145
+ console.error("datetime-picker strToDate error", error);
146
+ }
147
+ }
148
+
140
149
  if (!(0, _date.isDate)(value)) {
141
150
  return null;
142
151
  }
@@ -185,6 +185,15 @@ var _default = createComponent({
185
185
  })
186
186
  }, [h("div", (0, _babelHelperVueJsxMergeProps.default)([{}, data]))]);
187
187
  }
188
+ },
189
+ genBottom: function genBottom(bottomSlot) {
190
+ var h = this.$createElement;
191
+
192
+ if (bottomSlot) {
193
+ return h("div", {
194
+ "class": bem('bottom')
195
+ }, [bottomSlot]);
196
+ }
188
197
  }
189
198
  },
190
199
  render: function render() {
@@ -197,6 +206,7 @@ var _default = createComponent({
197
206
  var message = this.message;
198
207
  var messageSlot = this.slots();
199
208
  var customTitle = this.slots('title');
209
+ var bottomSlot = this.slots('bottom');
200
210
  var title = customTitle || this.title;
201
211
  var Title = title && h("div", {
202
212
  "class": bem('header', {
@@ -227,7 +237,7 @@ var _default = createComponent({
227
237
  "style": {
228
238
  width: (0, _utils.addUnit)(this.width)
229
239
  }
230
- }, [Title, this.genContent(title, messageSlot), this.genButtons()])]);
240
+ }, [Title, this.genContent(title, messageSlot), this.genButtons(), this.genBottom(bottomSlot)])]);
231
241
  }
232
242
  });
233
243