vue-ip-address-input
v1.0.0
Published
vue3 使用的ip地址输入框
Downloads
1
Readme
vue-ip-address-input
使用
import { createApp } from "vue";
import IpInput from "vue-ip-address-input";
const app = createApp(App);
app.use(IpInput, {});
<template>
<ip-input v-model="ipVal" @change="ipChange" />
</template>
<script setup>
const ipVal = ref("192.168.1.1");
function ipChange(v) {
console.log(v);
}
</script>
props
v-model string 192.168.1.1
event
change ( value:string )=>void