@weitutech/by-components 1.1.75 → 1.1.77
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 +232 -22
- package/lib/by-components.css +1 -1
- package/lib/by-components.umd.js +232 -22
- package/lib/by-components.umd.min.js +7 -7
- package/lib/index.css +1 -1
- package/package.json +1 -1
|
@@ -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=08fa76b1
|
|
63061
|
+
var ByCommonSelectorvue_type_template_id_08fa76b1_render = function render() {
|
|
63059
63062
|
var _vm = this,
|
|
63060
63063
|
_c = _vm._self._c;
|
|
63061
63064
|
return _c('div', {
|
|
@@ -63224,7 +63227,75 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63224
63227
|
}
|
|
63225
63228
|
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e(), _vm.showSuffixInput && _vm.suffixInputUnit ? _c('span', {
|
|
63226
63229
|
staticClass: "by_suffix-input_unit"
|
|
63227
|
-
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot")
|
|
63230
|
+
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot"), _vm.showSuffixBatchInput && _vm.showSuffixInput ? _c('el-popover', {
|
|
63231
|
+
attrs: {
|
|
63232
|
+
"placement": "bottom-end",
|
|
63233
|
+
"width": _vm.suffixBatchInputPopoverWidth,
|
|
63234
|
+
"trigger": "click",
|
|
63235
|
+
"popper-class": "batch-input-popover"
|
|
63236
|
+
},
|
|
63237
|
+
model: {
|
|
63238
|
+
value: _vm.popoverVisible,
|
|
63239
|
+
callback: function ($$v) {
|
|
63240
|
+
_vm.popoverVisible = $$v;
|
|
63241
|
+
},
|
|
63242
|
+
expression: "popoverVisible"
|
|
63243
|
+
}
|
|
63244
|
+
}, [_c('div', {
|
|
63245
|
+
staticClass: "batch-input-container"
|
|
63246
|
+
}, [_c('div', {
|
|
63247
|
+
staticClass: "popover-title"
|
|
63248
|
+
}, [_vm._v(_vm._s(_vm.suffixBatchInputPopoverTitle))]), _c('el-input', {
|
|
63249
|
+
staticClass: "batch-input-textarea",
|
|
63250
|
+
attrs: {
|
|
63251
|
+
"type": "textarea",
|
|
63252
|
+
"rows": 10,
|
|
63253
|
+
"placeholder": "请输入,多个用换行、逗号、分号、空格分隔"
|
|
63254
|
+
},
|
|
63255
|
+
model: {
|
|
63256
|
+
value: _vm.batchInputContent,
|
|
63257
|
+
callback: function ($$v) {
|
|
63258
|
+
_vm.batchInputContent = $$v;
|
|
63259
|
+
},
|
|
63260
|
+
expression: "batchInputContent"
|
|
63261
|
+
}
|
|
63262
|
+
}), _c('div', {
|
|
63263
|
+
staticClass: "popover-footer"
|
|
63264
|
+
}, [_c('el-button', {
|
|
63265
|
+
attrs: {
|
|
63266
|
+
"size": "mini"
|
|
63267
|
+
},
|
|
63268
|
+
on: {
|
|
63269
|
+
"click": function ($event) {
|
|
63270
|
+
_vm.popoverVisible = false;
|
|
63271
|
+
}
|
|
63272
|
+
}
|
|
63273
|
+
}, [_vm._v("取消")]), _c('el-button', {
|
|
63274
|
+
attrs: {
|
|
63275
|
+
"size": "mini",
|
|
63276
|
+
"type": "primary"
|
|
63277
|
+
},
|
|
63278
|
+
on: {
|
|
63279
|
+
"click": _vm.handleSuffixBatchInput
|
|
63280
|
+
}
|
|
63281
|
+
}, [_vm._v("确定")])], 1)], 1), _c('el-button', {
|
|
63282
|
+
staticClass: "batch-input-btn",
|
|
63283
|
+
attrs: {
|
|
63284
|
+
"slot": "reference",
|
|
63285
|
+
"disabled": _vm.loading,
|
|
63286
|
+
"size": _vm.size
|
|
63287
|
+
},
|
|
63288
|
+
on: {
|
|
63289
|
+
"click": _vm.handleOpenBatchInput
|
|
63290
|
+
},
|
|
63291
|
+
slot: "reference"
|
|
63292
|
+
}, [_c('i', {
|
|
63293
|
+
staticClass: "el-icon-edit-outline",
|
|
63294
|
+
staticStyle: {
|
|
63295
|
+
"transform": "scale(2)",
|
|
63296
|
+
"display": "inline-block"
|
|
63297
|
+
}
|
|
63298
|
+
})])], 1) : _vm._e()], 2) : _c('el-checkbox-group', _vm._b({
|
|
63228
63299
|
attrs: {
|
|
63229
63300
|
"size": _vm.size,
|
|
63230
63301
|
"disabled": _vm.loading
|
|
@@ -63275,7 +63346,75 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63275
63346
|
}
|
|
63276
63347
|
}, 'el-input', _vm.suffixInputOptions || {}, false)) : _vm._e(), _vm.showSuffixInput && _vm.suffixInputUnit ? _c('span', {
|
|
63277
63348
|
staticClass: "by_suffix-input_unit"
|
|
63278
|
-
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot")
|
|
63349
|
+
}, [_vm._v(_vm._s(_vm.suffixInputUnit))]) : _vm._e(), _vm._t("suffixSlot"), _vm.showSuffixBatchInput && _vm.showSuffixInput ? _c('el-popover', {
|
|
63350
|
+
attrs: {
|
|
63351
|
+
"placement": "bottom-end",
|
|
63352
|
+
"width": _vm.suffixBatchInputPopoverWidth,
|
|
63353
|
+
"trigger": "click",
|
|
63354
|
+
"popper-class": "batch-input-popover"
|
|
63355
|
+
},
|
|
63356
|
+
model: {
|
|
63357
|
+
value: _vm.popoverVisible,
|
|
63358
|
+
callback: function ($$v) {
|
|
63359
|
+
_vm.popoverVisible = $$v;
|
|
63360
|
+
},
|
|
63361
|
+
expression: "popoverVisible"
|
|
63362
|
+
}
|
|
63363
|
+
}, [_c('div', {
|
|
63364
|
+
staticClass: "batch-input-container"
|
|
63365
|
+
}, [_c('div', {
|
|
63366
|
+
staticClass: "popover-title"
|
|
63367
|
+
}, [_vm._v(_vm._s(_vm.suffixBatchInputPopoverTitle))]), _c('el-input', {
|
|
63368
|
+
staticClass: "batch-input-textarea",
|
|
63369
|
+
attrs: {
|
|
63370
|
+
"type": "textarea",
|
|
63371
|
+
"rows": 10,
|
|
63372
|
+
"placeholder": "请输入,多个用换行、逗号、分号、空格分隔"
|
|
63373
|
+
},
|
|
63374
|
+
model: {
|
|
63375
|
+
value: _vm.batchInputContent,
|
|
63376
|
+
callback: function ($$v) {
|
|
63377
|
+
_vm.batchInputContent = $$v;
|
|
63378
|
+
},
|
|
63379
|
+
expression: "batchInputContent"
|
|
63380
|
+
}
|
|
63381
|
+
}), _c('div', {
|
|
63382
|
+
staticClass: "popover-footer"
|
|
63383
|
+
}, [_c('el-button', {
|
|
63384
|
+
attrs: {
|
|
63385
|
+
"size": "mini"
|
|
63386
|
+
},
|
|
63387
|
+
on: {
|
|
63388
|
+
"click": function ($event) {
|
|
63389
|
+
_vm.popoverVisible = false;
|
|
63390
|
+
}
|
|
63391
|
+
}
|
|
63392
|
+
}, [_vm._v("取消")]), _c('el-button', {
|
|
63393
|
+
attrs: {
|
|
63394
|
+
"size": "mini",
|
|
63395
|
+
"type": "primary"
|
|
63396
|
+
},
|
|
63397
|
+
on: {
|
|
63398
|
+
"click": _vm.handleSuffixBatchInput
|
|
63399
|
+
}
|
|
63400
|
+
}, [_vm._v("确定")])], 1)], 1), _c('el-button', {
|
|
63401
|
+
staticClass: "batch-input-btn",
|
|
63402
|
+
attrs: {
|
|
63403
|
+
"slot": "reference",
|
|
63404
|
+
"disabled": _vm.loading,
|
|
63405
|
+
"size": _vm.size
|
|
63406
|
+
},
|
|
63407
|
+
on: {
|
|
63408
|
+
"click": _vm.handleOpenBatchInput
|
|
63409
|
+
},
|
|
63410
|
+
slot: "reference"
|
|
63411
|
+
}, [_c('i', {
|
|
63412
|
+
staticClass: "el-icon-edit-outline",
|
|
63413
|
+
staticStyle: {
|
|
63414
|
+
"transform": "scale(2)",
|
|
63415
|
+
"display": "inline-block"
|
|
63416
|
+
}
|
|
63417
|
+
})])], 1) : _vm._e()], 2), _vm.open && _vm.showPagination && !_vm.loading ? _c('div', {
|
|
63279
63418
|
staticClass: "by_pagination-container"
|
|
63280
63419
|
}, [_c('el-button', {
|
|
63281
63420
|
attrs: {
|
|
@@ -63299,7 +63438,7 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63299
63438
|
return _vm.handlePageChange(_vm.currentPage + 1);
|
|
63300
63439
|
}
|
|
63301
63440
|
}
|
|
63302
|
-
}, [_vm._v(" 下一页 ")])], 1) : _vm._e()], 1)])], _vm.type !== 'select' && _vm.needExpand ? _c('el-button', {
|
|
63441
|
+
}, [_vm._v(" 下一页 ")])], 1) : _vm._e()], 1)])], _vm.type !== 'select' && _vm.needExpand && !_vm.forceNoExpand ? _c('el-button', {
|
|
63303
63442
|
staticClass: "by_openShrink",
|
|
63304
63443
|
attrs: {
|
|
63305
63444
|
"type": "text",
|
|
@@ -63308,7 +63447,7 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63308
63447
|
on: {
|
|
63309
63448
|
"click": _vm.showList
|
|
63310
63449
|
}
|
|
63311
|
-
}, [_vm._v(" " + _vm._s(_vm.needShowLoading && _vm.loading ? '加载中...' : _vm.open ? '收起' : '展开') + " ")]) : _vm._e(), _vm.type !== 'select' && !_vm.needExpand && _vm.needShowLoading && _vm.loading ? _c('el-button', {
|
|
63450
|
+
}, [_vm._v(" " + _vm._s(_vm.needShowLoading && _vm.loading ? '加载中...' : _vm.open ? '收起' : '展开') + " ")]) : _vm._e(), _vm.type !== 'select' && !_vm.needExpand && !_vm.forceNoExpand && _vm.needShowLoading && _vm.loading ? _c('el-button', {
|
|
63312
63451
|
staticClass: "by_openShrink",
|
|
63313
63452
|
attrs: {
|
|
63314
63453
|
"type": "text",
|
|
@@ -63316,7 +63455,7 @@ var ByCommonSelectorvue_type_template_id_601bdb81_render = function render() {
|
|
|
63316
63455
|
}
|
|
63317
63456
|
}, [_vm._v(" 加载中... ")]) : _vm._e()], 2);
|
|
63318
63457
|
};
|
|
63319
|
-
var
|
|
63458
|
+
var ByCommonSelectorvue_type_template_id_08fa76b1_staticRenderFns = [];
|
|
63320
63459
|
|
|
63321
63460
|
;// ./node_modules/pinyin-pro/dist/index.mjs
|
|
63322
63461
|
|
|
@@ -73599,6 +73738,8 @@ function segment(word, options) {
|
|
|
73599
73738
|
|
|
73600
73739
|
//拼音库,用于搜索栏生成A~Z字母
|
|
73601
73740
|
|
|
73741
|
+
// 全部选项可能的名称
|
|
73742
|
+
const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'all'];
|
|
73602
73743
|
/* harmony default export */ var ByCommonSelectorvue_type_script_lang_js = ({
|
|
73603
73744
|
name: 'ByCommonSelector',
|
|
73604
73745
|
props: {
|
|
@@ -73692,6 +73833,13 @@ function segment(word, options) {
|
|
|
73692
73833
|
type: Boolean,
|
|
73693
73834
|
default: false
|
|
73694
73835
|
},
|
|
73836
|
+
/**
|
|
73837
|
+
* 强制不需要展开按钮和展开逻辑
|
|
73838
|
+
*/
|
|
73839
|
+
forceNoExpand: {
|
|
73840
|
+
type: Boolean,
|
|
73841
|
+
default: false
|
|
73842
|
+
},
|
|
73695
73843
|
// ***************** 后置输入框相关
|
|
73696
73844
|
/**
|
|
73697
73845
|
* 是否显示后置输入框
|
|
@@ -73727,6 +73875,28 @@ function segment(word, options) {
|
|
|
73727
73875
|
suffixInputOptions: {
|
|
73728
73876
|
type: Object,
|
|
73729
73877
|
default: () => ({})
|
|
73878
|
+
},
|
|
73879
|
+
/**
|
|
73880
|
+
* 是否显示后置批量输入按钮
|
|
73881
|
+
* 注意:只有当显示后置输入框(showSuffixInput===true)时,批量输入按钮才会生效
|
|
73882
|
+
*/
|
|
73883
|
+
showSuffixBatchInput: {
|
|
73884
|
+
type: Boolean,
|
|
73885
|
+
default: false
|
|
73886
|
+
},
|
|
73887
|
+
/**
|
|
73888
|
+
* 后置批量输入弹窗的标题
|
|
73889
|
+
*/
|
|
73890
|
+
suffixBatchInputPopoverTitle: {
|
|
73891
|
+
type: String,
|
|
73892
|
+
default: '批量输入'
|
|
73893
|
+
},
|
|
73894
|
+
/**
|
|
73895
|
+
* 后置批量输入弹窗宽度
|
|
73896
|
+
*/
|
|
73897
|
+
suffixBatchInputPopoverWidth: {
|
|
73898
|
+
type: [String, Number],
|
|
73899
|
+
default: '300'
|
|
73730
73900
|
}
|
|
73731
73901
|
},
|
|
73732
73902
|
data() {
|
|
@@ -73754,7 +73924,12 @@ function segment(word, options) {
|
|
|
73754
73924
|
// 用于强制检查的定时器数组
|
|
73755
73925
|
isCheckingExpand: false,
|
|
73756
73926
|
// 标记是否正在检查展开状态
|
|
73757
|
-
localSuffixInputValue: ''
|
|
73927
|
+
localSuffixInputValue: '',
|
|
73928
|
+
// 本地缓存的suffixInputValue
|
|
73929
|
+
|
|
73930
|
+
popoverVisible: false,
|
|
73931
|
+
// 批量输入按钮的弹窗是否显示
|
|
73932
|
+
batchInputContent: '' // 批量输入的内容
|
|
73758
73933
|
};
|
|
73759
73934
|
},
|
|
73760
73935
|
computed: {
|
|
@@ -73776,7 +73951,7 @@ function segment(word, options) {
|
|
|
73776
73951
|
// 如果值为undefined或空字符串,尝试匹配"全部"选项
|
|
73777
73952
|
if ((value === undefined || value === '') && this.localOptions.length > 0) {
|
|
73778
73953
|
// 查找id为undefined或空字符串的"全部"选项
|
|
73779
|
-
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && (item.name
|
|
73954
|
+
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && allOptionsNames.includes(item.name));
|
|
73780
73955
|
if (allOption) {
|
|
73781
73956
|
this.selectedValue = allOption.id;
|
|
73782
73957
|
}
|
|
@@ -73930,7 +74105,7 @@ function segment(word, options) {
|
|
|
73930
74105
|
// 检查是否需要展开按钮
|
|
73931
74106
|
checkNeedExpand() {
|
|
73932
74107
|
var _this$$el;
|
|
73933
|
-
if (this.type === 'select') {
|
|
74108
|
+
if (this.type === 'select' || this.forceNoExpand) {
|
|
73934
74109
|
this.needExpand = false;
|
|
73935
74110
|
return;
|
|
73936
74111
|
}
|
|
@@ -74038,7 +74213,7 @@ function segment(word, options) {
|
|
|
74038
74213
|
// 如果值为undefined或空字符串,尝试匹配"全部"选项
|
|
74039
74214
|
if ((this.value === undefined || this.value === '') && this.localOptions.length > 0) {
|
|
74040
74215
|
// 查找id为undefined或空字符串的"全部"选项
|
|
74041
|
-
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && (item.name
|
|
74216
|
+
const allOption = this.localOptions.find(item => (item.id === undefined || item.id === '') && allOptionsNames.includes(item.name));
|
|
74042
74217
|
if (allOption) {
|
|
74043
74218
|
this.selectedValue = allOption.id;
|
|
74044
74219
|
}
|
|
@@ -74139,6 +74314,8 @@ function segment(word, options) {
|
|
|
74139
74314
|
},
|
|
74140
74315
|
// 关键词搜索变化
|
|
74141
74316
|
keywordChange(e) {
|
|
74317
|
+
// 去掉空格
|
|
74318
|
+
this.keyword = this.keyword.replace(/\s/g, '');
|
|
74142
74319
|
var arr = [];
|
|
74143
74320
|
if (this.select === 'All') {
|
|
74144
74321
|
this.localOptions.forEach(item => {
|
|
@@ -74213,6 +74390,39 @@ function segment(word, options) {
|
|
|
74213
74390
|
}
|
|
74214
74391
|
this.search();
|
|
74215
74392
|
},
|
|
74393
|
+
/**
|
|
74394
|
+
* 批量输入
|
|
74395
|
+
*/
|
|
74396
|
+
handleSuffixBatchInput() {
|
|
74397
|
+
this.popoverVisible = false;
|
|
74398
|
+
this.batchInputContent = this.batchInputContent.trim();
|
|
74399
|
+
|
|
74400
|
+
// 将批量输入的内容设置到后置输入框中,用逗号分隔
|
|
74401
|
+
if (this.batchInputContent) {
|
|
74402
|
+
// 处理输入内容,支持多种分隔符
|
|
74403
|
+
const items = this.batchInputContent.split(/[\n,,;;\s]+/) // 支持换行、逗号、分号、空格分隔
|
|
74404
|
+
.map(item => item.trim()).filter(item => item); // 过滤空项
|
|
74405
|
+
|
|
74406
|
+
// 将处理后的内容用逗号连接,设置到后置输入框
|
|
74407
|
+
const processedContent = items.join(',');
|
|
74408
|
+
this.localSuffixInputValue = processedContent;
|
|
74409
|
+
this.$emit('suffix-input-change', processedContent);
|
|
74410
|
+
this.$emit('update:suffixInputValue', processedContent);
|
|
74411
|
+
}
|
|
74412
|
+
this.$emit('suffix-batch-input', this.batchInputContent);
|
|
74413
|
+
},
|
|
74414
|
+
/**
|
|
74415
|
+
* 打开批量输入弹窗时,回显后置输入框的内容
|
|
74416
|
+
*/
|
|
74417
|
+
handleOpenBatchInput() {
|
|
74418
|
+
// 将后置输入框的内容回显到批量输入弹窗中
|
|
74419
|
+
if (this.localSuffixInputValue) {
|
|
74420
|
+
// 将逗号分隔的内容转换为换行分隔,便于在文本框中编辑
|
|
74421
|
+
this.batchInputContent = this.localSuffixInputValue.split(',').map(item => item.trim()).filter(item => item).join('\n');
|
|
74422
|
+
} else {
|
|
74423
|
+
this.batchInputContent = '';
|
|
74424
|
+
}
|
|
74425
|
+
},
|
|
74216
74426
|
emitChange(value) {
|
|
74217
74427
|
// console.log('001:触发了-emitChange ==:', value)
|
|
74218
74428
|
this.$emit('input', value);
|
|
@@ -74236,8 +74446,8 @@ function segment(word, options) {
|
|
|
74236
74446
|
;
|
|
74237
74447
|
var ByCommonSelector_component = normalizeComponent(
|
|
74238
74448
|
common_selector_ByCommonSelectorvue_type_script_lang_js,
|
|
74239
|
-
|
|
74240
|
-
|
|
74449
|
+
ByCommonSelectorvue_type_template_id_08fa76b1_render,
|
|
74450
|
+
ByCommonSelectorvue_type_template_id_08fa76b1_staticRenderFns,
|
|
74241
74451
|
false,
|
|
74242
74452
|
null,
|
|
74243
74453
|
null,
|
|
@@ -75181,10 +75391,10 @@ var BatchQuerySelector_component = normalizeComponent(
|
|
|
75181
75391
|
});
|
|
75182
75392
|
;// ./src/components/form/form.vue?vue&type=script&lang=js
|
|
75183
75393
|
/* harmony default export */ var form_formvue_type_script_lang_js = (formvue_type_script_lang_js);
|
|
75184
|
-
;// ./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=
|
|
75394
|
+
;// ./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
|
|
75185
75395
|
// extracted by mini-css-extract-plugin
|
|
75186
75396
|
|
|
75187
|
-
;// ./src/components/form/form.vue?vue&type=style&index=0&id=
|
|
75397
|
+
;// ./src/components/form/form.vue?vue&type=style&index=0&id=41662136&prod&lang=scss&scoped=true
|
|
75188
75398
|
|
|
75189
75399
|
;// ./src/components/form/form.vue
|
|
75190
75400
|
|
|
@@ -75197,11 +75407,11 @@ var BatchQuerySelector_component = normalizeComponent(
|
|
|
75197
75407
|
|
|
75198
75408
|
var form_component = normalizeComponent(
|
|
75199
75409
|
form_formvue_type_script_lang_js,
|
|
75200
|
-
|
|
75201
|
-
|
|
75410
|
+
formvue_type_template_id_41662136_scoped_true_render,
|
|
75411
|
+
formvue_type_template_id_41662136_scoped_true_staticRenderFns,
|
|
75202
75412
|
false,
|
|
75203
75413
|
null,
|
|
75204
|
-
"
|
|
75414
|
+
"41662136",
|
|
75205
75415
|
null
|
|
75206
75416
|
|
|
75207
75417
|
)
|
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}
|