@weitutech/by-components 1.1.76 → 1.1.78
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 +235 -29
- package/lib/by-components.css +1 -1
- package/lib/by-components.umd.js +235 -29
- package/lib/by-components.umd.min.js +7 -7
- package/lib/index.css +1 -1
- package/package.json +1 -1
|
@@ -60746,8 +60746,8 @@ var component = normalizeComponent(
|
|
|
60746
60746
|
)
|
|
60747
60747
|
|
|
60748
60748
|
/* harmony default export */ var pager = (component.exports);
|
|
60749
|
-
;// ./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/table/index.vue?vue&type=template&id=
|
|
60750
|
-
var
|
|
60749
|
+
;// ./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/table/index.vue?vue&type=template&id=d8d0f56a
|
|
60750
|
+
var tablevue_type_template_id_d8d0f56a_render = function render() {
|
|
60751
60751
|
var _vm = this,
|
|
60752
60752
|
_c = _vm._self._c;
|
|
60753
60753
|
return _c('div', [_c('vxe-grid', _vm._g(_vm._b({
|
|
@@ -60821,7 +60821,7 @@ var tablevue_type_template_id_022fa5ea_render = function render() {
|
|
|
60821
60821
|
}
|
|
60822
60822
|
}) : _vm._e()], 1);
|
|
60823
60823
|
};
|
|
60824
|
-
var
|
|
60824
|
+
var tablevue_type_template_id_d8d0f56a_staticRenderFns = [];
|
|
60825
60825
|
|
|
60826
60826
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
60827
60827
|
var es_array_push = __webpack_require__(4114);
|
|
@@ -61964,7 +61964,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61964
61964
|
sortConfig: {
|
|
61965
61965
|
...sortConfig,
|
|
61966
61966
|
// 只在前端排序/分页时强制 remote: true
|
|
61967
|
-
// 其他情况保持外部配置,但确保后端分页时remote为
|
|
61967
|
+
// 其他情况保持外部配置,但确保后端分页时remote为true
|
|
61968
61968
|
remote: (_others$pagerConfig3 = others.pagerConfig) !== null && _others$pagerConfig3 !== void 0 && _others$pagerConfig3.frontendPagination || (_others$sortConfig2 = others.sortConfig) !== null && _others$sortConfig2 !== void 0 && _others$sortConfig2.frontendSort ? true : (_sortConfig$remote = sortConfig === null || sortConfig === void 0 ? void 0 : sortConfig.remote) !== null && _sortConfig$remote !== void 0 ? _sortConfig$remote : false,
|
|
61969
61969
|
trigger: 'cell',
|
|
61970
61970
|
...this.gridOptions.sortConfig
|
|
@@ -62394,8 +62394,8 @@ var custom_column_component = normalizeComponent(
|
|
|
62394
62394
|
;
|
|
62395
62395
|
var table_component = normalizeComponent(
|
|
62396
62396
|
components_tablevue_type_script_lang_js,
|
|
62397
|
-
|
|
62398
|
-
|
|
62397
|
+
tablevue_type_template_id_d8d0f56a_render,
|
|
62398
|
+
tablevue_type_template_id_d8d0f56a_staticRenderFns,
|
|
62399
62399
|
false,
|
|
62400
62400
|
null,
|
|
62401
62401
|
null,
|
|
@@ -62404,8 +62404,8 @@ var table_component = normalizeComponent(
|
|
|
62404
62404
|
)
|
|
62405
62405
|
|
|
62406
62406
|
/* harmony default export */ var table = (table_component.exports);
|
|
62407
|
-
;// ./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=
|
|
62408
|
-
var
|
|
62407
|
+
;// ./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=41662136&scoped=true
|
|
62408
|
+
var formvue_type_template_id_41662136_scoped_true_render = function render() {
|
|
62409
62409
|
var _vm = this,
|
|
62410
62410
|
_c = _vm._self._c;
|
|
62411
62411
|
return _c('div', {
|
|
@@ -62531,7 +62531,10 @@ var formvue_type_template_id_5acbf319_scoped_true_render = function render() {
|
|
|
62531
62531
|
"suffixInputPlaceholder": item.suffixInputPlaceholder,
|
|
62532
62532
|
"suffixInputValue": _vm.value[`${item.suffixInputField}`],
|
|
62533
62533
|
"suffixInputUnit": item.suffixInputUnit,
|
|
62534
|
-
"suffixInputOptions": item.suffixInputOptions
|
|
62534
|
+
"suffixInputOptions": item.suffixInputOptions,
|
|
62535
|
+
"showSuffixBatchInput": item.showSuffixBatchInput,
|
|
62536
|
+
"suffixBatchInputPopoverTitle": item.suffixBatchInputPopoverTitle,
|
|
62537
|
+
"suffixBatchInputPopoverWidth": item.suffixBatchInputPopoverWidth
|
|
62535
62538
|
},
|
|
62536
62539
|
on: {
|
|
62537
62540
|
"update:suffixInputValue": function ($event) {
|
|
@@ -62754,7 +62757,7 @@ var formvue_type_template_id_5acbf319_scoped_true_render = function render() {
|
|
|
62754
62757
|
staticClass: "footer"
|
|
62755
62758
|
}, [_vm._t("footer")], 2)], 1);
|
|
62756
62759
|
};
|
|
62757
|
-
var
|
|
62760
|
+
var formvue_type_template_id_41662136_scoped_true_staticRenderFns = [];
|
|
62758
62761
|
|
|
62759
62762
|
;// ./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
|
|
62760
62763
|
var pair_number_inputvue_type_template_id_604235f6_render = function render() {
|
|
@@ -63054,8 +63057,8 @@ var custom_date_picker_component = normalizeComponent(
|
|
|
63054
63057
|
)
|
|
63055
63058
|
|
|
63056
63059
|
/* 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
|
|
63060
|
+
;// ./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=2ed4a087
|
|
63061
|
+
var ByCommonSelectorvue_type_template_id_2ed4a087_render = function render() {
|
|
63059
63062
|
var _vm = this,
|
|
63060
63063
|
_c = _vm._self._c;
|
|
63061
63064
|
return _c('div', {
|
|
@@ -63171,7 +63174,8 @@ var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
|
63171
63174
|
})], 1)]) : _vm._e(), _c('div', {
|
|
63172
63175
|
staticClass: "by_scroll-container",
|
|
63173
63176
|
class: {
|
|
63174
|
-
'by_single-line': !_vm.open
|
|
63177
|
+
'by_single-line': !_vm.open,
|
|
63178
|
+
'by_force-no-expand': _vm.forceNoExpand
|
|
63175
63179
|
}
|
|
63176
63180
|
}, [!_vm.multiple ? _c('el-radio-group', _vm._b({
|
|
63177
63181
|
attrs: {
|
|
@@ -63224,7 +63228,75 @@ var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
|
63224
63228
|
}
|
|
63225
63229
|
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e(), _vm.showSuffixInput && _vm.suffixInputUnit ? _c('span', {
|
|
63226
63230
|
staticClass: "by_suffix-input_unit"
|
|
63227
|
-
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot")
|
|
63231
|
+
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot"), _vm.showSuffixBatchInput && _vm.showSuffixInput ? _c('el-popover', {
|
|
63232
|
+
attrs: {
|
|
63233
|
+
"placement": "bottom-end",
|
|
63234
|
+
"width": _vm.suffixBatchInputPopoverWidth,
|
|
63235
|
+
"trigger": "click",
|
|
63236
|
+
"popper-class": "batch-input-popover"
|
|
63237
|
+
},
|
|
63238
|
+
model: {
|
|
63239
|
+
value: _vm.popoverVisible,
|
|
63240
|
+
callback: function ($$v) {
|
|
63241
|
+
_vm.popoverVisible = $$v;
|
|
63242
|
+
},
|
|
63243
|
+
expression: "popoverVisible"
|
|
63244
|
+
}
|
|
63245
|
+
}, [_c('div', {
|
|
63246
|
+
staticClass: "batch-input-container"
|
|
63247
|
+
}, [_c('div', {
|
|
63248
|
+
staticClass: "popover-title"
|
|
63249
|
+
}, [_vm._v(_vm._s(_vm.suffixBatchInputPopoverTitle))]), _c('el-input', {
|
|
63250
|
+
staticClass: "batch-input-textarea",
|
|
63251
|
+
attrs: {
|
|
63252
|
+
"type": "textarea",
|
|
63253
|
+
"rows": 10,
|
|
63254
|
+
"placeholder": "请输入,多个用换行、逗号、分号、空格分隔"
|
|
63255
|
+
},
|
|
63256
|
+
model: {
|
|
63257
|
+
value: _vm.batchInputContent,
|
|
63258
|
+
callback: function ($$v) {
|
|
63259
|
+
_vm.batchInputContent = $$v;
|
|
63260
|
+
},
|
|
63261
|
+
expression: "batchInputContent"
|
|
63262
|
+
}
|
|
63263
|
+
}), _c('div', {
|
|
63264
|
+
staticClass: "popover-footer"
|
|
63265
|
+
}, [_c('el-button', {
|
|
63266
|
+
attrs: {
|
|
63267
|
+
"size": "mini"
|
|
63268
|
+
},
|
|
63269
|
+
on: {
|
|
63270
|
+
"click": function ($event) {
|
|
63271
|
+
_vm.popoverVisible = false;
|
|
63272
|
+
}
|
|
63273
|
+
}
|
|
63274
|
+
}, [_vm._v("取消")]), _c('el-button', {
|
|
63275
|
+
attrs: {
|
|
63276
|
+
"size": "mini",
|
|
63277
|
+
"type": "primary"
|
|
63278
|
+
},
|
|
63279
|
+
on: {
|
|
63280
|
+
"click": _vm.handleSuffixBatchInput
|
|
63281
|
+
}
|
|
63282
|
+
}, [_vm._v("确定")])], 1)], 1), _c('el-button', {
|
|
63283
|
+
staticClass: "batch-input-btn",
|
|
63284
|
+
attrs: {
|
|
63285
|
+
"slot": "reference",
|
|
63286
|
+
"disabled": _vm.loading,
|
|
63287
|
+
"size": _vm.size
|
|
63288
|
+
},
|
|
63289
|
+
on: {
|
|
63290
|
+
"click": _vm.handleOpenBatchInput
|
|
63291
|
+
},
|
|
63292
|
+
slot: "reference"
|
|
63293
|
+
}, [_c('i', {
|
|
63294
|
+
staticClass: "el-icon-edit-outline",
|
|
63295
|
+
staticStyle: {
|
|
63296
|
+
"transform": "scale(2)",
|
|
63297
|
+
"display": "inline-block"
|
|
63298
|
+
}
|
|
63299
|
+
})])], 1) : _vm._e()], 2) : _c('el-checkbox-group', _vm._b({
|
|
63228
63300
|
attrs: {
|
|
63229
63301
|
"size": _vm.size,
|
|
63230
63302
|
"disabled": _vm.loading
|
|
@@ -63275,7 +63347,75 @@ var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
|
63275
63347
|
}
|
|
63276
63348
|
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e(), _vm.showSuffixInput && _vm.suffixInputUnit ? _c('span', {
|
|
63277
63349
|
staticClass: "by_suffix-input_unit"
|
|
63278
|
-
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot")
|
|
63350
|
+
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot"), _vm.showSuffixBatchInput && _vm.showSuffixInput ? _c('el-popover', {
|
|
63351
|
+
attrs: {
|
|
63352
|
+
"placement": "bottom-end",
|
|
63353
|
+
"width": _vm.suffixBatchInputPopoverWidth,
|
|
63354
|
+
"trigger": "click",
|
|
63355
|
+
"popper-class": "batch-input-popover"
|
|
63356
|
+
},
|
|
63357
|
+
model: {
|
|
63358
|
+
value: _vm.popoverVisible,
|
|
63359
|
+
callback: function ($$v) {
|
|
63360
|
+
_vm.popoverVisible = $$v;
|
|
63361
|
+
},
|
|
63362
|
+
expression: "popoverVisible"
|
|
63363
|
+
}
|
|
63364
|
+
}, [_c('div', {
|
|
63365
|
+
staticClass: "batch-input-container"
|
|
63366
|
+
}, [_c('div', {
|
|
63367
|
+
staticClass: "popover-title"
|
|
63368
|
+
}, [_vm._v(_vm._s(_vm.suffixBatchInputPopoverTitle))]), _c('el-input', {
|
|
63369
|
+
staticClass: "batch-input-textarea",
|
|
63370
|
+
attrs: {
|
|
63371
|
+
"type": "textarea",
|
|
63372
|
+
"rows": 10,
|
|
63373
|
+
"placeholder": "请输入,多个用换行、逗号、分号、空格分隔"
|
|
63374
|
+
},
|
|
63375
|
+
model: {
|
|
63376
|
+
value: _vm.batchInputContent,
|
|
63377
|
+
callback: function ($$v) {
|
|
63378
|
+
_vm.batchInputContent = $$v;
|
|
63379
|
+
},
|
|
63380
|
+
expression: "batchInputContent"
|
|
63381
|
+
}
|
|
63382
|
+
}), _c('div', {
|
|
63383
|
+
staticClass: "popover-footer"
|
|
63384
|
+
}, [_c('el-button', {
|
|
63385
|
+
attrs: {
|
|
63386
|
+
"size": "mini"
|
|
63387
|
+
},
|
|
63388
|
+
on: {
|
|
63389
|
+
"click": function ($event) {
|
|
63390
|
+
_vm.popoverVisible = false;
|
|
63391
|
+
}
|
|
63392
|
+
}
|
|
63393
|
+
}, [_vm._v("取消")]), _c('el-button', {
|
|
63394
|
+
attrs: {
|
|
63395
|
+
"size": "mini",
|
|
63396
|
+
"type": "primary"
|
|
63397
|
+
},
|
|
63398
|
+
on: {
|
|
63399
|
+
"click": _vm.handleSuffixBatchInput
|
|
63400
|
+
}
|
|
63401
|
+
}, [_vm._v("确定")])], 1)], 1), _c('el-button', {
|
|
63402
|
+
staticClass: "batch-input-btn",
|
|
63403
|
+
attrs: {
|
|
63404
|
+
"slot": "reference",
|
|
63405
|
+
"disabled": _vm.loading,
|
|
63406
|
+
"size": _vm.size
|
|
63407
|
+
},
|
|
63408
|
+
on: {
|
|
63409
|
+
"click": _vm.handleOpenBatchInput
|
|
63410
|
+
},
|
|
63411
|
+
slot: "reference"
|
|
63412
|
+
}, [_c('i', {
|
|
63413
|
+
staticClass: "el-icon-edit-outline",
|
|
63414
|
+
staticStyle: {
|
|
63415
|
+
"transform": "scale(2)",
|
|
63416
|
+
"display": "inline-block"
|
|
63417
|
+
}
|
|
63418
|
+
})])], 1) : _vm._e()], 2), _vm.open && _vm.showPagination && !_vm.loading ? _c('div', {
|
|
63279
63419
|
staticClass: "by_pagination-container"
|
|
63280
63420
|
}, [_c('el-button', {
|
|
63281
63421
|
attrs: {
|
|
@@ -63316,7 +63456,7 @@ var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
|
63316
63456
|
}
|
|
63317
63457
|
}, [_vm._v(" 加载中... ")]) : _vm._e()], 2);
|
|
63318
63458
|
};
|
|
63319
|
-
var
|
|
63459
|
+
var ByCommonSelectorvue_type_template_id_2ed4a087_staticRenderFns = [];
|
|
63320
63460
|
|
|
63321
63461
|
;// ./node_modules/pinyin-pro/dist/index.mjs
|
|
63322
63462
|
|
|
@@ -73660,7 +73800,7 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
73660
73800
|
*/
|
|
73661
73801
|
size: {
|
|
73662
73802
|
type: String,
|
|
73663
|
-
default: '
|
|
73803
|
+
default: 'mini'
|
|
73664
73804
|
},
|
|
73665
73805
|
/**
|
|
73666
73806
|
* 是否显示searchBar(A~Z+搜索框)
|
|
@@ -73736,6 +73876,28 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
73736
73876
|
suffixInputOptions: {
|
|
73737
73877
|
type: Object,
|
|
73738
73878
|
default: () => ({})
|
|
73879
|
+
},
|
|
73880
|
+
/**
|
|
73881
|
+
* 是否显示后置批量输入按钮
|
|
73882
|
+
* 注意:只有当显示后置输入框(showSuffixInput===true)时,批量输入按钮才会生效
|
|
73883
|
+
*/
|
|
73884
|
+
showSuffixBatchInput: {
|
|
73885
|
+
type: Boolean,
|
|
73886
|
+
default: false
|
|
73887
|
+
},
|
|
73888
|
+
/**
|
|
73889
|
+
* 后置批量输入弹窗的标题
|
|
73890
|
+
*/
|
|
73891
|
+
suffixBatchInputPopoverTitle: {
|
|
73892
|
+
type: String,
|
|
73893
|
+
default: '批量输入'
|
|
73894
|
+
},
|
|
73895
|
+
/**
|
|
73896
|
+
* 后置批量输入弹窗宽度
|
|
73897
|
+
*/
|
|
73898
|
+
suffixBatchInputPopoverWidth: {
|
|
73899
|
+
type: [String, Number],
|
|
73900
|
+
default: '300'
|
|
73739
73901
|
}
|
|
73740
73902
|
},
|
|
73741
73903
|
data() {
|
|
@@ -73763,7 +73925,12 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
73763
73925
|
// 用于强制检查的定时器数组
|
|
73764
73926
|
isCheckingExpand: false,
|
|
73765
73927
|
// 标记是否正在检查展开状态
|
|
73766
|
-
localSuffixInputValue: ''
|
|
73928
|
+
localSuffixInputValue: '',
|
|
73929
|
+
// 本地缓存的suffixInputValue
|
|
73930
|
+
|
|
73931
|
+
popoverVisible: false,
|
|
73932
|
+
// 批量输入按钮的弹窗是否显示
|
|
73933
|
+
batchInputContent: '' // 批量输入的内容
|
|
73767
73934
|
};
|
|
73768
73935
|
},
|
|
73769
73936
|
computed: {
|
|
@@ -73796,7 +73963,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
73796
73963
|
if (this.multiple) {
|
|
73797
73964
|
this.checkAll = this.value && this.value.length > 0 ? false : true;
|
|
73798
73965
|
} else {
|
|
73799
|
-
|
|
73966
|
+
// 修复:使用严格比较,避免0值被误判为空
|
|
73967
|
+
this.checkAll = this.value !== undefined && this.value !== null && this.value !== '' ? false : true;
|
|
73800
73968
|
}
|
|
73801
73969
|
// 值变化时检查展开按钮
|
|
73802
73970
|
this.scheduleExpandCheck();
|
|
@@ -74037,7 +74205,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74037
74205
|
initData() {
|
|
74038
74206
|
this.dataList = [...this.localOptions];
|
|
74039
74207
|
this.buildLatterList();
|
|
74040
|
-
|
|
74208
|
+
// 修复:使用严格比较,避免0值被误判为空
|
|
74209
|
+
this.checkAll = this.multiple ? this.value.length <= 0 : this.value === undefined || this.value === null || this.value === '';
|
|
74041
74210
|
|
|
74042
74211
|
// 修复select模式下undefined和空字符串值的处理
|
|
74043
74212
|
if (this.type === 'select') {
|
|
@@ -74053,7 +74222,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74053
74222
|
}
|
|
74054
74223
|
}
|
|
74055
74224
|
} else {
|
|
74056
|
-
|
|
74225
|
+
// 修复:使用严格比较,避免0值被误判为空
|
|
74226
|
+
this.selectedValue = this.value !== undefined && this.value !== null && this.value !== '' ? this.value : this.multiple ? [] : '';
|
|
74057
74227
|
}
|
|
74058
74228
|
|
|
74059
74229
|
// 数据初始化完成后检查是否需要展开按钮
|
|
@@ -74148,6 +74318,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74148
74318
|
},
|
|
74149
74319
|
// 关键词搜索变化
|
|
74150
74320
|
keywordChange(e) {
|
|
74321
|
+
// 去掉空格
|
|
74322
|
+
this.keyword = this.keyword.replace(/\s/g, '');
|
|
74151
74323
|
var arr = [];
|
|
74152
74324
|
if (this.select === 'All') {
|
|
74153
74325
|
this.localOptions.forEach(item => {
|
|
@@ -74196,7 +74368,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74196
74368
|
} else {
|
|
74197
74369
|
this.selectedValue = value;
|
|
74198
74370
|
}
|
|
74199
|
-
|
|
74371
|
+
// 修复:使用严格比较,避免0值被误判为空
|
|
74372
|
+
this.checkAll = this.selectedValue === undefined || this.selectedValue === null || this.selectedValue === '';
|
|
74200
74373
|
}
|
|
74201
74374
|
this.emitChange(this.selectedValue);
|
|
74202
74375
|
},
|
|
@@ -74222,6 +74395,39 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74222
74395
|
}
|
|
74223
74396
|
this.search();
|
|
74224
74397
|
},
|
|
74398
|
+
/**
|
|
74399
|
+
* 批量输入
|
|
74400
|
+
*/
|
|
74401
|
+
handleSuffixBatchInput() {
|
|
74402
|
+
this.popoverVisible = false;
|
|
74403
|
+
this.batchInputContent = this.batchInputContent.trim();
|
|
74404
|
+
|
|
74405
|
+
// 将批量输入的内容设置到后置输入框中,用逗号分隔
|
|
74406
|
+
if (this.batchInputContent) {
|
|
74407
|
+
// 处理输入内容,支持多种分隔符
|
|
74408
|
+
const items = this.batchInputContent.split(/[\n,,;;\s]+/) // 支持换行、逗号、分号、空格分隔
|
|
74409
|
+
.map(item => item.trim()).filter(item => item); // 过滤空项
|
|
74410
|
+
|
|
74411
|
+
// 将处理后的内容用逗号连接,设置到后置输入框
|
|
74412
|
+
const processedContent = items.join(',');
|
|
74413
|
+
this.localSuffixInputValue = processedContent;
|
|
74414
|
+
this.$emit('suffix-input-change', processedContent);
|
|
74415
|
+
this.$emit('update:suffixInputValue', processedContent);
|
|
74416
|
+
}
|
|
74417
|
+
this.$emit('suffix-batch-input', this.batchInputContent);
|
|
74418
|
+
},
|
|
74419
|
+
/**
|
|
74420
|
+
* 打开批量输入弹窗时,回显后置输入框的内容
|
|
74421
|
+
*/
|
|
74422
|
+
handleOpenBatchInput() {
|
|
74423
|
+
// 将后置输入框的内容回显到批量输入弹窗中
|
|
74424
|
+
if (this.localSuffixInputValue) {
|
|
74425
|
+
// 将逗号分隔的内容转换为换行分隔,便于在文本框中编辑
|
|
74426
|
+
this.batchInputContent = this.localSuffixInputValue.split(',').map(item => item.trim()).filter(item => item).join('\n');
|
|
74427
|
+
} else {
|
|
74428
|
+
this.batchInputContent = '';
|
|
74429
|
+
}
|
|
74430
|
+
},
|
|
74225
74431
|
emitChange(value) {
|
|
74226
74432
|
// console.log('001:触发了-emitChange ==:', value)
|
|
74227
74433
|
this.$emit('input', value);
|
|
@@ -74245,8 +74451,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74245
74451
|
;
|
|
74246
74452
|
var ByCommonSelector_component = normalizeComponent(
|
|
74247
74453
|
common_selector_ByCommonSelectorvue_type_script_lang_js,
|
|
74248
|
-
|
|
74249
|
-
|
|
74454
|
+
ByCommonSelectorvue_type_template_id_2ed4a087_render,
|
|
74455
|
+
ByCommonSelectorvue_type_template_id_2ed4a087_staticRenderFns,
|
|
74250
74456
|
false,
|
|
74251
74457
|
null,
|
|
74252
74458
|
null,
|
|
@@ -75190,10 +75396,10 @@ var BatchQuerySelector_component = normalizeComponent(
|
|
|
75190
75396
|
});
|
|
75191
75397
|
;// ./src/components/form/form.vue?vue&type=script&lang=js
|
|
75192
75398
|
/* harmony default export */ var form_formvue_type_script_lang_js = (formvue_type_script_lang_js);
|
|
75193
|
-
;// ./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=
|
|
75399
|
+
;// ./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=41662136&prod&lang=scss&scoped=true
|
|
75194
75400
|
// extracted by mini-css-extract-plugin
|
|
75195
75401
|
|
|
75196
|
-
;// ./src/components/form/form.vue?vue&type=style&index=0&id=
|
|
75402
|
+
;// ./src/components/form/form.vue?vue&type=style&index=0&id=41662136&prod&lang=scss&scoped=true
|
|
75197
75403
|
|
|
75198
75404
|
;// ./src/components/form/form.vue
|
|
75199
75405
|
|
|
@@ -75206,11 +75412,11 @@ var BatchQuerySelector_component = normalizeComponent(
|
|
|
75206
75412
|
|
|
75207
75413
|
var form_component = normalizeComponent(
|
|
75208
75414
|
form_formvue_type_script_lang_js,
|
|
75209
|
-
|
|
75210
|
-
|
|
75415
|
+
formvue_type_template_id_41662136_scoped_true_render,
|
|
75416
|
+
formvue_type_template_id_41662136_scoped_true_staticRenderFns,
|
|
75211
75417
|
false,
|
|
75212
75418
|
null,
|
|
75213
|
-
"
|
|
75419
|
+
"41662136",
|
|
75214
75420
|
null
|
|
75215
75421
|
|
|
75216
75422
|
)
|
package/lib/by-components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.b-form .header[data-v-
|
|
1
|
+
.b-form .header[data-v-41662136]{margin-bottom:20px}.b-form .footer[data-v-41662136]{margin-top:20px}
|