Initial commit

This commit is contained in:
libertyspy
2026-02-08 18:05:48 +08:00
parent 82fcedfa97
commit 3bb9178399
3 changed files with 15 additions and 64 deletions

View File

@@ -8,10 +8,11 @@
<template #renderItem="{ item }">
<a-tooltip placement="right">
<template #title>
{{ item.description }}
<p>名称: {{ item.name }}</p>
<p>说明: {{item.description}}</p>
</template>
<a-list-item @click="()=> handleSelect(item)">
{{ item.name }}
{{ substring(item.name, 25) }}
</a-list-item>
</a-tooltip>
</template>
@@ -25,6 +26,7 @@ import { defineComponent, onMounted, ref } from 'vue';
import { PlusOutlined } from '@ant-design/icons-vue';
import type { BehaviorTree } from './types';
import { findTreesByQuery } from './api';
import {substring} from '@/utils/strings'
export default defineComponent({
emits: ['select-tree'],
@@ -65,6 +67,7 @@ export default defineComponent({
});
return {
substring,
activeKey,
behaviorTrees,
behaviorTreeQuery,