@weitutech/by-components 1.1.59 → 1.1.61
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 +203 -66
- package/lib/by-components.css +1 -1
- package/lib/by-components.umd.js +203 -66
- package/lib/by-components.umd.min.js +9 -9
- package/lib/index.css +1 -1
- package/package.json +1 -1
package/lib/by-components.umd.js
CHANGED
|
@@ -62335,8 +62335,8 @@ var table_component = normalizeComponent(
|
|
|
62335
62335
|
)
|
|
62336
62336
|
|
|
62337
62337
|
/* harmony default export */ var table = (table_component.exports);
|
|
62338
|
-
;// ./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/form/form.vue?vue&type=template&id=
|
|
62339
|
-
var
|
|
62338
|
+
;// ./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/form/form.vue?vue&type=template&id=6a646708&scoped=true
|
|
62339
|
+
var formvue_type_template_id_6a646708_scoped_true_render = function render() {
|
|
62340
62340
|
var _vm = this,
|
|
62341
62341
|
_c = _vm._self._c;
|
|
62342
62342
|
return _c('div', {
|
|
@@ -62457,51 +62457,27 @@ var formvue_type_template_id_1068122a_scoped_true_render = function render() {
|
|
|
62457
62457
|
"hiddenAllOptions": item.hiddenAllOptions,
|
|
62458
62458
|
"multiple": item.multiple,
|
|
62459
62459
|
"placeholder": item.placeholder,
|
|
62460
|
-
"size": _vm.elSize
|
|
62460
|
+
"size": _vm.elSize,
|
|
62461
|
+
"showSuffixInput": item.showSuffixInput,
|
|
62462
|
+
"suffixInputPlaceholder": item.suffixInputPlaceholder,
|
|
62463
|
+
"suffixInputValue": _vm.value[`${item.suffixInputField}`],
|
|
62464
|
+
"suffixInputOptions": item.suffixInputOptions
|
|
62461
62465
|
},
|
|
62462
62466
|
on: {
|
|
62467
|
+
"update:suffixInputValue": function ($event) {
|
|
62468
|
+
return _vm.$set(_vm.value, `${item.suffixInputField}`, $event);
|
|
62469
|
+
},
|
|
62470
|
+
"update:suffix-input-value": function ($event) {
|
|
62471
|
+
return _vm.$set(_vm.value, `${item.suffixInputField}`, $event);
|
|
62472
|
+
},
|
|
62463
62473
|
"input": function ($event) {
|
|
62464
62474
|
return _vm.handleValueChange($event, item);
|
|
62475
|
+
},
|
|
62476
|
+
"suffix-input-change": function ($event) {
|
|
62477
|
+
return _vm.handleSuffixInputChange($event, item);
|
|
62465
62478
|
}
|
|
62466
62479
|
}
|
|
62467
|
-
}, 'by-common-selector', item.otherOptions || {}, false))] : item.type === '
|
|
62468
|
-
staticClass: "common-selector-input-container"
|
|
62469
|
-
}, [_c('by-common-selector', _vm._b({
|
|
62470
|
-
staticStyle: {
|
|
62471
|
-
"width": "60%"
|
|
62472
|
-
},
|
|
62473
|
-
attrs: {
|
|
62474
|
-
"value": _vm.value[`${item.selectorField}`],
|
|
62475
|
-
"config": item,
|
|
62476
|
-
"type": item.selectorType || 'select',
|
|
62477
|
-
"options": item.options || [],
|
|
62478
|
-
"loadOptions": item.loadOptions,
|
|
62479
|
-
"hiddenAllOptions": item.hiddenAllOptions,
|
|
62480
|
-
"multiple": item.multiple,
|
|
62481
|
-
"placeholder": item.selectorPlaceholder || '请选择',
|
|
62482
|
-
"size": _vm.elSize
|
|
62483
|
-
},
|
|
62484
|
-
on: {
|
|
62485
|
-
"input": function ($event) {
|
|
62486
|
-
return _vm.handleSelectorInputChange($event, item, 'selector');
|
|
62487
|
-
}
|
|
62488
|
-
}
|
|
62489
|
-
}, 'by-common-selector', item.selectorOptions || {}, false)), _c('el-input', _vm._b({
|
|
62490
|
-
staticStyle: {
|
|
62491
|
-
"width": "180px"
|
|
62492
|
-
},
|
|
62493
|
-
attrs: {
|
|
62494
|
-
"value": _vm.value[`${item.inputField}`],
|
|
62495
|
-
"placeholder": item.inputPlaceholder || '请输入',
|
|
62496
|
-
"clearable": "",
|
|
62497
|
-
"size": _vm.elSize
|
|
62498
|
-
},
|
|
62499
|
-
on: {
|
|
62500
|
-
"input": function ($event) {
|
|
62501
|
-
return _vm.handleSelectorInputChange($event, item, 'input');
|
|
62502
|
-
}
|
|
62503
|
-
}
|
|
62504
|
-
}, 'el-input', item.inputOptions || {}, false))], 1)] : item.type === 'datepicker' ? [_c('el-date-picker', _vm._b({
|
|
62480
|
+
}, 'by-common-selector', item.otherOptions || {}, false))] : item.type === 'datepicker' ? [_c('el-date-picker', _vm._b({
|
|
62505
62481
|
staticStyle: {
|
|
62506
62482
|
"width": "100%"
|
|
62507
62483
|
},
|
|
@@ -62667,7 +62643,7 @@ var formvue_type_template_id_1068122a_scoped_true_render = function render() {
|
|
|
62667
62643
|
staticClass: "footer"
|
|
62668
62644
|
}, [_vm._t("footer")], 2)], 1);
|
|
62669
62645
|
};
|
|
62670
|
-
var
|
|
62646
|
+
var formvue_type_template_id_6a646708_scoped_true_staticRenderFns = [];
|
|
62671
62647
|
|
|
62672
62648
|
;// ./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/form/comps/pair-number-input.vue?vue&type=template&id=604235f6
|
|
62673
62649
|
var pair_number_inputvue_type_template_id_604235f6_render = function render() {
|
|
@@ -62967,8 +62943,8 @@ var custom_date_picker_component = normalizeComponent(
|
|
|
62967
62943
|
)
|
|
62968
62944
|
|
|
62969
62945
|
/* harmony default export */ var custom_date_picker = (custom_date_picker_component.exports);
|
|
62970
|
-
;// ./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=
|
|
62971
|
-
var
|
|
62946
|
+
;// ./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=19936312
|
|
62947
|
+
var ByCommonSelectorvue_type_template_id_19936312_render = function render() {
|
|
62972
62948
|
var _vm = this,
|
|
62973
62949
|
_c = _vm._self._c;
|
|
62974
62950
|
return _c('div', {
|
|
@@ -63101,7 +63077,7 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63101
63077
|
},
|
|
63102
63078
|
expression: "selectedValue"
|
|
63103
63079
|
}
|
|
63104
|
-
}, 'el-radio-group', _vm.$attrs, false), _vm._l(_vm.displayList, function (item) {
|
|
63080
|
+
}, 'el-radio-group', _vm.$attrs, false), [_vm._l(_vm.displayList, function (item) {
|
|
63105
63081
|
return _c('el-radio', {
|
|
63106
63082
|
key: item.id,
|
|
63107
63083
|
class: {
|
|
@@ -63115,7 +63091,27 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63115
63091
|
}, [_c('span', {
|
|
63116
63092
|
class: [item.status === 0 ? 'by_leave' : '', 'by_checkbox-label']
|
|
63117
63093
|
}, [_vm._v(_vm._s(item.name))])]);
|
|
63118
|
-
}),
|
|
63094
|
+
}), _vm.showSuffixInput ? _c('el-input', _vm._b({
|
|
63095
|
+
staticStyle: {
|
|
63096
|
+
"width": "180px",
|
|
63097
|
+
"margin-left": "30px"
|
|
63098
|
+
},
|
|
63099
|
+
attrs: {
|
|
63100
|
+
"placeholder": _vm.suffixInputPlaceholder,
|
|
63101
|
+
"clearable": "",
|
|
63102
|
+
"size": _vm.size
|
|
63103
|
+
},
|
|
63104
|
+
on: {
|
|
63105
|
+
"input": _vm.handleSuffixInputChange
|
|
63106
|
+
},
|
|
63107
|
+
model: {
|
|
63108
|
+
value: _vm.localSuffixInputValue,
|
|
63109
|
+
callback: function ($$v) {
|
|
63110
|
+
_vm.localSuffixInputValue = $$v;
|
|
63111
|
+
},
|
|
63112
|
+
expression: "localSuffixInputValue"
|
|
63113
|
+
}
|
|
63114
|
+
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e()], 2) : _c('el-checkbox-group', _vm._b({
|
|
63119
63115
|
attrs: {
|
|
63120
63116
|
"size": _vm.size,
|
|
63121
63117
|
"disabled": _vm.loading
|
|
@@ -63130,7 +63126,7 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63130
63126
|
},
|
|
63131
63127
|
expression: "selectedValue"
|
|
63132
63128
|
}
|
|
63133
|
-
}, 'el-checkbox-group', _vm.$attrs, false), _vm._l(_vm.displayList, function (item) {
|
|
63129
|
+
}, 'el-checkbox-group', _vm.$attrs, false), [_vm._l(_vm.displayList, function (item) {
|
|
63134
63130
|
return _c('el-checkbox', {
|
|
63135
63131
|
key: item.id,
|
|
63136
63132
|
class: {
|
|
@@ -63144,7 +63140,27 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63144
63140
|
}, [_c('span', {
|
|
63145
63141
|
class: [item.status === 0 ? 'by_leave' : '', 'by_checkbox-label']
|
|
63146
63142
|
}, [_vm._v(_vm._s(item.name))])]);
|
|
63147
|
-
}),
|
|
63143
|
+
}), _vm.showSuffixInput ? _c('el-input', _vm._b({
|
|
63144
|
+
staticStyle: {
|
|
63145
|
+
"width": "180px",
|
|
63146
|
+
"margin-left": "30px"
|
|
63147
|
+
},
|
|
63148
|
+
attrs: {
|
|
63149
|
+
"placeholder": _vm.suffixInputPlaceholder,
|
|
63150
|
+
"clearable": "",
|
|
63151
|
+
"size": _vm.size
|
|
63152
|
+
},
|
|
63153
|
+
on: {
|
|
63154
|
+
"input": _vm.handleSuffixInputChange
|
|
63155
|
+
},
|
|
63156
|
+
model: {
|
|
63157
|
+
value: _vm.localSuffixInputValue,
|
|
63158
|
+
callback: function ($$v) {
|
|
63159
|
+
_vm.localSuffixInputValue = $$v;
|
|
63160
|
+
},
|
|
63161
|
+
expression: "localSuffixInputValue"
|
|
63162
|
+
}
|
|
63163
|
+
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e()], 2), _vm.open && _vm.showPagination && !_vm.loading ? _c('div', {
|
|
63148
63164
|
staticClass: "by_pagination-container"
|
|
63149
63165
|
}, [_c('el-button', {
|
|
63150
63166
|
attrs: {
|
|
@@ -63185,7 +63201,7 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63185
63201
|
}
|
|
63186
63202
|
}, [_vm._v(" 加载中... ")]) : _vm._e()], 2);
|
|
63187
63203
|
};
|
|
63188
|
-
var
|
|
63204
|
+
var ByCommonSelectorvue_type_template_id_19936312_staticRenderFns = [];
|
|
63189
63205
|
|
|
63190
63206
|
;// ./node_modules/pinyin-pro/dist/index.mjs
|
|
63191
63207
|
|
|
@@ -73560,6 +73576,35 @@ function segment(word, options) {
|
|
|
73560
73576
|
needShowLoading: {
|
|
73561
73577
|
type: Boolean,
|
|
73562
73578
|
default: false
|
|
73579
|
+
},
|
|
73580
|
+
// ***************** 后置输入框相关
|
|
73581
|
+
/**
|
|
73582
|
+
* 是否显示后置输入框
|
|
73583
|
+
*/
|
|
73584
|
+
showSuffixInput: {
|
|
73585
|
+
type: Boolean,
|
|
73586
|
+
default: false
|
|
73587
|
+
},
|
|
73588
|
+
/**
|
|
73589
|
+
* 后置输入框的placeholder
|
|
73590
|
+
*/
|
|
73591
|
+
suffixInputPlaceholder: {
|
|
73592
|
+
type: String,
|
|
73593
|
+
default: '请输入'
|
|
73594
|
+
},
|
|
73595
|
+
/**
|
|
73596
|
+
* 后置输入框的值
|
|
73597
|
+
*/
|
|
73598
|
+
suffixInputValue: {
|
|
73599
|
+
type: String,
|
|
73600
|
+
default: ''
|
|
73601
|
+
},
|
|
73602
|
+
/**
|
|
73603
|
+
* 后置输入框的选项
|
|
73604
|
+
*/
|
|
73605
|
+
suffixInputOptions: {
|
|
73606
|
+
type: Object,
|
|
73607
|
+
default: () => ({})
|
|
73563
73608
|
}
|
|
73564
73609
|
},
|
|
73565
73610
|
data() {
|
|
@@ -73585,7 +73630,9 @@ function segment(word, options) {
|
|
|
73585
73630
|
// 用于防抖处理
|
|
73586
73631
|
forceCheckTimers: [],
|
|
73587
73632
|
// 用于强制检查的定时器数组
|
|
73588
|
-
isCheckingExpand: false
|
|
73633
|
+
isCheckingExpand: false,
|
|
73634
|
+
// 标记是否正在检查展开状态
|
|
73635
|
+
localSuffixInputValue: '' // 本地缓存的suffixInputValue
|
|
73589
73636
|
};
|
|
73590
73637
|
},
|
|
73591
73638
|
computed: {
|
|
@@ -73648,9 +73695,18 @@ function segment(word, options) {
|
|
|
73648
73695
|
this.scheduleExpandCheck();
|
|
73649
73696
|
},
|
|
73650
73697
|
deep: true
|
|
73698
|
+
},
|
|
73699
|
+
suffixInputValue(val) {
|
|
73700
|
+
// 当父组件传入的suffixInputValue变化时,更新本地值
|
|
73701
|
+
if (val !== this.localSuffixInputValue) {
|
|
73702
|
+
this.localSuffixInputValue = val;
|
|
73703
|
+
}
|
|
73651
73704
|
}
|
|
73652
73705
|
},
|
|
73653
73706
|
created() {
|
|
73707
|
+
// 初始化本地suffixInputValue
|
|
73708
|
+
this.localSuffixInputValue = this.suffixInputValue;
|
|
73709
|
+
|
|
73654
73710
|
// 如果提供了异步加载函数,则调用它
|
|
73655
73711
|
if (this.loadOptions) {
|
|
73656
73712
|
this.fetchOptions();
|
|
@@ -73732,12 +73788,13 @@ function segment(word, options) {
|
|
|
73732
73788
|
},
|
|
73733
73789
|
// 检查是否需要展开按钮
|
|
73734
73790
|
checkNeedExpand() {
|
|
73791
|
+
var _this$$el;
|
|
73735
73792
|
if (this.type === 'select') {
|
|
73736
73793
|
this.needExpand = false;
|
|
73737
73794
|
return;
|
|
73738
73795
|
}
|
|
73739
73796
|
|
|
73740
|
-
//
|
|
73797
|
+
// 如果是展开状态,一定要显示"收起"按钮
|
|
73741
73798
|
if (this.open) {
|
|
73742
73799
|
this.needExpand = true;
|
|
73743
73800
|
return;
|
|
@@ -73750,8 +73807,11 @@ function segment(word, options) {
|
|
|
73750
73807
|
}
|
|
73751
73808
|
|
|
73752
73809
|
// 获取容器元素
|
|
73753
|
-
const container = this.$el.querySelector('.by_consult-select-container');
|
|
73754
|
-
if (!container)
|
|
73810
|
+
const container = (_this$$el = this.$el) === null || _this$$el === void 0 ? void 0 : _this$$el.querySelector('.by_consult-select-container');
|
|
73811
|
+
if (!container) {
|
|
73812
|
+
// 如果找不到容器,保持当前状态不变
|
|
73813
|
+
return;
|
|
73814
|
+
}
|
|
73755
73815
|
|
|
73756
73816
|
// 获取所有选项元素
|
|
73757
73817
|
const items = container.querySelectorAll('.el-checkbox, .el-radio');
|
|
@@ -73783,11 +73843,20 @@ function segment(word, options) {
|
|
|
73783
73843
|
if (!containerWidth) containerWidth = 500;
|
|
73784
73844
|
|
|
73785
73845
|
// 如果总宽度超过容器宽度,则需要展开按钮
|
|
73786
|
-
|
|
73846
|
+
const needExpand = totalWidth > containerWidth;
|
|
73847
|
+
|
|
73848
|
+
// 只有在状态变化时才更新,减少不必要的重渲染
|
|
73849
|
+
if (this.needExpand !== needExpand) {
|
|
73850
|
+
this.needExpand = needExpand;
|
|
73851
|
+
}
|
|
73787
73852
|
} catch (error) {
|
|
73788
73853
|
// 出错时默认显示展开按钮
|
|
73854
|
+
console.error('检查展开按钮状态时出错:', error);
|
|
73789
73855
|
this.needExpand = true;
|
|
73790
73856
|
}
|
|
73857
|
+
|
|
73858
|
+
// 返回当前的展开状态,方便外部调用时获取结果
|
|
73859
|
+
return this.needExpand;
|
|
73791
73860
|
},
|
|
73792
73861
|
// 异步加载数据
|
|
73793
73862
|
async fetchOptions() {
|
|
@@ -73990,6 +74059,11 @@ function segment(word, options) {
|
|
|
73990
74059
|
emitChange(value) {
|
|
73991
74060
|
// console.log('001:触发了-emitChange ==:', value)
|
|
73992
74061
|
this.$emit('input', value);
|
|
74062
|
+
},
|
|
74063
|
+
handleSuffixInputChange(value) {
|
|
74064
|
+
this.localSuffixInputValue = value;
|
|
74065
|
+
this.$emit('suffix-input-change', value);
|
|
74066
|
+
this.$emit('update:suffixInputValue', value);
|
|
73993
74067
|
}
|
|
73994
74068
|
}
|
|
73995
74069
|
});
|
|
@@ -74005,8 +74079,8 @@ function segment(word, options) {
|
|
|
74005
74079
|
;
|
|
74006
74080
|
var ByCommonSelector_component = normalizeComponent(
|
|
74007
74081
|
common_selector_ByCommonSelectorvue_type_script_lang_js,
|
|
74008
|
-
|
|
74009
|
-
|
|
74082
|
+
ByCommonSelectorvue_type_template_id_19936312_render,
|
|
74083
|
+
ByCommonSelectorvue_type_template_id_19936312_staticRenderFns,
|
|
74010
74084
|
false,
|
|
74011
74085
|
null,
|
|
74012
74086
|
null,
|
|
@@ -74019,6 +74093,9 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74019
74093
|
|
|
74020
74094
|
|
|
74021
74095
|
|
|
74096
|
+
|
|
74097
|
+
|
|
74098
|
+
|
|
74022
74099
|
/* harmony default export */ var formvue_type_script_lang_js = ({
|
|
74023
74100
|
name: 'ByForm',
|
|
74024
74101
|
components: {
|
|
@@ -74129,9 +74206,53 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74129
74206
|
},
|
|
74130
74207
|
deep: true,
|
|
74131
74208
|
immediate: true
|
|
74209
|
+
},
|
|
74210
|
+
// 监听isFlexible变化,更新ByCommonSelector组件的展开状态
|
|
74211
|
+
isFlexible(newVal, oldVal) {
|
|
74212
|
+
if (newVal !== oldVal) {
|
|
74213
|
+
// 在下一个DOM更新周期中调用所有by-common-selector组件的checkNeedExpand方法
|
|
74214
|
+
this.$nextTick(() => {
|
|
74215
|
+
this.updateCommonSelectorExpandState();
|
|
74216
|
+
});
|
|
74217
|
+
}
|
|
74132
74218
|
}
|
|
74133
74219
|
},
|
|
74134
74220
|
methods: {
|
|
74221
|
+
// 更新所有ByCommonSelector组件的展开状态
|
|
74222
|
+
updateCommonSelectorExpandState() {
|
|
74223
|
+
// 查找所有ByCommonSelector组件实例
|
|
74224
|
+
const selectorComponents = this.findByCommonSelectorComponents(this);
|
|
74225
|
+
|
|
74226
|
+
// 调用每个组件的checkNeedExpand方法
|
|
74227
|
+
selectorComponents.forEach(component => {
|
|
74228
|
+
if (component && typeof component.checkNeedExpand === 'function') {
|
|
74229
|
+
component.checkNeedExpand();
|
|
74230
|
+
// 同时调用scheduleExpandCheck以确保正确处理
|
|
74231
|
+
if (typeof component.scheduleExpandCheck === 'function') {
|
|
74232
|
+
component.scheduleExpandCheck();
|
|
74233
|
+
}
|
|
74234
|
+
}
|
|
74235
|
+
});
|
|
74236
|
+
},
|
|
74237
|
+
// 递归查找所有ByCommonSelector组件
|
|
74238
|
+
findByCommonSelectorComponents(component) {
|
|
74239
|
+
let components = [];
|
|
74240
|
+
|
|
74241
|
+
// 检查当前组件的$children
|
|
74242
|
+
if (component.$children && component.$children.length > 0) {
|
|
74243
|
+
component.$children.forEach(child => {
|
|
74244
|
+
// 如果是ByCommonSelector组件
|
|
74245
|
+
if (child.$options && child.$options.name === 'ByCommonSelector') {
|
|
74246
|
+
components.push(child);
|
|
74247
|
+
}
|
|
74248
|
+
|
|
74249
|
+
// 递归查找子组件的子组件
|
|
74250
|
+
const childComponents = this.findByCommonSelectorComponents(child);
|
|
74251
|
+
components = components.concat(childComponents);
|
|
74252
|
+
});
|
|
74253
|
+
}
|
|
74254
|
+
return components;
|
|
74255
|
+
},
|
|
74135
74256
|
validate(cb = () => {}) {
|
|
74136
74257
|
this.$refs.formRef.validate((valid, obj) => {
|
|
74137
74258
|
cb(valid, obj);
|
|
@@ -74177,6 +74298,19 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74177
74298
|
inputValue: this.replacementData[item.inputField]
|
|
74178
74299
|
});
|
|
74179
74300
|
},
|
|
74301
|
+
handleSuffixInputChange(value, item) {
|
|
74302
|
+
if (!this.replacementData) {
|
|
74303
|
+
this.replacementData = {
|
|
74304
|
+
...this.value
|
|
74305
|
+
};
|
|
74306
|
+
}
|
|
74307
|
+
this.replacementData[item.suffixInputField] = value;
|
|
74308
|
+
this.$emit('input', this.replacementData);
|
|
74309
|
+
this.$emit('suffix-input-change', {
|
|
74310
|
+
...item,
|
|
74311
|
+
value
|
|
74312
|
+
});
|
|
74313
|
+
},
|
|
74180
74314
|
handleRangeChange({
|
|
74181
74315
|
startTime,
|
|
74182
74316
|
endTime
|
|
@@ -74216,6 +74350,8 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74216
74350
|
});
|
|
74217
74351
|
this.$nextTick(() => {
|
|
74218
74352
|
this.$emit('reset');
|
|
74353
|
+
// 重置后更新选择器状态
|
|
74354
|
+
this.updateCommonSelectorExpandState();
|
|
74219
74355
|
});
|
|
74220
74356
|
},
|
|
74221
74357
|
handleSelectLoadSuccess(options, item) {
|
|
@@ -74236,10 +74372,10 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74236
74372
|
});
|
|
74237
74373
|
;// ./src/components/form/form.vue?vue&type=script&lang=js
|
|
74238
74374
|
/* harmony default export */ var form_formvue_type_script_lang_js = (formvue_type_script_lang_js);
|
|
74239
|
-
;// ./node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[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/form/form.vue?vue&type=style&index=0&id=
|
|
74375
|
+
;// ./node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[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/form/form.vue?vue&type=style&index=0&id=6a646708&prod&lang=scss&scoped=true
|
|
74240
74376
|
// extracted by mini-css-extract-plugin
|
|
74241
74377
|
|
|
74242
|
-
;// ./src/components/form/form.vue?vue&type=style&index=0&id=
|
|
74378
|
+
;// ./src/components/form/form.vue?vue&type=style&index=0&id=6a646708&prod&lang=scss&scoped=true
|
|
74243
74379
|
|
|
74244
74380
|
;// ./src/components/form/form.vue
|
|
74245
74381
|
|
|
@@ -74252,23 +74388,24 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74252
74388
|
|
|
74253
74389
|
var form_component = normalizeComponent(
|
|
74254
74390
|
form_formvue_type_script_lang_js,
|
|
74255
|
-
|
|
74256
|
-
|
|
74391
|
+
formvue_type_template_id_6a646708_scoped_true_render,
|
|
74392
|
+
formvue_type_template_id_6a646708_scoped_true_staticRenderFns,
|
|
74257
74393
|
false,
|
|
74258
74394
|
null,
|
|
74259
|
-
"
|
|
74395
|
+
"6a646708",
|
|
74260
74396
|
null
|
|
74261
74397
|
|
|
74262
74398
|
)
|
|
74263
74399
|
|
|
74264
74400
|
/* harmony default export */ var form_form = (form_component.exports);
|
|
74265
|
-
;// ./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/page-search/page-search.vue?vue&type=template&id=
|
|
74266
|
-
var
|
|
74401
|
+
;// ./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/page-search/page-search.vue?vue&type=template&id=d39cfe72
|
|
74402
|
+
var page_searchvue_type_template_id_d39cfe72_render = function render() {
|
|
74267
74403
|
var _vm = this,
|
|
74268
74404
|
_c = _vm._self._c;
|
|
74269
74405
|
return _c('div', {
|
|
74270
74406
|
staticClass: "b-page-search"
|
|
74271
74407
|
}, [_c('by-form', _vm._b({
|
|
74408
|
+
ref: "searchForm",
|
|
74272
74409
|
attrs: {
|
|
74273
74410
|
"value": _vm.formData,
|
|
74274
74411
|
"is-flexible": _vm.unfold
|
|
@@ -74309,7 +74446,7 @@ var page_searchvue_type_template_id_642560df_render = function render() {
|
|
|
74309
74446
|
})], null, true)
|
|
74310
74447
|
}, 'by-form', _vm.searchFormConfig, false))], 1);
|
|
74311
74448
|
};
|
|
74312
|
-
var
|
|
74449
|
+
var page_searchvue_type_template_id_d39cfe72_staticRenderFns = [];
|
|
74313
74450
|
|
|
74314
74451
|
;// ./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/page-search/page-search.vue?vue&type=script&lang=js
|
|
74315
74452
|
|
|
@@ -74423,8 +74560,8 @@ var page_searchvue_type_template_id_642560df_staticRenderFns = [];
|
|
|
74423
74560
|
;
|
|
74424
74561
|
var page_search_component = normalizeComponent(
|
|
74425
74562
|
page_search_page_searchvue_type_script_lang_js,
|
|
74426
|
-
|
|
74427
|
-
|
|
74563
|
+
page_searchvue_type_template_id_d39cfe72_render,
|
|
74564
|
+
page_searchvue_type_template_id_d39cfe72_staticRenderFns,
|
|
74428
74565
|
false,
|
|
74429
74566
|
null,
|
|
74430
74567
|
null,
|