Skip to content

lang1427/ip-input-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip-input-vue

A IP input component built for Vue 2.x

Demo

Install

npm install ip-input-vue

Quick Start

import vueIp from "ip-input-vue";
Vue.use(vueIp)

Props

Prop Type Default Explain
set_ip String "" 设置ip的值
set_port String "" 设置端口的值
isDisabled Boolean false 是否禁用(和只读)
need_port Boolean false 是否需要端口号

Events

EventName Explain Params
get-ip 获取IP ip
get-port 获取端口 port

Methods

MethodName Explain Params
vaildIp 验证ip是否输入完整,返回值为布尔类型 -