Initial project

This commit is contained in:
Timi
2025-07-08 16:33:11 +08:00
parent 772ac5fcc5
commit 26a60a6a7d
22 changed files with 10476 additions and 129 deletions

11
examples/Root.vue Normal file
View File

@ -0,0 +1,11 @@
<template>
<div>
<t-loading />
</div>
</template>
<script lang="ts" setup></script>
<style lang="less" scoped>
</style>

13
examples/main.ts Normal file
View File

@ -0,0 +1,13 @@
import { createApp } from "vue";
import Root from "./Root.vue";
import TimiWebUI, { axios, VPopup } from "timi-web"; // 本地开发
import "timi-web/style.css";
import "tdesign-mobile-vue/es/style/index.css";
axios.defaults.baseURL = "http://localhost:8091";
const app = createApp(Root);
app.use(TimiWebUI);
app.directive("popup", VPopup);
app.mount("#root");

5
examples/vite-env.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
export default component;
}