Initial commit
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user