iov-design 2.15.110 → 2.15.111

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.
@@ -199,12 +199,12 @@ function normalizeComponent(
199
199
  // ESM COMPAT FLAG
200
200
  __webpack_require__.r(__webpack_exports__);
201
201
 
202
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=template&id=725e70de
203
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"el-breadcrumb__item"},[_c('span',{ref:"link",class:['el-breadcrumb__inner', _vm.to ? 'is-link' : ''],attrs:{"role":"link"}},[_vm._t("default")],2),(_vm.separatorClass)?_c('i',{staticClass:"el-breadcrumb__separator",class:_vm.separatorClass}):_c('span',{staticClass:"el-breadcrumb__separator",attrs:{"role":"presentation"}},[_vm._v(_vm._s(_vm.separator))])])}
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=template&id=b53a3aa8
203
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"el-breadcrumb__item"},[_c('span',{ref:"link",class:['el-breadcrumb__inner', (_vm.to || _vm.hasLinkSlot) ? 'is-link' : ''],attrs:{"role":"link"}},[_vm._t("default")],2),(_vm.separatorClass)?_c('i',{staticClass:"el-breadcrumb__separator",class:_vm.separatorClass}):_c('span',{staticClass:"el-breadcrumb__separator",attrs:{"role":"presentation"}},[_vm._v(_vm._s(_vm.separator))])])}
204
204
  var staticRenderFns = []
205
205
  render._withStripped = true
206
206
 
207
- // CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=template&id=725e70de
207
+ // CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=template&id=b53a3aa8
208
208
 
209
209
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=script&lang=js
210
210
  //
@@ -229,7 +229,8 @@ render._withStripped = true
229
229
  data: function data() {
230
230
  return {
231
231
  separator: '',
232
- separatorClass: ''
232
+ separatorClass: '',
233
+ hasLinkSlot: false
233
234
  };
234
235
  },
235
236
 
@@ -243,6 +244,8 @@ render._withStripped = true
243
244
  this.separatorClass = this.elBreadcrumb.separatorClass;
244
245
  var link = this.$refs.link;
245
246
  link.setAttribute('role', 'link');
247
+ var firstChild = link.firstElementChild;
248
+ this.hasLinkSlot = firstChild && firstChild.tagName.toLowerCase() === 'a';
246
249
  link.addEventListener('click', function (_) {
247
250
  var to = _this.to,
248
251
  $router = _this.$router;
package/lib/cascader.js CHANGED
@@ -311,7 +311,7 @@ module.exports = require("iov-design/lib/mixins/locale");
311
311
  // ESM COMPAT FLAG
312
312
  __webpack_require__.r(__webpack_exports__);
313
313
 
314
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/cascader.vue?vue&type=template&id=0bb86285
314
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader/src/cascader.vue?vue&type=template&id=75d176f4
315
315
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(function () { return _vm.toggleDropDownVisible(false); }),expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:[
316
316
  'el-cascader',
317
317
  _vm.realSize && ("el-cascader--" + _vm.realSize),
@@ -320,14 +320,14 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
320
320
  'el-input__icon',
321
321
  'iov-icon-arrow-up',
322
322
  _vm.dropDownVisible && 'is-reverse'
323
- ],on:{"click":function($event){$event.stopPropagation();_vm.toggleDropDownVisible()}}})])],2),(_vm.multiple && _vm.collapseTags && _vm.checkedNodes.length)?_c('transition-group',{staticClass:"el-cascader__tags",on:{"after-leave":_vm.updateStyle}},[_vm._l((_vm.presentTags),function(tag,index){return [(_vm.collapseTags && index <= _vm.multipleLimitShow - 1)?_c('el-tag',{key:tag.key,class:{'is-disabled': !tag.closable && tag.key !== -1},attrs:{"type":"info","size":_vm.tagSize,"hit":tag.hitState,"maxWidth":_vm.maxWidth,"closable":tag.closable,"disable-transitions":""},on:{"close":function($event){_vm.deleteTag(tag)}}},[_c('span',[_vm._v(_vm._s(tag.text))])]):_vm._e()]}),(_vm.collapseTags && (_vm.checkedNodes.length > 1 && _vm.checkedNodes.length > _vm.multipleLimitShow || _vm.checkedNodes.length > 0 && _vm.collapseTagsFixed))?_c('el-tag',{key:"count",ref:"tagsCount",staticClass:"el-cascader__tags-count",class:{'el-cascader__tags-count-fixed': _vm.collapseTagsFixed},attrs:{"closable":false,"size":_vm.tagSize,"type":"info","disable-transitions":""}},[_c('span',{staticClass:"el-cascader__tags-text"},[_vm._v(_vm._s(_vm.collapseTagsFixed ? '' : '+')+_vm._s(_vm.collapseTagsFixed ? _vm.checkedNodes.length : _vm.checkedNodes.length - _vm.multipleLimitShow)+_vm._s(_vm.collapseTagsSuffix))])]):_vm._e(),(_vm.filterable && !_vm.isDisabled)?_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.inputValue),expression:"inputValue",modifiers:{"trim":true}}],staticClass:"el-cascader__search-input",attrs:{"type":"text","placeholder":_vm.presentTags.length ? '' : _vm.placeholder},domProps:{"value":(_vm.inputValue)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.inputValue=$event.target.value.trim()},function (e) { return _vm.handleInput(_vm.inputValue, e); }],"click":function($event){$event.stopPropagation();_vm.toggleDropDownVisible(true)},"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }return _vm.handleDelete($event)},"blur":function($event){_vm.$forceUpdate()}}}):_vm._e()],2):_vm._e(),(!_vm.collapseTags)?_c('transition-group',{staticClass:"el-cascader__tags",on:{"after-leave":_vm.updateStyle}},[_vm._l((_vm.presentTags),function(tag){return [_c('el-tag',{key:tag.key,class:{'is-disabled': !tag.closable && tag.key !== -1},attrs:{"type":"info","size":_vm.tagSize,"hit":tag.hitState,"maxWidth":_vm.maxWidth,"closable":tag.closable,"disable-transitions":""},on:{"close":function($event){_vm.deleteTag(tag)}}},[_c('span',[_vm._v(_vm._s(tag.text))])])]}),(_vm.filterable && !_vm.isDisabled)?_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.inputValue),expression:"inputValue",modifiers:{"trim":true}}],staticClass:"el-cascader__search-input",attrs:{"type":"text","placeholder":_vm.presentTags.length ? '' : _vm.placeholder},domProps:{"value":(_vm.inputValue)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.inputValue=$event.target.value.trim()},function (e) { return _vm.handleInput(_vm.inputValue, e); }],"click":function($event){$event.stopPropagation();_vm.toggleDropDownVisible(true)},"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }return _vm.handleDelete($event)},"blur":function($event){_vm.$forceUpdate()}}}):_vm._e()],2):_vm._e(),_c('transition',{attrs:{"name":"el-zoom-in-top"},on:{"after-leave":_vm.handleDropdownLeave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.dropDownVisible),expression:"dropDownVisible"}],ref:"popper",class:['el-popper', 'el-cascader__dropdown', _vm.popperClass]},[_c('el-cascader-panel',{directives:[{name:"show",rawName:"v-show",value:(!_vm.filtering),expression:"!filtering"}],ref:"panel",attrs:{"options":_vm.options,"props":_vm.config,"border":false,"render-label":_vm.$scopedSlots.default},on:{"expand-change":_vm.handleExpandChange,"close":function($event){_vm.toggleDropDownVisible(false)}},model:{value:(_vm.checkedValue),callback:function ($$v) {_vm.checkedValue=$$v},expression:"checkedValue"}}),(_vm.filterable)?_c('el-scrollbar',{directives:[{name:"show",rawName:"v-show",value:(_vm.filtering),expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{"tag":"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{"keydown":function($event){return _vm.handleSuggestionKeyDown($event)}}},[(_vm.suggestions.length)?_vm._l((_vm.suggestions),function(item,index){return _c('li',{key:item.uid,class:[
323
+ ],on:{"click":function($event){$event.stopPropagation();_vm.toggleDropDownVisible()}}})])],2),(_vm.multiple && _vm.collapseTags && _vm.checkedNodes.length)?_c('transition-group',{staticClass:"el-cascader__tags",on:{"after-leave":_vm.updateStyle}},[_vm._l((_vm.presentTags),function(tag,index){return [(_vm.collapseTags && index <= _vm.multipleLimitShow - 1)?_c('el-tag',{key:tag.key,class:{'is-disabled': !tag.closable && tag.key !== -1},attrs:{"type":"info","size":_vm.tagSize,"hit":tag.hitState,"maxWidth":_vm.maxWidth,"closable":tag.closable,"disable-transitions":""},on:{"close":function($event){_vm.deleteTag(tag)}}},[_c('span',[_vm._v(_vm._s(tag.text))])]):_vm._e()]}),(_vm.collapseTags && (_vm.checkedNodes.length > 1 && _vm.checkedNodes.length > _vm.multipleLimitShow || _vm.checkedNodes.length > 0 && _vm.collapseTagsFixed))?_c('el-tag',{key:"count",ref:"tagsCount",staticClass:"el-cascader__tags-count",class:{'el-cascader__tags-count-fixed': _vm.collapseTagsFixed},attrs:{"closable":false,"size":_vm.tagSize,"type":"info","disable-transitions":""}},[_c('span',{staticClass:"el-cascader__tags-text"},[_vm._v(_vm._s(_vm.collapseTagsFixed ? '' : '+')+_vm._s(_vm.collapseTagsFixed ? _vm.checkedNodes.length : _vm.checkedNodes.length - _vm.multipleLimitShow)+_vm._s(_vm.collapseTagsSuffix))])]):_vm._e(),(_vm.filterable && !_vm.isDisabled)?_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.inputValue),expression:"inputValue",modifiers:{"trim":true}}],key:"search-input1",staticClass:"el-cascader__search-input",attrs:{"type":"text","placeholder":_vm.presentTags.length ? '' : _vm.placeholder},domProps:{"value":(_vm.inputValue)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.inputValue=$event.target.value.trim()},function (e) { return _vm.handleInput(_vm.inputValue, e); }],"click":function($event){$event.stopPropagation();_vm.toggleDropDownVisible(true)},"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }return _vm.handleDelete($event)},"blur":function($event){_vm.$forceUpdate()}}}):_vm._e()],2):_vm._e(),(!_vm.collapseTags)?_c('transition-group',{staticClass:"el-cascader__tags",on:{"after-leave":_vm.updateStyle}},[_vm._l((_vm.presentTags),function(tag){return [_c('el-tag',{key:tag.key,class:{'is-disabled': !tag.closable && tag.key !== -1},attrs:{"type":"info","size":_vm.tagSize,"hit":tag.hitState,"maxWidth":_vm.maxWidth,"closable":tag.closable,"disable-transitions":""},on:{"close":function($event){_vm.deleteTag(tag)}}},[_c('span',[_vm._v(_vm._s(tag.text))])])]}),(_vm.filterable && !_vm.isDisabled)?_c('input',{directives:[{name:"model",rawName:"v-model.trim",value:(_vm.inputValue),expression:"inputValue",modifiers:{"trim":true}}],key:"search-input2",staticClass:"el-cascader__search-input",attrs:{"type":"text","placeholder":_vm.presentTags.length ? '' : _vm.placeholder},domProps:{"value":(_vm.inputValue)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.inputValue=$event.target.value.trim()},function (e) { return _vm.handleInput(_vm.inputValue, e); }],"click":function($event){$event.stopPropagation();_vm.toggleDropDownVisible(true)},"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }return _vm.handleDelete($event)},"blur":function($event){_vm.$forceUpdate()}}}):_vm._e()],2):_vm._e(),_c('transition',{attrs:{"name":"el-zoom-in-top"},on:{"after-leave":_vm.handleDropdownLeave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.dropDownVisible),expression:"dropDownVisible"}],ref:"popper",class:['el-popper', 'el-cascader__dropdown', _vm.popperClass]},[_c('el-cascader-panel',{directives:[{name:"show",rawName:"v-show",value:(!_vm.filtering),expression:"!filtering"}],ref:"panel",attrs:{"options":_vm.options,"props":_vm.config,"border":false,"render-label":_vm.$scopedSlots.default},on:{"expand-change":_vm.handleExpandChange,"close":function($event){_vm.toggleDropDownVisible(false)}},model:{value:(_vm.checkedValue),callback:function ($$v) {_vm.checkedValue=$$v},expression:"checkedValue"}}),(_vm.filterable)?_c('el-scrollbar',{directives:[{name:"show",rawName:"v-show",value:(_vm.filtering),expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{"tag":"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{"keydown":function($event){return _vm.handleSuggestionKeyDown($event)}}},[(_vm.suggestions.length)?_vm._l((_vm.suggestions),function(item,index){return _c('li',{key:item.uid,class:[
324
324
  'el-cascader__suggestion-item',
325
325
  item.checked && 'is-checked'
326
326
  ],attrs:{"tabindex":-1},on:{"click":function($event){_vm.handleSuggestionClick(index)}}},[_c('span',[_vm._v(_vm._s(item.text))])])}):[(_vm.$slots.empty)?_vm._t("empty"):_c('el-empty',{attrs:{"description":_vm.t('el.cascader.noMatch'),"type":0,"image-size":60}})]],2):_vm._e()],1)])],1)}
327
327
  var staticRenderFns = []
328
328
  render._withStripped = true
329
329
 
330
- // CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=template&id=0bb86285
330
+ // CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=template&id=75d176f4
331
331
 
332
332
  // EXTERNAL MODULE: external "iov-design/lib/utils/vue-popper"
333
333
  var vue_popper_ = __webpack_require__(5);
@@ -551,6 +551,8 @@ var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
551
551
  //
552
552
  //
553
553
  //
554
+ //
555
+ //
554
556
 
555
557
 
556
558