bl-common-vue3 3.6.32-beta3 → 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 +98 -145
- package/lib/vue3common.umd.js +98 -145
- 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":
|
|
@@ -43347,17 +43358,6 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
43347
43358
|
} : [].forEach;
|
|
43348
43359
|
|
|
43349
43360
|
|
|
43350
|
-
/***/ }),
|
|
43351
|
-
|
|
43352
|
-
/***/ "17e4":
|
|
43353
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
43354
|
-
|
|
43355
|
-
"use strict";
|
|
43356
|
-
/* 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_839313e2_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("44a4");
|
|
43357
|
-
/* 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_839313e2_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_839313e2_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
43358
|
-
/* unused harmony reexport * */
|
|
43359
|
-
|
|
43360
|
-
|
|
43361
43361
|
/***/ }),
|
|
43362
43362
|
|
|
43363
43363
|
/***/ "182d":
|
|
@@ -91414,22 +91414,6 @@ function isRawValue(value) {
|
|
|
91414
91414
|
|
|
91415
91415
|
/***/ }),
|
|
91416
91416
|
|
|
91417
|
-
/***/ "44a4":
|
|
91418
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
91419
|
-
|
|
91420
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
91421
|
-
|
|
91422
|
-
// load the styles
|
|
91423
|
-
var content = __webpack_require__("9d7d");
|
|
91424
|
-
if(content.__esModule) content = content.default;
|
|
91425
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
91426
|
-
if(content.locals) module.exports = content.locals;
|
|
91427
|
-
// add the styles to the DOM
|
|
91428
|
-
var add = __webpack_require__("499e").default
|
|
91429
|
-
var update = add("59f8fa37", content, true, {"sourceMap":false,"shadowMode":false});
|
|
91430
|
-
|
|
91431
|
-
/***/ }),
|
|
91432
|
-
|
|
91433
91417
|
/***/ "44ad":
|
|
91434
91418
|
/***/ (function(module, exports, __webpack_require__) {
|
|
91435
91419
|
|
|
@@ -115294,20 +115278,6 @@ exports.push([module.i, ".primary-color-text[data-v-6a425c1a]{color:#2681f3}.des
|
|
|
115294
115278
|
module.exports = exports;
|
|
115295
115279
|
|
|
115296
115280
|
|
|
115297
|
-
/***/ }),
|
|
115298
|
-
|
|
115299
|
-
/***/ "9d7d":
|
|
115300
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
115301
|
-
|
|
115302
|
-
// Imports
|
|
115303
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
115304
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
115305
|
-
// Module
|
|
115306
|
-
exports.push([module.i, ".primary-color-text[data-v-839313e2]{color:#2681f3}.phone-country-input[data-v-839313e2] .ant-input-group-addon{padding:0}.phone-country-input .disabled[data-v-839313e2]{color:rgba(0,0,0,.25);cursor:not-allowed}", ""]);
|
|
115307
|
-
// Exports
|
|
115308
|
-
module.exports = exports;
|
|
115309
|
-
|
|
115310
|
-
|
|
115311
115281
|
/***/ }),
|
|
115312
115282
|
|
|
115313
115283
|
/***/ "9e31":
|
|
@@ -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_839313e2_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_839313e2_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_839313e2_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_839313e2_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,
|
|
@@ -176146,7 +176135,7 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176146
176135
|
default: true
|
|
176147
176136
|
}
|
|
176148
176137
|
},
|
|
176149
|
-
emits: ["
|
|
176138
|
+
emits: ["change", "request"],
|
|
176150
176139
|
setup: function setup(props, _ref) {
|
|
176151
176140
|
var expose = _ref.expose,
|
|
176152
176141
|
emit = _ref.emit;
|
|
@@ -176154,15 +176143,10 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176154
176143
|
// 区号列表
|
|
176155
176144
|
phoneCountryList: []
|
|
176156
176145
|
});
|
|
176157
|
-
var formState = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])({
|
|
176158
|
-
|
|
176159
|
-
|
|
176160
|
-
|
|
176161
|
-
} else {
|
|
176162
|
-
formState.value.phone = props.value || "";
|
|
176163
|
-
formState.value.phone_country = props.value[props.phoneCountryName] || undefined;
|
|
176164
|
-
} // 获取区号信息
|
|
176165
|
-
|
|
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
|
+
}); // 获取区号信息
|
|
176166
176150
|
|
|
176167
176151
|
var getPhoneCountryInfo = function getPhoneCountryInfo() {
|
|
176168
176152
|
return state.phoneCountryList.find(function (v) {
|
|
@@ -176191,18 +176175,21 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176191
176175
|
}; // emit手机号校验规则
|
|
176192
176176
|
|
|
176193
176177
|
|
|
176194
|
-
var
|
|
176178
|
+
var getRules = function getRules() {
|
|
176195
176179
|
var _getPhoneCountryInfo2;
|
|
176196
176180
|
|
|
176181
|
+
var rules = {};
|
|
176182
|
+
|
|
176197
176183
|
if ((_getPhoneCountryInfo2 = getPhoneCountryInfo()) !== null && _getPhoneCountryInfo2 !== void 0 && _getPhoneCountryInfo2.phone_match_rule) {
|
|
176198
176184
|
var _getPhoneCountryInfo3, _props$phoneNumberPro;
|
|
176199
176185
|
|
|
176200
|
-
|
|
176186
|
+
rules = {
|
|
176201
176187
|
pattern: new RegExp((_getPhoneCountryInfo3 = getPhoneCountryInfo()) === null || _getPhoneCountryInfo3 === void 0 ? void 0 : _getPhoneCountryInfo3.phone_match_rule),
|
|
176202
|
-
message: (props === null || props === void 0 ? void 0 : (_props$phoneNumberPro = props.phoneNumberProps) === null || _props$phoneNumberPro === void 0 ? void 0 : _props$phoneNumberPro.rulesMessage) ||
|
|
176188
|
+
message: (props === null || props === void 0 ? void 0 : (_props$phoneNumberPro = props.phoneNumberProps) === null || _props$phoneNumberPro === void 0 ? void 0 : _props$phoneNumberPro.rulesMessage) || "请输入正确的手机号"
|
|
176203
176189
|
};
|
|
176204
|
-
emit("phoneMatchRule", rules);
|
|
176205
176190
|
}
|
|
176191
|
+
|
|
176192
|
+
return rules;
|
|
176206
176193
|
}; // 获取区号列表
|
|
176207
176194
|
|
|
176208
176195
|
|
|
@@ -176225,77 +176212,43 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176225
176212
|
});
|
|
176226
176213
|
};
|
|
176227
176214
|
|
|
176228
|
-
|
|
176229
|
-
|
|
176230
|
-
|
|
176231
|
-
|
|
176232
|
-
|
|
176233
|
-
|
|
176234
|
-
if (!state.phoneCountryList.length) {
|
|
176235
|
-
getPhoneCountryList();
|
|
176236
|
-
}
|
|
176237
|
-
}, {
|
|
176238
|
-
deep: true,
|
|
176239
|
-
immediate: true
|
|
176240
|
-
});
|
|
176241
|
-
} else {
|
|
176242
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
176243
|
-
return props.value[props.phoneCountryName];
|
|
176244
|
-
}, function (val) {
|
|
176245
|
-
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 || "";
|
|
176246
176220
|
|
|
176221
|
+
if (!state.phoneCountryList.length) {
|
|
176222
|
+
getPhoneCountryList();
|
|
176223
|
+
} else {
|
|
176247
176224
|
if (!formState.value.phone_country) {
|
|
176248
|
-
|
|
176249
|
-
getPhoneCountryList();
|
|
176250
|
-
} else {
|
|
176251
|
-
var _state$phoneCountryLi;
|
|
176225
|
+
var _state$phoneCountryLi;
|
|
176252
176226
|
|
|
176253
|
-
|
|
176254
|
-
}
|
|
176227
|
+
formState.value.phone_country = (_state$phoneCountryLi = state.phoneCountryList[0]) === null || _state$phoneCountryLi === void 0 ? void 0 : _state$phoneCountryLi.nation_code;
|
|
176255
176228
|
}
|
|
176256
|
-
}
|
|
176257
|
-
|
|
176258
|
-
|
|
176259
|
-
|
|
176260
|
-
|
|
176261
|
-
return props.value[props.phoneName];
|
|
176262
|
-
}, function (val) {
|
|
176263
|
-
formState.value.phone = val || "";
|
|
176264
|
-
}, {
|
|
176265
|
-
deep: true,
|
|
176266
|
-
immediate: true
|
|
176267
|
-
});
|
|
176268
|
-
} // 获取手机号校验结果
|
|
176269
|
-
|
|
176229
|
+
}
|
|
176230
|
+
}, {
|
|
176231
|
+
deep: true,
|
|
176232
|
+
immediate: true
|
|
176233
|
+
}); // 获取手机号校验结果
|
|
176270
176234
|
|
|
176271
176235
|
var getPhoneValidate = function getPhoneValidate() {
|
|
176272
176236
|
return getPhoneValidateType() === "success" ? true : false;
|
|
176273
176237
|
};
|
|
176274
176238
|
|
|
176275
176239
|
var handleChange = function handleChange() {
|
|
176276
|
-
var
|
|
176240
|
+
var modelValue = {
|
|
176241
|
+
phone_country: formState.value.phone_country,
|
|
176242
|
+
phone: formState.value.phone,
|
|
176243
|
+
rules: getRules(),
|
|
176244
|
+
phoneCountryInfo: getPhoneCountryInfo()
|
|
176245
|
+
};
|
|
176277
176246
|
|
|
176278
176247
|
if (props.type === "phoneCountry") {
|
|
176279
|
-
emit("
|
|
176280
|
-
emit("change", {
|
|
176281
|
-
phoneCountry: formState.value.phone_country,
|
|
176282
|
-
phoneCountryInfo: getPhoneCountryInfo()
|
|
176283
|
-
});
|
|
176248
|
+
emit("change", modelValue);
|
|
176284
176249
|
} else {
|
|
176285
|
-
|
|
176286
|
-
|
|
176287
|
-
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));
|
|
176288
|
-
|
|
176289
|
-
emit("update:value", modelValue);
|
|
176290
|
-
emit("change", Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, modelValue), {}, {
|
|
176291
|
-
changeField: changeField,
|
|
176292
|
-
phoneValidate: getPhoneValidate(),
|
|
176293
|
-
phoneValidateType: getPhoneValidateType()
|
|
176294
|
-
}));
|
|
176295
|
-
}
|
|
176296
|
-
|
|
176297
|
-
if (changeField === "phoneCountry") {
|
|
176298
|
-
emitPhoneMathRule();
|
|
176250
|
+
modelValue.phone = formState.value.phone;
|
|
176251
|
+
emit("change", modelValue);
|
|
176299
176252
|
}
|
|
176300
176253
|
}; // 手机号输入change
|
|
176301
176254
|
|
|
@@ -176334,8 +176287,8 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176334
176287
|
}));
|
|
176335
176288
|
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=script&lang=js
|
|
176336
176289
|
|
|
176337
|
-
// EXTERNAL MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=style&index=0&id=
|
|
176338
|
-
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");
|
|
176339
176292
|
|
|
176340
176293
|
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue
|
|
176341
176294
|
|
|
@@ -176345,7 +176298,7 @@ var BlPhoneInputvue_type_style_index_0_id_839313e2_lang_less_scoped_true = __web
|
|
|
176345
176298
|
|
|
176346
176299
|
|
|
176347
176300
|
|
|
176348
|
-
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"]])
|
|
176349
176302
|
|
|
176350
176303
|
/* harmony default export */ var BlPhoneInput = (BlPhoneInput_exports_);
|
|
176351
176304
|
// CONCATENATED MODULE: ./src/components/components.js
|