@weitutech/by-components 1.1.113 → 1.1.114
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.
|
@@ -77604,8 +77604,8 @@ ByDialogService.install = function (Vue) {
|
|
|
77604
77604
|
Vue.prototype.$byDialog = ByDialogService;
|
|
77605
77605
|
};
|
|
77606
77606
|
/* harmony default export */ var by_dialog_ByDialogService = (ByDialogService);
|
|
77607
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ffbc40de-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/cascader-panel/ByCascaderPanel.vue?vue&type=template&id=
|
|
77608
|
-
var
|
|
77607
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ffbc40de-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/cascader-panel/ByCascaderPanel.vue?vue&type=template&id=10d25190
|
|
77608
|
+
var ByCascaderPanelvue_type_template_id_10d25190_render = function render() {
|
|
77609
77609
|
var _vm = this,
|
|
77610
77610
|
_c = _vm._self._c;
|
|
77611
77611
|
return _c('div', {
|
|
@@ -77858,7 +77858,7 @@ var ByCascaderPanelvue_type_template_id_222274a6_render = function render() {
|
|
|
77858
77858
|
staticClass: "empty-state"
|
|
77859
77859
|
}, [_vm._v("暂无选中项")]) : _vm._e()], 2)])])])]);
|
|
77860
77860
|
};
|
|
77861
|
-
var
|
|
77861
|
+
var ByCascaderPanelvue_type_template_id_10d25190_staticRenderFns = [];
|
|
77862
77862
|
|
|
77863
77863
|
;// ./src/utils/cascaderUtils.js
|
|
77864
77864
|
|
|
@@ -79192,17 +79192,20 @@ class CascaderUtils {
|
|
|
79192
79192
|
this.batchSearchVisible = false;
|
|
79193
79193
|
this.batchSearchContent = '';
|
|
79194
79194
|
},
|
|
79195
|
-
//
|
|
79195
|
+
// 在级联数据中搜索匹配的名称(全匹配,忽略空格)
|
|
79196
79196
|
searchNamesInCascader(names) {
|
|
79197
79197
|
const matchedPaths = [];
|
|
79198
79198
|
const labelKey = this.cascaderProps.label || 'label';
|
|
79199
79199
|
const searchInOptions = (options, currentPath = []) => {
|
|
79200
79200
|
for (const option of options) {
|
|
79201
79201
|
const newPath = [...currentPath, option[this.cascaderProps.value]];
|
|
79202
|
-
const optionLabel = String(option[labelKey] || '');
|
|
79202
|
+
const optionLabel = String(option[labelKey] || '').replace(/\s+/g, ''); // 去掉所有空格
|
|
79203
79203
|
|
|
79204
|
-
//
|
|
79205
|
-
const isMatched = names.some(name =>
|
|
79204
|
+
// 检查是否全匹配任何输入的名称(去掉空格后比较)
|
|
79205
|
+
const isMatched = names.some(name => {
|
|
79206
|
+
const cleanName = name.replace(/\s+/g, ''); // 去掉输入名称中的空格
|
|
79207
|
+
return optionLabel.toLowerCase() === cleanName.toLowerCase();
|
|
79208
|
+
});
|
|
79206
79209
|
if (isMatched && !option[this.cascaderProps.children]) {
|
|
79207
79210
|
// 如果是叶子节点且匹配,添加到结果中
|
|
79208
79211
|
matchedPaths.push(newPath);
|
|
@@ -79231,8 +79234,8 @@ class CascaderUtils {
|
|
|
79231
79234
|
;
|
|
79232
79235
|
var ByCascaderPanel_component = normalizeComponent(
|
|
79233
79236
|
cascader_panel_ByCascaderPanelvue_type_script_lang_js,
|
|
79234
|
-
|
|
79235
|
-
|
|
79237
|
+
ByCascaderPanelvue_type_template_id_10d25190_render,
|
|
79238
|
+
ByCascaderPanelvue_type_template_id_10d25190_staticRenderFns,
|
|
79236
79239
|
false,
|
|
79237
79240
|
null,
|
|
79238
79241
|
null,
|
package/lib/by-components.umd.js
CHANGED
|
@@ -77614,8 +77614,8 @@ ByDialogService.install = function (Vue) {
|
|
|
77614
77614
|
Vue.prototype.$byDialog = ByDialogService;
|
|
77615
77615
|
};
|
|
77616
77616
|
/* harmony default export */ var by_dialog_ByDialogService = (ByDialogService);
|
|
77617
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ffbc40de-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/cascader-panel/ByCascaderPanel.vue?vue&type=template&id=
|
|
77618
|
-
var
|
|
77617
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ffbc40de-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/cascader-panel/ByCascaderPanel.vue?vue&type=template&id=10d25190
|
|
77618
|
+
var ByCascaderPanelvue_type_template_id_10d25190_render = function render() {
|
|
77619
77619
|
var _vm = this,
|
|
77620
77620
|
_c = _vm._self._c;
|
|
77621
77621
|
return _c('div', {
|
|
@@ -77868,7 +77868,7 @@ var ByCascaderPanelvue_type_template_id_222274a6_render = function render() {
|
|
|
77868
77868
|
staticClass: "empty-state"
|
|
77869
77869
|
}, [_vm._v("暂无选中项")]) : _vm._e()], 2)])])])]);
|
|
77870
77870
|
};
|
|
77871
|
-
var
|
|
77871
|
+
var ByCascaderPanelvue_type_template_id_10d25190_staticRenderFns = [];
|
|
77872
77872
|
|
|
77873
77873
|
;// ./src/utils/cascaderUtils.js
|
|
77874
77874
|
|
|
@@ -79202,17 +79202,20 @@ class CascaderUtils {
|
|
|
79202
79202
|
this.batchSearchVisible = false;
|
|
79203
79203
|
this.batchSearchContent = '';
|
|
79204
79204
|
},
|
|
79205
|
-
//
|
|
79205
|
+
// 在级联数据中搜索匹配的名称(全匹配,忽略空格)
|
|
79206
79206
|
searchNamesInCascader(names) {
|
|
79207
79207
|
const matchedPaths = [];
|
|
79208
79208
|
const labelKey = this.cascaderProps.label || 'label';
|
|
79209
79209
|
const searchInOptions = (options, currentPath = []) => {
|
|
79210
79210
|
for (const option of options) {
|
|
79211
79211
|
const newPath = [...currentPath, option[this.cascaderProps.value]];
|
|
79212
|
-
const optionLabel = String(option[labelKey] || '');
|
|
79212
|
+
const optionLabel = String(option[labelKey] || '').replace(/\s+/g, ''); // 去掉所有空格
|
|
79213
79213
|
|
|
79214
|
-
//
|
|
79215
|
-
const isMatched = names.some(name =>
|
|
79214
|
+
// 检查是否全匹配任何输入的名称(去掉空格后比较)
|
|
79215
|
+
const isMatched = names.some(name => {
|
|
79216
|
+
const cleanName = name.replace(/\s+/g, ''); // 去掉输入名称中的空格
|
|
79217
|
+
return optionLabel.toLowerCase() === cleanName.toLowerCase();
|
|
79218
|
+
});
|
|
79216
79219
|
if (isMatched && !option[this.cascaderProps.children]) {
|
|
79217
79220
|
// 如果是叶子节点且匹配,添加到结果中
|
|
79218
79221
|
matchedPaths.push(newPath);
|
|
@@ -79241,8 +79244,8 @@ class CascaderUtils {
|
|
|
79241
79244
|
;
|
|
79242
79245
|
var ByCascaderPanel_component = normalizeComponent(
|
|
79243
79246
|
cascader_panel_ByCascaderPanelvue_type_script_lang_js,
|
|
79244
|
-
|
|
79245
|
-
|
|
79247
|
+
ByCascaderPanelvue_type_template_id_10d25190_render,
|
|
79248
|
+
ByCascaderPanelvue_type_template_id_10d25190_staticRenderFns,
|
|
79246
79249
|
false,
|
|
79247
79250
|
null,
|
|
79248
79251
|
null,
|