bl-common-vue3 3.6.32-beta2 → 3.6.32-beta4
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/vue3common.common.js +106 -144
- package/lib/vue3common.umd.js +106 -144
- package/lib/vue3common.umd.min.js +9 -9
- package/package.json +1 -1
package/lib/vue3common.common.js
CHANGED
|
@@ -6136,6 +6136,17 @@ var locale = {
|
|
|
6136
6136
|
};
|
|
6137
6137
|
/* harmony default export */ __webpack_exports__["a"] = (locale);
|
|
6138
6138
|
|
|
6139
|
+
/***/ }),
|
|
6140
|
+
|
|
6141
|
+
/***/ "01d4":
|
|
6142
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6143
|
+
|
|
6144
|
+
"use strict";
|
|
6145
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_049758bc_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f56c");
|
|
6146
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_049758bc_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_049758bc_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
6147
|
+
/* unused harmony reexport * */
|
|
6148
|
+
|
|
6149
|
+
|
|
6139
6150
|
/***/ }),
|
|
6140
6151
|
|
|
6141
6152
|
/***/ "02be":
|
|
@@ -101736,20 +101747,6 @@ exportTypedArrayMethod('fill', function fill(value /* , start, end */) {
|
|
|
101736
101747
|
});
|
|
101737
101748
|
|
|
101738
101749
|
|
|
101739
|
-
/***/ }),
|
|
101740
|
-
|
|
101741
|
-
/***/ "73c5":
|
|
101742
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
101743
|
-
|
|
101744
|
-
// Imports
|
|
101745
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
101746
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
101747
|
-
// Module
|
|
101748
|
-
exports.push([module.i, ".primary-color-text[data-v-9cd67532]{color:#2681f3}.phone-country-input[data-v-9cd67532] .ant-input-group-addon{padding:0}.phone-country-input .disabled[data-v-9cd67532]{color:rgba(0,0,0,.25);cursor:not-allowed}", ""]);
|
|
101749
|
-
// Exports
|
|
101750
|
-
module.exports = exports;
|
|
101751
|
-
|
|
101752
|
-
|
|
101753
101750
|
/***/ }),
|
|
101754
101751
|
|
|
101755
101752
|
/***/ "7418":
|
|
@@ -134010,22 +134007,6 @@ $({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fixed') }, {
|
|
|
134010
134007
|
});
|
|
134011
134008
|
|
|
134012
134009
|
|
|
134013
|
-
/***/ }),
|
|
134014
|
-
|
|
134015
|
-
/***/ "c8ab":
|
|
134016
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
134017
|
-
|
|
134018
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
134019
|
-
|
|
134020
|
-
// load the styles
|
|
134021
|
-
var content = __webpack_require__("73c5");
|
|
134022
|
-
if(content.__esModule) content = content.default;
|
|
134023
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
134024
|
-
if(content.locals) module.exports = content.locals;
|
|
134025
|
-
// add the styles to the DOM
|
|
134026
|
-
var add = __webpack_require__("499e").default
|
|
134027
|
-
var update = add("05c25228", content, true, {"sourceMap":false,"shadowMode":false});
|
|
134028
|
-
|
|
134029
134010
|
/***/ }),
|
|
134030
134011
|
|
|
134031
134012
|
/***/ "c8ba":
|
|
@@ -141437,17 +141418,6 @@ module.exports = function (target, src, options) {
|
|
|
141437
141418
|
};
|
|
141438
141419
|
|
|
141439
141420
|
|
|
141440
|
-
/***/ }),
|
|
141441
|
-
|
|
141442
|
-
/***/ "e2d7":
|
|
141443
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
141444
|
-
|
|
141445
|
-
"use strict";
|
|
141446
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_9cd67532_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c8ab");
|
|
141447
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_9cd67532_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_style_resources_loader_lib_index_js_ref_11_oneOf_1_5_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_9cd67532_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
141448
|
-
/* unused harmony reexport * */
|
|
141449
|
-
|
|
141450
|
-
|
|
141451
141421
|
/***/ }),
|
|
141452
141422
|
|
|
141453
141423
|
/***/ "e32c":
|
|
@@ -143514,6 +143484,20 @@ function arrayLikeKeys(value, inherited) {
|
|
|
143514
143484
|
/* harmony default export */ var _arrayLikeKeys = __webpack_exports__["a"] = (arrayLikeKeys);
|
|
143515
143485
|
|
|
143516
143486
|
|
|
143487
|
+
/***/ }),
|
|
143488
|
+
|
|
143489
|
+
/***/ "ee63":
|
|
143490
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
143491
|
+
|
|
143492
|
+
// Imports
|
|
143493
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
143494
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
143495
|
+
// Module
|
|
143496
|
+
exports.push([module.i, ".primary-color-text[data-v-049758bc]{color:#2681f3}.phone-country-input[data-v-049758bc] .ant-input-group-addon{padding:0}.phone-country-input .disabled[data-v-049758bc]{color:rgba(0,0,0,.25);cursor:not-allowed}", ""]);
|
|
143497
|
+
// Exports
|
|
143498
|
+
module.exports = exports;
|
|
143499
|
+
|
|
143500
|
+
|
|
143517
143501
|
/***/ }),
|
|
143518
143502
|
|
|
143519
143503
|
/***/ "ee8b":
|
|
@@ -145225,6 +145209,22 @@ module.exports = uncurryThis([].slice);
|
|
|
145225
145209
|
|
|
145226
145210
|
/***/ }),
|
|
145227
145211
|
|
|
145212
|
+
/***/ "f56c":
|
|
145213
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
145214
|
+
|
|
145215
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
145216
|
+
|
|
145217
|
+
// load the styles
|
|
145218
|
+
var content = __webpack_require__("ee63");
|
|
145219
|
+
if(content.__esModule) content = content.default;
|
|
145220
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
145221
|
+
if(content.locals) module.exports = content.locals;
|
|
145222
|
+
// add the styles to the DOM
|
|
145223
|
+
var add = __webpack_require__("499e").default
|
|
145224
|
+
var update = add("a1f81fce", content, true, {"sourceMap":false,"shadowMode":false});
|
|
145225
|
+
|
|
145226
|
+
/***/ }),
|
|
145227
|
+
|
|
145228
145228
|
/***/ "f5df":
|
|
145229
145229
|
/***/ (function(module, exports, __webpack_require__) {
|
|
145230
145230
|
|
|
@@ -175944,38 +175944,38 @@ var CheckedPropertyResourcesvue_type_style_index_0_id_3c8b6055_lang_less_scoped_
|
|
|
175944
175944
|
const CheckedPropertyResources_exports_ = /*#__PURE__*/exportHelper_default()(CheckedPropertyResourcesvue_type_script_lang_js, [['render',CheckedPropertyResourcesvue_type_template_id_3c8b6055_scoped_true_render],['__scopeId',"data-v-3c8b6055"]])
|
|
175945
175945
|
|
|
175946
175946
|
/* harmony default export */ var CheckedPropertyResources = (CheckedPropertyResources_exports_);
|
|
175947
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/BlPhoneInput/index.vue?vue&type=template&id=
|
|
175947
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/BlPhoneInput/index.vue?vue&type=template&id=049758bc&scoped=true
|
|
175948
175948
|
|
|
175949
175949
|
|
|
175950
|
-
var
|
|
175951
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
175950
|
+
var BlPhoneInputvue_type_template_id_049758bc_scoped_true_withScopeId = function _withScopeId(n) {
|
|
175951
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-049758bc"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n;
|
|
175952
175952
|
};
|
|
175953
175953
|
|
|
175954
|
-
var
|
|
175954
|
+
var BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_1 = {
|
|
175955
175955
|
class: "phone-country-input"
|
|
175956
175956
|
};
|
|
175957
|
-
var
|
|
175957
|
+
var BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_2 = {
|
|
175958
175958
|
key: 0
|
|
175959
175959
|
};
|
|
175960
|
-
var
|
|
175960
|
+
var BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_3 = {
|
|
175961
175961
|
style: {
|
|
175962
175962
|
"padding": "0 10px"
|
|
175963
175963
|
}
|
|
175964
175964
|
};
|
|
175965
|
-
var
|
|
175965
|
+
var BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_4 = {
|
|
175966
175966
|
key: 0
|
|
175967
175967
|
};
|
|
175968
|
-
var
|
|
175968
|
+
var BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_5 = {
|
|
175969
175969
|
key: 0
|
|
175970
175970
|
};
|
|
175971
|
-
function
|
|
175971
|
+
function BlPhoneInputvue_type_template_id_049758bc_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
175972
175972
|
var _component_a_select_option = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-select-option");
|
|
175973
175973
|
|
|
175974
175974
|
var _component_a_select = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-select");
|
|
175975
175975
|
|
|
175976
175976
|
var _component_a_input = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-input");
|
|
175977
175977
|
|
|
175978
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
175978
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_1, [_ctx.type === 'phoneCountry' && _ctx.showPhoneCountry ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_select, {
|
|
175979
175979
|
key: 0,
|
|
175980
175980
|
value: _ctx.formState.phone_country,
|
|
175981
175981
|
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
@@ -175992,7 +175992,7 @@ function BlPhoneInputvue_type_template_id_9cd67532_scoped_true_render(_ctx, _cac
|
|
|
175992
175992
|
key: item.id
|
|
175993
175993
|
}, {
|
|
175994
175994
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
175995
|
-
return [_ctx.showAddUnit ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span",
|
|
175995
|
+
return [_ctx.showAddUnit ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_2, "+")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item.nation_code), 1)];
|
|
175996
175996
|
}),
|
|
175997
175997
|
_: 2
|
|
175998
175998
|
}, 1032, ["value"]);
|
|
@@ -176023,7 +176023,7 @@ function BlPhoneInputvue_type_template_id_9cd67532_scoped_true_render(_ctx, _cac
|
|
|
176023
176023
|
}, [_ctx.showPhoneCountry ? {
|
|
176024
176024
|
name: "addonBefore",
|
|
176025
176025
|
fn: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
176026
|
-
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div",
|
|
176026
|
+
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_3, [_ctx.phoneCountryList.length > 1 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_select, {
|
|
176027
176027
|
key: 0,
|
|
176028
176028
|
value: _ctx.formState.phone_country,
|
|
176029
176029
|
"onUpdate:value": _cache[1] || (_cache[1] = function ($event) {
|
|
@@ -176040,7 +176040,7 @@ function BlPhoneInputvue_type_template_id_9cd67532_scoped_true_render(_ctx, _cac
|
|
|
176040
176040
|
key: item.id
|
|
176041
176041
|
}, {
|
|
176042
176042
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
176043
|
-
return [_ctx.showAddUnit ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span",
|
|
176043
|
+
return [_ctx.showAddUnit ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_4, "+")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item.nation_code), 1)];
|
|
176044
176044
|
}),
|
|
176045
176045
|
_: 2
|
|
176046
176046
|
}, 1032, ["value"]);
|
|
@@ -176052,12 +176052,12 @@ function BlPhoneInputvue_type_template_id_9cd67532_scoped_true_render(_ctx, _cac
|
|
|
176052
176052
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])([{
|
|
176053
176053
|
disabled: _ctx.phoneCountryProps.disabled
|
|
176054
176054
|
}])
|
|
176055
|
-
}, [_ctx.showAddUnit ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span",
|
|
176055
|
+
}, [_ctx.showAddUnit ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", BlPhoneInputvue_type_template_id_049758bc_scoped_true_hoisted_5, "+")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.formState.phone_country), 1)], 2))])];
|
|
176056
176056
|
}),
|
|
176057
176057
|
key: "0"
|
|
176058
176058
|
} : undefined]), 1032, ["value", "placeholder", "disabled", "size", "allowClear", "bordered", "onChange"]))]);
|
|
176059
176059
|
}
|
|
176060
|
-
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=template&id=
|
|
176060
|
+
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=template&id=049758bc&scoped=true
|
|
176061
176061
|
|
|
176062
176062
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
176063
176063
|
var es_string_trim = __webpack_require__("498a");
|
|
@@ -176075,7 +176075,6 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176075
176075
|
|
|
176076
176076
|
|
|
176077
176077
|
|
|
176078
|
-
|
|
176079
176078
|
/* harmony default export */ var BlPhoneInputvue_type_script_lang_js = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
176080
176079
|
name: "BlPhoneInput",
|
|
176081
176080
|
components: {
|
|
@@ -176084,9 +176083,9 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176084
176083
|
"a-select-option": es_select["a" /* SelectOption */]
|
|
176085
176084
|
},
|
|
176086
176085
|
props: {
|
|
176087
|
-
// 输入值
|
|
176088
|
-
|
|
176089
|
-
type: [Object
|
|
176086
|
+
// 输入值
|
|
176087
|
+
data: {
|
|
176088
|
+
type: [Object],
|
|
176090
176089
|
default: function _default() {
|
|
176091
176090
|
return {
|
|
176092
176091
|
// 区号
|
|
@@ -176101,16 +176100,6 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176101
176100
|
type: String,
|
|
176102
176101
|
default: "phone"
|
|
176103
176102
|
},
|
|
176104
|
-
// 区号字段名 默认 phone_country
|
|
176105
|
-
phoneCountryName: {
|
|
176106
|
-
type: String,
|
|
176107
|
-
default: "phone_country"
|
|
176108
|
-
},
|
|
176109
|
-
// 手机号字段名 默认 phone
|
|
176110
|
-
phoneName: {
|
|
176111
|
-
type: String,
|
|
176112
|
-
default: "phone"
|
|
176113
|
-
},
|
|
176114
176103
|
// 手机号输入框属性
|
|
176115
176104
|
phoneNumberProps: {
|
|
176116
176105
|
type: Object,
|
|
@@ -176120,7 +176109,8 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176120
176109
|
disabled: false,
|
|
176121
176110
|
size: "default",
|
|
176122
176111
|
allowClear: true,
|
|
176123
|
-
bordered: true
|
|
176112
|
+
bordered: true,
|
|
176113
|
+
rulesMessage: "请输入正确的手机号"
|
|
176124
176114
|
};
|
|
176125
176115
|
}
|
|
176126
176116
|
},
|
|
@@ -176145,7 +176135,7 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176145
176135
|
default: true
|
|
176146
176136
|
}
|
|
176147
176137
|
},
|
|
176148
|
-
emits: ["
|
|
176138
|
+
emits: ["change", "request"],
|
|
176149
176139
|
setup: function setup(props, _ref) {
|
|
176150
176140
|
var expose = _ref.expose,
|
|
176151
176141
|
emit = _ref.emit;
|
|
@@ -176153,15 +176143,10 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176153
176143
|
// 区号列表
|
|
176154
176144
|
phoneCountryList: []
|
|
176155
176145
|
});
|
|
176156
|
-
var formState = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])({
|
|
176157
|
-
|
|
176158
|
-
|
|
176159
|
-
|
|
176160
|
-
} else {
|
|
176161
|
-
formState.value.phone = props.value || "";
|
|
176162
|
-
formState.value.phone_country = props.value[props.phoneCountryName] || undefined;
|
|
176163
|
-
} // 获取区号信息
|
|
176164
|
-
|
|
176146
|
+
var formState = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])({
|
|
176147
|
+
phone: props.data.phone || "",
|
|
176148
|
+
phone_country: props.data.phone_country || undefined
|
|
176149
|
+
}); // 获取区号信息
|
|
176165
176150
|
|
|
176166
176151
|
var getPhoneCountryInfo = function getPhoneCountryInfo() {
|
|
176167
176152
|
return state.phoneCountryList.find(function (v) {
|
|
@@ -176190,10 +176175,21 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176190
176175
|
}; // emit手机号校验规则
|
|
176191
176176
|
|
|
176192
176177
|
|
|
176193
|
-
var
|
|
176178
|
+
var getRules = function getRules() {
|
|
176194
176179
|
var _getPhoneCountryInfo2;
|
|
176195
176180
|
|
|
176196
|
-
|
|
176181
|
+
var rules = {};
|
|
176182
|
+
|
|
176183
|
+
if ((_getPhoneCountryInfo2 = getPhoneCountryInfo()) !== null && _getPhoneCountryInfo2 !== void 0 && _getPhoneCountryInfo2.phone_match_rule) {
|
|
176184
|
+
var _getPhoneCountryInfo3, _props$phoneNumberPro;
|
|
176185
|
+
|
|
176186
|
+
rules = {
|
|
176187
|
+
pattern: new RegExp((_getPhoneCountryInfo3 = getPhoneCountryInfo()) === null || _getPhoneCountryInfo3 === void 0 ? void 0 : _getPhoneCountryInfo3.phone_match_rule),
|
|
176188
|
+
message: (props === null || props === void 0 ? void 0 : (_props$phoneNumberPro = props.phoneNumberProps) === null || _props$phoneNumberPro === void 0 ? void 0 : _props$phoneNumberPro.rulesMessage) || "请输入正确的手机号"
|
|
176189
|
+
};
|
|
176190
|
+
}
|
|
176191
|
+
|
|
176192
|
+
return rules;
|
|
176197
176193
|
}; // 获取区号列表
|
|
176198
176194
|
|
|
176199
176195
|
|
|
@@ -176216,77 +176212,43 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176216
176212
|
});
|
|
176217
176213
|
};
|
|
176218
176214
|
|
|
176219
|
-
|
|
176220
|
-
|
|
176221
|
-
|
|
176222
|
-
|
|
176223
|
-
|
|
176224
|
-
|
|
176225
|
-
if (!state.phoneCountryList.length) {
|
|
176226
|
-
getPhoneCountryList();
|
|
176227
|
-
}
|
|
176228
|
-
}, {
|
|
176229
|
-
deep: true,
|
|
176230
|
-
immediate: true
|
|
176231
|
-
});
|
|
176232
|
-
} else {
|
|
176233
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
176234
|
-
return props.value[props.phoneCountryName];
|
|
176235
|
-
}, function (val) {
|
|
176236
|
-
formState.value.phone_country = val || undefined;
|
|
176215
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
176216
|
+
return props.data;
|
|
176217
|
+
}, function (val) {
|
|
176218
|
+
formState.value.phone_country = val.phone_country || undefined;
|
|
176219
|
+
formState.value.phone = val.phone || "";
|
|
176237
176220
|
|
|
176221
|
+
if (!state.phoneCountryList.length) {
|
|
176222
|
+
getPhoneCountryList();
|
|
176223
|
+
} else {
|
|
176238
176224
|
if (!formState.value.phone_country) {
|
|
176239
|
-
|
|
176240
|
-
getPhoneCountryList();
|
|
176241
|
-
} else {
|
|
176242
|
-
var _state$phoneCountryLi;
|
|
176225
|
+
var _state$phoneCountryLi;
|
|
176243
176226
|
|
|
176244
|
-
|
|
176245
|
-
}
|
|
176227
|
+
formState.value.phone_country = (_state$phoneCountryLi = state.phoneCountryList[0]) === null || _state$phoneCountryLi === void 0 ? void 0 : _state$phoneCountryLi.nation_code;
|
|
176246
176228
|
}
|
|
176247
|
-
}
|
|
176248
|
-
|
|
176249
|
-
|
|
176250
|
-
|
|
176251
|
-
|
|
176252
|
-
return props.value[props.phoneName];
|
|
176253
|
-
}, function (val) {
|
|
176254
|
-
formState.value.phone = val || "";
|
|
176255
|
-
}, {
|
|
176256
|
-
deep: true,
|
|
176257
|
-
immediate: true
|
|
176258
|
-
});
|
|
176259
|
-
} // 获取手机号校验结果
|
|
176260
|
-
|
|
176229
|
+
}
|
|
176230
|
+
}, {
|
|
176231
|
+
deep: true,
|
|
176232
|
+
immediate: true
|
|
176233
|
+
}); // 获取手机号校验结果
|
|
176261
176234
|
|
|
176262
176235
|
var getPhoneValidate = function getPhoneValidate() {
|
|
176263
176236
|
return getPhoneValidateType() === "success" ? true : false;
|
|
176264
176237
|
};
|
|
176265
176238
|
|
|
176266
176239
|
var handleChange = function handleChange() {
|
|
176267
|
-
var
|
|
176240
|
+
var modelValue = {
|
|
176241
|
+
phone_country: formState.value.phone_country,
|
|
176242
|
+
phone: formState.value.phone,
|
|
176243
|
+
rules: getRules(),
|
|
176244
|
+
phoneCountryInfo: getPhoneCountryInfo()
|
|
176245
|
+
};
|
|
176268
176246
|
|
|
176269
176247
|
if (props.type === "phoneCountry") {
|
|
176270
|
-
emit("
|
|
176271
|
-
emit("change", {
|
|
176272
|
-
phoneCountry: formState.value.phone_country,
|
|
176273
|
-
phoneCountryInfo: getPhoneCountryInfo()
|
|
176274
|
-
});
|
|
176248
|
+
emit("change", modelValue);
|
|
176275
176249
|
} else {
|
|
176276
|
-
|
|
176277
|
-
|
|
176278
|
-
var modelValue = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props.value), {}, (_objectSpread2 = {}, Object(defineProperty["a" /* default */])(_objectSpread2, props.phoneCountryName, formState.value.phone_country), Object(defineProperty["a" /* default */])(_objectSpread2, props.phoneName, formState.value.phone), _objectSpread2));
|
|
176279
|
-
|
|
176280
|
-
emit("update:value", modelValue);
|
|
176281
|
-
emit("change", Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, modelValue), {}, {
|
|
176282
|
-
changeField: changeField,
|
|
176283
|
-
phoneValidate: getPhoneValidate(),
|
|
176284
|
-
phoneValidateType: getPhoneValidateType()
|
|
176285
|
-
}));
|
|
176286
|
-
}
|
|
176287
|
-
|
|
176288
|
-
if (changeField === "phoneCountry") {
|
|
176289
|
-
emitPhoneMathRule();
|
|
176250
|
+
modelValue.phone = formState.value.phone;
|
|
176251
|
+
emit("change", modelValue);
|
|
176290
176252
|
}
|
|
176291
176253
|
}; // 手机号输入change
|
|
176292
176254
|
|
|
@@ -176325,8 +176287,8 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176325
176287
|
}));
|
|
176326
176288
|
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=script&lang=js
|
|
176327
176289
|
|
|
176328
|
-
// EXTERNAL MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=style&index=0&id=
|
|
176329
|
-
var
|
|
176290
|
+
// EXTERNAL MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=style&index=0&id=049758bc&lang=less&scoped=true
|
|
176291
|
+
var BlPhoneInputvue_type_style_index_0_id_049758bc_lang_less_scoped_true = __webpack_require__("01d4");
|
|
176330
176292
|
|
|
176331
176293
|
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue
|
|
176332
176294
|
|
|
@@ -176336,7 +176298,7 @@ var BlPhoneInputvue_type_style_index_0_id_9cd67532_lang_less_scoped_true = __web
|
|
|
176336
176298
|
|
|
176337
176299
|
|
|
176338
176300
|
|
|
176339
|
-
const BlPhoneInput_exports_ = /*#__PURE__*/exportHelper_default()(BlPhoneInputvue_type_script_lang_js, [['render',
|
|
176301
|
+
const BlPhoneInput_exports_ = /*#__PURE__*/exportHelper_default()(BlPhoneInputvue_type_script_lang_js, [['render',BlPhoneInputvue_type_template_id_049758bc_scoped_true_render],['__scopeId',"data-v-049758bc"]])
|
|
176340
176302
|
|
|
176341
176303
|
/* harmony default export */ var BlPhoneInput = (BlPhoneInput_exports_);
|
|
176342
176304
|
// CONCATENATED MODULE: ./src/components/components.js
|