@weitutech/by-components 1.1.75 → 1.1.76
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 +19 -10
- package/lib/by-components.umd.js +19 -10
- package/lib/by-components.umd.min.js +1 -1
- package/lib/index.css +1 -1
- package/package.json +1 -1
|
@@ -63054,8 +63054,8 @@ var custom_date_picker_component = normalizeComponent(
|
|
|
63054
63054
|
)
|
|
63055
63055
|
|
|
63056
63056
|
/* harmony default export */ var custom_date_picker = (custom_date_picker_component.exports);
|
|
63057
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d802f52-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-selector/ByCommonSelector.vue?vue&type=template&id=
|
|
63058
|
-
var
|
|
63057
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d802f52-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-selector/ByCommonSelector.vue?vue&type=template&id=70ea248c
|
|
63058
|
+
var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
63059
63059
|
var _vm = this,
|
|
63060
63060
|
_c = _vm._self._c;
|
|
63061
63061
|
return _c('div', {
|
|
@@ -63299,7 +63299,7 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63299
63299
|
return _vm.handlePageChange(_vm.currentPage + 1);
|
|
63300
63300
|
}
|
|
63301
63301
|
}
|
|
63302
|
-
}, [_vm._v(" 下一页 ")])], 1) : _vm._e()], 1)])], _vm.type !== 'select' && _vm.needExpand ? _c('el-button', {
|
|
63302
|
+
}, [_vm._v(" 下一页 ")])], 1) : _vm._e()], 1)])], _vm.type !== 'select' && _vm.needExpand && !_vm.forceNoExpand ? _c('el-button', {
|
|
63303
63303
|
staticClass: "by_openShrink",
|
|
63304
63304
|
attrs: {
|
|
63305
63305
|
"type": "text",
|
|
@@ -63308,7 +63308,7 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63308
63308
|
on: {
|
|
63309
63309
|
"click": _vm.showList
|
|
63310
63310
|
}
|
|
63311
|
-
}, [_vm._v(" " + _vm._s(_vm.needShowLoading && _vm.loading ? '加载中...' : _vm.open ? '收起' : '展开') + " ")]) : _vm._e(), _vm.type !== 'select' && !_vm.needExpand && _vm.needShowLoading && _vm.loading ? _c('el-button', {
|
|
63311
|
+
}, [_vm._v(" " + _vm._s(_vm.needShowLoading && _vm.loading ? '加载中...' : _vm.open ? '收起' : '展开') + " ")]) : _vm._e(), _vm.type !== 'select' && !_vm.needExpand && !_vm.forceNoExpand && _vm.needShowLoading && _vm.loading ? _c('el-button', {
|
|
63312
63312
|
staticClass: "by_openShrink",
|
|
63313
63313
|
attrs: {
|
|
63314
63314
|
"type": "text",
|
|
@@ -63316,7 +63316,7 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63316
63316
|
}
|
|
63317
63317
|
}, [_vm._v(" 加载中... ")]) : _vm._e()], 2);
|
|
63318
63318
|
};
|
|
63319
|
-
var
|
|
63319
|
+
var ByCommonSelectorvue_type_template_id_70ea248c_staticRenderFns = [];
|
|
63320
63320
|
|
|
63321
63321
|
;// ./node_modules/pinyin-pro/dist/index.mjs
|
|
63322
63322
|
|
|
@@ -73599,6 +73599,8 @@ function segment(word, options) {
|
|
|
73599
73599
|
|
|
73600
73600
|
//拼音库,用于搜索栏生成A~Z字母
|
|
73601
73601
|
|
|
73602
|
+
// 全部选项可能的名称
|
|
73603
|
+
const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'all'];
|
|
73602
73604
|
/* harmony default export */ var ByCommonSelectorvue_type_script_lang_js = ({
|
|
73603
73605
|
name: 'ByCommonSelector',
|
|
73604
73606
|
props: {
|
|
@@ -73692,6 +73694,13 @@ function segment(word, options) {
|
|
|
73692
73694
|
type: Boolean,
|
|
73693
73695
|
default: false
|
|
73694
73696
|
},
|
|
73697
|
+
/**
|
|
73698
|
+
* 强制不需要展开按钮和展开逻辑
|
|
73699
|
+
*/
|
|
73700
|
+
forceNoExpand: {
|
|
73701
|
+
type: Boolean,
|
|
73702
|
+
default: false
|
|
73703
|
+
},
|
|
73695
73704
|
// ***************** 后置输入框相关
|
|
73696
73705
|
/**
|
|
73697
73706
|
* 是否显示后置输入框
|
|
@@ -73776,7 +73785,7 @@ function segment(word, options) {
|
|
|
73776
73785
|
// 如果值为undefined或空字符串,尝试匹配"全部"选项
|
|
73777
73786
|
if ((value === undefined || value === '') && this.localOptions.length > 0) {
|
|
73778
73787
|
// 查找id为undefined或空字符串的"全部"选项
|
|
73779
|
-
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && (item.name
|
|
73788
|
+
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && allOptionsNames.includes(item.name));
|
|
73780
73789
|
if (allOption) {
|
|
73781
73790
|
this.selectedValue = allOption.id;
|
|
73782
73791
|
}
|
|
@@ -73930,7 +73939,7 @@ function segment(word, options) {
|
|
|
73930
73939
|
// 检查是否需要展开按钮
|
|
73931
73940
|
checkNeedExpand() {
|
|
73932
73941
|
var _this$$el;
|
|
73933
|
-
if (this.type === 'select') {
|
|
73942
|
+
if (this.type === 'select' || this.forceNoExpand) {
|
|
73934
73943
|
this.needExpand = false;
|
|
73935
73944
|
return;
|
|
73936
73945
|
}
|
|
@@ -74038,7 +74047,7 @@ function segment(word, options) {
|
|
|
74038
74047
|
// 如果值为undefined或空字符串,尝试匹配"全部"选项
|
|
74039
74048
|
if ((this.value === undefined || this.value === '') && this.localOptions.length > 0) {
|
|
74040
74049
|
// 查找id为undefined或空字符串的"全部"选项
|
|
74041
|
-
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && (item.name
|
|
74050
|
+
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && allOptionsNames.includes(item.name));
|
|
74042
74051
|
if (allOption) {
|
|
74043
74052
|
this.selectedValue = allOption.id;
|
|
74044
74053
|
}
|
|
@@ -74236,8 +74245,8 @@ function segment(word, options) {
|
|
|
74236
74245
|
;
|
|
74237
74246
|
var ByCommonSelector_component = normalizeComponent(
|
|
74238
74247
|
common_selector_ByCommonSelectorvue_type_script_lang_js,
|
|
74239
|
-
|
|
74240
|
-
|
|
74248
|
+
ByCommonSelectorvue_type_template_id_70ea248c_render,
|
|
74249
|
+
ByCommonSelectorvue_type_template_id_70ea248c_staticRenderFns,
|
|
74241
74250
|
false,
|
|
74242
74251
|
null,
|
|
74243
74252
|
null,
|
package/lib/by-components.umd.js
CHANGED
|
@@ -63064,8 +63064,8 @@ var custom_date_picker_component = normalizeComponent(
|
|
|
63064
63064
|
)
|
|
63065
63065
|
|
|
63066
63066
|
/* harmony default export */ var custom_date_picker = (custom_date_picker_component.exports);
|
|
63067
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d802f52-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-selector/ByCommonSelector.vue?vue&type=template&id=
|
|
63068
|
-
var
|
|
63067
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d802f52-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-selector/ByCommonSelector.vue?vue&type=template&id=70ea248c
|
|
63068
|
+
var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
63069
63069
|
var _vm = this,
|
|
63070
63070
|
_c = _vm._self._c;
|
|
63071
63071
|
return _c('div', {
|
|
@@ -63309,7 +63309,7 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63309
63309
|
return _vm.handlePageChange(_vm.currentPage + 1);
|
|
63310
63310
|
}
|
|
63311
63311
|
}
|
|
63312
|
-
}, [_vm._v(" 下一页 ")])], 1) : _vm._e()], 1)])], _vm.type !== 'select' && _vm.needExpand ? _c('el-button', {
|
|
63312
|
+
}, [_vm._v(" 下一页 ")])], 1) : _vm._e()], 1)])], _vm.type !== 'select' && _vm.needExpand && !_vm.forceNoExpand ? _c('el-button', {
|
|
63313
63313
|
staticClass: "by_openShrink",
|
|
63314
63314
|
attrs: {
|
|
63315
63315
|
"type": "text",
|
|
@@ -63318,7 +63318,7 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63318
63318
|
on: {
|
|
63319
63319
|
"click": _vm.showList
|
|
63320
63320
|
}
|
|
63321
|
-
}, [_vm._v(" " + _vm._s(_vm.needShowLoading && _vm.loading ? '加载中...' : _vm.open ? '收起' : '展开') + " ")]) : _vm._e(), _vm.type !== 'select' && !_vm.needExpand && _vm.needShowLoading && _vm.loading ? _c('el-button', {
|
|
63321
|
+
}, [_vm._v(" " + _vm._s(_vm.needShowLoading && _vm.loading ? '加载中...' : _vm.open ? '收起' : '展开') + " ")]) : _vm._e(), _vm.type !== 'select' && !_vm.needExpand && !_vm.forceNoExpand && _vm.needShowLoading && _vm.loading ? _c('el-button', {
|
|
63322
63322
|
staticClass: "by_openShrink",
|
|
63323
63323
|
attrs: {
|
|
63324
63324
|
"type": "text",
|
|
@@ -63326,7 +63326,7 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63326
63326
|
}
|
|
63327
63327
|
}, [_vm._v(" 加载中... ")]) : _vm._e()], 2);
|
|
63328
63328
|
};
|
|
63329
|
-
var
|
|
63329
|
+
var ByCommonSelectorvue_type_template_id_70ea248c_staticRenderFns = [];
|
|
63330
63330
|
|
|
63331
63331
|
;// ./node_modules/pinyin-pro/dist/index.mjs
|
|
63332
63332
|
|
|
@@ -73609,6 +73609,8 @@ function segment(word, options) {
|
|
|
73609
73609
|
|
|
73610
73610
|
//拼音库,用于搜索栏生成A~Z字母
|
|
73611
73611
|
|
|
73612
|
+
// 全部选项可能的名称
|
|
73613
|
+
const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'all'];
|
|
73612
73614
|
/* harmony default export */ var ByCommonSelectorvue_type_script_lang_js = ({
|
|
73613
73615
|
name: 'ByCommonSelector',
|
|
73614
73616
|
props: {
|
|
@@ -73702,6 +73704,13 @@ function segment(word, options) {
|
|
|
73702
73704
|
type: Boolean,
|
|
73703
73705
|
default: false
|
|
73704
73706
|
},
|
|
73707
|
+
/**
|
|
73708
|
+
* 强制不需要展开按钮和展开逻辑
|
|
73709
|
+
*/
|
|
73710
|
+
forceNoExpand: {
|
|
73711
|
+
type: Boolean,
|
|
73712
|
+
default: false
|
|
73713
|
+
},
|
|
73705
73714
|
// ***************** 后置输入框相关
|
|
73706
73715
|
/**
|
|
73707
73716
|
* 是否显示后置输入框
|
|
@@ -73786,7 +73795,7 @@ function segment(word, options) {
|
|
|
73786
73795
|
// 如果值为undefined或空字符串,尝试匹配"全部"选项
|
|
73787
73796
|
if ((value === undefined || value === '') && this.localOptions.length > 0) {
|
|
73788
73797
|
// 查找id为undefined或空字符串的"全部"选项
|
|
73789
|
-
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && (item.name
|
|
73798
|
+
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && allOptionsNames.includes(item.name));
|
|
73790
73799
|
if (allOption) {
|
|
73791
73800
|
this.selectedValue = allOption.id;
|
|
73792
73801
|
}
|
|
@@ -73940,7 +73949,7 @@ function segment(word, options) {
|
|
|
73940
73949
|
// 检查是否需要展开按钮
|
|
73941
73950
|
checkNeedExpand() {
|
|
73942
73951
|
var _this$$el;
|
|
73943
|
-
if (this.type === 'select') {
|
|
73952
|
+
if (this.type === 'select' || this.forceNoExpand) {
|
|
73944
73953
|
this.needExpand = false;
|
|
73945
73954
|
return;
|
|
73946
73955
|
}
|
|
@@ -74048,7 +74057,7 @@ function segment(word, options) {
|
|
|
74048
74057
|
// 如果值为undefined或空字符串,尝试匹配"全部"选项
|
|
74049
74058
|
if ((this.value === undefined || this.value === '') && this.localOptions.length > 0) {
|
|
74050
74059
|
// 查找id为undefined或空字符串的"全部"选项
|
|
74051
|
-
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && (item.name
|
|
74060
|
+
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && allOptionsNames.includes(item.name));
|
|
74052
74061
|
if (allOption) {
|
|
74053
74062
|
this.selectedValue = allOption.id;
|
|
74054
74063
|
}
|
|
@@ -74246,8 +74255,8 @@ function segment(word, options) {
|
|
|
74246
74255
|
;
|
|
74247
74256
|
var ByCommonSelector_component = normalizeComponent(
|
|
74248
74257
|
common_selector_ByCommonSelectorvue_type_script_lang_js,
|
|
74249
|
-
|
|
74250
|
-
|
|
74258
|
+
ByCommonSelectorvue_type_template_id_70ea248c_render,
|
|
74259
|
+
ByCommonSelectorvue_type_template_id_70ea248c_staticRenderFns,
|
|
74251
74260
|
false,
|
|
74252
74261
|
null,
|
|
74253
74262
|
null,
|