zartui 2.0.2 → 2.0.3

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/lib/index.js CHANGED
@@ -313,7 +313,7 @@ exports.Toast = _toast.default;
313
313
  var _uploader = _interopRequireDefault(require("./uploader"));
314
314
 
315
315
  exports.Uploader = _uploader.default;
316
- var version = '2.0.2';
316
+ var version = '2.0.3';
317
317
  exports.version = version;
318
318
 
319
319
  function install(Vue) {
package/lib/zart.js CHANGED
@@ -30967,7 +30967,13 @@ var DatePicker_createNamespace = Object(utils["b" /* createNamespace */])('date-
30967
30967
  updateColumnValue: function updateColumnValue() {
30968
30968
  var _this5 = this;
30969
30969
 
30970
- var value = this.innerValue ? this.innerValue : this.minDate;
30970
+ var defaultValue = new Date();
30971
+
30972
+ if (defaultValue.getTime() < this.minDate.getTime() || defaultValue.getTime() > this.maxDate.getTime()) {
30973
+ defaultValue = this.minDate;
30974
+ }
30975
+
30976
+ var value = this.innerValue ? this.innerValue : defaultValue;
30971
30977
  var formatter = this.formatter;
30972
30978
  var values = this.originColumns.map(function (column) {
30973
30979
  switch (column.type) {
@@ -31129,8 +31135,7 @@ var Dialog_createNamespace = Object(utils["b" /* createNamespace */])('dialog'),
31129
31135
  this.$emit('closed');
31130
31136
  },
31131
31137
  genButtons: function genButtons() {
31132
- var _this2 = this,
31133
- _ref;
31138
+ var _this2 = this;
31134
31139
 
31135
31140
  var h = this.$createElement;
31136
31141
  var multiple = this.showCancelButton && this.showConfirmButton;
@@ -31138,12 +31143,15 @@ var Dialog_createNamespace = Object(utils["b" /* createNamespace */])('dialog'),
31138
31143
  "class": [BORDER_TOP, Dialog_bem('footer')]
31139
31144
  }, [this.showCancelButton && h(es_button, {
31140
31145
  "attrs": {
31141
- "size": "large",
31146
+ "size": "normal",
31147
+ "block": true,
31142
31148
  "loading": this.loading.cancel,
31143
31149
  "text": this.cancelButtonText || Dialog_t('cancel')
31144
31150
  },
31145
31151
  "class": Dialog_bem('cancel'),
31146
31152
  "style": {
31153
+ marginRigth: "4px",
31154
+ backgroundColor: "white",
31147
31155
  color: this.cancelButtonColor
31148
31156
  },
31149
31157
  "on": {
@@ -31153,12 +31161,15 @@ var Dialog_createNamespace = Object(utils["b" /* createNamespace */])('dialog'),
31153
31161
  }
31154
31162
  }), this.showConfirmButton && h(es_button, {
31155
31163
  "attrs": {
31156
- "size": "large",
31164
+ "type": "primary",
31165
+ "size": "normal",
31157
31166
  "loading": this.loading.confirm,
31158
- "text": this.confirmButtonText || Dialog_t('confirm')
31167
+ "text": this.confirmButtonText || Dialog_t('confirm'),
31168
+ "block": true
31159
31169
  },
31160
- "class": [Dialog_bem('confirm'), (_ref = {}, _ref[BORDER_LEFT] = multiple, _ref)],
31170
+ "class": Dialog_bem('confirm'),
31161
31171
  "style": {
31172
+ marginLeft: "4px",
31162
31173
  color: this.confirmButtonColor
31163
31174
  },
31164
31175
  "on": {
@@ -52588,7 +52599,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
52588
52599
 
52589
52600
 
52590
52601
 
52591
- var version = '2.0.2';
52602
+ var version = '2.0.3';
52592
52603
 
52593
52604
  function install(Vue) {
52594
52605
  var components = [action_sheet, es_area, avatar, back_top, badge, es_button, calendar, cascader, cell, cell_group, es_checkbox, checkbox_group, col, collapse, collapse_item, count_down, datetime_picker, dialog, divider, dropdown_item, dropdown_menu, empty, es_field, fold_dialog, es_form, grid, grid_item, hierarchy_select, es_icon, es_image, image_preview, index_anchor, index_bar, es_info, lazyload, es_list, es_loading, locale["a" /* default */], media_picker, media_player, multiple_picker, nav_bar, notice_bar, number_keyboard, es_overlay, password_input, pdf_viewer, picker, popover, popup, pull_refresh, es_radio, radio_group, rate, row, search, signature, skeleton, slider, es_step, stepper, es_steps, es_sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, table, tabs, es_tag, timeline, es_toast, uploader];