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
+3 -3
View File
@@ -32,20 +32,20 @@ npm install
npm run dev
```
Edit `App.vue` and watch the terminal update instantly.
Edit `app.vue` and watch the terminal update instantly.
## Example
```ts
// src/main.ts
import { createApp } from "@vue-tui/runtime";
import App from "./App.vue";
import App from "./app.vue";
createApp(App).mount();
```
```vue
<!-- src/App.vue -->
<!-- src/app.vue -->
<script setup lang="ts">
import { shallowRef } from "vue";
import { Box, Text, useInput } from "@vue-tui/runtime";