@arco-design/mobile-react 2.30.6 → 2.30.7
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 +12 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/checkbox/style/css/index.css +0 -3
- package/cjs/checkbox/style/index.less +0 -5
- package/cjs/ellipsis/components/js-ellipsis.js +4 -2
- package/cjs/radio/style/css/index.css +0 -3
- package/cjs/radio/style/index.less +0 -5
- package/dist/index.js +3 -2
- package/dist/index.min.js +2 -2
- package/dist/style.css +3 -6
- package/dist/style.min.css +1 -1
- package/esm/checkbox/style/css/index.css +0 -3
- package/esm/checkbox/style/index.less +0 -5
- package/esm/ellipsis/components/js-ellipsis.js +4 -2
- package/esm/radio/style/css/index.css +0 -3
- package/esm/radio/style/index.less +0 -5
- package/package.json +3 -3
- package/style/css/public.css +3 -0
- package/umd/checkbox/style/css/index.css +0 -3
- package/umd/checkbox/style/index.less +0 -5
- package/umd/ellipsis/components/js-ellipsis.js +4 -2
- package/umd/radio/style/css/index.css +0 -3
- package/umd/radio/style/index.less +0 -5
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,18 @@
|
|
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.30.7](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.30.6...@arco-design/mobile-react@2.30.7) (2023-12-27)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* `Ellipsis` html height calculation ([#218](https://github.com/arco-design/arco-design-mobile/issues/218)) ([6a73c43](https://github.com/arco-design/arco-design-mobile/commit/6a73c43c95d6bf6591c59fbbd67fa650a7059f91))
|
12
|
+
* style problem caused by the "tabIndex" attribute of lower versions of iOS ([#217](https://github.com/arco-design/arco-design-mobile/issues/217)) ([6a9406e](https://github.com/arco-design/arco-design-mobile/commit/6a9406ea0dfbdb50075a4c036757e6d7988c7d92))
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
6
18
|
## [2.30.6](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.30.5...@arco-design/mobile-react@2.30.6) (2023-12-26)
|
7
19
|
|
8
20
|
|
package/README.en-US.md
CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="_b
|
|
59
59
|
React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">Click here</a>**
|
60
60
|
|
61
61
|
```
|
62
|
-
<link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.
|
63
|
-
<script src="https://unpkg.com/@arco-design/mobile-react@2.30.
|
62
|
+
<link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.6/dist/style.min.css">
|
63
|
+
<script src="https://unpkg.com/@arco-design/mobile-react@2.30.6/dist/index.min.js"></script>
|
64
64
|
```
|
65
65
|
|
66
66
|
## Full import
|
package/README.md
CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="
|
|
59
59
|
React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">戳这里获取</a>**
|
60
60
|
|
61
61
|
```
|
62
|
-
<link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.
|
63
|
-
<script src="https://unpkg.com/@arco-design/mobile-react@2.30.
|
62
|
+
<link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.6/dist/style.min.css">
|
63
|
+
<script src="https://unpkg.com/@arco-design/mobile-react@2.30.6/dist/index.min.js"></script>
|
64
64
|
```
|
65
65
|
|
66
66
|
## 引入全部
|
@@ -95,7 +95,6 @@ var JsEllipsis = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
95
95
|
function truncateHTML(container, textContainer, max) {
|
96
96
|
// only enter this function when container overflow.
|
97
97
|
var children = textContainer.childNodes;
|
98
|
-
var actualHeight = getActualHeight(container);
|
99
98
|
|
100
99
|
if (children.length === 1) {
|
101
100
|
var node = children[0];
|
@@ -106,6 +105,7 @@ var JsEllipsis = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
106
105
|
var html = node.innerHTML; // clear content to determine whether the empty node can be placed.
|
107
106
|
|
108
107
|
node.innerHTML = '';
|
108
|
+
var actualHeight = getActualHeight(container);
|
109
109
|
|
110
110
|
if (actualHeight > max) {
|
111
111
|
// return after remove the node, if overflow with empty node.
|
@@ -126,7 +126,9 @@ var JsEllipsis = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
126
126
|
while (i < nodes.length) {
|
127
127
|
textContainer.appendChild(nodes[i]);
|
128
128
|
|
129
|
-
|
129
|
+
var _actualHeight = getActualHeight(container);
|
130
|
+
|
131
|
+
if (_actualHeight > max) {
|
130
132
|
if (nodes[i].childNodes && nodes[i].childNodes.length) {
|
131
133
|
break;
|
132
134
|
} else {
|
package/dist/index.js
CHANGED
@@ -15798,7 +15798,6 @@
|
|
15798
15798
|
function truncateHTML(container, textContainer, max) {
|
15799
15799
|
// only enter this function when container overflow.
|
15800
15800
|
var children = textContainer.childNodes;
|
15801
|
-
var actualHeight = getActualHeight(container);
|
15802
15801
|
|
15803
15802
|
if (children.length === 1) {
|
15804
15803
|
var node = children[0];
|
@@ -15809,6 +15808,7 @@
|
|
15809
15808
|
var html = node.innerHTML; // clear content to determine whether the empty node can be placed.
|
15810
15809
|
|
15811
15810
|
node.innerHTML = '';
|
15811
|
+
var actualHeight = getActualHeight(container);
|
15812
15812
|
|
15813
15813
|
if (actualHeight > max) {
|
15814
15814
|
// return after remove the node, if overflow with empty node.
|
@@ -15828,6 +15828,7 @@
|
|
15828
15828
|
|
15829
15829
|
while (i < nodes.length) {
|
15830
15830
|
textContainer.appendChild(nodes[i]);
|
15831
|
+
var actualHeight = getActualHeight(container);
|
15831
15832
|
|
15832
15833
|
if (actualHeight > max) {
|
15833
15834
|
if (nodes[i].childNodes && nodes[i].childNodes.length) {
|
@@ -18466,7 +18467,7 @@
|
|
18466
18467
|
var index$g = componentWrapper(ImagePicker, 'ImagePicker');
|
18467
18468
|
|
18468
18469
|
/*!
|
18469
|
-
* @arco-design/transformable v1.0.
|
18470
|
+
* @arco-design/transformable v1.0.2
|
18470
18471
|
* (c) 2022 ludan.kibbon
|
18471
18472
|
*/
|
18472
18473
|
function _defineProperty(obj, key, value) {
|