@nutui/nutui-react 1.3.3 → 1.3.4-beta.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 +21 -0
- package/README.md +3 -2
- package/dist/esm/Address.js +7 -5
- package/dist/esm/Audio.js +7 -5
- package/dist/esm/Avatar.js +5 -3
- package/dist/esm/BackTop.js +5 -3
- package/dist/esm/Badge.js +5 -3
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Button.js +7 -5
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/Cell.js +7 -5
- package/dist/esm/Checkbox.js +2 -2
- package/dist/esm/Collapse.js +2 -1
- package/dist/esm/CollapseItem.js +13 -9
- package/dist/esm/FixedNav.js +5 -3
- package/dist/esm/GridItem.js +5 -3
- package/dist/esm/Infiniteloading.js +13 -11
- package/dist/esm/Input.js +9 -7
- package/dist/esm/InputNumber.js +7 -5
- package/dist/esm/Menu.js +5 -3
- package/dist/esm/MenuItem.js +5 -5
- package/dist/esm/NavBar.js +7 -5
- package/dist/esm/NoticeBar.js +9 -7
- package/dist/esm/Notify.js +1 -1
- package/dist/esm/Popover.js +5 -3
- package/dist/esm/Popup.js +5 -3
- package/dist/esm/Progress.js +5 -3
- package/dist/esm/PullToRefresh.js +1 -30
- package/dist/esm/Radio.js +5 -3
- package/dist/esm/Rate.js +10 -8
- package/dist/esm/SearchBar.js +5 -3
- package/dist/esm/ShortPassword.js +5 -3
- package/dist/esm/Step.js +5 -3
- package/dist/esm/Sticky/style/index.js +2 -0
- package/dist/esm/Sticky.js +209 -0
- package/dist/esm/TabbarItem.js +5 -3
- package/dist/esm/Table.js +5 -3
- package/dist/esm/Tabs.js +2 -2
- package/dist/esm/Tag.js +5 -3
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/Uploader.js +121 -44
- package/dist/esm/get-scroll-parent-3dcd3f53.js +32 -0
- package/dist/esm/nutui-react.es.js +1 -0
- package/dist/esm/render-18227751.js +43 -0
- package/dist/esm/{tabs-41234c2c.js → tabs-0896a61b.js} +5 -3
- package/dist/esm/types/src/packages/button/demo.d.ts +1 -0
- package/dist/esm/types/src/packages/collapseitem/collapseitem.d.ts +1 -0
- package/dist/esm/types/src/packages/drag/drag.d.ts +1 -1
- package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +1 -1
- package/dist/esm/types/src/packages/griditem/griditem.d.ts +1 -1
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +3 -3
- package/dist/esm/types/src/packages/input/input.d.ts +1 -1
- package/dist/esm/types/src/packages/menuitem/menuitem.d.ts +1 -1
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/popover/popover.d.ts +1 -1
- package/dist/esm/types/src/packages/progress/progress.d.ts +1 -1
- package/dist/esm/types/src/packages/radio/radio.d.ts +1 -1
- package/dist/esm/types/src/packages/sticky/__test__/sticky.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/sticky/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/sticky/index.d.ts +2 -0
- package/dist/esm/types/src/packages/sticky/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/sticky/sticky.d.ts +13 -0
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
- package/dist/esm/types/src/packages/toast/index.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/uploader/demo.d.ts +1 -0
- package/dist/esm/types/src/packages/uploader/upload.d.ts +4 -0
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +16 -12
- package/dist/esm/types/src/utils/date.d.ts +1 -1
- package/dist/esm/types/src/utils/useWatch.d.ts +6 -0
- 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/nutui.react.es.js +1002 -616
- package/dist/nutui.react.umd.js +1002 -615
- package/dist/packages/barrage/barrage.scss +7 -2
- package/dist/packages/circleprogress/circleprogress.scss +3 -0
- package/dist/packages/sticky/sticky.scss +0 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/types/index.d.ts +37 -24
- package/dist/types/nutui.react.build.ts +3 -1
- package/package.json +10 -5
- package/dist/esm/render-4a3856cb.js +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## v1.3.4
|
|
2
|
+
`2022-09-21`
|
|
3
|
+
* :sparkles: feat: Infiniteloading滚动taro适配优化开发 (#308) @junjun666
|
|
4
|
+
* :sparkles: feat: 适配 Taro h5。处理样式兼容问题。 (#307) @xiaoyatong
|
|
5
|
+
* :sparkles: chore: demo 增加白底 (#306) @oasis-cloud
|
|
6
|
+
* :sparkles: feat: 适配 Taro 的 3.5.x 版本;清理无用依赖;增加小程序首页的分享功能。 (#305) @xiaoyatong
|
|
7
|
+
* :sparkles: feat: 适配Taro h5,调整样式配置。 (#309) @xiaoyatong
|
|
8
|
+
* :sparkles: feat: nutui-react taro uploader功能更新 (#303) @junjun666
|
|
9
|
+
* :bug: fix: createRoot 类型检查 (#302) @oasis-cloud
|
|
10
|
+
* :sparkles: feat: uploader组件h5功能新增和文档修复 (#301) @junjun666
|
|
11
|
+
* :sparkles: feat: 增加布局组件Sticky (#294) @mangov587
|
|
12
|
+
* :sparkles: chore: 文档需要增加 demo 用到的 css (#300) @oasis-cloud
|
|
13
|
+
* :sparkles: chore: taro docs (#299) @oasis-cloud
|
|
14
|
+
* :sparkles: chore: typescript 4.8 (#298) @oasis-cloud
|
|
15
|
+
* :bug: fix: Iconclassprefix waring 问题修复 (#297) @oasis-cloud
|
|
16
|
+
* :sparkles: feat: toast适配taro (#295) @ovickyYe
|
|
17
|
+
* :sparkles: feat: audio组件taro适配 (#292) @libin0824
|
|
18
|
+
* :sparkles: chore: taro docs 预览 (#289) @oasis-cloud
|
|
19
|
+
* :sparkles: feat: Grid 适配 Taro。 (#287) @xiaoyatong
|
|
20
|
+
* :sparkles: feat: 增加 Taro 多端输出路径。 (#286) @xiaoyatong
|
|
21
|
+
|
|
1
22
|
## v1.3.3
|
|
2
23
|
`2022-09-14`
|
|
3
24
|
* :sparkles: chore: 组件 icon 自定义以及优化typing 导出 (#283) @oasis-cloud
|
package/README.md
CHANGED
|
@@ -48,8 +48,9 @@
|
|
|
48
48
|
<p>
|
|
49
49
|
<img src="https://img12.360buyimg.com/imagetools/jfs/t1/202336/18/18586/7437/61b832ccE0b13d53d/18605da7232a5a0e.png" height="250" alt="NutUI" />
|
|
50
50
|
</p>
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
<p>
|
|
52
|
+
<img src="https://img13.360buyimg.com/imagetools/jfs/t1/102323/22/33163/27773/632a7855E75c9fa02/8c351778f47d24f5.jpg" width="200" alt="NutUI-React" />
|
|
53
|
+
</p>
|
|
53
54
|
## 构建版本
|
|
54
55
|
|
|
55
56
|
> AMD 环境、Webpack、Vite 等构建工具环境、服务端建议使用 es 版,非模块化环境(如通过 `<script>` 标签直接引用)建议使用 umd 压缩版。
|
package/dist/esm/Address.js
CHANGED
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["children", "type", "existAddress", "selectedIcon", "defaultIcon", "isShowCustomAddress", "customAndExistTitle", "onSelected", "onClose", "onSwitchModule"],
|
|
6
6
|
_excluded2 = ["children", "type", "modelValue", "height", "province", "city", "country", "town", "onNextArea", "onTabClick", "onClose"],
|
|
7
|
-
_excluded3 = ["modelValue", "modelSelect", "children", "type", "height", "customAddressTitle", "existAddress", "existAddressTitle", "province", "city", "country", "town", "isShowCustomAddress", "customAndExistTitle", "selectedIcon", "defaultIcon", "closeBtnIcon", "backBtnIcon", "onChange", "onSelected", "onClose", "closeMask", "switchModule", "onTabChecked", "style", "className"];
|
|
7
|
+
_excluded3 = ["modelValue", "modelSelect", "children", "type", "height", "customAddressTitle", "existAddress", "existAddressTitle", "province", "city", "country", "town", "isShowCustomAddress", "customAndExistTitle", "selectedIcon", "defaultIcon", "closeBtnIcon", "backBtnIcon", "onChange", "onSelected", "onClose", "closeMask", "switchModule", "onTabChecked", "style", "className", "iconClassPrefix", "iconFontClassName"];
|
|
8
8
|
|
|
9
9
|
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; }
|
|
10
10
|
|
|
@@ -486,6 +486,8 @@ var Address = function Address(props) {
|
|
|
486
486
|
onTabChecked = _defaultProps$props.onTabChecked,
|
|
487
487
|
style = _defaultProps$props.style,
|
|
488
488
|
className = _defaultProps$props.className,
|
|
489
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
490
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
489
491
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded3);
|
|
490
492
|
|
|
491
493
|
var b = cn('address');
|
|
@@ -619,8 +621,8 @@ var Address = function Address(props) {
|
|
|
619
621
|
className: "arrow-back",
|
|
620
622
|
onClick: onSwitchModule
|
|
621
623
|
}, privateType === 'custom' && backBtnIcon && React__default.createElement(Icon, {
|
|
622
|
-
classPrefix:
|
|
623
|
-
fontClassName:
|
|
624
|
+
classPrefix: iconClassPrefix,
|
|
625
|
+
fontClassName: iconFontClassName,
|
|
624
626
|
name: backBtnIcon,
|
|
625
627
|
color: "#cccccc"
|
|
626
628
|
})), React__default.createElement("div", {
|
|
@@ -630,8 +632,8 @@ var Address = function Address(props) {
|
|
|
630
632
|
return handClose();
|
|
631
633
|
}
|
|
632
634
|
}, closeBtnIcon && React__default.createElement(Icon, {
|
|
633
|
-
classPrefix:
|
|
634
|
-
fontClassName:
|
|
635
|
+
classPrefix: iconClassPrefix,
|
|
636
|
+
fontClassName: iconFontClassName,
|
|
635
637
|
name: closeBtnIcon,
|
|
636
638
|
color: "#cccccc",
|
|
637
639
|
size: "18px"
|
package/dist/esm/Audio.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["className", "url", "style", "muted", "autoplay", "loop", "preload", "type", "onFastBack", "onForward", "onPause", "onPlayEnd", "onMute", "onCanPlay", "children"];
|
|
4
|
+
var _excluded = ["className", "url", "style", "muted", "autoplay", "loop", "preload", "type", "onFastBack", "onForward", "onPause", "onPlayEnd", "onMute", "onCanPlay", "children", "iconClassPrefix", "iconFontClassName"];
|
|
5
5
|
|
|
6
6
|
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; }
|
|
7
7
|
|
|
@@ -53,6 +53,8 @@ var Audio = function Audio(props) {
|
|
|
53
53
|
onMute = _defaultProps$props.onMute,
|
|
54
54
|
onCanPlay = _defaultProps$props.onCanPlay,
|
|
55
55
|
children = _defaultProps$props.children,
|
|
56
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
57
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
56
58
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
57
59
|
|
|
58
60
|
var _useState = useState(false),
|
|
@@ -128,13 +130,13 @@ var Audio = function Audio(props) {
|
|
|
128
130
|
className: "".concat(b('icon-box'), " ").concat(playing ? b('icon-play') : b('icon-stop')),
|
|
129
131
|
onClick: handleStatusChange
|
|
130
132
|
}, playing ? React__default.createElement(Icon, {
|
|
131
|
-
classPrefix:
|
|
132
|
-
fontClassName:
|
|
133
|
+
classPrefix: iconClassPrefix,
|
|
134
|
+
fontClassName: iconFontClassName,
|
|
133
135
|
name: "service",
|
|
134
136
|
className: "nut-icon-loading"
|
|
135
137
|
}) : React__default.createElement(Icon, {
|
|
136
|
-
classPrefix:
|
|
137
|
-
fontClassName:
|
|
138
|
+
classPrefix: iconClassPrefix,
|
|
139
|
+
fontClassName: iconFontClassName,
|
|
138
140
|
name: "service"
|
|
139
141
|
}))));
|
|
140
142
|
};
|
package/dist/esm/Avatar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["children", "prefixCls", "size", "shape", "bgColor", "color", "url", "alt", "icon", "className", "style", "activeAvatar", "onError"];
|
|
4
|
+
var _excluded = ["children", "prefixCls", "size", "shape", "bgColor", "color", "url", "alt", "icon", "className", "style", "activeAvatar", "onError", "iconClassPrefix", "iconFontClassName"];
|
|
5
5
|
|
|
6
6
|
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; }
|
|
7
7
|
|
|
@@ -42,6 +42,8 @@ var Avatar = function Avatar(props) {
|
|
|
42
42
|
style = _defaultProps$props.style,
|
|
43
43
|
activeAvatar = _defaultProps$props.activeAvatar,
|
|
44
44
|
onError = _defaultProps$props.onError,
|
|
45
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
46
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
45
47
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
46
48
|
|
|
47
49
|
var _useState = useState(0),
|
|
@@ -137,8 +139,8 @@ var Avatar = function Avatar(props) {
|
|
|
137
139
|
alt: alt,
|
|
138
140
|
onError: errorEvent
|
|
139
141
|
}), icon && React__default.createElement(Icon, {
|
|
140
|
-
classPrefix:
|
|
141
|
-
fontClassName:
|
|
142
|
+
classPrefix: iconClassPrefix,
|
|
143
|
+
fontClassName: iconFontClassName,
|
|
142
144
|
className: "icon",
|
|
143
145
|
name: iconStyles
|
|
144
146
|
}), children && React__default.createElement("span", {
|
package/dist/esm/BackTop.js
CHANGED
|
@@ -31,7 +31,9 @@ var BackTop = function BackTop(props) {
|
|
|
31
31
|
className = _defaultProps$props.className,
|
|
32
32
|
duration = _defaultProps$props.duration,
|
|
33
33
|
style = _defaultProps$props.style,
|
|
34
|
-
onClick = _defaultProps$props.onClick
|
|
34
|
+
onClick = _defaultProps$props.onClick,
|
|
35
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
36
|
+
iconFontClassName = _defaultProps$props.iconFontClassName;
|
|
35
37
|
|
|
36
38
|
var _useState = useState(false),
|
|
37
39
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -147,8 +149,8 @@ var BackTop = function BackTop(props) {
|
|
|
147
149
|
goTop(e);
|
|
148
150
|
}
|
|
149
151
|
}, children || React__default.createElement(Icon, {
|
|
150
|
-
classPrefix:
|
|
151
|
-
fontClassName:
|
|
152
|
+
classPrefix: iconClassPrefix,
|
|
153
|
+
fontClassName: iconFontClassName,
|
|
152
154
|
size: "19px",
|
|
153
155
|
className: "nut-backtop-main",
|
|
154
156
|
name: "top"
|
package/dist/esm/Badge.js
CHANGED
|
@@ -27,7 +27,9 @@ var Badge = function Badge(props) {
|
|
|
27
27
|
right = _defaultProps$props.right,
|
|
28
28
|
zIndex = _defaultProps$props.zIndex,
|
|
29
29
|
color = _defaultProps$props.color,
|
|
30
|
-
icons = _defaultProps$props.icons
|
|
30
|
+
icons = _defaultProps$props.icons,
|
|
31
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
32
|
+
iconFontClassName = _defaultProps$props.iconFontClassName;
|
|
31
33
|
|
|
32
34
|
function content() {
|
|
33
35
|
if (dot) return undefined;
|
|
@@ -55,8 +57,8 @@ var Badge = function Badge(props) {
|
|
|
55
57
|
}, icons !== '' && React__default.createElement("div", {
|
|
56
58
|
className: "slot-icons"
|
|
57
59
|
}, React__default.createElement(Icon, {
|
|
58
|
-
classPrefix:
|
|
59
|
-
fontClassName:
|
|
60
|
+
classPrefix: iconClassPrefix,
|
|
61
|
+
fontClassName: iconFontClassName,
|
|
60
62
|
className: "_icon",
|
|
61
63
|
name: icons,
|
|
62
64
|
color: "#ffffff",
|
package/dist/esm/Barrage.js
CHANGED
|
@@ -77,7 +77,7 @@ var InternalBarrage = function InternalBarrage(props, ref) {
|
|
|
77
77
|
el.classList.add('move');
|
|
78
78
|
el.style.animationDuration = "".concat(speeds, "ms");
|
|
79
79
|
el.style.top = "".concat(_index % rows * (height + top) + 20, "px");
|
|
80
|
-
el.style.width = "".concat(width
|
|
80
|
+
el.style.width = "".concat(width, "px");
|
|
81
81
|
el.style.setProperty('--move-distance', "-".concat(barrageCWidth.current, "px"));
|
|
82
82
|
el.dataset.index = "".concat(_index);
|
|
83
83
|
el.addEventListener('animationend', function () {
|
package/dist/esm/Button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["color", "shape", "plain", "loading", "disabled", "type", "size", "block", "icon", "children", "onClick", "className", "style"];
|
|
4
|
+
var _excluded = ["color", "shape", "plain", "loading", "disabled", "type", "size", "block", "icon", "children", "onClick", "className", "style", "iconClassPrefix", "iconFontClassName"];
|
|
5
5
|
|
|
6
6
|
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; }
|
|
7
7
|
|
|
@@ -42,6 +42,8 @@ var Button = function Button(props) {
|
|
|
42
42
|
onClick = _defaultProps$props.onClick,
|
|
43
43
|
className = _defaultProps$props.className,
|
|
44
44
|
style = _defaultProps$props.style,
|
|
45
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
46
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
45
47
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
46
48
|
|
|
47
49
|
var getStyle = useCallback(function () {
|
|
@@ -100,12 +102,12 @@ var Button = function Button(props) {
|
|
|
100
102
|
className: "nut-button__warp",
|
|
101
103
|
style: getStyle()
|
|
102
104
|
}, loading && React__default.createElement(Icon, {
|
|
103
|
-
classPrefix:
|
|
104
|
-
fontClassName:
|
|
105
|
+
classPrefix: iconClassPrefix,
|
|
106
|
+
fontClassName: iconFontClassName,
|
|
105
107
|
name: "loading"
|
|
106
108
|
}), !loading && icon ? React__default.createElement(Icon, {
|
|
107
|
-
classPrefix:
|
|
108
|
-
fontClassName:
|
|
109
|
+
classPrefix: iconClassPrefix,
|
|
110
|
+
fontClassName: iconFontClassName,
|
|
109
111
|
name: icon
|
|
110
112
|
}) : '', children));
|
|
111
113
|
};
|
package/dist/esm/Cascader.js
CHANGED
|
@@ -18,7 +18,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
18
18
|
import React__default, { useEffect, useState } from 'react';
|
|
19
19
|
import classNames from 'classnames';
|
|
20
20
|
import Popup from './Popup.js';
|
|
21
|
-
import { T as Tabs } from './tabs-
|
|
21
|
+
import { T as Tabs } from './tabs-0896a61b.js';
|
|
22
22
|
import { T as TabPane } from './tabpane-c957ab14.js';
|
|
23
23
|
import { I as Icon } from './icon-8dc4de10.js';
|
|
24
24
|
import { c as cn } from './bem-893ad28d.js';
|
package/dist/esm/Cell.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
var _excluded = ["children", "click", "title", "subTitle", "desc", "descTextAlign", "isLink", "icon", "roundRadius", "url", "to", "replace", "center", "size", "className", "iconSlot", "linkSlot"];
|
|
3
|
+
var _excluded = ["children", "click", "title", "subTitle", "desc", "descTextAlign", "isLink", "icon", "roundRadius", "url", "to", "replace", "center", "size", "className", "iconSlot", "linkSlot", "iconClassPrefix", "iconFontClassName"];
|
|
4
4
|
|
|
5
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
6
|
|
|
@@ -51,6 +51,8 @@ var Cell = function Cell(props) {
|
|
|
51
51
|
className = _defaultProps$props.className,
|
|
52
52
|
iconSlot = _defaultProps$props.iconSlot,
|
|
53
53
|
linkSlot = _defaultProps$props.linkSlot,
|
|
54
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
55
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
54
56
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
55
57
|
|
|
56
58
|
var b = cn('cell');
|
|
@@ -86,8 +88,8 @@ var Cell = function Cell(props) {
|
|
|
86
88
|
}, rest), children || React__default.createElement(React__default.Fragment, null, icon || iconSlot ? React__default.createElement("div", {
|
|
87
89
|
className: b('icon')
|
|
88
90
|
}, iconSlot || (icon ? React__default.createElement(Icon, {
|
|
89
|
-
classPrefix:
|
|
90
|
-
fontClassName:
|
|
91
|
+
classPrefix: iconClassPrefix,
|
|
92
|
+
fontClassName: iconFontClassName,
|
|
91
93
|
name: icon,
|
|
92
94
|
className: "icon"
|
|
93
95
|
}) : null)) : null, title || subTitle ? React__default.createElement("div", {
|
|
@@ -102,8 +104,8 @@ var Cell = function Cell(props) {
|
|
|
102
104
|
}),
|
|
103
105
|
style: styles
|
|
104
106
|
}, desc) : null, !linkSlot && (isLink || to) ? React__default.createElement(Icon, {
|
|
105
|
-
classPrefix:
|
|
106
|
-
fontClassName:
|
|
107
|
+
classPrefix: iconClassPrefix,
|
|
108
|
+
fontClassName: iconFontClassName,
|
|
107
109
|
name: "right",
|
|
108
110
|
className: b('link')
|
|
109
111
|
}) : linkSlot));
|
package/dist/esm/Checkbox.js
CHANGED
|
@@ -87,8 +87,8 @@ var Checkbox = function Checkbox(props) {
|
|
|
87
87
|
|
|
88
88
|
var renderIcon = function renderIcon() {
|
|
89
89
|
return React__default.createElement(Icon, {
|
|
90
|
-
classPrefix:
|
|
91
|
-
fontClassName:
|
|
90
|
+
classPrefix: iconClassPrefix,
|
|
91
|
+
fontClassName: iconFontClassName,
|
|
92
92
|
name: getIconName(),
|
|
93
93
|
size: iconSize,
|
|
94
94
|
className: color()
|
package/dist/esm/Collapse.js
CHANGED
package/dist/esm/CollapseItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["children", "title", "isOpen", "onToggle", "name", "disabled", "icon", "rotate", "subTitle", "titleIcon", "titleIconColor", "titleIconPosition", "titleIconSize", "iconSize", "iconColor"];
|
|
4
|
+
var _excluded = ["children", "title", "isOpen", "onToggle", "name", "disabled", "icon", "rotate", "subTitle", "titleIcon", "titleIconColor", "titleIconPosition", "titleIconSize", "iconSize", "iconColor", "childnull", "iconClassPrefix", "iconFontClassName"];
|
|
5
5
|
|
|
6
6
|
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; }
|
|
7
7
|
|
|
@@ -26,7 +26,8 @@ var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
|
26
26
|
titleIcon: '',
|
|
27
27
|
titleIconColor: '',
|
|
28
28
|
titleIconPosition: '',
|
|
29
|
-
titleIconSize: ''
|
|
29
|
+
titleIconSize: '',
|
|
30
|
+
childnull: true
|
|
30
31
|
});
|
|
31
32
|
|
|
32
33
|
var CollapseItem = function CollapseItem(props) {
|
|
@@ -46,6 +47,9 @@ var CollapseItem = function CollapseItem(props) {
|
|
|
46
47
|
titleIconSize = _defaultProps$props.titleIconSize,
|
|
47
48
|
iconSize = _defaultProps$props.iconSize,
|
|
48
49
|
iconColor = _defaultProps$props.iconColor,
|
|
50
|
+
childnull = _defaultProps$props.childnull,
|
|
51
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
52
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
49
53
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
50
54
|
|
|
51
55
|
var _useState = useState(-1),
|
|
@@ -112,16 +116,16 @@ var CollapseItem = function CollapseItem(props) {
|
|
|
112
116
|
}, titleIcon && titleIconPosition === 'left' && React__default.createElement("b", {
|
|
113
117
|
className: colBem('title-icon-left')
|
|
114
118
|
}, React__default.createElement(Icon, {
|
|
115
|
-
classPrefix:
|
|
116
|
-
fontClassName:
|
|
119
|
+
classPrefix: iconClassPrefix,
|
|
120
|
+
fontClassName: iconFontClassName,
|
|
117
121
|
name: titleIcon,
|
|
118
122
|
size: titleIconSize,
|
|
119
123
|
color: disabled ? '#C2C2C2' : titleIconColor
|
|
120
124
|
})), title, titleIcon && titleIconPosition === 'right' && React__default.createElement("b", {
|
|
121
125
|
className: colBem('title-icon-right')
|
|
122
126
|
}, React__default.createElement(Icon, {
|
|
123
|
-
classPrefix:
|
|
124
|
-
fontClassName:
|
|
127
|
+
classPrefix: iconClassPrefix,
|
|
128
|
+
fontClassName: iconFontClassName,
|
|
125
129
|
name: titleIcon,
|
|
126
130
|
size: titleIconSize,
|
|
127
131
|
color: disabled ? '#C2C2C2' : titleIconColor
|
|
@@ -133,12 +137,12 @@ var CollapseItem = function CollapseItem(props) {
|
|
|
133
137
|
className: colBem('icon'),
|
|
134
138
|
style: iconStyle
|
|
135
139
|
}, React__default.createElement(Icon, {
|
|
136
|
-
classPrefix:
|
|
137
|
-
fontClassName:
|
|
140
|
+
classPrefix: iconClassPrefix,
|
|
141
|
+
fontClassName: iconFontClassName,
|
|
138
142
|
name: icon,
|
|
139
143
|
size: iconSize,
|
|
140
144
|
color: disabled ? '#C2C2C2' : iconColor
|
|
141
|
-
})))), React__default.createElement("div", {
|
|
145
|
+
})))), childnull && React__default.createElement("div", {
|
|
142
146
|
className: colBem('content'),
|
|
143
147
|
style: {
|
|
144
148
|
height: currHeight
|
package/dist/esm/FixedNav.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
var _excluded = ["fixednavClass", "overlay", "visible", "navList", "activeText", "unActiveText", "position", "onChange", "onSelected", "type", "slotList", "slotBtn"];
|
|
3
|
+
var _excluded = ["fixednavClass", "overlay", "visible", "navList", "activeText", "unActiveText", "position", "onChange", "onSelected", "type", "slotList", "slotBtn", "iconClassPrefix", "iconFontClassName"];
|
|
4
4
|
|
|
5
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
6
|
|
|
@@ -43,6 +43,8 @@ var FixedNav = function FixedNav(props) {
|
|
|
43
43
|
type = _defaultProps$props.type,
|
|
44
44
|
slotList = _defaultProps$props.slotList,
|
|
45
45
|
slotBtn = _defaultProps$props.slotBtn,
|
|
46
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
47
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
46
48
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
47
49
|
|
|
48
50
|
var b = cn('fixednav');
|
|
@@ -100,8 +102,8 @@ var FixedNav = function FixedNav(props) {
|
|
|
100
102
|
return onUpdateValue();
|
|
101
103
|
}
|
|
102
104
|
}, slotBtn || React__default.createElement(React__default.Fragment, null, React__default.createElement(Icon, {
|
|
103
|
-
classPrefix:
|
|
104
|
-
fontClassName:
|
|
105
|
+
classPrefix: iconClassPrefix,
|
|
106
|
+
fontClassName: iconFontClassName,
|
|
105
107
|
name: "left",
|
|
106
108
|
color: "#fff"
|
|
107
109
|
}), React__default.createElement("div", {
|
package/dist/esm/GridItem.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
var _excluded = ["children", "columnNum", "index", "gutter", "square", "text", "icon", "iconColor", "iconSize", "parentIconSize", "parentIconColor", "border", "center", "reverse", "direction"];
|
|
3
|
+
var _excluded = ["children", "columnNum", "index", "gutter", "square", "text", "icon", "iconColor", "iconSize", "parentIconSize", "parentIconColor", "border", "center", "reverse", "direction", "iconClassPrefix", "iconFontClassName"];
|
|
4
4
|
|
|
5
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
6
|
|
|
@@ -48,6 +48,8 @@ var GridItem = function GridItem(props) {
|
|
|
48
48
|
center = _defaultProps$props.center,
|
|
49
49
|
reverse = _defaultProps$props.reverse,
|
|
50
50
|
direction = _defaultProps$props.direction,
|
|
51
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
52
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
51
53
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
52
54
|
|
|
53
55
|
var b = cn('grid-item');
|
|
@@ -88,8 +90,8 @@ var GridItem = function GridItem(props) {
|
|
|
88
90
|
}, rest), React__default.createElement("div", {
|
|
89
91
|
className: contentClass()
|
|
90
92
|
}, icon && isIconName() ? React__default.createElement(Icon, {
|
|
91
|
-
classPrefix:
|
|
92
|
-
fontClassName:
|
|
93
|
+
classPrefix: iconClassPrefix,
|
|
94
|
+
fontClassName: iconFontClassName,
|
|
93
95
|
name: icon,
|
|
94
96
|
size: iconSize || parentIconSize,
|
|
95
97
|
color: iconColor || parentIconColor
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["children", "hasMore", "threshold", "containerId", "useWindow", "useCapture", "isOpenRefresh", "pullIcon", "pullTxt", "loadIcon", "loadTxt", "loadMoreTxt", "className", "
|
|
4
|
+
var _excluded = ["children", "hasMore", "threshold", "containerId", "useWindow", "useCapture", "isOpenRefresh", "pullIcon", "pullTxt", "loadIcon", "loadTxt", "loadMoreTxt", "className", "onRefresh", "onLoadMore", "onScrollChange", "iconClassPrefix", "iconFontClassName"];
|
|
5
5
|
|
|
6
6
|
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; }
|
|
7
7
|
|
|
@@ -47,9 +47,11 @@ var Infiniteloading = function Infiniteloading(props) {
|
|
|
47
47
|
loadTxt = _defaultProps$props.loadTxt,
|
|
48
48
|
loadMoreTxt = _defaultProps$props.loadMoreTxt,
|
|
49
49
|
className = _defaultProps$props.className,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
onRefresh = _defaultProps$props.onRefresh,
|
|
51
|
+
onLoadMore = _defaultProps$props.onLoadMore,
|
|
52
|
+
onScrollChange = _defaultProps$props.onScrollChange,
|
|
53
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
54
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
53
55
|
restProps = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
54
56
|
|
|
55
57
|
var _useState = useState(false),
|
|
@@ -105,7 +107,7 @@ var Infiniteloading = function Infiniteloading(props) {
|
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
setIsInfiniting(true);
|
|
108
|
-
|
|
110
|
+
onLoadMore && onLoadMore(infiniteDone);
|
|
109
111
|
return true;
|
|
110
112
|
});
|
|
111
113
|
};
|
|
@@ -153,7 +155,7 @@ var Infiniteloading = function Infiniteloading(props) {
|
|
|
153
155
|
distance.current = 0;
|
|
154
156
|
refreshTop.current.style.height = "".concat(distance.current, "px");
|
|
155
157
|
} else {
|
|
156
|
-
|
|
158
|
+
onRefresh && onRefresh(refreshDone);
|
|
157
159
|
}
|
|
158
160
|
};
|
|
159
161
|
|
|
@@ -199,7 +201,7 @@ var Infiniteloading = function Infiniteloading(props) {
|
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
beforeScrollTop.current = resScrollTop;
|
|
202
|
-
|
|
204
|
+
onScrollChange && onScrollChange(resScrollTop);
|
|
203
205
|
return offsetDistance <= threshold && direction === 'down';
|
|
204
206
|
};
|
|
205
207
|
|
|
@@ -216,8 +218,8 @@ var Infiniteloading = function Infiniteloading(props) {
|
|
|
216
218
|
}, React__default.createElement("div", {
|
|
217
219
|
className: "top-box"
|
|
218
220
|
}, React__default.createElement(Icon, {
|
|
219
|
-
classPrefix:
|
|
220
|
-
fontClassName:
|
|
221
|
+
classPrefix: iconClassPrefix,
|
|
222
|
+
fontClassName: iconFontClassName,
|
|
221
223
|
className: "top-img",
|
|
222
224
|
name: pullIcon
|
|
223
225
|
}), React__default.createElement("span", {
|
|
@@ -229,8 +231,8 @@ var Infiniteloading = function Infiniteloading(props) {
|
|
|
229
231
|
}, isInfiniting ? React__default.createElement("div", {
|
|
230
232
|
className: "bottom-box"
|
|
231
233
|
}, React__default.createElement(Icon, {
|
|
232
|
-
classPrefix:
|
|
233
|
-
fontClassName:
|
|
234
|
+
classPrefix: iconClassPrefix,
|
|
235
|
+
fontClassName: iconFontClassName,
|
|
234
236
|
className: "bottom-img",
|
|
235
237
|
name: loadIcon
|
|
236
238
|
}), React__default.createElement("div", {
|
package/dist/esm/Input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["children", "type", "defaultValue", "placeholder", "label", "labelClass", "labelWidth", "labelAlign", "colon", "inputAlign", "center", "required", "disabled", "readonly", "error", "maxlength", "leftIcon", "leftIconSize", "rightIcon", "rightIconSize", "clearable", "clearIcon", "clearSize", "border", "formatTrigger", "rules", "errorMessage", "errorMessageAlign", "showWordLimit", "autofocus", "style", "className", "rows", "slotButton", "slotInput", "change", "blur", "focus", "clear", "formatter", "keypress", "clickInput", "clickLeftIcon", "clickRightIcon", "click"];
|
|
4
|
+
var _excluded = ["children", "type", "defaultValue", "placeholder", "label", "labelClass", "labelWidth", "labelAlign", "colon", "inputAlign", "center", "required", "disabled", "readonly", "error", "maxlength", "leftIcon", "leftIconSize", "rightIcon", "rightIconSize", "clearable", "clearIcon", "clearSize", "border", "formatTrigger", "rules", "errorMessage", "errorMessageAlign", "showWordLimit", "autofocus", "style", "className", "rows", "slotButton", "slotInput", "change", "blur", "focus", "clear", "formatter", "keypress", "clickInput", "clickLeftIcon", "clickRightIcon", "click", "iconClassPrefix", "iconFontClassName"];
|
|
5
5
|
|
|
6
6
|
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; }
|
|
7
7
|
|
|
@@ -131,6 +131,8 @@ var Input = function Input(props) {
|
|
|
131
131
|
clickLeftIcon = _defaultProps$props.clickLeftIcon,
|
|
132
132
|
clickRightIcon = _defaultProps$props.clickRightIcon,
|
|
133
133
|
click = _defaultProps$props.click,
|
|
134
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
135
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
134
136
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
135
137
|
|
|
136
138
|
locale.placeholder = placeholder || locale.placeholder;
|
|
@@ -298,8 +300,8 @@ var Input = function Input(props) {
|
|
|
298
300
|
onClickLeftIcon(e);
|
|
299
301
|
}
|
|
300
302
|
}, React__default.createElement(Icon, {
|
|
301
|
-
classPrefix:
|
|
302
|
-
fontClassName:
|
|
303
|
+
classPrefix: iconClassPrefix,
|
|
304
|
+
fontClassName: iconFontClassName,
|
|
303
305
|
name: leftIcon,
|
|
304
306
|
size: leftIconSize
|
|
305
307
|
})) : null, React__default.createElement("div", {
|
|
@@ -362,8 +364,8 @@ var Input = function Input(props) {
|
|
|
362
364
|
_onInput(e);
|
|
363
365
|
}
|
|
364
366
|
}), clearable && !readonly && active && inputValue.length > 0 ? React__default.createElement(Icon, {
|
|
365
|
-
classPrefix:
|
|
366
|
-
fontClassName:
|
|
367
|
+
classPrefix: iconClassPrefix,
|
|
368
|
+
fontClassName: iconFontClassName,
|
|
367
369
|
className: "nut-input-clear",
|
|
368
370
|
name: clearIcon,
|
|
369
371
|
size: clearSize,
|
|
@@ -376,8 +378,8 @@ var Input = function Input(props) {
|
|
|
376
378
|
onClickRightIcon(e);
|
|
377
379
|
}
|
|
378
380
|
}, React__default.createElement(Icon, {
|
|
379
|
-
classPrefix:
|
|
380
|
-
fontClassName:
|
|
381
|
+
classPrefix: iconClassPrefix,
|
|
382
|
+
fontClassName: iconFontClassName,
|
|
381
383
|
name: rightIcon,
|
|
382
384
|
size: rightIconSize
|
|
383
385
|
})) : null, slotButton ? React__default.createElement("div", {
|
package/dist/esm/InputNumber.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["children", "disabled", "buttonSize", "min", "max", "inputWidth", "readonly", "modelValue", "decimalPlaces", "step", "isAsync", "className", "style", "add", "reduce", "change", "overlimit", "blur", "focus"];
|
|
4
|
+
var _excluded = ["children", "disabled", "buttonSize", "min", "max", "inputWidth", "readonly", "modelValue", "decimalPlaces", "step", "isAsync", "className", "style", "add", "reduce", "change", "overlimit", "blur", "focus", "iconClassPrefix", "iconFontClassName"];
|
|
5
5
|
|
|
6
6
|
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; }
|
|
7
7
|
|
|
@@ -52,6 +52,8 @@ var InputNumber = function InputNumber(props) {
|
|
|
52
52
|
overlimit = _defaultProps$props.overlimit,
|
|
53
53
|
blur = _defaultProps$props.blur,
|
|
54
54
|
focus = _defaultProps$props.focus,
|
|
55
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
56
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
55
57
|
restProps = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
56
58
|
|
|
57
59
|
var _useState = useState(modelValue),
|
|
@@ -166,8 +168,8 @@ var InputNumber = function InputNumber(props) {
|
|
|
166
168
|
className: classes,
|
|
167
169
|
style: styles
|
|
168
170
|
}, restProps), React__default.createElement(Icon, {
|
|
169
|
-
classPrefix:
|
|
170
|
-
fontClassName:
|
|
171
|
+
classPrefix: iconClassPrefix,
|
|
172
|
+
fontClassName: iconFontClassName,
|
|
171
173
|
className: iconMinusClasses,
|
|
172
174
|
size: buttonSize,
|
|
173
175
|
name: "minus",
|
|
@@ -186,8 +188,8 @@ var InputNumber = function InputNumber(props) {
|
|
|
186
188
|
onBlur: burValue,
|
|
187
189
|
onFocus: focusValue
|
|
188
190
|
}), React__default.createElement(Icon, {
|
|
189
|
-
classPrefix:
|
|
190
|
-
fontClassName:
|
|
191
|
+
classPrefix: iconClassPrefix,
|
|
192
|
+
fontClassName: iconFontClassName,
|
|
191
193
|
className: iconAddClasses,
|
|
192
194
|
size: buttonSize,
|
|
193
195
|
name: "plus",
|
package/dist/esm/Menu.js
CHANGED
|
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
var _excluded = ["className", "titleIcon", "scrollFixed", "lockScroll", "closeOnClickOverlay", "children", "activeColor"];
|
|
5
|
+
var _excluded = ["className", "titleIcon", "scrollFixed", "lockScroll", "closeOnClickOverlay", "children", "activeColor", "iconClassPrefix", "iconFontClassName"];
|
|
6
6
|
|
|
7
7
|
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; }
|
|
8
8
|
|
|
@@ -32,6 +32,8 @@ var Menu = function Menu(props) {
|
|
|
32
32
|
closeOnClickOverlay = _defaultProps$props.closeOnClickOverlay,
|
|
33
33
|
children = _defaultProps$props.children,
|
|
34
34
|
activeColor = _defaultProps$props.activeColor,
|
|
35
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
36
|
+
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
35
37
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
36
38
|
|
|
37
39
|
var parentRef = useRef(null);
|
|
@@ -159,8 +161,8 @@ var Menu = function Menu(props) {
|
|
|
159
161
|
}, React__default.createElement("div", {
|
|
160
162
|
className: "nut-menu__title-text"
|
|
161
163
|
}, finallyTitle()), React__default.createElement(Icon, {
|
|
162
|
-
classPrefix:
|
|
163
|
-
fontClassName:
|
|
164
|
+
classPrefix: iconClassPrefix,
|
|
165
|
+
fontClassName: iconFontClassName,
|
|
164
166
|
className: "nut-menu__title-icon",
|
|
165
167
|
size: "10",
|
|
166
168
|
name: titleIcon || (direction === 'up' ? 'arrow-up' : 'down-arrow')
|