@arco-design/mobile-react 2.27.4 → 2.28.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 +33 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/_helpers/hooks.d.ts +1 -0
- package/cjs/_helpers/hooks.js +44 -28
- package/cjs/action-sheet/index.d.ts +2 -2
- package/cjs/badge/index.js +2 -1
- package/cjs/badge/style/css/index.css +12 -0
- package/cjs/badge/style/index.less +3 -3
- package/cjs/button/style/css/index.css +4 -0
- package/cjs/button/style/index.less +1 -1
- package/cjs/cell/style/css/index.css +7 -0
- package/cjs/cell/style/index.less +4 -1
- package/cjs/checkbox/style/css/index.css +13 -0
- package/cjs/checkbox/style/index.less +3 -3
- package/cjs/collapse/collapse.js +12 -6
- package/cjs/dialog/index.d.ts +2 -2
- package/cjs/form/style/css/index.css +16 -0
- package/cjs/form/style/index.less +4 -4
- package/cjs/image-preview/index.d.ts +2 -2
- package/cjs/image-preview/index.js +4 -2
- package/cjs/image-preview/style/css/index.css +3 -0
- package/cjs/image-preview/style/index.less +4 -0
- package/cjs/index.d.ts +12 -12
- package/cjs/index.js +46 -46
- package/cjs/load-more/index.d.ts +5 -0
- package/cjs/load-more/index.js +2 -1
- package/cjs/masking/index.d.ts +2 -2
- package/cjs/masking/index.js +4 -2
- package/cjs/notify/index.d.ts +8 -8
- package/cjs/popover/popover.js +10 -2
- package/cjs/popup/index.d.ts +2 -2
- package/cjs/popup-swiper/index.d.ts +2 -2
- package/cjs/radio/style/css/index.css +8 -0
- package/cjs/radio/style/index.less +2 -2
- package/cjs/rate/index.js +5 -3
- package/cjs/rate/style/css/index.css +4 -0
- package/cjs/rate/style/index.less +4 -0
- package/cjs/slider/hooks/index.d.ts +1 -1
- package/cjs/slider/popover.js +6 -2
- package/cjs/stepper/hooks/useButtonClick.js +8 -9
- package/cjs/sticky/index.d.ts +5 -0
- package/cjs/sticky/index.js +20 -7
- package/cjs/style.d.ts +13 -13
- package/cjs/style.js +24 -24
- package/cjs/switch/index.js +7 -2
- package/cjs/switch/style/css/index.css +44 -0
- package/cjs/switch/style/index.less +19 -7
- package/cjs/tabs/demo/style/css/mobile.css +11 -0
- package/cjs/tabs/demo/style/mobile.less +5 -1
- package/cjs/tabs/index.js +14 -5
- package/cjs/tabs/style/css/index.css +32 -7
- package/cjs/tabs/style/index.less +9 -14
- package/cjs/tabs/tab-cell-underline.js +14 -5
- package/cjs/tabs/tab-cell.js +15 -7
- package/cjs/tabs/tab-pane.js +4 -3
- package/cjs/tabs/type.d.ts +1 -0
- package/cjs/toast/index.d.ts +12 -12
- package/cjs/toast/index.js +5 -2
- package/dist/index.js +13914 -13836
- package/dist/index.min.js +4 -4
- package/dist/style.css +3366 -3236
- package/dist/style.min.css +1 -1
- package/esm/_helpers/hooks.d.ts +1 -0
- package/esm/_helpers/hooks.js +43 -29
- package/esm/action-sheet/index.d.ts +2 -2
- package/esm/badge/index.js +2 -1
- package/esm/badge/style/css/index.css +12 -0
- package/esm/badge/style/index.less +3 -3
- package/esm/button/style/css/index.css +4 -0
- package/esm/button/style/index.less +1 -1
- package/esm/cell/style/css/index.css +7 -0
- package/esm/cell/style/index.less +4 -1
- package/esm/checkbox/style/css/index.css +13 -0
- package/esm/checkbox/style/index.less +3 -3
- package/esm/collapse/collapse.js +14 -8
- package/esm/dialog/index.d.ts +2 -2
- package/esm/form/style/css/index.css +16 -0
- package/esm/form/style/index.less +4 -4
- package/esm/image-preview/index.d.ts +2 -2
- package/esm/image-preview/index.js +4 -2
- package/esm/image-preview/style/css/index.css +3 -0
- package/esm/image-preview/style/index.less +4 -0
- package/esm/index.d.ts +12 -12
- package/esm/index.js +12 -12
- package/esm/load-more/index.d.ts +5 -0
- package/esm/load-more/index.js +2 -1
- package/esm/masking/index.d.ts +2 -2
- package/esm/masking/index.js +4 -2
- package/esm/notify/index.d.ts +8 -8
- package/esm/popover/popover.js +10 -2
- package/esm/popup/index.d.ts +2 -2
- package/esm/popup-swiper/index.d.ts +2 -2
- package/esm/radio/style/css/index.css +8 -0
- package/esm/radio/style/index.less +2 -2
- package/esm/rate/index.js +5 -3
- package/esm/rate/style/css/index.css +4 -0
- package/esm/rate/style/index.less +4 -0
- package/esm/slider/hooks/index.d.ts +1 -1
- package/esm/slider/popover.js +7 -3
- package/esm/stepper/hooks/useButtonClick.js +8 -9
- package/esm/sticky/index.d.ts +5 -0
- package/esm/sticky/index.js +20 -7
- package/esm/style.d.ts +13 -13
- package/esm/style.js +13 -13
- package/esm/switch/index.js +9 -4
- package/esm/switch/style/css/index.css +44 -0
- package/esm/switch/style/index.less +19 -7
- package/esm/tabs/demo/style/css/mobile.css +11 -0
- package/esm/tabs/demo/style/mobile.less +5 -1
- package/esm/tabs/index.js +16 -7
- package/esm/tabs/style/css/index.css +32 -7
- package/esm/tabs/style/index.less +9 -14
- package/esm/tabs/tab-cell-underline.js +14 -6
- package/esm/tabs/tab-cell.js +15 -8
- package/esm/tabs/tab-pane.js +4 -3
- package/esm/tabs/type.d.ts +1 -0
- package/esm/toast/index.d.ts +12 -12
- package/esm/toast/index.js +5 -2
- package/package.json +3 -3
- package/umd/_helpers/hooks.d.ts +1 -0
- package/umd/_helpers/hooks.js +44 -28
- package/umd/action-sheet/index.d.ts +2 -2
- package/umd/badge/index.js +2 -1
- package/umd/badge/style/css/index.css +12 -0
- package/umd/badge/style/index.less +3 -3
- package/umd/button/style/css/index.css +4 -0
- package/umd/button/style/index.less +1 -1
- package/umd/cell/style/css/index.css +7 -0
- package/umd/cell/style/index.less +4 -1
- package/umd/checkbox/style/css/index.css +13 -0
- package/umd/checkbox/style/index.less +3 -3
- package/umd/collapse/collapse.js +12 -6
- package/umd/dialog/index.d.ts +2 -2
- package/umd/form/style/css/index.css +16 -0
- package/umd/form/style/index.less +4 -4
- package/umd/image-preview/index.d.ts +2 -2
- package/umd/image-preview/index.js +4 -2
- package/umd/image-preview/style/css/index.css +3 -0
- package/umd/image-preview/style/index.less +4 -0
- package/umd/index.d.ts +12 -12
- package/umd/index.js +28 -28
- package/umd/load-more/index.d.ts +5 -0
- package/umd/load-more/index.js +2 -1
- package/umd/masking/index.d.ts +2 -2
- package/umd/masking/index.js +4 -2
- package/umd/notify/index.d.ts +8 -8
- package/umd/popover/popover.js +10 -2
- package/umd/popup/index.d.ts +2 -2
- package/umd/popup-swiper/index.d.ts +2 -2
- package/umd/radio/style/css/index.css +8 -0
- package/umd/radio/style/index.less +2 -2
- package/umd/rate/index.js +5 -3
- package/umd/rate/style/css/index.css +4 -0
- package/umd/rate/style/index.less +4 -0
- package/umd/slider/hooks/index.d.ts +1 -1
- package/umd/slider/popover.js +6 -2
- package/umd/stepper/hooks/useButtonClick.js +8 -9
- package/umd/sticky/index.d.ts +5 -0
- package/umd/sticky/index.js +20 -7
- package/umd/style.d.ts +13 -13
- package/umd/style.js +2 -2
- package/umd/switch/index.js +7 -2
- package/umd/switch/style/css/index.css +44 -0
- package/umd/switch/style/index.less +19 -7
- package/umd/tabs/demo/style/css/mobile.css +11 -0
- package/umd/tabs/demo/style/mobile.less +5 -1
- package/umd/tabs/index.js +14 -5
- package/umd/tabs/style/css/index.css +32 -7
- package/umd/tabs/style/index.less +9 -14
- package/umd/tabs/tab-cell-underline.js +16 -9
- package/umd/tabs/tab-cell.js +17 -11
- package/umd/tabs/tab-pane.js +4 -3
- package/umd/tabs/type.d.ts +1 -0
- package/umd/toast/index.d.ts +12 -12
- package/umd/toast/index.js +5 -2
@@ -269,9 +269,9 @@ declare const _default: React.ForwardRefExoticComponent<ImagePreviewProps & Reac
|
|
269
269
|
* @param {ImagePreviewProps} config configuration
|
270
270
|
* @returns {{ close: () => void; update: (newConfig: ImagePreviewProps) => void; }}
|
271
271
|
*/
|
272
|
-
open: (config: Pick<import("../context-provider").WithGlobalContext<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>>, "style" | "ref" | "key" | "context" | "className" | "
|
272
|
+
open: (config: Pick<import("../context-provider").WithGlobalContext<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>>, "style" | "ref" | "key" | "context" | "className" | "swipeable" | "lazyloadCount" | "onChange" | "onAfterChange" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "loadingArea" | "onClose" | "fit" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "animateDurationSlide" | "loop" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "images" | "openIndex" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
273
273
|
close: () => void;
|
274
|
-
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>>, "style" | "ref" | "key" | "context" | "className" | "
|
274
|
+
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>>, "style" | "ref" | "key" | "context" | "className" | "swipeable" | "lazyloadCount" | "onChange" | "onAfterChange" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "loadingArea" | "onClose" | "fit" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "animateDurationSlide" | "loop" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "images" | "openIndex" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">) => void;
|
275
275
|
};
|
276
276
|
};
|
277
277
|
/**
|
@@ -794,7 +794,8 @@
|
|
794
794
|
return /*#__PURE__*/_react.default.createElement(_carousel.default, (0, _extends5.default)({
|
795
795
|
autoPlay: false,
|
796
796
|
loop: loop,
|
797
|
-
lazyloadCount: lazyloadCount
|
797
|
+
lazyloadCount: lazyloadCount,
|
798
|
+
stopPropagation: false
|
798
799
|
}, carouselProps), (allImages || []).map(function (image, index) {
|
799
800
|
var innerNode = /*#__PURE__*/_react.default.createElement("div", {
|
800
801
|
key: index,
|
@@ -904,7 +905,8 @@
|
|
904
905
|
timeout: displayDuration,
|
905
906
|
type: "fade",
|
906
907
|
mountOnEnter: true,
|
907
|
-
unmountOnExit: true
|
908
|
+
unmountOnExit: true,
|
909
|
+
nodeRef: domRef
|
908
910
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
909
911
|
className: (0, _mobileUtils.cls)(prefixCls + "-image-preview", 'all-border-box', {
|
910
912
|
noselect: noselect
|
package/umd/index.d.ts
CHANGED
@@ -1,34 +1,31 @@
|
|
1
|
-
export { default as
|
1
|
+
export { default as Tabs } from './tabs';
|
2
|
+
export { default as Sticky } from './sticky';
|
3
|
+
export { default as LoadMore } from './load-more';
|
4
|
+
export { default as Cell } from './cell';
|
2
5
|
export { default as ActionSheet } from './action-sheet';
|
3
6
|
export { default as Avatar } from './avatar';
|
4
7
|
export { default as Badge } from './badge';
|
8
|
+
export { default as Button } from './button';
|
5
9
|
export { default as Carousel } from './carousel';
|
6
|
-
export { default as Cell } from './cell';
|
7
10
|
export { default as Checkbox } from './checkbox';
|
8
11
|
export { default as CircleProgress } from './circle-progress';
|
9
12
|
export { default as Collapse } from './collapse';
|
10
13
|
export { default as ContextProvider } from './context-provider';
|
11
14
|
export { default as CountDown } from './count-down';
|
12
15
|
export { default as DatePicker } from './date-picker';
|
13
|
-
export { default as Divider } from './divider';
|
14
16
|
export { default as Dialog } from './dialog';
|
17
|
+
export { default as Divider } from './divider';
|
15
18
|
export { default as Dropdown } from './dropdown';
|
16
19
|
export { default as DropdownMenu } from './dropdown-menu';
|
17
20
|
export { default as Ellipsis } from './ellipsis';
|
18
21
|
export { default as Form } from './form';
|
19
|
-
export { default as Input } from './input';
|
20
|
-
export { default as Textarea } from './textarea';
|
21
|
-
export { default as Radio } from './radio';
|
22
|
-
export { default as Rate } from './rate';
|
23
|
-
export { default as Slider } from './slider';
|
24
22
|
export { default as Grid } from './grid';
|
25
23
|
export { default as Image } from './image';
|
26
|
-
export { default as ShowMonitor } from './show-monitor';
|
27
24
|
export { default as ImagePicker } from './image-picker';
|
28
25
|
export { default as ImagePreview } from './image-preview';
|
29
26
|
export { default as IndexBar } from './index-bar';
|
27
|
+
export { default as Input } from './input';
|
30
28
|
export { default as Keyboard } from './keyboard';
|
31
|
-
export { default as LoadMore } from './load-more';
|
32
29
|
export { default as Loading } from './loading';
|
33
30
|
export { default as Masking } from './masking';
|
34
31
|
export { default as NavBar } from './nav-bar';
|
@@ -43,15 +40,18 @@ export { default as PopupSwiper } from './popup-swiper';
|
|
43
40
|
export { default as Portal } from './portal';
|
44
41
|
export { default as Progress } from './progress';
|
45
42
|
export { default as PullRefresh } from './pull-refresh';
|
43
|
+
export { default as Radio } from './radio';
|
44
|
+
export { default as Rate } from './rate';
|
46
45
|
export { default as SearchBar } from './search-bar';
|
46
|
+
export { default as ShowMonitor } from './show-monitor';
|
47
|
+
export { default as Slider } from './slider';
|
47
48
|
export { default as Stepper } from './stepper';
|
48
49
|
export { default as Steps } from './steps';
|
49
|
-
export { default as Sticky } from './sticky';
|
50
50
|
export { default as SwipeAction } from './swipe-action';
|
51
51
|
export { default as SwipeLoad } from './swipe-load';
|
52
52
|
export { default as Switch } from './switch';
|
53
53
|
export { default as TabBar } from './tab-bar';
|
54
|
-
export { default as Tabs } from './tabs';
|
55
54
|
export { default as Tag } from './tag';
|
55
|
+
export { default as Textarea } from './textarea';
|
56
56
|
export { default as Toast } from './toast';
|
57
57
|
export { default as Transition } from './transition';
|
package/umd/index.js
CHANGED
@@ -1,34 +1,40 @@
|
|
1
1
|
(function (global, factory) {
|
2
2
|
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports", "./
|
3
|
+
define(["exports", "./tabs", "./sticky", "./load-more", "./cell", "./action-sheet", "./avatar", "./badge", "./button", "./carousel", "./checkbox", "./circle-progress", "./collapse", "./context-provider", "./count-down", "./date-picker", "./dialog", "./divider", "./dropdown", "./dropdown-menu", "./ellipsis", "./form", "./grid", "./image", "./image-picker", "./image-preview", "./index-bar", "./input", "./keyboard", "./loading", "./masking", "./nav-bar", "./notice-bar", "./notify", "./pagination", "./picker", "./picker-view", "./popover", "./popup", "./popup-swiper", "./portal", "./progress", "./pull-refresh", "./radio", "./rate", "./search-bar", "./show-monitor", "./slider", "./stepper", "./steps", "./swipe-action", "./swipe-load", "./switch", "./tab-bar", "./tag", "./textarea", "./toast", "./transition"], factory);
|
4
4
|
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports, require("./
|
5
|
+
factory(exports, require("./tabs"), require("./sticky"), require("./load-more"), require("./cell"), require("./action-sheet"), require("./avatar"), require("./badge"), require("./button"), require("./carousel"), require("./checkbox"), require("./circle-progress"), require("./collapse"), require("./context-provider"), require("./count-down"), require("./date-picker"), require("./dialog"), require("./divider"), require("./dropdown"), require("./dropdown-menu"), require("./ellipsis"), require("./form"), require("./grid"), require("./image"), require("./image-picker"), require("./image-preview"), require("./index-bar"), require("./input"), require("./keyboard"), require("./loading"), require("./masking"), require("./nav-bar"), require("./notice-bar"), require("./notify"), require("./pagination"), require("./picker"), require("./picker-view"), require("./popover"), require("./popup"), require("./popup-swiper"), require("./portal"), require("./progress"), require("./pull-refresh"), require("./radio"), require("./rate"), require("./search-bar"), require("./show-monitor"), require("./slider"), require("./stepper"), require("./steps"), require("./swipe-action"), require("./swipe-load"), require("./switch"), require("./tab-bar"), require("./tag"), require("./textarea"), require("./toast"), require("./transition"));
|
6
6
|
} else {
|
7
7
|
var mod = {
|
8
8
|
exports: {}
|
9
9
|
};
|
10
|
-
factory(mod.exports, global.
|
10
|
+
factory(mod.exports, global.tabs, global.sticky, global.loadMore, global.cell, global.actionSheet, global.avatar, global.badge, global.button, global.carousel, global.checkbox, global.circleProgress, global.collapse, global.contextProvider, global.countDown, global.datePicker, global.dialog, global.divider, global.dropdown, global.dropdownMenu, global.ellipsis, global.form, global.grid, global.image, global.imagePicker, global.imagePreview, global.indexBar, global.input, global.keyboard, global.loading, global.masking, global.navBar, global.noticeBar, global.notify, global.pagination, global.picker, global.pickerView, global.popover, global.popup, global.popupSwiper, global.portal, global.progress, global.pullRefresh, global.radio, global.rate, global.searchBar, global.showMonitor, global.slider, global.stepper, global.steps, global.swipeAction, global.swipeLoad, global._switch, global.tabBar, global.tag, global.textarea, global.toast, global.transition);
|
11
11
|
global.index = mod.exports;
|
12
12
|
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports,
|
13
|
+
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _tabs, _sticky, _loadMore, _cell, _actionSheet, _avatar, _badge, _button, _carousel, _checkbox, _circleProgress, _collapse, _contextProvider, _countDown, _datePicker, _dialog, _divider, _dropdown, _dropdownMenu, _ellipsis, _form, _grid, _image, _imagePicker, _imagePreview, _indexBar, _input, _keyboard, _loading, _masking, _navBar, _noticeBar, _notify, _pagination, _picker, _pickerView, _popover, _popup, _popupSwiper, _portal, _progress, _pullRefresh, _radio, _rate, _searchBar, _showMonitor, _slider, _stepper, _steps, _swipeAction, _swipeLoad, _switch, _tabBar, _tag, _textarea, _toast, _transition) {
|
14
14
|
"use strict";
|
15
15
|
|
16
16
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
17
17
|
|
18
18
|
_exports.__esModule = true;
|
19
19
|
_exports.Transition = _exports.Toast = _exports.Textarea = _exports.Tag = _exports.Tabs = _exports.TabBar = _exports.Switch = _exports.SwipeLoad = _exports.SwipeAction = _exports.Sticky = _exports.Steps = _exports.Stepper = _exports.Slider = _exports.ShowMonitor = _exports.SearchBar = _exports.Rate = _exports.Radio = _exports.PullRefresh = _exports.Progress = _exports.Portal = _exports.PopupSwiper = _exports.Popup = _exports.Popover = _exports.PickerView = _exports.Picker = _exports.Pagination = _exports.Notify = _exports.NoticeBar = _exports.NavBar = _exports.Masking = _exports.Loading = _exports.LoadMore = _exports.Keyboard = _exports.Input = _exports.IndexBar = _exports.ImagePreview = _exports.ImagePicker = _exports.Image = _exports.Grid = _exports.Form = _exports.Ellipsis = _exports.DropdownMenu = _exports.Dropdown = _exports.Divider = _exports.Dialog = _exports.DatePicker = _exports.CountDown = _exports.ContextProvider = _exports.Collapse = _exports.CircleProgress = _exports.Checkbox = _exports.Cell = _exports.Carousel = _exports.Button = _exports.Badge = _exports.Avatar = _exports.ActionSheet = void 0;
|
20
|
-
|
21
|
-
_exports.
|
20
|
+
_tabs = _interopRequireDefault(_tabs);
|
21
|
+
_exports.Tabs = _tabs.default;
|
22
|
+
_sticky = _interopRequireDefault(_sticky);
|
23
|
+
_exports.Sticky = _sticky.default;
|
24
|
+
_loadMore = _interopRequireDefault(_loadMore);
|
25
|
+
_exports.LoadMore = _loadMore.default;
|
26
|
+
_cell = _interopRequireDefault(_cell);
|
27
|
+
_exports.Cell = _cell.default;
|
22
28
|
_actionSheet = _interopRequireDefault(_actionSheet);
|
23
29
|
_exports.ActionSheet = _actionSheet.default;
|
24
30
|
_avatar = _interopRequireDefault(_avatar);
|
25
31
|
_exports.Avatar = _avatar.default;
|
26
32
|
_badge = _interopRequireDefault(_badge);
|
27
33
|
_exports.Badge = _badge.default;
|
34
|
+
_button = _interopRequireDefault(_button);
|
35
|
+
_exports.Button = _button.default;
|
28
36
|
_carousel = _interopRequireDefault(_carousel);
|
29
37
|
_exports.Carousel = _carousel.default;
|
30
|
-
_cell = _interopRequireDefault(_cell);
|
31
|
-
_exports.Cell = _cell.default;
|
32
38
|
_checkbox = _interopRequireDefault(_checkbox);
|
33
39
|
_exports.Checkbox = _checkbox.default;
|
34
40
|
_circleProgress = _interopRequireDefault(_circleProgress);
|
@@ -41,10 +47,10 @@
|
|
41
47
|
_exports.CountDown = _countDown.default;
|
42
48
|
_datePicker = _interopRequireDefault(_datePicker);
|
43
49
|
_exports.DatePicker = _datePicker.default;
|
44
|
-
_divider = _interopRequireDefault(_divider);
|
45
|
-
_exports.Divider = _divider.default;
|
46
50
|
_dialog = _interopRequireDefault(_dialog);
|
47
51
|
_exports.Dialog = _dialog.default;
|
52
|
+
_divider = _interopRequireDefault(_divider);
|
53
|
+
_exports.Divider = _divider.default;
|
48
54
|
_dropdown = _interopRequireDefault(_dropdown);
|
49
55
|
_exports.Dropdown = _dropdown.default;
|
50
56
|
_dropdownMenu = _interopRequireDefault(_dropdownMenu);
|
@@ -53,32 +59,20 @@
|
|
53
59
|
_exports.Ellipsis = _ellipsis.default;
|
54
60
|
_form = _interopRequireDefault(_form);
|
55
61
|
_exports.Form = _form.default;
|
56
|
-
_input = _interopRequireDefault(_input);
|
57
|
-
_exports.Input = _input.default;
|
58
|
-
_textarea = _interopRequireDefault(_textarea);
|
59
|
-
_exports.Textarea = _textarea.default;
|
60
|
-
_radio = _interopRequireDefault(_radio);
|
61
|
-
_exports.Radio = _radio.default;
|
62
|
-
_rate = _interopRequireDefault(_rate);
|
63
|
-
_exports.Rate = _rate.default;
|
64
|
-
_slider = _interopRequireDefault(_slider);
|
65
|
-
_exports.Slider = _slider.default;
|
66
62
|
_grid = _interopRequireDefault(_grid);
|
67
63
|
_exports.Grid = _grid.default;
|
68
64
|
_image = _interopRequireDefault(_image);
|
69
65
|
_exports.Image = _image.default;
|
70
|
-
_showMonitor = _interopRequireDefault(_showMonitor);
|
71
|
-
_exports.ShowMonitor = _showMonitor.default;
|
72
66
|
_imagePicker = _interopRequireDefault(_imagePicker);
|
73
67
|
_exports.ImagePicker = _imagePicker.default;
|
74
68
|
_imagePreview = _interopRequireDefault(_imagePreview);
|
75
69
|
_exports.ImagePreview = _imagePreview.default;
|
76
70
|
_indexBar = _interopRequireDefault(_indexBar);
|
77
71
|
_exports.IndexBar = _indexBar.default;
|
72
|
+
_input = _interopRequireDefault(_input);
|
73
|
+
_exports.Input = _input.default;
|
78
74
|
_keyboard = _interopRequireDefault(_keyboard);
|
79
75
|
_exports.Keyboard = _keyboard.default;
|
80
|
-
_loadMore = _interopRequireDefault(_loadMore);
|
81
|
-
_exports.LoadMore = _loadMore.default;
|
82
76
|
_loading = _interopRequireDefault(_loading);
|
83
77
|
_exports.Loading = _loading.default;
|
84
78
|
_masking = _interopRequireDefault(_masking);
|
@@ -107,14 +101,20 @@
|
|
107
101
|
_exports.Progress = _progress.default;
|
108
102
|
_pullRefresh = _interopRequireDefault(_pullRefresh);
|
109
103
|
_exports.PullRefresh = _pullRefresh.default;
|
104
|
+
_radio = _interopRequireDefault(_radio);
|
105
|
+
_exports.Radio = _radio.default;
|
106
|
+
_rate = _interopRequireDefault(_rate);
|
107
|
+
_exports.Rate = _rate.default;
|
110
108
|
_searchBar = _interopRequireDefault(_searchBar);
|
111
109
|
_exports.SearchBar = _searchBar.default;
|
110
|
+
_showMonitor = _interopRequireDefault(_showMonitor);
|
111
|
+
_exports.ShowMonitor = _showMonitor.default;
|
112
|
+
_slider = _interopRequireDefault(_slider);
|
113
|
+
_exports.Slider = _slider.default;
|
112
114
|
_stepper = _interopRequireDefault(_stepper);
|
113
115
|
_exports.Stepper = _stepper.default;
|
114
116
|
_steps = _interopRequireDefault(_steps);
|
115
117
|
_exports.Steps = _steps.default;
|
116
|
-
_sticky = _interopRequireDefault(_sticky);
|
117
|
-
_exports.Sticky = _sticky.default;
|
118
118
|
_swipeAction = _interopRequireDefault(_swipeAction);
|
119
119
|
_exports.SwipeAction = _swipeAction.default;
|
120
120
|
_swipeLoad = _interopRequireDefault(_swipeLoad);
|
@@ -123,10 +123,10 @@
|
|
123
123
|
_exports.Switch = _switch.default;
|
124
124
|
_tabBar = _interopRequireDefault(_tabBar);
|
125
125
|
_exports.TabBar = _tabBar.default;
|
126
|
-
_tabs = _interopRequireDefault(_tabs);
|
127
|
-
_exports.Tabs = _tabs.default;
|
128
126
|
_tag = _interopRequireDefault(_tag);
|
129
127
|
_exports.Tag = _tag.default;
|
128
|
+
_textarea = _interopRequireDefault(_textarea);
|
129
|
+
_exports.Textarea = _textarea.default;
|
130
130
|
_toast = _interopRequireDefault(_toast);
|
131
131
|
_exports.Toast = _toast.default;
|
132
132
|
_transition = _interopRequireDefault(_transition);
|
package/umd/load-more/index.d.ts
CHANGED
@@ -62,6 +62,11 @@ export interface LoadMoreProps {
|
|
62
62
|
* @default () => window
|
63
63
|
*/
|
64
64
|
getScrollContainer?: () => HTMLElement | Window | null;
|
65
|
+
/**
|
66
|
+
* 当多个 loadmore 在同一页面时,通过传入节点的 offsetHeight + offsetTop 代替 scrollHeight
|
67
|
+
* @en When multiple loadmores are on the same page, pass in the offsetHeight + offsetTop of the node instead of scrollHeight
|
68
|
+
*/
|
69
|
+
getOffsetNode?: () => HTMLElement | Window | null;
|
65
70
|
/**
|
66
71
|
* 触发loading的时机,当为click时,点击后将触发getData
|
67
72
|
* @en The timing of triggering loading, when it is click, getData will be triggered after clicking
|
package/umd/load-more/index.js
CHANGED
@@ -45,6 +45,7 @@
|
|
45
45
|
defaultStatus = _props$defaultStatus === void 0 ? 'prepare' : _props$defaultStatus,
|
46
46
|
status = props.status,
|
47
47
|
getScrollContainer = props.getScrollContainer,
|
48
|
+
getOffsetNode = props.getOffsetNode,
|
48
49
|
_props$trigger = props.trigger,
|
49
50
|
trigger = _props$trigger === void 0 ? 'scroll' : _props$trigger,
|
50
51
|
_props$threshold = props.threshold,
|
@@ -147,7 +148,7 @@
|
|
147
148
|
}, [changeStatus]);
|
148
149
|
|
149
150
|
function checkNeedTrigger(top, ths) {
|
150
|
-
var scrollHeight = (0, _mobileUtils.getScrollContainerAttribute)('scrollHeight', getScrollContainer);
|
151
|
+
var scrollHeight = getOffsetNode ? (0, _mobileUtils.getScrollContainerAttribute)('offsetHeight', getOffsetNode) + (0, _mobileUtils.getScrollContainerAttribute)('offsetTop', getOffsetNode) : (0, _mobileUtils.getScrollContainerAttribute)('scrollHeight', getScrollContainer);
|
151
152
|
var clientHeight = (0, _mobileUtils.getScrollContainerAttribute)('clientHeight', getScrollContainer);
|
152
153
|
return scrollHeight - top - clientHeight <= ths;
|
153
154
|
}
|
package/umd/masking/index.d.ts
CHANGED
@@ -205,11 +205,11 @@ declare const _default: React.ForwardRefExoticComponent<MaskingProps & React.Ref
|
|
205
205
|
* @param {MaskingProps} config Configuration
|
206
206
|
* @returns {{ close: () => void; update: (newConfig: MaskingProps) => void; }}
|
207
207
|
*/
|
208
|
-
open: (config: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "className" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "
|
208
|
+
open: (config: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove"> & {
|
209
209
|
key?: string | undefined;
|
210
210
|
}, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
211
211
|
close: () => void;
|
212
|
-
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "className" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "
|
212
|
+
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove"> & {
|
213
213
|
key?: string | undefined;
|
214
214
|
}) => void;
|
215
215
|
};
|
package/umd/masking/index.js
CHANGED
@@ -185,7 +185,8 @@
|
|
185
185
|
timeout: maskTransitionTimeout,
|
186
186
|
type: maskTransitionType,
|
187
187
|
mountOnEnter: mountOnEnter,
|
188
|
-
unmountOnExit: unmountOnExit
|
188
|
+
unmountOnExit: unmountOnExit,
|
189
|
+
nodeRef: maskRef
|
189
190
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
190
191
|
ref: maskRef,
|
191
192
|
className: (0, _mobileUtils.cls)(prefixCls + "-masking-mask", extraClass, maskClass),
|
@@ -196,7 +197,8 @@
|
|
196
197
|
timeout: contentTransitionTimeout,
|
197
198
|
type: contentTransitionType,
|
198
199
|
mountOnEnter: mountOnEnter,
|
199
|
-
unmountOnExit: unmountOnExit
|
200
|
+
unmountOnExit: unmountOnExit,
|
201
|
+
nodeRef: contentRef
|
200
202
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
201
203
|
ref: contentRef,
|
202
204
|
className: (0, _mobileUtils.cls)(prefixCls + "-masking-content", {
|
package/umd/notify/index.d.ts
CHANGED
@@ -51,8 +51,8 @@ declare const _default: React.ForwardRefExoticComponent<NotifyProps & React.RefA
|
|
51
51
|
* @param {string | NotifyProps} config
|
52
52
|
* @returns {{ update: (config: NotifyProps) => void; close: () => void }}
|
53
53
|
*/
|
54
|
-
info: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "
|
55
|
-
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "
|
54
|
+
info: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
55
|
+
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose">) => void;
|
56
56
|
close: () => void;
|
57
57
|
};
|
58
58
|
/**
|
@@ -61,8 +61,8 @@ declare const _default: React.ForwardRefExoticComponent<NotifyProps & React.RefA
|
|
61
61
|
* @param {string | NotifyProps} config
|
62
62
|
* @returns {{ update: (config: NotifyProps) => void; close: () => void }}
|
63
63
|
*/
|
64
|
-
success: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "
|
65
|
-
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "
|
64
|
+
success: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
65
|
+
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose">) => void;
|
66
66
|
close: () => void;
|
67
67
|
};
|
68
68
|
/**
|
@@ -71,8 +71,8 @@ declare const _default: React.ForwardRefExoticComponent<NotifyProps & React.RefA
|
|
71
71
|
* @param {string | NotifyProps} config
|
72
72
|
* @returns {{ update: (config: NotifyProps) => void; close: () => void }}
|
73
73
|
*/
|
74
|
-
error: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "
|
75
|
-
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "
|
74
|
+
error: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
75
|
+
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose">) => void;
|
76
76
|
close: () => void;
|
77
77
|
};
|
78
78
|
/**
|
@@ -81,8 +81,8 @@ declare const _default: React.ForwardRefExoticComponent<NotifyProps & React.RefA
|
|
81
81
|
* @param {string | NotifyProps} config
|
82
82
|
* @returns {{ update: (config: NotifyProps) => void; close: () => void }}
|
83
83
|
*/
|
84
|
-
warn: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "
|
85
|
-
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "
|
84
|
+
warn: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
85
|
+
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose">) => void;
|
86
86
|
close: () => void;
|
87
87
|
};
|
88
88
|
};
|
package/umd/popover/popover.js
CHANGED
@@ -86,6 +86,8 @@
|
|
86
86
|
var wrapperRef = (0, _react.useRef)(null);
|
87
87
|
var childRef = (0, _react.useRef)(null);
|
88
88
|
var popoverRef = (0, _react.useRef)(null);
|
89
|
+
var transitionNodeRef = (0, _react.useRef)(null);
|
90
|
+
var maskRef = (0, _react.useRef)(null);
|
89
91
|
|
90
92
|
var _usePosition = (0, _hooks.usePosition)(props, popoverRef, childRef, wrapperRef),
|
91
93
|
direction = _usePosition.direction,
|
@@ -217,7 +219,10 @@
|
|
217
219
|
className: (0, _mobileUtils.cls)(theme + "-theme", innerPopoverClassName, {
|
218
220
|
bordered: bordered
|
219
221
|
}),
|
220
|
-
ref:
|
222
|
+
ref: function ref(ele) {
|
223
|
+
popoverRef.current = ele;
|
224
|
+
transitionNodeRef.current = ele == null ? void 0 : ele.dom;
|
225
|
+
},
|
221
226
|
direction: direction,
|
222
227
|
minWidth: minWidth,
|
223
228
|
maxWidth: maxWidth,
|
@@ -245,6 +250,7 @@
|
|
245
250
|
in: visibleState && !isCalcPosition,
|
246
251
|
timeout: transitionTimeout,
|
247
252
|
type: transitionName,
|
253
|
+
nodeRef: transitionNodeRef,
|
248
254
|
mountOnEnter: true,
|
249
255
|
unmountOnExit: true
|
250
256
|
}, renderInnerPopover()));
|
@@ -253,12 +259,14 @@
|
|
253
259
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showMask && /*#__PURE__*/_react.default.createElement(_portal.default, null, /*#__PURE__*/_react.default.createElement(_transition.default, {
|
254
260
|
in: visibleState && !isCalcPosition,
|
255
261
|
timeout: maskTransitionTimeout,
|
262
|
+
nodeRef: maskRef,
|
256
263
|
type: "fade",
|
257
264
|
mountOnEnter: true,
|
258
265
|
unmountOnExit: true
|
259
266
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
260
267
|
className: prefixCls + "-popover-mask",
|
261
|
-
onClick: onClickMask
|
268
|
+
onClick: onClickMask,
|
269
|
+
ref: maskRef
|
262
270
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
263
271
|
className: (0, _mobileUtils.cls)(prefixCls + "-popover", className, theme + "-theme", mode + "-mode", {
|
264
272
|
bordered: bordered,
|
package/umd/popup/index.d.ts
CHANGED
@@ -66,11 +66,11 @@ declare const _default: React.ForwardRefExoticComponent<PopupProps & React.RefAt
|
|
66
66
|
* @param {PopupProps} config Configuration
|
67
67
|
* @returns {{ close: () => void; update: (newConfig: PopupProps) => void; }}
|
68
68
|
*/
|
69
|
-
open: (config: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "className" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "
|
69
|
+
open: (config: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
|
70
70
|
key?: string | undefined;
|
71
71
|
}, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
72
72
|
close: () => void;
|
73
|
-
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "className" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "
|
73
|
+
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
|
74
74
|
key?: string | undefined;
|
75
75
|
}) => void;
|
76
76
|
};
|
@@ -76,11 +76,11 @@ declare const _default: React.ForwardRefExoticComponent<PopupSwiperProps & React
|
|
76
76
|
* @param {string | PopupSwiperProps} config Configuration
|
77
77
|
* @returns {{ close: () => void; update: (newConfig: PopupSwiperProps) => void; }}
|
78
78
|
*/
|
79
|
-
open: (config: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "
|
79
|
+
open: (config: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
|
80
80
|
key?: string | undefined;
|
81
81
|
}, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
82
82
|
close: () => void;
|
83
|
-
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "
|
83
|
+
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
|
84
84
|
key?: string | undefined;
|
85
85
|
}) => void; /**
|
86
86
|
* 内容面板 touchstart 事件,返回true时表示阻止本组件内部处理事件
|
@@ -32,6 +32,10 @@
|
|
32
32
|
.arco-radio .radio-icon + .radio-text {
|
33
33
|
margin-left: 0.16rem ;
|
34
34
|
}
|
35
|
+
[dir="rtl"] .arco-radio .radio-icon + .radio-text {
|
36
|
+
margin-left: initial;
|
37
|
+
margin-right: 0.16rem ;
|
38
|
+
}
|
35
39
|
.arco-radio.disabled .radio-text {
|
36
40
|
opacity: 0.5 ;
|
37
41
|
}
|
@@ -47,3 +51,7 @@
|
|
47
51
|
.arco-radio-group .arco-radio:not(:last-child, .block) {
|
48
52
|
margin-right: 0.48rem ;
|
49
53
|
}
|
54
|
+
[dir="rtl"] .arco-radio-group .arco-radio:not(:last-child, .block) {
|
55
|
+
margin-right: initial;
|
56
|
+
margin-left: 0.48rem ;
|
57
|
+
}
|
@@ -29,7 +29,7 @@
|
|
29
29
|
}
|
30
30
|
|
31
31
|
.radio-icon + .radio-text {
|
32
|
-
.use-var(margin-left, checkbox-icon-margin-right);
|
32
|
+
.use-var-with-rtl(margin-left, checkbox-icon-margin-right);
|
33
33
|
}
|
34
34
|
|
35
35
|
&.disabled .radio-text {
|
@@ -48,6 +48,6 @@
|
|
48
48
|
|
49
49
|
.@{prefix}-radio-group {
|
50
50
|
.@{prefix}-radio:not(:last-child, .block) {
|
51
|
-
.use-var(margin-right, checkbox-group-gutter);
|
51
|
+
.use-var-with-rtl(margin-right, checkbox-group-gutter);
|
52
52
|
}
|
53
53
|
}
|
package/umd/rate/index.js
CHANGED
@@ -154,7 +154,8 @@
|
|
154
154
|
}
|
155
155
|
|
156
156
|
return /*#__PURE__*/_react.default.createElement(_contextProvider.ContextLayout, null, function (_ref2) {
|
157
|
-
var prefixCls = _ref2.prefixCls
|
157
|
+
var prefixCls = _ref2.prefixCls,
|
158
|
+
useRtl = _ref2.useRtl;
|
158
159
|
return /*#__PURE__*/_react.default.createElement("div", {
|
159
160
|
role: "slider",
|
160
161
|
"aria-valuemin": 0,
|
@@ -170,6 +171,7 @@
|
|
170
171
|
// 对内的index从1开始,方便计算
|
171
172
|
// @en The index of the pair starts from 1, which is convenient for calculation
|
172
173
|
var index = i + 1;
|
174
|
+
var halfIndex = allowHalf ? index - 0.5 : index;
|
173
175
|
var status = getIconStatus(index);
|
174
176
|
return /*#__PURE__*/_react.default.createElement("div", {
|
175
177
|
key: index,
|
@@ -180,12 +182,12 @@
|
|
180
182
|
}, renderRateIcon(prefixCls + "-rate", status, index), /*#__PURE__*/_react.default.createElement("div", {
|
181
183
|
className: prefixCls + "-rate-icon-click-half left",
|
182
184
|
onClick: function onClick() {
|
183
|
-
return handleStarIndexChange(
|
185
|
+
return handleStarIndexChange(useRtl ? index : halfIndex);
|
184
186
|
}
|
185
187
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
186
188
|
className: prefixCls + "-rate-icon-click-half right",
|
187
189
|
onClick: function onClick() {
|
188
|
-
return handleStarIndexChange(index);
|
190
|
+
return handleStarIndexChange(useRtl ? halfIndex : index);
|
189
191
|
}
|
190
192
|
}));
|
191
193
|
}));
|
@@ -5,7 +5,7 @@ export declare type LinePosition = {
|
|
5
5
|
length: number;
|
6
6
|
start: number;
|
7
7
|
};
|
8
|
-
export declare const SliderContext: React.Context<Required<Pick<SliderProps, "max" | "disabled" | "style" | "size" | "step" | "type" | "className" | "onChange" | "
|
8
|
+
export declare const SliderContext: React.Context<Required<Pick<SliderProps, "max" | "disabled" | "style" | "size" | "step" | "type" | "className" | "onChange" | "onAfterChange" | "min" | "suffixLabel" | "prefixLabel" | "useRange" | "useAnimation" | "showTooltip" | "showMarks" | "useMarkOnly" | "draggableTrackOnly" | "formatTooltip" | "renderThumb">> & Pick<SliderProps, "value" | "defaultValue" | "marks">>;
|
9
9
|
export * from './useSliderIcon';
|
10
10
|
export * from './useSliderInit';
|
11
11
|
export * from './useSliderStyle';
|