import type { PropType } from 'vue'; import { defineComponent } from 'vue'; import type { ITemporaryState } from '@webank/letgo-types'; import type { DocumentModel } from '@webank/letgo-designer'; import { ExpressionEditor } from '../../code-editor'; import './state-edit.less'; /** * TODO 待实现功能 * header 区域可编辑 id * header 区域可删除/复制 */ export const StateEdit = defineComponent({ name: 'StateEdit', props: { documentModel: Object as PropType, hints: Object as PropType>, codeItem: Object as PropType, changeContent: Function as PropType<(id: string, content: Partial) => void>, }, setup(props) { const changeInitValue = (value: string) => { props.changeContent(props.codeItem.id, { initValue: value, }); }; return () => { return (
); }; }, });