vue-tel-input 6.0.0-beta.4 → 6.0.0-beta.5
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.
|
@@ -430,6 +430,12 @@ var allProps = [{
|
|
|
430
430
|
type: String,
|
|
431
431
|
description: 'Native input <code>name</code> attribute',
|
|
432
432
|
inDemo: false
|
|
433
|
+
}, {
|
|
434
|
+
name: 'inputOptions.showDialCode',
|
|
435
|
+
default: false,
|
|
436
|
+
type: Boolean,
|
|
437
|
+
description: 'Show dial code in input',
|
|
438
|
+
inDemo: false
|
|
433
439
|
}, {
|
|
434
440
|
name: 'inputOptions.placeholder',
|
|
435
441
|
default: 'Enter a phone number',
|
|
@@ -5154,7 +5160,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
5154
5160
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
5155
5161
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
5156
5162
|
|
|
5157
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/vue-tel-input.vue?vue&type=template&id=
|
|
5163
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/vue-tel-input.vue?vue&type=template&id=6b666c26
|
|
5158
5164
|
|
|
5159
5165
|
|
|
5160
5166
|
var _hoisted_1 = {
|
|
@@ -5251,7 +5257,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5251
5257
|
}, ["space"]))]
|
|
5252
5258
|
}, null, 42, ["type", "autocomplete", "autofocus", "disabled", "id", "maxlength", "name", "placeholder", "readonly", "required", "tabindex", "value", "aria-describedby"]), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelDynamic"], $data.phone]]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "icon-right")], 2);
|
|
5253
5259
|
}
|
|
5254
|
-
// CONCATENATED MODULE: ./src/components/vue-tel-input.vue?vue&type=template&id=
|
|
5260
|
+
// CONCATENATED MODULE: ./src/components/vue-tel-input.vue?vue&type=template&id=6b666c26
|
|
5255
5261
|
|
|
5256
5262
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
|
5257
5263
|
var objectWithoutProperties = __webpack_require__("15fd");
|
|
@@ -8806,6 +8812,7 @@ function getDefault(key) {
|
|
|
8806
8812
|
if ((_this$inputOptions = this.inputOptions) !== null && _this$inputOptions !== void 0 && _this$inputOptions.showDialCode && parsedCountry) {
|
|
8807
8813
|
// Reset phone if the showDialCode is set
|
|
8808
8814
|
this.phone = "+".concat(parsedCountry.dialCode);
|
|
8815
|
+
this.activeCountryCode = parsedCountry.iso2 || '';
|
|
8809
8816
|
return;
|
|
8810
8817
|
} // update value, even if international mode is NOT used
|
|
8811
8818
|
|