zartui 2.0.2 → 2.0.4

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.4';
317
317
  exports.version = version;
318
318
 
319
319
  function install(Vue) {
package/lib/row/index.css CHANGED
@@ -1 +1 @@
1
- .zt-row::after{display:table;clear:both;content:''}.zt-row--flex{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.zt-row--flex::after{display:none}.zt-row--justify-center{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.zt-row--justify-end{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.zt-row--justify-space-between{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.zt-row--justify-space-around{-webkit-justify-content:space-around;justify-content:space-around}.zt-row--align-center{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-row--align-bottom{-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}
1
+ .zt-row{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.zt-row--nowrap{-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.zt-row--justify-center{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.zt-row--justify-end{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.zt-row--justify-space-between{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.zt-row--justify-space-around{-webkit-justify-content:space-around;justify-content:space-around}.zt-row--align-center{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-row--align-bottom{-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}
@@ -1,19 +1,11 @@
1
1
  @import '../style/var';
2
2
 
3
3
  .zt-row {
4
- &::after {
5
- display: table;
6
- clear: both;
7
- content: '';
8
- }
9
-
10
- &--flex {
11
- display: flex;
12
- flex-wrap: wrap;
4
+ display: flex;
5
+ flex-wrap: wrap;
13
6
 
14
- &::after {
15
- display: none;
16
- }
7
+ &--nowrap {
8
+ flex-wrap: nowrap;
17
9
  }
18
10
 
19
11
  &--justify-center {
@@ -177,7 +177,7 @@
177
177
  );
178
178
  @button-default-font-size: @font-size-lg;
179
179
  @button-default-color: @text-color-3;
180
- @button-default-background-color: @gray-9;
180
+ @button-default-background-color: transparent;
181
181
  @button-default-border-color: @border-color-4;
182
182
  @button-primary-color: @white;
183
183
  @button-primary-background-color: linear-gradient(
@@ -302,7 +302,7 @@
302
302
 
303
303
  // Checkbox
304
304
  @checkbox-size: 20px;
305
- @checkbox-padding: 14px 0;
305
+ @checkbox-padding: 12px 0;
306
306
  @checkbox-border-color: @border-color-3;
307
307
  @checkbox-transition-duration: @animation-duration-fast;
308
308
  @checkbox-label-margin: @padding-xs;
@@ -392,7 +392,7 @@
392
392
  @dialog-small-screen-width: 90%;
393
393
  @dialog-font-size: @font-size-lg;
394
394
  @dialog-transition: @animation-duration-base;
395
- @dialog-border-radius: 4px;
395
+ @dialog-border-radius: 12px;
396
396
  @dialog-background-color: @white;
397
397
  @dialog-header-font-weight: @font-weight-bold;
398
398
  @dialog-header-line-height: 24px;
@@ -410,13 +410,14 @@
410
410
  @dialog-button-height: 44px;
411
411
  @dialog-round-button-height: 36px;
412
412
  @dialog-confirm-button-text-color: @blue;
413
+ @dialog-footer-padding: 0 32px 24px 32px;
413
414
 
414
415
  // Divider
415
416
  @divider-margin: @padding-md 0;
416
417
  @divider-text-color: @gray-6;
417
418
  @divider-font-size: @font-size-md;
418
419
  @divider-line-height: 24px;
419
- @divider-border-color: @border-color;
420
+ @divider-border-color: @gray-3;
420
421
  @divider-content-padding: @padding-md;
421
422
  @divider-content-left-width: 10%;
422
423
  @divider-content-right-width: 10%;
@@ -440,14 +441,14 @@
440
441
 
441
442
  // Empty
442
443
  @empty-background-color: @white;
443
- @empty-padding: @padding-base * 8 @padding-base * 12;
444
- @empty-image-width:280px;
445
- @empty-image-height:260px;
446
- @empty-description-margin-top: @padding-xs;
447
- @empty-description-padding: 0 2px;
448
- @empty-description-color: @black;
444
+ @empty-padding: @padding-base * 8 0;
445
+ @empty-image-width:240px;
446
+ @empty-image-height:220px;
447
+ @empty-description-margin-top: @padding-lg;
448
+ @empty-description-padding: 0 60px;
449
+ @empty-description-color: @text-color-3;
449
450
  @empty-description-font-size: @font-size-lg;
450
- @empty-description-line-height: @line-height-xl;
451
+ @empty-description-line-height: @line-height-md;
451
452
  @empty-bottom-margin-top: 24px;
452
453
  @empty-description-max-lines: 5;
453
454
 
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,21 +31135,23 @@ 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;
31137
31142
  return h("div", {
31138
- "class": [BORDER_TOP, Dialog_bem('footer')]
31143
+ "class": 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": {
@@ -36189,15 +36200,11 @@ var field_createNamespace = Object(utils["b" /* createNamespace */])('field'),
36189
36200
  scopedSlots.title = function () {
36190
36201
  return Label;
36191
36202
  };
36192
- }
36203
+ } // const extra = this.slots('extra');
36204
+ // if (extra) {
36205
+ // scopedSlots.extra = () => extra;
36206
+ // }
36193
36207
 
36194
- var extra = this.slots('extra');
36195
-
36196
- if (extra) {
36197
- scopedSlots.extra = function () {
36198
- return extra;
36199
- };
36200
- }
36201
36208
 
36202
36209
  if (this.direction === 'column') {
36203
36210
  var _bem;
@@ -36231,7 +36238,7 @@ var field_createNamespace = Object(utils["b" /* createNamespace */])('field'),
36231
36238
  "click": this.onClick
36232
36239
  }
36233
36240
  }, [h("div", {
36234
- "class": field_bem('body')
36241
+ "class": [field_bem('body'), this.type === "textarea" ? field_bem("body-textarea") : '']
36235
36242
  }, [this.genInput(), this.showClear &&
36236
36243
  /*<Icon
36237
36244
  name="clear"
@@ -36264,15 +36271,17 @@ var field_createNamespace = Object(utils["b" /* createNamespace */])('field'),
36264
36271
  "name": "eye-closed",
36265
36272
  "color": this.iconColor
36266
36273
  }
36267
- })]), this.genWordLimit(), this.type === "textarea" ? h("div", {
36274
+ })]), this.type === "textarea" ? h("div", {
36268
36275
  "class": field_bem("right-icon-box")
36276
+ }, [this.genWordLimit(), h("div", {
36277
+ "class": field_bem("icon-area")
36269
36278
  }, [this.genRightIcon(), slots('button') && h("div", {
36270
36279
  "class": field_bem('button')
36271
- }, [slots('button')])]) : h("div", {
36280
+ }, [slots('button')])]), slots('extra')]) : h("div", {
36272
36281
  "class": field_bem("right-icon-box-row")
36273
- }, [this.genRightIcon(), slots('button') && h("div", {
36282
+ }, [this.genWordLimit(), this.genRightIcon(), slots('button') && h("div", {
36274
36283
  "class": field_bem('button')
36275
- }, [slots('button')])])])]), this.genMessage()]);
36284
+ }, [slots('button')]), slots('extra')])])]), this.genMessage()]);
36276
36285
  }
36277
36286
 
36278
36287
  return h("div", {
@@ -36339,7 +36348,7 @@ var field_createNamespace = Object(utils["b" /* createNamespace */])('field'),
36339
36348
  }
36340
36349
  })]), this.genRightIcon(), slots('button') && h("div", {
36341
36350
  "class": field_bem('button')
36342
- }, [slots('button')])]), this.genWordLimit()]), this.genMessage()]);
36351
+ }, [slots('button')])]), this.genWordLimit(), slots('extra')]), this.genMessage()]);
36343
36352
  }
36344
36353
  }));
36345
36354
  // CONCATENATED MODULE: ./es/fold-dialog/index.js
@@ -52588,7 +52597,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
52588
52597
 
52589
52598
 
52590
52599
 
52591
- var version = '2.0.2';
52600
+ var version = '2.0.4';
52592
52601
 
52593
52602
  function install(Vue) {
52594
52603
  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];