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,7 +1,7 @@
import { shallowRef, defineComponent } from "vue";
import { Box, Text, useInput } from "@vue-tui/runtime";
import Counter from "./Counter";
import Clock from "./Clock";
import Counter from "./counter";
import Clock from "./clock";
export default defineComponent(() => {
const showClock = shallowRef(true);
@@ -16,7 +16,7 @@ export default defineComponent(() => {
<Text bold color="cyan">
vue-tui basic (JSX)
</Text>
<Text dimColor>Try editing Counter.tsx or App.tsx</Text>
<Text dimColor>Try editing counter.tsx or app.tsx</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";
import App from "./app";
createApp(App).mount();