szld-libs 0.4.31 → 0.4.33
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/dist/szld-components.es.js +383 -383
- package/dist/szld-components.umd.js +12 -12
- package/es/components/DynamicForm/useDynamicForm.js +1 -0
- package/es/components/DynamicFormMobile/useDynamicForm.js +3 -3
- package/es/index.js +0 -1
- package/lib/components/DynamicForm/useDynamicForm.js +1 -0
- package/lib/components/DynamicFormMobile/useDynamicForm.js +3 -3
- package/lib/index.js +0 -1
- package/package.json +2 -2
|
@@ -553,6 +553,7 @@ function useDynamicForm(props) {
|
|
|
553
553
|
getTitle,
|
|
554
554
|
langId,
|
|
555
555
|
onChange: (val) => {
|
|
556
|
+
alert(JSON.stringify(val) + val && typeof val === "object" && !Array.isArray(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
|
|
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
|
-
|
|
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
|
-
|
|
632
|
+
MyCalendar,
|
|
633
633
|
{
|
|
634
634
|
langId,
|
|
635
635
|
value: formatValue,
|
package/es/index.js
CHANGED
|
@@ -554,6 +554,7 @@ function useDynamicForm(props) {
|
|
|
554
554
|
getTitle,
|
|
555
555
|
langId,
|
|
556
556
|
onChange: (val) => {
|
|
557
|
+
alert(JSON.stringify(val) + val && typeof val === "object" && !Array.isArray(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
|
|
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
|
-
|
|
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
|
-
|
|
633
|
+
MyCalendar,
|
|
634
634
|
{
|
|
635
635
|
langId,
|
|
636
636
|
value: formatValue,
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "szld-libs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.33",
|
|
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.
|
|
26
|
+
"szld-libs": "^0.4.31"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/crypto-js": "^4.2.1",
|