@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
package/lib/by-components.umd.js
CHANGED
|
@@ -60756,8 +60756,8 @@ var component = normalizeComponent(
|
|
|
60756
60756
|
)
|
|
60757
60757
|
|
|
60758
60758
|
/* harmony default export */ var pager = (component.exports);
|
|
60759
|
-
;// ./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/table/index.vue?vue&type=template&id=
|
|
60760
|
-
var
|
|
60759
|
+
;// ./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/table/index.vue?vue&type=template&id=d8d0f56a
|
|
60760
|
+
var tablevue_type_template_id_d8d0f56a_render = function render() {
|
|
60761
60761
|
var _vm = this,
|
|
60762
60762
|
_c = _vm._self._c;
|
|
60763
60763
|
return _c('div', [_c('vxe-grid', _vm._g(_vm._b({
|
|
@@ -60831,7 +60831,7 @@ var tablevue_type_template_id_022fa5ea_render = function render() {
|
|
|
60831
60831
|
}
|
|
60832
60832
|
}) : _vm._e()], 1);
|
|
60833
60833
|
};
|
|
60834
|
-
var
|
|
60834
|
+
var tablevue_type_template_id_d8d0f56a_staticRenderFns = [];
|
|
60835
60835
|
|
|
60836
60836
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
60837
60837
|
var es_array_push = __webpack_require__(4114);
|
|
@@ -61974,7 +61974,7 @@ var custom_column_component = normalizeComponent(
|
|
|
61974
61974
|
sortConfig: {
|
|
61975
61975
|
...sortConfig,
|
|
61976
61976
|
// 只在前端排序/分页时强制 remote: true
|
|
61977
|
-
// 其他情况保持外部配置,但确保后端分页时remote为
|
|
61977
|
+
// 其他情况保持外部配置,但确保后端分页时remote为true
|
|
61978
61978
|
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,
|
|
61979
61979
|
trigger: 'cell',
|
|
61980
61980
|
...this.gridOptions.sortConfig
|
|
@@ -62404,8 +62404,8 @@ var custom_column_component = normalizeComponent(
|
|
|
62404
62404
|
;
|
|
62405
62405
|
var table_component = normalizeComponent(
|
|
62406
62406
|
components_tablevue_type_script_lang_js,
|
|
62407
|
-
|
|
62408
|
-
|
|
62407
|
+
tablevue_type_template_id_d8d0f56a_render,
|
|
62408
|
+
tablevue_type_template_id_d8d0f56a_staticRenderFns,
|
|
62409
62409
|
false,
|
|
62410
62410
|
null,
|
|
62411
62411
|
null,
|
|
@@ -62414,8 +62414,8 @@ var table_component = normalizeComponent(
|
|
|
62414
62414
|
)
|
|
62415
62415
|
|
|
62416
62416
|
/* harmony default export */ var table = (table_component.exports);
|
|
62417
|
-
;// ./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=
|
|
62418
|
-
var
|
|
62417
|
+
;// ./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=41662136&scoped=true
|
|
62418
|
+
var formvue_type_template_id_41662136_scoped_true_render = function render() {
|
|
62419
62419
|
var _vm = this,
|
|
62420
62420
|
_c = _vm._self._c;
|
|
62421
62421
|
return _c('div', {
|
|
@@ -62541,7 +62541,10 @@ var formvue_type_template_id_5acbf319_scoped_true_render = function render() {
|
|
|
62541
62541
|
"suffixInputPlaceholder": item.suffixInputPlaceholder,
|
|
62542
62542
|
"suffixInputValue": _vm.value[`${item.suffixInputField}`],
|
|
62543
62543
|
"suffixInputUnit": item.suffixInputUnit,
|
|
62544
|
-
"suffixInputOptions": item.suffixInputOptions
|
|
62544
|
+
"suffixInputOptions": item.suffixInputOptions,
|
|
62545
|
+
"showSuffixBatchInput": item.showSuffixBatchInput,
|
|
62546
|
+
"suffixBatchInputPopoverTitle": item.suffixBatchInputPopoverTitle,
|
|
62547
|
+
"suffixBatchInputPopoverWidth": item.suffixBatchInputPopoverWidth
|
|
62545
62548
|
},
|
|
62546
62549
|
on: {
|
|
62547
62550
|
"update:suffixInputValue": function ($event) {
|
|
@@ -62764,7 +62767,7 @@ var formvue_type_template_id_5acbf319_scoped_true_render = function render() {
|
|
|
62764
62767
|
staticClass: "footer"
|
|
62765
62768
|
}, [_vm._t("footer")], 2)], 1);
|
|
62766
62769
|
};
|
|
62767
|
-
var
|
|
62770
|
+
var formvue_type_template_id_41662136_scoped_true_staticRenderFns = [];
|
|
62768
62771
|
|
|
62769
62772
|
;// ./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
|
|
62770
62773
|
var pair_number_inputvue_type_template_id_604235f6_render = function render() {
|
|
@@ -63064,8 +63067,8 @@ var custom_date_picker_component = normalizeComponent(
|
|
|
63064
63067
|
)
|
|
63065
63068
|
|
|
63066
63069
|
/* 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
|
|
63070
|
+
;// ./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=2ed4a087
|
|
63071
|
+
var ByCommonSelectorvue_type_template_id_2ed4a087_render = function render() {
|
|
63069
63072
|
var _vm = this,
|
|
63070
63073
|
_c = _vm._self._c;
|
|
63071
63074
|
return _c('div', {
|
|
@@ -63181,7 +63184,8 @@ var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
|
63181
63184
|
})], 1)]) : _vm._e(), _c('div', {
|
|
63182
63185
|
staticClass: "by_scroll-container",
|
|
63183
63186
|
class: {
|
|
63184
|
-
'by_single-line': !_vm.open
|
|
63187
|
+
'by_single-line': !_vm.open,
|
|
63188
|
+
'by_force-no-expand': _vm.forceNoExpand
|
|
63185
63189
|
}
|
|
63186
63190
|
}, [!_vm.multiple ? _c('el-radio-group', _vm._b({
|
|
63187
63191
|
attrs: {
|
|
@@ -63234,7 +63238,75 @@ var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
|
63234
63238
|
}
|
|
63235
63239
|
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e(), _vm.showSuffixInput && _vm.suffixInputUnit ? _c('span', {
|
|
63236
63240
|
staticClass: "by_suffix-input_unit"
|
|
63237
|
-
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot")
|
|
63241
|
+
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot"), _vm.showSuffixBatchInput && _vm.showSuffixInput ? _c('el-popover', {
|
|
63242
|
+
attrs: {
|
|
63243
|
+
"placement": "bottom-end",
|
|
63244
|
+
"width": _vm.suffixBatchInputPopoverWidth,
|
|
63245
|
+
"trigger": "click",
|
|
63246
|
+
"popper-class": "batch-input-popover"
|
|
63247
|
+
},
|
|
63248
|
+
model: {
|
|
63249
|
+
value: _vm.popoverVisible,
|
|
63250
|
+
callback: function ($$v) {
|
|
63251
|
+
_vm.popoverVisible = $$v;
|
|
63252
|
+
},
|
|
63253
|
+
expression: "popoverVisible"
|
|
63254
|
+
}
|
|
63255
|
+
}, [_c('div', {
|
|
63256
|
+
staticClass: "batch-input-container"
|
|
63257
|
+
}, [_c('div', {
|
|
63258
|
+
staticClass: "popover-title"
|
|
63259
|
+
}, [_vm._v(_vm._s(_vm.suffixBatchInputPopoverTitle))]), _c('el-input', {
|
|
63260
|
+
staticClass: "batch-input-textarea",
|
|
63261
|
+
attrs: {
|
|
63262
|
+
"type": "textarea",
|
|
63263
|
+
"rows": 10,
|
|
63264
|
+
"placeholder": "请输入,多个用换行、逗号、分号、空格分隔"
|
|
63265
|
+
},
|
|
63266
|
+
model: {
|
|
63267
|
+
value: _vm.batchInputContent,
|
|
63268
|
+
callback: function ($$v) {
|
|
63269
|
+
_vm.batchInputContent = $$v;
|
|
63270
|
+
},
|
|
63271
|
+
expression: "batchInputContent"
|
|
63272
|
+
}
|
|
63273
|
+
}), _c('div', {
|
|
63274
|
+
staticClass: "popover-footer"
|
|
63275
|
+
}, [_c('el-button', {
|
|
63276
|
+
attrs: {
|
|
63277
|
+
"size": "mini"
|
|
63278
|
+
},
|
|
63279
|
+
on: {
|
|
63280
|
+
"click": function ($event) {
|
|
63281
|
+
_vm.popoverVisible = false;
|
|
63282
|
+
}
|
|
63283
|
+
}
|
|
63284
|
+
}, [_vm._v("取消")]), _c('el-button', {
|
|
63285
|
+
attrs: {
|
|
63286
|
+
"size": "mini",
|
|
63287
|
+
"type": "primary"
|
|
63288
|
+
},
|
|
63289
|
+
on: {
|
|
63290
|
+
"click": _vm.handleSuffixBatchInput
|
|
63291
|
+
}
|
|
63292
|
+
}, [_vm._v("确定")])], 1)], 1), _c('el-button', {
|
|
63293
|
+
staticClass: "batch-input-btn",
|
|
63294
|
+
attrs: {
|
|
63295
|
+
"slot": "reference",
|
|
63296
|
+
"disabled": _vm.loading,
|
|
63297
|
+
"size": _vm.size
|
|
63298
|
+
},
|
|
63299
|
+
on: {
|
|
63300
|
+
"click": _vm.handleOpenBatchInput
|
|
63301
|
+
},
|
|
63302
|
+
slot: "reference"
|
|
63303
|
+
}, [_c('i', {
|
|
63304
|
+
staticClass: "el-icon-edit-outline",
|
|
63305
|
+
staticStyle: {
|
|
63306
|
+
"transform": "scale(2)",
|
|
63307
|
+
"display": "inline-block"
|
|
63308
|
+
}
|
|
63309
|
+
})])], 1) : _vm._e()], 2) : _c('el-checkbox-group', _vm._b({
|
|
63238
63310
|
attrs: {
|
|
63239
63311
|
"size": _vm.size,
|
|
63240
63312
|
"disabled": _vm.loading
|
|
@@ -63285,7 +63357,75 @@ var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
|
63285
63357
|
}
|
|
63286
63358
|
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e(), _vm.showSuffixInput && _vm.suffixInputUnit ? _c('span', {
|
|
63287
63359
|
staticClass: "by_suffix-input_unit"
|
|
63288
|
-
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot")
|
|
63360
|
+
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot"), _vm.showSuffixBatchInput && _vm.showSuffixInput ? _c('el-popover', {
|
|
63361
|
+
attrs: {
|
|
63362
|
+
"placement": "bottom-end",
|
|
63363
|
+
"width": _vm.suffixBatchInputPopoverWidth,
|
|
63364
|
+
"trigger": "click",
|
|
63365
|
+
"popper-class": "batch-input-popover"
|
|
63366
|
+
},
|
|
63367
|
+
model: {
|
|
63368
|
+
value: _vm.popoverVisible,
|
|
63369
|
+
callback: function ($$v) {
|
|
63370
|
+
_vm.popoverVisible = $$v;
|
|
63371
|
+
},
|
|
63372
|
+
expression: "popoverVisible"
|
|
63373
|
+
}
|
|
63374
|
+
}, [_c('div', {
|
|
63375
|
+
staticClass: "batch-input-container"
|
|
63376
|
+
}, [_c('div', {
|
|
63377
|
+
staticClass: "popover-title"
|
|
63378
|
+
}, [_vm._v(_vm._s(_vm.suffixBatchInputPopoverTitle))]), _c('el-input', {
|
|
63379
|
+
staticClass: "batch-input-textarea",
|
|
63380
|
+
attrs: {
|
|
63381
|
+
"type": "textarea",
|
|
63382
|
+
"rows": 10,
|
|
63383
|
+
"placeholder": "请输入,多个用换行、逗号、分号、空格分隔"
|
|
63384
|
+
},
|
|
63385
|
+
model: {
|
|
63386
|
+
value: _vm.batchInputContent,
|
|
63387
|
+
callback: function ($$v) {
|
|
63388
|
+
_vm.batchInputContent = $$v;
|
|
63389
|
+
},
|
|
63390
|
+
expression: "batchInputContent"
|
|
63391
|
+
}
|
|
63392
|
+
}), _c('div', {
|
|
63393
|
+
staticClass: "popover-footer"
|
|
63394
|
+
}, [_c('el-button', {
|
|
63395
|
+
attrs: {
|
|
63396
|
+
"size": "mini"
|
|
63397
|
+
},
|
|
63398
|
+
on: {
|
|
63399
|
+
"click": function ($event) {
|
|
63400
|
+
_vm.popoverVisible = false;
|
|
63401
|
+
}
|
|
63402
|
+
}
|
|
63403
|
+
}, [_vm._v("取消")]), _c('el-button', {
|
|
63404
|
+
attrs: {
|
|
63405
|
+
"size": "mini",
|
|
63406
|
+
"type": "primary"
|
|
63407
|
+
},
|
|
63408
|
+
on: {
|
|
63409
|
+
"click": _vm.handleSuffixBatchInput
|
|
63410
|
+
}
|
|
63411
|
+
}, [_vm._v("确定")])], 1)], 1), _c('el-button', {
|
|
63412
|
+
staticClass: "batch-input-btn",
|
|
63413
|
+
attrs: {
|
|
63414
|
+
"slot": "reference",
|
|
63415
|
+
"disabled": _vm.loading,
|
|
63416
|
+
"size": _vm.size
|
|
63417
|
+
},
|
|
63418
|
+
on: {
|
|
63419
|
+
"click": _vm.handleOpenBatchInput
|
|
63420
|
+
},
|
|
63421
|
+
slot: "reference"
|
|
63422
|
+
}, [_c('i', {
|
|
63423
|
+
staticClass: "el-icon-edit-outline",
|
|
63424
|
+
staticStyle: {
|
|
63425
|
+
"transform": "scale(2)",
|
|
63426
|
+
"display": "inline-block"
|
|
63427
|
+
}
|
|
63428
|
+
})])], 1) : _vm._e()], 2), _vm.open && _vm.showPagination && !_vm.loading ? _c('div', {
|
|
63289
63429
|
staticClass: "by_pagination-container"
|
|
63290
63430
|
}, [_c('el-button', {
|
|
63291
63431
|
attrs: {
|
|
@@ -63326,7 +63466,7 @@ var ByCommonSelectorvue_type_template_id_70ea248c_render = function render() {
|
|
|
63326
63466
|
}
|
|
63327
63467
|
}, [_vm._v(" 加载中... ")]) : _vm._e()], 2);
|
|
63328
63468
|
};
|
|
63329
|
-
var
|
|
63469
|
+
var ByCommonSelectorvue_type_template_id_2ed4a087_staticRenderFns = [];
|
|
63330
63470
|
|
|
63331
63471
|
;// ./node_modules/pinyin-pro/dist/index.mjs
|
|
63332
63472
|
|
|
@@ -73670,7 +73810,7 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
73670
73810
|
*/
|
|
73671
73811
|
size: {
|
|
73672
73812
|
type: String,
|
|
73673
|
-
default: '
|
|
73813
|
+
default: 'mini'
|
|
73674
73814
|
},
|
|
73675
73815
|
/**
|
|
73676
73816
|
* 是否显示searchBar(A~Z+搜索框)
|
|
@@ -73746,6 +73886,28 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
73746
73886
|
suffixInputOptions: {
|
|
73747
73887
|
type: Object,
|
|
73748
73888
|
default: () => ({})
|
|
73889
|
+
},
|
|
73890
|
+
/**
|
|
73891
|
+
* 是否显示后置批量输入按钮
|
|
73892
|
+
* 注意:只有当显示后置输入框(showSuffixInput===true)时,批量输入按钮才会生效
|
|
73893
|
+
*/
|
|
73894
|
+
showSuffixBatchInput: {
|
|
73895
|
+
type: Boolean,
|
|
73896
|
+
default: false
|
|
73897
|
+
},
|
|
73898
|
+
/**
|
|
73899
|
+
* 后置批量输入弹窗的标题
|
|
73900
|
+
*/
|
|
73901
|
+
suffixBatchInputPopoverTitle: {
|
|
73902
|
+
type: String,
|
|
73903
|
+
default: '批量输入'
|
|
73904
|
+
},
|
|
73905
|
+
/**
|
|
73906
|
+
* 后置批量输入弹窗宽度
|
|
73907
|
+
*/
|
|
73908
|
+
suffixBatchInputPopoverWidth: {
|
|
73909
|
+
type: [String, Number],
|
|
73910
|
+
default: '300'
|
|
73749
73911
|
}
|
|
73750
73912
|
},
|
|
73751
73913
|
data() {
|
|
@@ -73773,7 +73935,12 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
73773
73935
|
// 用于强制检查的定时器数组
|
|
73774
73936
|
isCheckingExpand: false,
|
|
73775
73937
|
// 标记是否正在检查展开状态
|
|
73776
|
-
localSuffixInputValue: ''
|
|
73938
|
+
localSuffixInputValue: '',
|
|
73939
|
+
// 本地缓存的suffixInputValue
|
|
73940
|
+
|
|
73941
|
+
popoverVisible: false,
|
|
73942
|
+
// 批量输入按钮的弹窗是否显示
|
|
73943
|
+
batchInputContent: '' // 批量输入的内容
|
|
73777
73944
|
};
|
|
73778
73945
|
},
|
|
73779
73946
|
computed: {
|
|
@@ -73806,7 +73973,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
73806
73973
|
if (this.multiple) {
|
|
73807
73974
|
this.checkAll = this.value && this.value.length > 0 ? false : true;
|
|
73808
73975
|
} else {
|
|
73809
|
-
|
|
73976
|
+
// 修复:使用严格比较,避免0值被误判为空
|
|
73977
|
+
this.checkAll = this.value !== undefined && this.value !== null && this.value !== '' ? false : true;
|
|
73810
73978
|
}
|
|
73811
73979
|
// 值变化时检查展开按钮
|
|
73812
73980
|
this.scheduleExpandCheck();
|
|
@@ -74047,7 +74215,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74047
74215
|
initData() {
|
|
74048
74216
|
this.dataList = [...this.localOptions];
|
|
74049
74217
|
this.buildLatterList();
|
|
74050
|
-
|
|
74218
|
+
// 修复:使用严格比较,避免0值被误判为空
|
|
74219
|
+
this.checkAll = this.multiple ? this.value.length <= 0 : this.value === undefined || this.value === null || this.value === '';
|
|
74051
74220
|
|
|
74052
74221
|
// 修复select模式下undefined和空字符串值的处理
|
|
74053
74222
|
if (this.type === 'select') {
|
|
@@ -74063,7 +74232,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74063
74232
|
}
|
|
74064
74233
|
}
|
|
74065
74234
|
} else {
|
|
74066
|
-
|
|
74235
|
+
// 修复:使用严格比较,避免0值被误判为空
|
|
74236
|
+
this.selectedValue = this.value !== undefined && this.value !== null && this.value !== '' ? this.value : this.multiple ? [] : '';
|
|
74067
74237
|
}
|
|
74068
74238
|
|
|
74069
74239
|
// 数据初始化完成后检查是否需要展开按钮
|
|
@@ -74158,6 +74328,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74158
74328
|
},
|
|
74159
74329
|
// 关键词搜索变化
|
|
74160
74330
|
keywordChange(e) {
|
|
74331
|
+
// 去掉空格
|
|
74332
|
+
this.keyword = this.keyword.replace(/\s/g, '');
|
|
74161
74333
|
var arr = [];
|
|
74162
74334
|
if (this.select === 'All') {
|
|
74163
74335
|
this.localOptions.forEach(item => {
|
|
@@ -74206,7 +74378,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74206
74378
|
} else {
|
|
74207
74379
|
this.selectedValue = value;
|
|
74208
74380
|
}
|
|
74209
|
-
|
|
74381
|
+
// 修复:使用严格比较,避免0值被误判为空
|
|
74382
|
+
this.checkAll = this.selectedValue === undefined || this.selectedValue === null || this.selectedValue === '';
|
|
74210
74383
|
}
|
|
74211
74384
|
this.emitChange(this.selectedValue);
|
|
74212
74385
|
},
|
|
@@ -74232,6 +74405,39 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74232
74405
|
}
|
|
74233
74406
|
this.search();
|
|
74234
74407
|
},
|
|
74408
|
+
/**
|
|
74409
|
+
* 批量输入
|
|
74410
|
+
*/
|
|
74411
|
+
handleSuffixBatchInput() {
|
|
74412
|
+
this.popoverVisible = false;
|
|
74413
|
+
this.batchInputContent = this.batchInputContent.trim();
|
|
74414
|
+
|
|
74415
|
+
// 将批量输入的内容设置到后置输入框中,用逗号分隔
|
|
74416
|
+
if (this.batchInputContent) {
|
|
74417
|
+
// 处理输入内容,支持多种分隔符
|
|
74418
|
+
const items = this.batchInputContent.split(/[\n,,;;\s]+/) // 支持换行、逗号、分号、空格分隔
|
|
74419
|
+
.map(item => item.trim()).filter(item => item); // 过滤空项
|
|
74420
|
+
|
|
74421
|
+
// 将处理后的内容用逗号连接,设置到后置输入框
|
|
74422
|
+
const processedContent = items.join(',');
|
|
74423
|
+
this.localSuffixInputValue = processedContent;
|
|
74424
|
+
this.$emit('suffix-input-change', processedContent);
|
|
74425
|
+
this.$emit('update:suffixInputValue', processedContent);
|
|
74426
|
+
}
|
|
74427
|
+
this.$emit('suffix-batch-input', this.batchInputContent);
|
|
74428
|
+
},
|
|
74429
|
+
/**
|
|
74430
|
+
* 打开批量输入弹窗时,回显后置输入框的内容
|
|
74431
|
+
*/
|
|
74432
|
+
handleOpenBatchInput() {
|
|
74433
|
+
// 将后置输入框的内容回显到批量输入弹窗中
|
|
74434
|
+
if (this.localSuffixInputValue) {
|
|
74435
|
+
// 将逗号分隔的内容转换为换行分隔,便于在文本框中编辑
|
|
74436
|
+
this.batchInputContent = this.localSuffixInputValue.split(',').map(item => item.trim()).filter(item => item).join('\n');
|
|
74437
|
+
} else {
|
|
74438
|
+
this.batchInputContent = '';
|
|
74439
|
+
}
|
|
74440
|
+
},
|
|
74235
74441
|
emitChange(value) {
|
|
74236
74442
|
// console.log('001:触发了-emitChange ==:', value)
|
|
74237
74443
|
this.$emit('input', value);
|
|
@@ -74255,8 +74461,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
|
|
|
74255
74461
|
;
|
|
74256
74462
|
var ByCommonSelector_component = normalizeComponent(
|
|
74257
74463
|
common_selector_ByCommonSelectorvue_type_script_lang_js,
|
|
74258
|
-
|
|
74259
|
-
|
|
74464
|
+
ByCommonSelectorvue_type_template_id_2ed4a087_render,
|
|
74465
|
+
ByCommonSelectorvue_type_template_id_2ed4a087_staticRenderFns,
|
|
74260
74466
|
false,
|
|
74261
74467
|
null,
|
|
74262
74468
|
null,
|
|
@@ -75200,10 +75406,10 @@ var BatchQuerySelector_component = normalizeComponent(
|
|
|
75200
75406
|
});
|
|
75201
75407
|
;// ./src/components/form/form.vue?vue&type=script&lang=js
|
|
75202
75408
|
/* harmony default export */ var form_formvue_type_script_lang_js = (formvue_type_script_lang_js);
|
|
75203
|
-
;// ./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=
|
|
75409
|
+
;// ./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=41662136&prod&lang=scss&scoped=true
|
|
75204
75410
|
// extracted by mini-css-extract-plugin
|
|
75205
75411
|
|
|
75206
|
-
;// ./src/components/form/form.vue?vue&type=style&index=0&id=
|
|
75412
|
+
;// ./src/components/form/form.vue?vue&type=style&index=0&id=41662136&prod&lang=scss&scoped=true
|
|
75207
75413
|
|
|
75208
75414
|
;// ./src/components/form/form.vue
|
|
75209
75415
|
|
|
@@ -75216,11 +75422,11 @@ var BatchQuerySelector_component = normalizeComponent(
|
|
|
75216
75422
|
|
|
75217
75423
|
var form_component = normalizeComponent(
|
|
75218
75424
|
form_formvue_type_script_lang_js,
|
|
75219
|
-
|
|
75220
|
-
|
|
75425
|
+
formvue_type_template_id_41662136_scoped_true_render,
|
|
75426
|
+
formvue_type_template_id_41662136_scoped_true_staticRenderFns,
|
|
75221
75427
|
false,
|
|
75222
75428
|
null,
|
|
75223
|
-
"
|
|
75429
|
+
"41662136",
|
|
75224
75430
|
null
|
|
75225
75431
|
|
|
75226
75432
|
)
|