@nutui/nutui-react-taro 1.4.10 → 1.4.11-beta.0
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 +16 -0
- package/dist/esm/ActionSheet.js +7 -10
- package/dist/esm/Address.js +12 -15
- package/dist/esm/Animate.js +3 -6
- package/dist/esm/AnimatingNumbers.js +3 -6
- package/dist/esm/Audio.js +13 -16
- package/dist/esm/Avatar.js +6 -9
- package/dist/esm/AvatarGroup.js +6 -9
- package/dist/esm/BackTop.js +5 -8
- package/dist/esm/Badge.js +5 -8
- package/dist/esm/Barrage.js +3 -6
- package/dist/esm/Button.js +5 -8
- package/dist/esm/Calendar.js +11 -13
- package/dist/esm/CalendarItem.js +6 -8
- package/dist/esm/Card.js +7 -10
- package/dist/esm/Cascader.js +9 -12
- package/dist/esm/Cell.js +5 -8
- package/dist/esm/CellGroup.js +3 -6
- package/dist/esm/Checkbox.js +5 -8
- package/dist/esm/CheckboxGroup.js +5 -8
- package/dist/esm/CircleProgress.js +4 -7
- package/dist/esm/Col.js +3 -6
- package/dist/esm/Collapse.js +3 -6
- package/dist/esm/CollapseItem.js +5 -8
- package/dist/esm/ConfigProvider.js +3 -6
- package/dist/esm/CountDown.js +5 -8
- package/dist/esm/DatePicker.js +13 -16
- package/dist/esm/Dialog.js +8 -11
- package/dist/esm/Divider.js +3 -6
- package/dist/esm/Drag.js +3 -6
- package/dist/esm/Elevator.js +3 -6
- package/dist/esm/Ellipsis.js +5 -8
- package/dist/esm/Empty.js +5 -8
- package/dist/esm/FixedNav.js +8 -11
- package/dist/esm/Form.js +8 -11
- package/dist/esm/FormItem.js +6 -9
- package/dist/esm/Grid.js +6 -9
- package/dist/esm/GridItem.js +8 -11
- package/dist/esm/Icon.js +3 -6
- package/dist/esm/Image.js +6 -9
- package/dist/esm/ImagePreview.js +10 -13
- package/dist/esm/Indicator.js +3 -6
- package/dist/esm/Infiniteloading.js +7 -10
- package/dist/esm/Input.js +7 -10
- package/dist/esm/InputNumber.js +5 -8
- package/dist/esm/Layout.js +2 -5
- package/dist/esm/Menu.js +5 -8
- package/dist/esm/MenuItem.js +8 -11
- package/dist/esm/NavBar.js +5 -8
- package/dist/esm/NoticeBar.js +6 -9
- package/dist/esm/Notify.js +3 -6
- package/dist/esm/NumberKeyboard.js +9 -12
- package/dist/esm/Overlay.js +3 -6
- package/dist/esm/Pagination.js +5 -8
- package/dist/esm/Picker.js +11 -14
- package/dist/esm/Popover.js +7 -10
- package/dist/esm/Popup.js +6 -9
- package/dist/esm/Price.js +3 -6
- package/dist/esm/Progress.js +5 -8
- package/dist/esm/PullToRefresh.js +5 -8
- package/dist/esm/Radio.js +4 -8
- package/dist/esm/RadioGroup.js +5 -8
- package/dist/esm/Range.js +9 -12
- package/dist/esm/Rate.js +5 -8
- package/dist/esm/Row.js +3 -6
- package/dist/esm/SearchBar.js +7 -10
- package/dist/esm/ShortPassword.js +9 -12
- package/dist/esm/SideNavBar.js +10 -13
- package/dist/esm/SideNavBarItem.js +2 -5
- package/dist/esm/Signature.js +8 -11
- package/dist/esm/Skeleton.js +7 -10
- package/dist/esm/Step.js +6 -9
- package/dist/esm/Steps.js +4 -7
- package/dist/esm/Sticky.js +5 -8
- package/dist/esm/SubSideNavBar.js +3 -6
- package/dist/esm/Swipe.js +5 -8
- package/dist/esm/Swiper.js +4 -7
- package/dist/esm/SwiperItem.js +4 -7
- package/dist/esm/Switch.js +3 -6
- package/dist/esm/TabPane.js +3 -6
- package/dist/esm/Tabbar.js +3 -6
- package/dist/esm/TabbarItem.js +5 -8
- package/dist/esm/Table.js +7 -10
- package/dist/esm/Tabs.js +6 -9
- package/dist/esm/Tag.js +5 -8
- package/dist/esm/TextArea.js +5 -8
- package/dist/esm/TimeDetail.js +5 -8
- package/dist/esm/TimePannel.js +5 -8
- package/dist/esm/TimeSelect.js +11 -14
- package/dist/esm/Toast.js +4 -7
- package/dist/esm/TrendArrow.js +4 -7
- package/dist/esm/Uploader.js +10 -13
- package/dist/esm/Video.js +3 -6
- package/dist/esm/VirtualList.js +4 -7
- package/dist/esm/WaterMark.js +5 -8
- package/dist/esm/{actionsheet.taro-e6a51446.js → actionsheet.taro-c5ccaf4e.js} +2 -2
- package/dist/esm/{address.taro-e11e3105.js → address.taro-f977bad0.js} +8 -8
- package/dist/esm/{animate.taro-fb7986d6.js → animate.taro-b0e83dd5.js} +1 -1
- package/dist/esm/{animatingnumbers.taro-03e5d61d.js → animatingnumbers.taro-6307a3a5.js} +1 -1
- package/dist/esm/{audio.taro-9fb6a435.js → audio.taro-c2cdbe18.js} +6 -6
- package/dist/esm/{avatar.taro-3676f38f.js → avatar.taro-c17c3d15.js} +4 -4
- package/dist/esm/{avatargroup-1324186b.js → avatargroup-1d900174.js} +3 -3
- package/dist/esm/{backtop.taro-66394a36.js → backtop.taro-e53236c7.js} +2 -2
- package/dist/esm/{badge.taro-a4e59c11.js → badge.taro-a2e7dd5a.js} +3 -3
- package/dist/esm/{barrage.taro-80df08d3.js → barrage.taro-5dbab093.js} +1 -1
- package/dist/esm/{button.taro-43fa4248.js → button.taro-dc4795a3.js} +2 -2
- package/dist/esm/{calendar.taro-a8b7c1aa.js → calendar.taro-f5d03548.js} +9 -5
- package/dist/esm/{calendaritem.taro-a850666e.js → calendaritem.taro-971a7af8.js} +19 -8
- package/dist/esm/{card.taro-e2a20807.js → card.taro-4fb6bc4e.js} +3 -3
- package/dist/esm/{cascader.taro-a824b371.js → cascader.taro-a2ee549c.js} +5 -5
- package/dist/esm/{cell.taro-a10a74d3.js → cell.taro-e877cf12.js} +3 -3
- package/dist/esm/{cellgroup.taro-abe501bc.js → cellgroup.taro-e094471c.js} +1 -1
- package/dist/esm/{checkbox.taro-6120e3e3.js → checkbox.taro-6aab93c3.js} +3 -3
- package/dist/esm/{circleprogress.taro-79854448.js → circleprogress.taro-897ea24b.js} +2 -2
- package/dist/esm/{col.taro-53eed3cc.js → col.taro-9e4c5cc0.js} +1 -1
- package/dist/esm/{collapse.taro-1a9e4ba2.js → collapse.taro-c903a060.js} +1 -1
- package/dist/esm/{collapseitem-4d0bc55d.js → collapseitem-2e864527.js} +3 -3
- package/dist/esm/{configprovider-3a2a28d1.js → configprovider-5eea4f5d.js} +1 -1
- package/dist/esm/{configprovider.taro-d6678d2e.js → configprovider.taro-26882dd2.js} +1 -1
- package/dist/esm/{countdown.taro-b6efdd7c.js → countdown.taro-9e40de9c.js} +2 -2
- package/dist/esm/{datepicker.taro-e9d167bf.js → datepicker.taro-d9252862.js} +5 -2
- package/dist/esm/{dialog.taro-6daca6de.js → dialog.taro-7608bd26.js} +2 -2
- package/dist/esm/{divider.taro-26d1d8b4.js → divider.taro-5236fe6a.js} +1 -1
- package/dist/esm/{drag.taro-79bb8744.js → drag.taro-703560c4.js} +1 -1
- package/dist/esm/{elevator.taro-c4ed99e4.js → elevator.taro-1d749ab0.js} +1 -1
- package/dist/esm/{ellipsis.taro-93cef884.js → ellipsis.taro-660e2ee9.js} +8 -8
- package/dist/esm/{empty.taro-b28fbcea.js → empty.taro-7bd813f9.js} +2 -2
- package/dist/esm/{fixednav.taro-c46dd370.js → fixednav.taro-84930e08.js} +5 -5
- package/dist/esm/{form.taro-0c8e7a39.js → form.taro-ce791a58.js} +3 -3
- package/dist/esm/{formitem.taro-190a3326.js → formitem.taro-f2ed02d4.js} +2 -2
- package/dist/esm/{grid.taro-2dcf3c67.js → grid.taro-9410ff69.js} +3 -3
- package/dist/esm/{griditem.taro-380ad42c.js → griditem.taro-26863577.js} +5 -5
- package/dist/esm/{icon-296a1bec.js → icon-2242973e.js} +1 -1
- package/dist/esm/{icon.taro-296a1bec.js → icon.taro-c9254a81.js} +1 -1
- package/dist/esm/{image.taro-0b9e8567.js → image.taro-1d867416.js} +2 -2
- package/dist/esm/{imagepreview.taro-c50bb0a3.js → imagepreview.taro-3a5722e8.js} +3 -3
- package/dist/esm/{radio.taro-a6eff96c.js → index.taro-84346556.js} +9 -7
- package/dist/esm/{indicator.taro-cba8b010.js → indicator.taro-25682172.js} +1 -1
- package/dist/esm/{infiniteloading.taro-1dcc35b4.js → infiniteloading.taro-8ead43b0.js} +4 -4
- package/dist/esm/{input.taro-249e6570.js → input.taro-fe0248b1.js} +3 -3
- package/dist/esm/{inputnumber.taro-7c2d7e85.js → inputnumber.taro-94c75663.js} +3 -3
- package/dist/esm/{menu.taro-7e4038a1.js → menu.taro-e5b84501.js} +2 -2
- package/dist/esm/{menuitem.taro-259a1236.js → menuitem.taro-f2129be6.js} +4 -4
- package/dist/esm/{navbar.taro-777c4705.js → navbar.taro-70514adf.js} +3 -3
- package/dist/esm/{noticebar.taro-4a23cdee.js → noticebar.taro-22486646.js} +4 -4
- package/dist/esm/{notify.taro-c6cbc0f3.js → notify.taro-3a424269.js} +3 -3
- package/dist/esm/{numberkeyboard.taro-b0dba5a8.js → numberkeyboard.taro-78224b3a.js} +3 -3
- package/dist/esm/nutui-react.es.js +107 -107
- package/dist/esm/{overlay.taro-21e87fb1.js → overlay.taro-1e74a71d.js} +1 -1
- package/dist/esm/{pagination.taro-2a8806b2.js → pagination.taro-bb490de9.js} +2 -2
- package/dist/esm/{picker.taro-f2f5950d.js → picker.taro-4298ce4e.js} +5 -5
- package/dist/esm/{popover.taro-ad5e76ea.js → popover.taro-f144cd02.js} +4 -4
- package/dist/esm/{popup.taro-01676bff.js → popup.taro-6e81162a.js} +4 -4
- package/dist/esm/{price.taro-776ed16e.js → price.taro-8801462e.js} +1 -1
- package/dist/esm/{progress.taro-f0ce38e9.js → progress.taro-773482ed.js} +3 -3
- package/dist/esm/{pulltorefresh.taro-b1f56062.js → pulltorefresh.taro-2b50fdf3.js} +2 -2
- package/dist/esm/{range.taro-3a2b74b5.js → range.taro-b628f1ed.js} +4 -4
- package/dist/esm/{rate.taro-6cdf03bd.js → rate.taro-f18381f3.js} +3 -3
- package/dist/esm/{row.taro-f64d4a13.js → row.taro-4e697aa2.js} +1 -1
- package/dist/esm/{searchbar.taro-c7bbc67a.js → searchbar.taro-bc3e87bc.js} +11 -8
- package/dist/esm/{shortpassword.taro-7ee92cba.js → shortpassword.taro-7dfb72fb.js} +5 -6
- package/dist/esm/{sidenavbar.taro-44ee1611.js → sidenavbar.taro-e03a5287.js} +3 -3
- package/dist/esm/{signature.taro-ae04be18.js → signature.taro-45d1dde3.js} +3 -3
- package/dist/esm/{skeleton.taro-76faf63f.js → skeleton.taro-38e2fca2.js} +2 -2
- package/dist/esm/{step.taro-b7903e8c.js → step.taro-891c020b.js} +4 -4
- package/dist/esm/{steps.taro-c82d2252.js → steps.taro-acf205a0.js} +2 -2
- package/dist/esm/{sticky.taro-d5b6eabe.js → sticky.taro-b15d1173.js} +3 -3
- package/dist/esm/{subsidenavbar.taro-69cb9752.js → subsidenavbar.taro-f46b4c73.js} +1 -1
- package/dist/esm/{swipe.taro-ea35f07f.js → swipe.taro-9375a9a1.js} +3 -3
- package/dist/esm/{swiper.taro-7a94e211.js → swiper.taro-8164df5b.js} +2 -2
- package/dist/esm/{swiperitem-c9e3d0d5.js → swiperitem-86a3578a.js} +2 -2
- package/dist/esm/{switch.taro-34ca8228.js → switch.taro-bae2dca0.js} +1 -1
- package/dist/esm/{tabbar.taro-9acfc2fa.js → tabbar.taro-17d898d9.js} +1 -1
- package/dist/esm/{tabbaritem.taro-bf517487.js → tabbaritem.taro-3643f585.js} +3 -3
- package/dist/esm/{table.taro-bc980d82.js → table.taro-6119a948.js} +8 -7
- package/dist/esm/{tabpane.taro-4ca340ef.js → tabpane.taro-9512e308.js} +1 -1
- package/dist/esm/{tabs.taro-07e4adce.js → tabs.taro-95edd45d.js} +4 -4
- package/dist/esm/{tag.taro-ad9f6d6a.js → tag.taro-64f37bd9.js} +2 -2
- package/dist/esm/{textarea.taro-321e089e.js → textarea.taro-2a12788b.js} +24 -6
- package/dist/esm/{timedetail.taro-204e2975.js → timedetail.taro-c5f564fd.js} +2 -2
- package/dist/esm/{timepannel.taro-032285fe.js → timepannel.taro-29f9dd86.js} +2 -2
- package/dist/esm/{timeselect.taro-654791eb.js → timeselect.taro-f276b0a9.js} +5 -5
- package/dist/esm/{toast.taro-d6c14811.js → toast.taro-0f972a92.js} +2 -2
- package/dist/esm/{trendarrow.taro-b8c5ccd9.js → trendarrow.taro-d79fc8e2.js} +2 -2
- package/dist/esm/{uploader.taro-64f45a90.js → uploader.taro-77396b5d.js} +7 -7
- package/dist/esm/{video-f1be8a91.js → video-8a3518c5.js} +1 -1
- package/dist/esm/{virtuallist.taro-a4ab5995.js → virtuallist.taro-1688484f.js} +1 -1
- package/dist/esm/{watermark.taro-8e8cfdd6.js → watermark.taro-a948c735.js} +2 -2
- 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/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.mjs +65 -24
- package/dist/nutui.react.umd.js +65 -24
- package/dist/packages/radiogroup/radiogroup.scss +1 -0
- package/dist/packages/step/step.scss +2 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables.scss +1 -1
- package/dist/types/index.d.ts +4 -1
- package/package.json +1 -1
- /package/dist/esm/{AvatarContext-c96afdcc.js → AvatarContext-7153ad2b.js} +0 -0
- /package/dist/esm/{UserContext-0aac9a82.js → UserContext-68f62e66.js} +0 -0
- /package/dist/esm/{UserContext-e402e1a6.js → UserContext-b4181162.js} +0 -0
- /package/dist/esm/{UserContext-e8176108.js → UserContext-be8097d2.js} +0 -0
- /package/dist/esm/{bem-350c1702.js → bem-893ad28d.js} +0 -0
- /package/dist/esm/{get-scroll-parent-5d508382.js → get-scroll-parent-3dcd3f53.js} +0 -0
- /package/dist/esm/{grid.taro.context-c2bbfb4f.js → grid.taro.context-39636af9.js} +0 -0
- /package/dist/esm/{index-5bcb0ff8.js → index-a90733f9.js} +0 -0
- /package/dist/esm/{layout.taro-9046d093.js → layout.taro-358f014f.js} +0 -0
- /package/dist/esm/{offsetContext-c2a746fa.js → offsetContext-bfb02c25.js} +0 -0
- /package/dist/esm/{sidenavbaritem.taro-5a7965d0.js → sidenavbaritem.taro-fee11d26.js} +0 -0
- /package/dist/esm/{typings-b9828dba.js → typings-1c5f2628.js} +0 -0
- /package/dist/esm/{useClientRect-1f8ed1fe.js → useClientRect-4506e52f.js} +0 -0
- /package/dist/esm/{useTouch-db24bb5c.js → useTouch-a2ea68c6.js} +0 -0
- /package/dist/esm/{zh-CN-aff7a0be.js → zh-CN-dfc384d0.js} +0 -0
package/dist/nutui.react.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v1.4.
|
|
8
|
+
* @nutui/nutui-react-taro v1.4.11-beta.0 Wed Mar 15 2023 15:42:11 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -5158,6 +5158,8 @@ const defaultProps$14 = {
|
|
|
5158
5158
|
onUpdate: () => {
|
|
5159
5159
|
},
|
|
5160
5160
|
onSelected: (data) => {
|
|
5161
|
+
},
|
|
5162
|
+
onYearMonthChange: (data) => {
|
|
5161
5163
|
}
|
|
5162
5164
|
};
|
|
5163
5165
|
const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
@@ -5181,7 +5183,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5181
5183
|
onBottomInfo,
|
|
5182
5184
|
onChoose,
|
|
5183
5185
|
onUpdate,
|
|
5184
|
-
onSelected
|
|
5186
|
+
onSelected,
|
|
5187
|
+
onYearMonthChange
|
|
5185
5188
|
} = { ...defaultProps$14, ...props };
|
|
5186
5189
|
const weeks = locale.calendaritem.weekdays;
|
|
5187
5190
|
const [yearMonthTitle, setYearMonthTitle] = useState("");
|
|
@@ -5189,6 +5192,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5189
5192
|
const [translateY, setTranslateY] = useState(0);
|
|
5190
5193
|
const [monthDefaultRange, setMonthDefaultRange] = useState([]);
|
|
5191
5194
|
const [scrollTop, setScrollTop] = useState(0);
|
|
5195
|
+
const [scrollWithAnimation, setScrollWithAnimation] = useState(false);
|
|
5192
5196
|
const [state] = useState({
|
|
5193
5197
|
currDate: "",
|
|
5194
5198
|
propStartDate: "",
|
|
@@ -5464,6 +5468,14 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5464
5468
|
}
|
|
5465
5469
|
setMonthsData(state.monthsData);
|
|
5466
5470
|
};
|
|
5471
|
+
const setReachedYearMonthInfo = () => {
|
|
5472
|
+
const currentMonthsData = state.monthsData[state.currentIndex];
|
|
5473
|
+
const [year, month] = currentMonthsData.curData;
|
|
5474
|
+
if (currentMonthsData.title === yearMonthTitle)
|
|
5475
|
+
return;
|
|
5476
|
+
onYearMonthChange && onYearMonthChange([year, month, `${year}-${month}`]);
|
|
5477
|
+
setYearMonthTitle(currentMonthsData.title);
|
|
5478
|
+
};
|
|
5467
5479
|
const setDefaultRange = (monthsNum, current) => {
|
|
5468
5480
|
let start2 = 0;
|
|
5469
5481
|
let end = 0;
|
|
@@ -5519,7 +5531,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5519
5531
|
state.currentIndex = current;
|
|
5520
5532
|
setDefaultRange(state.monthsNum, current);
|
|
5521
5533
|
}
|
|
5522
|
-
|
|
5534
|
+
setReachedYearMonthInfo();
|
|
5523
5535
|
};
|
|
5524
5536
|
const initData = () => {
|
|
5525
5537
|
const propStartDate = props.startDate ? props.startDate : Utils.getDay(0);
|
|
@@ -5610,7 +5622,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5610
5622
|
}
|
|
5611
5623
|
setDefaultRange(monthsNum, current);
|
|
5612
5624
|
state.currentIndex = current;
|
|
5613
|
-
|
|
5625
|
+
setReachedYearMonthInfo();
|
|
5614
5626
|
if (state.defaultData.length > 0) {
|
|
5615
5627
|
if (type === "range") {
|
|
5616
5628
|
chooseDay(
|
|
@@ -5652,7 +5664,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5652
5664
|
if (months && monthsPanel && viewArea) {
|
|
5653
5665
|
viewHeight = months.current.clientHeight;
|
|
5654
5666
|
monthsPanel.current.style.height = `${containerHeight}px`;
|
|
5655
|
-
|
|
5667
|
+
setScrollTop(state.monthsData[state.currentIndex].cssScrollHeight);
|
|
5668
|
+
nextTick(() => setScrollWithAnimation(true));
|
|
5656
5669
|
}
|
|
5657
5670
|
});
|
|
5658
5671
|
state.avgHeight = Math.floor(containerHeight / (monthsNum + 1));
|
|
@@ -5711,7 +5724,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5711
5724
|
{
|
|
5712
5725
|
scrollTop,
|
|
5713
5726
|
scrollY: true,
|
|
5714
|
-
scrollWithAnimation
|
|
5727
|
+
scrollWithAnimation,
|
|
5715
5728
|
className: "nut-calendar-content",
|
|
5716
5729
|
onScroll: monthsViewScroll,
|
|
5717
5730
|
ref: months
|
|
@@ -5780,6 +5793,8 @@ const defaultProps$13 = {
|
|
|
5780
5793
|
onChoose: (param) => {
|
|
5781
5794
|
},
|
|
5782
5795
|
onSelected: (data) => {
|
|
5796
|
+
},
|
|
5797
|
+
onYearMonthChange: (param) => {
|
|
5783
5798
|
}
|
|
5784
5799
|
};
|
|
5785
5800
|
const Calendar = React__default.forwardRef((props, ref) => {
|
|
@@ -5807,7 +5822,8 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
5807
5822
|
onBottomInfo,
|
|
5808
5823
|
onClose,
|
|
5809
5824
|
onChoose,
|
|
5810
|
-
onSelected
|
|
5825
|
+
onSelected,
|
|
5826
|
+
onYearMonthChange
|
|
5811
5827
|
} = { ...defaultProps$13, ...props };
|
|
5812
5828
|
const calendarRef = useRef(null);
|
|
5813
5829
|
const close = () => {
|
|
@@ -5827,6 +5843,9 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
5827
5843
|
var _a;
|
|
5828
5844
|
(_a = calendarRef.current) == null ? void 0 : _a.scrollToDate(date);
|
|
5829
5845
|
};
|
|
5846
|
+
const yearMonthChange = (param) => {
|
|
5847
|
+
onYearMonthChange && onYearMonthChange(param);
|
|
5848
|
+
};
|
|
5830
5849
|
React__default.useImperativeHandle(ref, () => ({
|
|
5831
5850
|
scrollToDate
|
|
5832
5851
|
}));
|
|
@@ -5854,7 +5873,8 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
5854
5873
|
onTopInfo,
|
|
5855
5874
|
onBottomInfo,
|
|
5856
5875
|
onChoose: choose,
|
|
5857
|
-
onSelected: select
|
|
5876
|
+
onSelected: select,
|
|
5877
|
+
onYearMonthChange: yearMonthChange
|
|
5858
5878
|
}
|
|
5859
5879
|
);
|
|
5860
5880
|
};
|
|
@@ -7283,6 +7303,9 @@ const DatePicker = (props) => {
|
|
|
7283
7303
|
case "year-month":
|
|
7284
7304
|
result = result.slice(0, 2);
|
|
7285
7305
|
break;
|
|
7306
|
+
case "hour-minutes":
|
|
7307
|
+
result = result.slice(3, 5);
|
|
7308
|
+
break;
|
|
7286
7309
|
case "month-day":
|
|
7287
7310
|
result = result.slice(1, 3);
|
|
7288
7311
|
break;
|
|
@@ -9480,10 +9503,15 @@ const SearchBar = (props) => {
|
|
|
9480
9503
|
...props
|
|
9481
9504
|
};
|
|
9482
9505
|
const alignClass = `${align}`;
|
|
9506
|
+
const forceFocus = () => {
|
|
9507
|
+
const searchSelf = searchRef.current;
|
|
9508
|
+
searchSelf && searchSelf.focus();
|
|
9509
|
+
};
|
|
9483
9510
|
const change = (event) => {
|
|
9484
9511
|
const { value: value2 } = event.target;
|
|
9485
9512
|
onChange && (onChange == null ? void 0 : onChange(value2, event));
|
|
9486
9513
|
setValue(value2);
|
|
9514
|
+
value2 === "" && forceFocus();
|
|
9487
9515
|
};
|
|
9488
9516
|
const focus = (event) => {
|
|
9489
9517
|
const { value: value2 } = event.target;
|
|
@@ -9499,10 +9527,7 @@ const SearchBar = (props) => {
|
|
|
9499
9527
|
setValue(props.value);
|
|
9500
9528
|
}, [props.value]);
|
|
9501
9529
|
useEffect(() => {
|
|
9502
|
-
|
|
9503
|
-
const searchSelf = searchRef.current;
|
|
9504
|
-
searchSelf && searchSelf.focus();
|
|
9505
|
-
}
|
|
9530
|
+
autoFocus && forceFocus();
|
|
9506
9531
|
}, [autoFocus]);
|
|
9507
9532
|
const renderField = () => {
|
|
9508
9533
|
return /* @__PURE__ */ React__default.createElement(
|
|
@@ -9614,6 +9639,7 @@ const SearchBar = (props) => {
|
|
|
9614
9639
|
}
|
|
9615
9640
|
setValue("");
|
|
9616
9641
|
onClear && onClear(event);
|
|
9642
|
+
forceFocus();
|
|
9617
9643
|
};
|
|
9618
9644
|
const renderRightLabel = () => {
|
|
9619
9645
|
if (actionText) {
|
|
@@ -9750,7 +9776,6 @@ const ShortPassword = (props) => {
|
|
|
9750
9776
|
const isAndroid = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1;
|
|
9751
9777
|
const isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
9752
9778
|
let style2 = {};
|
|
9753
|
-
console.log(isIOS, isAndroid);
|
|
9754
9779
|
if (isIOS) {
|
|
9755
9780
|
style2 = {
|
|
9756
9781
|
paddingRight: "1200px"
|
|
@@ -9845,6 +9870,9 @@ const TextArea = (props) => {
|
|
|
9845
9870
|
} = { ...defaultProps$M, ...props };
|
|
9846
9871
|
const textareaBem = cn("textarea");
|
|
9847
9872
|
const [inputValue, SetInputValue] = useState("");
|
|
9873
|
+
const compositingRef = useRef(false);
|
|
9874
|
+
const [, updateState] = React__default.useState({});
|
|
9875
|
+
const forceUpdate = React__default.useCallback(() => updateState({}), []);
|
|
9848
9876
|
useEffect(() => {
|
|
9849
9877
|
let initValue = defaultValue;
|
|
9850
9878
|
if (initValue && maxlength && [...initValue].length > Number(maxlength)) {
|
|
@@ -9858,10 +9886,14 @@ const TextArea = (props) => {
|
|
|
9858
9886
|
if (readonly)
|
|
9859
9887
|
return;
|
|
9860
9888
|
const text = event.detail ? event.detail : event.target;
|
|
9861
|
-
if (maxlength && [...text.value].length > Number(maxlength)) {
|
|
9889
|
+
if (maxlength && [...text.value].length > Number(maxlength) && !compositingRef.current) {
|
|
9862
9890
|
text.value = text.value.substring(0, Number(maxlength));
|
|
9863
9891
|
}
|
|
9864
|
-
|
|
9892
|
+
if (text.value === inputValue) {
|
|
9893
|
+
forceUpdate();
|
|
9894
|
+
} else {
|
|
9895
|
+
SetInputValue(text.value);
|
|
9896
|
+
}
|
|
9865
9897
|
onChange && onChange(text.value, event);
|
|
9866
9898
|
};
|
|
9867
9899
|
const textFocus = (event) => {
|
|
@@ -9880,6 +9912,12 @@ const TextArea = (props) => {
|
|
|
9880
9912
|
onChange && onChange(text.value, event);
|
|
9881
9913
|
onBlur && onBlur(event);
|
|
9882
9914
|
};
|
|
9915
|
+
const startComposing = () => {
|
|
9916
|
+
compositingRef.current = true;
|
|
9917
|
+
};
|
|
9918
|
+
const endComposing = () => {
|
|
9919
|
+
compositingRef.current = false;
|
|
9920
|
+
};
|
|
9883
9921
|
return /* @__PURE__ */ React__default.createElement(
|
|
9884
9922
|
"div",
|
|
9885
9923
|
{
|
|
@@ -9908,8 +9946,9 @@ const TextArea = (props) => {
|
|
|
9908
9946
|
onFocus: (e) => {
|
|
9909
9947
|
textFocus(e);
|
|
9910
9948
|
},
|
|
9949
|
+
onCompositionEnd: (e) => endComposing(),
|
|
9950
|
+
onCompositionStart: (e) => startComposing(),
|
|
9911
9951
|
rows,
|
|
9912
|
-
maxLength: maxlength < 0 ? 0 : maxlength,
|
|
9913
9952
|
placeholder: placeholder || locale.placeholder
|
|
9914
9953
|
}
|
|
9915
9954
|
),
|
|
@@ -11321,8 +11360,8 @@ const Notify = (props) => {
|
|
|
11321
11360
|
};
|
|
11322
11361
|
cn("notify");
|
|
11323
11362
|
const classes = classNames({
|
|
11324
|
-
"popup-top": position === "top",
|
|
11325
|
-
"popup-bottom": position === "bottom",
|
|
11363
|
+
"nut-notify--popup-top": position === "top",
|
|
11364
|
+
"nut-notify--popup-bottom": position === "bottom",
|
|
11326
11365
|
"nut-notify": true,
|
|
11327
11366
|
[`nut-notify--${type}`]: true
|
|
11328
11367
|
});
|
|
@@ -17512,12 +17551,12 @@ const Ellipsis = (props) => {
|
|
|
17512
17551
|
const digitReg = /^[0-9]+$/;
|
|
17513
17552
|
const letterUpperReg = /^[A-Z]+$/;
|
|
17514
17553
|
const letterLowerReg = /^[a-z]+$/;
|
|
17515
|
-
|
|
17516
|
-
|
|
17554
|
+
useReady(() => {
|
|
17555
|
+
nextTick(() => {
|
|
17517
17556
|
getSymbolInfo();
|
|
17518
17557
|
getReference();
|
|
17519
|
-
}
|
|
17520
|
-
}
|
|
17558
|
+
});
|
|
17559
|
+
});
|
|
17521
17560
|
const getSymbolInfo = async () => {
|
|
17522
17561
|
const refe = await getRectByTaro(symbolContain == null ? void 0 : symbolContain.current);
|
|
17523
17562
|
symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
|
|
@@ -19415,7 +19454,8 @@ const defaultProps$e = {
|
|
|
19415
19454
|
data: [],
|
|
19416
19455
|
bordered: true,
|
|
19417
19456
|
striped: false,
|
|
19418
|
-
noData: "无数据"
|
|
19457
|
+
noData: "无数据",
|
|
19458
|
+
showHeader: true
|
|
19419
19459
|
};
|
|
19420
19460
|
const Table = (props) => {
|
|
19421
19461
|
const { locale } = useConfig$1();
|
|
@@ -19433,6 +19473,7 @@ const Table = (props) => {
|
|
|
19433
19473
|
onSorter,
|
|
19434
19474
|
iconClassPrefix,
|
|
19435
19475
|
iconFontClassName,
|
|
19476
|
+
showHeader,
|
|
19436
19477
|
...rest
|
|
19437
19478
|
} = {
|
|
19438
19479
|
...defaultProps$e,
|
|
@@ -19523,7 +19564,7 @@ const Table = (props) => {
|
|
|
19523
19564
|
"nut-table__main--striped": striped
|
|
19524
19565
|
})
|
|
19525
19566
|
},
|
|
19526
|
-
/* @__PURE__ */ React__default.createElement("div", { className: "nut-table__main__head" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-table__main__head__tr" }, renderHeadCells())),
|
|
19567
|
+
showHeader && /* @__PURE__ */ React__default.createElement("div", { className: "nut-table__main__head" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-table__main__head__tr" }, renderHeadCells())),
|
|
19527
19568
|
/* @__PURE__ */ React__default.createElement("div", { className: "nut-table__main__body" }, renderBoyTrs())
|
|
19528
19569
|
), summary && /* @__PURE__ */ React__default.createElement("div", { className: "nut-table__summary" }, /* @__PURE__ */ React__default.createElement("span", { className: "nut-table__summary__text" }, summary)), curData.length === 0 && /* @__PURE__ */ React__default.createElement("div", { className: "nut-table__nodata" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-table__nodata" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-table__nodata__text" }, noData))));
|
|
19529
19570
|
};
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v1.4.
|
|
11
|
+
* @nutui/nutui-react-taro v1.4.11-beta.0 Wed Mar 15 2023 15:42:11 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -5174,6 +5174,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5174
5174
|
onUpdate: () => {
|
|
5175
5175
|
},
|
|
5176
5176
|
onSelected: (data) => {
|
|
5177
|
+
},
|
|
5178
|
+
onYearMonthChange: (data) => {
|
|
5177
5179
|
}
|
|
5178
5180
|
};
|
|
5179
5181
|
const CalendarItem = React.forwardRef((props, ref) => {
|
|
@@ -5197,7 +5199,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5197
5199
|
onBottomInfo,
|
|
5198
5200
|
onChoose,
|
|
5199
5201
|
onUpdate,
|
|
5200
|
-
onSelected
|
|
5202
|
+
onSelected,
|
|
5203
|
+
onYearMonthChange
|
|
5201
5204
|
} = { ...defaultProps$14, ...props };
|
|
5202
5205
|
const weeks = locale.calendaritem.weekdays;
|
|
5203
5206
|
const [yearMonthTitle, setYearMonthTitle] = React.useState("");
|
|
@@ -5205,6 +5208,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5205
5208
|
const [translateY, setTranslateY] = React.useState(0);
|
|
5206
5209
|
const [monthDefaultRange, setMonthDefaultRange] = React.useState([]);
|
|
5207
5210
|
const [scrollTop, setScrollTop] = React.useState(0);
|
|
5211
|
+
const [scrollWithAnimation, setScrollWithAnimation] = React.useState(false);
|
|
5208
5212
|
const [state] = React.useState({
|
|
5209
5213
|
currDate: "",
|
|
5210
5214
|
propStartDate: "",
|
|
@@ -5480,6 +5484,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5480
5484
|
}
|
|
5481
5485
|
setMonthsData(state.monthsData);
|
|
5482
5486
|
};
|
|
5487
|
+
const setReachedYearMonthInfo = () => {
|
|
5488
|
+
const currentMonthsData = state.monthsData[state.currentIndex];
|
|
5489
|
+
const [year, month] = currentMonthsData.curData;
|
|
5490
|
+
if (currentMonthsData.title === yearMonthTitle)
|
|
5491
|
+
return;
|
|
5492
|
+
onYearMonthChange && onYearMonthChange([year, month, `${year}-${month}`]);
|
|
5493
|
+
setYearMonthTitle(currentMonthsData.title);
|
|
5494
|
+
};
|
|
5483
5495
|
const setDefaultRange = (monthsNum, current) => {
|
|
5484
5496
|
let start2 = 0;
|
|
5485
5497
|
let end = 0;
|
|
@@ -5535,7 +5547,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5535
5547
|
state.currentIndex = current;
|
|
5536
5548
|
setDefaultRange(state.monthsNum, current);
|
|
5537
5549
|
}
|
|
5538
|
-
|
|
5550
|
+
setReachedYearMonthInfo();
|
|
5539
5551
|
};
|
|
5540
5552
|
const initData = () => {
|
|
5541
5553
|
const propStartDate = props.startDate ? props.startDate : Utils.getDay(0);
|
|
@@ -5626,7 +5638,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5626
5638
|
}
|
|
5627
5639
|
setDefaultRange(monthsNum, current);
|
|
5628
5640
|
state.currentIndex = current;
|
|
5629
|
-
|
|
5641
|
+
setReachedYearMonthInfo();
|
|
5630
5642
|
if (state.defaultData.length > 0) {
|
|
5631
5643
|
if (type === "range") {
|
|
5632
5644
|
chooseDay(
|
|
@@ -5668,7 +5680,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5668
5680
|
if (months && monthsPanel && viewArea) {
|
|
5669
5681
|
viewHeight = months.current.clientHeight;
|
|
5670
5682
|
monthsPanel.current.style.height = `${containerHeight}px`;
|
|
5671
|
-
|
|
5683
|
+
setScrollTop(state.monthsData[state.currentIndex].cssScrollHeight);
|
|
5684
|
+
Taro.nextTick(() => setScrollWithAnimation(true));
|
|
5672
5685
|
}
|
|
5673
5686
|
});
|
|
5674
5687
|
state.avgHeight = Math.floor(containerHeight / (monthsNum + 1));
|
|
@@ -5727,7 +5740,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5727
5740
|
{
|
|
5728
5741
|
scrollTop,
|
|
5729
5742
|
scrollY: true,
|
|
5730
|
-
scrollWithAnimation
|
|
5743
|
+
scrollWithAnimation,
|
|
5731
5744
|
className: "nut-calendar-content",
|
|
5732
5745
|
onScroll: monthsViewScroll,
|
|
5733
5746
|
ref: months
|
|
@@ -5796,6 +5809,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5796
5809
|
onChoose: (param) => {
|
|
5797
5810
|
},
|
|
5798
5811
|
onSelected: (data) => {
|
|
5812
|
+
},
|
|
5813
|
+
onYearMonthChange: (param) => {
|
|
5799
5814
|
}
|
|
5800
5815
|
};
|
|
5801
5816
|
const Calendar = React.forwardRef((props, ref) => {
|
|
@@ -5823,7 +5838,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5823
5838
|
onBottomInfo,
|
|
5824
5839
|
onClose,
|
|
5825
5840
|
onChoose,
|
|
5826
|
-
onSelected
|
|
5841
|
+
onSelected,
|
|
5842
|
+
onYearMonthChange
|
|
5827
5843
|
} = { ...defaultProps$13, ...props };
|
|
5828
5844
|
const calendarRef = React.useRef(null);
|
|
5829
5845
|
const close = () => {
|
|
@@ -5843,6 +5859,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5843
5859
|
var _a;
|
|
5844
5860
|
(_a = calendarRef.current) == null ? void 0 : _a.scrollToDate(date);
|
|
5845
5861
|
};
|
|
5862
|
+
const yearMonthChange = (param) => {
|
|
5863
|
+
onYearMonthChange && onYearMonthChange(param);
|
|
5864
|
+
};
|
|
5846
5865
|
React.useImperativeHandle(ref, () => ({
|
|
5847
5866
|
scrollToDate
|
|
5848
5867
|
}));
|
|
@@ -5870,7 +5889,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5870
5889
|
onTopInfo,
|
|
5871
5890
|
onBottomInfo,
|
|
5872
5891
|
onChoose: choose,
|
|
5873
|
-
onSelected: select
|
|
5892
|
+
onSelected: select,
|
|
5893
|
+
onYearMonthChange: yearMonthChange
|
|
5874
5894
|
}
|
|
5875
5895
|
);
|
|
5876
5896
|
};
|
|
@@ -7299,6 +7319,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7299
7319
|
case "year-month":
|
|
7300
7320
|
result = result.slice(0, 2);
|
|
7301
7321
|
break;
|
|
7322
|
+
case "hour-minutes":
|
|
7323
|
+
result = result.slice(3, 5);
|
|
7324
|
+
break;
|
|
7302
7325
|
case "month-day":
|
|
7303
7326
|
result = result.slice(1, 3);
|
|
7304
7327
|
break;
|
|
@@ -9496,10 +9519,15 @@ var __publicField = (obj, key, value) => {
|
|
|
9496
9519
|
...props
|
|
9497
9520
|
};
|
|
9498
9521
|
const alignClass = `${align}`;
|
|
9522
|
+
const forceFocus = () => {
|
|
9523
|
+
const searchSelf = searchRef.current;
|
|
9524
|
+
searchSelf && searchSelf.focus();
|
|
9525
|
+
};
|
|
9499
9526
|
const change = (event) => {
|
|
9500
9527
|
const { value: value2 } = event.target;
|
|
9501
9528
|
onChange && (onChange == null ? void 0 : onChange(value2, event));
|
|
9502
9529
|
setValue(value2);
|
|
9530
|
+
value2 === "" && forceFocus();
|
|
9503
9531
|
};
|
|
9504
9532
|
const focus = (event) => {
|
|
9505
9533
|
const { value: value2 } = event.target;
|
|
@@ -9515,10 +9543,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9515
9543
|
setValue(props.value);
|
|
9516
9544
|
}, [props.value]);
|
|
9517
9545
|
React.useEffect(() => {
|
|
9518
|
-
|
|
9519
|
-
const searchSelf = searchRef.current;
|
|
9520
|
-
searchSelf && searchSelf.focus();
|
|
9521
|
-
}
|
|
9546
|
+
autoFocus && forceFocus();
|
|
9522
9547
|
}, [autoFocus]);
|
|
9523
9548
|
const renderField = () => {
|
|
9524
9549
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -9630,6 +9655,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9630
9655
|
}
|
|
9631
9656
|
setValue("");
|
|
9632
9657
|
onClear && onClear(event);
|
|
9658
|
+
forceFocus();
|
|
9633
9659
|
};
|
|
9634
9660
|
const renderRightLabel = () => {
|
|
9635
9661
|
if (actionText) {
|
|
@@ -9766,7 +9792,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9766
9792
|
const isAndroid = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1;
|
|
9767
9793
|
const isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
9768
9794
|
let style2 = {};
|
|
9769
|
-
console.log(isIOS, isAndroid);
|
|
9770
9795
|
if (isIOS) {
|
|
9771
9796
|
style2 = {
|
|
9772
9797
|
paddingRight: "1200px"
|
|
@@ -9861,6 +9886,9 @@ var __publicField = (obj, key, value) => {
|
|
|
9861
9886
|
} = { ...defaultProps$M, ...props };
|
|
9862
9887
|
const textareaBem = cn("textarea");
|
|
9863
9888
|
const [inputValue, SetInputValue] = React.useState("");
|
|
9889
|
+
const compositingRef = React.useRef(false);
|
|
9890
|
+
const [, updateState] = React.useState({});
|
|
9891
|
+
const forceUpdate = React.useCallback(() => updateState({}), []);
|
|
9864
9892
|
React.useEffect(() => {
|
|
9865
9893
|
let initValue = defaultValue;
|
|
9866
9894
|
if (initValue && maxlength && [...initValue].length > Number(maxlength)) {
|
|
@@ -9874,10 +9902,14 @@ var __publicField = (obj, key, value) => {
|
|
|
9874
9902
|
if (readonly)
|
|
9875
9903
|
return;
|
|
9876
9904
|
const text = event.detail ? event.detail : event.target;
|
|
9877
|
-
if (maxlength && [...text.value].length > Number(maxlength)) {
|
|
9905
|
+
if (maxlength && [...text.value].length > Number(maxlength) && !compositingRef.current) {
|
|
9878
9906
|
text.value = text.value.substring(0, Number(maxlength));
|
|
9879
9907
|
}
|
|
9880
|
-
|
|
9908
|
+
if (text.value === inputValue) {
|
|
9909
|
+
forceUpdate();
|
|
9910
|
+
} else {
|
|
9911
|
+
SetInputValue(text.value);
|
|
9912
|
+
}
|
|
9881
9913
|
onChange && onChange(text.value, event);
|
|
9882
9914
|
};
|
|
9883
9915
|
const textFocus = (event) => {
|
|
@@ -9896,6 +9928,12 @@ var __publicField = (obj, key, value) => {
|
|
|
9896
9928
|
onChange && onChange(text.value, event);
|
|
9897
9929
|
onBlur && onBlur(event);
|
|
9898
9930
|
};
|
|
9931
|
+
const startComposing = () => {
|
|
9932
|
+
compositingRef.current = true;
|
|
9933
|
+
};
|
|
9934
|
+
const endComposing = () => {
|
|
9935
|
+
compositingRef.current = false;
|
|
9936
|
+
};
|
|
9899
9937
|
return /* @__PURE__ */ React.createElement(
|
|
9900
9938
|
"div",
|
|
9901
9939
|
{
|
|
@@ -9924,8 +9962,9 @@ var __publicField = (obj, key, value) => {
|
|
|
9924
9962
|
onFocus: (e) => {
|
|
9925
9963
|
textFocus(e);
|
|
9926
9964
|
},
|
|
9965
|
+
onCompositionEnd: (e) => endComposing(),
|
|
9966
|
+
onCompositionStart: (e) => startComposing(),
|
|
9927
9967
|
rows,
|
|
9928
|
-
maxLength: maxlength < 0 ? 0 : maxlength,
|
|
9929
9968
|
placeholder: placeholder || locale.placeholder
|
|
9930
9969
|
}
|
|
9931
9970
|
),
|
|
@@ -11337,8 +11376,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11337
11376
|
};
|
|
11338
11377
|
cn("notify");
|
|
11339
11378
|
const classes = classNames({
|
|
11340
|
-
"popup-top": position === "top",
|
|
11341
|
-
"popup-bottom": position === "bottom",
|
|
11379
|
+
"nut-notify--popup-top": position === "top",
|
|
11380
|
+
"nut-notify--popup-bottom": position === "bottom",
|
|
11342
11381
|
"nut-notify": true,
|
|
11343
11382
|
[`nut-notify--${type}`]: true
|
|
11344
11383
|
});
|
|
@@ -17528,12 +17567,12 @@ This message will only show in development mode. It won't appear in production.
|
|
|
17528
17567
|
const digitReg = /^[0-9]+$/;
|
|
17529
17568
|
const letterUpperReg = /^[A-Z]+$/;
|
|
17530
17569
|
const letterLowerReg = /^[a-z]+$/;
|
|
17531
|
-
|
|
17532
|
-
|
|
17570
|
+
Taro.useReady(() => {
|
|
17571
|
+
Taro.nextTick(() => {
|
|
17533
17572
|
getSymbolInfo();
|
|
17534
17573
|
getReference();
|
|
17535
|
-
}
|
|
17536
|
-
}
|
|
17574
|
+
});
|
|
17575
|
+
});
|
|
17537
17576
|
const getSymbolInfo = async () => {
|
|
17538
17577
|
const refe = await getRectByTaro(symbolContain == null ? void 0 : symbolContain.current);
|
|
17539
17578
|
symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
|
|
@@ -19431,7 +19470,8 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19431
19470
|
data: [],
|
|
19432
19471
|
bordered: true,
|
|
19433
19472
|
striped: false,
|
|
19434
|
-
noData: "无数据"
|
|
19473
|
+
noData: "无数据",
|
|
19474
|
+
showHeader: true
|
|
19435
19475
|
};
|
|
19436
19476
|
const Table = (props) => {
|
|
19437
19477
|
const { locale } = useConfig$1();
|
|
@@ -19449,6 +19489,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19449
19489
|
onSorter,
|
|
19450
19490
|
iconClassPrefix,
|
|
19451
19491
|
iconFontClassName,
|
|
19492
|
+
showHeader,
|
|
19452
19493
|
...rest
|
|
19453
19494
|
} = {
|
|
19454
19495
|
...defaultProps$e,
|
|
@@ -19539,7 +19580,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19539
19580
|
"nut-table__main--striped": striped
|
|
19540
19581
|
})
|
|
19541
19582
|
},
|
|
19542
|
-
/* @__PURE__ */ React.createElement("div", { className: "nut-table__main__head" }, /* @__PURE__ */ React.createElement("div", { className: "nut-table__main__head__tr" }, renderHeadCells())),
|
|
19583
|
+
showHeader && /* @__PURE__ */ React.createElement("div", { className: "nut-table__main__head" }, /* @__PURE__ */ React.createElement("div", { className: "nut-table__main__head__tr" }, renderHeadCells())),
|
|
19543
19584
|
/* @__PURE__ */ React.createElement("div", { className: "nut-table__main__body" }, renderBoyTrs())
|
|
19544
19585
|
), summary && /* @__PURE__ */ React.createElement("div", { className: "nut-table__summary" }, /* @__PURE__ */ React.createElement("span", { className: "nut-table__summary__text" }, summary)), curData.length === 0 && /* @__PURE__ */ React.createElement("div", { className: "nut-table__nodata" }, /* @__PURE__ */ React.createElement("div", { className: "nut-table__nodata" }, /* @__PURE__ */ React.createElement("div", { className: "nut-table__nodata__text" }, noData))));
|
|
19545
19586
|
};
|