@weitutech/by-components 1.1.195 → 1.1.197
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 +91 -1
- package/lib/by-components.umd.js +91 -1
- package/lib/by-components.umd.min.js +1 -1
- package/lib/index.css +1 -1
- package/package.json +1 -1
|
@@ -74273,6 +74273,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74273
74273
|
// EXPORTS
|
|
74274
74274
|
__webpack_require__.d(__webpack_exports__, {
|
|
74275
74275
|
ByBatchQuerySelector: function() { return /* reexport */ BatchQuerySelector; },
|
|
74276
|
+
ByCardView: function() { return /* reexport */ ByCardView; },
|
|
74276
74277
|
ByCascaderPanel: function() { return /* reexport */ ByCascaderPanel; },
|
|
74277
74278
|
ByCommonInput: function() { return /* reexport */ ByCommonInput; },
|
|
74278
74279
|
ByCommonSelector: function() { return /* reexport */ ByCommonSelector; },
|
|
@@ -97564,6 +97565,93 @@ var ByTag_component = normalizeComponent(
|
|
|
97564
97565
|
)
|
|
97565
97566
|
|
|
97566
97567
|
/* harmony default export */ var ByTag = (ByTag_component.exports);
|
|
97568
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8cd600e8-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/card-view/ByCardView.vue?vue&type=template&id=c807fa9e
|
|
97569
|
+
var ByCardViewvue_type_template_id_c807fa9e_render = function render() {
|
|
97570
|
+
var _vm = this,
|
|
97571
|
+
_c = _vm._self._c;
|
|
97572
|
+
return _c('div', {
|
|
97573
|
+
staticClass: "config-section by-card-view",
|
|
97574
|
+
class: {
|
|
97575
|
+
'config-section--plain': _vm.plain
|
|
97576
|
+
}
|
|
97577
|
+
}, [_vm.customHeader ? _vm._t("header") : _vm.showTitleRow ? _c('div', {
|
|
97578
|
+
staticClass: "section-title"
|
|
97579
|
+
}, [_vm.hasTitleText ? _c('span', {
|
|
97580
|
+
staticClass: "section-title-text"
|
|
97581
|
+
}, [_vm._t("title", function () {
|
|
97582
|
+
return [_vm._v(_vm._s(_vm.title))];
|
|
97583
|
+
})], 2) : _vm._e(), _vm.$slots.extra ? _c('div', {
|
|
97584
|
+
staticClass: "section-title-switch"
|
|
97585
|
+
}, [_vm._t("extra")], 2) : _vm._e()]) : _vm._e(), _c('div', {
|
|
97586
|
+
staticClass: "section-content"
|
|
97587
|
+
}, [_vm._t("default")], 2)], 2);
|
|
97588
|
+
};
|
|
97589
|
+
var ByCardViewvue_type_template_id_c807fa9e_staticRenderFns = [];
|
|
97590
|
+
|
|
97591
|
+
;// ./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/card-view/ByCardView.vue?vue&type=script&lang=js
|
|
97592
|
+
/**
|
|
97593
|
+
* 卡片区块:标题 + 可自定义正文,默认带边框卡片,plain 时无边框与背景融为一体。
|
|
97594
|
+
*
|
|
97595
|
+
* @example
|
|
97596
|
+
* <by-card-view title="展示名称">…</by-card-view>
|
|
97597
|
+
* <by-card-view title="分配规则配置" :plain="true">
|
|
97598
|
+
* <template #extra><el-switch v-model="on" /></template>
|
|
97599
|
+
* …
|
|
97600
|
+
* </by-card-view>
|
|
97601
|
+
* <by-card-view custom-header><template #header>…</template>…</by-card-view>
|
|
97602
|
+
*/
|
|
97603
|
+
/* harmony default export */ var ByCardViewvue_type_script_lang_js = ({
|
|
97604
|
+
name: 'ByCardView',
|
|
97605
|
+
props: {
|
|
97606
|
+
/** 标题文案;复杂标题请用 #title 插槽 */
|
|
97607
|
+
title: {
|
|
97608
|
+
type: String,
|
|
97609
|
+
default: ''
|
|
97610
|
+
},
|
|
97611
|
+
/** 为 true 时使用无边框模式(config-section--plain) */
|
|
97612
|
+
plain: {
|
|
97613
|
+
type: Boolean,
|
|
97614
|
+
default: false
|
|
97615
|
+
},
|
|
97616
|
+
/**
|
|
97617
|
+
* 为 true 时用 #header 插槽整块替换默认标题行(需同时写 template #header)
|
|
97618
|
+
*/
|
|
97619
|
+
customHeader: {
|
|
97620
|
+
type: Boolean,
|
|
97621
|
+
default: false
|
|
97622
|
+
}
|
|
97623
|
+
},
|
|
97624
|
+
computed: {
|
|
97625
|
+
showTitleRow() {
|
|
97626
|
+
return this.title || this.$slots.title || this.$slots.extra;
|
|
97627
|
+
},
|
|
97628
|
+
hasTitleText() {
|
|
97629
|
+
return this.title || this.$slots.title;
|
|
97630
|
+
}
|
|
97631
|
+
}
|
|
97632
|
+
});
|
|
97633
|
+
;// ./src/components/card-view/ByCardView.vue?vue&type=script&lang=js
|
|
97634
|
+
/* harmony default export */ var card_view_ByCardViewvue_type_script_lang_js = (ByCardViewvue_type_script_lang_js);
|
|
97635
|
+
;// ./src/components/card-view/ByCardView.vue
|
|
97636
|
+
|
|
97637
|
+
|
|
97638
|
+
|
|
97639
|
+
|
|
97640
|
+
|
|
97641
|
+
/* normalize component */
|
|
97642
|
+
;
|
|
97643
|
+
var ByCardView_component = normalizeComponent(
|
|
97644
|
+
card_view_ByCardViewvue_type_script_lang_js,
|
|
97645
|
+
ByCardViewvue_type_template_id_c807fa9e_render,
|
|
97646
|
+
ByCardViewvue_type_template_id_c807fa9e_staticRenderFns,
|
|
97647
|
+
false,
|
|
97648
|
+
null,
|
|
97649
|
+
null,
|
|
97650
|
+
null
|
|
97651
|
+
|
|
97652
|
+
)
|
|
97653
|
+
|
|
97654
|
+
/* harmony default export */ var ByCardView = (ByCardView_component.exports);
|
|
97567
97655
|
;// ./src/index.js
|
|
97568
97656
|
|
|
97569
97657
|
|
|
@@ -97588,6 +97676,7 @@ var ByTag_component = normalizeComponent(
|
|
|
97588
97676
|
|
|
97589
97677
|
|
|
97590
97678
|
|
|
97679
|
+
|
|
97591
97680
|
|
|
97592
97681
|
|
|
97593
97682
|
const components = {
|
|
@@ -97609,7 +97698,8 @@ const components = {
|
|
|
97609
97698
|
ByPopoverSelector: ByPopoverSelector,
|
|
97610
97699
|
ByGridLayout: ByGridLayout,
|
|
97611
97700
|
ByCommonInput: ByCommonInput,
|
|
97612
|
-
ByTag: ByTag
|
|
97701
|
+
ByTag: ByTag,
|
|
97702
|
+
ByCardView: ByCardView
|
|
97613
97703
|
};
|
|
97614
97704
|
|
|
97615
97705
|
// 设置当前 z-index 起始值
|
package/lib/by-components.umd.js
CHANGED
|
@@ -74283,6 +74283,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74283
74283
|
// EXPORTS
|
|
74284
74284
|
__webpack_require__.d(__webpack_exports__, {
|
|
74285
74285
|
ByBatchQuerySelector: function() { return /* reexport */ BatchQuerySelector; },
|
|
74286
|
+
ByCardView: function() { return /* reexport */ ByCardView; },
|
|
74286
74287
|
ByCascaderPanel: function() { return /* reexport */ ByCascaderPanel; },
|
|
74287
74288
|
ByCommonInput: function() { return /* reexport */ ByCommonInput; },
|
|
74288
74289
|
ByCommonSelector: function() { return /* reexport */ ByCommonSelector; },
|
|
@@ -97574,6 +97575,93 @@ var ByTag_component = normalizeComponent(
|
|
|
97574
97575
|
)
|
|
97575
97576
|
|
|
97576
97577
|
/* harmony default export */ var ByTag = (ByTag_component.exports);
|
|
97578
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8cd600e8-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/card-view/ByCardView.vue?vue&type=template&id=c807fa9e
|
|
97579
|
+
var ByCardViewvue_type_template_id_c807fa9e_render = function render() {
|
|
97580
|
+
var _vm = this,
|
|
97581
|
+
_c = _vm._self._c;
|
|
97582
|
+
return _c('div', {
|
|
97583
|
+
staticClass: "config-section by-card-view",
|
|
97584
|
+
class: {
|
|
97585
|
+
'config-section--plain': _vm.plain
|
|
97586
|
+
}
|
|
97587
|
+
}, [_vm.customHeader ? _vm._t("header") : _vm.showTitleRow ? _c('div', {
|
|
97588
|
+
staticClass: "section-title"
|
|
97589
|
+
}, [_vm.hasTitleText ? _c('span', {
|
|
97590
|
+
staticClass: "section-title-text"
|
|
97591
|
+
}, [_vm._t("title", function () {
|
|
97592
|
+
return [_vm._v(_vm._s(_vm.title))];
|
|
97593
|
+
})], 2) : _vm._e(), _vm.$slots.extra ? _c('div', {
|
|
97594
|
+
staticClass: "section-title-switch"
|
|
97595
|
+
}, [_vm._t("extra")], 2) : _vm._e()]) : _vm._e(), _c('div', {
|
|
97596
|
+
staticClass: "section-content"
|
|
97597
|
+
}, [_vm._t("default")], 2)], 2);
|
|
97598
|
+
};
|
|
97599
|
+
var ByCardViewvue_type_template_id_c807fa9e_staticRenderFns = [];
|
|
97600
|
+
|
|
97601
|
+
;// ./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/card-view/ByCardView.vue?vue&type=script&lang=js
|
|
97602
|
+
/**
|
|
97603
|
+
* 卡片区块:标题 + 可自定义正文,默认带边框卡片,plain 时无边框与背景融为一体。
|
|
97604
|
+
*
|
|
97605
|
+
* @example
|
|
97606
|
+
* <by-card-view title="展示名称">…</by-card-view>
|
|
97607
|
+
* <by-card-view title="分配规则配置" :plain="true">
|
|
97608
|
+
* <template #extra><el-switch v-model="on" /></template>
|
|
97609
|
+
* …
|
|
97610
|
+
* </by-card-view>
|
|
97611
|
+
* <by-card-view custom-header><template #header>…</template>…</by-card-view>
|
|
97612
|
+
*/
|
|
97613
|
+
/* harmony default export */ var ByCardViewvue_type_script_lang_js = ({
|
|
97614
|
+
name: 'ByCardView',
|
|
97615
|
+
props: {
|
|
97616
|
+
/** 标题文案;复杂标题请用 #title 插槽 */
|
|
97617
|
+
title: {
|
|
97618
|
+
type: String,
|
|
97619
|
+
default: ''
|
|
97620
|
+
},
|
|
97621
|
+
/** 为 true 时使用无边框模式(config-section--plain) */
|
|
97622
|
+
plain: {
|
|
97623
|
+
type: Boolean,
|
|
97624
|
+
default: false
|
|
97625
|
+
},
|
|
97626
|
+
/**
|
|
97627
|
+
* 为 true 时用 #header 插槽整块替换默认标题行(需同时写 template #header)
|
|
97628
|
+
*/
|
|
97629
|
+
customHeader: {
|
|
97630
|
+
type: Boolean,
|
|
97631
|
+
default: false
|
|
97632
|
+
}
|
|
97633
|
+
},
|
|
97634
|
+
computed: {
|
|
97635
|
+
showTitleRow() {
|
|
97636
|
+
return this.title || this.$slots.title || this.$slots.extra;
|
|
97637
|
+
},
|
|
97638
|
+
hasTitleText() {
|
|
97639
|
+
return this.title || this.$slots.title;
|
|
97640
|
+
}
|
|
97641
|
+
}
|
|
97642
|
+
});
|
|
97643
|
+
;// ./src/components/card-view/ByCardView.vue?vue&type=script&lang=js
|
|
97644
|
+
/* harmony default export */ var card_view_ByCardViewvue_type_script_lang_js = (ByCardViewvue_type_script_lang_js);
|
|
97645
|
+
;// ./src/components/card-view/ByCardView.vue
|
|
97646
|
+
|
|
97647
|
+
|
|
97648
|
+
|
|
97649
|
+
|
|
97650
|
+
|
|
97651
|
+
/* normalize component */
|
|
97652
|
+
;
|
|
97653
|
+
var ByCardView_component = normalizeComponent(
|
|
97654
|
+
card_view_ByCardViewvue_type_script_lang_js,
|
|
97655
|
+
ByCardViewvue_type_template_id_c807fa9e_render,
|
|
97656
|
+
ByCardViewvue_type_template_id_c807fa9e_staticRenderFns,
|
|
97657
|
+
false,
|
|
97658
|
+
null,
|
|
97659
|
+
null,
|
|
97660
|
+
null
|
|
97661
|
+
|
|
97662
|
+
)
|
|
97663
|
+
|
|
97664
|
+
/* harmony default export */ var ByCardView = (ByCardView_component.exports);
|
|
97577
97665
|
;// ./src/index.js
|
|
97578
97666
|
|
|
97579
97667
|
|
|
@@ -97598,6 +97686,7 @@ var ByTag_component = normalizeComponent(
|
|
|
97598
97686
|
|
|
97599
97687
|
|
|
97600
97688
|
|
|
97689
|
+
|
|
97601
97690
|
|
|
97602
97691
|
|
|
97603
97692
|
const components = {
|
|
@@ -97619,7 +97708,8 @@ const components = {
|
|
|
97619
97708
|
ByPopoverSelector: ByPopoverSelector,
|
|
97620
97709
|
ByGridLayout: ByGridLayout,
|
|
97621
97710
|
ByCommonInput: ByCommonInput,
|
|
97622
|
-
ByTag: ByTag
|
|
97711
|
+
ByTag: ByTag,
|
|
97712
|
+
ByCardView: ByCardView
|
|
97623
97713
|
};
|
|
97624
97714
|
|
|
97625
97715
|
// 设置当前 z-index 起始值
|