mirror of
				https://github.com/potato47/ccc-devtools.git
				synced 2025-10-30 19:05:48 +00:00 
			
		
		
		
	test
This commit is contained in:
		
							
								
								
									
										1
									
								
								components.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								components.d.ts
									
									
									
									
										vendored
									
									
								
							| @@ -10,6 +10,7 @@ declare module '@vue/runtime-core' { | |||||||
|     CCComponent: typeof import('./src/components/CCComponent.vue')['default'] |     CCComponent: typeof import('./src/components/CCComponent.vue')['default'] | ||||||
|     CCNode: typeof import('./src/components/CCNode.vue')['default'] |     CCNode: typeof import('./src/components/CCNode.vue')['default'] | ||||||
|     ElButton: typeof import('element-plus/es')['ElButton'] |     ElButton: typeof import('element-plus/es')['ElButton'] | ||||||
|  |     ElCard: typeof import('element-plus/es')['ElCard'] | ||||||
|     ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] |     ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] | ||||||
|     ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] |     ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] | ||||||
|     ElInput: typeof import('element-plus/es')['ElInput'] |     ElInput: typeof import('element-plus/es')['ElInput'] | ||||||
|   | |||||||
| @@ -18,10 +18,11 @@ | |||||||
|         <link rel="stylesheet" type="text/css" href="./index.css" /> |         <link rel="stylesheet" type="text/css" href="./index.css" /> | ||||||
|     </head> |     </head> | ||||||
|     <body> |     <body> | ||||||
|         <%- include('./toolbar', {config: config}) %> |         <%- include(cocosToolBar, {config: config}) %> | ||||||
|         <div id="content" class="content" style="flex-direction: row;"> |         <div style="display: flex;flex: auto;align-items: center;"> | ||||||
|             <% include ./dist/index.html %> |             <%- include ./dist/index.html %> | ||||||
|             <div class="contentWrap" style="flex: 1;"> |             <div id="content" class="content"> | ||||||
|  |                 <div class="contentWrap"> | ||||||
|                     <div id="GameDiv" class="wrapper"> |                     <div id="GameDiv" class="wrapper"> | ||||||
|                         <div id="Cocos3dGameContainer"> |                         <div id="Cocos3dGameContainer"> | ||||||
|                             <canvas id="GameCanvas"></canvas> |                             <canvas id="GameCanvas"></canvas> | ||||||
| @@ -39,9 +40,10 @@ | |||||||
|                     </div> |                     </div> | ||||||
|                 </div> |                 </div> | ||||||
|                 <p class="footer"> |                 <p class="footer"> | ||||||
|  |                     Created with <a href="https://www.cocos.com/products" target="_blank" title="Cocos Creator">Cocos Creator</a> | ||||||
|                 </p> |                 </p> | ||||||
|             </div> |             </div> | ||||||
|  |         </div> | ||||||
|         <%- include(cocosTemplate, {}) %> |         <%- include(cocosTemplate, {}) %> | ||||||
|     </body> |     </body> | ||||||
| </html> | </html> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -12,7 +12,11 @@ let showTree = ref(false); | |||||||
|     </vue-final-modal> |     </vue-final-modal> | ||||||
|     <el-button size="small" @click="showTree = !showTree">节点树</el-button> |     <el-button size="small" @click="showTree = !showTree">节点树</el-button> | ||||||
|   </div> --> |   </div> --> | ||||||
|   <TreePanel :show="true" style="border: 2px solid blue;"></TreePanel> |   <!-- <div style="width: 100%;border: 2px solid blue;"> --> | ||||||
|  |   <el-card :body-style="{ padding: 0 }" style="margin: 10px;"> | ||||||
|  |     <TreePanel :show="true"></TreePanel> | ||||||
|  |   </el-card> | ||||||
|  |   <!-- </div> --> | ||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <style scoped> | <style scoped> | ||||||
|   | |||||||
| @@ -4,6 +4,7 @@ | |||||||
|     class="modal-drag"> |     class="modal-drag"> | ||||||
|     节点树 |     节点树 | ||||||
|   </div> --> |   </div> --> | ||||||
|  |   <div style="width: 100%;" :style="{ height: treeViewHeight }"> | ||||||
|     <el-tree-v2 ref="treeView" :props="defaultProps" empty-text="正在加载场景" :highlight-current="true" |     <el-tree-v2 ref="treeView" :props="defaultProps" empty-text="正在加载场景" :highlight-current="true" | ||||||
|       :expand-on-click-node="false" :default-expanded-keys="expandedKeys" @current-change="handleCurrentNodeChange" |       :expand-on-click-node="false" :default-expanded-keys="expandedKeys" @current-change="handleCurrentNodeChange" | ||||||
|       @node-expand="handleNodeExpand" @node-collapse="handleNodeCollapse" :height="treeViewHeight"> |       @node-expand="handleNodeExpand" @node-collapse="handleNodeCollapse" :height="treeViewHeight"> | ||||||
| @@ -11,7 +12,8 @@ | |||||||
|         <span :class="{ 'node-hide': !node.data.active }">{{ node.label }}</span> |         <span :class="{ 'node-hide': !node.data.active }">{{ node.label }}</span> | ||||||
|       </template> |       </template> | ||||||
|     </el-tree-v2> |     </el-tree-v2> | ||||||
|   <div style="width: 100%;border-top: 2px solid #1d1e21;overflow: auto;" :style="{ height: treeViewHeight }"> |   </div> | ||||||
|  |   <div style="width: 100%;border-top: 2px solid #414243;" :style="{ height: treeViewHeight }"> | ||||||
|     <template v-if="updateKey !== 0 && Utils.checkNodeValid(currentNode)"> |     <template v-if="updateKey !== 0 && Utils.checkNodeValid(currentNode)"> | ||||||
|       <el-scrollbar> |       <el-scrollbar> | ||||||
|         <CCNode :cc-node="currentNode" :update-key="updateKey"></CCNode> |         <CCNode :cc-node="currentNode" :update-key="updateKey"></CCNode> | ||||||
| @@ -58,7 +60,7 @@ const defaultProps = { | |||||||
|   children: 'children', |   children: 'children', | ||||||
| }; | }; | ||||||
|  |  | ||||||
| const treeViewHeight = window.innerHeight * 0.4; | const treeViewHeight = (window.innerHeight - 120) / 2; | ||||||
| const treeView = ref(null); | const treeView = ref(null); | ||||||
|  |  | ||||||
| onMounted(() => { | onMounted(() => { | ||||||
|   | |||||||
| @@ -17,8 +17,7 @@ export default defineConfig({ | |||||||
|   ], |   ], | ||||||
|   base: '/dist/', |   base: '/dist/', | ||||||
|   build: { |   build: { | ||||||
|     outDir: '/Users/next/projects/cocos/test360/preview-template/dist', |     outDir: './release/preview-template/dist', | ||||||
|     // outDir: './release/preview-template/dist', |  | ||||||
|     emptyOutDir: true |     emptyOutDir: true | ||||||
|   } |   } | ||||||
| }) | }) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user