修复子包状态

This commit is contained in:
KuroSago 2025-04-29 15:19:08 +08:00
parent f7bdc418c4
commit 58c262e8c6
7 changed files with 662 additions and 15 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "@mind-map/web", "name": "@test/mind-map",
"private": true, "private": true,
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
@ -9,6 +9,7 @@
"lint": "eslint src --ext .ts,.vue" "lint": "eslint src --ext .ts,.vue"
}, },
"dependencies": { "dependencies": {
"@mind-map/component": "workspace:*",
"pinia": "^2.1.6", "pinia": "^2.1.6",
"vue": "^3.3.4", "vue": "^3.3.4",
"vue-router": "^4.2.4" "vue-router": "^4.2.4"

View File

@ -1,13 +1,16 @@
<template> <template>
<div class="home"> <div class="home">
<h1 class="title">思维导图演示</h1>
<div class="mind-map-container">
<MindMap />
</div>
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import MindMapPlugin from '@mind-map/component'; // 使
import { MindMap } from '@mind-map/component';
onMounted(() => { onMounted(() => {
console.log('Home view mounted'); console.log('Home view mounted');

View File

@ -11,6 +11,16 @@
"dependencies": { "dependencies": {
"vue": "^3.3.4" "vue": "^3.3.4"
}, },
"main": "src/index.ts",
"module": "src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
}
},
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue": "^4.2.3",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="mind-map bg-white rounded-lg shadow-md p-4 w-full h-64"> <div class="mind-map bg-black rounded-lg shadow-md p-4 w-full h-64">
<!-- 这是一个最小化的思维导图实现只包含一个简单的div --> <!-- 这是一个最小化的思维导图实现只包含一个简单的div -->
<div class="flex items-center justify-center h-full text-gray-500"> <div class="flex items-center justify-center h-full text-gray-500">
Mind Map Component Mind Map Component

View File

@ -1,5 +1,5 @@
import { App } from 'vue'; import { App } from 'vue';
import MindMap from './components/MindMap.vue'; import MindMap from './views/index.vue';
import './styles/index.css'; import './styles/index.css';
export { MindMap }; export { MindMap };

650
web3/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,4 @@
packages: packages:
- 'packages/*' - 'packages/*'
- 'packages/mind-map/*'
- 'apps/*' - 'apps/*'