szld-libs 0.3.74 → 0.3.76

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.
@@ -115,7 +115,8 @@ function SelectModel(props) {
115
115
  const list = handleUniversalHeaderToColumns({
116
116
  universalHeader,
117
117
  attributeSetId,
118
- getTitle
118
+ getTitle,
119
+ otherLangPageId: "5000000"
119
120
  }) || [];
120
121
  setColumns([...list]);
121
122
  }
@@ -1,7 +1,7 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
1
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useRef, useImperativeHandle, Fragment as Fragment$1 } from "react";
3
- import { Flex, Row } from "antd";
4
3
  import useDynamicForm from "./useDynamicForm";
4
+ import { Flex, Row } from "antd";
5
5
  import { Form, Button } from "react-vant";
6
6
  import { Plus } from "@react-vant/icons";
7
7
  const DynamicForm = forwardRef((props, ref) => {
@@ -59,16 +59,9 @@ const DynamicForm = forwardRef((props, ref) => {
59
59
  useImperativeHandle(ref, () => ({
60
60
  getDelFileList: () => {
61
61
  return delFileListRef.current;
62
- },
63
- submitForm: async () => {
64
- try {
65
- const values = await form.validateFields();
66
- return values;
67
- } catch (error) {
68
- }
69
62
  }
70
63
  }));
71
- return /* @__PURE__ */ jsx(Form, { layout: "vertical", form, children: formShowType === "table" ? /* @__PURE__ */ jsx(Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxs(Fragment, { children: [
64
+ return /* @__PURE__ */ jsx(Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsx(Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxs(Fragment, { children: [
72
65
  fields.map((field, idx) => /* @__PURE__ */ jsxs(
73
66
  "div",
74
67
  {
@@ -117,7 +117,8 @@ function SelectModel(props) {
117
117
  const list = handleUniversalHeaderToColumns({
118
118
  universalHeader,
119
119
  attributeSetId,
120
- getTitle
120
+ getTitle,
121
+ otherLangPageId: "5000000"
121
122
  }) || [];
122
123
  setColumns([...list]);
123
124
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const react = require("react");
4
- const antd = require("antd");
5
4
  const useDynamicForm = require("./useDynamicForm");
5
+ const antd = require("antd");
6
6
  const reactVant = require("react-vant");
7
7
  const icons = require("@react-vant/icons");
8
8
  const DynamicForm = react.forwardRef((props, ref) => {
@@ -60,16 +60,9 @@ const DynamicForm = react.forwardRef((props, ref) => {
60
60
  react.useImperativeHandle(ref, () => ({
61
61
  getDelFileList: () => {
62
62
  return delFileListRef.current;
63
- },
64
- submitForm: async () => {
65
- try {
66
- const values = await form.validateFields();
67
- return values;
68
- } catch (error) {
69
- }
70
63
  }
71
64
  }));
72
- return /* @__PURE__ */ jsxRuntime.jsx(reactVant.Form, { layout: "vertical", form, children: formShowType === "table" ? /* @__PURE__ */ jsxRuntime.jsx(reactVant.Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
65
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsxRuntime.jsx(reactVant.Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
73
66
  fields.map((field, idx) => /* @__PURE__ */ jsxRuntime.jsxs(
74
67
  "div",
75
68
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.3.74",
4
+ "version": "0.3.76",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",