@nutui/nutui-react-taro 2.6.1 → 2.6.3
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 +22 -0
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/Cell/style/style.css +1 -1
- package/dist/esm/CellGroup/style/style.css +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Ellipsis.js +1 -1
- package/dist/esm/FixedNav/style/style.css +1 -1
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/NavBar/style/style.css +1 -1
- package/dist/esm/Signature.js +1 -1
- package/dist/esm/TabPane/style/style.css +1 -1
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/{address.taro-C7tIIp3x.js → address.taro-C_wuRkKQ.js} +1 -1
- package/dist/esm/{cascader.taro-CFcAyFL-.js → cascader.taro-B06E-RW5.js} +1 -1
- package/dist/esm/{datepicker.taro-Bgq3ZNDe.js → datepicker.taro-DEwb5whP.js} +13 -5
- package/dist/esm/{ellipsis.taro-uVc3En9l.js → ellipsis.taro-3gDXpBmX.js} +1 -1
- package/dist/esm/{inputnumber.taro-CQiAPZgS.js → inputnumber.taro-HU_Ndna2.js} +1 -1
- package/dist/esm/nutui-react.es.js +7 -7
- package/dist/esm/{signature.taro-KPm_xs66.js → signature.taro-Bn9VNn62.js} +0 -1
- package/dist/esm/{tabs.taro-A7pOK9IM.js → tabs.taro-B4XgogPx.js} +9 -6
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +30 -14
- package/dist/nutui.react.umd.js +30 -14
- package/dist/packages/badge/badge.scss +1 -1
- package/dist/packages/cellgroup/cellgroup.scss +1 -1
- package/dist/packages/fixednav/fixednav.scss +4 -2
- package/dist/packages/navbar/navbar.scss +1 -0
- package/dist/packages/tabpane/tabpane.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/theme-jmapp.scss +97 -10
- package/dist/styles/variables-jmapp.scss +111 -103
- package/dist/styles/variables.scss +3 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -23,18 +23,18 @@ import { S as S6 } from "./subsidenavbar.taro-ByxYpgfP.js";
|
|
|
23
23
|
import { T } from "./tabbar.taro-CVp3ZaqP.js";
|
|
24
24
|
import { T as T2 } from "./tabbaritem.taro-C_90fvMh.js";
|
|
25
25
|
import { T as T3 } from "./tabpane.taro-BAe86j3t.js";
|
|
26
|
-
import { T as T4 } from "./tabs.taro-
|
|
27
|
-
import { A } from "./address.taro-
|
|
26
|
+
import { T as T4 } from "./tabs.taro-B4XgogPx.js";
|
|
27
|
+
import { A } from "./address.taro-C_wuRkKQ.js";
|
|
28
28
|
import { C as C5 } from "./calendar.taro-DEsLc-lS.js";
|
|
29
29
|
import { C as C6 } from "./calendaritem.taro-B8tN2DYa.js";
|
|
30
30
|
import { C as C7 } from "./calendarcard.taro-C7P3oqAL.js";
|
|
31
|
-
import { C as C8 } from "./cascader.taro-
|
|
31
|
+
import { C as C8 } from "./cascader.taro-B06E-RW5.js";
|
|
32
32
|
import { C as C9, a as a2 } from "./checkbox.taro-CUpF7Afr.js";
|
|
33
|
-
import { D as D2 } from "./datepicker.taro-
|
|
33
|
+
import { D as D2 } from "./datepicker.taro-DEwb5whP.js";
|
|
34
34
|
import { default as default2 } from "./Form.js";
|
|
35
35
|
import { F as F2 } from "./formitem.taro-DDNlpN_O.js";
|
|
36
36
|
import { I as I2 } from "./input.taro-CAZ-rRMH.js";
|
|
37
|
-
import { I as I3 } from "./inputnumber.taro-
|
|
37
|
+
import { I as I3 } from "./inputnumber.taro-HU_Ndna2.js";
|
|
38
38
|
import { M } from "./menu.taro-J7oZoaGM.js";
|
|
39
39
|
import { M as M2 } from "./menuitem.taro-CaI5vTha.js";
|
|
40
40
|
import { N as N2 } from "./numberkeyboard.taro-DjxjkImT.js";
|
|
@@ -44,7 +44,7 @@ import { R as R3 } from "./range.taro-CsC41L60.js";
|
|
|
44
44
|
import { R as R4 } from "./rate.taro-BABLqt4h.js";
|
|
45
45
|
import { S as S7 } from "./searchbar.taro-PfVx6o-6.js";
|
|
46
46
|
import { S as S8 } from "./shortpassword.taro-GkcE-e__.js";
|
|
47
|
-
import { S as S9 } from "./signature.taro-
|
|
47
|
+
import { S as S9 } from "./signature.taro-Bn9VNn62.js";
|
|
48
48
|
import { S as S10 } from "./switch.taro-D1HgJoJz.js";
|
|
49
49
|
import { T as T5 } from "./textarea.taro-BJIFCpKb.js";
|
|
50
50
|
import { U } from "./uploader.taro-DMmTl0Cp.js";
|
|
@@ -72,7 +72,7 @@ import { C as C10 } from "./circleprogress.taro-CKSrzt8Q.js";
|
|
|
72
72
|
import { C as C11 } from "./collapse.taro-BM0BsN30.js";
|
|
73
73
|
import { C as C12 } from "./collapseitem.taro-D_m4VEdG.js";
|
|
74
74
|
import { C as C13 } from "./countdown.taro-wopKr1Il.js";
|
|
75
|
-
import { E as E3 } from "./ellipsis.taro-
|
|
75
|
+
import { E as E3 } from "./ellipsis.taro-3gDXpBmX.js";
|
|
76
76
|
import { I as I5 } from "./imagepreview.taro-BMlwAhT0.js";
|
|
77
77
|
import { I as I6 } from "./indicator.taro-CpHZtD9p.js";
|
|
78
78
|
import { P as P5 } from "./pagination.taro-DAK6ddag.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
|
-
import React__default, {
|
|
2
|
+
import React__default, { useRef, useEffect, useState } from "react";
|
|
3
3
|
import { View, ScrollView } from "@tarojs/components";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { JoySmile } from "@nutui/icons-react-taro";
|
|
@@ -23,7 +23,6 @@ const Tabs = (props) => {
|
|
|
23
23
|
finalValue: 0,
|
|
24
24
|
onChange
|
|
25
25
|
});
|
|
26
|
-
const [contentStyle, setContentStyle] = useState({});
|
|
27
26
|
const titleItemsRef = useRef([]);
|
|
28
27
|
const navRef = useRef(null);
|
|
29
28
|
const getTitles = () => {
|
|
@@ -129,13 +128,17 @@ const Tabs = (props) => {
|
|
|
129
128
|
});
|
|
130
129
|
});
|
|
131
130
|
};
|
|
132
|
-
|
|
131
|
+
const getContentStyle = () => {
|
|
133
132
|
let index = titles.current.findIndex((t) => String(t.value) === String(value));
|
|
134
133
|
index = index < 0 ? 0 : index;
|
|
135
|
-
|
|
134
|
+
return {
|
|
136
135
|
transform: direction === "horizontal" ? `translate3d(${rtl ? "" : "-"}${index * 100}%, 0, 0)` : `translate3d( 0,-${index * 100}%, 0)`,
|
|
137
136
|
transitionDuration: `${duration}ms`
|
|
138
|
-
}
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
useEffect(() => {
|
|
140
|
+
let index = titles.current.findIndex((t) => String(t.value) === String(value));
|
|
141
|
+
index = index < 0 ? 0 : index;
|
|
139
142
|
scrollIntoView(index);
|
|
140
143
|
}, [value]);
|
|
141
144
|
const tabChange = (item, index) => {
|
|
@@ -176,7 +179,7 @@ const Tabs = (props) => {
|
|
|
176
179
|
React__default.createElement(
|
|
177
180
|
View,
|
|
178
181
|
{ className: `${classPrefix}-content-wrap` },
|
|
179
|
-
React__default.createElement(View, { className: `${classPrefix}-content`, style:
|
|
182
|
+
React__default.createElement(View, { className: `${classPrefix}-content`, style: getContentStyle() }, React__default.Children.map(children, (child, idx) => {
|
|
180
183
|
if (!React__default.isValidElement(child)) {
|
|
181
184
|
return null;
|
|
182
185
|
}
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v2.6.
|
|
2
|
+
* @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:14 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5256,7 +5256,6 @@ const Tabs = (props) => {
|
|
|
5256
5256
|
finalValue: 0,
|
|
5257
5257
|
onChange
|
|
5258
5258
|
});
|
|
5259
|
-
const [contentStyle, setContentStyle] = useState({});
|
|
5260
5259
|
const titleItemsRef = useRef([]);
|
|
5261
5260
|
const navRef = useRef(null);
|
|
5262
5261
|
const getTitles = () => {
|
|
@@ -5366,15 +5365,21 @@ const Tabs = (props) => {
|
|
|
5366
5365
|
});
|
|
5367
5366
|
});
|
|
5368
5367
|
};
|
|
5369
|
-
|
|
5368
|
+
const getContentStyle = () => {
|
|
5370
5369
|
let index = titles.current.findIndex(
|
|
5371
5370
|
(t) => String(t.value) === String(value)
|
|
5372
5371
|
);
|
|
5373
5372
|
index = index < 0 ? 0 : index;
|
|
5374
|
-
|
|
5373
|
+
return {
|
|
5375
5374
|
transform: direction === "horizontal" ? `translate3d(${rtl ? "" : "-"}${index * 100}%, 0, 0)` : `translate3d( 0,-${index * 100}%, 0)`,
|
|
5376
5375
|
transitionDuration: `${duration}ms`
|
|
5377
|
-
}
|
|
5376
|
+
};
|
|
5377
|
+
};
|
|
5378
|
+
useEffect(() => {
|
|
5379
|
+
let index = titles.current.findIndex(
|
|
5380
|
+
(t) => String(t.value) === String(value)
|
|
5381
|
+
);
|
|
5382
|
+
index = index < 0 ? 0 : index;
|
|
5378
5383
|
scrollIntoView(index);
|
|
5379
5384
|
}, [value]);
|
|
5380
5385
|
const tabChange = (item, index) => {
|
|
@@ -5446,7 +5451,7 @@ const Tabs = (props) => {
|
|
|
5446
5451
|
)
|
|
5447
5452
|
);
|
|
5448
5453
|
}))
|
|
5449
|
-
), /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix$k}-content-wrap` }, /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix$k}-content`, style:
|
|
5454
|
+
), /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix$k}-content-wrap` }, /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix$k}-content`, style: getContentStyle() }, React__default.Children.map(children, (child, idx) => {
|
|
5450
5455
|
if (!React__default.isValidElement(child)) {
|
|
5451
5456
|
return null;
|
|
5452
5457
|
}
|
|
@@ -8619,10 +8624,23 @@ const DatePicker = (props) => {
|
|
|
8619
8624
|
return result;
|
|
8620
8625
|
}
|
|
8621
8626
|
};
|
|
8622
|
-
const compareDateChange = (currentDate, newDate) => {
|
|
8627
|
+
const compareDateChange = (currentDate, newDate, selectedOptions, index) => {
|
|
8623
8628
|
var _a;
|
|
8624
8629
|
const isEqual = ((_a = new Date(currentDate)) == null ? void 0 : _a.getTime()) === (newDate == null ? void 0 : newDate.getTime());
|
|
8625
|
-
|
|
8630
|
+
if (newDate && isDate(newDate)) {
|
|
8631
|
+
if (!isEqual) {
|
|
8632
|
+
setSelectedDate(formatValue(newDate));
|
|
8633
|
+
}
|
|
8634
|
+
props.onChange && props.onChange(
|
|
8635
|
+
selectedOptions,
|
|
8636
|
+
[
|
|
8637
|
+
String(newDate.getFullYear()),
|
|
8638
|
+
String(newDate.getMonth() + 1),
|
|
8639
|
+
String(newDate.getDate())
|
|
8640
|
+
],
|
|
8641
|
+
index
|
|
8642
|
+
);
|
|
8643
|
+
}
|
|
8626
8644
|
};
|
|
8627
8645
|
const handlePickerChange = (selectedOptions, selectedValue, index) => {
|
|
8628
8646
|
const rangeType = type4.toLocaleLowerCase();
|
|
@@ -8663,7 +8681,7 @@ const DatePicker = (props) => {
|
|
|
8663
8681
|
} else if (rangeType === "datehour") {
|
|
8664
8682
|
date4 = new Date(year, month, day, Number(formatDate[3]));
|
|
8665
8683
|
}
|
|
8666
|
-
compareDateChange(selectedDate, date4);
|
|
8684
|
+
compareDateChange(selectedDate, date4, selectedOptions, index);
|
|
8667
8685
|
} else {
|
|
8668
8686
|
const [hour, minute, seconds] = selectedValue;
|
|
8669
8687
|
const currentDate = new Date(selectedDate);
|
|
@@ -8678,9 +8696,8 @@ const DatePicker = (props) => {
|
|
|
8678
8696
|
Number(minute),
|
|
8679
8697
|
rangeType === "time" ? Number(seconds) : 0
|
|
8680
8698
|
);
|
|
8681
|
-
compareDateChange(selectedDate, date4);
|
|
8699
|
+
compareDateChange(selectedDate, date4, selectedOptions, index);
|
|
8682
8700
|
}
|
|
8683
|
-
props.onChange && props.onChange(selectedOptions, selectedValue, index);
|
|
8684
8701
|
};
|
|
8685
8702
|
const formatOption = (type22, value) => {
|
|
8686
8703
|
if (formatter) {
|
|
@@ -10541,7 +10558,7 @@ const InputNumber = (props) => {
|
|
|
10541
10558
|
...defaultProps$W,
|
|
10542
10559
|
...props
|
|
10543
10560
|
};
|
|
10544
|
-
const classes = classNames(classPrefix$h, {
|
|
10561
|
+
const classes = classNames(classPrefix$h, className, {
|
|
10545
10562
|
[`${classPrefix$h}-disabled`]: disabled
|
|
10546
10563
|
});
|
|
10547
10564
|
const [focused, setFocused] = useState(false);
|
|
@@ -12261,7 +12278,6 @@ const InternalSignature = (props, ref) => {
|
|
|
12261
12278
|
fileType: props.type,
|
|
12262
12279
|
canvasId: `${canvasId}`,
|
|
12263
12280
|
success: (res2) => {
|
|
12264
|
-
handleClearBtn();
|
|
12265
12281
|
onConfirm && onConfirm(res2.tempFilePath);
|
|
12266
12282
|
},
|
|
12267
12283
|
fail: (res2) => {
|
|
@@ -16547,7 +16563,7 @@ const Ellipsis = (props) => {
|
|
|
16547
16563
|
bsize * 0.4,
|
|
16548
16564
|
bsize * 0.75
|
|
16549
16565
|
];
|
|
16550
|
-
if (rootContain.current) {
|
|
16566
|
+
if (rootContain.current && rootContain.current.style) {
|
|
16551
16567
|
rootContain.current.style.fontSize = `${bsize}px`;
|
|
16552
16568
|
}
|
|
16553
16569
|
calcEllipse();
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, Taro, components, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react-taro v2.6.
|
|
5
|
+
* @nutui/nutui-react-taro v2.6.3 Tue Apr 30 2024 14:13:14 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -5272,7 +5272,6 @@
|
|
|
5272
5272
|
finalValue: 0,
|
|
5273
5273
|
onChange
|
|
5274
5274
|
});
|
|
5275
|
-
const [contentStyle, setContentStyle] = React.useState({});
|
|
5276
5275
|
const titleItemsRef = React.useRef([]);
|
|
5277
5276
|
const navRef = React.useRef(null);
|
|
5278
5277
|
const getTitles = () => {
|
|
@@ -5382,15 +5381,21 @@
|
|
|
5382
5381
|
});
|
|
5383
5382
|
});
|
|
5384
5383
|
};
|
|
5385
|
-
|
|
5384
|
+
const getContentStyle = () => {
|
|
5386
5385
|
let index = titles.current.findIndex(
|
|
5387
5386
|
(t) => String(t.value) === String(value)
|
|
5388
5387
|
);
|
|
5389
5388
|
index = index < 0 ? 0 : index;
|
|
5390
|
-
|
|
5389
|
+
return {
|
|
5391
5390
|
transform: direction === "horizontal" ? `translate3d(${rtl ? "" : "-"}${index * 100}%, 0, 0)` : `translate3d( 0,-${index * 100}%, 0)`,
|
|
5392
5391
|
transitionDuration: `${duration}ms`
|
|
5393
|
-
}
|
|
5392
|
+
};
|
|
5393
|
+
};
|
|
5394
|
+
React.useEffect(() => {
|
|
5395
|
+
let index = titles.current.findIndex(
|
|
5396
|
+
(t) => String(t.value) === String(value)
|
|
5397
|
+
);
|
|
5398
|
+
index = index < 0 ? 0 : index;
|
|
5394
5399
|
scrollIntoView(index);
|
|
5395
5400
|
}, [value]);
|
|
5396
5401
|
const tabChange = (item, index) => {
|
|
@@ -5462,7 +5467,7 @@
|
|
|
5462
5467
|
)
|
|
5463
5468
|
);
|
|
5464
5469
|
}))
|
|
5465
|
-
), /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix$k}-content-wrap` }, /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix$k}-content`, style:
|
|
5470
|
+
), /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix$k}-content-wrap` }, /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix$k}-content`, style: getContentStyle() }, React.Children.map(children, (child, idx) => {
|
|
5466
5471
|
if (!React.isValidElement(child)) {
|
|
5467
5472
|
return null;
|
|
5468
5473
|
}
|
|
@@ -8635,10 +8640,23 @@
|
|
|
8635
8640
|
return result;
|
|
8636
8641
|
}
|
|
8637
8642
|
};
|
|
8638
|
-
const compareDateChange = (currentDate, newDate) => {
|
|
8643
|
+
const compareDateChange = (currentDate, newDate, selectedOptions, index) => {
|
|
8639
8644
|
var _a;
|
|
8640
8645
|
const isEqual = ((_a = new Date(currentDate)) == null ? void 0 : _a.getTime()) === (newDate == null ? void 0 : newDate.getTime());
|
|
8641
|
-
|
|
8646
|
+
if (newDate && isDate(newDate)) {
|
|
8647
|
+
if (!isEqual) {
|
|
8648
|
+
setSelectedDate(formatValue(newDate));
|
|
8649
|
+
}
|
|
8650
|
+
props.onChange && props.onChange(
|
|
8651
|
+
selectedOptions,
|
|
8652
|
+
[
|
|
8653
|
+
String(newDate.getFullYear()),
|
|
8654
|
+
String(newDate.getMonth() + 1),
|
|
8655
|
+
String(newDate.getDate())
|
|
8656
|
+
],
|
|
8657
|
+
index
|
|
8658
|
+
);
|
|
8659
|
+
}
|
|
8642
8660
|
};
|
|
8643
8661
|
const handlePickerChange = (selectedOptions, selectedValue, index) => {
|
|
8644
8662
|
const rangeType = type2.toLocaleLowerCase();
|
|
@@ -8679,7 +8697,7 @@
|
|
|
8679
8697
|
} else if (rangeType === "datehour") {
|
|
8680
8698
|
date2 = new Date(year, month, day, Number(formatDate[3]));
|
|
8681
8699
|
}
|
|
8682
|
-
compareDateChange(selectedDate, date2);
|
|
8700
|
+
compareDateChange(selectedDate, date2, selectedOptions, index);
|
|
8683
8701
|
} else {
|
|
8684
8702
|
const [hour, minute, seconds] = selectedValue;
|
|
8685
8703
|
const currentDate = new Date(selectedDate);
|
|
@@ -8694,9 +8712,8 @@
|
|
|
8694
8712
|
Number(minute),
|
|
8695
8713
|
rangeType === "time" ? Number(seconds) : 0
|
|
8696
8714
|
);
|
|
8697
|
-
compareDateChange(selectedDate, date2);
|
|
8715
|
+
compareDateChange(selectedDate, date2, selectedOptions, index);
|
|
8698
8716
|
}
|
|
8699
|
-
props.onChange && props.onChange(selectedOptions, selectedValue, index);
|
|
8700
8717
|
};
|
|
8701
8718
|
const formatOption = (type22, value) => {
|
|
8702
8719
|
if (formatter) {
|
|
@@ -10557,7 +10574,7 @@
|
|
|
10557
10574
|
...defaultProps$W,
|
|
10558
10575
|
...props
|
|
10559
10576
|
};
|
|
10560
|
-
const classes = classNames(classPrefix$h, {
|
|
10577
|
+
const classes = classNames(classPrefix$h, className, {
|
|
10561
10578
|
[`${classPrefix$h}-disabled`]: disabled
|
|
10562
10579
|
});
|
|
10563
10580
|
const [focused, setFocused] = React.useState(false);
|
|
@@ -12277,7 +12294,6 @@
|
|
|
12277
12294
|
fileType: props.type,
|
|
12278
12295
|
canvasId: `${canvasId}`,
|
|
12279
12296
|
success: (res2) => {
|
|
12280
|
-
handleClearBtn();
|
|
12281
12297
|
onConfirm && onConfirm(res2.tempFilePath);
|
|
12282
12298
|
},
|
|
12283
12299
|
fail: (res2) => {
|
|
@@ -16563,7 +16579,7 @@
|
|
|
16563
16579
|
bsize * 0.4,
|
|
16564
16580
|
bsize * 0.75
|
|
16565
16581
|
];
|
|
16566
|
-
if (rootContain.current) {
|
|
16582
|
+
if (rootContain.current && rootContain.current.style) {
|
|
16567
16583
|
rootContain.current.style.fontSize = `${bsize}px`;
|
|
16568
16584
|
}
|
|
16569
16585
|
calcEllipse();
|