@nutui/nutui-react 1.3.14 → 1.3.15-beta.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 +21 -12
- package/dist/esm/Animate/style/index.js +2 -0
- package/dist/esm/Animate.js +55 -0
- package/dist/esm/Ellipsis/style/index.js +2 -0
- package/dist/esm/Ellipsis.js +178 -0
- package/dist/esm/nutui-react.es.js +2 -0
- package/dist/esm/types/src/locales/zh-UG.d.ts +3 -0
- package/dist/esm/types/src/packages/animate/__tests__/animate.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/animate/animate.d.ts +11 -0
- package/dist/esm/types/src/packages/animate/demo.d.ts +4 -0
- package/dist/esm/types/src/packages/animate/index.d.ts +2 -0
- package/dist/esm/types/src/packages/animate/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/animate/type.d.ts +2 -0
- package/dist/esm/types/src/packages/ellipsis/__test__/ellipsis.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/ellipsis/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +14 -0
- package/dist/esm/types/src/packages/ellipsis/index.d.ts +2 -0
- package/dist/esm/types/src/packages/ellipsis/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +5 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +2 -0
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.d.ts +3 -0
- package/dist/locales/zh-UG.js +132 -0
- package/dist/nutui.react.es.js +453 -242
- package/dist/nutui.react.umd.js +454 -241
- package/dist/packages/animate/animate.scss +284 -0
- package/dist/packages/ellipsis/ellipsis.scss +17 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +2 -0
- package/dist/types/index.d.ts +27 -1
- package/dist/types/nutui.react.build.ts +5 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
|
+
# v1.3.15
|
|
2
|
+
`2022-12-14`
|
|
3
|
+
|
|
4
|
+
* :sparkles: feat: 新增 animate 动画/动效组件 (#541) @junjun666
|
|
5
|
+
* :sparkles: feat: 新增 ellipsis 组件 (#515) @vickyYe
|
|
6
|
+
* :sparkles: feat: 新增维吾尔语言包 (#526) @MirGhojam
|
|
7
|
+
* :bug: fix: 修复 publish 脚本执行时机错误的问题 (#540) @oasis-cloud
|
|
8
|
+
* 📖 docs: 文档更新 tabbar 的 to 增加属性的说明 (#539) @oasis-cloud
|
|
9
|
+
|
|
1
10
|
# v1.3.14
|
|
2
11
|
`2022-12-09`
|
|
3
12
|
|
|
4
|
-
feat: image 适配 taro (#507) @vickyYe
|
|
5
|
-
feat: Grid 组件添加 onClick 事件,统一管理子项点击事件,无需在GridItem组件中分别添加点击事件 (#492) @cuicuiworld
|
|
6
|
-
fix: react18 render 提示错误信息 (#524) @oasis-cloud
|
|
7
|
-
fix: noticebar 纵向滚动渲染慢问题修复,设置高度小于默认值时动效失效问题修复 (#528) @vickyYe
|
|
8
|
-
fix: icon 组件 mask-close 未展示叉号 (#527) @oasis-cloud
|
|
9
|
-
fix: #508 修改折叠面板组件修改后不刷新问题 (#521) @zhenyulei
|
|
10
|
-
fix: imagepreview 设置 initNo 后 active 计算错误 (#512) @oasis-cloud
|
|
11
|
-
fix: 移除 formitem 对 react-router-dom 的依赖 (#513) @oasis-cloud
|
|
12
|
-
fix: trendarrow 组件文档增加taro引入方式说明、css文件引入icon的scss文件、修改icon组件的引入方式 (#502) @irisSong
|
|
13
|
-
docs: 修正 virtualList 的文档错误 (#510) @Antee
|
|
14
|
-
docs: Readme 中英文修改 (#525) @vickyYe
|
|
15
|
-
docs: 文档中增加 nutui-react-taro的 import 方式 (#522) @oasis-cloud
|
|
13
|
+
* :sparkles: feat: image 适配 taro (#507) @vickyYe
|
|
14
|
+
* :sparkles: feat: Grid 组件添加 onClick 事件,统一管理子项点击事件,无需在GridItem组件中分别添加点击事件 (#492) @cuicuiworld
|
|
15
|
+
* :bug: fix: react18 render 提示错误信息 (#524) @oasis-cloud
|
|
16
|
+
* :bug: fix: noticebar 纵向滚动渲染慢问题修复,设置高度小于默认值时动效失效问题修复 (#528) @vickyYe
|
|
17
|
+
* :bug: fix: icon 组件 mask-close 未展示叉号 (#527) @oasis-cloud
|
|
18
|
+
* :bug: fix: #508 修改折叠面板组件修改后不刷新问题 (#521) @zhenyulei
|
|
19
|
+
* :bug: fix: imagepreview 设置 initNo 后 active 计算错误 (#512) @oasis-cloud
|
|
20
|
+
* :bug: fix: 移除 formitem 对 react-router-dom 的依赖 (#513) @oasis-cloud
|
|
21
|
+
* :bug: fix: trendarrow 组件文档增加taro引入方式说明、css文件引入icon的scss文件、修改icon组件的引入方式 (#502) @irisSong
|
|
22
|
+
* 📖 docs: 修正 virtualList 的文档错误 (#510) @Antee
|
|
23
|
+
* 📖 docs: Readme 中英文修改 (#525) @vickyYe
|
|
24
|
+
* 📖 docs: 文档中增加 nutui-react-taro的 import 方式 (#522) @oasis-cloud
|
|
16
25
|
|
|
17
26
|
|
|
18
27
|
# v1.3.13
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["className", "type", "action", "loop", "onClick", "children"];
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
+
import React__default, { useState } from 'react';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import { c as cn } from './bem-893ad28d.js';
|
|
10
|
+
import '@bem-react/classname';
|
|
11
|
+
var defaultProps = {
|
|
12
|
+
type: 'shake',
|
|
13
|
+
action: 'initial',
|
|
14
|
+
loop: false,
|
|
15
|
+
onClick: function onClick(event) {}
|
|
16
|
+
};
|
|
17
|
+
var Animate = function Animate(props) {
|
|
18
|
+
var _classNames;
|
|
19
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
20
|
+
className = _defaultProps$props.className,
|
|
21
|
+
type = _defaultProps$props.type,
|
|
22
|
+
action = _defaultProps$props.action,
|
|
23
|
+
loop = _defaultProps$props.loop,
|
|
24
|
+
onClick = _defaultProps$props.onClick,
|
|
25
|
+
children = _defaultProps$props.children,
|
|
26
|
+
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
27
|
+
var _useState = useState(false),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
+
clicked = _useState2[0],
|
|
30
|
+
setClicked = _useState2[1];
|
|
31
|
+
var b = cn('animate');
|
|
32
|
+
var classes = classNames((_classNames = {
|
|
33
|
+
'nut-ani-container': true
|
|
34
|
+
}, _defineProperty(_classNames, "".concat(b(''), "-").concat(type), action === 'initial' || clicked ? type : false), _defineProperty(_classNames, "loop", loop), _classNames));
|
|
35
|
+
var cls = classNames(classes, className);
|
|
36
|
+
var handleClick = function handleClick(event) {
|
|
37
|
+
setClicked(true);
|
|
38
|
+
//如果不是无限循环,清除类名
|
|
39
|
+
if (!loop) {
|
|
40
|
+
setTimeout(function () {
|
|
41
|
+
setClicked(false);
|
|
42
|
+
}, 1000);
|
|
43
|
+
}
|
|
44
|
+
onClick && onClick(event);
|
|
45
|
+
};
|
|
46
|
+
return React__default.createElement("div", {
|
|
47
|
+
className: "nut-animate"
|
|
48
|
+
}, React__default.createElement("div", _objectSpread({
|
|
49
|
+
className: cls,
|
|
50
|
+
onClick: handleClick
|
|
51
|
+
}, rest), children));
|
|
52
|
+
};
|
|
53
|
+
Animate.defaultProps = defaultProps;
|
|
54
|
+
Animate.displayName = 'NutAnimate';
|
|
55
|
+
export { Animate as default };
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
+
import React__default, { useState, useRef, useLayoutEffect, useEffect } from 'react';
|
|
6
|
+
import { useConfig } from './ConfigProvider.js';
|
|
7
|
+
var defaultProps = {
|
|
8
|
+
content: '',
|
|
9
|
+
direction: 'end',
|
|
10
|
+
rows: 1,
|
|
11
|
+
expandText: '',
|
|
12
|
+
collapseText: '',
|
|
13
|
+
symbol: '...',
|
|
14
|
+
lineHeight: '20'
|
|
15
|
+
};
|
|
16
|
+
var Ellipsis = function Ellipsis(props) {
|
|
17
|
+
var _ellipsis$current, _ellipsis$current2;
|
|
18
|
+
useConfig();
|
|
19
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
20
|
+
children = _defaultProps$props.children,
|
|
21
|
+
content = _defaultProps$props.content,
|
|
22
|
+
direction = _defaultProps$props.direction,
|
|
23
|
+
rows = _defaultProps$props.rows,
|
|
24
|
+
expandText = _defaultProps$props.expandText,
|
|
25
|
+
collapseText = _defaultProps$props.collapseText,
|
|
26
|
+
symbol = _defaultProps$props.symbol,
|
|
27
|
+
lineHeight = _defaultProps$props.lineHeight,
|
|
28
|
+
onClick = _defaultProps$props.onClick,
|
|
29
|
+
onChange = _defaultProps$props.onChange;
|
|
30
|
+
var container = null;
|
|
31
|
+
var maxHeight = 0; // 当行的最大高度
|
|
32
|
+
var _useState = useState(false),
|
|
33
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
34
|
+
exceeded = _useState2[0],
|
|
35
|
+
setExceeded = _useState2[1];
|
|
36
|
+
var _useState3 = useState(false),
|
|
37
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38
|
+
expanded = _useState4[0],
|
|
39
|
+
setExpanded = _useState4[1];
|
|
40
|
+
var ellipsis = useRef();
|
|
41
|
+
var root = useRef(null);
|
|
42
|
+
useLayoutEffect(function () {
|
|
43
|
+
createContainer();
|
|
44
|
+
}, []);
|
|
45
|
+
useEffect(function () {
|
|
46
|
+
if (content) {
|
|
47
|
+
if (container) {
|
|
48
|
+
document.body.appendChild(container);
|
|
49
|
+
}
|
|
50
|
+
createContainer();
|
|
51
|
+
}
|
|
52
|
+
}, [content]);
|
|
53
|
+
// 创建虚拟 container,内容为 contant 的内容
|
|
54
|
+
var createContainer = function createContainer() {
|
|
55
|
+
if (!root.current) return;
|
|
56
|
+
var originStyle = window.getComputedStyle(root.current);
|
|
57
|
+
container = document.createElement('div');
|
|
58
|
+
var styleNames = Array.prototype.slice.apply(originStyle);
|
|
59
|
+
styleNames.forEach(function (name) {
|
|
60
|
+
container.style.setProperty(name, originStyle.getPropertyValue(name));
|
|
61
|
+
});
|
|
62
|
+
container.style.position = 'fixed';
|
|
63
|
+
container.style.left = '999999px';
|
|
64
|
+
container.style.top = '999999px';
|
|
65
|
+
container.style.zIndex = '-1000';
|
|
66
|
+
container.style.height = 'auto';
|
|
67
|
+
container.style.minHeight = 'auto';
|
|
68
|
+
container.style.maxHeight = 'auto';
|
|
69
|
+
container.style.textOverflow = 'clip';
|
|
70
|
+
container.style.whiteSpace = 'normal';
|
|
71
|
+
container.style.webkitLineClamp = 'unset';
|
|
72
|
+
container.style.display = 'block';
|
|
73
|
+
var lineH = pxToNumber(originStyle.lineHeight === 'normal' ? lineHeight : originStyle.lineHeight);
|
|
74
|
+
maxHeight = Math.floor(lineH * (Number(rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom));
|
|
75
|
+
container.innerText = content;
|
|
76
|
+
document.body.appendChild(container);
|
|
77
|
+
calcEllipse();
|
|
78
|
+
};
|
|
79
|
+
// 计算省略号的位置
|
|
80
|
+
var calcEllipse = function calcEllipse() {
|
|
81
|
+
if (container.offsetHeight <= maxHeight) {
|
|
82
|
+
setExceeded(false);
|
|
83
|
+
} else {
|
|
84
|
+
setExceeded(true);
|
|
85
|
+
var end = content.length;
|
|
86
|
+
var middle = Math.floor((0 + end) / 2);
|
|
87
|
+
var ellipsised = direction === 'middle' ? tailorMiddle([0, middle], [middle, end]) : tailor(0, end);
|
|
88
|
+
ellipsis.current = ellipsised;
|
|
89
|
+
document.body.removeChild(container);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
// 计算 start/end 省略
|
|
93
|
+
var tailor = function tailor(left, right) {
|
|
94
|
+
var actionText = expanded ? collapseText : expandText;
|
|
95
|
+
var end = content.length;
|
|
96
|
+
if (right - left <= 1) {
|
|
97
|
+
if (direction === 'end') {
|
|
98
|
+
return {
|
|
99
|
+
leading: content.slice(0, left) + symbol
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
tailing: symbol + content.slice(right, end)
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
var middle = Math.round((left + right) / 2);
|
|
107
|
+
if (direction === 'end') {
|
|
108
|
+
container.innerText = content.slice(0, middle) + symbol + actionText;
|
|
109
|
+
} else {
|
|
110
|
+
container.innerText = actionText + symbol + content.slice(middle, end);
|
|
111
|
+
}
|
|
112
|
+
if (container.offsetHeight <= maxHeight) {
|
|
113
|
+
if (direction === 'end') {
|
|
114
|
+
return tailor(middle, right);
|
|
115
|
+
}
|
|
116
|
+
return tailor(left, middle);
|
|
117
|
+
}
|
|
118
|
+
if (direction === 'end') {
|
|
119
|
+
return tailor(left, middle);
|
|
120
|
+
}
|
|
121
|
+
return tailor(middle, right);
|
|
122
|
+
};
|
|
123
|
+
// 计算 middle 省略
|
|
124
|
+
var tailorMiddle = function tailorMiddle(leftPart, rightPart) {
|
|
125
|
+
var actionText = expanded ? collapseText : expandText;
|
|
126
|
+
var end = content.length;
|
|
127
|
+
if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
|
|
128
|
+
return {
|
|
129
|
+
leading: content.slice(0, leftPart[0]) + symbol,
|
|
130
|
+
tailing: symbol + content.slice(rightPart[1], end)
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
var leftPartMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
|
|
134
|
+
var rightPartMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
|
|
135
|
+
container.innerText = content.slice(0, leftPartMiddle) + symbol + actionText + symbol + content.slice(rightPartMiddle, end);
|
|
136
|
+
if (container.offsetHeight <= maxHeight) {
|
|
137
|
+
return tailorMiddle([leftPartMiddle, leftPart[1]], [rightPart[0], rightPartMiddle]);
|
|
138
|
+
}
|
|
139
|
+
return tailorMiddle([leftPart[0], leftPartMiddle], [rightPartMiddle, rightPart[1]]);
|
|
140
|
+
};
|
|
141
|
+
var pxToNumber = function pxToNumber(value) {
|
|
142
|
+
if (!value) return 0;
|
|
143
|
+
var match = value.match(/^\d*(\.\d*)?/);
|
|
144
|
+
return match ? Number(match[0]) : 0;
|
|
145
|
+
};
|
|
146
|
+
// 展开收起
|
|
147
|
+
var clickHandle = function clickHandle(type) {
|
|
148
|
+
if (type === 1) {
|
|
149
|
+
setExpanded(true);
|
|
150
|
+
onChange && onChange('expand');
|
|
151
|
+
} else {
|
|
152
|
+
setExpanded(false);
|
|
153
|
+
onChange && onChange('collapse');
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
// 文本点击
|
|
157
|
+
var handleClick = function handleClick() {
|
|
158
|
+
onClick && onClick();
|
|
159
|
+
};
|
|
160
|
+
return React__default.createElement("div", {
|
|
161
|
+
className: "nut-ellipsis",
|
|
162
|
+
onClick: handleClick,
|
|
163
|
+
ref: root
|
|
164
|
+
}, React__default.createElement("div", null, !exceeded ? content : null, exceeded && !expanded ? React__default.createElement(React__default.Fragment, null, (_ellipsis$current = ellipsis.current) === null || _ellipsis$current === void 0 ? void 0 : _ellipsis$current.leading, expandText ? React__default.createElement("span", {
|
|
165
|
+
className: "nut-ellipsis-text",
|
|
166
|
+
onClick: function onClick() {
|
|
167
|
+
clickHandle(1);
|
|
168
|
+
}
|
|
169
|
+
}, expandText) : null, (_ellipsis$current2 = ellipsis.current) === null || _ellipsis$current2 === void 0 ? void 0 : _ellipsis$current2.tailing) : null, exceeded && expanded ? React__default.createElement(React__default.Fragment, null, content, expandText ? React__default.createElement("span", {
|
|
170
|
+
className: "nut-ellipsis-text",
|
|
171
|
+
onClick: function onClick() {
|
|
172
|
+
clickHandle(2);
|
|
173
|
+
}
|
|
174
|
+
}, collapseText) : null) : null));
|
|
175
|
+
};
|
|
176
|
+
Ellipsis.defaultProps = defaultProps;
|
|
177
|
+
Ellipsis.displayName = 'NutEllipsis';
|
|
178
|
+
export { Ellipsis as default };
|
|
@@ -83,6 +83,8 @@ export { default as Audio } from './Audio.js';
|
|
|
83
83
|
export { default as ImagePreview } from './ImagePreview.js';
|
|
84
84
|
export { default as TrendArrow } from './TrendArrow.js';
|
|
85
85
|
export { default as WaterMark } from './WaterMark.js';
|
|
86
|
+
export { default as Animate } from './Animate.js';
|
|
87
|
+
export { default as Ellipsis } from './Ellipsis.js';
|
|
86
88
|
export { default as Address } from './Address.js';
|
|
87
89
|
export { default as Barrage } from './Barrage.js';
|
|
88
90
|
export { default as Signature } from './Signature.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { AnimateType, AnimateAction } from './type';
|
|
3
|
+
export interface AnimateProps {
|
|
4
|
+
type: AnimateType;
|
|
5
|
+
action: AnimateAction;
|
|
6
|
+
loop: boolean;
|
|
7
|
+
className: string;
|
|
8
|
+
style: React.CSSProperties;
|
|
9
|
+
onClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Animate: FunctionComponent<Partial<AnimateProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export declare type Direction = 'start' | 'end' | 'middle';
|
|
3
|
+
export interface EllipsisProps {
|
|
4
|
+
content: string;
|
|
5
|
+
direction: string;
|
|
6
|
+
rows: number | string;
|
|
7
|
+
expandText: string;
|
|
8
|
+
collapseText: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
lineHeight: number | string;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
onChange: (type: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Ellipsis: FunctionComponent<Partial<EllipsisProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onChange'>>;
|
|
@@ -83,6 +83,8 @@ import Audio from '@/packages/audio';
|
|
|
83
83
|
import ImagePreview from '@/packages/imagepreview';
|
|
84
84
|
import TrendArrow from '@/packages/trendarrow';
|
|
85
85
|
import WaterMark from '@/packages/watermark';
|
|
86
|
+
import Animate from '@/packages/animate';
|
|
87
|
+
import Ellipsis from '@/packages/ellipsis';
|
|
86
88
|
import Address from '@/packages/address';
|
|
87
89
|
import Barrage from '@/packages/barrage';
|
|
88
90
|
import Signature from '@/packages/signature';
|
|
@@ -90,4 +92,4 @@ import Card from '@/packages/card';
|
|
|
90
92
|
import TimePannel from '@/packages/timepannel';
|
|
91
93
|
import TimeDetail from '@/packages/timedetail';
|
|
92
94
|
import TimeSelect from '@/packages/timeselect';
|
|
93
|
-
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, Form, FormItem, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, TrendArrow, WaterMark, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
95
|
+
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, Form, FormItem, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, TrendArrow, WaterMark, Animate, Ellipsis, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
@@ -83,6 +83,8 @@ import Audio from '@/packages/audio';
|
|
|
83
83
|
import ImagePreview from '@/packages/imagepreview';
|
|
84
84
|
import TrendArrow from '@/packages/trendarrow';
|
|
85
85
|
import WaterMark from '@/packages/watermark';
|
|
86
|
+
import Animate from '@/packages/animate';
|
|
87
|
+
import Ellipsis from '@/packages/ellipsis';
|
|
86
88
|
import Address from '@/packages/address';
|
|
87
89
|
import Barrage from '@/packages/barrage';
|
|
88
90
|
import Signature from '@/packages/signature';
|
|
@@ -175,6 +177,8 @@ import '@/packages/audio/audio.scss';
|
|
|
175
177
|
import '@/packages/imagepreview/imagepreview.scss';
|
|
176
178
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
177
179
|
import '@/packages/watermark/watermark.scss';
|
|
180
|
+
import '@/packages/animate/animate.scss';
|
|
181
|
+
import '@/packages/ellipsis/ellipsis.scss';
|
|
178
182
|
import '@/packages/address/address.scss';
|
|
179
183
|
import '@/packages/barrage/barrage.scss';
|
|
180
184
|
import '@/packages/signature/signature.scss';
|
|
@@ -182,4 +186,4 @@ import '@/packages/card/card.scss';
|
|
|
182
186
|
import '@/packages/timepannel/timepannel.scss';
|
|
183
187
|
import '@/packages/timedetail/timedetail.scss';
|
|
184
188
|
import '@/packages/timeselect/timeselect.scss';
|
|
185
|
-
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, Form, FormItem, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, TrendArrow, WaterMark, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
189
|
+
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, Form, FormItem, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, TrendArrow, WaterMark, Animate, Ellipsis, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
@@ -83,6 +83,8 @@ import '@/packages/audio/audio.scss';
|
|
|
83
83
|
import '@/packages/imagepreview/imagepreview.scss';
|
|
84
84
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
85
85
|
import '@/packages/watermark/watermark.scss';
|
|
86
|
+
import '@/packages/animate/animate.scss';
|
|
87
|
+
import '@/packages/ellipsis/ellipsis.scss';
|
|
86
88
|
import '@/packages/address/address.scss';
|
|
87
89
|
import '@/packages/barrage/barrage.scss';
|
|
88
90
|
import '@/packages/signature/signature.scss';
|
|
@@ -83,6 +83,7 @@ import Audio from '@/packages/audio/index.taro';
|
|
|
83
83
|
import ImagePreview from '@/packages/imagepreview/index.taro';
|
|
84
84
|
import TrendArrow from '@/packages/trendarrow/index.taro';
|
|
85
85
|
import WaterMark from '@/packages/watermark/index.taro';
|
|
86
|
+
import Animate from '@/packages/animate/index.taro';
|
|
86
87
|
import Address from '@/packages/address/index.taro';
|
|
87
88
|
import Barrage from '@/packages/barrage/index.taro';
|
|
88
89
|
import Signature from '@/packages/signature/index.taro';
|
|
@@ -175,6 +176,7 @@ import '@/packages/audio/audio.scss';
|
|
|
175
176
|
import '@/packages/imagepreview/imagepreview.scss';
|
|
176
177
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
177
178
|
import '@/packages/watermark/watermark.scss';
|
|
179
|
+
import '@/packages/animate/animate.scss';
|
|
178
180
|
import '@/packages/address/address.scss';
|
|
179
181
|
import '@/packages/barrage/barrage.scss';
|
|
180
182
|
import '@/packages/signature/signature.scss';
|
|
@@ -182,4 +184,4 @@ import '@/packages/card/card.scss';
|
|
|
182
184
|
import '@/packages/timepannel/timepannel.scss';
|
|
183
185
|
import '@/packages/timedetail/timedetail.scss';
|
|
184
186
|
import '@/packages/timeselect/timeselect.scss';
|
|
185
|
-
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, Form, FormItem, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, TrendArrow, WaterMark, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
187
|
+
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, Form, FormItem, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, TrendArrow, WaterMark, Animate, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
@@ -83,6 +83,7 @@ import '@/packages/audio/audio.scss';
|
|
|
83
83
|
import '@/packages/imagepreview/imagepreview.scss';
|
|
84
84
|
import '@/packages/trendarrow/trendarrow.scss';
|
|
85
85
|
import '@/packages/watermark/watermark.scss';
|
|
86
|
+
import '@/packages/animate/animate.scss';
|
|
86
87
|
import '@/packages/address/address.scss';
|
|
87
88
|
import '@/packages/barrage/barrage.scss';
|
|
88
89
|
import '@/packages/signature/signature.scss';
|
|
@@ -83,6 +83,7 @@ import Audio from '@/packages/audio/index.taro';
|
|
|
83
83
|
import ImagePreview from '@/packages/imagepreview/index.taro';
|
|
84
84
|
import TrendArrow from '@/packages/trendarrow/index.taro';
|
|
85
85
|
import WaterMark from '@/packages/watermark/index.taro';
|
|
86
|
+
import Animate from '@/packages/animate/index.taro';
|
|
86
87
|
import Address from '@/packages/address/index.taro';
|
|
87
88
|
import Barrage from '@/packages/barrage/index.taro';
|
|
88
89
|
import Signature from '@/packages/signature/index.taro';
|
|
@@ -90,4 +91,4 @@ import Card from '@/packages/card/index.taro';
|
|
|
90
91
|
import TimePannel from '@/packages/timepannel/index.taro';
|
|
91
92
|
import TimeDetail from '@/packages/timedetail/index.taro';
|
|
92
93
|
import TimeSelect from '@/packages/timeselect/index.taro';
|
|
93
|
-
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, Form, FormItem, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, TrendArrow, WaterMark, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
|
94
|
+
export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Divider, Grid, GridItem, Sticky, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, Form, FormItem, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, PullToRefresh, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, TrendArrow, WaterMark, Animate, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED