@weitutech/by-components 1.2.18 → 1.2.19

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.
@@ -101526,8 +101526,8 @@ var ByGridLayout_component = normalizeComponent(
101526
101526
  )
101527
101527
 
101528
101528
  /* harmony default export */ var ByGridLayout = (ByGridLayout_component.exports);
101529
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"185687ec-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/by-tag/ByTag.vue?vue&type=template&id=91c49304
101530
- var ByTagvue_type_template_id_91c49304_render = function render() {
101529
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"185687ec-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/by-tag/ByTag.vue?vue&type=template&id=275b5251
101530
+ var ByTagvue_type_template_id_275b5251_render = function render() {
101531
101531
  var _vm = this,
101532
101532
  _c = _vm._self._c;
101533
101533
  return _c('el-tag', _vm._g(_vm._b({
@@ -101536,18 +101536,18 @@ var ByTagvue_type_template_id_91c49304_render = function render() {
101536
101536
  "type": _vm.elTagType,
101537
101537
  "color": _vm.elTagColor
101538
101538
  }
101539
- }, 'el-tag', _vm.tagAttrs, false), _vm.$listeners), [_vm.hasIcon ? _c('span', {
101539
+ }, 'el-tag', _vm.tagAttrs, false), _vm.$listeners), [_vm.icon || _vm.$scopedSlots.icon || _vm.$slots.icon ? _c('span', {
101540
101540
  staticClass: "by-tag__icon",
101541
101541
  attrs: {
101542
101542
  "aria-hidden": "true"
101543
101543
  }
101544
101544
  }, [_vm._t("icon", function () {
101545
101545
  return [_vm.icon ? _c('i', {
101546
- class: _vm.icon
101546
+ class: ['by-tag__icon-inner', _vm.icon]
101547
101547
  }) : _vm._e()];
101548
101548
  })], 2) : _vm._e(), _vm._t("default")], 2);
101549
101549
  };
101550
- var ByTagvue_type_template_id_91c49304_staticRenderFns = [];
101550
+ var ByTagvue_type_template_id_275b5251_staticRenderFns = [];
101551
101551
 
101552
101552
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/by-tag/ByTag.vue?vue&type=script&lang=js
101553
101553
 
@@ -101593,11 +101593,8 @@ const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', '
101593
101593
  isExtendedType() {
101594
101594
  return this.type && EXTENDED_TYPES.includes(this.type);
101595
101595
  },
101596
- hasIconSlot() {
101597
- return Boolean(this.$scopedSlots && this.$scopedSlots.icon || this.$slots && this.$slots.icon);
101598
- },
101599
101596
  hasIcon() {
101600
- return Boolean(this.icon) || this.hasIconSlot;
101597
+ return Boolean(this.icon || this.$scopedSlots && this.$scopedSlots.icon || this.$slots && this.$slots.icon);
101601
101598
  },
101602
101599
  elTagType() {
101603
101600
  if (this.isNativeType) return this.type;
@@ -101635,6 +101632,8 @@ const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', '
101635
101632
  if (this.isExtendedType) {
101636
101633
  delete attrs.color;
101637
101634
  }
101635
+ // 防御:避免 icon 被透传到 el-tag DOM(旧构建/异常透传时)
101636
+ delete attrs.icon;
101638
101637
  return attrs;
101639
101638
  }
101640
101639
  }
@@ -101651,8 +101650,8 @@ const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', '
101651
101650
  ;
101652
101651
  var ByTag_component = normalizeComponent(
101653
101652
  by_tag_ByTagvue_type_script_lang_js,
101654
- ByTagvue_type_template_id_91c49304_render,
101655
- ByTagvue_type_template_id_91c49304_staticRenderFns,
101653
+ ByTagvue_type_template_id_275b5251_render,
101654
+ ByTagvue_type_template_id_275b5251_staticRenderFns,
101656
101655
  false,
101657
101656
  null,
101658
101657
  null,
@@ -101536,8 +101536,8 @@ var ByGridLayout_component = normalizeComponent(
101536
101536
  )
101537
101537
 
101538
101538
  /* harmony default export */ var ByGridLayout = (ByGridLayout_component.exports);
101539
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"185687ec-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/by-tag/ByTag.vue?vue&type=template&id=91c49304
101540
- var ByTagvue_type_template_id_91c49304_render = function render() {
101539
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"185687ec-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/by-tag/ByTag.vue?vue&type=template&id=275b5251
101540
+ var ByTagvue_type_template_id_275b5251_render = function render() {
101541
101541
  var _vm = this,
101542
101542
  _c = _vm._self._c;
101543
101543
  return _c('el-tag', _vm._g(_vm._b({
@@ -101546,18 +101546,18 @@ var ByTagvue_type_template_id_91c49304_render = function render() {
101546
101546
  "type": _vm.elTagType,
101547
101547
  "color": _vm.elTagColor
101548
101548
  }
101549
- }, 'el-tag', _vm.tagAttrs, false), _vm.$listeners), [_vm.hasIcon ? _c('span', {
101549
+ }, 'el-tag', _vm.tagAttrs, false), _vm.$listeners), [_vm.icon || _vm.$scopedSlots.icon || _vm.$slots.icon ? _c('span', {
101550
101550
  staticClass: "by-tag__icon",
101551
101551
  attrs: {
101552
101552
  "aria-hidden": "true"
101553
101553
  }
101554
101554
  }, [_vm._t("icon", function () {
101555
101555
  return [_vm.icon ? _c('i', {
101556
- class: _vm.icon
101556
+ class: ['by-tag__icon-inner', _vm.icon]
101557
101557
  }) : _vm._e()];
101558
101558
  })], 2) : _vm._e(), _vm._t("default")], 2);
101559
101559
  };
101560
- var ByTagvue_type_template_id_91c49304_staticRenderFns = [];
101560
+ var ByTagvue_type_template_id_275b5251_staticRenderFns = [];
101561
101561
 
101562
101562
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/by-tag/ByTag.vue?vue&type=script&lang=js
101563
101563
 
@@ -101603,11 +101603,8 @@ const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', '
101603
101603
  isExtendedType() {
101604
101604
  return this.type && EXTENDED_TYPES.includes(this.type);
101605
101605
  },
101606
- hasIconSlot() {
101607
- return Boolean(this.$scopedSlots && this.$scopedSlots.icon || this.$slots && this.$slots.icon);
101608
- },
101609
101606
  hasIcon() {
101610
- return Boolean(this.icon) || this.hasIconSlot;
101607
+ return Boolean(this.icon || this.$scopedSlots && this.$scopedSlots.icon || this.$slots && this.$slots.icon);
101611
101608
  },
101612
101609
  elTagType() {
101613
101610
  if (this.isNativeType) return this.type;
@@ -101645,6 +101642,8 @@ const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', '
101645
101642
  if (this.isExtendedType) {
101646
101643
  delete attrs.color;
101647
101644
  }
101645
+ // 防御:避免 icon 被透传到 el-tag DOM(旧构建/异常透传时)
101646
+ delete attrs.icon;
101648
101647
  return attrs;
101649
101648
  }
101650
101649
  }
@@ -101661,8 +101660,8 @@ const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', '
101661
101660
  ;
101662
101661
  var ByTag_component = normalizeComponent(
101663
101662
  by_tag_ByTagvue_type_script_lang_js,
101664
- ByTagvue_type_template_id_91c49304_render,
101665
- ByTagvue_type_template_id_91c49304_staticRenderFns,
101663
+ ByTagvue_type_template_id_275b5251_render,
101664
+ ByTagvue_type_template_id_275b5251_staticRenderFns,
101666
101665
  false,
101667
101666
  null,
101668
101667
  null,