bl-common-vue3 3.6.32-beta1 → 3.6.32-beta2
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 +170 -80
- package/lib/vue3common.umd.js +170 -80
- package/lib/vue3common.umd.min.js +7 -7
- 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":
|
|
@@ -61008,22 +60997,6 @@ function toComment(sourceMap) {
|
|
|
61008
60997
|
|
|
61009
60998
|
/***/ }),
|
|
61010
60999
|
|
|
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
61000
|
/***/ "2532":
|
|
61028
61001
|
/***/ (function(module, exports, __webpack_require__) {
|
|
61029
61002
|
|
|
@@ -101763,6 +101736,20 @@ exportTypedArrayMethod('fill', function fill(value /* , start, end */) {
|
|
|
101763
101736
|
});
|
|
101764
101737
|
|
|
101765
101738
|
|
|
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
|
+
|
|
101766
101753
|
/***/ }),
|
|
101767
101754
|
|
|
101768
101755
|
/***/ "7418":
|
|
@@ -122710,20 +122697,6 @@ icons_DeleteOutlined_DeleteOutlined.inheritAttrs = false;
|
|
|
122710
122697
|
/* unused harmony reexport * */
|
|
122711
122698
|
|
|
122712
122699
|
|
|
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
122700
|
/***/ }),
|
|
122728
122701
|
|
|
122729
122702
|
/***/ "b337":
|
|
@@ -134037,6 +134010,22 @@ $({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fixed') }, {
|
|
|
134037
134010
|
});
|
|
134038
134011
|
|
|
134039
134012
|
|
|
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
|
+
|
|
134040
134029
|
/***/ }),
|
|
134041
134030
|
|
|
134042
134031
|
/***/ "c8ba":
|
|
@@ -141448,6 +141437,17 @@ module.exports = function (target, src, options) {
|
|
|
141448
141437
|
};
|
|
141449
141438
|
|
|
141450
141439
|
|
|
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
141451
|
/***/ }),
|
|
141452
141452
|
|
|
141453
141453
|
/***/ "e32c":
|
|
@@ -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=9cd67532&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_9cd67532_scoped_true_withScopeId = function _withScopeId(n) {
|
|
175951
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-9cd67532"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n;
|
|
175952
175952
|
};
|
|
175953
175953
|
|
|
175954
|
-
var
|
|
175954
|
+
var BlPhoneInputvue_type_template_id_9cd67532_scoped_true_hoisted_1 = {
|
|
175955
175955
|
class: "phone-country-input"
|
|
175956
175956
|
};
|
|
175957
|
-
var
|
|
175957
|
+
var BlPhoneInputvue_type_template_id_9cd67532_scoped_true_hoisted_2 = {
|
|
175958
|
+
key: 0
|
|
175959
|
+
};
|
|
175960
|
+
var BlPhoneInputvue_type_template_id_9cd67532_scoped_true_hoisted_3 = {
|
|
175958
175961
|
style: {
|
|
175959
175962
|
"padding": "0 10px"
|
|
175960
175963
|
}
|
|
175961
175964
|
};
|
|
175962
|
-
var
|
|
175965
|
+
var BlPhoneInputvue_type_template_id_9cd67532_scoped_true_hoisted_4 = {
|
|
175963
175966
|
key: 0
|
|
175964
175967
|
};
|
|
175965
|
-
var
|
|
175968
|
+
var BlPhoneInputvue_type_template_id_9cd67532_scoped_true_hoisted_5 = {
|
|
175966
175969
|
key: 0
|
|
175967
175970
|
};
|
|
175968
|
-
function
|
|
175971
|
+
function BlPhoneInputvue_type_template_id_9cd67532_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_9cd67532_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_9cd67532_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_9cd67532_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_9cd67532_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_9cd67532_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=9cd67532&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,
|
|
@@ -176096,7 +176129,8 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176096
176129
|
type: Object,
|
|
176097
176130
|
default: function _default() {
|
|
176098
176131
|
return {
|
|
176099
|
-
disabled: false
|
|
176132
|
+
disabled: false,
|
|
176133
|
+
bordered: false
|
|
176100
176134
|
};
|
|
176101
176135
|
}
|
|
176102
176136
|
},
|
|
@@ -176119,10 +176153,15 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176119
176153
|
// 区号列表
|
|
176120
176154
|
phoneCountryList: []
|
|
176121
176155
|
});
|
|
176122
|
-
var formState = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])({
|
|
176123
|
-
|
|
176124
|
-
|
|
176125
|
-
|
|
176156
|
+
var formState = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])({});
|
|
176157
|
+
|
|
176158
|
+
if (props.type === "phoneCountry") {
|
|
176159
|
+
formState.value.phone_country = props.value || undefined;
|
|
176160
|
+
} else {
|
|
176161
|
+
formState.value.phone = props.value || "";
|
|
176162
|
+
formState.value.phone_country = props.value[props.phoneCountryName] || undefined;
|
|
176163
|
+
} // 获取区号信息
|
|
176164
|
+
|
|
176126
176165
|
|
|
176127
176166
|
var getPhoneCountryInfo = function getPhoneCountryInfo() {
|
|
176128
176167
|
return state.phoneCountryList.find(function (v) {
|
|
@@ -176134,12 +176173,16 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176134
176173
|
var getPhoneValidateType = function getPhoneValidateType() {
|
|
176135
176174
|
var _getPhoneCountryInfo;
|
|
176136
176175
|
|
|
176176
|
+
if (props.type === "phoneCountry") {
|
|
176177
|
+
return "success";
|
|
176178
|
+
}
|
|
176179
|
+
|
|
176137
176180
|
var phoneMatchRule = ((_getPhoneCountryInfo = getPhoneCountryInfo()) === null || _getPhoneCountryInfo === void 0 ? void 0 : _getPhoneCountryInfo.phone_match_rule) || "";
|
|
176138
176181
|
var phoneReg = new RegExp(phoneMatchRule);
|
|
176139
176182
|
|
|
176140
176183
|
if (!formState.value.phone.trim()) {
|
|
176141
176184
|
return "empty";
|
|
176142
|
-
} else if (!phoneReg.test(formState.value.phone)) {
|
|
176185
|
+
} else if (phoneMatchRule && !phoneReg.test(formState.value.phone)) {
|
|
176143
176186
|
return "error";
|
|
176144
176187
|
} else {
|
|
176145
176188
|
return "success";
|
|
@@ -176168,32 +176211,79 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176168
176211
|
if (!formState.value.phone_country && state.phoneCountryList.length > 0) {
|
|
176169
176212
|
formState.value.phone_country = state.phoneCountryList[0].nation_code;
|
|
176170
176213
|
}
|
|
176171
|
-
|
|
176172
|
-
handleChange("phoneCountry");
|
|
176173
176214
|
},
|
|
176174
176215
|
fail: function fail() {}
|
|
176175
176216
|
});
|
|
176176
176217
|
};
|
|
176177
176218
|
|
|
176178
|
-
|
|
176219
|
+
if (props.type === "phoneCountry") {
|
|
176220
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
176221
|
+
return props.value;
|
|
176222
|
+
}, function (val) {
|
|
176223
|
+
formState.value.phone_country = val || undefined;
|
|
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;
|
|
176237
|
+
|
|
176238
|
+
if (!formState.value.phone_country) {
|
|
176239
|
+
if (!state.phoneCountryList.length) {
|
|
176240
|
+
getPhoneCountryList();
|
|
176241
|
+
} else {
|
|
176242
|
+
var _state$phoneCountryLi;
|
|
176243
|
+
|
|
176244
|
+
formState.value.phone_country = (_state$phoneCountryLi = state.phoneCountryList[0]) === null || _state$phoneCountryLi === void 0 ? void 0 : _state$phoneCountryLi.nation_code;
|
|
176245
|
+
}
|
|
176246
|
+
}
|
|
176247
|
+
}, {
|
|
176248
|
+
deep: true,
|
|
176249
|
+
immediate: true
|
|
176250
|
+
});
|
|
176251
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
176252
|
+
return props.value[props.phoneName];
|
|
176253
|
+
}, function (val) {
|
|
176254
|
+
formState.value.phone = val || "";
|
|
176255
|
+
}, {
|
|
176256
|
+
deep: true,
|
|
176257
|
+
immediate: true
|
|
176258
|
+
});
|
|
176259
|
+
} // 获取手机号校验结果
|
|
176260
|
+
|
|
176179
176261
|
|
|
176180
176262
|
var getPhoneValidate = function getPhoneValidate() {
|
|
176181
176263
|
return getPhoneValidateType() === "success" ? true : false;
|
|
176182
176264
|
};
|
|
176183
176265
|
|
|
176184
176266
|
var handleChange = function handleChange() {
|
|
176185
|
-
var _objectSpread2;
|
|
176186
|
-
|
|
176187
176267
|
var changeField = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
176188
176268
|
|
|
176189
|
-
|
|
176269
|
+
if (props.type === "phoneCountry") {
|
|
176270
|
+
emit("update:value", formState.value.phone_country);
|
|
176271
|
+
emit("change", {
|
|
176272
|
+
phoneCountry: formState.value.phone_country,
|
|
176273
|
+
phoneCountryInfo: getPhoneCountryInfo()
|
|
176274
|
+
});
|
|
176275
|
+
} else {
|
|
176276
|
+
var _objectSpread2;
|
|
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));
|
|
176190
176279
|
|
|
176191
|
-
|
|
176192
|
-
|
|
176193
|
-
|
|
176194
|
-
|
|
176195
|
-
|
|
176196
|
-
|
|
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
|
+
}
|
|
176197
176287
|
|
|
176198
176288
|
if (changeField === "phoneCountry") {
|
|
176199
176289
|
emitPhoneMathRule();
|
|
@@ -176235,8 +176325,8 @@ var es_string_trim = __webpack_require__("498a");
|
|
|
176235
176325
|
}));
|
|
176236
176326
|
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=script&lang=js
|
|
176237
176327
|
|
|
176238
|
-
// EXTERNAL MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=style&index=0&id=
|
|
176239
|
-
var
|
|
176328
|
+
// EXTERNAL MODULE: ./src/components/BlPhoneInput/index.vue?vue&type=style&index=0&id=9cd67532&lang=less&scoped=true
|
|
176329
|
+
var BlPhoneInputvue_type_style_index_0_id_9cd67532_lang_less_scoped_true = __webpack_require__("e2d7");
|
|
176240
176330
|
|
|
176241
176331
|
// CONCATENATED MODULE: ./src/components/BlPhoneInput/index.vue
|
|
176242
176332
|
|
|
@@ -176246,7 +176336,7 @@ var BlPhoneInputvue_type_style_index_0_id_a585dfdc_lang_less_scoped_true = __web
|
|
|
176246
176336
|
|
|
176247
176337
|
|
|
176248
176338
|
|
|
176249
|
-
const BlPhoneInput_exports_ = /*#__PURE__*/exportHelper_default()(BlPhoneInputvue_type_script_lang_js, [['render',
|
|
176339
|
+
const BlPhoneInput_exports_ = /*#__PURE__*/exportHelper_default()(BlPhoneInputvue_type_script_lang_js, [['render',BlPhoneInputvue_type_template_id_9cd67532_scoped_true_render],['__scopeId',"data-v-9cd67532"]])
|
|
176250
176340
|
|
|
176251
176341
|
/* harmony default export */ var BlPhoneInput = (BlPhoneInput_exports_);
|
|
176252
176342
|
// CONCATENATED MODULE: ./src/components/components.js
|