next-recomponents 1.7.35 → 1.7.36
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/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
- package/src/calendar/index.tsx +4 -2
package/dist/index.js
CHANGED
|
@@ -44678,7 +44678,7 @@ function MyCalendar(_a) {
|
|
|
44678
44678
|
const modalRef = (0, import_react32.useRef)(null);
|
|
44679
44679
|
const [selectedDate, setSelectedDate] = (0, import_react32.useState)(null);
|
|
44680
44680
|
const [dateStr, setDateStr] = (0, import_react32.useState)(
|
|
44681
|
-
defaultValue || value
|
|
44681
|
+
defaultValue || value || ""
|
|
44682
44682
|
);
|
|
44683
44683
|
const [visible, setVisible] = (0, import_react32.useState)(false);
|
|
44684
44684
|
(0, import_react32.useEffect)(() => {
|
|
@@ -44726,6 +44726,7 @@ function MyCalendar(_a) {
|
|
|
44726
44726
|
].join(" "),
|
|
44727
44727
|
value: dateStr,
|
|
44728
44728
|
onChange: () => {
|
|
44729
|
+
return;
|
|
44729
44730
|
},
|
|
44730
44731
|
readOnly: true
|
|
44731
44732
|
})
|
package/dist/index.mjs
CHANGED
|
@@ -44670,7 +44670,7 @@ function MyCalendar(_a) {
|
|
|
44670
44670
|
const modalRef = useRef7(null);
|
|
44671
44671
|
const [selectedDate, setSelectedDate] = useState11(null);
|
|
44672
44672
|
const [dateStr, setDateStr] = useState11(
|
|
44673
|
-
defaultValue || value
|
|
44673
|
+
defaultValue || value || ""
|
|
44674
44674
|
);
|
|
44675
44675
|
const [visible, setVisible] = useState11(false);
|
|
44676
44676
|
useEffect9(() => {
|
|
@@ -44718,6 +44718,7 @@ function MyCalendar(_a) {
|
|
|
44718
44718
|
].join(" "),
|
|
44719
44719
|
value: dateStr,
|
|
44720
44720
|
onChange: () => {
|
|
44721
|
+
return;
|
|
44721
44722
|
},
|
|
44722
44723
|
readOnly: true
|
|
44723
44724
|
})
|
package/package.json
CHANGED
package/src/calendar/index.tsx
CHANGED
|
@@ -33,7 +33,7 @@ export default function MyCalendar({
|
|
|
33
33
|
const modalRef = useRef<HTMLDialogElement>(null);
|
|
34
34
|
const [selectedDate, setSelectedDate] = useState<Date | null>(null);
|
|
35
35
|
const [dateStr, setDateStr] = useState<string | number | readonly string[]>(
|
|
36
|
-
defaultValue || value
|
|
36
|
+
defaultValue || value || ""
|
|
37
37
|
);
|
|
38
38
|
const [visible, setVisible] = useState(false);
|
|
39
39
|
|
|
@@ -80,7 +80,9 @@ export default function MyCalendar({
|
|
|
80
80
|
className,
|
|
81
81
|
].join(" ")}
|
|
82
82
|
value={dateStr}
|
|
83
|
-
onChange={() => {
|
|
83
|
+
onChange={() => {
|
|
84
|
+
return;
|
|
85
|
+
}}
|
|
84
86
|
readOnly
|
|
85
87
|
/>
|
|
86
88
|
<div className="absolute" style={{ right: "10px" }}>
|