@arco-design/mobile-react 2.24.0 → 2.24.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/dialog/index.d.ts +2 -2
  5. package/cjs/ellipsis/components/js-ellipsis.d.ts +4 -2
  6. package/cjs/ellipsis/components/js-ellipsis.js +14 -1
  7. package/cjs/ellipsis/components/native-ellipsis.d.ts +1 -1
  8. package/cjs/ellipsis/components/native-ellipsis.js +6 -1
  9. package/cjs/ellipsis/demo/style/css/mobile.css +1 -1
  10. package/cjs/ellipsis/demo/style/mobile.less +3 -1
  11. package/cjs/ellipsis/index.js +6 -2
  12. package/cjs/ellipsis/style/css/index.css +14 -1
  13. package/cjs/ellipsis/style/index.less +15 -1
  14. package/cjs/ellipsis/type.d.ts +22 -76
  15. package/cjs/masking/index.d.ts +2 -2
  16. package/cjs/popup/index.d.ts +2 -2
  17. package/cjs/popup-swiper/index.d.ts +2 -2
  18. package/dist/index.js +26 -4
  19. package/dist/index.min.js +3 -3
  20. package/dist/style.css +13 -1
  21. package/dist/style.min.css +1 -1
  22. package/esm/dialog/index.d.ts +2 -2
  23. package/esm/ellipsis/components/js-ellipsis.d.ts +4 -2
  24. package/esm/ellipsis/components/js-ellipsis.js +14 -1
  25. package/esm/ellipsis/components/native-ellipsis.d.ts +1 -1
  26. package/esm/ellipsis/components/native-ellipsis.js +6 -1
  27. package/esm/ellipsis/demo/style/css/mobile.css +1 -1
  28. package/esm/ellipsis/demo/style/mobile.less +3 -1
  29. package/esm/ellipsis/index.js +6 -2
  30. package/esm/ellipsis/style/css/index.css +14 -1
  31. package/esm/ellipsis/style/index.less +15 -1
  32. package/esm/ellipsis/type.d.ts +22 -76
  33. package/esm/masking/index.d.ts +2 -2
  34. package/esm/popup/index.d.ts +2 -2
  35. package/esm/popup-swiper/index.d.ts +2 -2
  36. package/package.json +3 -3
  37. package/tokens/app/arcodesign/default/css-variables.less +2 -0
  38. package/tokens/app/arcodesign/default/index.d.ts +2 -0
  39. package/tokens/app/arcodesign/default/index.js +127 -125
  40. package/tokens/app/arcodesign/default/index.json +24 -0
  41. package/tokens/app/arcodesign/default/index.less +2 -0
  42. package/umd/dialog/index.d.ts +2 -2
  43. package/umd/ellipsis/components/js-ellipsis.d.ts +4 -2
  44. package/umd/ellipsis/components/js-ellipsis.js +14 -1
  45. package/umd/ellipsis/components/native-ellipsis.d.ts +1 -1
  46. package/umd/ellipsis/components/native-ellipsis.js +6 -1
  47. package/umd/ellipsis/demo/style/css/mobile.css +1 -1
  48. package/umd/ellipsis/demo/style/mobile.less +3 -1
  49. package/umd/ellipsis/index.js +6 -2
  50. package/umd/ellipsis/style/css/index.css +14 -1
  51. package/umd/ellipsis/style/index.less +15 -1
  52. package/umd/ellipsis/type.d.ts +22 -76
  53. package/umd/masking/index.d.ts +2 -2
  54. package/umd/popup/index.d.ts +2 -2
  55. package/umd/popup-swiper/index.d.ts +2 -2
@@ -1,7 +1,9 @@
1
1
  @import '../../../../style/mixin.less';
2
2
 
3
3
  #demo-ellipsis {
4
- line-height: 26px;
4
+ .@{prefix}-ellipsis {
5
+ line-height: 26px;
6
+ }
5
7
  .demo-link,
6
8
  .demo-link-line {
7
9
  .use-var(color, primary-color);
@@ -27,15 +27,17 @@ var Ellipsis = /*#__PURE__*/forwardRef(function (props, ref) {
27
27
  ellipsisNode = _props$ellipsisNode === void 0 ? '...' : _props$ellipsisNode,
28
28
  _props$collapseNode = props.collapseNode,
29
29
  collapseNode = _props$collapseNode === void 0 ? '' : _props$collapseNode,
30
- onCollapseNodeClick = props.onCollapseNodeClick,
31
30
  endExcludes = props.endExcludes,
32
31
  _props$reflowOnResize = props.reflowOnResize,
33
32
  reflowOnResize = _props$reflowOnResize === void 0 ? false : _props$reflowOnResize,
33
+ _props$floatEllipsisN = props.floatEllipsisNode,
34
+ floatEllipsisNode = _props$floatEllipsisN === void 0 ? false : _props$floatEllipsisN,
34
35
  onReflow = props.onReflow,
36
+ onCollapseNodeClick = props.onCollapseNodeClick,
35
37
  onEllipsisNodeClick = props.onEllipsisNodeClick;
36
38
  var domRef = useRef(null);
37
39
  var jsEllipsisRef = useRef(null);
38
- var useNativeEllipsis = isSupportWebkitLineClamp() && maxHeight === void 0 && ellipsisNode === '...' && (!endExcludes || endExcludes.length === 0) && !onReflow && !onEllipsisNodeClick;
40
+ var useNativeEllipsis = isSupportWebkitLineClamp() && maxHeight === void 0 && (!endExcludes || endExcludes.length === 0) && !onReflow && (floatEllipsisNode || ellipsisNode === '...' && !onEllipsisNodeClick);
39
41
  useImperativeHandle(ref, function () {
40
42
  var _jsEllipsisRef$curren;
41
43
 
@@ -55,7 +57,9 @@ var Ellipsis = /*#__PURE__*/forwardRef(function (props, ref) {
55
57
  dangerouslyUseInnerHTML: dangerouslyUseInnerHTML,
56
58
  text: text,
57
59
  maxLine: maxLine,
60
+ ellipsisNode: ellipsisNode,
58
61
  collapseNode: collapseNode,
62
+ onEllipsisNodeClick: onEllipsisNodeClick,
59
63
  onCollapseNodeClick: onCollapseNodeClick
60
64
  }) : /*#__PURE__*/React.createElement(JsEllipsis, {
61
65
  ref: jsEllipsisRef,
@@ -1,10 +1,23 @@
1
1
  .arco-ellipsis {
2
2
  font-size: 0.32rem ;
3
3
  }
4
- .arco-ellipsis-native.ellipsis {
4
+ .arco-ellipsis-native.ellipsis,
5
+ .arco-ellipsis-js-content-initial {
5
6
  display: -webkit-box;
6
7
  overflow: hidden;
7
8
  text-overflow: ellipsis;
8
9
  word-break: break-word;
9
10
  -webkit-box-orient: vertical;
11
+ position: relative;
12
+ }
13
+ .arco-ellipsis-native-ellipsis-node {
14
+ position: absolute;
15
+ right: 0;
16
+ bottom: 0;
17
+ background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0), #ffffff 20PX, #ffffff) ;
18
+ background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 20PX, #ffffff) ;
19
+ padding-left: 20PX ;
20
+ }
21
+ .arco-ellipsis-js-content-ellipsis {
22
+ display: none;
10
23
  }
@@ -3,11 +3,25 @@
3
3
  .@{prefix}-ellipsis {
4
4
  .use-var(font-size, ellipsis-default-text-size);
5
5
 
6
- &-native.ellipsis {
6
+ &-native.ellipsis,
7
+ &-js-content-initial {
7
8
  display: -webkit-box;
8
9
  overflow: hidden;
9
10
  text-overflow: ellipsis;
10
11
  word-break: break-word;
11
12
  -webkit-box-orient: vertical;
13
+ position: relative;
14
+ }
15
+
16
+ &-native-ellipsis-node {
17
+ position: absolute;
18
+ right: 0;
19
+ bottom: 0;
20
+ .use-var(background, ellipsis-float-ellipsis-node-background);
21
+ .use-var(padding-left, ellipsis-float-ellipsis-node-padding-left);
22
+ }
23
+
24
+ &-js-content-ellipsis {
25
+ display: none;
12
26
  }
13
27
  }
@@ -1,5 +1,5 @@
1
- import { ReactNode, Ref } from 'react';
2
- interface BaseProps {
1
+ import { ReactNode } from 'react';
2
+ export interface EllipsisBaseProps {
3
3
  /**
4
4
  * 需要缩略的文本内容
5
5
  * @en Text content to be omitted
@@ -23,68 +23,17 @@ interface BaseProps {
23
23
  * @default false
24
24
  */
25
25
  dangerouslyUseInnerHTML?: boolean;
26
- }
27
- export interface NativeEllipsisProps extends BaseProps {
28
- /**
29
- * className 前缀
30
- * @en Prefix classname
31
- */
32
- prefixCls: string;
33
- /**
34
- * 自定义收起节点,不为空时文本展开插入文本尾部
35
- * @en Customize the collapsed node, when the text is not empty, the text expand Text expand content inserts the end of the text
36
- */
37
- collapseNode?: ReactNode;
38
- /**
39
- * 收起节点点击事件
40
- * @en Collapse node click event
41
- */
42
- onCollapseNodeClick?: () => void;
43
- }
44
- export interface JsEllipsisRef {
45
- dom: HTMLDivElement | null;
46
- reflow: () => void;
47
- }
48
- export interface JsEllipsisProps extends BaseProps {
49
- ref: Ref<HTMLDivElement | null>;
50
- /**
51
- * className 前缀
52
- * @en Prefix classname
53
- */
54
- prefixCls: string;
55
- /**
56
- * 最大显示高度,单位 px,优先级高于 maxLine
57
- * @en Maximum display height, unit px, priority higher than maxLine
58
- */
59
- maxHeight?: number;
60
26
  /**
61
27
  * 自定义缩略符节点,文本缩略时插入文本尾部
62
- * @en Customize the ellipsis node, insert the end of the text when the text is omitted
28
+ * @en Customize the ellipsis node, insert at the end of the text when the text is omitted
63
29
  * @default "..."
64
30
  */
65
31
  ellipsisNode?: ReactNode;
66
32
  /**
67
33
  * 自定义收起符节点,不为空且文本展开时插入文本尾部
68
- * @en Customize the collapse node, if the value is not empty, it will be inserted in the end of the text when the text is expanded
34
+ * @en Customize the collapse node, when the value is not empty and the text is expanded, the node is inserted at the end of the text
69
35
  */
70
36
  collapseNode?: ReactNode;
71
- /**
72
- * 文本结尾处(缩略符之前)需要过滤掉的字符
73
- * @en Characters that need to be filtered out at the end of the text (before abbreviations)
74
- * @default []
75
- */
76
- endExcludes?: string[];
77
- /**
78
- * 容器大小变化时是否自适应,使用原生缩略时默认为 true
79
- * @en Whether to adapt when the container size changes, the default is true when using native ellipsis
80
- * @default false
81
- */
82
- reflowOnResize?: boolean;
83
- /**
84
- * 文本缩略处理的完成回调
85
- * @en Callback when text omission processing is complete
86
- */
87
- onReflow?: (ellipsis: boolean, text: string) => void;
88
37
  /**
89
38
  * 缩略节点点击事件
90
39
  * @en Ellipsis node click event
@@ -108,7 +57,7 @@ export interface EllipsisRef {
108
57
  */
109
58
  reflow: (() => void) | undefined;
110
59
  }
111
- export interface EllipsisProps extends BaseProps {
60
+ export interface EllipsisProps extends EllipsisBaseProps {
112
61
  /**
113
62
  * 自定义类名
114
63
  * @en Custom classname
@@ -119,17 +68,6 @@ export interface EllipsisProps extends BaseProps {
119
68
  * @en Maximum display height(unit: px), priority higher than maxLine
120
69
  */
121
70
  maxHeight?: number;
122
- /**
123
- * 自定义缩略符节点,文本缩略时插入文本尾部
124
- * @en Customize the ellipsis node, insert at the end of the text when the text is omitted
125
- * @default "..."
126
- */
127
- ellipsisNode?: ReactNode;
128
- /**
129
- * 自定义收起符节点,不为空且文本展开时插入文本尾部
130
- * @en Customize the collapse node, when the value is not empty and the text is expanded, the node is inserted at the end of the text
131
- */
132
- collapseNode?: ReactNode;
133
71
  /**
134
72
  * 文本结尾处(缩略符之前)需要过滤掉的字符
135
73
  * @en Characters to filter out at the end of the text (before the ellipsis)
@@ -142,20 +80,28 @@ export interface EllipsisProps extends BaseProps {
142
80
  * @default false
143
81
  */
144
82
  reflowOnResize?: boolean;
83
+ /**
84
+ * 文本缩略时,缩略符节点是否浮在文本右下角(默认加渐变色背景)
85
+ * @en Whether the abbreviation node is floating in the lower right corner of the text (with a gradient background by default)
86
+ * @default false
87
+ */
88
+ floatEllipsisNode?: boolean;
145
89
  /**
146
90
  * 文本缩略处理的完成回调
147
91
  * @en Callback when text omission processing is complete
148
92
  */
149
93
  onReflow?: (ellipsis: boolean, text: string) => void;
94
+ }
95
+ export declare type EllipsisCommonProps = EllipsisBaseProps & {
150
96
  /**
151
- * 缩略节点点击事件
152
- * @en Ellipsis node click event
153
- */
154
- onEllipsisNodeClick?: () => void;
155
- /**
156
- * 收起节点点击事件
157
- * @en Collapse node click event
97
+ * className 前缀
98
+ * @en Prefix classname
158
99
  */
159
- onCollapseNodeClick?: () => void;
100
+ prefixCls: string;
101
+ };
102
+ export declare type NativeEllipsisProps = EllipsisCommonProps;
103
+ export interface JsEllipsisRef {
104
+ dom: HTMLDivElement | null;
105
+ reflow: () => void;
160
106
  }
161
- export {};
107
+ export declare type JsEllipsisProps = EllipsisCommonProps & Pick<EllipsisProps, 'maxHeight' | 'endExcludes' | 'reflowOnResize' | 'onReflow'>;
@@ -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>>, "ref" | "children" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer"> & {
208
+ open: (config: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer"> & {
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>>, "ref" | "children" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer"> & {
212
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer"> & {
213
213
  key?: string | undefined;
214
214
  }) => void;
215
215
  };
@@ -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" | "ref" | "children" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ"> & {
69
+ open: (config: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ"> & {
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" | "ref" | "children" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ"> & {
73
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ"> & {
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" | "ref" | "children" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ" | "onTouchEnd" | "onTouchStart" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
79
+ open: (config: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ" | "onTouchEnd" | "onTouchStart" | "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" | "ref" | "children" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ" | "onTouchEnd" | "onTouchStart" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
83
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ" | "onTouchEnd" | "onTouchStart" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
84
84
  key?: string | undefined;
85
85
  }) => void; /**
86
86
  * 内容面板 touchstart 事件,返回true时表示阻止本组件内部处理事件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arco-design/mobile-react",
3
- "version": "2.24.0",
3
+ "version": "2.24.1",
4
4
  "description": "",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -15,7 +15,7 @@
15
15
  "author": "taoyiyue@bytedance.com",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@arco-design/mobile-utils": "^2.12.9",
18
+ "@arco-design/mobile-utils": "^2.12.10",
19
19
  "@arco-design/transformable": "^1.0.0",
20
20
  "es6-promise": "^4.2.8",
21
21
  "lodash.throttle": "^4.1.1",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "bff7e1c275188fab8d98166eba999d7aebdc5672"
39
+ "gitHead": "c9f2506a5518bc6ccf6aa2f85c3077e02ab22fac"
40
40
  }
@@ -194,6 +194,8 @@
194
194
  --button-mini-height: ~`pxtorem(24)`;
195
195
  --button-mini-text-size: ~`pxtorem(12)`;
196
196
  --ellipsis-default-text-size: ~`pxtorem(16)`;
197
+ --ellipsis-float-ellipsis-node-background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 20PX, #ffffff);
198
+ --ellipsis-float-ellipsis-node-padding-left: 20PX;
197
199
  --checkbox-icon-color: #c2c6cc;
198
200
  --checkbox-icon-font-size: 20PX;
199
201
  --checkbox-icon-margin-right: ~`pxtorem(8)`;
@@ -193,6 +193,8 @@ export interface ArcodesignToken extends Record<string, string> {
193
193
  'button-mini-height': string;
194
194
  'button-mini-text-size': string;
195
195
  'ellipsis-default-text-size': string;
196
+ 'ellipsis-float-ellipsis-node-background': string;
197
+ 'ellipsis-float-ellipsis-node-padding-left': string;
196
198
  'checkbox-icon-color': string;
197
199
  'checkbox-icon-font-size': string;
198
200
  'checkbox-icon-margin-right': string;