1.0.0 • Published 12 months ago
vue-ip-address-input v1.0.0
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
1.0.0
12 months ago