add helper

This commit is contained in:
2024-01-24 11:50:18 +08:00
parent a3d70af23c
commit 98fd6081a0
4 changed files with 66 additions and 8 deletions

21
src/mobile/Helper.vue Normal file
View File

@@ -0,0 +1,21 @@
<script lang="ts" setup>
import { insertText } from "../composables/helper"
function insert(text: string) {
insertText.value = text
}
</script>
<template>
<n-flex align="center" class="container">
<span>编程助手</span>
<n-button size="small" @click="insert(':')">:</n-button>
<n-button size="small" @click="insert('=')">=</n-button>
<n-button size="small" @click="insert('print')">print</n-button>
<n-button size="small" @click="insert('input')">input</n-button>
</n-flex>
</template>
<style scoped>
.container {
margin-bottom: 10px;
}
</style>