@arco-design/mobile-react 2.19.1-941e02b.7 → 2.19.1
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 +13 -0
- package/cjs/button/index.d.ts +6 -0
- package/cjs/button/index.js +3 -1
- package/cjs/grid/index.js +12 -13
- package/cjs/image/index.d.ts +1 -0
- package/cjs/image/index.js +7 -9
- package/cjs/image-preview/index.d.ts +2 -2
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +1 -5
- package/cjs/notify/index.d.ts +1 -0
- package/cjs/notify/index.js +12 -0
- package/cjs/notify/type.d.ts +1 -0
- package/cjs/steps/demo/style/css/mobile.css +1 -1
- package/cjs/steps/demo/style/mobile.less +1 -1
- package/cjs/steps/style/css/index.css +15 -5
- package/cjs/steps/style/index.less +10 -6
- package/cjs/style.d.ts +0 -1
- package/cjs/style.js +0 -2
- package/cjs/transition/index.js +4 -2
- package/dist/index.js +242 -538
- package/dist/index.min.js +5 -4
- package/dist/style.css +9 -120
- package/dist/style.min.css +1 -1
- package/esm/button/index.d.ts +6 -0
- package/esm/button/index.js +3 -1
- package/esm/grid/index.js +12 -13
- package/esm/image/index.d.ts +1 -0
- package/esm/image/index.js +8 -10
- package/esm/image-preview/index.d.ts +2 -2
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/notify/index.d.ts +1 -0
- package/esm/notify/index.js +1 -0
- package/esm/notify/type.d.ts +1 -0
- package/esm/steps/demo/style/css/mobile.css +1 -1
- package/esm/steps/demo/style/mobile.less +1 -1
- package/esm/steps/style/css/index.css +15 -5
- package/esm/steps/style/index.less +10 -6
- package/esm/style.d.ts +0 -1
- package/esm/style.js +0 -1
- package/esm/transition/index.js +4 -2
- package/package.json +3 -3
- package/tokens/app/arcodesign/default/css-variables.less +2 -17
- package/tokens/app/arcodesign/default/index.d.ts +2 -17
- package/tokens/app/arcodesign/default/index.js +3 -18
- package/tokens/app/arcodesign/default/index.json +24 -140
- package/tokens/app/arcodesign/default/index.less +2 -17
- package/umd/button/index.d.ts +6 -0
- package/umd/button/index.js +3 -1
- package/umd/grid/index.js +12 -13
- package/umd/image/index.d.ts +1 -0
- package/umd/image/index.js +7 -9
- package/umd/image-preview/index.d.ts +2 -2
- package/umd/index.d.ts +0 -1
- package/umd/index.js +5 -7
- package/umd/notify/index.d.ts +1 -0
- package/umd/notify/index.js +13 -4
- package/umd/notify/type.d.ts +1 -0
- package/umd/steps/demo/style/css/mobile.css +1 -1
- package/umd/steps/demo/style/mobile.less +1 -1
- package/umd/steps/style/css/index.css +15 -5
- package/umd/steps/style/index.less +10 -6
- package/umd/style.d.ts +0 -1
- package/umd/style.js +4 -4
- package/umd/transition/index.js +4 -2
- package/cjs/image-picker/add-icon.d.ts +0 -2
- package/cjs/image-picker/add-icon.js +0 -22
- package/cjs/image-picker/demo/style/css/mobile.css +0 -40
- package/cjs/image-picker/demo/style/mobile.less +0 -42
- package/cjs/image-picker/index.d.ts +0 -181
- package/cjs/image-picker/index.js +0 -301
- package/cjs/image-picker/style/css/index.css +0 -147
- package/cjs/image-picker/style/css/index.d.ts +0 -2
- package/cjs/image-picker/style/css/index.js +0 -5
- package/cjs/image-picker/style/index.d.ts +0 -2
- package/cjs/image-picker/style/index.js +0 -5
- package/cjs/image-picker/style/index.less +0 -116
- package/esm/image-picker/add-icon.d.ts +0 -2
- package/esm/image-picker/add-icon.js +0 -14
- package/esm/image-picker/demo/style/css/mobile.css +0 -40
- package/esm/image-picker/demo/style/mobile.less +0 -42
- package/esm/image-picker/index.d.ts +0 -181
- package/esm/image-picker/index.js +0 -282
- package/esm/image-picker/style/css/index.css +0 -147
- package/esm/image-picker/style/css/index.d.ts +0 -2
- package/esm/image-picker/style/css/index.js +0 -2
- package/esm/image-picker/style/index.d.ts +0 -2
- package/esm/image-picker/style/index.js +0 -2
- package/esm/image-picker/style/index.less +0 -116
- package/umd/image-picker/add-icon.d.ts +0 -2
- package/umd/image-picker/add-icon.js +0 -35
- package/umd/image-picker/demo/style/css/mobile.css +0 -40
- package/umd/image-picker/demo/style/mobile.less +0 -42
- package/umd/image-picker/index.d.ts +0 -181
- package/umd/image-picker/index.js +0 -304
- package/umd/image-picker/style/css/index.css +0 -147
- package/umd/image-picker/style/css/index.d.ts +0 -2
- package/umd/image-picker/style/css/index.js +0 -15
- package/umd/image-picker/style/index.d.ts +0 -2
- package/umd/image-picker/style/index.js +0 -15
- package/umd/image-picker/style/index.less +0 -116
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,19 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.19.1](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.19.0...@arco-design/mobile-react@2.19.1) (2022-07-22)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* `Notify` export types ([0a096ba](https://github.com/arco-design/arco-design-mobile/commit/0a096bac78eeadf60dbfcf6be58f8f51e24f5343))
|
12
|
+
* `Steps` style optimize ([e4a0343](https://github.com/arco-design/arco-design-mobile/commit/e4a0343c5258f69d0d0fee97047b78011f54d50d))
|
13
|
+
* button add disableWhenLoading options ([#13](https://github.com/arco-design/arco-design-mobile/issues/13)) ([0c21f35](https://github.com/arco-design/arco-design-mobile/commit/0c21f350d5ad9af167cf1604acd19df5618daeda))
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
6
19
|
# 2.19.0 (2022-07-07)
|
7
20
|
|
8
21
|
|
package/cjs/button/index.d.ts
CHANGED
@@ -109,6 +109,12 @@ export interface ButtonProps {
|
|
109
109
|
* @en Callback function when disabling button
|
110
110
|
*/
|
111
111
|
onClickDisabled?: (e: React.MouseEvent) => void;
|
112
|
+
/**
|
113
|
+
* 加载中是否禁用按钮操作
|
114
|
+
* @en Disable button when loading
|
115
|
+
* @default true
|
116
|
+
*/
|
117
|
+
disableWhenLoading?: boolean;
|
112
118
|
}
|
113
119
|
export interface ButtonRef {
|
114
120
|
/**
|
package/cjs/button/index.js
CHANGED
@@ -47,6 +47,8 @@ var Button = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
47
47
|
loading = _props$loading === void 0 ? false : _props$loading,
|
48
48
|
_props$disabled = props.disabled,
|
49
49
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
50
|
+
_props$disableWhenLoa = props.disableWhenLoading,
|
51
|
+
disableWhenLoading = _props$disableWhenLoa === void 0 ? true : _props$disableWhenLoa,
|
50
52
|
_props$shape = props.shape,
|
51
53
|
shape = _props$shape === void 0 ? 'semi' : _props$shape,
|
52
54
|
_props$halfBorder = props.halfBorder,
|
@@ -113,7 +115,7 @@ var Button = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
113
115
|
onTouchCancel: handleTouchEnd,
|
114
116
|
onMouseDown: handleTouchStart,
|
115
117
|
onMouseUp: handleTouchEnd,
|
116
|
-
onClick: disabled ? onClickDisabled : onClick
|
118
|
+
onClick: disabled || loading && disableWhenLoading ? onClickDisabled : onClick
|
117
119
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
118
120
|
className: "btn-icon"
|
119
121
|
}, icon, loading && (loadingIcon === void 0 ? /*#__PURE__*/_react.default.createElement(_loading.default, {
|
package/cjs/grid/index.js
CHANGED
@@ -50,21 +50,14 @@ var Grid = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
50
50
|
});
|
51
51
|
|
52
52
|
var getRows = function getRows(prefix, rowsData, rows, row) {
|
53
|
-
var
|
54
|
-
var
|
55
|
-
|
56
|
-
|
57
|
-
var fakeGrids = new Array(columns - placeholders).fill({
|
58
|
-
img: null,
|
59
|
-
title: ''
|
60
|
-
});
|
61
|
-
renderData = rowsData.concat(fakeGrids);
|
62
|
-
}
|
63
|
-
|
53
|
+
var fakeGrids = new Array(!isSliding && columns && rowsData.length % columns ? columns - rowsData.length % columns : 0).fill('');
|
54
|
+
var widthStyle = {
|
55
|
+
minWidth: 1 / columns * 100 + "%"
|
56
|
+
};
|
64
57
|
return /*#__PURE__*/_react.default.createElement("div", {
|
65
58
|
className: prefix + "-rows",
|
66
59
|
key: row
|
67
|
-
},
|
60
|
+
}, rowsData.map(function (item, index) {
|
68
61
|
var img = item.img,
|
69
62
|
title = item.title,
|
70
63
|
content = item.content,
|
@@ -78,7 +71,7 @@ var Grid = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
78
71
|
}
|
79
72
|
|
80
73
|
var marginBottom = row + 1 === rows ? 0 : typeof gutter === 'number' ? gutter : (gutter == null ? void 0 : gutter.y) || 0;
|
81
|
-
var rowLen =
|
74
|
+
var rowLen = rowsData.length;
|
82
75
|
var marginRight = index + 1 === rowLen ? 0 : typeof gutter === 'number' ? gutter : (gutter == null ? void 0 : gutter.x) || 0;
|
83
76
|
return /*#__PURE__*/_react.default.createElement("div", {
|
84
77
|
key: index,
|
@@ -107,6 +100,12 @@ var Grid = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
107
100
|
}) : null, (row + 1) % rows !== 0 ? /*#__PURE__*/_react.default.createElement("i", {
|
108
101
|
className: "horizontal-border"
|
109
102
|
}) : null);
|
103
|
+
}), fakeGrids.map(function (_, i) {
|
104
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
105
|
+
className: (0, _mobileUtils.cls)(prefix + "-rows-item fake-col"),
|
106
|
+
key: i,
|
107
|
+
style: widthStyle
|
108
|
+
});
|
110
109
|
}));
|
111
110
|
};
|
112
111
|
|
package/cjs/image/index.d.ts
CHANGED
package/cjs/image/index.js
CHANGED
@@ -55,7 +55,8 @@ var BaseImage = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
55
55
|
var loadingImageRef = (0, _react.useRef)(null);
|
56
56
|
var style = props.style,
|
57
57
|
className = props.className,
|
58
|
-
status = props.status,
|
58
|
+
_props$status = props.status,
|
59
|
+
status = _props$status === void 0 ? 'init' : _props$status,
|
59
60
|
src = props.src,
|
60
61
|
width = props.width,
|
61
62
|
height = props.height,
|
@@ -95,7 +96,6 @@ var BaseImage = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
95
96
|
var isPreview = Boolean(fit.indexOf('preview') >= 0);
|
96
97
|
var actualBoxWidth = boxWidth || windowWidth;
|
97
98
|
var actualBoxHeight = boxHeight || windowHeight;
|
98
|
-
var validStatus = status === undefined ? imageStatus : status;
|
99
99
|
var attrs = (0, _react.useMemo)(function () {
|
100
100
|
var imageStyle = {};
|
101
101
|
|
@@ -271,9 +271,7 @@ var BaseImage = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
271
271
|
}
|
272
272
|
|
273
273
|
return /*#__PURE__*/_react.default.createElement(_contextProvider.ContextLayout, null, function (_ref) {
|
274
|
-
var prefixCls = _ref.prefixCls
|
275
|
-
_ref$locale = _ref.locale,
|
276
|
-
locale = _ref$locale === void 0 ? _mobileUtils.defaultLocale : _ref$locale;
|
274
|
+
var prefixCls = _ref.prefixCls;
|
277
275
|
return /*#__PURE__*/_react.default.createElement("div", {
|
278
276
|
className: (0, _mobileUtils.cls)(prefixCls + "-image all-border-box", {
|
279
277
|
preview: isPreview
|
@@ -288,7 +286,7 @@ var BaseImage = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
288
286
|
}, bottomOverlap || /*#__PURE__*/_react.default.createElement("div", {
|
289
287
|
className: "image-placeholder"
|
290
288
|
})) : null, /*#__PURE__*/_react.default.createElement("div", {
|
291
|
-
className: (0, _mobileUtils.cls)('image-container',
|
289
|
+
className: (0, _mobileUtils.cls)('image-container', imageStatus, {
|
292
290
|
animate: Boolean(animateDuration),
|
293
291
|
'static-label': staticLabel
|
294
292
|
}),
|
@@ -303,7 +301,7 @@ var BaseImage = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
303
301
|
return _onLoad && _onLoad(e.nativeEvent, imageDomRef.current);
|
304
302
|
},
|
305
303
|
onError: handleStaticImageError
|
306
|
-
})) : null), showLoading &&
|
304
|
+
})) : null), showLoading && (status === 'loading' || imageStatus === 'loading') ? /*#__PURE__*/_react.default.createElement("div", {
|
307
305
|
className: "image-content image-loading-container",
|
308
306
|
style: {
|
309
307
|
borderRadius: radius
|
@@ -315,7 +313,7 @@ var BaseImage = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
315
313
|
className: "loading-icon",
|
316
314
|
radius: 8.5,
|
317
315
|
stroke: 3
|
318
|
-
}))) : null, showError &&
|
316
|
+
}))) : null, showError && (status === 'error' || imageStatus === 'error') ? /*#__PURE__*/_react.default.createElement("div", {
|
319
317
|
className: "image-content image-error-container",
|
320
318
|
onClick: function onClick(e) {
|
321
319
|
e.stopPropagation();
|
@@ -326,7 +324,7 @@ var BaseImage = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
326
324
|
}
|
327
325
|
}, errorArea || /*#__PURE__*/_react.default.createElement("div", {
|
328
326
|
className: "image-retry-load"
|
329
|
-
},
|
327
|
+
}, "\u91CD\u8BD5")) : null, topOverlap ? /*#__PURE__*/_react.default.createElement("div", {
|
330
328
|
className: "image-content image-top-overlap",
|
331
329
|
style: {
|
332
330
|
borderRadius: radius
|
@@ -268,9 +268,9 @@ declare const _default: React.ForwardRefExoticComponent<ImagePreviewProps & Reac
|
|
268
268
|
* @param {ImagePreviewProps} config configuration
|
269
269
|
* @returns {{ close: () => void; update: (newConfig: ImagePreviewProps) => void; }}
|
270
270
|
*/
|
271
|
-
open: (config: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "
|
271
|
+
open: (config: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "openIndex" | "images" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">) => {
|
272
272
|
close: () => void;
|
273
|
-
update: (newConfig: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "
|
273
|
+
update: (newConfig: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "openIndex" | "images" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">) => void; /**
|
274
274
|
* 是否可循环滑动
|
275
275
|
* @en Whether it can be swiped circularly
|
276
276
|
* @default false
|
package/cjs/index.d.ts
CHANGED
@@ -21,7 +21,6 @@ export { default as Ellipsis } from './ellipsis';
|
|
21
21
|
export { default as Grid } from './grid';
|
22
22
|
export { default as Image } from './image';
|
23
23
|
export { default as ShowMonitor } from './show-monitor';
|
24
|
-
export { default as ImagePicker } from './image-picker';
|
25
24
|
export { default as ImagePreview } from './image-preview';
|
26
25
|
export { default as Input } from './input';
|
27
26
|
export { default as LoadMore } from './load-more';
|
package/cjs/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
4
|
|
5
5
|
exports.__esModule = true;
|
6
|
-
exports.Transition = exports.Toast = exports.Textarea = exports.Tag = exports.Tabs = exports.TabBar = exports.Switch = exports.SwipeLoad = exports.Sticky = exports.Steps = exports.Slider = exports.ShowMonitor = 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.Input = exports.ImagePreview = exports.
|
6
|
+
exports.Transition = exports.Toast = exports.Textarea = exports.Tag = exports.Tabs = exports.TabBar = exports.Switch = exports.SwipeLoad = exports.Sticky = exports.Steps = exports.Slider = exports.ShowMonitor = 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.Input = exports.ImagePreview = exports.Image = exports.Grid = exports.Ellipsis = exports.DropdownMenu = exports.Dropdown = 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;
|
7
7
|
|
8
8
|
var _actionSheet = _interopRequireDefault(require("./action-sheet"));
|
9
9
|
|
@@ -97,10 +97,6 @@ var _showMonitor = _interopRequireDefault(require("./show-monitor"));
|
|
97
97
|
|
98
98
|
exports.ShowMonitor = _showMonitor.default;
|
99
99
|
|
100
|
-
var _imagePicker = _interopRequireDefault(require("./image-picker"));
|
101
|
-
|
102
|
-
exports.ImagePicker = _imagePicker.default;
|
103
|
-
|
104
100
|
var _imagePreview = _interopRequireDefault(require("./image-preview"));
|
105
101
|
|
106
102
|
exports.ImagePreview = _imagePreview.default;
|
package/cjs/notify/index.d.ts
CHANGED
package/cjs/notify/index.js
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
4
|
|
5
5
|
exports.__esModule = true;
|
6
|
+
var _exportNames = {
|
7
|
+
methodsGenerator: true
|
8
|
+
};
|
6
9
|
exports.default = void 0;
|
7
10
|
exports.methodsGenerator = methodsGenerator;
|
8
11
|
|
@@ -20,6 +23,15 @@ var _helpers = require("../_helpers");
|
|
20
23
|
|
21
24
|
var _methods = require("./methods");
|
22
25
|
|
26
|
+
var _type = require("./type");
|
27
|
+
|
28
|
+
Object.keys(_type).forEach(function (key) {
|
29
|
+
if (key === "default" || key === "__esModule") return;
|
30
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
31
|
+
if (key in exports && exports[key] === _type[key]) return;
|
32
|
+
exports[key] = _type[key];
|
33
|
+
});
|
34
|
+
|
23
35
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
24
36
|
|
25
37
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/cjs/notify/type.d.ts
CHANGED
@@ -59,7 +59,7 @@
|
|
59
59
|
.vertical .arco-steps-item-tail {
|
60
60
|
height: 100%;
|
61
61
|
width: 18PX ;
|
62
|
-
top:
|
62
|
+
top: 0.18rem;
|
63
63
|
padding: 0.28rem 0 ;
|
64
64
|
}
|
65
65
|
.vertical .arco-steps-item-tail:after {
|
@@ -73,7 +73,19 @@
|
|
73
73
|
.finish .arco-steps-item-tail:after {
|
74
74
|
background: #165dff ;
|
75
75
|
}
|
76
|
-
.arco-steps-item-custom-icon
|
76
|
+
.arco-steps-item-custom-icon {
|
77
|
+
display: -webkit-box;
|
78
|
+
display: -webkit-flex;
|
79
|
+
display: flex;
|
80
|
+
-webkit-box-align: center;
|
81
|
+
-webkit-align-items: center;
|
82
|
+
align-items: center;
|
83
|
+
-webkit-box-pack: center;
|
84
|
+
-webkit-justify-content: center;
|
85
|
+
justify-content: center;
|
86
|
+
width: 20PX ;
|
87
|
+
height: 20PX ;
|
88
|
+
}
|
77
89
|
.arco-steps-item-icon {
|
78
90
|
display: -webkit-inline-box;
|
79
91
|
display: -webkit-inline-flex;
|
@@ -84,12 +96,10 @@
|
|
84
96
|
-webkit-box-pack: center;
|
85
97
|
-webkit-justify-content: center;
|
86
98
|
justify-content: center;
|
99
|
+
border-radius: 50%;
|
87
100
|
width: 18PX ;
|
88
101
|
height: 18PX ;
|
89
102
|
}
|
90
|
-
.arco-steps-item-icon {
|
91
|
-
border-radius: 50%;
|
92
|
-
}
|
93
103
|
.number.finish .arco-steps-item-icon {
|
94
104
|
background: #E8F3FF ;
|
95
105
|
}
|
@@ -47,7 +47,7 @@
|
|
47
47
|
.vertical & {
|
48
48
|
height: 100%;
|
49
49
|
.use-var(width, steps-icon-width);
|
50
|
-
.
|
50
|
+
.rem(top, 9);
|
51
51
|
.use-var(padding, steps-tail-vertical-padding);
|
52
52
|
|
53
53
|
&:after {
|
@@ -65,17 +65,21 @@
|
|
65
65
|
}
|
66
66
|
}
|
67
67
|
|
68
|
-
&-custom-icon
|
69
|
-
|
70
|
-
display: inline-flex;
|
68
|
+
&-custom-icon {
|
69
|
+
display: flex;
|
71
70
|
align-items: center;
|
72
71
|
justify-content: center;
|
73
|
-
.use-var(width, steps-icon-width);
|
74
|
-
.use-var(height, steps-icon-height);
|
72
|
+
.use-var(width, steps-custom-icon-width);
|
73
|
+
.use-var(height, steps-custom-icon-height);
|
75
74
|
}
|
76
75
|
|
77
76
|
&-icon {
|
77
|
+
display: inline-flex;
|
78
|
+
align-items: center;
|
79
|
+
justify-content: center;
|
78
80
|
border-radius: 50%;
|
81
|
+
.use-var(width, steps-icon-width);
|
82
|
+
.use-var(height, steps-icon-height);
|
79
83
|
|
80
84
|
.number.finish & {
|
81
85
|
.use-var(background, steps-finish-icon-num-background);
|
package/cjs/style.d.ts
CHANGED
package/cjs/style.js
CHANGED
package/cjs/transition/index.js
CHANGED
@@ -26,10 +26,12 @@ var _excluded = ["children", "type", "in", "timeout", "mountOnEnter", "unmountOn
|
|
26
26
|
* @name_en Transition
|
27
27
|
*/
|
28
28
|
function Transition(props) {
|
29
|
-
var children = props.children,
|
29
|
+
var _props$children = props.children,
|
30
|
+
children = _props$children === void 0 ? /*#__PURE__*/_react.default.createElement("div", null) : _props$children,
|
30
31
|
type = props.type,
|
31
32
|
transIn = props.in,
|
32
|
-
timeout = props.timeout,
|
33
|
+
_props$timeout = props.timeout,
|
34
|
+
timeout = _props$timeout === void 0 ? 300 : _props$timeout,
|
33
35
|
_props$mountOnEnter = props.mountOnEnter,
|
34
36
|
mountOnEnter = _props$mountOnEnter === void 0 ? true : _props$mountOnEnter,
|
35
37
|
_props$unmountOnExit = props.unmountOnExit,
|