index.vue 905 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div class="absolute top-0 right-0 p-16px flex flex-col gap-12px">
  3. <el-tooltip content="节点" placement="left">
  4. <el-popover placement="left-start" width="360px">
  5. <NodeLibary @add-node="(val) => $emit('create:node', val)" />
  6. <template #reference>
  7. <IconButton type="primary" class="ml-12px" icon="lucide:package-plus" square />
  8. </template>
  9. </el-popover>
  10. </el-tooltip>
  11. <el-tooltip content="注释" placement="left">
  12. <IconButton
  13. icon="lucide:file-plus-corner"
  14. square
  15. @click="$emit('create:node', 'stickyNote')"
  16. />
  17. </el-tooltip>
  18. <el-tooltip content="运行" placement="left">
  19. <IconButton icon="lucide:play" icon-color="#fff" type="success" square />
  20. </el-tooltip>
  21. </div>
  22. </template>
  23. <script setup lang="ts">
  24. import { IconButton } from '@repo/ui'
  25. import NodeLibary from '@/features/nodeLibary/index.vue'
  26. </script>
  27. <style scoped></style>