bl-common-vue3 3.6.32-beta1 → 3.6.32-beta3
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 +181 -82
- package/lib/vue3common.umd.js +181 -82
- package/lib/vue3common.umd.min.js +8 -8
- package/package.json +1 -1
package/lib/vue3common.common.js
CHANGED
|
@@ -8706,17 +8706,6 @@ module.exports = function (argument) {
|
|
|
8706
8706
|
};
|
|
8707
8707
|
|
|
8708
8708
|
|
|
8709
|
-
/***/ }),
|
|
8710
|
-
|
|
8711
|
-
/***/ "0e0a":
|
|
8712
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8713
|
-
|
|
8714
|
-
"use strict";
|
|
8715
|
-
/* 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_a585dfdc_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("251e");
|
|
8716
|
-
/* 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_a585dfdc_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_a585dfdc_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
8717
|
-
/* unused harmony reexport * */
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
8709
|
/***/ }),
|
|
8721
8710
|
|
|
8722
8711
|
/***/ "0e59":
|
|
@@ -43358,6 +43347,17 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
43358
43347
|
} : [].forEach;
|
|
43359
43348
|
|
|
43360
43349
|
|
|
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":
|
|
@@ -61008,22 +61008,6 @@ function toComment(sourceMap) {
|
|
|
61008
61008
|
|
|
61009
61009
|
/***/ }),
|
|
61010
61010
|
|
|
61011
|
-
/***/ "251e":
|
|
61012
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
61013
|
-
|
|
61014
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
61015
|
-
|
|
61016
|
-
// load the styles
|
|
61017
|
-
var content = __webpack_require__("b26b");
|
|
61018
|
-
if(content.__esModule) content = content.default;
|
|
61019
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
61020
|
-
if(content.locals) module.exports = content.locals;
|
|
61021
|
-
// add the styles to the DOM
|
|
61022
|
-
var add = __webpack_require__("499e").default
|
|
61023
|
-
var update = add("43c2e9c5", content, true, {"sourceMap":false,"shadowMode":false});
|
|
61024
|
-
|
|
61025
|
-
/***/ }),
|
|
61026
|
-
|
|
61027
61011
|
/***/ "2532":
|
|
61028
61012
|
/***/ (function(module, exports, __webpack_require__) {
|
|
61029
61013
|
|
|
@@ -91430,6 +91414,22 @@ function isRawValue(value) {
|
|
|
91430
91414
|
|
|
91431
91415
|
/***/ }),
|
|
91432
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
91433
|
/***/ "44ad":
|
|
91434
91434
|
/***/ (function(module, exports, __webpack_require__) {
|
|
91435
91435
|
|
|
@@ -115294,6 +115294,20 @@ exports.push([module.i, ".primary-color-text[data-v-6a425c1a]{color:#2681f3}.des
|
|
|
115294
115294
|
module.exports = exports;
|
|
115295
115295
|
|
|
115296
115296
|
|
|
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
|
+
|
|
115297
115311
|
/***/ }),
|
|
115298
115312
|
|
|
115299
115313
|
/***/ "9e31":
|
|
@@ -122710,20 +122724,6 @@ icons_DeleteOutlined_DeleteOutlined.inheritAttrs = false;
|
|
|
122710
122724
|
/* unused harmony reexport * */
|
|
122711
122725
|
|
|
122712
122726
|
|
|
122713
|
-
/***/ }),
|
|
122714
|
-
|
|
122715
|
-
/***/ "b26b":
|
|
122716
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
122717
|
-
|
|
122718
|
-
// Imports
|
|
122719
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
122720
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
122721
|
-
// Module
|
|
122722
|
-
exports.push([module.i, ".primary-color-text[data-v-a585dfdc]{color:#2681f3}.phone-country-input[data-v-a585dfdc] .ant-input-group-addon{padding:0}.phone-country-input .disabled[data-v-a585dfdc]{color:rgba(0,0,0,.25);cursor:not-allowed}", ""]);
|
|
122723
|
-
// Exports
|
|
122724
|
-
module.exports = exports;
|
|
122725
|
-
|
|
122726
|
-
|
|
122727
122727
|
/***/ }),
|
|
122728
122728
|
|
|
122729
122729
|
/***/ "b337":
|
|
@@ -175944,38 +175944,66 @@ 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=839313e2&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_839313e2_scoped_true_withScopeId = function _withScopeId(n) {
|
|
175951
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-839313e2"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n;
|
|
175952
175952
|
};
|
|
175953
175953
|
|
|
175954
|
-
var
|
|
175954
|
+
var BlPhoneInputvue_type_template_id_839313e2_scoped_true_hoisted_1 = {
|
|
175955
175955
|
class: "phone-country-input"
|
|
175956
175956
|
};
|
|
175957
|
-
var
|
|
175957
|
+
var BlPhoneInputvue_type_template_id_839313e2_scoped_true_hoisted_2 = {
|
|
175958
|
+
key: 0
|
|
175959
|
+
};
|
|
175960
|
+
var BlPhoneInputvue_type_template_id_839313e2_scoped_true_hoisted_3 = {
|
|
175958
175961
|
style: {
|
|
175959
175962
|
"padding": "0 10px"
|
|
175960
175963
|
}
|
|
175961
175964
|
};
|
|
175962
|
-
var
|
|
175965
|
+
var BlPhoneInputvue_type_template_id_839313e2_scoped_true_hoisted_4 = {
|
|
175963
175966
|
key: 0
|
|
175964
175967
|
};
|
|
175965
|
-
var
|
|
175968
|
+
var BlPhoneInputvue_type_template_id_839313e2_scoped_true_hoisted_5 = {
|
|
175966
175969
|
key: 0
|
|
175967
175970
|
};
|
|
175968
|
-
function
|
|
175971
|
+
function BlPhoneInputvue_type_template_id_839313e2_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
175969
175972
|
var _component_a_select_option = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-select-option");
|
|
175970
175973
|
|
|
175971
175974
|
var _component_a_select = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-select");
|
|
175972
175975
|
|
|
175973
175976
|
var _component_a_input = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-input");
|
|
175974
175977
|
|
|
175975
|
-
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_839313e2_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
|
+
key: 0,
|
|
175980
|
+
value: _ctx.formState.phone_country,
|
|
175981
|
+
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
175982
|
+
return _ctx.formState.phone_country = $event;
|
|
175983
|
+
}),
|
|
175984
|
+
bordered: _ctx.phoneCountryProps.bordered,
|
|
175985
|
+
disabled: _ctx.phoneCountryProps.disabled,
|
|
175986
|
+
onChange: _ctx.phoneCountryChange
|
|
175987
|
+
}, {
|
|
175988
|
+
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
175989
|
+
return [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.phoneCountryList, function (item) {
|
|
175990
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_select_option, {
|
|
175991
|
+
value: item.nation_code,
|
|
175992
|
+
key: item.id
|
|
175993
|
+
}, {
|
|
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", BlPhoneInputvue_type_template_id_839313e2_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
|
+
}),
|
|
175997
|
+
_: 2
|
|
175998
|
+
}, 1032, ["value"]);
|
|
175999
|
+
}), 128))];
|
|
176000
|
+
}),
|
|
176001
|
+
_: 1
|
|
176002
|
+
}, 8, ["value", "bordered", "disabled", "onChange"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_input, {
|
|
176003
|
+
key: 1,
|
|
175976
176004
|
ref: "phoneNumberRef",
|
|
175977
176005
|
value: _ctx.formState.phone,
|
|
175978
|
-
"onUpdate:value": _cache[
|
|
176006
|
+
"onUpdate:value": _cache[2] || (_cache[2] = function ($event) {
|
|
175979
176007
|
return _ctx.formState.phone = $event;
|
|
175980
176008
|
}),
|
|
175981
176009
|
placeholder: _ctx.phoneNumberProps.placeholder,
|
|
@@ -175995,10 +176023,10 @@ function BlPhoneInputvue_type_template_id_a585dfdc_scoped_true_render(_ctx, _cac
|
|
|
175995
176023
|
}, [_ctx.showPhoneCountry ? {
|
|
175996
176024
|
name: "addonBefore",
|
|
175997
176025
|
fn: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
175998
|
-
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_839313e2_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, {
|
|
175999
176027
|
key: 0,
|
|
176000
176028
|
value: _ctx.formState.phone_country,
|
|
176001
|
-
"onUpdate:value": _cache[
|
|
176029
|
+
"onUpdate:value": _cache[1] || (_cache[1] = function ($event) {
|
|
176002
176030
|
return _ctx.formState.phone_country = $event;
|
|
176003
176031
|
}),
|
|
176004
176032
|
bordered: false,
|
|
@@ -176012,7 +176040,7 @@ function BlPhoneInputvue_type_template_id_a585dfdc_scoped_true_render(_ctx, _cac
|
|
|
176012
176040
|
key: item.id
|
|
176013
176041
|
}, {
|
|
176014
176042
|
default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(function () {
|
|
176015
|
-
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_839313e2_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)];
|
|
176016
176044
|
}),
|
|
176017
176045
|
_: 2
|
|
176018
176046
|
}, 1032, ["value"]);
|
|
@@ -176024,12 +176052,12 @@ function BlPhoneInputvue_type_template_id_a585dfdc_scoped_true_render(_ctx, _cac
|
|
|
176024
176052
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])([{
|
|
176025
176053
|
disabled: _ctx.phoneCountryProps.disabled
|
|
176026
176054
|
}])
|
|
176027
|
-
}, [_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_839313e2_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))])];
|
|
176028
176056
|
}),
|
|
176029
176057
|
key: "0"
|
|
176030
|
-
} : undefined]), 1032, ["value", "placeholder", "disabled", "size", "allowClear", "bordered", "onChange"])]);
|
|
176058
|
+
} : undefined]), 1032, ["value", "placeholder", "disabled", "size", "allowClear", "bordered", "onChange"]))]);
|
|
176031
176059
|
}
|
|
176032
|
-
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=template&id=
|
|
176060
|
+
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=template&id=839313e2&scoped=true
|
|
176033
176061
|
|
|
176034
176062
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
176035
176063
|
var es_string_trim = __webpack_require__("498a");
|
|
@@ -176056,9 +176084,9 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176056
176084
|
"a-select-option": es_select["a" /* SelectOption */]
|
|
176057
176085
|
},
|
|
176058
176086
|
props: {
|
|
176059
|
-
// 输入值
|
|
176087
|
+
// 输入值 type = phoneCountry 为String type = phone 为Object
|
|
176060
176088
|
value: {
|
|
176061
|
-
type: Object,
|
|
176089
|
+
type: [Object, String],
|
|
176062
176090
|
default: function _default() {
|
|
176063
176091
|
return {
|
|
176064
176092
|
// 区号
|
|
@@ -176068,6 +176096,11 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176068
176096
|
};
|
|
176069
176097
|
}
|
|
176070
176098
|
},
|
|
176099
|
+
// 类型 phone/phoneCountry
|
|
176100
|
+
type: {
|
|
176101
|
+
type: String,
|
|
176102
|
+
default: "phone"
|
|
176103
|
+
},
|
|
176071
176104
|
// 区号字段名 默认 phone_country
|
|
176072
176105
|
phoneCountryName: {
|
|
176073
176106
|
type: String,
|
|
@@ -176087,7 +176120,8 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176087
176120
|
disabled: false,
|
|
176088
176121
|
size: "default",
|
|
176089
176122
|
allowClear: true,
|
|
176090
|
-
bordered: true
|
|
176123
|
+
bordered: true,
|
|
176124
|
+
rulesMessage: "请输入正确的手机号"
|
|
176091
176125
|
};
|
|
176092
176126
|
}
|
|
176093
176127
|
},
|
|
@@ -176096,7 +176130,8 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176096
176130
|
type: Object,
|
|
176097
176131
|
default: function _default() {
|
|
176098
176132
|
return {
|
|
176099
|
-
disabled: false
|
|
176133
|
+
disabled: false,
|
|
176134
|
+
bordered: false
|
|
176100
176135
|
};
|
|
176101
176136
|
}
|
|
176102
176137
|
},
|
|
@@ -176119,10 +176154,15 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176119
176154
|
// 区号列表
|
|
176120
176155
|
phoneCountryList: []
|
|
176121
176156
|
});
|
|
176122
|
-
var formState = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])({
|
|
176123
|
-
|
|
176124
|
-
|
|
176125
|
-
|
|
176157
|
+
var formState = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])({});
|
|
176158
|
+
|
|
176159
|
+
if (props.type === "phoneCountry") {
|
|
176160
|
+
formState.value.phone_country = props.value || undefined;
|
|
176161
|
+
} else {
|
|
176162
|
+
formState.value.phone = props.value || "";
|
|
176163
|
+
formState.value.phone_country = props.value[props.phoneCountryName] || undefined;
|
|
176164
|
+
} // 获取区号信息
|
|
176165
|
+
|
|
176126
176166
|
|
|
176127
176167
|
var getPhoneCountryInfo = function getPhoneCountryInfo() {
|
|
176128
176168
|
return state.phoneCountryList.find(function (v) {
|
|
@@ -176134,12 +176174,16 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176134
176174
|
var getPhoneValidateType = function getPhoneValidateType() {
|
|
176135
176175
|
var _getPhoneCountryInfo;
|
|
176136
176176
|
|
|
176177
|
+
if (props.type === "phoneCountry") {
|
|
176178
|
+
return "success";
|
|
176179
|
+
}
|
|
176180
|
+
|
|
176137
176181
|
var phoneMatchRule = ((_getPhoneCountryInfo = getPhoneCountryInfo()) === null || _getPhoneCountryInfo === void 0 ? void 0 : _getPhoneCountryInfo.phone_match_rule) || "";
|
|
176138
176182
|
var phoneReg = new RegExp(phoneMatchRule);
|
|
176139
176183
|
|
|
176140
176184
|
if (!formState.value.phone.trim()) {
|
|
176141
176185
|
return "empty";
|
|
176142
|
-
} else if (!phoneReg.test(formState.value.phone)) {
|
|
176186
|
+
} else if (phoneMatchRule && !phoneReg.test(formState.value.phone)) {
|
|
176143
176187
|
return "error";
|
|
176144
176188
|
} else {
|
|
176145
176189
|
return "success";
|
|
@@ -176150,7 +176194,15 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176150
176194
|
var emitPhoneMathRule = function emitPhoneMathRule() {
|
|
176151
176195
|
var _getPhoneCountryInfo2;
|
|
176152
176196
|
|
|
176153
|
-
((_getPhoneCountryInfo2 = getPhoneCountryInfo())
|
|
176197
|
+
if ((_getPhoneCountryInfo2 = getPhoneCountryInfo()) !== null && _getPhoneCountryInfo2 !== void 0 && _getPhoneCountryInfo2.phone_match_rule) {
|
|
176198
|
+
var _getPhoneCountryInfo3, _props$phoneNumberPro;
|
|
176199
|
+
|
|
176200
|
+
var rules = {
|
|
176201
|
+
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) || '请输入正确的手机号'
|
|
176203
|
+
};
|
|
176204
|
+
emit("phoneMatchRule", rules);
|
|
176205
|
+
}
|
|
176154
176206
|
}; // 获取区号列表
|
|
176155
176207
|
|
|
176156
176208
|
|
|
@@ -176168,32 +176220,79 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176168
176220
|
if (!formState.value.phone_country && state.phoneCountryList.length > 0) {
|
|
176169
176221
|
formState.value.phone_country = state.phoneCountryList[0].nation_code;
|
|
176170
176222
|
}
|
|
176171
|
-
|
|
176172
|
-
handleChange("phoneCountry");
|
|
176173
176223
|
},
|
|
176174
176224
|
fail: function fail() {}
|
|
176175
176225
|
});
|
|
176176
176226
|
};
|
|
176177
176227
|
|
|
176178
|
-
|
|
176228
|
+
if (props.type === "phoneCountry") {
|
|
176229
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
176230
|
+
return props.value;
|
|
176231
|
+
}, function (val) {
|
|
176232
|
+
formState.value.phone_country = val || undefined;
|
|
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;
|
|
176246
|
+
|
|
176247
|
+
if (!formState.value.phone_country) {
|
|
176248
|
+
if (!state.phoneCountryList.length) {
|
|
176249
|
+
getPhoneCountryList();
|
|
176250
|
+
} else {
|
|
176251
|
+
var _state$phoneCountryLi;
|
|
176252
|
+
|
|
176253
|
+
formState.value.phone_country = (_state$phoneCountryLi = state.phoneCountryList[0]) === null || _state$phoneCountryLi === void 0 ? void 0 : _state$phoneCountryLi.nation_code;
|
|
176254
|
+
}
|
|
176255
|
+
}
|
|
176256
|
+
}, {
|
|
176257
|
+
deep: true,
|
|
176258
|
+
immediate: true
|
|
176259
|
+
});
|
|
176260
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
176261
|
+
return props.value[props.phoneName];
|
|
176262
|
+
}, function (val) {
|
|
176263
|
+
formState.value.phone = val || "";
|
|
176264
|
+
}, {
|
|
176265
|
+
deep: true,
|
|
176266
|
+
immediate: true
|
|
176267
|
+
});
|
|
176268
|
+
} // 获取手机号校验结果
|
|
176269
|
+
|
|
176179
176270
|
|
|
176180
176271
|
var getPhoneValidate = function getPhoneValidate() {
|
|
176181
176272
|
return getPhoneValidateType() === "success" ? true : false;
|
|
176182
176273
|
};
|
|
176183
176274
|
|
|
176184
176275
|
var handleChange = function handleChange() {
|
|
176185
|
-
var _objectSpread2;
|
|
176186
|
-
|
|
176187
176276
|
var changeField = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
176188
176277
|
|
|
176189
|
-
|
|
176278
|
+
if (props.type === "phoneCountry") {
|
|
176279
|
+
emit("update:value", formState.value.phone_country);
|
|
176280
|
+
emit("change", {
|
|
176281
|
+
phoneCountry: formState.value.phone_country,
|
|
176282
|
+
phoneCountryInfo: getPhoneCountryInfo()
|
|
176283
|
+
});
|
|
176284
|
+
} else {
|
|
176285
|
+
var _objectSpread2;
|
|
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));
|
|
176190
176288
|
|
|
176191
|
-
|
|
176192
|
-
|
|
176193
|
-
|
|
176194
|
-
|
|
176195
|
-
|
|
176196
|
-
|
|
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
|
+
}
|
|
176197
176296
|
|
|
176198
176297
|
if (changeField === "phoneCountry") {
|
|
176199
176298
|
emitPhoneMathRule();
|
|
@@ -176235,8 +176334,8 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176235
176334
|
}));
|
|
176236
176335
|
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=script&lang=js
|
|
176237
176336
|
|
|
176238
|
-
// EXTERNAL MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=style&index=0&id=
|
|
176239
|
-
var
|
|
176337
|
+
// EXTERNAL MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=style&index=0&id=839313e2&lang=less&scoped=true
|
|
176338
|
+
var BlPhoneInputvue_type_style_index_0_id_839313e2_lang_less_scoped_true = __webpack_require__("17e4");
|
|
176240
176339
|
|
|
176241
176340
|
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue
|
|
176242
176341
|
|
|
@@ -176246,7 +176345,7 @@ var BlPhoneInputvue_type_style_index_0_id_a585dfdc_lang_less_scoped_true = __web
|
|
|
176246
176345
|
|
|
176247
176346
|
|
|
176248
176347
|
|
|
176249
|
-
const BlPhoneInput_exports_ = /*#__PURE__*/exportHelper_default()(BlPhoneInputvue_type_script_lang_js, [['render',
|
|
176348
|
+
const BlPhoneInput_exports_ = /*#__PURE__*/exportHelper_default()(BlPhoneInputvue_type_script_lang_js, [['render',BlPhoneInputvue_type_template_id_839313e2_scoped_true_render],['__scopeId',"data-v-839313e2"]])
|
|
176250
176349
|
|
|
176251
176350
|
/* harmony default export */ var BlPhoneInput = (BlPhoneInput_exports_);
|
|
176252
176351
|
// CONCATENATED MODULE: ./src/components/components.js
|