feat: 归档L03与L09审批发布能力
- 新增统一审批中心与审批管理页面,支持流程配置、审批详情与角色/用户审批对象 - 接入聊天助手、知识库、工作流的发布与删除审批,并补齐发布态校验与快照展示
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import Tinyflow from './Tinyflow.vue';
|
||||
|
||||
export { sanitizeTinyflowDataForReadonlyPreview } from '@tinyflow-ai/ui';
|
||||
export { Tinyflow };
|
||||
|
||||
Reference in New Issue
Block a user