@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.
package/dist/bn-applet-ui.umd.js
CHANGED
|
@@ -359,7 +359,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `*[data-v-c3b70e18]{box-sizing:border-b
|
|
|
359
359
|
|
|
360
360
|
/***/ },
|
|
361
361
|
|
|
362
|
-
/***/
|
|
362
|
+
/***/ 1099
|
|
363
363
|
(module, __webpack_exports__, __webpack_require__) {
|
|
364
364
|
|
|
365
365
|
"use strict";
|
|
@@ -376,7 +376,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
376
376
|
|
|
377
377
|
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()));
|
|
378
378
|
// Module
|
|
379
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.bnInput-underline[data-v-
|
|
379
|
+
___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}`, ""]);
|
|
380
380
|
// Exports
|
|
381
381
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
382
382
|
|
|
@@ -1043,19 +1043,19 @@ var update = add("1f9ce5b4", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1043
1043
|
|
|
1044
1044
|
/***/ },
|
|
1045
1045
|
|
|
1046
|
-
/***/
|
|
1046
|
+
/***/ 1127
|
|
1047
1047
|
(module, __unused_webpack_exports, __webpack_require__) {
|
|
1048
1048
|
|
|
1049
1049
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1050
1050
|
|
|
1051
1051
|
// load the styles
|
|
1052
|
-
var content = __webpack_require__(
|
|
1052
|
+
var content = __webpack_require__(1099);
|
|
1053
1053
|
if(content.__esModule) content = content.default;
|
|
1054
1054
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1055
1055
|
if(content.locals) module.exports = content.locals;
|
|
1056
1056
|
// add the styles to the DOM
|
|
1057
1057
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1058
|
-
var update = add("
|
|
1058
|
+
var update = add("5432f2b3", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1059
1059
|
|
|
1060
1060
|
/***/ },
|
|
1061
1061
|
|
|
@@ -15549,8 +15549,8 @@ var bnFunText_component = normalizeComponent(
|
|
|
15549
15549
|
)
|
|
15550
15550
|
|
|
15551
15551
|
/* harmony default export */ const bnFunText = (bnFunText_component.exports);
|
|
15552
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
15553
|
-
var
|
|
15552
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
15553
|
+
var BnInpNumvue_type_template_id_a086af00_scoped_true_render = function render() {
|
|
15554
15554
|
var _vm = this,
|
|
15555
15555
|
_c = _vm._self._c;
|
|
15556
15556
|
return _c('el-input', {
|
|
@@ -15578,10 +15578,12 @@ var BnInpNumvue_type_template_id_dc8beb30_scoped_true_render = function render()
|
|
|
15578
15578
|
slot: "prefix"
|
|
15579
15579
|
}, [_vm._t("prefix")], 2), _c('template', {
|
|
15580
15580
|
slot: "suffix"
|
|
15581
|
-
}, [_vm._t("
|
|
15581
|
+
}, [_vm._t("suffix")], 2)], 2);
|
|
15582
15582
|
};
|
|
15583
|
-
var
|
|
15583
|
+
var BnInpNumvue_type_template_id_a086af00_scoped_true_staticRenderFns = [];
|
|
15584
15584
|
|
|
15585
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
15586
|
+
var es_string_ends_with = __webpack_require__(9449);
|
|
15585
15587
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js
|
|
15586
15588
|
var es_string_starts_with = __webpack_require__(1392);
|
|
15587
15589
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
@@ -15602,17 +15604,19 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15602
15604
|
|
|
15603
15605
|
|
|
15604
15606
|
|
|
15607
|
+
|
|
15608
|
+
|
|
15605
15609
|
/* harmony default export */ const BnInpNumvue_type_script_lang_js = ({
|
|
15606
15610
|
name: "BnInpNum",
|
|
15607
15611
|
model: {
|
|
15608
|
-
prop:
|
|
15609
|
-
event:
|
|
15612
|
+
prop: "modelValue",
|
|
15613
|
+
event: "update:modelValue"
|
|
15610
15614
|
},
|
|
15611
15615
|
props: {
|
|
15612
15616
|
modelValue: [String, Number],
|
|
15613
15617
|
placeholder: {
|
|
15614
15618
|
type: String,
|
|
15615
|
-
"default":
|
|
15619
|
+
"default": ""
|
|
15616
15620
|
},
|
|
15617
15621
|
size: String,
|
|
15618
15622
|
underline: {
|
|
@@ -15647,6 +15651,7 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15647
15651
|
},
|
|
15648
15652
|
set: function set(val) {
|
|
15649
15653
|
this.$emit("update:modelValue", val);
|
|
15654
|
+
this.$emit("input", val);
|
|
15650
15655
|
}
|
|
15651
15656
|
}
|
|
15652
15657
|
},
|
|
@@ -15657,49 +15662,50 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15657
15662
|
valInput: (0,external_lodash_.debounce)(function (val) {
|
|
15658
15663
|
// 快速处理空值
|
|
15659
15664
|
if (!val) {
|
|
15660
|
-
this.val =
|
|
15665
|
+
this.val = "";
|
|
15661
15666
|
return;
|
|
15662
15667
|
}
|
|
15663
15668
|
var value = val;
|
|
15664
15669
|
|
|
15665
15670
|
// 移除无效字符(一次性处理)
|
|
15666
|
-
value = value.replace(/[^0-9.-]/g,
|
|
15671
|
+
value = value.replace(/[^0-9.-]/g, "");
|
|
15667
15672
|
|
|
15668
15673
|
// 处理负号:只保留开头的第一个负号
|
|
15669
|
-
if (value.startsWith(
|
|
15670
|
-
value =
|
|
15674
|
+
if (value.startsWith("-")) {
|
|
15675
|
+
value = "-" + value.slice(1).replace(/-/g, "");
|
|
15671
15676
|
} else {
|
|
15672
|
-
value = value.replace(/-/g,
|
|
15677
|
+
value = value.replace(/-/g, "");
|
|
15673
15678
|
}
|
|
15674
15679
|
|
|
15675
|
-
//
|
|
15676
|
-
if (value.startsWith(
|
|
15677
|
-
value = value.slice(1).replace(/\./g,
|
|
15680
|
+
// 处理小数点:移除开头的点,只保留第一个点
|
|
15681
|
+
if (value.startsWith(".")) {
|
|
15682
|
+
value = value.slice(1).replace(/\./g, "");
|
|
15678
15683
|
} else {
|
|
15679
|
-
var dotIndex = value.indexOf(
|
|
15684
|
+
var dotIndex = value.indexOf(".");
|
|
15680
15685
|
if (dotIndex > 0) {
|
|
15681
|
-
var parts = value.split(
|
|
15682
|
-
value = parts[0] +
|
|
15686
|
+
var parts = value.split(".");
|
|
15687
|
+
value = parts[0] + "." + parts.slice(1).join("");
|
|
15683
15688
|
}
|
|
15684
15689
|
}
|
|
15685
15690
|
|
|
15686
|
-
//
|
|
15687
|
-
|
|
15688
|
-
|
|
15689
|
-
|
|
15691
|
+
// 处理精度(统一转为数字,避免 prop 为字符串时比较失效)
|
|
15692
|
+
var precisionNum = this.precision != null ? Number(this.precision) : null;
|
|
15693
|
+
if (value && value !== "-" && precisionNum != null && !isNaN(precisionNum) && precisionNum >= 0) {
|
|
15694
|
+
var pDotIndex = value.indexOf(".");
|
|
15695
|
+
if (precisionNum === 0) {
|
|
15690
15696
|
// 精度为0时,移除小数点及之后的内容
|
|
15691
|
-
value =
|
|
15692
|
-
} else if (
|
|
15697
|
+
value = pDotIndex > 0 ? value.slice(0, pDotIndex) : value;
|
|
15698
|
+
} else if (pDotIndex > 0) {
|
|
15693
15699
|
// 限制小数位数
|
|
15694
|
-
var decimalPart = value.slice(
|
|
15695
|
-
if (decimalPart.length >
|
|
15696
|
-
value = value.slice(0,
|
|
15700
|
+
var decimalPart = value.slice(pDotIndex + 1);
|
|
15701
|
+
if (decimalPart.length > precisionNum) {
|
|
15702
|
+
value = value.slice(0, pDotIndex + 1 + precisionNum);
|
|
15697
15703
|
}
|
|
15698
15704
|
}
|
|
15699
15705
|
}
|
|
15700
15706
|
|
|
15701
15707
|
// 实时校验最大值和最小值
|
|
15702
|
-
if (value && value !==
|
|
15708
|
+
if (value && value !== "-") {
|
|
15703
15709
|
var numValue = parseFloat(value);
|
|
15704
15710
|
if (!isNaN(numValue)) {
|
|
15705
15711
|
// 校验最大值
|
|
@@ -15718,9 +15724,13 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15718
15724
|
* change事件上报
|
|
15719
15725
|
* */
|
|
15720
15726
|
valChange: function valChange() {
|
|
15721
|
-
//
|
|
15722
|
-
if (this.val ===
|
|
15723
|
-
this.val =
|
|
15727
|
+
// 处理只输入负号或末尾小数点的中间态
|
|
15728
|
+
if (this.val === "-" || this.val === "-.") {
|
|
15729
|
+
this.val = "";
|
|
15730
|
+
}
|
|
15731
|
+
// 移除末尾多余的小数点(如 '0.' → '0')
|
|
15732
|
+
if (this.val && this.val.endsWith(".")) {
|
|
15733
|
+
this.val = this.val.slice(0, -1);
|
|
15724
15734
|
}
|
|
15725
15735
|
// 最大值最小值校验已在valInput中实时处理,这里保留作为兜底
|
|
15726
15736
|
if (this.val) {
|
|
@@ -15734,20 +15744,21 @@ var es_string_starts_with = __webpack_require__(1392);
|
|
|
15734
15744
|
}
|
|
15735
15745
|
}
|
|
15736
15746
|
}
|
|
15747
|
+
this.$emit("change", this.val);
|
|
15737
15748
|
},
|
|
15738
15749
|
/**
|
|
15739
15750
|
* blur事件上报
|
|
15740
15751
|
* */
|
|
15741
15752
|
inputBlur: function inputBlur() {
|
|
15742
|
-
this.$emit(
|
|
15753
|
+
this.$emit("blur", this.val);
|
|
15743
15754
|
}
|
|
15744
15755
|
}
|
|
15745
15756
|
});
|
|
15746
15757
|
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=script&lang=js
|
|
15747
15758
|
/* harmony default export */ const BnInpNum_BnInpNumvue_type_script_lang_js = (BnInpNumvue_type_script_lang_js);
|
|
15748
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=
|
|
15749
|
-
var
|
|
15750
|
-
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=
|
|
15759
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
15760
|
+
var BnInpNumvue_type_style_index_0_id_a086af00_prod_lang_scss_scoped_true = __webpack_require__(1127);
|
|
15761
|
+
;// ./packages/BnInpNum/BnInpNum.vue?vue&type=style&index=0&id=a086af00&prod&lang=scss&scoped=true
|
|
15751
15762
|
|
|
15752
15763
|
;// ./packages/BnInpNum/BnInpNum.vue
|
|
15753
15764
|
|
|
@@ -15760,11 +15771,11 @@ var BnInpNumvue_type_style_index_0_id_dc8beb30_prod_lang_scss_scoped_true = __we
|
|
|
15760
15771
|
|
|
15761
15772
|
var BnInpNum_component = normalizeComponent(
|
|
15762
15773
|
BnInpNum_BnInpNumvue_type_script_lang_js,
|
|
15763
|
-
|
|
15764
|
-
|
|
15774
|
+
BnInpNumvue_type_template_id_a086af00_scoped_true_render,
|
|
15775
|
+
BnInpNumvue_type_template_id_a086af00_scoped_true_staticRenderFns,
|
|
15765
15776
|
false,
|
|
15766
15777
|
null,
|
|
15767
|
-
"
|
|
15778
|
+
"a086af00",
|
|
15768
15779
|
null
|
|
15769
15780
|
|
|
15770
15781
|
)
|
|
@@ -21148,8 +21159,6 @@ function getApiBaseUrl() {
|
|
|
21148
21159
|
});
|
|
21149
21160
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
21150
21161
|
var es_array_sort = __webpack_require__(6910);
|
|
21151
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
21152
|
-
var es_string_ends_with = __webpack_require__(9449);
|
|
21153
21162
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
21154
21163
|
var es_string_trim = __webpack_require__(2762);
|
|
21155
21164
|
;// ../../packages/utils/addressParse.js
|