refactor(web): 更换client代码的目录
This commit is contained in:
0
service-web/client/src/components/Flow.scss
Normal file
0
service-web/client/src/components/Flow.scss
Normal file
25
service-web/client/src/components/Flow.tsx
Normal file
25
service-web/client/src/components/Flow.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import {Tinyflow} from '@tinyflow-ai/react'
|
||||
import {type FormControlProps, FormItem} from 'amis'
|
||||
import React from 'react'
|
||||
import './Flow.scss'
|
||||
import '@tinyflow-ai/react/dist/index.css'
|
||||
|
||||
const Flow: React.FC<FormControlProps> = props => {
|
||||
const {onChange} = props
|
||||
return (
|
||||
<div className="flowable">
|
||||
<Tinyflow
|
||||
className="tinyflow-instance"
|
||||
style={{height: '800px'}}
|
||||
onDataChange={(value) => {
|
||||
onChange(value)
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
FormItem({
|
||||
type: 'flow',
|
||||
autoVar: true,
|
||||
})(Flow)
|
||||
1
service-web/client/src/components/Registry.ts
Normal file
1
service-web/client/src/components/Registry.ts
Normal file
@@ -0,0 +1 @@
|
||||
import './Flow.tsx'
|
||||
Reference in New Issue
Block a user