@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
|
@@ -62325,8 +62325,8 @@ var table_component = normalizeComponent(
|
|
|
62325
62325
|
)
|
|
62326
62326
|
|
|
62327
62327
|
/* harmony default export */ var table = (table_component.exports);
|
|
62328
|
-
;// ./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/form/form.vue?vue&type=template&id=
|
|
62329
|
-
var
|
|
62328
|
+
;// ./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/form/form.vue?vue&type=template&id=6a646708&scoped=true
|
|
62329
|
+
var formvue_type_template_id_6a646708_scoped_true_render = function render() {
|
|
62330
62330
|
var _vm = this,
|
|
62331
62331
|
_c = _vm._self._c;
|
|
62332
62332
|
return _c('div', {
|
|
@@ -62447,51 +62447,27 @@ var formvue_type_template_id_1068122a_scoped_true_render = function render() {
|
|
|
62447
62447
|
"hiddenAllOptions": item.hiddenAllOptions,
|
|
62448
62448
|
"multiple": item.multiple,
|
|
62449
62449
|
"placeholder": item.placeholder,
|
|
62450
|
-
"size": _vm.elSize
|
|
62450
|
+
"size": _vm.elSize,
|
|
62451
|
+
"showSuffixInput": item.showSuffixInput,
|
|
62452
|
+
"suffixInputPlaceholder": item.suffixInputPlaceholder,
|
|
62453
|
+
"suffixInputValue": _vm.value[`${item.suffixInputField}`],
|
|
62454
|
+
"suffixInputOptions": item.suffixInputOptions
|
|
62451
62455
|
},
|
|
62452
62456
|
on: {
|
|
62457
|
+
"update:suffixInputValue": function ($event) {
|
|
62458
|
+
return _vm.$set(_vm.value, `${item.suffixInputField}`, $event);
|
|
62459
|
+
},
|
|
62460
|
+
"update:suffix-input-value": function ($event) {
|
|
62461
|
+
return _vm.$set(_vm.value, `${item.suffixInputField}`, $event);
|
|
62462
|
+
},
|
|
62453
62463
|
"input": function ($event) {
|
|
62454
62464
|
return _vm.handleValueChange($event, item);
|
|
62465
|
+
},
|
|
62466
|
+
"suffix-input-change": function ($event) {
|
|
62467
|
+
return _vm.handleSuffixInputChange($event, item);
|
|
62455
62468
|
}
|
|
62456
62469
|
}
|
|
62457
|
-
}, 'by-common-selector', item.otherOptions || {}, false))] : item.type === '
|
|
62458
|
-
staticClass: "common-selector-input-container"
|
|
62459
|
-
}, [_c('by-common-selector', _vm._b({
|
|
62460
|
-
staticStyle: {
|
|
62461
|
-
"width": "60%"
|
|
62462
|
-
},
|
|
62463
|
-
attrs: {
|
|
62464
|
-
"value": _vm.value[`${item.selectorField}`],
|
|
62465
|
-
"config": item,
|
|
62466
|
-
"type": item.selectorType || 'select',
|
|
62467
|
-
"options": item.options || [],
|
|
62468
|
-
"loadOptions": item.loadOptions,
|
|
62469
|
-
"hiddenAllOptions": item.hiddenAllOptions,
|
|
62470
|
-
"multiple": item.multiple,
|
|
62471
|
-
"placeholder": item.selectorPlaceholder || '请选择',
|
|
62472
|
-
"size": _vm.elSize
|
|
62473
|
-
},
|
|
62474
|
-
on: {
|
|
62475
|
-
"input": function ($event) {
|
|
62476
|
-
return _vm.handleSelectorInputChange($event, item, 'selector');
|
|
62477
|
-
}
|
|
62478
|
-
}
|
|
62479
|
-
}, 'by-common-selector', item.selectorOptions || {}, false)), _c('el-input', _vm._b({
|
|
62480
|
-
staticStyle: {
|
|
62481
|
-
"width": "180px"
|
|
62482
|
-
},
|
|
62483
|
-
attrs: {
|
|
62484
|
-
"value": _vm.value[`${item.inputField}`],
|
|
62485
|
-
"placeholder": item.inputPlaceholder || '请输入',
|
|
62486
|
-
"clearable": "",
|
|
62487
|
-
"size": _vm.elSize
|
|
62488
|
-
},
|
|
62489
|
-
on: {
|
|
62490
|
-
"input": function ($event) {
|
|
62491
|
-
return _vm.handleSelectorInputChange($event, item, 'input');
|
|
62492
|
-
}
|
|
62493
|
-
}
|
|
62494
|
-
}, 'el-input', item.inputOptions || {}, false))], 1)] : item.type === 'datepicker' ? [_c('el-date-picker', _vm._b({
|
|
62470
|
+
}, 'by-common-selector', item.otherOptions || {}, false))] : item.type === 'datepicker' ? [_c('el-date-picker', _vm._b({
|
|
62495
62471
|
staticStyle: {
|
|
62496
62472
|
"width": "100%"
|
|
62497
62473
|
},
|
|
@@ -62657,7 +62633,7 @@ var formvue_type_template_id_1068122a_scoped_true_render = function render() {
|
|
|
62657
62633
|
staticClass: "footer"
|
|
62658
62634
|
}, [_vm._t("footer")], 2)], 1);
|
|
62659
62635
|
};
|
|
62660
|
-
var
|
|
62636
|
+
var formvue_type_template_id_6a646708_scoped_true_staticRenderFns = [];
|
|
62661
62637
|
|
|
62662
62638
|
;// ./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/form/comps/pair-number-input.vue?vue&type=template&id=604235f6
|
|
62663
62639
|
var pair_number_inputvue_type_template_id_604235f6_render = function render() {
|
|
@@ -62957,8 +62933,8 @@ var custom_date_picker_component = normalizeComponent(
|
|
|
62957
62933
|
)
|
|
62958
62934
|
|
|
62959
62935
|
/* harmony default export */ var custom_date_picker = (custom_date_picker_component.exports);
|
|
62960
|
-
;// ./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=
|
|
62961
|
-
var
|
|
62936
|
+
;// ./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=19936312
|
|
62937
|
+
var ByCommonSelectorvue_type_template_id_19936312_render = function render() {
|
|
62962
62938
|
var _vm = this,
|
|
62963
62939
|
_c = _vm._self._c;
|
|
62964
62940
|
return _c('div', {
|
|
@@ -63091,7 +63067,7 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63091
63067
|
},
|
|
63092
63068
|
expression: "selectedValue"
|
|
63093
63069
|
}
|
|
63094
|
-
}, 'el-radio-group', _vm.$attrs, false), _vm._l(_vm.displayList, function (item) {
|
|
63070
|
+
}, 'el-radio-group', _vm.$attrs, false), [_vm._l(_vm.displayList, function (item) {
|
|
63095
63071
|
return _c('el-radio', {
|
|
63096
63072
|
key: item.id,
|
|
63097
63073
|
class: {
|
|
@@ -63105,7 +63081,27 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63105
63081
|
}, [_c('span', {
|
|
63106
63082
|
class: [item.status === 0 ? 'by_leave' : '', 'by_checkbox-label']
|
|
63107
63083
|
}, [_vm._v(_vm._s(item.name))])]);
|
|
63108
|
-
}),
|
|
63084
|
+
}), _vm.showSuffixInput ? _c('el-input', _vm._b({
|
|
63085
|
+
staticStyle: {
|
|
63086
|
+
"width": "180px",
|
|
63087
|
+
"margin-left": "30px"
|
|
63088
|
+
},
|
|
63089
|
+
attrs: {
|
|
63090
|
+
"placeholder": _vm.suffixInputPlaceholder,
|
|
63091
|
+
"clearable": "",
|
|
63092
|
+
"size": _vm.size
|
|
63093
|
+
},
|
|
63094
|
+
on: {
|
|
63095
|
+
"input": _vm.handleSuffixInputChange
|
|
63096
|
+
},
|
|
63097
|
+
model: {
|
|
63098
|
+
value: _vm.localSuffixInputValue,
|
|
63099
|
+
callback: function ($$v) {
|
|
63100
|
+
_vm.localSuffixInputValue = $$v;
|
|
63101
|
+
},
|
|
63102
|
+
expression: "localSuffixInputValue"
|
|
63103
|
+
}
|
|
63104
|
+
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e()], 2) : _c('el-checkbox-group', _vm._b({
|
|
63109
63105
|
attrs: {
|
|
63110
63106
|
"size": _vm.size,
|
|
63111
63107
|
"disabled": _vm.loading
|
|
@@ -63120,7 +63116,7 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63120
63116
|
},
|
|
63121
63117
|
expression: "selectedValue"
|
|
63122
63118
|
}
|
|
63123
|
-
}, 'el-checkbox-group', _vm.$attrs, false), _vm._l(_vm.displayList, function (item) {
|
|
63119
|
+
}, 'el-checkbox-group', _vm.$attrs, false), [_vm._l(_vm.displayList, function (item) {
|
|
63124
63120
|
return _c('el-checkbox', {
|
|
63125
63121
|
key: item.id,
|
|
63126
63122
|
class: {
|
|
@@ -63134,7 +63130,27 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63134
63130
|
}, [_c('span', {
|
|
63135
63131
|
class: [item.status === 0 ? 'by_leave' : '', 'by_checkbox-label']
|
|
63136
63132
|
}, [_vm._v(_vm._s(item.name))])]);
|
|
63137
|
-
}),
|
|
63133
|
+
}), _vm.showSuffixInput ? _c('el-input', _vm._b({
|
|
63134
|
+
staticStyle: {
|
|
63135
|
+
"width": "180px",
|
|
63136
|
+
"margin-left": "30px"
|
|
63137
|
+
},
|
|
63138
|
+
attrs: {
|
|
63139
|
+
"placeholder": _vm.suffixInputPlaceholder,
|
|
63140
|
+
"clearable": "",
|
|
63141
|
+
"size": _vm.size
|
|
63142
|
+
},
|
|
63143
|
+
on: {
|
|
63144
|
+
"input": _vm.handleSuffixInputChange
|
|
63145
|
+
},
|
|
63146
|
+
model: {
|
|
63147
|
+
value: _vm.localSuffixInputValue,
|
|
63148
|
+
callback: function ($$v) {
|
|
63149
|
+
_vm.localSuffixInputValue = $$v;
|
|
63150
|
+
},
|
|
63151
|
+
expression: "localSuffixInputValue"
|
|
63152
|
+
}
|
|
63153
|
+
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e()], 2), _vm.open && _vm.showPagination && !_vm.loading ? _c('div', {
|
|
63138
63154
|
staticClass: "by_pagination-container"
|
|
63139
63155
|
}, [_c('el-button', {
|
|
63140
63156
|
attrs: {
|
|
@@ -63175,7 +63191,7 @@ var ByCommonSelectorvue_type_template_id_042a5da2_render = function render() {
|
|
|
63175
63191
|
}
|
|
63176
63192
|
}, [_vm._v(" 加载中... ")]) : _vm._e()], 2);
|
|
63177
63193
|
};
|
|
63178
|
-
var
|
|
63194
|
+
var ByCommonSelectorvue_type_template_id_19936312_staticRenderFns = [];
|
|
63179
63195
|
|
|
63180
63196
|
;// ./node_modules/pinyin-pro/dist/index.mjs
|
|
63181
63197
|
|
|
@@ -73550,6 +73566,35 @@ function segment(word, options) {
|
|
|
73550
73566
|
needShowLoading: {
|
|
73551
73567
|
type: Boolean,
|
|
73552
73568
|
default: false
|
|
73569
|
+
},
|
|
73570
|
+
// ***************** 后置输入框相关
|
|
73571
|
+
/**
|
|
73572
|
+
* 是否显示后置输入框
|
|
73573
|
+
*/
|
|
73574
|
+
showSuffixInput: {
|
|
73575
|
+
type: Boolean,
|
|
73576
|
+
default: false
|
|
73577
|
+
},
|
|
73578
|
+
/**
|
|
73579
|
+
* 后置输入框的placeholder
|
|
73580
|
+
*/
|
|
73581
|
+
suffixInputPlaceholder: {
|
|
73582
|
+
type: String,
|
|
73583
|
+
default: '请输入'
|
|
73584
|
+
},
|
|
73585
|
+
/**
|
|
73586
|
+
* 后置输入框的值
|
|
73587
|
+
*/
|
|
73588
|
+
suffixInputValue: {
|
|
73589
|
+
type: String,
|
|
73590
|
+
default: ''
|
|
73591
|
+
},
|
|
73592
|
+
/**
|
|
73593
|
+
* 后置输入框的选项
|
|
73594
|
+
*/
|
|
73595
|
+
suffixInputOptions: {
|
|
73596
|
+
type: Object,
|
|
73597
|
+
default: () => ({})
|
|
73553
73598
|
}
|
|
73554
73599
|
},
|
|
73555
73600
|
data() {
|
|
@@ -73575,7 +73620,9 @@ function segment(word, options) {
|
|
|
73575
73620
|
// 用于防抖处理
|
|
73576
73621
|
forceCheckTimers: [],
|
|
73577
73622
|
// 用于强制检查的定时器数组
|
|
73578
|
-
isCheckingExpand: false
|
|
73623
|
+
isCheckingExpand: false,
|
|
73624
|
+
// 标记是否正在检查展开状态
|
|
73625
|
+
localSuffixInputValue: '' // 本地缓存的suffixInputValue
|
|
73579
73626
|
};
|
|
73580
73627
|
},
|
|
73581
73628
|
computed: {
|
|
@@ -73638,9 +73685,18 @@ function segment(word, options) {
|
|
|
73638
73685
|
this.scheduleExpandCheck();
|
|
73639
73686
|
},
|
|
73640
73687
|
deep: true
|
|
73688
|
+
},
|
|
73689
|
+
suffixInputValue(val) {
|
|
73690
|
+
// 当父组件传入的suffixInputValue变化时,更新本地值
|
|
73691
|
+
if (val !== this.localSuffixInputValue) {
|
|
73692
|
+
this.localSuffixInputValue = val;
|
|
73693
|
+
}
|
|
73641
73694
|
}
|
|
73642
73695
|
},
|
|
73643
73696
|
created() {
|
|
73697
|
+
// 初始化本地suffixInputValue
|
|
73698
|
+
this.localSuffixInputValue = this.suffixInputValue;
|
|
73699
|
+
|
|
73644
73700
|
// 如果提供了异步加载函数,则调用它
|
|
73645
73701
|
if (this.loadOptions) {
|
|
73646
73702
|
this.fetchOptions();
|
|
@@ -73722,12 +73778,13 @@ function segment(word, options) {
|
|
|
73722
73778
|
},
|
|
73723
73779
|
// 检查是否需要展开按钮
|
|
73724
73780
|
checkNeedExpand() {
|
|
73781
|
+
var _this$$el;
|
|
73725
73782
|
if (this.type === 'select') {
|
|
73726
73783
|
this.needExpand = false;
|
|
73727
73784
|
return;
|
|
73728
73785
|
}
|
|
73729
73786
|
|
|
73730
|
-
//
|
|
73787
|
+
// 如果是展开状态,一定要显示"收起"按钮
|
|
73731
73788
|
if (this.open) {
|
|
73732
73789
|
this.needExpand = true;
|
|
73733
73790
|
return;
|
|
@@ -73740,8 +73797,11 @@ function segment(word, options) {
|
|
|
73740
73797
|
}
|
|
73741
73798
|
|
|
73742
73799
|
// 获取容器元素
|
|
73743
|
-
const container = this.$el.querySelector('.by_consult-select-container');
|
|
73744
|
-
if (!container)
|
|
73800
|
+
const container = (_this$$el = this.$el) === null || _this$$el === void 0 ? void 0 : _this$$el.querySelector('.by_consult-select-container');
|
|
73801
|
+
if (!container) {
|
|
73802
|
+
// 如果找不到容器,保持当前状态不变
|
|
73803
|
+
return;
|
|
73804
|
+
}
|
|
73745
73805
|
|
|
73746
73806
|
// 获取所有选项元素
|
|
73747
73807
|
const items = container.querySelectorAll('.el-checkbox, .el-radio');
|
|
@@ -73773,11 +73833,20 @@ function segment(word, options) {
|
|
|
73773
73833
|
if (!containerWidth) containerWidth = 500;
|
|
73774
73834
|
|
|
73775
73835
|
// 如果总宽度超过容器宽度,则需要展开按钮
|
|
73776
|
-
|
|
73836
|
+
const needExpand = totalWidth > containerWidth;
|
|
73837
|
+
|
|
73838
|
+
// 只有在状态变化时才更新,减少不必要的重渲染
|
|
73839
|
+
if (this.needExpand !== needExpand) {
|
|
73840
|
+
this.needExpand = needExpand;
|
|
73841
|
+
}
|
|
73777
73842
|
} catch (error) {
|
|
73778
73843
|
// 出错时默认显示展开按钮
|
|
73844
|
+
console.error('检查展开按钮状态时出错:', error);
|
|
73779
73845
|
this.needExpand = true;
|
|
73780
73846
|
}
|
|
73847
|
+
|
|
73848
|
+
// 返回当前的展开状态,方便外部调用时获取结果
|
|
73849
|
+
return this.needExpand;
|
|
73781
73850
|
},
|
|
73782
73851
|
// 异步加载数据
|
|
73783
73852
|
async fetchOptions() {
|
|
@@ -73980,6 +74049,11 @@ function segment(word, options) {
|
|
|
73980
74049
|
emitChange(value) {
|
|
73981
74050
|
// console.log('001:触发了-emitChange ==:', value)
|
|
73982
74051
|
this.$emit('input', value);
|
|
74052
|
+
},
|
|
74053
|
+
handleSuffixInputChange(value) {
|
|
74054
|
+
this.localSuffixInputValue = value;
|
|
74055
|
+
this.$emit('suffix-input-change', value);
|
|
74056
|
+
this.$emit('update:suffixInputValue', value);
|
|
73983
74057
|
}
|
|
73984
74058
|
}
|
|
73985
74059
|
});
|
|
@@ -73995,8 +74069,8 @@ function segment(word, options) {
|
|
|
73995
74069
|
;
|
|
73996
74070
|
var ByCommonSelector_component = normalizeComponent(
|
|
73997
74071
|
common_selector_ByCommonSelectorvue_type_script_lang_js,
|
|
73998
|
-
|
|
73999
|
-
|
|
74072
|
+
ByCommonSelectorvue_type_template_id_19936312_render,
|
|
74073
|
+
ByCommonSelectorvue_type_template_id_19936312_staticRenderFns,
|
|
74000
74074
|
false,
|
|
74001
74075
|
null,
|
|
74002
74076
|
null,
|
|
@@ -74009,6 +74083,9 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74009
74083
|
|
|
74010
74084
|
|
|
74011
74085
|
|
|
74086
|
+
|
|
74087
|
+
|
|
74088
|
+
|
|
74012
74089
|
/* harmony default export */ var formvue_type_script_lang_js = ({
|
|
74013
74090
|
name: 'ByForm',
|
|
74014
74091
|
components: {
|
|
@@ -74119,9 +74196,53 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74119
74196
|
},
|
|
74120
74197
|
deep: true,
|
|
74121
74198
|
immediate: true
|
|
74199
|
+
},
|
|
74200
|
+
// 监听isFlexible变化,更新ByCommonSelector组件的展开状态
|
|
74201
|
+
isFlexible(newVal, oldVal) {
|
|
74202
|
+
if (newVal !== oldVal) {
|
|
74203
|
+
// 在下一个DOM更新周期中调用所有by-common-selector组件的checkNeedExpand方法
|
|
74204
|
+
this.$nextTick(() => {
|
|
74205
|
+
this.updateCommonSelectorExpandState();
|
|
74206
|
+
});
|
|
74207
|
+
}
|
|
74122
74208
|
}
|
|
74123
74209
|
},
|
|
74124
74210
|
methods: {
|
|
74211
|
+
// 更新所有ByCommonSelector组件的展开状态
|
|
74212
|
+
updateCommonSelectorExpandState() {
|
|
74213
|
+
// 查找所有ByCommonSelector组件实例
|
|
74214
|
+
const selectorComponents = this.findByCommonSelectorComponents(this);
|
|
74215
|
+
|
|
74216
|
+
// 调用每个组件的checkNeedExpand方法
|
|
74217
|
+
selectorComponents.forEach(component => {
|
|
74218
|
+
if (component && typeof component.checkNeedExpand === 'function') {
|
|
74219
|
+
component.checkNeedExpand();
|
|
74220
|
+
// 同时调用scheduleExpandCheck以确保正确处理
|
|
74221
|
+
if (typeof component.scheduleExpandCheck === 'function') {
|
|
74222
|
+
component.scheduleExpandCheck();
|
|
74223
|
+
}
|
|
74224
|
+
}
|
|
74225
|
+
});
|
|
74226
|
+
},
|
|
74227
|
+
// 递归查找所有ByCommonSelector组件
|
|
74228
|
+
findByCommonSelectorComponents(component) {
|
|
74229
|
+
let components = [];
|
|
74230
|
+
|
|
74231
|
+
// 检查当前组件的$children
|
|
74232
|
+
if (component.$children && component.$children.length > 0) {
|
|
74233
|
+
component.$children.forEach(child => {
|
|
74234
|
+
// 如果是ByCommonSelector组件
|
|
74235
|
+
if (child.$options && child.$options.name === 'ByCommonSelector') {
|
|
74236
|
+
components.push(child);
|
|
74237
|
+
}
|
|
74238
|
+
|
|
74239
|
+
// 递归查找子组件的子组件
|
|
74240
|
+
const childComponents = this.findByCommonSelectorComponents(child);
|
|
74241
|
+
components = components.concat(childComponents);
|
|
74242
|
+
});
|
|
74243
|
+
}
|
|
74244
|
+
return components;
|
|
74245
|
+
},
|
|
74125
74246
|
validate(cb = () => {}) {
|
|
74126
74247
|
this.$refs.formRef.validate((valid, obj) => {
|
|
74127
74248
|
cb(valid, obj);
|
|
@@ -74167,6 +74288,19 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74167
74288
|
inputValue: this.replacementData[item.inputField]
|
|
74168
74289
|
});
|
|
74169
74290
|
},
|
|
74291
|
+
handleSuffixInputChange(value, item) {
|
|
74292
|
+
if (!this.replacementData) {
|
|
74293
|
+
this.replacementData = {
|
|
74294
|
+
...this.value
|
|
74295
|
+
};
|
|
74296
|
+
}
|
|
74297
|
+
this.replacementData[item.suffixInputField] = value;
|
|
74298
|
+
this.$emit('input', this.replacementData);
|
|
74299
|
+
this.$emit('suffix-input-change', {
|
|
74300
|
+
...item,
|
|
74301
|
+
value
|
|
74302
|
+
});
|
|
74303
|
+
},
|
|
74170
74304
|
handleRangeChange({
|
|
74171
74305
|
startTime,
|
|
74172
74306
|
endTime
|
|
@@ -74206,6 +74340,8 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74206
74340
|
});
|
|
74207
74341
|
this.$nextTick(() => {
|
|
74208
74342
|
this.$emit('reset');
|
|
74343
|
+
// 重置后更新选择器状态
|
|
74344
|
+
this.updateCommonSelectorExpandState();
|
|
74209
74345
|
});
|
|
74210
74346
|
},
|
|
74211
74347
|
handleSelectLoadSuccess(options, item) {
|
|
@@ -74226,10 +74362,10 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74226
74362
|
});
|
|
74227
74363
|
;// ./src/components/form/form.vue?vue&type=script&lang=js
|
|
74228
74364
|
/* harmony default export */ var form_formvue_type_script_lang_js = (formvue_type_script_lang_js);
|
|
74229
|
-
;// ./node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.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-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=
|
|
74365
|
+
;// ./node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.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-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
74230
74366
|
// extracted by mini-css-extract-plugin
|
|
74231
74367
|
|
|
74232
|
-
;// ./src/components/form/form.vue?vue&type=style&index=0&id=
|
|
74368
|
+
;// ./src/components/form/form.vue?vue&type=style&index=0&id=6a646708&prod&lang=scss&scoped=true
|
|
74233
74369
|
|
|
74234
74370
|
;// ./src/components/form/form.vue
|
|
74235
74371
|
|
|
@@ -74242,23 +74378,24 @@ var ByCommonSelector_component = normalizeComponent(
|
|
|
74242
74378
|
|
|
74243
74379
|
var form_component = normalizeComponent(
|
|
74244
74380
|
form_formvue_type_script_lang_js,
|
|
74245
|
-
|
|
74246
|
-
|
|
74381
|
+
formvue_type_template_id_6a646708_scoped_true_render,
|
|
74382
|
+
formvue_type_template_id_6a646708_scoped_true_staticRenderFns,
|
|
74247
74383
|
false,
|
|
74248
74384
|
null,
|
|
74249
|
-
"
|
|
74385
|
+
"6a646708",
|
|
74250
74386
|
null
|
|
74251
74387
|
|
|
74252
74388
|
)
|
|
74253
74389
|
|
|
74254
74390
|
/* harmony default export */ var form_form = (form_component.exports);
|
|
74255
|
-
;// ./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/page-search/page-search.vue?vue&type=template&id=
|
|
74256
|
-
var
|
|
74391
|
+
;// ./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/page-search/page-search.vue?vue&type=template&id=d39cfe72
|
|
74392
|
+
var page_searchvue_type_template_id_d39cfe72_render = function render() {
|
|
74257
74393
|
var _vm = this,
|
|
74258
74394
|
_c = _vm._self._c;
|
|
74259
74395
|
return _c('div', {
|
|
74260
74396
|
staticClass: "b-page-search"
|
|
74261
74397
|
}, [_c('by-form', _vm._b({
|
|
74398
|
+
ref: "searchForm",
|
|
74262
74399
|
attrs: {
|
|
74263
74400
|
"value": _vm.formData,
|
|
74264
74401
|
"is-flexible": _vm.unfold
|
|
@@ -74299,7 +74436,7 @@ var page_searchvue_type_template_id_642560df_render = function render() {
|
|
|
74299
74436
|
})], null, true)
|
|
74300
74437
|
}, 'by-form', _vm.searchFormConfig, false))], 1);
|
|
74301
74438
|
};
|
|
74302
|
-
var
|
|
74439
|
+
var page_searchvue_type_template_id_d39cfe72_staticRenderFns = [];
|
|
74303
74440
|
|
|
74304
74441
|
;// ./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/page-search/page-search.vue?vue&type=script&lang=js
|
|
74305
74442
|
|
|
@@ -74413,8 +74550,8 @@ var page_searchvue_type_template_id_642560df_staticRenderFns = [];
|
|
|
74413
74550
|
;
|
|
74414
74551
|
var page_search_component = normalizeComponent(
|
|
74415
74552
|
page_search_page_searchvue_type_script_lang_js,
|
|
74416
|
-
|
|
74417
|
-
|
|
74553
|
+
page_searchvue_type_template_id_d39cfe72_render,
|
|
74554
|
+
page_searchvue_type_template_id_d39cfe72_staticRenderFns,
|
|
74418
74555
|
false,
|
|
74419
74556
|
null,
|
|
74420
74557
|
null,
|
package/lib/by-components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.b-form .header[data-v-
|
|
1
|
+
.b-form .header[data-v-6a646708]{margin-bottom:20px}.b-form .footer[data-v-6a646708]{margin-top:20px}
|