szld-libs 0.4.30 → 0.4.32

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.
@@ -553,6 +553,7 @@ function useDynamicForm(props) {
553
553
  getTitle,
554
554
  langId,
555
555
  onChange: (val) => {
556
+ alert(JSON.stringify(val));
556
557
  if (val && typeof val === "object" && !Array.isArray(val)) {
557
558
  form.setFieldsValue({
558
559
  ...form.getFieldsValue(),
@@ -15,7 +15,7 @@ import MyUpload from "./myUpload";
15
15
  import MyRadio from "./myRadio";
16
16
  import { App, Col, Collapse, Card, Flex, Button, DatePicker, Tooltip } from "antd";
17
17
  import { Form, Input, DatetimePicker } from "react-vant";
18
- import StringCompatibleCalendar from "./myCalendar";
18
+ import MyCalendar from "./myCalendar";
19
19
  dayjs.extend(isoWeek);
20
20
  function useDynamicForm(props) {
21
21
  const {
@@ -617,7 +617,7 @@ function useDynamicForm(props) {
617
617
  }
618
618
  case "range-picker":
619
619
  return /* @__PURE__ */ jsx(
620
- StringCompatibleCalendar,
620
+ MyCalendar,
621
621
  {
622
622
  langId,
623
623
  value: formatValue,
@@ -629,7 +629,7 @@ function useDynamicForm(props) {
629
629
  );
630
630
  case "multiple-date-picker":
631
631
  return /* @__PURE__ */ jsx(
632
- StringCompatibleCalendar,
632
+ MyCalendar,
633
633
  {
634
634
  langId,
635
635
  value: formatValue,
@@ -26,7 +26,7 @@ declare function useUniversalTable(): {
26
26
  resetText?: string | undefined;
27
27
  langConfig?: any;
28
28
  }) => Promise<{
29
- formItems: CreateFormProps;
29
+ formItems: import("szld-libs/lib/components/CreateForm").CreateFormItemProps<import("szld-libs/lib/components/CreateForm").ValueType>[];
30
30
  selList: any[];
31
31
  attrList: any[];
32
32
  }>;
package/es/index.js CHANGED
@@ -44,7 +44,6 @@ const Demo = () => {
44
44
  commonRequest,
45
45
  instructionShowMode: "icon",
46
46
  ref: formRef,
47
- formShowType: "table",
48
47
  langId
49
48
  }
50
49
  ),
@@ -554,6 +554,7 @@ function useDynamicForm(props) {
554
554
  getTitle,
555
555
  langId,
556
556
  onChange: (val) => {
557
+ alert(JSON.stringify(val));
557
558
  if (val && typeof val === "object" && !Array.isArray(val)) {
558
559
  form.setFieldsValue({
559
560
  ...form.getFieldsValue(),
@@ -16,7 +16,7 @@ const MyUpload = require("./myUpload");
16
16
  const MyRadio = require("./myRadio");
17
17
  const antd = require("antd");
18
18
  const reactVant = require("react-vant");
19
- const StringCompatibleCalendar = require("./myCalendar");
19
+ const MyCalendar = require("./myCalendar");
20
20
  dayjs.extend(isoWeek);
21
21
  function useDynamicForm(props) {
22
22
  const {
@@ -618,7 +618,7 @@ function useDynamicForm(props) {
618
618
  }
619
619
  case "range-picker":
620
620
  return /* @__PURE__ */ jsxRuntime.jsx(
621
- StringCompatibleCalendar,
621
+ MyCalendar,
622
622
  {
623
623
  langId,
624
624
  value: formatValue,
@@ -630,7 +630,7 @@ function useDynamicForm(props) {
630
630
  );
631
631
  case "multiple-date-picker":
632
632
  return /* @__PURE__ */ jsxRuntime.jsx(
633
- StringCompatibleCalendar,
633
+ MyCalendar,
634
634
  {
635
635
  langId,
636
636
  value: formatValue,
@@ -26,7 +26,7 @@ declare function useUniversalTable(): {
26
26
  resetText?: string | undefined;
27
27
  langConfig?: any;
28
28
  }) => Promise<{
29
- formItems: CreateFormProps;
29
+ formItems: import("szld-libs/lib/components/CreateForm").CreateFormItemProps<import("szld-libs/lib/components/CreateForm").ValueType>[];
30
30
  selList: any[];
31
31
  attrList: any[];
32
32
  }>;
package/lib/index.js CHANGED
@@ -45,7 +45,6 @@ const Demo = () => {
45
45
  commonRequest: services.commonRequest,
46
46
  instructionShowMode: "icon",
47
47
  ref: formRef,
48
- formShowType: "table",
49
48
  langId
50
49
  }
51
50
  ),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.4.30",
4
+ "version": "0.4.32",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -23,7 +23,7 @@
23
23
  "react-router-dom": "^6.6.1",
24
24
  "react-vant": "^3.3.5",
25
25
  "react-window": "^1.8.9",
26
- "szld-libs": "^0.4.29"
26
+ "szld-libs": "^0.4.31"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/crypto-js": "^4.2.1",