ntl-ui

This is ntl-ui, a set of ui libraries for internationalization. For Vue 2.x. (But Now there is only one component: national-input)
306
Install
npm install ntl-ui
Latest Version:0.1.34
Vue:2
License:MIT
Last Updated:Feb 23, 2023
Links: npm
Maintainer: coderxh

international ui

This is ntl-ui, a set of ui libraries for internationalization. For Vue 2.x. (But Now there is only one component: national-input)

How to install

npm install ntl-ui -S

Quick Start

import Vue from 'vue'
import Ntl from 'ntl-ui'

Vue.use(Ntl)

// or
import {
  NtlInput,
  // ...
} from 'ntl-ui'

Vue.component(NtlInput.name, NtlInput)

Explain

  <itl-input v-model="phoneValue" />
  
  // itl-input main options:
  
  props: {
    value: { // International number
      default() {
        return ''
      }
    },
    options: {
      default() {
        return {
          iso: '', // National iso code
          hoverStatus: true, // Whether to display specific information when opening the floating flag
          focusStatus: true, // Whether to turn on focus display of head text
          placeholder: 'Enter Number', // Input box placeholder
          errorSlot: false, // Whether to enable the placeholder of error prompt
          errorMsg: 'Please input validate PhoneNumber!', // Verification failure error message
          validate: true // Enable verification
        }
      }
    },
  },
  methods: {
    PhoneNumber // Receive a number and return the corresponding international information, specific documents:https://www.npmjs.com/package/libphonenumber-js#min-vs-max-vs-mobile-vs-core
    isValidPhoneNumber:// Check the number
    ...
  }
  

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released Vue License
0.1.34 ^2.6.14 MIT
0.1.33 ^2.6.14 MIT
0.1.32 ^2.6.14 MIT
0.1.31 ^2.6.14 MIT
0.1.21 ^2.6.14 MIT