feat: 归档L03与L09审批发布能力

- 新增统一审批中心与审批管理页面,支持流程配置、审批详情与角色/用户审批对象

- 接入聊天助手、知识库、工作流的发布与删除审批,并补齐发布态校验与快照展示
This commit is contained in:
2026-04-07 14:41:52 +08:00
parent 7e7c236c2a
commit 3f128e977a
138 changed files with 13035 additions and 346 deletions

View File

@@ -5,7 +5,7 @@
<script setup lang="ts">
import { Tinyflow as TinyflowNative, TinyflowOptions } from '@tinyflow-ai/ui';
import '@tinyflow-ai/ui/dist/index.css';
import { onMounted, onUnmounted, ref, watch } from 'vue';
import { nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
const props = defineProps<
{
@@ -94,9 +94,19 @@ const focusNode = async (
return false;
};
const fitView = async (options?: { duration?: number; padding?: number }) => {
if (tinyflow) {
await nextTick();
return tinyflow.fitView(options);
}
console.warn('Tinyflow instance is not initialized');
return false;
};
defineExpose({
getData,
getInstance,
focusNode,
fitView,
});
</script>

View File

@@ -1,3 +1,4 @@
import Tinyflow from './Tinyflow.vue';
export { sanitizeTinyflowDataForReadonlyPreview } from '@tinyflow-ai/ui';
export { Tinyflow };