18 lines
494 B
Vue
Raw Normal View History

2022-08-01 14:23:29 +08:00
<script setup lang="ts">
import { ref } from 'vue';
import 'vue-loading-overlay/dist/vue-loading.css';
2022-08-01 17:12:37 +08:00
const props = defineProps<{ APP: any }>()
2022-08-01 14:23:29 +08:00
const input = ref('')
2022-08-01 17:12:37 +08:00
function Send(content: string) {
window["eventBus"].emit("SendContent", content);
props.APP.PopupVisible.value = false;
}
2022-08-01 14:23:29 +08:00
</script>
<template>
2022-08-01 17:12:37 +08:00
<el-input v-model="input" placeholder="Please input Label" />
<el-button type="primary" @click.native="() => { Send(input) }" size="large" round>確定
</el-button>
2022-08-01 14:23:29 +08:00
</template>