Initial project

This commit is contained in:
Timi
2025-07-08 16:33:11 +08:00
parent 1a5a16be74
commit f862530142
80 changed files with 8301 additions and 129 deletions
+21
View File
@@ -0,0 +1,21 @@
<template>
<div class="root">
<h2 v-popup="`提示`">test popup</h2>
<icon name="ZIP" :scale="2" disabled />
<markdown-editor class="editor" v-model:data="data" :minRows="12" :max-rows="24" />
</div>
<popup />
</template>
<script lang="ts" setup>
import { Icon, Popup } from "timi-web";
import MarkdownEditor from "~/components/markdown-editor/index.vue";
const data = ref("");
</script>
<style lang="less" scoped>
.root {
width: 80%;
}
</style>
+10
View File
@@ -0,0 +1,10 @@
import { createApp } from "vue";
import Root from "./Root.vue";
import TimiWebUI, { axios, VPopup } from "timi-web"; // 本地开发
axios.defaults.baseURL = "http://localhost:8091";
const app = createApp(Root);
app.use(TimiWebUI);
app.directive("popup", VPopup);
app.mount("#root");
+7
View File
@@ -0,0 +1,7 @@
declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
export default component;
}
declare module "prismjs";