|
|
@ -90,7 +90,7 @@ |
|
|
// using a create form, we just want a fake array so that our repeater |
|
|
// using a create form, we just want a fake array so that our repeater |
|
|
// will actually render the form, but data doesn't matter. |
|
|
// will actually render the form, but data doesn't matter. |
|
|
$: dataProvider = |
|
|
$: dataProvider = |
|
|
actionType === "Update" |
|
|
actionType !== "Create" |
|
|
? `{{ literal ${safe(providerId)} }}` |
|
|
? `{{ literal ${safe(providerId)} }}` |
|
|
: { rows: [{}] } |
|
|
: { rows: [{}] } |
|
|
|
|
|
|
|
|
@ -133,7 +133,7 @@ |
|
|
<BlockComponent |
|
|
<BlockComponent |
|
|
type="form" |
|
|
type="form" |
|
|
props={{ |
|
|
props={{ |
|
|
actionType, |
|
|
actionType: actionType === "Create" ? "Create" : "Update", |
|
|
dataSource, |
|
|
dataSource, |
|
|
size, |
|
|
size, |
|
|
disabled: disabled || actionType === "View", |
|
|
disabled: disabled || actionType === "View", |
|
|
|