@weitutech/by-components 1.2.20 → 1.2.22
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/by-components.common.js +56 -28
- package/lib/by-components.umd.js +56 -28
- package/lib/by-components.umd.min.js +1 -1
- package/lib/index.css +1 -1
- package/package.json +1 -1
|
@@ -92423,13 +92423,22 @@ var BatchQuerySelector_component = normalizeComponent(
|
|
|
92423
92423
|
)
|
|
92424
92424
|
|
|
92425
92425
|
/* harmony default export */ var BatchQuerySelector = (BatchQuerySelector_component.exports);
|
|
92426
|
-
;// ./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/common-input/ByCommonInput.vue?vue&type=template&id=
|
|
92427
|
-
var
|
|
92426
|
+
;// ./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/common-input/ByCommonInput.vue?vue&type=template&id=5ab04f01
|
|
92427
|
+
var ByCommonInputvue_type_template_id_5ab04f01_render = function render() {
|
|
92428
92428
|
var _vm = this,
|
|
92429
92429
|
_c = _vm._self._c;
|
|
92430
92430
|
return _c('div', {
|
|
92431
|
-
staticClass: "by-common-input-container"
|
|
92431
|
+
staticClass: "by-common-input-container",
|
|
92432
|
+
class: {
|
|
92433
|
+
'has-batch-suffix': _vm.showBatchInput,
|
|
92434
|
+
'is-clearable': _vm.showBatchInput && _vm.isClearable
|
|
92435
|
+
}
|
|
92436
|
+
}, [_c('div', {
|
|
92437
|
+
staticClass: "input-wrap"
|
|
92432
92438
|
}, [_c('el-input', _vm._b({
|
|
92439
|
+
class: {
|
|
92440
|
+
'has-batch-suffix': _vm.showBatchInput
|
|
92441
|
+
},
|
|
92433
92442
|
attrs: {
|
|
92434
92443
|
"value": _vm.localValue,
|
|
92435
92444
|
"size": _vm.actualSize
|
|
@@ -92440,7 +92449,9 @@ var ByCommonInputvue_type_template_id_71d628fa_render = function render() {
|
|
|
92440
92449
|
"blur": _vm.handleBlur,
|
|
92441
92450
|
"focus": _vm.handleFocus
|
|
92442
92451
|
}
|
|
92443
|
-
}, 'el-input', _vm.$attrs, false)), _vm.showBatchInput ? _c('
|
|
92452
|
+
}, 'el-input', _vm.$attrs, false)), _vm.showBatchInput ? _c('div', {
|
|
92453
|
+
staticClass: "batch-input-suffix"
|
|
92454
|
+
}, [_c('el-popover', {
|
|
92444
92455
|
attrs: {
|
|
92445
92456
|
"placement": "bottom-end",
|
|
92446
92457
|
"width": _vm.batchInputPopoverWidth,
|
|
@@ -92490,24 +92501,26 @@ var ByCommonInputvue_type_template_id_71d628fa_render = function render() {
|
|
|
92490
92501
|
"click": _vm.handleBatchInputConfirm
|
|
92491
92502
|
}
|
|
92492
92503
|
}, [_vm._v("确定")])], 1)], 1), _c('el-button', {
|
|
92493
|
-
staticClass: "batch-input-btn",
|
|
92504
|
+
staticClass: "batch-input-btn batch-input-btn--inner",
|
|
92505
|
+
class: `batch-input-btn--${_vm.actualSize}`,
|
|
92494
92506
|
attrs: {
|
|
92495
92507
|
"slot": "reference",
|
|
92508
|
+
"type": "text",
|
|
92509
|
+
"disabled": _vm.isDisabled,
|
|
92496
92510
|
"size": _vm.actualSize
|
|
92497
92511
|
},
|
|
92498
92512
|
on: {
|
|
92499
|
-
"click":
|
|
92513
|
+
"click": function ($event) {
|
|
92514
|
+
$event.stopPropagation();
|
|
92515
|
+
return _vm.handleOpenBatchInput.apply(null, arguments);
|
|
92516
|
+
}
|
|
92500
92517
|
},
|
|
92501
92518
|
slot: "reference"
|
|
92502
92519
|
}, [_c('i', {
|
|
92503
|
-
staticClass: "el-icon-edit-outline"
|
|
92504
|
-
|
|
92505
|
-
"transform": "scale(2)",
|
|
92506
|
-
"display": "inline-block"
|
|
92507
|
-
}
|
|
92508
|
-
})])], 1) : _vm._e()], 1);
|
|
92520
|
+
staticClass: "el-icon-edit-outline"
|
|
92521
|
+
})])], 1)], 1) : _vm._e()], 1)]);
|
|
92509
92522
|
};
|
|
92510
|
-
var
|
|
92523
|
+
var ByCommonInputvue_type_template_id_5ab04f01_staticRenderFns = [];
|
|
92511
92524
|
|
|
92512
92525
|
;// ./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/common-input/ByCommonInput.vue?vue&type=script&lang=js
|
|
92513
92526
|
|
|
@@ -92572,6 +92585,14 @@ var ByCommonInputvue_type_template_id_71d628fa_staticRenderFns = [];
|
|
|
92572
92585
|
// 获取实际的 size 值,优先使用 $attrs 中的 size
|
|
92573
92586
|
actualSize() {
|
|
92574
92587
|
return this.$attrs.size || this.size;
|
|
92588
|
+
},
|
|
92589
|
+
isClearable() {
|
|
92590
|
+
const val = this.$attrs.clearable;
|
|
92591
|
+
return val === '' || val === true || val === 'true';
|
|
92592
|
+
},
|
|
92593
|
+
isDisabled() {
|
|
92594
|
+
const val = this.$attrs.disabled;
|
|
92595
|
+
return val === '' || val === true || val === 'true';
|
|
92575
92596
|
}
|
|
92576
92597
|
},
|
|
92577
92598
|
watch: {
|
|
@@ -92668,8 +92689,8 @@ var ByCommonInputvue_type_template_id_71d628fa_staticRenderFns = [];
|
|
|
92668
92689
|
;
|
|
92669
92690
|
var ByCommonInput_component = normalizeComponent(
|
|
92670
92691
|
common_input_ByCommonInputvue_type_script_lang_js,
|
|
92671
|
-
|
|
92672
|
-
|
|
92692
|
+
ByCommonInputvue_type_template_id_5ab04f01_render,
|
|
92693
|
+
ByCommonInputvue_type_template_id_5ab04f01_staticRenderFns,
|
|
92673
92694
|
false,
|
|
92674
92695
|
null,
|
|
92675
92696
|
null,
|
|
@@ -101526,8 +101547,8 @@ var ByGridLayout_component = normalizeComponent(
|
|
|
101526
101547
|
)
|
|
101527
101548
|
|
|
101528
101549
|
/* 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=
|
|
101530
|
-
var
|
|
101550
|
+
;// ./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=6949dd36
|
|
101551
|
+
var ByTagvue_type_template_id_6949dd36_render = function render() {
|
|
101531
101552
|
var _vm = this,
|
|
101532
101553
|
_c = _vm._self._c;
|
|
101533
101554
|
return _c('el-tag', _vm._g(_vm._b({
|
|
@@ -101550,17 +101571,19 @@ var ByTagvue_type_template_id_021fe5fe_render = function render() {
|
|
|
101550
101571
|
class: _vm.icon
|
|
101551
101572
|
})]) : _vm._e(), _vm._t("default")], 2);
|
|
101552
101573
|
};
|
|
101553
|
-
var
|
|
101574
|
+
var ByTagvue_type_template_id_6949dd36_staticRenderFns = [];
|
|
101554
101575
|
|
|
101555
101576
|
;// ./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
|
|
101556
101577
|
|
|
101557
101578
|
/**
|
|
101558
101579
|
* 原生 el-tag 的 type 仅支持:primary / success / info / warning / danger
|
|
101559
101580
|
* 本组件扩展 type,扩展类型的背景、边框、文字由 style/by-tag.scss 统一配色;
|
|
101560
|
-
* 另支持前缀图标(icon / #icon
|
|
101581
|
+
* 另支持前缀图标(icon / #icon)、胶囊圆角(round)与虚线边框(dashed)。
|
|
101561
101582
|
*/
|
|
101562
101583
|
const NATIVE_TYPES = ['primary', 'success', 'info', 'warning', 'danger'];
|
|
101563
|
-
const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', 'purple', 'violet', 'lavender', 'indigo', 'cyan', 'teal', 'aqua', 'ink', 'mint', 'lime', 'forest', 'olive', 'sage', 'crimson', 'rose', 'pink', 'blossom', 'magenta', 'scarlet', 'orange', 'coral', 'brick', 'amber', 'gold', 'lemon', 'brown', 'sand', 'beige', 'wine', 'silver', 'copper'
|
|
101584
|
+
const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', 'purple', 'violet', 'lavender', 'indigo', 'cyan', 'teal', 'aqua', 'ink', 'mint', 'lime', 'forest', 'olive', 'sage', 'crimson', 'rose', 'pink', 'blossom', 'magenta', 'scarlet', 'orange', 'coral', 'brick', 'amber', 'gold', 'lemon', 'brown', 'sand', 'beige', 'wine', 'silver', 'copper',
|
|
101585
|
+
// 新增扩展
|
|
101586
|
+
'cobalt', 'denim', 'plum', 'mauve', 'graphite', 'turquoise', 'jade', 'emerald', 'moss', 'chartreuse', 'maroon', 'burgundy', 'fuchsia', 'peach', 'rust', 'mustard', 'khaki', 'caramel'];
|
|
101564
101587
|
function slotHasContent(nodes) {
|
|
101565
101588
|
if (!nodes) return false;
|
|
101566
101589
|
if (Array.isArray(nodes)) return nodes.length > 0;
|
|
@@ -101571,10 +101594,7 @@ function slotHasContent(nodes) {
|
|
|
101571
101594
|
inheritAttrs: false,
|
|
101572
101595
|
props: {
|
|
101573
101596
|
/**
|
|
101574
|
-
*
|
|
101575
|
-
* 蓝系 blue/navy/sky;灰系 default/slate/charcoal;紫系 purple/violet/lavender;靛蓝 indigo;墨蓝 ink;
|
|
101576
|
-
* 青蓝系 cyan/teal/aqua;绿系 mint/lime/forest/olive/sage;红系 crimson/rose/scarlet;粉系 pink/blossom/magenta;
|
|
101577
|
-
* 橙系 orange/coral/brick;黄棕系 amber/gold/lemon/brown;大地系 sand/beige;酒红 wine;金属 silver/copper
|
|
101597
|
+
* 类型
|
|
101578
101598
|
*/
|
|
101579
101599
|
type: {
|
|
101580
101600
|
type: String,
|
|
@@ -101592,6 +101612,11 @@ function slotHasContent(nodes) {
|
|
|
101592
101612
|
round: {
|
|
101593
101613
|
type: Boolean,
|
|
101594
101614
|
default: false
|
|
101615
|
+
},
|
|
101616
|
+
/** 是否使用虚线边框 */
|
|
101617
|
+
dashed: {
|
|
101618
|
+
type: Boolean,
|
|
101619
|
+
default: false
|
|
101595
101620
|
}
|
|
101596
101621
|
},
|
|
101597
101622
|
computed: {
|
|
@@ -101629,8 +101654,8 @@ function slotHasContent(nodes) {
|
|
|
101629
101654
|
},
|
|
101630
101655
|
tagClass() {
|
|
101631
101656
|
const classes = [];
|
|
101632
|
-
//
|
|
101633
|
-
if (this.isExtendedType || this.round || this.hasIcon) {
|
|
101657
|
+
// 扩展色、圆角、虚线、图标样式均挂在 .by-tag 下;原生 type 在需要时也挂上基类
|
|
101658
|
+
if (this.isExtendedType || this.round || this.dashed || this.hasIcon) {
|
|
101634
101659
|
classes.push('by-tag');
|
|
101635
101660
|
}
|
|
101636
101661
|
if (this.isExtendedType) {
|
|
@@ -101639,6 +101664,9 @@ function slotHasContent(nodes) {
|
|
|
101639
101664
|
if (this.round) {
|
|
101640
101665
|
classes.push('by-tag--round');
|
|
101641
101666
|
}
|
|
101667
|
+
if (this.dashed) {
|
|
101668
|
+
classes.push('by-tag--dashed');
|
|
101669
|
+
}
|
|
101642
101670
|
if (this.hasIcon) {
|
|
101643
101671
|
classes.push('by-tag--with-icon');
|
|
101644
101672
|
}
|
|
@@ -101670,8 +101698,8 @@ function slotHasContent(nodes) {
|
|
|
101670
101698
|
;
|
|
101671
101699
|
var ByTag_component = normalizeComponent(
|
|
101672
101700
|
by_tag_ByTagvue_type_script_lang_js,
|
|
101673
|
-
|
|
101674
|
-
|
|
101701
|
+
ByTagvue_type_template_id_6949dd36_render,
|
|
101702
|
+
ByTagvue_type_template_id_6949dd36_staticRenderFns,
|
|
101675
101703
|
false,
|
|
101676
101704
|
null,
|
|
101677
101705
|
null,
|
package/lib/by-components.umd.js
CHANGED
|
@@ -92433,13 +92433,22 @@ var BatchQuerySelector_component = normalizeComponent(
|
|
|
92433
92433
|
)
|
|
92434
92434
|
|
|
92435
92435
|
/* harmony default export */ var BatchQuerySelector = (BatchQuerySelector_component.exports);
|
|
92436
|
-
;// ./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/common-input/ByCommonInput.vue?vue&type=template&id=
|
|
92437
|
-
var
|
|
92436
|
+
;// ./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/common-input/ByCommonInput.vue?vue&type=template&id=5ab04f01
|
|
92437
|
+
var ByCommonInputvue_type_template_id_5ab04f01_render = function render() {
|
|
92438
92438
|
var _vm = this,
|
|
92439
92439
|
_c = _vm._self._c;
|
|
92440
92440
|
return _c('div', {
|
|
92441
|
-
staticClass: "by-common-input-container"
|
|
92441
|
+
staticClass: "by-common-input-container",
|
|
92442
|
+
class: {
|
|
92443
|
+
'has-batch-suffix': _vm.showBatchInput,
|
|
92444
|
+
'is-clearable': _vm.showBatchInput && _vm.isClearable
|
|
92445
|
+
}
|
|
92446
|
+
}, [_c('div', {
|
|
92447
|
+
staticClass: "input-wrap"
|
|
92442
92448
|
}, [_c('el-input', _vm._b({
|
|
92449
|
+
class: {
|
|
92450
|
+
'has-batch-suffix': _vm.showBatchInput
|
|
92451
|
+
},
|
|
92443
92452
|
attrs: {
|
|
92444
92453
|
"value": _vm.localValue,
|
|
92445
92454
|
"size": _vm.actualSize
|
|
@@ -92450,7 +92459,9 @@ var ByCommonInputvue_type_template_id_71d628fa_render = function render() {
|
|
|
92450
92459
|
"blur": _vm.handleBlur,
|
|
92451
92460
|
"focus": _vm.handleFocus
|
|
92452
92461
|
}
|
|
92453
|
-
}, 'el-input', _vm.$attrs, false)), _vm.showBatchInput ? _c('
|
|
92462
|
+
}, 'el-input', _vm.$attrs, false)), _vm.showBatchInput ? _c('div', {
|
|
92463
|
+
staticClass: "batch-input-suffix"
|
|
92464
|
+
}, [_c('el-popover', {
|
|
92454
92465
|
attrs: {
|
|
92455
92466
|
"placement": "bottom-end",
|
|
92456
92467
|
"width": _vm.batchInputPopoverWidth,
|
|
@@ -92500,24 +92511,26 @@ var ByCommonInputvue_type_template_id_71d628fa_render = function render() {
|
|
|
92500
92511
|
"click": _vm.handleBatchInputConfirm
|
|
92501
92512
|
}
|
|
92502
92513
|
}, [_vm._v("确定")])], 1)], 1), _c('el-button', {
|
|
92503
|
-
staticClass: "batch-input-btn",
|
|
92514
|
+
staticClass: "batch-input-btn batch-input-btn--inner",
|
|
92515
|
+
class: `batch-input-btn--${_vm.actualSize}`,
|
|
92504
92516
|
attrs: {
|
|
92505
92517
|
"slot": "reference",
|
|
92518
|
+
"type": "text",
|
|
92519
|
+
"disabled": _vm.isDisabled,
|
|
92506
92520
|
"size": _vm.actualSize
|
|
92507
92521
|
},
|
|
92508
92522
|
on: {
|
|
92509
|
-
"click":
|
|
92523
|
+
"click": function ($event) {
|
|
92524
|
+
$event.stopPropagation();
|
|
92525
|
+
return _vm.handleOpenBatchInput.apply(null, arguments);
|
|
92526
|
+
}
|
|
92510
92527
|
},
|
|
92511
92528
|
slot: "reference"
|
|
92512
92529
|
}, [_c('i', {
|
|
92513
|
-
staticClass: "el-icon-edit-outline"
|
|
92514
|
-
|
|
92515
|
-
"transform": "scale(2)",
|
|
92516
|
-
"display": "inline-block"
|
|
92517
|
-
}
|
|
92518
|
-
})])], 1) : _vm._e()], 1);
|
|
92530
|
+
staticClass: "el-icon-edit-outline"
|
|
92531
|
+
})])], 1)], 1) : _vm._e()], 1)]);
|
|
92519
92532
|
};
|
|
92520
|
-
var
|
|
92533
|
+
var ByCommonInputvue_type_template_id_5ab04f01_staticRenderFns = [];
|
|
92521
92534
|
|
|
92522
92535
|
;// ./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/common-input/ByCommonInput.vue?vue&type=script&lang=js
|
|
92523
92536
|
|
|
@@ -92582,6 +92595,14 @@ var ByCommonInputvue_type_template_id_71d628fa_staticRenderFns = [];
|
|
|
92582
92595
|
// 获取实际的 size 值,优先使用 $attrs 中的 size
|
|
92583
92596
|
actualSize() {
|
|
92584
92597
|
return this.$attrs.size || this.size;
|
|
92598
|
+
},
|
|
92599
|
+
isClearable() {
|
|
92600
|
+
const val = this.$attrs.clearable;
|
|
92601
|
+
return val === '' || val === true || val === 'true';
|
|
92602
|
+
},
|
|
92603
|
+
isDisabled() {
|
|
92604
|
+
const val = this.$attrs.disabled;
|
|
92605
|
+
return val === '' || val === true || val === 'true';
|
|
92585
92606
|
}
|
|
92586
92607
|
},
|
|
92587
92608
|
watch: {
|
|
@@ -92678,8 +92699,8 @@ var ByCommonInputvue_type_template_id_71d628fa_staticRenderFns = [];
|
|
|
92678
92699
|
;
|
|
92679
92700
|
var ByCommonInput_component = normalizeComponent(
|
|
92680
92701
|
common_input_ByCommonInputvue_type_script_lang_js,
|
|
92681
|
-
|
|
92682
|
-
|
|
92702
|
+
ByCommonInputvue_type_template_id_5ab04f01_render,
|
|
92703
|
+
ByCommonInputvue_type_template_id_5ab04f01_staticRenderFns,
|
|
92683
92704
|
false,
|
|
92684
92705
|
null,
|
|
92685
92706
|
null,
|
|
@@ -101536,8 +101557,8 @@ var ByGridLayout_component = normalizeComponent(
|
|
|
101536
101557
|
)
|
|
101537
101558
|
|
|
101538
101559
|
/* 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=
|
|
101540
|
-
var
|
|
101560
|
+
;// ./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=6949dd36
|
|
101561
|
+
var ByTagvue_type_template_id_6949dd36_render = function render() {
|
|
101541
101562
|
var _vm = this,
|
|
101542
101563
|
_c = _vm._self._c;
|
|
101543
101564
|
return _c('el-tag', _vm._g(_vm._b({
|
|
@@ -101560,17 +101581,19 @@ var ByTagvue_type_template_id_021fe5fe_render = function render() {
|
|
|
101560
101581
|
class: _vm.icon
|
|
101561
101582
|
})]) : _vm._e(), _vm._t("default")], 2);
|
|
101562
101583
|
};
|
|
101563
|
-
var
|
|
101584
|
+
var ByTagvue_type_template_id_6949dd36_staticRenderFns = [];
|
|
101564
101585
|
|
|
101565
101586
|
;// ./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
|
|
101566
101587
|
|
|
101567
101588
|
/**
|
|
101568
101589
|
* 原生 el-tag 的 type 仅支持:primary / success / info / warning / danger
|
|
101569
101590
|
* 本组件扩展 type,扩展类型的背景、边框、文字由 style/by-tag.scss 统一配色;
|
|
101570
|
-
* 另支持前缀图标(icon / #icon
|
|
101591
|
+
* 另支持前缀图标(icon / #icon)、胶囊圆角(round)与虚线边框(dashed)。
|
|
101571
101592
|
*/
|
|
101572
101593
|
const NATIVE_TYPES = ['primary', 'success', 'info', 'warning', 'danger'];
|
|
101573
|
-
const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', 'purple', 'violet', 'lavender', 'indigo', 'cyan', 'teal', 'aqua', 'ink', 'mint', 'lime', 'forest', 'olive', 'sage', 'crimson', 'rose', 'pink', 'blossom', 'magenta', 'scarlet', 'orange', 'coral', 'brick', 'amber', 'gold', 'lemon', 'brown', 'sand', 'beige', 'wine', 'silver', 'copper'
|
|
101594
|
+
const EXTENDED_TYPES = ['blue', 'navy', 'sky', 'default', 'slate', 'charcoal', 'purple', 'violet', 'lavender', 'indigo', 'cyan', 'teal', 'aqua', 'ink', 'mint', 'lime', 'forest', 'olive', 'sage', 'crimson', 'rose', 'pink', 'blossom', 'magenta', 'scarlet', 'orange', 'coral', 'brick', 'amber', 'gold', 'lemon', 'brown', 'sand', 'beige', 'wine', 'silver', 'copper',
|
|
101595
|
+
// 新增扩展
|
|
101596
|
+
'cobalt', 'denim', 'plum', 'mauve', 'graphite', 'turquoise', 'jade', 'emerald', 'moss', 'chartreuse', 'maroon', 'burgundy', 'fuchsia', 'peach', 'rust', 'mustard', 'khaki', 'caramel'];
|
|
101574
101597
|
function slotHasContent(nodes) {
|
|
101575
101598
|
if (!nodes) return false;
|
|
101576
101599
|
if (Array.isArray(nodes)) return nodes.length > 0;
|
|
@@ -101581,10 +101604,7 @@ function slotHasContent(nodes) {
|
|
|
101581
101604
|
inheritAttrs: false,
|
|
101582
101605
|
props: {
|
|
101583
101606
|
/**
|
|
101584
|
-
*
|
|
101585
|
-
* 蓝系 blue/navy/sky;灰系 default/slate/charcoal;紫系 purple/violet/lavender;靛蓝 indigo;墨蓝 ink;
|
|
101586
|
-
* 青蓝系 cyan/teal/aqua;绿系 mint/lime/forest/olive/sage;红系 crimson/rose/scarlet;粉系 pink/blossom/magenta;
|
|
101587
|
-
* 橙系 orange/coral/brick;黄棕系 amber/gold/lemon/brown;大地系 sand/beige;酒红 wine;金属 silver/copper
|
|
101607
|
+
* 类型
|
|
101588
101608
|
*/
|
|
101589
101609
|
type: {
|
|
101590
101610
|
type: String,
|
|
@@ -101602,6 +101622,11 @@ function slotHasContent(nodes) {
|
|
|
101602
101622
|
round: {
|
|
101603
101623
|
type: Boolean,
|
|
101604
101624
|
default: false
|
|
101625
|
+
},
|
|
101626
|
+
/** 是否使用虚线边框 */
|
|
101627
|
+
dashed: {
|
|
101628
|
+
type: Boolean,
|
|
101629
|
+
default: false
|
|
101605
101630
|
}
|
|
101606
101631
|
},
|
|
101607
101632
|
computed: {
|
|
@@ -101639,8 +101664,8 @@ function slotHasContent(nodes) {
|
|
|
101639
101664
|
},
|
|
101640
101665
|
tagClass() {
|
|
101641
101666
|
const classes = [];
|
|
101642
|
-
//
|
|
101643
|
-
if (this.isExtendedType || this.round || this.hasIcon) {
|
|
101667
|
+
// 扩展色、圆角、虚线、图标样式均挂在 .by-tag 下;原生 type 在需要时也挂上基类
|
|
101668
|
+
if (this.isExtendedType || this.round || this.dashed || this.hasIcon) {
|
|
101644
101669
|
classes.push('by-tag');
|
|
101645
101670
|
}
|
|
101646
101671
|
if (this.isExtendedType) {
|
|
@@ -101649,6 +101674,9 @@ function slotHasContent(nodes) {
|
|
|
101649
101674
|
if (this.round) {
|
|
101650
101675
|
classes.push('by-tag--round');
|
|
101651
101676
|
}
|
|
101677
|
+
if (this.dashed) {
|
|
101678
|
+
classes.push('by-tag--dashed');
|
|
101679
|
+
}
|
|
101652
101680
|
if (this.hasIcon) {
|
|
101653
101681
|
classes.push('by-tag--with-icon');
|
|
101654
101682
|
}
|
|
@@ -101680,8 +101708,8 @@ function slotHasContent(nodes) {
|
|
|
101680
101708
|
;
|
|
101681
101709
|
var ByTag_component = normalizeComponent(
|
|
101682
101710
|
by_tag_ByTagvue_type_script_lang_js,
|
|
101683
|
-
|
|
101684
|
-
|
|
101711
|
+
ByTagvue_type_template_id_6949dd36_render,
|
|
101712
|
+
ByTagvue_type_template_id_6949dd36_staticRenderFns,
|
|
101685
101713
|
false,
|
|
101686
101714
|
null,
|
|
101687
101715
|
null,
|