@hzab/list-render 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- # @hzab/list-render@1.9.1
1
+ # @hzab/list-render@1.9.2
2
2
 
3
3
  fix: Drawer 模式 首次编辑 scenario 状态不正确问题修复
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/list-render",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -36,8 +36,8 @@ export function FormModal(props, parentRef) {
36
36
  const FormSlot = useMemo(() => props.Slots?.FormSlot, [props.Slots?.FormSlot]);
37
37
 
38
38
  function show(formData = props.formInitialValues, title, scenario = "create") {
39
- setOpen(true);
40
39
  scenarioRef.current = scenario || "create";
40
+ setOpen(true);
41
41
  // 处理 formRef.current 为 undefined 的问题
42
42
  if (formRef.current?.formRender?.setValues) {
43
43
  formRef.current?.formRender?.setValues(formData);