chore: align Vue file conventions (#137)

- document Vue file authoring conventions
- rename runtime/example component files to kebab-case
- update imports and docs references
This commit is contained in:
Yunfei He
2026-06-05 08:28:59 +08:00
committed by GitHub
parent 5d071d44ab
commit 7f3b0ca40e
34 changed files with 40 additions and 40 deletions
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { shallowRef } from "vue";
import { Box, Text, useInput } from "@vue-tui/runtime";
import Counter from "./Counter.vue";
import Clock from "./Clock.vue";
import Counter from "./counter.vue";
import Clock from "./clock.vue";
const showClock = shallowRef(true);
@@ -15,7 +15,7 @@ useInput((input) => {
<template>
<Box backgroundColor="blue" borderStyle="round" width="20">
<Text bold color="cyan">vue-tui basic (template)</Text>
<Text dimColor>Try editing Counter.vue or App.vue</Text>
<Text dimColor>Try editing counter.vue or app.vue</Text>
<Text dimColor>Press c=toggle clock, q=quit</Text>
<Text> </Text>
<Counter />
+1 -1
View File
@@ -1,4 +1,4 @@
import { createApp } from "@vue-tui/runtime";
import App from "./App.vue";
import App from "./app.vue";
createApp(App).mount();