iov-design 2.15.23 → 2.15.25

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.
@@ -497,13 +497,13 @@ var stopPropagation = function stopPropagation(e) {
497
497
  );
498
498
  },
499
499
  renderCheckIcon: function renderCheckIcon(h) {
500
- return h('i', { 'class': 'el-icon-check el-cascader-node__prefix' });
500
+ return h('i', { 'class': 'el-cascader-node__prefix' });
501
501
  },
502
502
  renderLoadingIcon: function renderLoadingIcon(h) {
503
503
  return h('i', { 'class': 'el-icon-loading el-cascader-node__postfix' });
504
504
  },
505
505
  renderExpandIcon: function renderExpandIcon(h) {
506
- return h('i', { 'class': 'el-icon-arrow-right el-cascader-node__postfix' });
506
+ return h('i', { 'class': 'iov-icon-right el-cascader-node__postfix' });
507
507
  },
508
508
  renderContent: function renderContent(h) {
509
509
  var panel = this.panel,
package/lib/cascader.js CHANGED
@@ -266,11 +266,24 @@ var render = function() {
266
266
  }
267
267
  },
268
268
  [
269
+ _vm.$slots.prefixLabel
270
+ ? _c(
271
+ "template",
272
+ { slot: "prefixLabel" },
273
+ [_vm._t("prefixLabel")],
274
+ 2
275
+ )
276
+ : _vm._e(),
277
+ _vm.$slots.prefix
278
+ ? _c("template", { slot: "prefix" }, [_vm._t("prefix")], 2)
279
+ : _vm._e(),
269
280
  _c("template", { slot: "suffix" }, [
270
281
  _vm.clearBtnVisible
271
282
  ? _c("i", {
272
283
  key: "clear",
273
- staticClass: "el-input__icon el-icon-circle-close",
284
+ staticClass:
285
+ "el-input__icon iov-icon-close-mini el-input__clear",
286
+ staticStyle: { "padding-right": "0" },
274
287
  on: {
275
288
  click: function($event) {
276
289
  $event.stopPropagation()
@@ -282,7 +295,7 @@ var render = function() {
282
295
  key: "arrow-down",
283
296
  class: [
284
297
  "el-input__icon",
285
- "el-icon-arrow-down",
298
+ "iov-icon-arrow-up",
286
299
  _vm.dropDownVisible && "is-reverse"
287
300
  ],
288
301
  on: {
@@ -306,6 +319,7 @@ var render = function() {
306
319
  "el-tag",
307
320
  {
308
321
  key: tag.key,
322
+ class: { "is-disabled": !tag.closable && tag.key !== -1 },
309
323
  attrs: {
310
324
  type: "info",
311
325
  size: _vm.tagSize,
@@ -474,12 +488,7 @@ var render = function() {
474
488
  }
475
489
  }
476
490
  },
477
- [
478
- _c("span", [_vm._v(_vm._s(item.text))]),
479
- item.checked
480
- ? _c("i", { staticClass: "el-icon-check" })
481
- : _vm._e()
482
- ]
491
+ [_c("span", [_vm._v(_vm._s(item.text))])]
483
492
  )
484
493
  })
485
494
  : _vm._t("empty", [
@@ -681,6 +690,13 @@ var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
681
690
  //
682
691
  //
683
692
  //
693
+ //
694
+ //
695
+ //
696
+ //
697
+ //
698
+ //
699
+ //
684
700
 
685
701
 
686
702
 
@@ -739,9 +755,9 @@ var PopperMixin = {
739
755
  };
740
756
 
741
757
  var InputSizeMap = {
742
- medium: 36,
743
- small: 32,
744
- mini: 28
758
+ medium: 32,
759
+ small: 30,
760
+ mini: 26
745
761
  };
746
762
 
747
763
  /* harmony default export */ var cascadervue_type_script_lang_js_ = ({
@@ -827,7 +843,10 @@ var InputSizeMap = {
827
843
  return this.size || _elFormItemSize || (this.$ELEMENT || {}).size;
828
844
  },
829
845
  tagSize: function tagSize() {
830
- return ['small', 'mini'].indexOf(this.realSize) > -1 ? 'mini' : 'small';
846
+ return this.realSize;
847
+ // return ['small', 'mini'].indexOf(this.realSize) > -1
848
+ // ? 'mini'
849
+ // : 'small';
831
850
  },
832
851
  isDisabled: function isDisabled() {
833
852
  return this.disabled || (this.elForm || {}).disabled;
@@ -932,7 +951,7 @@ var InputSizeMap = {
932
951
  var input = this.$refs.input;
933
952
 
934
953
  if (input && input.$el) {
935
- this.inputInitialHeight = input.$el.offsetHeight || InputSizeMap[this.realSize] || 40;
954
+ this.inputInitialHeight = Math.max(input.$el.offsetHeight, InputSizeMap[this.realSize]) || 36;
936
955
  }
937
956
 
938
957
  if (!this.isEmptyValue(this.value)) {
@@ -1135,7 +1154,7 @@ var InputSizeMap = {
1135
1154
  if (collapseTags) {
1136
1155
  tags.push({
1137
1156
  key: -1,
1138
- text: '+ ' + restCount,
1157
+ text: '+' + restCount,
1139
1158
  closable: false
1140
1159
  });
1141
1160
  } else {
@@ -1262,6 +1281,9 @@ var InputSizeMap = {
1262
1281
  if (!inputInner) return;
1263
1282
 
1264
1283
  var tags = $el.querySelector('.el-cascader__tags');
1284
+ var groupPrefix = $el.querySelector('.el-input-group--prefix');
1285
+ var prefix = $el.querySelector('.el-input__prefix');
1286
+ var prefixLabel = $el.querySelector('.el-input-group__prefix-label');
1265
1287
  var suggestionPanelEl = null;
1266
1288
 
1267
1289
  if (suggestionPanel && (suggestionPanelEl = suggestionPanel.$el)) {
@@ -1271,8 +1293,15 @@ var InputSizeMap = {
1271
1293
 
1272
1294
  if (tags) {
1273
1295
  var offsetHeight = Math.round(tags.getBoundingClientRect().height);
1274
- var height = Math.max(offsetHeight + 6, inputInitialHeight) + 'px';
1275
- inputInner.style.height = height;
1296
+ var height = Math.max(offsetHeight + 4, inputInitialHeight) + 'px';
1297
+ var inputPaddingLeft = groupPrefix || prefix ? Math.round(window.getComputedStyle(inputInner).paddingLeft.replace(/px/, '')) : 0;
1298
+ var prefixLabelWidth = prefixLabel && Math.round(prefixLabel.getBoundingClientRect().width) || 0;
1299
+ if (groupPrefix) {
1300
+ groupPrefix.style.height = height;
1301
+ } else {
1302
+ inputInner.style.height = height;
1303
+ }
1304
+ tags.style.left = prefixLabelWidth + inputPaddingLeft + 'px';
1276
1305
  if (this.dropDownVisible) {
1277
1306
  this.updatePopper();
1278
1307
  }