diff --git a/package.json b/package.json index 54d61b3..ccdde02 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ }, "dependencies": { "@tailwindcss/postcss": "^4.3.3", + "echarts": "^6.1.0", "element-plus": "^2.14.4", "pinia": "^4.0.2", "postcss": "^8.5.26", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef43d4f..c6de514 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@tailwindcss/postcss': specifier: ^4.3.3 version: 4.3.3 + echarts: + specifier: ^6.1.0 + version: 6.1.0 element-plus: specifier: ^2.14.4 version: 2.14.4(vue@3.5.41(typescript@6.0.3)) @@ -1076,6 +1079,9 @@ packages: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} + echarts@6.1.0: + resolution: {integrity: sha512-q0yaFPggC9FUdsWH4blavRWFmxdrIodbkoKNAjJudAI6CA9gNPxHtV2RcZNEepZVlk4yvBYkOkbk6HIVpIyHZA==} + electron-to-chromium@1.5.406: resolution: {integrity: sha512-hWH5ORBi3d0IipnMh7BN5GDTaAmrSSSWmznwt2zltdiRNEWoEQyTwF0FFSBxzHO7hLSRT6loQu3IQGV0wg/Tvg==} @@ -1823,6 +1829,9 @@ packages: peerDependencies: typescript: '>=4.8.4' + tslib@2.3.0: + resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==} + type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -2101,6 +2110,9 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} + zrender@6.1.0: + resolution: {integrity: sha512-oEGMDB6pOP2S6OwRR4PdVv610zrjnA3Bh+JnSG12fYJlBKjtNAoEb5fSUoCOOINlH96I2fU38/A2UpRKs67xYQ==} + snapshots: '@alloc/quick-lru@5.2.0': {} @@ -3051,6 +3063,11 @@ snapshots: detect-libc@2.1.2: {} + echarts@6.1.0: + dependencies: + tslib: 2.3.0 + zrender: 6.1.0 + electron-to-chromium@1.5.406: {} element-plus@2.14.4(vue@3.5.41(typescript@6.0.3)): @@ -3753,6 +3770,8 @@ snapshots: dependencies: typescript: 6.0.3 + tslib@2.3.0: {} + type-check@0.4.0: dependencies: prelude-ls: 1.2.1 @@ -4044,3 +4063,7 @@ snapshots: yaml@2.9.0: {} yocto-queue@0.1.0: {} + + zrender@6.1.0: + dependencies: + tslib: 2.3.0 diff --git a/src/editor/panels/material/components/MaterialItem.vue b/src/editor/panels/material/components/MaterialItem.vue index af58bb4..f0476c2 100644 --- a/src/editor/panels/material/components/MaterialItem.vue +++ b/src/editor/panels/material/components/MaterialItem.vue @@ -18,7 +18,9 @@ function onStart(event: DragEvent) { @dragstart="onStart" >
{{ props.material.name }}
-
+
+ +
diff --git a/src/editor/panels/property/components/FormCreate.vue b/src/editor/panels/property/components/FormCreate.vue index 6f52c30..7dff75b 100644 --- a/src/editor/panels/property/components/FormCreate.vue +++ b/src/editor/panels/property/components/FormCreate.vue @@ -1,6 +1,6 @@ @@ -21,6 +23,7 @@ const componentMap: Record = { { + return getMaterialSetters(selectedNode.value?.type || '') ?? [] +}) + +// 属性分组默认全部展开 +const activeNames = ref(['layout', 'component']) // 布局属性 const layoutSetters = [ @@ -40,11 +45,11 @@ const layoutSetters = [