@nutui/nutui-react 4.0.0-beta.3 → 4.0.0-beta.5
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 +21 -6
- package/dist/cjs/hooks/use-props-value.js +1 -1
- package/dist/cjs/hooks/use-touch.js +4 -4
- package/dist/cjs/packages/address/cascaderRender.js +1 -1
- package/dist/cjs/packages/address/existRender.js +1 -1
- package/dist/cjs/packages/animate/animate.js +1 -1
- package/dist/cjs/packages/audio/audio.js +1 -1
- package/dist/cjs/packages/avatar/avatar.js +1 -1
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +1 -1
- package/dist/cjs/packages/barrage/barrage.js +1 -1
- package/dist/cjs/packages/button/button.js +1 -1
- package/dist/cjs/packages/card/card.js +1 -1
- package/dist/cjs/packages/cascader/utils.js +4 -4
- package/dist/cjs/packages/cell/cell.js +1 -1
- package/dist/cjs/packages/cellgroup/cellgroup.js +1 -1
- package/dist/cjs/packages/checkboxgroup/checkboxgroup.js +3 -3
- package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
- package/dist/cjs/packages/collapseitem/collapseitem.js +1 -1
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/countdown.js +1 -1
- package/dist/cjs/packages/datepicker/datepicker.js +1 -1
- package/dist/cjs/packages/dialog/dialog.js +2 -2
- package/dist/cjs/packages/divider/divider.js +1 -1
- package/dist/cjs/packages/drag/drag.js +1 -1
- package/dist/cjs/packages/elevator/elevator.js +1 -1
- package/dist/cjs/packages/ellipsis/ellipsis.js +1 -1
- package/dist/cjs/packages/empty/empty.d.ts +4 -11
- package/dist/cjs/packages/empty/empty.js +22 -18
- package/dist/cjs/packages/empty/index.d.ts +1 -1
- package/dist/cjs/packages/empty/style/empty.scss +97 -31
- package/dist/cjs/packages/empty/style/style.css +77 -32
- package/dist/cjs/packages/empty/style-jmapp/empty.scss +97 -31
- package/dist/cjs/packages/empty/style-jmapp/style.css +77 -32
- package/dist/cjs/packages/empty/style-jrkf/empty.scss +97 -31
- package/dist/cjs/packages/empty/style-jrkf/style.css +77 -32
- package/dist/cjs/packages/fixednav/fixednav.js +1 -1
- package/dist/cjs/packages/grid/grid.js +1 -1
- package/dist/cjs/packages/griditem/griditem.js +1 -1
- package/dist/cjs/packages/indicator/indicator.js +1 -1
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +1 -1
- package/dist/cjs/packages/input/input.js +1 -1
- package/dist/cjs/packages/inputnumber/inputnumber.js +1 -1
- package/dist/cjs/packages/loading/loading.js +1 -1
- package/dist/cjs/packages/menu/menu.js +1 -1
- package/dist/cjs/packages/numberkeyboard/numberkeyboard.js +1 -1
- package/dist/cjs/packages/overlay/overlay.js +1 -1
- package/dist/cjs/packages/pagination/pagination.js +1 -1
- package/dist/cjs/packages/picker/picker.js +1 -1
- package/dist/cjs/packages/pickerview/pickerroller.js +1 -1
- package/dist/cjs/packages/popover/popover.js +1 -1
- package/dist/cjs/packages/price/price.js +1 -1
- package/dist/cjs/packages/progress/progress.js +1 -1
- package/dist/cjs/packages/quickenter/quickenter.js +2 -2
- package/dist/cjs/packages/radio/radio.js +1 -1
- package/dist/cjs/packages/radiogroup/radiogroup.js +3 -3
- package/dist/cjs/packages/rate/index.d.ts +1 -1
- package/dist/cjs/packages/rate/rate.js +54 -8
- package/dist/cjs/packages/rate/style/rate.scss +244 -76
- package/dist/cjs/packages/rate/style/style.css +198 -68
- package/dist/cjs/packages/rate/style-jmapp/rate.scss +244 -76
- package/dist/cjs/packages/rate/style-jmapp/style.css +198 -68
- package/dist/cjs/packages/rate/style-jrkf/rate.scss +244 -76
- package/dist/cjs/packages/rate/style-jrkf/style.css +198 -68
- package/dist/cjs/packages/shortpassword/shortpassword.js +1 -1
- package/dist/cjs/packages/signature/signature.js +1 -1
- package/dist/cjs/packages/skeleton/skeleton.js +1 -1
- package/dist/cjs/packages/step/step.js +1 -1
- package/dist/cjs/packages/steps/style/style.css +1 -1
- package/dist/cjs/packages/sticky/sticky.js +1 -1
- package/dist/cjs/packages/switch/switch.js +1 -1
- package/dist/cjs/packages/tabbaritem/tabbaritem.js +1 -1
- package/dist/cjs/packages/table/table.js +1 -1
- package/dist/cjs/packages/tabs/tabs.js +1 -1
- package/dist/cjs/packages/textarea/textarea.js +1 -1
- package/dist/cjs/packages/timeselect/timeselect.js +1 -1
- package/dist/cjs/packages/tour/tour.js +1 -1
- package/dist/cjs/packages/trendarrow/trendarrow.js +1 -1
- package/dist/cjs/packages/video/video.js +1 -1
- package/dist/cjs/packages/virtuallist/utils.js +1 -1
- package/dist/cjs/packages/virtuallist/virtuallist.js +1 -1
- package/dist/cjs/types/spec/empty/base.d.ts +12 -8
- package/dist/cjs/types/spec/empty/base.js +28 -1
- package/dist/cjs/types/spec/rate/base.d.ts +3 -0
- package/dist/cjs/utils/scale-f.js +1 -3
- package/dist/es/hooks/taro/use-custom-event.js +3 -3
- package/dist/es/hooks/taro/use-lock-scoll.js +1 -1
- package/dist/es/hooks/use-click-away.js +2 -2
- package/dist/es/hooks/use-lock-scroll.js +3 -3
- package/dist/es/hooks/use-pagination.js +1 -1
- package/dist/es/hooks/use-ref-state.js +3 -3
- package/dist/es/hooks/use-touch.js +13 -13
- package/dist/es/hooks/use-watch.js +1 -1
- package/dist/es/locales/en-US.js +4 -4
- package/dist/es/locales/id-ID.js +4 -4
- package/dist/es/locales/ja-JP.js +4 -4
- package/dist/es/locales/tr-TR.js +4 -4
- package/dist/es/locales/vi-VN.js +4 -4
- package/dist/es/locales/zh-CN.js +4 -4
- package/dist/es/locales/zh-TW.js +4 -4
- package/dist/es/locales/zh-UG.js +4 -4
- package/dist/es/packages/actionsheet/actionsheet.js +8 -8
- package/dist/es/packages/address/address.js +10 -10
- package/dist/es/packages/address/cascaderRender.js +4 -4
- package/dist/es/packages/address/elevatorRender.js +17 -17
- package/dist/es/packages/address/existRender.js +5 -5
- package/dist/es/packages/address/utils.js +5 -5
- package/dist/es/packages/animate/animate.js +4 -4
- package/dist/es/packages/animatingnumbers/countup.js +2 -2
- package/dist/es/packages/audio/audio.js +26 -26
- package/dist/es/packages/avatar/avatar.js +4 -4
- package/dist/es/packages/avatarcropper/avatarcropper.js +20 -20
- package/dist/es/packages/avatargroup/avatargroup.js +1 -1
- package/dist/es/packages/backtop/backtop.js +3 -3
- package/dist/es/packages/badge/badge.js +3 -3
- package/dist/es/packages/barrage/barrage.js +5 -5
- package/dist/es/packages/button/button.js +2 -2
- package/dist/es/packages/calendar/calendar.js +12 -12
- package/dist/es/packages/calendar/utils.js +7 -7
- package/dist/es/packages/calendarcard/calendarcard.js +22 -22
- package/dist/es/packages/calendarcard/icon.js +4 -4
- package/dist/es/packages/calendarcard/utils.js +5 -5
- package/dist/es/packages/calendaritem/calendaritem.js +32 -32
- package/dist/es/packages/card/card.js +2 -2
- package/dist/es/packages/cascader/cascader.js +15 -15
- package/dist/es/packages/cascader/utils.js +6 -6
- package/dist/es/packages/cell/cell.js +5 -5
- package/dist/es/packages/cellgroup/cellgroup.js +2 -2
- package/dist/es/packages/checkbox/checkbox.js +10 -10
- package/dist/es/packages/checkboxgroup/checkboxgroup.js +7 -7
- package/dist/es/packages/circleprogress/circleprogress.js +5 -5
- package/dist/es/packages/col/col.js +2 -2
- package/dist/es/packages/collapse/collapse.js +3 -3
- package/dist/es/packages/collapse/context.js +2 -2
- package/dist/es/packages/collapseitem/collapseitem.js +5 -5
- package/dist/es/packages/configprovider/configprovider.js +5 -5
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/countdown.js +12 -12
- package/dist/es/packages/datepicker/datepicker.js +12 -12
- package/dist/es/packages/datepicker/utils.js +7 -7
- package/dist/es/packages/datepickerview/datepickerview.js +5 -5
- package/dist/es/packages/dialog/confirm.js +8 -8
- package/dist/es/packages/dialog/content.js +5 -5
- package/dist/es/packages/dialog/dialog.js +23 -23
- package/dist/es/packages/divider/divider.js +3 -3
- package/dist/es/packages/drag/drag.js +4 -4
- package/dist/es/packages/elevator/elevator.js +14 -14
- package/dist/es/packages/ellipsis/ellipsis.js +11 -11
- package/dist/es/packages/empty/empty.d.ts +4 -11
- package/dist/es/packages/empty/empty.js +23 -19
- package/dist/es/packages/empty/index.d.ts +1 -1
- package/dist/es/packages/empty/style/empty.scss +97 -31
- package/dist/es/packages/empty/style/style.css +77 -32
- package/dist/es/packages/empty/style-jmapp/empty.scss +97 -31
- package/dist/es/packages/empty/style-jmapp/style.css +77 -32
- package/dist/es/packages/empty/style-jrkf/empty.scss +97 -31
- package/dist/es/packages/empty/style-jrkf/style.css +77 -32
- package/dist/es/packages/fixednav/fixednav.js +8 -8
- package/dist/es/packages/form/form.js +6 -6
- package/dist/es/packages/form/useform.js +4 -4
- package/dist/es/packages/formitem/formitem.js +1 -1
- package/dist/es/packages/grid/context.js +1 -1
- package/dist/es/packages/grid/grid.js +4 -4
- package/dist/es/packages/griditem/griditem.js +6 -6
- package/dist/es/packages/hoverbutton/hoverbutton.js +1 -1
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +4 -4
- package/dist/es/packages/hoverbuttonitem/utils.js +1 -1
- package/dist/es/packages/image/image.js +8 -8
- package/dist/es/packages/imagepreview/imagepreview.js +13 -13
- package/dist/es/packages/indicator/indicator.js +5 -5
- package/dist/es/packages/infiniteloading/infiniteloading.js +13 -13
- package/dist/es/packages/input/input.js +13 -13
- package/dist/es/packages/inputnumber/inputnumber.js +12 -12
- package/dist/es/packages/layout/layout.js +1 -1
- package/dist/es/packages/loading/loading.js +3 -3
- package/dist/es/packages/menu/menu.js +13 -13
- package/dist/es/packages/menuitem/menuitem.js +10 -10
- package/dist/es/packages/navbar/navbar.js +7 -7
- package/dist/es/packages/noticebar/noticebar.js +25 -25
- package/dist/es/packages/notify/Notification.js +1 -1
- package/dist/es/packages/notify/notify.js +3 -3
- package/dist/es/packages/numberkeyboard/numberkeyboard.js +13 -13
- package/dist/es/packages/overlay/overlay.js +6 -6
- package/dist/es/packages/pagination/pagination.js +8 -8
- package/dist/es/packages/picker/picker.js +15 -15
- package/dist/es/packages/pickerview/pickerroller.js +10 -10
- package/dist/es/packages/pickerview/pickerview.js +3 -3
- package/dist/es/packages/pickerview/utils.js +6 -6
- package/dist/es/packages/popover/popover.js +13 -13
- package/dist/es/packages/popup/popup.js +22 -22
- package/dist/es/packages/price/price.js +8 -8
- package/dist/es/packages/progress/progress.js +5 -5
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +7 -7
- package/dist/es/packages/quickenter/quickenter.js +14 -14
- package/dist/es/packages/radio/radio.js +11 -11
- package/dist/es/packages/radiogroup/radiogroup.js +6 -6
- package/dist/es/packages/range/range.js +7 -7
- package/dist/es/packages/range/utils.js +2 -2
- package/dist/es/packages/rate/index.d.ts +1 -1
- package/dist/es/packages/rate/rate.js +65 -19
- package/dist/es/packages/rate/style/rate.scss +244 -76
- package/dist/es/packages/rate/style/style.css +198 -68
- package/dist/es/packages/rate/style-jmapp/rate.scss +244 -76
- package/dist/es/packages/rate/style-jmapp/style.css +198 -68
- package/dist/es/packages/rate/style-jrkf/rate.scss +244 -76
- package/dist/es/packages/rate/style-jrkf/style.css +198 -68
- package/dist/es/packages/resultpage/resultpage.js +1 -1
- package/dist/es/packages/row/row.js +4 -4
- package/dist/es/packages/safearea/safearea.js +1 -1
- package/dist/es/packages/searchbar/searchbar.js +3 -3
- package/dist/es/packages/segmented/segmented.js +4 -4
- package/dist/es/packages/shortpassword/shortpassword.js +7 -7
- package/dist/es/packages/sidebar/sidebar.js +8 -8
- package/dist/es/packages/sidebar/utils.js +1 -1
- package/dist/es/packages/sidebaritem/sidebaritem.js +1 -1
- package/dist/es/packages/signature/signature.js +12 -12
- package/dist/es/packages/skeleton/skeleton.js +4 -4
- package/dist/es/packages/space/space.js +1 -1
- package/dist/es/packages/step/step.js +2 -2
- package/dist/es/packages/steps/steps.js +1 -1
- package/dist/es/packages/steps/style/style.css +1 -1
- package/dist/es/packages/sticky/sticky.js +4 -4
- package/dist/es/packages/swipe/swipe.js +16 -16
- package/dist/es/packages/swiper/effects/default.js +2 -2
- package/dist/es/packages/swiper/effects/focus.js +4 -4
- package/dist/es/packages/swiper/swiper.js +14 -14
- package/dist/es/packages/swiperitem/swiperitem.js +2 -2
- package/dist/es/packages/switch/switch.js +6 -6
- package/dist/es/packages/tabbar/tabbar.js +2 -2
- package/dist/es/packages/tabbaritem/tabbaritem.js +10 -10
- package/dist/es/packages/table/table.js +10 -10
- package/dist/es/packages/tabpane/tabpane.js +1 -1
- package/dist/es/packages/tabs/tabs.js +10 -10
- package/dist/es/packages/tag/tag.js +10 -10
- package/dist/es/packages/textarea/textarea.js +12 -12
- package/dist/es/packages/timedetail/timedetail.js +3 -3
- package/dist/es/packages/timeselect/timeselect.js +6 -6
- package/dist/es/packages/toast/Notification.js +1 -1
- package/dist/es/packages/toast/toast.js +2 -2
- package/dist/es/packages/tour/tour.js +11 -11
- package/dist/es/packages/trendarrow/trendarrow.js +4 -4
- package/dist/es/packages/uploader/preview.js +8 -8
- package/dist/es/packages/uploader/uploader.js +15 -15
- package/dist/es/packages/video/video.js +4 -4
- package/dist/es/packages/virtuallist/utils.js +5 -5
- package/dist/es/packages/virtuallist/virtuallist.js +2 -2
- package/dist/es/packages/watermark/watermark.js +2 -2
- package/dist/es/types/spec/empty/base.d.ts +15 -11
- package/dist/es/types/spec/empty/base.js +13 -1
- package/dist/es/types/spec/rate/base.d.ts +9 -0
- package/dist/es/utils/clamp.js +1 -1
- package/dist/es/utils/date.js +3 -3
- package/dist/es/utils/get-rect.js +1 -1
- package/dist/es/utils/interceptor.js +1 -1
- package/dist/es/utils/is-date.js +1 -1
- package/dist/es/utils/is-empty.js +1 -1
- package/dist/es/utils/is-function.js +1 -1
- package/dist/es/utils/is-object.js +1 -1
- package/dist/es/utils/is-promise.js +1 -1
- package/dist/es/utils/pad-zero.js +1 -1
- package/dist/es/utils/px-check.js +1 -1
- package/dist/es/utils/scale-f.js +2 -4
- package/dist/es/utils/sleep.js +1 -1
- package/dist/es/utils/taro/ConfigurableCSSTransition.js +1 -1
- package/dist/es/utils/taro/get-rect-by-id.js +1 -1
- package/dist/es/utils/taro/get-rect.js +3 -3
- package/dist/es/utils/taro/get-system-info.js +2 -2
- package/dist/es/utils/taro/platform.js +4 -4
- package/dist/es/utils/upper-case-first.js +1 -1
- package/dist/nutui.react.umd.js +1146 -1080
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +41 -41
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +42 -42
- package/dist/style.css +1 -1
- package/dist/style.scss +35 -35
- package/dist/styles/variables-daojia.scss +25 -12
- package/dist/styles/variables-jmapp.scss +42 -17
- package/dist/styles/variables-jrkf.scss +24 -20
- package/dist/styles/variables.scss +32 -24
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
2
|
import { isFunction } from "../utils";
|
|
3
|
-
var getTargetElement = function(target) {
|
|
3
|
+
var getTargetElement = function getTargetElement(target) {
|
|
4
4
|
var targetElement;
|
|
5
5
|
if (isFunction(target)) {
|
|
6
6
|
targetElement = target();
|
|
@@ -14,7 +14,7 @@ var getTargetElement = function(target) {
|
|
|
14
14
|
export default function useClickAway(onClickAway, target) {
|
|
15
15
|
var // eslint-disable-next-line default-param-last
|
|
16
16
|
eventName = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'click', useCapture = arguments.length > 3 ? arguments[3] : void 0, isListener = arguments.length > 4 ? arguments[4] : void 0, outerVar = arguments.length > 5 ? arguments[5] : void 0;
|
|
17
|
-
var handler = function(event) {
|
|
17
|
+
var handler = function handler(event) {
|
|
18
18
|
var targets = Array.isArray(target) ? target : [
|
|
19
19
|
target
|
|
20
20
|
];
|
|
@@ -17,7 +17,7 @@ function getScrollableElement(el) {
|
|
|
17
17
|
// 移植自vant:https://github.com/youzan/vant/blob/HEAD/src/composables/use-lock-scroll.ts
|
|
18
18
|
export function useLockScroll(rootRef, shouldLock) {
|
|
19
19
|
var touch = useTouch();
|
|
20
|
-
var onTouchMove = function(event) {
|
|
20
|
+
var onTouchMove = function onTouchMove(event) {
|
|
21
21
|
touch.move(event);
|
|
22
22
|
var direction = touch.deltaY.current > 0 ? '10' : '01';
|
|
23
23
|
var el = getScrollParent(event.target, rootRef.current);
|
|
@@ -43,7 +43,7 @@ export function useLockScroll(rootRef, shouldLock) {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
var lock = function() {
|
|
46
|
+
var lock = function lock() {
|
|
47
47
|
document.addEventListener('touchstart', touch.start);
|
|
48
48
|
document.addEventListener('touchmove', onTouchMove, passiveSupported ? {
|
|
49
49
|
passive: false
|
|
@@ -53,7 +53,7 @@ export function useLockScroll(rootRef, shouldLock) {
|
|
|
53
53
|
}
|
|
54
54
|
totalLockCount++;
|
|
55
55
|
};
|
|
56
|
-
var unlock = function() {
|
|
56
|
+
var unlock = function unlock() {
|
|
57
57
|
if (totalLockCount) {
|
|
58
58
|
document.removeEventListener('touchstart', touch.start);
|
|
59
59
|
document.removeEventListener('touchmove', onTouchMove);
|
|
@@ -68,7 +68,7 @@ function addEllipses(nodes, param) {
|
|
|
68
68
|
}
|
|
69
69
|
return nodes;
|
|
70
70
|
}
|
|
71
|
-
export var usePagination = function(options) {
|
|
71
|
+
export var usePagination = function usePagination(options) {
|
|
72
72
|
var mergedOptions = _object_spread({}, defaultPaginationOptions, options);
|
|
73
73
|
var total = mergedOptions.total, itemsPerPage = mergedOptions.itemsPerPage;
|
|
74
74
|
var nodesCount = Math.ceil((total || 0) / itemsPerPage) || 1;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
2
2
|
import { useRef, useState } from "react";
|
|
3
|
-
export var getRefValue = function(ref) {
|
|
3
|
+
export var getRefValue = function getRefValue(ref) {
|
|
4
4
|
return ref.current;
|
|
5
5
|
};
|
|
6
|
-
export var useRefState = function(param) {
|
|
6
|
+
export var useRefState = function useRefState(param) {
|
|
7
7
|
var ref = useRef(param);
|
|
8
8
|
var _useState = _sliced_to_array(useState(param), 2), setState = _useState[1];
|
|
9
|
-
var updateState = function(p) {
|
|
9
|
+
var updateState = function updateState(p) {
|
|
10
10
|
ref.current = p;
|
|
11
11
|
setState(p);
|
|
12
12
|
};
|
|
@@ -21,13 +21,13 @@ export function useTouch() {
|
|
|
21
21
|
var last = useRef(false);
|
|
22
22
|
var velocity = useRef(0);
|
|
23
23
|
var touchTime = useRef(Date.now());
|
|
24
|
-
var isVertical = function() {
|
|
24
|
+
var isVertical = function isVertical() {
|
|
25
25
|
return direction.current === 'vertical';
|
|
26
26
|
};
|
|
27
|
-
var isHorizontal = function() {
|
|
27
|
+
var isHorizontal = function isHorizontal() {
|
|
28
28
|
return direction.current === 'horizontal';
|
|
29
29
|
};
|
|
30
|
-
var reset = function() {
|
|
30
|
+
var reset = function reset() {
|
|
31
31
|
touchTime.current = Date.now();
|
|
32
32
|
deltaX.current = 0;
|
|
33
33
|
deltaY.current = 0;
|
|
@@ -37,27 +37,27 @@ export function useTouch() {
|
|
|
37
37
|
direction.current = '';
|
|
38
38
|
last.current = false;
|
|
39
39
|
};
|
|
40
|
-
var getTouch = function(event) {
|
|
40
|
+
var getTouch = function getTouch(event) {
|
|
41
41
|
var touch = event.touches ? event.touches[0] : event.nativeEvent;
|
|
42
42
|
return touch;
|
|
43
43
|
};
|
|
44
|
-
var getX = function(touch) {
|
|
44
|
+
var getX = function getX(touch) {
|
|
45
|
+
var _ref, _ref1, _touch_screenX;
|
|
45
46
|
if (typeof touch.clientX !== 'undefined' && typeof touch.pageX !== 'undefined') return touch.pageX;
|
|
46
|
-
|
|
47
|
-
return (_ref1 = (_ref = (_touch_screenX = touch.screenX) !== null && _touch_screenX !== void 0 ? _touch_screenX : touch.pageX) !== null && _ref !== void 0 ? _ref : touch.clientX) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
47
|
+
return (_ref = (_ref1 = (_touch_screenX = touch.screenX) !== null && _touch_screenX !== void 0 ? _touch_screenX : touch.pageX) !== null && _ref1 !== void 0 ? _ref1 : touch.clientX) !== null && _ref !== void 0 ? _ref : 0;
|
|
48
48
|
};
|
|
49
|
-
var getY = function(touch) {
|
|
49
|
+
var getY = function getY(touch) {
|
|
50
|
+
var _ref, _ref1, _touch_screenY;
|
|
50
51
|
if (typeof touch.clientY !== 'undefined' && typeof touch.pageY !== 'undefined') return touch.pageY;
|
|
51
|
-
|
|
52
|
-
return (_ref1 = (_ref = (_touch_screenY = touch.screenY) !== null && _touch_screenY !== void 0 ? _touch_screenY : touch.pageY) !== null && _ref !== void 0 ? _ref : touch.clientY) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
52
|
+
return (_ref = (_ref1 = (_touch_screenY = touch.screenY) !== null && _touch_screenY !== void 0 ? _touch_screenY : touch.pageY) !== null && _ref1 !== void 0 ? _ref1 : touch.clientY) !== null && _ref !== void 0 ? _ref : 0;
|
|
53
53
|
};
|
|
54
|
-
var start = function(event) {
|
|
54
|
+
var start = function start(event) {
|
|
55
55
|
reset();
|
|
56
56
|
touchTime.current = Date.now();
|
|
57
57
|
startX.current = getX(getTouch(event));
|
|
58
58
|
startY.current = getY(getTouch(event));
|
|
59
59
|
};
|
|
60
|
-
var move = function(event) {
|
|
60
|
+
var move = function move(event) {
|
|
61
61
|
var touch = getTouch(event);
|
|
62
62
|
var clientX = getX(touch);
|
|
63
63
|
var clientY = getY(touch);
|
|
@@ -71,7 +71,7 @@ export function useTouch() {
|
|
|
71
71
|
direction.current = getDirection(offsetX.current, offsetY.current);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
var end = function(event) {
|
|
74
|
+
var end = function end(event) {
|
|
75
75
|
last.current = true;
|
|
76
76
|
velocity.current = Math.sqrt(Math.pow(deltaX.current, 2) + Math.pow(deltaY.current, 2)) / (Date.now() - touchTime.current);
|
|
77
77
|
};
|
package/dist/es/locales/en-US.js
CHANGED
|
@@ -48,13 +48,13 @@ var enUS = {
|
|
|
48
48
|
start: 'Start',
|
|
49
49
|
confirm: 'Confirm',
|
|
50
50
|
title: 'Calendar',
|
|
51
|
-
monthTitle: function(year, month) {
|
|
51
|
+
monthTitle: function monthTitle(year, month) {
|
|
52
52
|
return "".concat(year, "/").concat(Number(month) < 10 ? "0".concat(Number(month)) : month);
|
|
53
53
|
},
|
|
54
54
|
today: 'Today',
|
|
55
55
|
loadPreviousMonth: 'Load Previous Month',
|
|
56
56
|
noEarlierMonth: 'No Earlier Month',
|
|
57
|
-
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
57
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
58
58
|
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
59
59
|
var label = today ? "Today, ".concat(dateStr) : dateStr;
|
|
60
60
|
if (isActive) {
|
|
@@ -119,10 +119,10 @@ var enUS = {
|
|
|
119
119
|
},
|
|
120
120
|
comment: {
|
|
121
121
|
complaintsText: 'I have a complaint',
|
|
122
|
-
additionalReview: function(day) {
|
|
122
|
+
additionalReview: function additionalReview(day) {
|
|
123
123
|
return "Review after ".concat(day, " days of purchase");
|
|
124
124
|
},
|
|
125
|
-
additionalImages: function(length) {
|
|
125
|
+
additionalImages: function additionalImages(length) {
|
|
126
126
|
return "There are ".concat(length, " follow-up comments");
|
|
127
127
|
}
|
|
128
128
|
},
|
package/dist/es/locales/id-ID.js
CHANGED
|
@@ -48,13 +48,13 @@ var idID = {
|
|
|
48
48
|
start: 'Mulai',
|
|
49
49
|
confirm: 'Mengonfirmasi',
|
|
50
50
|
title: 'Kalender',
|
|
51
|
-
monthTitle: function(year, month) {
|
|
51
|
+
monthTitle: function monthTitle(year, month) {
|
|
52
52
|
return "".concat(year, "/").concat(Number(month) < 10 ? "0".concat(Number(month)) : month);
|
|
53
53
|
},
|
|
54
54
|
today: 'Hari ini',
|
|
55
55
|
loadPreviousMonth: 'Muat Bulan Sebelumnya',
|
|
56
56
|
noEarlierMonth: 'Tidak Ada Bulan Sebelumnya',
|
|
57
|
-
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
57
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
58
58
|
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
59
59
|
var label = today ? "Hari ini, ".concat(dateStr) : dateStr;
|
|
60
60
|
if (isActive) {
|
|
@@ -119,10 +119,10 @@ var idID = {
|
|
|
119
119
|
},
|
|
120
120
|
comment: {
|
|
121
121
|
complaintsText: 'Saya memiliki komplain',
|
|
122
|
-
additionalReview: function(day) {
|
|
122
|
+
additionalReview: function additionalReview(day) {
|
|
123
123
|
return "Ulas setelah ".concat(day, " hari dari pembelian");
|
|
124
124
|
},
|
|
125
|
-
additionalImages: function(length) {
|
|
125
|
+
additionalImages: function additionalImages(length) {
|
|
126
126
|
return "Terdapat ".concat(length, " komentar lainnya");
|
|
127
127
|
}
|
|
128
128
|
},
|
package/dist/es/locales/ja-JP.js
CHANGED
|
@@ -48,13 +48,13 @@ var jaJP = {
|
|
|
48
48
|
start: '開始',
|
|
49
49
|
confirm: '確認',
|
|
50
50
|
title: 'カレンダー選択',
|
|
51
|
-
monthTitle: function(year, month) {
|
|
51
|
+
monthTitle: function monthTitle(year, month) {
|
|
52
52
|
return "".concat(year, "年").concat(Number(month) < 10 ? "0".concat(Number(month)) : month, "月");
|
|
53
53
|
},
|
|
54
54
|
today: '今日',
|
|
55
55
|
loadPreviousMonth: '前の月を読み込む',
|
|
56
56
|
noEarlierMonth: 'これより前の月はありません',
|
|
57
|
-
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
57
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
58
58
|
if (isActive) {
|
|
59
59
|
return today ? "今日".concat(month, "月").concat(day, "日を選択しました") : "".concat(month, "月").concat(day, "日を選択しました");
|
|
60
60
|
}
|
|
@@ -117,10 +117,10 @@ var jaJP = {
|
|
|
117
117
|
},
|
|
118
118
|
comment: {
|
|
119
119
|
complaintsText: 'クレームを報告する',
|
|
120
|
-
additionalReview: function(day) {
|
|
120
|
+
additionalReview: function additionalReview(day) {
|
|
121
121
|
return "購入".concat(day, "日後の追加レビュー");
|
|
122
122
|
},
|
|
123
|
-
additionalImages: function(length) {
|
|
123
|
+
additionalImages: function additionalImages(length) {
|
|
124
124
|
return "".concat(length, "枚の追加レビュー画像");
|
|
125
125
|
}
|
|
126
126
|
},
|
package/dist/es/locales/tr-TR.js
CHANGED
|
@@ -48,13 +48,13 @@ var trTR = {
|
|
|
48
48
|
start: 'Başlangıç',
|
|
49
49
|
confirm: 'Onayla',
|
|
50
50
|
title: 'Takvim seçimi',
|
|
51
|
-
monthTitle: function(year, month) {
|
|
51
|
+
monthTitle: function monthTitle(year, month) {
|
|
52
52
|
return "".concat(year, "/").concat(Number(month) < 10 ? "0".concat(Number(month)) : month);
|
|
53
53
|
},
|
|
54
54
|
today: 'Bugün',
|
|
55
55
|
loadPreviousMonth: 'Önceki ayı yükle',
|
|
56
56
|
noEarlierMonth: 'Önceki ay yok',
|
|
57
|
-
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
57
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
58
58
|
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
59
59
|
var label = today ? "Bug\xfcn, ".concat(dateStr) : dateStr;
|
|
60
60
|
if (isActive) {
|
|
@@ -119,10 +119,10 @@ var trTR = {
|
|
|
119
119
|
},
|
|
120
120
|
comment: {
|
|
121
121
|
complaintsText: 'Şikayet etmek istiyorum',
|
|
122
|
-
additionalReview: function(day) {
|
|
122
|
+
additionalReview: function additionalReview(day) {
|
|
123
123
|
return "atın aldıktan ".concat(day, " g\xfcn sonra g\xf6zden ge\xe7irin");
|
|
124
124
|
},
|
|
125
|
-
additionalImages: function(length) {
|
|
125
|
+
additionalImages: function additionalImages(length) {
|
|
126
126
|
return " ".concat(length, " İnceleme g\xf6r\xfcnt\xfclerinin");
|
|
127
127
|
}
|
|
128
128
|
},
|
package/dist/es/locales/vi-VN.js
CHANGED
|
@@ -48,13 +48,13 @@ var viVN = {
|
|
|
48
48
|
start: 'Bắt đầu',
|
|
49
49
|
confirm: 'Xác nhận',
|
|
50
50
|
title: 'Chọn lịch',
|
|
51
|
-
monthTitle: function(year, month) {
|
|
51
|
+
monthTitle: function monthTitle(year, month) {
|
|
52
52
|
return "Th\xe1ng ".concat(month, " Năm ").concat(year);
|
|
53
53
|
},
|
|
54
54
|
today: 'Hôm nay',
|
|
55
55
|
loadPreviousMonth: 'Tải dữ liệu của tháng trước',
|
|
56
56
|
noEarlierMonth: 'Không có tháng nào sớm hơn',
|
|
57
|
-
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
57
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
58
58
|
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
59
59
|
var label = today ? "H\xf4m nay, ".concat(dateStr) : dateStr;
|
|
60
60
|
if (isActive) {
|
|
@@ -119,10 +119,10 @@ var viVN = {
|
|
|
119
119
|
},
|
|
120
120
|
comment: {
|
|
121
121
|
complaintsText: 'Tôi muốn khiếu nại',
|
|
122
|
-
additionalReview: function(day) {
|
|
122
|
+
additionalReview: function additionalReview(day) {
|
|
123
123
|
return "Đ\xe1nh gi\xe1 th\xeam sau ".concat(day, " ng\xe0y");
|
|
124
124
|
},
|
|
125
|
-
additionalImages: function(length) {
|
|
125
|
+
additionalImages: function additionalImages(length) {
|
|
126
126
|
return "".concat(length, " ảnh đ\xe1nh gi\xe1 th\xeam");
|
|
127
127
|
}
|
|
128
128
|
},
|
package/dist/es/locales/zh-CN.js
CHANGED
|
@@ -48,13 +48,13 @@ var zhCN = {
|
|
|
48
48
|
start: '开始',
|
|
49
49
|
confirm: '确认',
|
|
50
50
|
title: '日历选择',
|
|
51
|
-
monthTitle: function(year, month) {
|
|
51
|
+
monthTitle: function monthTitle(year, month) {
|
|
52
52
|
return "".concat(year, "年").concat(Number(month) < 10 ? "0".concat(Number(month)) : month, "月");
|
|
53
53
|
},
|
|
54
54
|
today: '今天',
|
|
55
55
|
loadPreviousMonth: '加载上一个月',
|
|
56
56
|
noEarlierMonth: '没有更早月份',
|
|
57
|
-
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
57
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
58
58
|
if (isActive) {
|
|
59
59
|
return today ? "已选定今日".concat(month, "月").concat(day, "号") : "已选定".concat(month, "月").concat(day, "号");
|
|
60
60
|
}
|
|
@@ -117,10 +117,10 @@ var zhCN = {
|
|
|
117
117
|
},
|
|
118
118
|
comment: {
|
|
119
119
|
complaintsText: '我要投诉',
|
|
120
|
-
additionalReview: function(day) {
|
|
120
|
+
additionalReview: function additionalReview(day) {
|
|
121
121
|
return "购买".concat(day, "天后追评");
|
|
122
122
|
},
|
|
123
|
-
additionalImages: function(length) {
|
|
123
|
+
additionalImages: function additionalImages(length) {
|
|
124
124
|
return "".concat(length, "张追评图片");
|
|
125
125
|
}
|
|
126
126
|
},
|
package/dist/es/locales/zh-TW.js
CHANGED
|
@@ -48,13 +48,13 @@ var zhCN = {
|
|
|
48
48
|
start: '開始',
|
|
49
49
|
confirm: '確認',
|
|
50
50
|
title: '日歷選擇',
|
|
51
|
-
monthTitle: function(year, month) {
|
|
51
|
+
monthTitle: function monthTitle(year, month) {
|
|
52
52
|
return "".concat(year, "年").concat(Number(month) < 10 ? "0".concat(Number(month)) : month, "月");
|
|
53
53
|
},
|
|
54
54
|
today: '今天',
|
|
55
55
|
loadPreviousMonth: '加載上一個月',
|
|
56
56
|
noEarlierMonth: '沒有更早月份',
|
|
57
|
-
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
57
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
58
58
|
if (isActive) {
|
|
59
59
|
return today ? "已選定今日".concat(month, "月").concat(day, "號") : "已選定".concat(month, "月").concat(day, "號");
|
|
60
60
|
}
|
|
@@ -117,10 +117,10 @@ var zhCN = {
|
|
|
117
117
|
},
|
|
118
118
|
comment: {
|
|
119
119
|
complaintsText: '我要投訴',
|
|
120
|
-
additionalReview: function(day) {
|
|
120
|
+
additionalReview: function additionalReview(day) {
|
|
121
121
|
return "購買".concat(day, "天後追評");
|
|
122
122
|
},
|
|
123
|
-
additionalImages: function(length) {
|
|
123
|
+
additionalImages: function additionalImages(length) {
|
|
124
124
|
return "".concat(length, "張追評圖片");
|
|
125
125
|
}
|
|
126
126
|
},
|
package/dist/es/locales/zh-UG.js
CHANGED
|
@@ -48,13 +48,13 @@ var zhUG = {
|
|
|
48
48
|
start: 'بېشى',
|
|
49
49
|
confirm: 'جەزملەشتۈرۈڭ',
|
|
50
50
|
title: 'تاللاڭ',
|
|
51
|
-
monthTitle: function(year, month) {
|
|
51
|
+
monthTitle: function monthTitle(year, month) {
|
|
52
52
|
return "".concat(year, " يىلى ").concat(Number(month) < 10 ? "0".concat(Number(month)) : month, " ئاي");
|
|
53
53
|
},
|
|
54
54
|
today: 'بۈگۈن',
|
|
55
55
|
loadPreviousMonth: 'ئالدىنقى ئاي',
|
|
56
56
|
noEarlierMonth: 'تۈگىدى',
|
|
57
|
-
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
57
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
58
58
|
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
59
59
|
var label = today ? "بۈگۈن, ".concat(dateStr) : dateStr;
|
|
60
60
|
if (isActive) {
|
|
@@ -119,10 +119,10 @@ var zhUG = {
|
|
|
119
119
|
},
|
|
120
120
|
comment: {
|
|
121
121
|
complaintsText: 'ئەرزىم بار',
|
|
122
|
-
additionalReview: function(day) {
|
|
122
|
+
additionalReview: function additionalReview(day) {
|
|
123
123
|
return "سېتىۋىلپ ".concat(day, " كۈندى كېيىن");
|
|
124
124
|
},
|
|
125
|
-
additionalImages: function(length) {
|
|
125
|
+
additionalImages: function additionalImages(length) {
|
|
126
126
|
return "".concat(length, " پارچە رەسىم");
|
|
127
127
|
}
|
|
128
128
|
},
|
|
@@ -14,10 +14,10 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
14
14
|
description: 'description'
|
|
15
15
|
},
|
|
16
16
|
cancelText: '',
|
|
17
|
-
onCancel: function() {},
|
|
18
|
-
onSelect: function() {}
|
|
17
|
+
onCancel: function onCancel() {},
|
|
18
|
+
onSelect: function onSelect() {}
|
|
19
19
|
});
|
|
20
|
-
export var ActionSheet = function(props) {
|
|
20
|
+
export var ActionSheet = function ActionSheet(props) {
|
|
21
21
|
var _mergeProps = mergeProps(defaultProps, props), children = _mergeProps.children, cancelText = _mergeProps.cancelText, optionKey = _mergeProps.optionKey, title = _mergeProps.title, description = _mergeProps.description, options = _mergeProps.options, onCancel = _mergeProps.onCancel, onSelect = _mergeProps.onSelect, visible = _mergeProps.visible, className = _mergeProps.className, style = _mergeProps.style, rest = _object_without_properties(_mergeProps, [
|
|
22
22
|
"children",
|
|
23
23
|
"cancelText",
|
|
@@ -32,10 +32,10 @@ export var ActionSheet = function(props) {
|
|
|
32
32
|
"style"
|
|
33
33
|
]);
|
|
34
34
|
var classPrefix = 'nut-actionsheet';
|
|
35
|
-
var cancelActionSheet = function() {
|
|
35
|
+
var cancelActionSheet = function cancelActionSheet() {
|
|
36
36
|
onCancel && onCancel();
|
|
37
37
|
};
|
|
38
|
-
var chooseItem = function(item, index) {
|
|
38
|
+
var chooseItem = function chooseItem(item, index) {
|
|
39
39
|
if (!item.disabled) {
|
|
40
40
|
onSelect && onSelect(item, index);
|
|
41
41
|
}
|
|
@@ -47,7 +47,7 @@ export var ActionSheet = function(props) {
|
|
|
47
47
|
title: title,
|
|
48
48
|
description: description,
|
|
49
49
|
className: classPrefix,
|
|
50
|
-
onClose: function() {
|
|
50
|
+
onClose: function onClose() {
|
|
51
51
|
onCancel && onCancel();
|
|
52
52
|
}
|
|
53
53
|
}), /*#__PURE__*/ React.createElement("div", {
|
|
@@ -60,7 +60,7 @@ export var ActionSheet = function(props) {
|
|
|
60
60
|
return /*#__PURE__*/ React.createElement("div", {
|
|
61
61
|
className: "".concat(classPrefix, "-item ").concat(statusClass),
|
|
62
62
|
key: index,
|
|
63
|
-
onClick: function() {
|
|
63
|
+
onClick: function onClick() {
|
|
64
64
|
return chooseItem(item, index);
|
|
65
65
|
}
|
|
66
66
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
@@ -70,7 +70,7 @@ export var ActionSheet = function(props) {
|
|
|
70
70
|
}, item[optionKey.description]));
|
|
71
71
|
})) : children, cancelText && /*#__PURE__*/ React.createElement("div", {
|
|
72
72
|
className: "".concat(classPrefix, "-cancel"),
|
|
73
|
-
onClick: function() {
|
|
73
|
+
onClick: function onClick() {
|
|
74
74
|
return cancelActionSheet();
|
|
75
75
|
}
|
|
76
76
|
}, cancelText)), /*#__PURE__*/ React.createElement("div", {
|
|
@@ -31,7 +31,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
31
31
|
closeIcon: null,
|
|
32
32
|
backIcon: null
|
|
33
33
|
});
|
|
34
|
-
export var InternalAddress = function(props, ref) {
|
|
34
|
+
export var InternalAddress = function InternalAddress(props, ref) {
|
|
35
35
|
var locale = useConfig().locale;
|
|
36
36
|
var _mergeProps = mergeProps(defaultProps, props), style = _mergeProps.style, className = _mergeProps.className, visible = _mergeProps.visible, defaultVisible = _mergeProps.defaultVisible, defaultValue = _mergeProps.defaultValue, children = _mergeProps.children, type = _mergeProps.type, options = _mergeProps.options, optionKey = _mergeProps.optionKey, format = _mergeProps.format, height = _mergeProps.height, title = _mergeProps.title, existList = _mergeProps.existList, custom = _mergeProps.custom, selectIcon = _mergeProps.selectIcon, defaultIcon = _mergeProps.defaultIcon, closeIcon = _mergeProps.closeIcon, backIcon = _mergeProps.backIcon, hotList = _mergeProps.hotList, onChange = _mergeProps.onChange, onExistSelect = _mergeProps.onExistSelect, onClose = _mergeProps.onClose, onSwitch = _mergeProps.onSwitch, rest = _object_without_properties(_mergeProps, [
|
|
37
37
|
"style",
|
|
@@ -75,11 +75,11 @@ export var InternalAddress = function(props, ref) {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
});
|
|
78
|
-
var handleClose = function() {
|
|
78
|
+
var handleClose = function handleClose() {
|
|
79
79
|
setInnerVisible(false);
|
|
80
80
|
onClose && onClose();
|
|
81
81
|
};
|
|
82
|
-
var renderLeftOnCascaderSwitch = function() {
|
|
82
|
+
var renderLeftOnCascaderSwitch = function renderLeftOnCascaderSwitch() {
|
|
83
83
|
if (!custom) return null;
|
|
84
84
|
return /*#__PURE__*/ React.createElement("div", {
|
|
85
85
|
className: "".concat(classPrefix, "-left-icon"),
|
|
@@ -88,18 +88,18 @@ export var InternalAddress = function(props, ref) {
|
|
|
88
88
|
color: "#cccccc"
|
|
89
89
|
}));
|
|
90
90
|
};
|
|
91
|
-
var selectedExistItem = function(data) {
|
|
91
|
+
var selectedExistItem = function selectedExistItem(data) {
|
|
92
92
|
onExistSelect && onExistSelect(data);
|
|
93
93
|
handleClose();
|
|
94
94
|
};
|
|
95
|
-
var onSwitchModule = function() {
|
|
95
|
+
var onSwitchModule = function onSwitchModule() {
|
|
96
96
|
var nextType = currentType === 'exist' ? 'cascader' : 'exist';
|
|
97
97
|
setCurrentType(nextType);
|
|
98
98
|
onSwitch && onSwitch({
|
|
99
99
|
type: nextType
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
|
-
var renderElevator = function() {
|
|
102
|
+
var renderElevator = function renderElevator() {
|
|
103
103
|
return /*#__PURE__*/ React.createElement(ElevatorRender, {
|
|
104
104
|
visible: innerVisible,
|
|
105
105
|
closeable: true,
|
|
@@ -114,12 +114,12 @@ export var InternalAddress = function(props, ref) {
|
|
|
114
114
|
type: currentType,
|
|
115
115
|
height: height,
|
|
116
116
|
onClose: handleClose,
|
|
117
|
-
onChange: function(val, params) {
|
|
117
|
+
onChange: function onChange1(val, params) {
|
|
118
118
|
onChange === null || onChange === void 0 ? void 0 : onChange(val, params);
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
};
|
|
122
|
-
var renderCascator = function() {
|
|
122
|
+
var renderCascator = function renderCascator() {
|
|
123
123
|
return /*#__PURE__*/ React.createElement(CascaderRender, {
|
|
124
124
|
visible: innerVisible,
|
|
125
125
|
closeable: true,
|
|
@@ -133,12 +133,12 @@ export var InternalAddress = function(props, ref) {
|
|
|
133
133
|
type: currentType,
|
|
134
134
|
height: height,
|
|
135
135
|
onClose: handleClose,
|
|
136
|
-
onChange: function(val, params) {
|
|
136
|
+
onChange: function onChange1(val, params) {
|
|
137
137
|
onChange && onChange(val, params);
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
-
var renderExist = function() {
|
|
141
|
+
var renderExist = function renderExist() {
|
|
142
142
|
return /*#__PURE__*/ React.createElement(Popup, {
|
|
143
143
|
visible: innerVisible,
|
|
144
144
|
position: "bottom",
|
|
@@ -16,8 +16,8 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
16
16
|
format: {},
|
|
17
17
|
height: '200px'
|
|
18
18
|
});
|
|
19
|
-
export var CascaderRender = function(props) {
|
|
20
|
-
var
|
|
19
|
+
export var CascaderRender = function CascaderRender(props) {
|
|
20
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), children = _$_object_spread.children, visible = _$_object_spread.visible, type = _$_object_spread.type, height = _$_object_spread.height, options = _$_object_spread.options, title = _$_object_spread.title, left = _$_object_spread.left, value = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, optionKey = _$_object_spread.optionKey, format = _$_object_spread.format, onClose = _$_object_spread.onClose, onChange = _$_object_spread.onChange, onPathChange = _$_object_spread.onPathChange, rest = _object_without_properties(_$_object_spread, [
|
|
21
21
|
"children",
|
|
22
22
|
"visible",
|
|
23
23
|
"type",
|
|
@@ -42,10 +42,10 @@ export var CascaderRender = function(props) {
|
|
|
42
42
|
options: options,
|
|
43
43
|
format: format,
|
|
44
44
|
optionKey: optionKey,
|
|
45
|
-
onClose: function() {
|
|
45
|
+
onClose: function onClose1() {
|
|
46
46
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
47
47
|
},
|
|
48
|
-
onChange: function(val, params) {
|
|
48
|
+
onChange: function onChange1(val, params) {
|
|
49
49
|
onChange === null || onChange === void 0 ? void 0 : onChange(val, params);
|
|
50
50
|
},
|
|
51
51
|
onPathChange: onPathChange
|