<template>
	<div class="node-know" v-if="node?.data && !isEmpty(node.data.options.knowIds) && !focus">
		<list v-model="node.data.options.knowIds" />
	</div>
</template>

<script lang="ts" setup name="node-know">
import type { FlowNode } from "/$/flow/types";
import { type PropType } from "vue";
import { isEmpty } from "lodash-es";
import List from "./form/list.vue";

const props = defineProps({
	node: {
		type: Object as PropType<FlowNode>,
		default: () => ({})
	},
	// 节点是否聚焦
	focus: {
		type: Boolean,
		default: false
	}
});
</script>

<style lang="scss" scoped>
.node-know {
	padding-bottom: 15px;
}
</style>
