<script setup lang="ts">
import { ref } from 'vue';

const props = defineProps<{ APP: any }>()

const input = ref('')
const APP = props.APP
function Send(content: string) {
	APP.Script.OnclickOpen(true, { deviceid: content });
	APP.PopupVisible.value = false;
}
</script>

<template>
	<el-input v-model="input" placeholder="請輸入裝置碼" />
	<el-button type="primary" @click.native="() => { Send(input) }" size="large" round>確定
	</el-button>
</template>