mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
fix(materials): mouseup event propagation in condition (#458)
* fix(materials): mouseup event propagation in condition * fix(docs): form-materials
This commit is contained in:
parent
e5d73966b4
commit
4a857ba9a3
@ -12,7 +12,7 @@ export function MaterialDisplay(props: any) {
|
|||||||
<br />
|
<br />
|
||||||
<PackageManagerTabs
|
<PackageManagerTabs
|
||||||
command={{
|
command={{
|
||||||
'By Import': `import { ${props.exportName} } from '@flowgram.ai/materials'`,
|
'By Import': `import { ${props.exportName} } from '@flowgram.ai/form-materials'`,
|
||||||
// components/type-selector/index.tsx -> components/type-selector
|
// components/type-selector/index.tsx -> components/type-selector
|
||||||
'By CLI': `npx @flowgram.ai/form-materials@latest ${props.filePath
|
'By CLI': `npx @flowgram.ai/form-materials@latest ${props.filePath
|
||||||
.split('/')
|
.split('/')
|
||||||
|
|||||||
@ -67,7 +67,12 @@ export function ConditionRow({ style, value, onChange, readonly }: PropTypes) {
|
|||||||
onChange={(v) => onChange({ ...value, right: v })}
|
onChange={(v) => onChange({ ...value, right: v })}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<UIInput size="small" disabled value={opConfig?.rightDisplay || 'Empty'} />
|
<UIInput
|
||||||
|
size="small"
|
||||||
|
disabled
|
||||||
|
style={{ pointerEvents: 'none' }}
|
||||||
|
value={opConfig?.rightDisplay || 'Empty'}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</UIRight>
|
</UIRight>
|
||||||
</UIValues>
|
</UIValues>
|
||||||
|
|||||||
@ -65,7 +65,12 @@ export function ConditionRow({ style, value, onChange, readonly }: PropTypes) {
|
|||||||
onChange={(v) => onChange({ ...value, right: v })}
|
onChange={(v) => onChange({ ...value, right: v })}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Input size="small" disabled value={opConfig?.rightDisplay || 'Empty'} />
|
<Input
|
||||||
|
size="small"
|
||||||
|
disabled
|
||||||
|
style={{ pointerEvents: 'none' }}
|
||||||
|
value={opConfig?.rightDisplay || 'Empty'}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</UIRight>
|
</UIRight>
|
||||||
</UIValues>
|
</UIValues>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user