| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- /*
- * @Author: liuJie
- * @Date: 2026-01-25 00:06:41
- * @LastEditors: liuJie
- * @LastEditTime: 2026-01-25 21:52:47
- * @Describe: 工具栏配置
- */
- export interface MaterialToolType {
- label: string
- id: string
- description: string
- source: Array<SourceType>
- }
- export interface SourceType {
- name: string
- type: string
- icon: string
- component: string
- id: string
- data?: any
- active: boolean
- isEdit: boolean
- }
- export const materialTools: MaterialToolType[] = [
- {
- label: '业务逻辑',
- id: 'basic-nodes',
- description: '业务节点',
- source: [
- {
- name: '开始',
- type: 'start',
- icon: 'lucide:play',
- component: 'Start',
- id: 'start-node',
- data: {},
- active: false,
- isEdit: false
- },
- {
- name: '结束',
- type: 'end',
- icon: 'lucide:unplug',
- component: 'End',
- id: 'end-node-id',
- data: {},
- active: false,
- isEdit: false
- },
- {
- name: 'HTTP请求',
- type: 'http',
- icon: 'lucide:link',
- component: 'Http',
- id: 'http-node-id',
- data: {},
- active: false,
- isEdit: false
- },
- {
- name: '条件分支',
- type: 'condition',
- icon: 'lucide:trending-up-down',
- component: 'Condition',
- id: 'condition-node-id',
- data: {},
- active: false,
- isEdit: false
- },
- {
- name: '代码执行',
- type: 'code',
- icon: 'lucide:code',
- component: 'Code',
- id: 'code-node-id',
- data: {},
- active: false,
- isEdit: false
- },
- {
- name: '数据查询',
- type: 'database',
- icon: 'lucide:database-zap',
- component: 'Database',
- id: 'data-query-node-id',
- data: {},
- active: false,
- isEdit: false
- }
- ]
- }
- ]
|