index.vue 641 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <div class="">
  3. <div
  4. class="mb-2 text-xs opacity-85"
  5. v-if="state.nodeData.modelConfig?.pluginInstanceName"
  6. >
  7. {{ state.nodeData.modelConfig.pluginInstanceName }}
  8. </div>
  9. </div>
  10. </template>
  11. <script setup lang="ts">
  12. import {
  13. computed,
  14. getCurrentInstance,
  15. inject,
  16. onMounted,
  17. reactive,
  18. ref,
  19. } from 'vue'
  20. const emit = defineEmits([])
  21. const props = defineProps({
  22. node: <any>{},
  23. })
  24. const { proxy }: any = getCurrentInstance()
  25. const state: any = reactive({
  26. nodeData: {},
  27. })
  28. onMounted(() => {
  29. state.nodeData = props.node.data.workflowData
  30. })
  31. </script>
  32. <style lang="scss" scoped></style>