@bytenew/bn-applet-ui 1.1.30 → 1.1.32
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.
|
@@ -349,7 +349,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `*[data-v-c3b70e18]{box-sizing:border-b
|
|
|
349
349
|
|
|
350
350
|
/***/ },
|
|
351
351
|
|
|
352
|
-
/***/
|
|
352
|
+
/***/ 1371
|
|
353
353
|
(module, __webpack_exports__, __webpack_require__) {
|
|
354
354
|
|
|
355
355
|
"use strict";
|
|
@@ -366,7 +366,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
366
366
|
|
|
367
367
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
368
368
|
// Module
|
|
369
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.bnInput-underline[data-v-
|
|
369
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.bnInput-underline[data-v-a086af00] .el-input__inner{box-shadow:none;border-bottom:1px solid #dcdfe6;border-radius:0}`, ""]);
|
|
370
370
|
// Exports
|
|
371
371
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
372
372
|
|
|
@@ -1033,19 +1033,19 @@ var update = add("2c657678", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1033
1033
|
|
|
1034
1034
|
/***/ },
|
|
1035
1035
|
|
|
1036
|
-
/***/
|
|
1036
|
+
/***/ 7817
|
|
1037
1037
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1038
1038
|
|
|
1039
1039
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1040
1040
|
|
|
1041
1041
|
// load the styles
|
|
1042
|
-
var content = __webpack_require__(
|
|
1042
|
+
var content = __webpack_require__(1371);
|
|
1043
1043
|
if(content.__esModule) content = content.default;
|
|
1044
1044
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1045
1045
|
if(content.locals) module.exports = content.locals;
|
|
1046
1046
|
// add the styles to the DOM
|
|
1047
1047
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1048
|
-
var update = add("
|
|
1048
|
+
var update = add("09e48f22", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1049
1049
|
|
|
1050
1050
|
/***/ },
|
|
1051
1051
|
|
|
@@ -15531,8 +15531,8 @@ var bnFunText_component = normalizeComponent(
|
|
|
15531
15531
|
)
|
|
15532
15532
|
|
|
15533
15533
|
/* harmony default export */ const bnFunText = (bnFunText_component.exports);
|
|
15534
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=template&id=
|
|
15535
|
-
var
|
|
15534
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=template&id=a086af00&scoped=true
|
|
15535
|
+
var BnInpNumvue_type_template_id_a086af00_scoped_true_render = function render() {
|
|
15536
15536
|
var _vm = this,
|
|
15537
15537
|
_c = _vm._self._c;
|
|
15538
15538
|
return _c('el-input', {
|
|
@@ -15560,10 +15560,12 @@ var BnInpNumvue_type_template_id_dc8beb30_scoped_true_render = function render()
|
|
|
15560
15560
|
slot: "prefix"
|
|
15561
15561
|
}, [_vm._t("prefix")], 2), _c('template', {
|
|
15562
15562
|
slot: "suffix"
|
|
15563
|
-
}, [_vm._t("
|
|
15563
|
+
}, [_vm._t("suffix")], 2)], 2);
|
|
15564
15564
|
};
|
|
15565
|
-
var
|
|
15565
|
+
var BnInpNumvue_type_template_id_a086af00_scoped_true_staticRenderFns = [];
|
|
15566
15566
|
|
|
15567
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
15568
|
+
var es_string_ends_with = __webpack_require__(9449);
|
|
15567
15569
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js
|
|
15568
15570
|
var es_string_starts_with = __webpack_require__(1392);
|
|
15569
15571
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=script&lang=js
|
|
@@ -15584,17 +15586,19 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15584
15586
|
|
|
15585
15587
|
|
|
15586
15588
|
|
|
15589
|
+
|
|
15590
|
+
|
|
15587
15591
|
/* harmony default export */ const BnInpNumvue_type_script_lang_js = ({
|
|
15588
15592
|
name: "BnInpNum",
|
|
15589
15593
|
model: {
|
|
15590
|
-
prop:
|
|
15591
|
-
event:
|
|
15594
|
+
prop: "modelValue",
|
|
15595
|
+
event: "update:modelValue"
|
|
15592
15596
|
},
|
|
15593
15597
|
props: {
|
|
15594
15598
|
modelValue: [String, Number],
|
|
15595
15599
|
placeholder: {
|
|
15596
15600
|
type: String,
|
|
15597
|
-
"default":
|
|
15601
|
+
"default": ""
|
|
15598
15602
|
},
|
|
15599
15603
|
size: String,
|
|
15600
15604
|
underline: {
|
|
@@ -15629,6 +15633,7 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15629
15633
|
},
|
|
15630
15634
|
set: function set(val) {
|
|
15631
15635
|
this.$emit("update:modelValue", val);
|
|
15636
|
+
this.$emit("input", val);
|
|
15632
15637
|
}
|
|
15633
15638
|
}
|
|
15634
15639
|
},
|
|
@@ -15639,49 +15644,50 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15639
15644
|
valInput: (0,external_lodash_namespaceObject.debounce)(function (val) {
|
|
15640
15645
|
// 快速处理空值
|
|
15641
15646
|
if (!val) {
|
|
15642
|
-
this.val =
|
|
15647
|
+
this.val = "";
|
|
15643
15648
|
return;
|
|
15644
15649
|
}
|
|
15645
15650
|
var value = val;
|
|
15646
15651
|
|
|
15647
15652
|
// 移除无效字符(一次性处理)
|
|
15648
|
-
value = value.replace(/[^0-9.-]/g,
|
|
15653
|
+
value = value.replace(/[^0-9.-]/g, "");
|
|
15649
15654
|
|
|
15650
15655
|
// 处理负号:只保留开头的第一个负号
|
|
15651
|
-
if (value.startsWith(
|
|
15652
|
-
value =
|
|
15656
|
+
if (value.startsWith("-")) {
|
|
15657
|
+
value = "-" + value.slice(1).replace(/-/g, "");
|
|
15653
15658
|
} else {
|
|
15654
|
-
value = value.replace(/-/g,
|
|
15659
|
+
value = value.replace(/-/g, "");
|
|
15655
15660
|
}
|
|
15656
15661
|
|
|
15657
|
-
//
|
|
15658
|
-
if (value.startsWith(
|
|
15659
|
-
value = value.slice(1).replace(/\./g,
|
|
15662
|
+
// 处理小数点:移除开头的点,只保留第一个点
|
|
15663
|
+
if (value.startsWith(".")) {
|
|
15664
|
+
value = value.slice(1).replace(/\./g, "");
|
|
15660
15665
|
} else {
|
|
15661
|
-
var dotIndex = value.indexOf(
|
|
15666
|
+
var dotIndex = value.indexOf(".");
|
|
15662
15667
|
if (dotIndex > 0) {
|
|
15663
|
-
var parts = value.split(
|
|
15664
|
-
value = parts[0] +
|
|
15668
|
+
var parts = value.split(".");
|
|
15669
|
+
value = parts[0] + "." + parts.slice(1).join("");
|
|
15665
15670
|
}
|
|
15666
15671
|
}
|
|
15667
15672
|
|
|
15668
|
-
//
|
|
15669
|
-
|
|
15670
|
-
|
|
15671
|
-
|
|
15673
|
+
// 处理精度(统一转为数字,避免 prop 为字符串时比较失效)
|
|
15674
|
+
var precisionNum = this.precision != null ? Number(this.precision) : null;
|
|
15675
|
+
if (value && value !== "-" && precisionNum != null && !isNaN(precisionNum) && precisionNum >= 0) {
|
|
15676
|
+
var pDotIndex = value.indexOf(".");
|
|
15677
|
+
if (precisionNum === 0) {
|
|
15672
15678
|
// 精度为0时,移除小数点及之后的内容
|
|
15673
|
-
value =
|
|
15674
|
-
} else if (
|
|
15679
|
+
value = pDotIndex > 0 ? value.slice(0, pDotIndex) : value;
|
|
15680
|
+
} else if (pDotIndex > 0) {
|
|
15675
15681
|
// 限制小数位数
|
|
15676
|
-
var decimalPart = value.slice(
|
|
15677
|
-
if (decimalPart.length >
|
|
15678
|
-
value = value.slice(0,
|
|
15682
|
+
var decimalPart = value.slice(pDotIndex + 1);
|
|
15683
|
+
if (decimalPart.length > precisionNum) {
|
|
15684
|
+
value = value.slice(0, pDotIndex + 1 + precisionNum);
|
|
15679
15685
|
}
|
|
15680
15686
|
}
|
|
15681
15687
|
}
|
|
15682
15688
|
|
|
15683
15689
|
// 实时校验最大值和最小值
|
|
15684
|
-
if (value && value !==
|
|
15690
|
+
if (value && value !== "-") {
|
|
15685
15691
|
var numValue = parseFloat(value);
|
|
15686
15692
|
if (!isNaN(numValue)) {
|
|
15687
15693
|
// 校验最大值
|
|
@@ -15700,9 +15706,13 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15700
15706
|
* change事件上报
|
|
15701
15707
|
* */
|
|
15702
15708
|
valChange: function valChange() {
|
|
15703
|
-
//
|
|
15704
|
-
if (this.val ===
|
|
15705
|
-
this.val =
|
|
15709
|
+
// 处理只输入负号或末尾小数点的中间态
|
|
15710
|
+
if (this.val === "-" || this.val === "-.") {
|
|
15711
|
+
this.val = "";
|
|
15712
|
+
}
|
|
15713
|
+
// 移除末尾多余的小数点(如 '0.' → '0')
|
|
15714
|
+
if (this.val && this.val.endsWith(".")) {
|
|
15715
|
+
this.val = this.val.slice(0, -1);
|
|
15706
15716
|
}
|
|
15707
15717
|
// 最大值最小值校验已在valInput中实时处理,这里保留作为兜底
|
|
15708
15718
|
if (this.val) {
|
|
@@ -15716,20 +15726,21 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15716
15726
|
}
|
|
15717
15727
|
}
|
|
15718
15728
|
}
|
|
15729
|
+
this.$emit("change", this.val);
|
|
15719
15730
|
},
|
|
15720
15731
|
/**
|
|
15721
15732
|
* blur事件上报
|
|
15722
15733
|
* */
|
|
15723
15734
|
inputBlur: function inputBlur() {
|
|
15724
|
-
this.$emit(
|
|
15735
|
+
this.$emit("blur", this.val);
|
|
15725
15736
|
}
|
|
15726
15737
|
}
|
|
15727
15738
|
});
|
|
15728
15739
|
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=script&lang=js
|
|
15729
15740
|
/* harmony default export */ const BnInpNum_BnInpNumvue_type_script_lang_js = (BnInpNumvue_type_script_lang_js);
|
|
15730
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=
|
|
15731
|
-
var
|
|
15732
|
-
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=
|
|
15741
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=a086af00&prod&lang=scss&scoped=true
|
|
15742
|
+
var BnInpNumvue_type_style_index_0_id_a086af00_prod_lang_scss_scoped_true = __webpack_require__(7817);
|
|
15743
|
+
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=a086af00&prod&lang=scss&scoped=true
|
|
15733
15744
|
|
|
15734
15745
|
;// ./packages/BnInpNum/BnInpNum.vue
|
|
15735
15746
|
|
|
@@ -15742,11 +15753,11 @@ var BnInpNumvue_type_style_index_0_id_dc8beb30_prod_lang_scss_scoped_true = __we
|
|
|
15742
15753
|
|
|
15743
15754
|
var BnInpNum_component = normalizeComponent(
|
|
15744
15755
|
BnInpNum_BnInpNumvue_type_script_lang_js,
|
|
15745
|
-
|
|
15746
|
-
|
|
15756
|
+
BnInpNumvue_type_template_id_a086af00_scoped_true_render,
|
|
15757
|
+
BnInpNumvue_type_template_id_a086af00_scoped_true_staticRenderFns,
|
|
15747
15758
|
false,
|
|
15748
15759
|
null,
|
|
15749
|
-
"
|
|
15760
|
+
"a086af00",
|
|
15750
15761
|
null
|
|
15751
15762
|
|
|
15752
15763
|
)
|
|
@@ -21130,8 +21141,6 @@ function getApiBaseUrl() {
|
|
|
21130
21141
|
});
|
|
21131
21142
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
21132
21143
|
var es_array_sort = __webpack_require__(6910);
|
|
21133
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
21134
|
-
var es_string_ends_with = __webpack_require__(9449);
|
|
21135
21144
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
21136
21145
|
var es_string_trim = __webpack_require__(2762);
|
|
21137
21146
|
;// ../../packages/utils/addressParse.js
|