@nutui/nutui-react 2.0.0-alpha.11 → 2.0.0-alpha.12
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 +14 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +28 -37
- package/dist/esm/CountDown/style/style.css +1 -1
- package/dist/esm/CountDown.js +20 -15
- package/dist/esm/Ellipsis/style/style.css +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +33 -87
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +65 -133
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Toast.js +86 -102
- package/dist/esm/VirtualList/style/style.css +1 -1
- package/dist/esm/VirtualList.js +29 -25
- package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +11 -15
- package/dist/esm/types/src/packages/actionsheet/actionsheet.taro.d.ts +11 -15
- package/dist/esm/types/src/packages/actionsheet/index.d.ts +1 -0
- package/dist/esm/types/src/packages/actionsheet/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +2 -1
- package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/configprovider/index.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -0
- package/dist/esm/types/src/packages/countdown/countdown.d.ts +5 -4
- package/dist/esm/types/src/packages/countdown/countdown.taro.d.ts +5 -4
- package/dist/esm/types/src/packages/countdown/index.d.ts +1 -0
- package/dist/esm/types/src/packages/countdown/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +4 -31
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +4 -31
- package/dist/esm/types/src/packages/shortpassword/index.d.ts +1 -0
- package/dist/esm/types/src/packages/shortpassword/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +17 -20
- package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +17 -20
- package/dist/esm/types/src/packages/toast/Notification.d.ts +9 -13
- package/dist/esm/types/src/packages/toast/index.d.ts +1 -0
- package/dist/esm/types/src/packages/toast/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/toast/toast.d.ts +19 -26
- package/dist/esm/types/src/packages/toast/toast.taro.d.ts +9 -11
- package/dist/esm/types/src/packages/virtuallist/index.d.ts +1 -0
- package/dist/esm/types/src/packages/virtuallist/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/virtuallist/type.d.ts +0 -18
- package/dist/esm/types/src/packages/virtuallist/utils.d.ts +3 -3
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +15 -4
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +13 -14
- 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/tr-TR.js +10 -2
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +442 -512
- package/dist/nutui.react.umd.js +442 -512
- package/dist/packages/actionsheet/actionsheet.scss +26 -73
- package/dist/packages/countdown/countdown.scss +2 -0
- package/dist/packages/ellipsis/ellipsis.scss +4 -0
- package/dist/packages/searchbar/searchbar.scss +13 -71
- package/dist/packages/shortpassword/shortpassword.scss +1 -88
- package/dist/packages/toast/toast.scss +20 -7
- package/dist/packages/virtuallist/virtuallist.scss +0 -12
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +56 -60
- package/dist/styles/variables.scss +30 -53
- package/dist/types/packages/actionsheet/actionsheet.d.ts +11 -15
- package/dist/types/packages/actionsheet/index.d.ts +1 -0
- package/dist/types/packages/configprovider/configprovider.d.ts +2 -1
- package/dist/types/packages/configprovider/index.d.ts +1 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -0
- package/dist/types/packages/countdown/countdown.d.ts +5 -4
- package/dist/types/packages/countdown/index.d.ts +1 -0
- package/dist/types/packages/searchbar/index.d.ts +1 -0
- package/dist/types/packages/searchbar/searchbar.d.ts +4 -31
- package/dist/types/packages/shortpassword/index.d.ts +1 -0
- package/dist/types/packages/shortpassword/shortpassword.d.ts +17 -20
- package/dist/types/packages/toast/Notification.d.ts +9 -13
- package/dist/types/packages/toast/index.d.ts +1 -0
- package/dist/types/packages/toast/toast.d.ts +19 -26
- package/dist/types/packages/virtuallist/index.d.ts +1 -0
- package/dist/types/packages/virtuallist/type.d.ts +0 -18
- package/dist/types/packages/virtuallist/utils.d.ts +3 -3
- package/dist/types/packages/virtuallist/virtuallist.d.ts +15 -4
- package/package.json +1 -1
package/dist/esm/VirtualList.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
+
var _excluded = ["list", "ItemRender", "itemEqual", "itemHeight", "direction", "overscan", "key", "onScroll", "className", "containerHeight"];
|
|
5
5
|
function ownKeys(object, enumerableOnly) {
|
|
6
6
|
var keys = Object.keys(object);
|
|
7
7
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -24,7 +24,7 @@ function _objectSpread(target) {
|
|
|
24
24
|
return target;
|
|
25
25
|
}
|
|
26
26
|
import React__default, { useRef, useState, useEffect, useCallback } from "react";
|
|
27
|
-
import {
|
|
27
|
+
import { C as ComponentDefaults } from "./typings.js";
|
|
28
28
|
var initPositinoCache = function initPositinoCache2(reaItemSize) {
|
|
29
29
|
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
30
30
|
var index = 0;
|
|
@@ -79,10 +79,10 @@ var binarySearch = function binarySearch2(positionsList) {
|
|
|
79
79
|
return tempIndex;
|
|
80
80
|
};
|
|
81
81
|
var getEndIndex = function getEndIndex2(_ref) {
|
|
82
|
-
var
|
|
83
|
-
var dataLength =
|
|
82
|
+
var list = _ref.list, startIndex = _ref.startIndex, visibleCount = _ref.visibleCount, _ref$itemEqual = _ref.itemEqual, itemEqual = _ref$itemEqual === void 0 ? true : _ref$itemEqual, positions = _ref.positions, offSetSize = _ref.offSetSize, overscan = _ref.overscan, _ref$sizeKey = _ref.sizeKey, sizeKey = _ref$sizeKey === void 0 ? "width" : _ref$sizeKey;
|
|
83
|
+
var dataLength = list.length;
|
|
84
84
|
var tempIndex = null;
|
|
85
|
-
if (
|
|
85
|
+
if (itemEqual) {
|
|
86
86
|
var endIndex = startIndex + visibleCount;
|
|
87
87
|
tempIndex = dataLength > 0 ? Math.min(dataLength, endIndex) : endIndex;
|
|
88
88
|
} else {
|
|
@@ -131,13 +131,19 @@ var updateItemSize = function updateItemSize2(positions, items, sizeKey) {
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
};
|
|
134
|
-
var defaultProps = {}
|
|
134
|
+
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
135
|
+
list: [],
|
|
136
|
+
itemHeight: 66,
|
|
137
|
+
itemEqual: true,
|
|
138
|
+
direction: "vertical",
|
|
139
|
+
overscan: 2
|
|
140
|
+
});
|
|
135
141
|
var VirtualList = function VirtualList2(props) {
|
|
136
|
-
var
|
|
142
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props), list = _defaultProps$props.list, ItemRender = _defaultProps$props.ItemRender, itemEqual = _defaultProps$props.itemEqual, itemHeight = _defaultProps$props.itemHeight, direction = _defaultProps$props.direction, overscan = _defaultProps$props.overscan, key = _defaultProps$props.key, onScroll = _defaultProps$props.onScroll, className = _defaultProps$props.className, containerHeight = _defaultProps$props.containerHeight, rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
143
|
+
var horizontal = direction === "horizontal";
|
|
137
144
|
var sizeKey = horizontal ? "width" : "height";
|
|
138
145
|
var scrollKey = horizontal ? "scrollLeft" : "scrollTop";
|
|
139
146
|
var offsetKey = horizontal ? "left" : "top";
|
|
140
|
-
useConfig();
|
|
141
147
|
var scrollRef = useRef(null);
|
|
142
148
|
var itemsRef = useRef(null);
|
|
143
149
|
var firstItemRef = useRef(null);
|
|
@@ -152,7 +158,7 @@ var VirtualList = function VirtualList2(props) {
|
|
|
152
158
|
}]), _useState2 = _slicedToArray(_useState, 2), positions = _useState2[0], setPositions = _useState2[1];
|
|
153
159
|
var _useState3 = useState(99999999), _useState4 = _slicedToArray(_useState3, 2), listTotalSize = _useState4[0], setListTotalSize = _useState4[1];
|
|
154
160
|
var _useState5 = useState(0), _useState6 = _slicedToArray(_useState5, 2), visibleCount = _useState6[0], setVisibleCount = _useState6[1];
|
|
155
|
-
var _useState7 = useState(
|
|
161
|
+
var _useState7 = useState(containerHeight || 0), _useState8 = _slicedToArray(_useState7, 2), offSetSize = _useState8[0], setOffSetSize = _useState8[1];
|
|
156
162
|
var _useState9 = useState({
|
|
157
163
|
startOffset: 0,
|
|
158
164
|
startIndex: 0,
|
|
@@ -161,32 +167,32 @@ var VirtualList = function VirtualList2(props) {
|
|
|
161
167
|
// 可视区域结束索引
|
|
162
168
|
}), _useState10 = _slicedToArray(_useState9, 2), options = _useState10[0], setOptions = _useState10[1];
|
|
163
169
|
useEffect(function() {
|
|
164
|
-
var pos = initPositinoCache(
|
|
170
|
+
var pos = initPositinoCache(itemHeight, list.length);
|
|
165
171
|
setPositions(pos);
|
|
166
172
|
var totalSize = getListTotalSize(pos, horizontal);
|
|
167
173
|
setListTotalSize(totalSize);
|
|
168
|
-
}, [
|
|
174
|
+
}, [list, itemHeight, horizontal]);
|
|
169
175
|
var getElement = useCallback(function() {
|
|
170
176
|
var _scrollRef$current;
|
|
171
177
|
return ((_scrollRef$current = scrollRef.current) === null || _scrollRef$current === void 0 ? void 0 : _scrollRef$current.parentElement) || document.body;
|
|
172
178
|
}, []);
|
|
173
179
|
useEffect(function() {
|
|
174
|
-
if (
|
|
180
|
+
if (containerHeight)
|
|
175
181
|
return;
|
|
176
182
|
var size = horizontal ? getElement().offsetWidth : getElement().offsetHeight;
|
|
177
183
|
setOffSetSize(size);
|
|
178
|
-
}, [getElement, horizontal,
|
|
184
|
+
}, [getElement, horizontal, containerHeight]);
|
|
179
185
|
useEffect(function() {
|
|
180
186
|
if (offSetSize === 0)
|
|
181
187
|
return;
|
|
182
|
-
var count = Math.ceil(offSetSize /
|
|
188
|
+
var count = Math.ceil(offSetSize / itemHeight) + overscan;
|
|
183
189
|
setVisibleCount(count);
|
|
184
190
|
setOptions(function(options2) {
|
|
185
191
|
return _objectSpread(_objectSpread({}, options2), {}, {
|
|
186
192
|
endIndex: count
|
|
187
193
|
});
|
|
188
194
|
});
|
|
189
|
-
}, [getElement, horizontal,
|
|
195
|
+
}, [getElement, horizontal, itemHeight, overscan, offSetSize]);
|
|
190
196
|
var updateTotalSize = useCallback(function() {
|
|
191
197
|
if (!itemsRef.current)
|
|
192
198
|
return;
|
|
@@ -202,14 +208,14 @@ var VirtualList = function VirtualList2(props) {
|
|
|
202
208
|
var scrollSize = getElement()[scrollKey];
|
|
203
209
|
var startIndex = binarySearch(positions, scrollSize, horizontal);
|
|
204
210
|
var overStart = startIndex - overscan > -1 ? startIndex - overscan : 0;
|
|
205
|
-
if (!
|
|
211
|
+
if (!itemEqual) {
|
|
206
212
|
updateTotalSize();
|
|
207
213
|
}
|
|
208
214
|
var endIndex = getEndIndex({
|
|
209
|
-
|
|
215
|
+
list,
|
|
210
216
|
startIndex,
|
|
211
217
|
visibleCount,
|
|
212
|
-
|
|
218
|
+
itemEqual,
|
|
213
219
|
positions,
|
|
214
220
|
offSetSize,
|
|
215
221
|
sizeKey,
|
|
@@ -222,15 +228,13 @@ var VirtualList = function VirtualList2(props) {
|
|
|
222
228
|
overStart,
|
|
223
229
|
endIndex
|
|
224
230
|
});
|
|
225
|
-
if (endIndex >
|
|
231
|
+
if (endIndex > list.length - 1) {
|
|
226
232
|
if (onScroll) {
|
|
227
233
|
onScroll();
|
|
228
|
-
} else if (handleScroll) {
|
|
229
|
-
handleScroll();
|
|
230
234
|
}
|
|
231
235
|
}
|
|
232
236
|
});
|
|
233
|
-
}, [positions, getElement,
|
|
237
|
+
}, [positions, getElement, list, visibleCount, itemEqual, updateTotalSize, offsetKey, sizeKey, scrollKey, horizontal, overscan, offSetSize]);
|
|
234
238
|
useEffect(function() {
|
|
235
239
|
var element = getElement();
|
|
236
240
|
element.addEventListener("scroll", scroll, false);
|
|
@@ -241,7 +245,7 @@ var VirtualList = function VirtualList2(props) {
|
|
|
241
245
|
return React__default.createElement("div", _objectSpread(_objectSpread({
|
|
242
246
|
className: className ? "".concat(className, " nut-virtualList-box") : "nut-virtualList-box"
|
|
243
247
|
}, rest), {}, {
|
|
244
|
-
style: _defineProperty({}, sizeKey,
|
|
248
|
+
style: _defineProperty({}, sizeKey, containerHeight ? "".concat(offSetSize, "px") : "")
|
|
245
249
|
}), React__default.createElement("div", {
|
|
246
250
|
ref: scrollRef,
|
|
247
251
|
className: horizontal ? "nut-horizontal-box" : "nut-vertical-box",
|
|
@@ -254,7 +258,7 @@ var VirtualList = function VirtualList2(props) {
|
|
|
254
258
|
style: {
|
|
255
259
|
transform: horizontal ? "translate3d(".concat(options.startOffset, "px,0,0)") : "translate3d(0,".concat(options.startOffset, "px,0)")
|
|
256
260
|
}
|
|
257
|
-
},
|
|
261
|
+
}, list.slice(options.overStart, options.endIndex).map(function(data, index) {
|
|
258
262
|
var startIndex = options.startIndex, overStart = options.overStart;
|
|
259
263
|
var dataIndex = overStart + index;
|
|
260
264
|
var styleVal = dataIndex < startIndex ? "none" : "block";
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
1
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
2
3
|
export type ItemType<T> = {
|
|
3
4
|
[key: string]: T;
|
|
4
5
|
};
|
|
5
|
-
export interface ActionSheetProps {
|
|
6
|
-
cancelText: string;
|
|
7
|
-
optionTag: string;
|
|
8
|
-
optionSubTag: string;
|
|
9
|
-
chooseTagValue: string;
|
|
10
|
-
title: string;
|
|
11
|
-
color: string;
|
|
12
|
-
description: string;
|
|
13
|
-
menuItems: ItemType<string | boolean>[];
|
|
14
|
-
onCancel: () => void;
|
|
15
|
-
onChoose: (item: any, index: number) => void;
|
|
6
|
+
export interface ActionSheetProps extends BasicComponent {
|
|
16
7
|
visible: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
description: ReactNode;
|
|
10
|
+
options: ItemType<string | boolean>[];
|
|
11
|
+
optionKey: ItemType<string>;
|
|
12
|
+
cancelText: ReactNode;
|
|
13
|
+
onCancel: () => void;
|
|
14
|
+
onSelect: (item: ItemType<string | boolean>, index: number) => void;
|
|
19
15
|
}
|
|
20
|
-
export declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onSelect'>>;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
1
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
2
3
|
export type ItemType<T> = {
|
|
3
4
|
[key: string]: T;
|
|
4
5
|
};
|
|
5
|
-
export interface ActionSheetProps {
|
|
6
|
-
cancelText: string;
|
|
7
|
-
optionTag: string;
|
|
8
|
-
optionSubTag: string;
|
|
9
|
-
chooseTagValue: string;
|
|
10
|
-
title: string;
|
|
11
|
-
color: string;
|
|
12
|
-
description: string;
|
|
13
|
-
menuItems: ItemType<string | boolean>[];
|
|
14
|
-
onCancel: () => void;
|
|
15
|
-
onChoose: (item: any, index: number) => void;
|
|
6
|
+
export interface ActionSheetProps extends BasicComponent {
|
|
16
7
|
visible: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
description: ReactNode;
|
|
10
|
+
options: ItemType<string | boolean>[];
|
|
11
|
+
optionKey: ItemType<string>;
|
|
12
|
+
cancelText: ReactNode;
|
|
13
|
+
onCancel: () => void;
|
|
14
|
+
onSelect: (item: ItemType<string | boolean>, index: number) => void;
|
|
19
15
|
}
|
|
20
|
-
export declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onSelect'>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BaseLang } from '@/locales/base';
|
|
3
|
+
import type { NutCSSVariables } from './types';
|
|
3
4
|
export interface ConfigProviderProps {
|
|
4
5
|
locale: BaseLang;
|
|
5
|
-
theme?: Record<string, string>;
|
|
6
|
+
theme?: Record<string | NutCSSVariables, string>;
|
|
6
7
|
[key: string]: any;
|
|
7
8
|
}
|
|
8
9
|
export declare const defaultConfigRef: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BaseLang } from '@/locales/base';
|
|
3
|
+
import type { NutCSSVariables } from './types';
|
|
3
4
|
export interface ConfigProviderProps {
|
|
4
5
|
locale: BaseLang;
|
|
5
|
-
theme?: Record<string, string>;
|
|
6
|
+
theme?: Record<string | NutCSSVariables, string>;
|
|
6
7
|
[key: string]: any;
|
|
7
8
|
}
|
|
8
9
|
export declare const defaultConfigRef: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ConfigProvider, useConfig, setDefaultConfig, getDefaultConfig } from './configprovider';
|
|
2
2
|
export type { ConfigProviderProps } from './configprovider';
|
|
3
|
+
export type { NutCSSVariables } from './types';
|
|
3
4
|
export { useConfig, setDefaultConfig, getDefaultConfig };
|
|
4
5
|
export default ConfigProvider;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ConfigProvider, useConfig, setDefaultConfig, getDefaultConfig } from './configprovider.taro';
|
|
2
2
|
export type { ConfigProviderProps } from './configprovider.taro';
|
|
3
|
+
export type { NutCSSVariables } from './types';
|
|
3
4
|
export { useConfig, setDefaultConfig, getDefaultConfig };
|
|
4
5
|
export default ConfigProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type NutCSSVariables = 'nutuiBrandColor' | 'nutuiBrandColorStart' | 'nutuiBrandColorEnd' | 'nutuiBrandLinkColor' | 'nutuiBrandTextColor' | 'nutuiGray0' | 'nutuiGray1' | 'nutuiGray2' | 'nutuiGray3' | 'nutuiGray4' | 'nutuiGray5' | 'nutuiGray6' | 'nutuiGray7' | 'nutuiGray8' | 'nutuiGray9' | 'nutuiGray10' | 'nutuiFontSize0' | 'nutuiFontSize1' | 'nutuiFontSize2' | 'nutuiFontSize3' | 'nutuiFontSize4' | 'nutuiFontWeightBold' | 'nutuiLineHeightBase' | 'nutuiPaddingXs' | 'nutuiButtonBorderRadius' | 'nutuiButtonBorderWidth' | 'nutuiButtonDefaultBgColor' | 'nutuiButtonDefaultBorderColor' | 'nutuiButtonDefaultColor' | 'nutuiButtonPlainColor' | 'nutuiButtonDefaultPadding' | 'nutuiButtonMiniPadding' | 'nutuiButtonSmallPadding' | 'nutuiButtonSmallHeight' | 'nutuiButtonMiniHeight' | 'nutuiButtonDefaultHeight' | 'nutuiButtonLargeHeight' | 'nutuiButtonLargeLineHeight' | 'nutuiButtonSmallLineHeight' | 'nutuiButtonBlockHeight' | 'nutuiButtonDefaultLineHeight' | 'nutuiButtonBlockLineHeight' | 'nutuiButtonDefaultFontSize' | 'nutuiButtonLargeFontSize' | 'nutuiButtonSmallFontSize' | 'nutuiButtonMiniFontSize' | 'nutuiButtonMiniLineHeight' | 'nutuiButtonTextIconMarginLeft' | 'nutuiButtonTextIconLargeMarginLeft' | 'nutuiButtonTextIconSmallMarginLeft' | 'nutuiButtonTextIconMiniMarginLeft' | 'nutuiButtonDisabledOpacity' | 'nutuiButtonPrimaryColor' | 'nutuiButtonPrimaryBorderColor' | 'nutuiButtonInfoColor' | 'nutuiButtonInfoBorderColor' | 'nutuiButtonSuccessColor' | 'nutuiButtonSuccessBorderColor' | 'nutuiButtonDangerColor' | 'nutuiButtonDangerBorderColor' | 'nutuiButtonDangerBackgroundColor' | 'nutuiButtonWarningColor' | 'nutuiButtonWarningBorderColor' | 'nutuiCellTitleColor' | 'nutuiCellTitleFontSize' | 'nutuiCellDescriptionFontSize' | 'nutuiCellDescriptionColor' | 'nutuiCellExtraFontSize' | 'nutuiCellExtraColor' | 'nutuiCellBorderRadius' | 'nutuiCellPadding' | 'nutuiCellLineHeight' | 'nutuiCellDividerRight' | 'nutuiCellDividerLeft' | 'nutuiCellDividerBorderBottom' | 'nutuiCellBackgroundColor' | 'nutuiCellBoxShadow' | 'nutuiCellGroupTitlePadding' | 'nutuiCellGroupTitleColor' | 'nutuiCellGroupTitleFontSize' | 'nutuiCellGroupTitleLineHeight' | 'nutuiCellGroupDescriptionPadding' | 'nutuiCellGroupDescriptionColor' | 'nutuiCellGroupDescriptionFontSize' | 'nutuiCellGroupDescriptionLineHeight' | 'nutuiCellGroupBackgroundColor' | 'nutuiDividerMargin' | 'nutuiDividerTextFontSize' | 'nutuiDividerTextColor' | 'nutuiDividerLineHeight' | 'nutuiDividerBeforeMarginRight' | 'nutuiDividerAfterMarginLeft' | 'nutuiDividerVerticalHeight' | 'nutuiDividerVerticalTop' | 'nutuiDividerVerticalBorderLeft' | 'nutuiDividerVerticalMargin' | 'nutuiIconHeight' | 'nutuiIconWidth' | 'nutuiIconLineHeight' | 'nutuiUploaderPictureWidth' | 'nutuiUploaderPictureHeight' | 'nutuiUploaderPictureBorder' | 'nutuiUploaderPictureBorderRadius' | 'nutuiUploaderBackground' | 'nutuiUploaderBackgroundDisabled' | 'nutuiUploaderPictureIconOpacity' | 'nutuiUploaderPictureIconOpacityDisabled' | 'nutuiUploaderPictureIconMarginBottom' | 'nutuiUploaderPictureIconTipFontSize' | 'nutuiUploaderPictureIconTipColor' | 'nutuiUploaderPreviewProgressBackground' | 'nutuiUploaderPreviewMarginRight' | 'nutuiUploaderPreviewMarginBottom' | 'nutuiUploaderPreviewTipsHeight' | 'nutuiUploaderPreviewTipsBackground' | 'nutuiUploaderPreviewTipsPadding' | 'nutuiUploaderPreviewCloseRight' | 'nutuiUploaderPreviewCloseTop' | 'nutuiPickerCancelColor' | 'nutuiPickerOkColor' | 'nutuiPickerBarCancelFontSize' | 'nutuiPickerBarOkFontSize' | 'nutuiPickerBarButtonPadding' | 'nutuiPickerBarTitleFontSize' | 'nutuiPickerBarTitleColor' | 'nutuiPickerBarTitleFontWeight' | 'nutuiPickerListHeight' | 'nutuiPickerItemHeight' | 'nutuiPickerItemTextColor' | 'nutuiPickerItemActiveTextColor' | 'nutuiPickerItemTextFontSize' | 'nutuiPickerItemActiveLineBorder' | 'nutuiInputBorderBottom' | 'nutuiInputBorderBottomWidth' | 'nutuiInputDisabledColor' | 'nutuiInputFontSize' | 'nutuiInputPadding' | 'nutuiTextareaFont' | 'nutuiTextareaHeight' | 'nutuiTextareaPadding' | 'nutuiTextareaLimitColor' | 'nutuiTextareaTextColor' | 'nutuiTextareaTextCurrorColor' | 'nutuiTextareaTextLineHeight' | 'nutuiTextareaDisabledColor' | 'nutuiInputnumberButtonWidth' | 'nutuiInputnumberButtonHeight' | 'nutuiInputnumberButtonBorderRadius' | 'nutuiInputnumberButtonBackgroundColor' | 'nutuiInputnumberIconColor' | 'nutuiInputnumberIconVoidColor' | 'nutuiInputnumberIconDisabledColor' | 'nutuiInputnumberIconSize' | 'nutuiInputnumberInputFontSize' | 'nutuiInputnumberInputFontColor' | 'nutuiInputnumberInputBackgroundColor' | 'nutuiInputnumberInputBorderRadius' | 'nutuiInputnumberInputWidth' | 'nutuiInputnumberInputHeight' | 'nutuiInputnumberInputMargin' | 'nutuiInputnumberInputBorder' | 'nutuiInputnumberBorder' | 'nutuiInputnumberBorderRadius' | 'nutuiInputnumberHeight' | 'nutuiInputnumberLineHeight' | 'nutuiInputnumberBorderBox' | 'nutuiInputnumberDisplay' | 'nutuiActionsheetBorderColor' | 'nutuiActionsheetItemTextAlign' | 'nutuiActionsheetItemBorderBottom' | 'nutuiActionsheetItemLineHeight' | 'nutuiActionsheetItemColor' | 'nutuiActionsheetItemDanger' | 'nutuiShortpasswordBackgroundColor' | 'nutuiShortpasswordBorderColor' | 'nutuiShortpasswordError' | 'nutuiShortpasswordForget' | 'nutuiNumberkeyboardWidth' | 'nutuiNumberkeyboardPadding' | 'nutuiNumberkeyboardBackgroundColor' | 'nutuiNumberkeyboardHeaderHeight' | 'nutuiNumberkeyboardHeaderPadding' | 'nutuiNumberkeyboardHeaderColor' | 'nutuiNumberkeyboardHeaderFontSize' | 'nutuiNumberkeyboardHeaderClosePadding' | 'nutuiNumberkeyboardHeaderCloseColor' | 'nutuiNumberkeyboardHeaderCloseFontSize' | 'nutuiNumberkeyboardHeaderCloseBackgroundColor' | 'nutuiNumberkeyboardKeyBackgroundColor' | 'nutuiNumberkeyboardKeyActiveBackgroundColor' | 'nutuiNumberkeyboardKeyHeight' | 'nutuiNumberkeyboardKeyLineHeight' | 'nutuiNumberkeyboardKeyBorderRadius' | 'nutuiNumberkeyboardKeyFontSize' | 'nutuiNumberkeyboardKeyFontColor' | 'nutuiNumberkeyboardKeyConfirmFontSize' | 'nutuiNumberkeyboardKeyConfirmFontColor' | 'nutuiNumberkeyboardKeyConfirmBackgroundColor' | 'nutuiCountdownDisplay' | 'nutuiCountdownColor' | 'nutuiCountdownFontSize' | 'nutuiPriceSymbolPaddingRight' | 'nutuiPriceSymbolBigSize' | 'nutuiPriceIntegerBigSize' | 'nutuiPriceDecimalBigSize' | 'nutuiPriceLineColor' | 'nutuiPriceLineFontSize' | 'nutuiPriceSymbolMediumSize' | 'nutuiPriceIntegerMediumSize' | 'nutuiPriceDecimalMediumSize' | 'nutuiPriceSymbolSmallSize' | 'nutuiPriceIntegerSmallSize' | 'nutuiPriceDecimalSmallSize' | 'nutuiAvatarSquare' | 'nutuiAvatarLargeWidth' | 'nutuiAvatarLargeHeight' | 'nutuiAvatarSmallWidth' | 'nutuiAvatarSmallHeight' | 'nutuiAvatarNormalWidth' | 'nutuiAvatarNormalHeight' | 'nutuiSwitchCloseBackgroundColor' | 'nutuiSwitchOpenBackgroundColor' | 'nutuiSwitchCloseLineBgColor' | 'nutuiSwitchWidth' | 'nutuiSwitchHeight' | 'nutuiSwitchLineHeight' | 'nutuiSwitchBorderRadius' | 'nutuiSwitchInsideWidth' | 'nutuiSwitchInsideHeight' | 'nutuiSwitchInsideOpenTransform' | 'nutuiSwitchInsideCloseTransform' | 'nutuiToastTitleFontSize' | 'nutuiToastTextFontSize' | 'nutuiToastFontColor' | 'nutuiToastInnerPadding' | 'nutuiToastInnerBgColor' | 'nutuiToastInnerBorderRadius' | 'nutuiToastCoverBgColor' | 'nutuiToastInnerTop' | 'nutuiToastInnerTextAlign' | 'nutuiBacktopBorderColor' | 'nutuiCalendarPrimaryColor' | 'nutuiCalendarChooseColor' | 'nutuiCalendarChooseFontColor' | 'nutuiCalendarBaseColor' | 'nutuiCalendarDisableColor' | 'nutuiCalendarBaseFont' | 'nutuiCalendarTitleFont' | 'nutuiCalendarTitleFontWeight' | 'nutuiCalendarSubTitleFont' | 'nutuiCalendarTextFont' | 'nutuiCalendarDayFont' | 'nutuiCalendarDayActiveBorderRadius' | 'nutuiCalendarDayWidth' | 'nutuiCalendarDayHeight' | 'nutuiCalendarDayFontWeight' | 'nutuiCalendarDay67FontColor' | 'nutuiCalendarTopSlotHeight' | 'nutuiCalendarMonthTitleFontSize' | 'nutuiOverlayBgColor' | 'nutuiOverlayContentBgColor' | 'nutuiOverlayContentColor' | 'nutuiPopupCloseIconMargin' | 'nutuiPopupBorderRadius' | 'nutuiPopupCloseIconColor' | 'nutuiPopupCloseIconSize' | 'nutuiNotifyTextColor' | 'nutuiNotifyPadding' | 'nutuiNotifyFontSize' | 'nutuiNotifyHeight' | 'nutuiNotifyLineHeight' | 'nutuiNotifyBaseBackgroundColor' | 'nutuiNotifyPrimaryBackgroundColor' | 'nutuiNotifySuccessBackgroundColor' | 'nutuiNotifyDangerBackgroundColor' | 'nutuiNotifyWarningBackgroundColor' | 'nutuiRateItemMargin' | 'nutuiRateIconColor' | 'nutuiRateIconVoidColor' | 'nutuiTabbarHeight' | 'nutuiTabbarActiveColor' | 'nutuiTabbarInactiveColor' | 'nutuiTabbarBorderTop' | 'nutuiTabbarBorderBottom' | 'nutuiTabbarBoxShadow' | 'nutuiTabbarTextFontSize' | 'nutuiTabbarTextLargeFontSize' | 'nutuiTabbarTextLineHeight' | 'nutuiTabbarTextMarginTop' | 'nutuiInfiniteloadingBottomColor' | 'nutuiRangeFontColor' | 'nutuiRangeHeight' | 'nutuiRangeMargin' | 'nutuiRangeInactiveColor' | 'nutuiRangeActiveColor' | 'nutuiRangeButtonBackground' | 'nutuiRangeButtonWidth' | 'nutuiRangeButtonHeight' | 'nutuiRangeButtonBorder' | 'nutuiSwiperIndicatorBottom' | 'nutuiSwiperIndicatorItemBackgroundColor' | 'nutuiAddressIconColor' | 'nutuiAddressHeaderTitleFontSize' | 'nutuiAddressHeaderTitleColor' | 'nutuiAddressRegionTabFontSize' | 'nutuiAddressRegionTabColor' | 'nutuiAddressRegionTabActiveItemFontWeight' | 'nutuiAddressRegionTabLineBorderRadius' | 'nutuiAddressRegionTabLineOpacity' | 'nutuiAddressRegionItemColor' | 'nutuiAddressRegionItemFontSize' | 'nutuiAddressItemMarginRight' | 'nutuiStepsBaseIconWidth' | 'nutuiStepsBaseIconHeight' | 'nutuiStepsBaseIconLineHeight' | 'nutuiStepsBaseIconMarginBottom' | 'nutuiStepsBaseIconFontSize' | 'nutuiStepsBaseLineWidth' | 'nutuiStepsBaseLineHeight' | 'nutuiStepsBaseLineBackground' | 'nutuiStepsBaseTitleFontSize' | 'nutuiStepsBaseTitleColor' | 'nutuiStepsBaseTitleMarginBottom' | 'nutuiStepsBaseDescriptionFontSize' | 'nutuiStepsBaseDescriptionColor' | 'nutuiStepsWaitIconBgColor' | 'nutuiStepsWaitIconColor' | 'nutuiStepsWaitTitleColor' | 'nutuiStepsWaitDescriptionColor' | 'nutuiStepsProcessIconBgColor' | 'nutuiStepsProcessIconColor' | 'nutuiStepsProcessTitleColor' | 'nutuiStepsProcessTitleFontSize' | 'nutuiStepsProcessTitleFontWeight' | 'nutuiStepsProcessDescriptionColor' | 'nutuiStepsFinishIconBgColor' | 'nutuiStepsFinishIconColor' | 'nutuiStepsFinishTitleColor' | 'nutuiStepsFinishDescriptionColor' | 'nutuiStepsFinishLineBackground' | 'nutuiStepsDotIconWidth' | 'nutuiStepsDotIconHeight' | 'nutuiStepsDotIconBorder' | 'nutuiStepsDotHeadMargin' | 'nutuiDialogWidth' | 'nutuiDialogHeaderFontWeight' | 'nutuiDialogHeaderColor' | 'nutuiDialogFooterJustifyContent' | 'nutuiDialogMinHeight' | 'nutuiDialogPadding' | 'nutuiDialogHeaderHeight' | 'nutuiDialogContentMargin' | 'nutuiDialogContentMaxHeight' | 'nutuiDialogContentLineHeight' | 'nutuiDialogContentTextAlign' | 'nutuiDialogOverlayZIndex' | 'nutuiDialogOverlayBackgroundColor' | 'nutuiDialogOuterZIndex' | 'nutuiDialogOuterBordderRadius' | 'nutuiDialogVerticalFooterOkMarginTop' | 'nutuiDialogFooterButtonMinWidth' | 'nutuiDialogFooterCancelMarginRight' | 'nutuiDialogFooterOkMaxWidth' | 'nutuiCheckboxLabelColor' | 'nutuiCheckboxLabelDisableColor' | 'nutuiCheckboxIconDisableColor' | 'nutuiCheckboxLabelMarginLeft' | 'nutuiCheckboxLabelFontSize' | 'nutuiCheckboxIconFontSize' | 'nutuiCheckboxIconDisableColor2' | 'nutuiRadioLabelFontColor' | 'nutuiRadioLabelFontActiveColor' | 'nutuiRadioLabelDisableColor' | 'nutuiRadioIconDisableColor' | 'nutuiRadioLabelButtonBorderColor' | 'nutuiRadioLabelButtonBackground' | 'nutuiRadioLabelMarginLeft' | 'nutuiRadioButtonBorderRadius' | 'nutuiRadioLabelFontSize' | 'nutuiRadioButtonFontSize' | 'nutuiRadioButtonPadding' | 'nutuiRadioIconFontSize' | 'nutuiRadioIconDisableColor2' | 'nutuiRadiogroupRadioMargin' | 'nutuiRadiogroupRadioLabelMargin' | 'nutuiRadioButtonDisabledActiveBackground' | 'nutuiRadioButtonDisabledActiveColor' | 'nutuiRadioButtonDisabledActiveBorderColor' | 'nutuiFixednavBgColor' | 'nutuiFixednavFontColor' | 'nutuiFixednavIndex' | 'nutuiFixednavItemActiveColor' | 'nutuiNoticebarBackground' | 'nutuiNoticebarColor' | 'nutuiNoticebarFontSize' | 'nutuiNoticebarHeight' | 'nutuiNoticebarLineHeight' | 'nutuiNoticebarLeftIconWidth' | 'nutuiNoticebarRightIconWidth' | 'nutuiNoticebarBoxPadding' | 'nutuiNoticebarWrapablePadding' | 'nutuiNoticebarLefticonMargin' | 'nutuiNoticebarRighticonMargin' | 'nutuiTimeselectTitleFontSize' | 'nutuiTimeselectTitleColor' | 'nutuiTimeselectTitleWidth' | 'nutuiTimeselectTitleHeight' | 'nutuiTimeselectTitleLineHeight' | 'nutuiTimeselectPannelBgColor' | 'nutuiTimeselectTimepannelTextColor' | 'nutuiTimeselectTimepannelFontSize' | 'nutuiTimeselectTimepannelCurBgColor' | 'nutuiTimeselectTimepannelCurTextColor' | 'nutuiTimeselectTimepannelWidth' | 'nutuiTimeselectTimepannelHeight' | 'nutuiTimeselectTimepannelPadding' | 'nutuiTimeselectTimedetailPadding' | 'nutuiTimeselectTimedetailItemWidth' | 'nutuiTimeselectTimedetailItemHeight' | 'nutuiTimeselectTimedetailItemLineHeight' | 'nutuiTimeselectTimedetailItemBgColor' | 'nutuiTimeselectTimedetailItemBorderRadius' | 'nutuiTimeselectTimedetailItemTextColor' | 'nutuiTimeselectTimedetailItemTextFontSize' | 'nutuiTimeselectTimedetailItemCurBgColor' | 'nutuiTimeselectTimedetailItemCurBorder' | 'nutuiTimeselectTimedetailItemCurTextColor' | 'nutuiTimeselectTimedetailTimeTextColor' | 'nutuiTimeselectTimedetailTimeFontSize' | 'nutuiTagPadding' | 'nutuiTagFontSize' | 'nutuiTagDefaultBorderRadius' | 'nutuiTagRoundBorderRadius' | 'nutuiTagDefaultBackgroundColor' | 'nutuiTagPrimaryBackgroundColor' | 'nutuiTagSuccessBackgroundColor' | 'nutuiTagDangerBackgroundColorPlain' | 'nutuiTagWarningBackgroundColor' | 'nutuiTagDefaultColor' | 'nutuiTagBorderWidth' | 'nutuiTagHeight' | 'nutuiBadgeBackgroundColor' | 'nutuiBadgeColor' | 'nutuiBadgeFontSize' | 'nutuiBadgeBorder' | 'nutuiBadgeBorderRadius' | 'nutuiBadgePadding' | 'nutuiBadgeIconPadding' | 'nutuiBadgeContentTransform' | 'nutuiBadgeZIndex' | 'nutuiBadgeDotWidth' | 'nutuiPopoverBorderRadius' | 'nutuiPopoverFontSize' | 'nutuiPopoverMenuItemHeight' | 'nutuiPopoverMenuItemNameMargin' | 'nutuiPopoverMenuItemHoverBackgroundColor' | 'nutuiPopoverMenuItemHoverTextColor' | 'nutuiPopoverMenuItemBorderWidth' | 'nutuiPopoverMenuItemBorderHeight' | 'nutuiPopoverMenuItemBorderLeft' | 'nutuiPopoverMenuItemBorderBottom' | 'nutuiPopoverWhiteBackgroundColor' | 'nutuiPopoverDarkBackgroundColor' | 'nutuiPopoverBorderBottomColor' | 'nutuiPopoverPrimaryTextColor' | 'nutuiPopoverDisableColor' | 'nutuiPopoverMenuItemPadding' | 'nutuiPopoverMenuItemMargin' | 'nutuiPopoverMenuNameLineHeight' | 'nutuiProgressHeight' | 'nutuiProgressColor' | 'nutuiProgressBackground' | 'nutuiProgressBorderRadius' | 'nutuiProgressTextColor' | 'nutuiProgressTextBackground' | 'nutuiProgressTextPadding' | 'nutuiProgressTextFontSize' | 'nutuiProgressTextPositionTop' | 'nutuiProgressTextPositionBottom' | 'nutuiProgressTextBorderRadius' | 'nutuiPaginationColor' | 'nutuiPaginationFontSize' | 'nutuiPaginationItemBorderColor' | 'nutuiDarkPaginationActiveBackgroundColor' | 'nutuiPaginationDisableColor' | 'nutuiPaginationDisableBackgroundColor' | 'nutuiPaginationItemBorderWidth' | 'nutuiPaginationItemBorderRadius' | 'nutuiPaginationPrevNextPadding' | 'nutuiTabsTabSmileColor' | 'nutuiTabsTitlesBackgroundColor' | 'nutuiTabsTitlesBorderRadius' | 'nutuiTabsTitleGap' | 'nutuiTabsTitlesItemFontSize' | 'nutuiTabsTitlesItemColor' | 'nutuiTabsTitlesItemActiveColor' | 'nutuiTabsTitlesItemActiveFontWeight' | 'nutuiTabsHorizontalTabLineColor' | 'nutuiTabsHorizontalLineBottom' | 'nutuiTabsHorizontalLineBorderRadius' | 'nutuiTabsHorizontalTabLineOpacity' | 'nutuiTabsHorizontalTitlesHeight' | 'nutuiTabsHorizontalTitlesItemMinWidth' | 'nutuiTabsHorizontalTitlesItemActiveBackgroundColor' | 'nutuiTabsHorizontalTitlesItemActiveLineWidth' | 'nutuiTabsHorizontalTitlesItemActiveLineHeight' | 'nutuiTabsVerticalTabLineColor' | 'nutuiTabsVerticalTitlesItemHeight' | 'nutuiTabsVerticalTitlesItemActiveLineWidth' | 'nutuiTabsVerticalTitlesItemActiveLineHeight' | 'nutuiTabsVerticalTitlesWidth' | 'nutuiIndicatorColor' | 'nutuiIndicatorDotColor' | 'nutuiIndicatorDotSize' | 'nutuiIndicatorDotActiveSize' | 'nutuiIndicatorBorderSize' | 'nutuiIndicatorDotMargin' | 'nutuiIndicatorDotVerticalMargin' | 'nutuiMenuBarLineHeight' | 'nutuiMenuItemFontSize' | 'nutuiMenuItemTextColor' | 'nutuiMenuItemActiveTextColor' | 'nutuiMenuBarBorderBottomColor' | 'nutuiMenuBarOpenedZIndex' | 'nutuiMenuItemDisabledColor' | 'nutuiMenuTitleTextPaddingLeft' | 'nutuiMenuTitleTextPaddingRight' | 'nutuiMenuItemContentPadding' | 'nutuiMenuItemContentMaxHeight' | 'nutuiMenuItemOptionPaddingTop' | 'nutuiMenuItemOptionPaddingBottom' | 'nutuiMenuItemOptionIMarginRight' | 'nutuiMenuBarBoxShadow' | 'nutuiMenuScrollFixedTop' | 'nutuiMenuScrollFixedZIndex' | 'nutuiMenuActiveItemFontWeight' | 'nutuiMenuItemContentBgColor' | 'nutuiCollapseItemPadding' | 'nutuiCollapseItemColor' | 'nutuiCollapseItemDisabledColor' | 'nutuiCollapseItemFontSize' | 'nutuiCollapseItemLineHeight' | 'nutuiCollapseItemExtraColor' | 'nutuiCollapseWrapperContentPadding' | 'nutuiCollapseWrapperContentColor' | 'nutuiCollapseWrapperContentFontSize' | 'nutuiCollapseWrapperContentLineHeight' | 'nutuiCollapseWrapperContentBackgroundColor' | 'nutuiSearchbarBackground' | 'nutuiSearchbarContentBorderRadius' | 'nutuiSearchbarPadding' | 'nutuiSearchbarWidth' | 'nutuiSearchbarLeftFontsize' | 'nutuiSearchbarLeftPadding' | 'nutuiSearchbarLeftColor' | 'nutuiSearchbarRightFontsize' | 'nutuiSearchbarRightPadding' | 'nutuiSearchbarRightColor' | 'nutuiSearchbarInputHeight' | 'nutuiSearchbarInputPadding' | 'nutuiSearchbarInputBackground' | 'nutuiSearchbarInputTextColor' | 'nutuiSearchbarInputCurrorColor' | 'nutuiSearchbarInputWidth' | 'nutuiSearchbarInputTextAlign' | 'nutuiSearchbarInputBorderRadius' | 'nutuiSearchbarClearIconPadding' | 'nutuiEmptyPadding' | 'nutuiEmptyImageSize' | 'nutuiEmptyDescriptionMarginTop' | 'nutuiEmptyDescriptionColor' | 'nutuiEmptyDescriptionFontSize' | 'nutuiEmptyDescriptionLineHeight' | 'nutuiEmptyDescriptionPadding' | 'nutuiCascaderFontSize' | 'nutuiCascaderLineHeight' | 'nutuiCascaderTitlePadding' | 'nutuiCascaderTitleFontSize' | 'nutuiCascaderTitleLineHeight' | 'nutuiCascaderPaneHeight' | 'nutuiCascaderPanePaddingTop' | 'nutuiCascaderIconChecklistMarginLeft' | 'nutuiCascaderTabsItemPadding' | 'nutuiCascaderBarPadding' | 'nutuiCascaderBarFontSize' | 'nutuiCascaderBarLineHeight' | 'nutuiCascaderBarColor' | 'nutuiCascaderItemHeight' | 'nutuiCascaderItemPadding' | 'nutuiCascaderItemMargin' | 'nutuiCascaderItemBorderBottom' | 'nutuiCascaderItemColor' | 'nutuiCascaderItemFontSize' | 'nutuiCascaderItemActiveColor' | 'nutuiFormItemErrorLineColor' | 'nutuiFormItemRequiredColor' | 'nutuiFormItemErrorMessageColor' | 'nutuiFormItemLabelFontSize' | 'nutuiFormItemLabelWidth' | 'nutuiFormItemLabelMarginRight' | 'nutuiFormItemLabelTextAlign' | 'nutuiFormItemRequiredMarginRight' | 'nutuiFormItemBodyFontSize' | 'nutuiFormItemBodySlotsTextAlign' | 'nutuiFormItemBodyInputTextAlign' | 'nutuiFormItemTipFontSize' | 'nutuiFormItemTipTextAlign' | 'nutuiSkeletonBackground' | 'nutuiSkeletonLineWidth' | 'nutuiSkeletonLineHeight' | 'nutuiSkeletonLineBorderRadius' | 'nutuiSkuItemBorder' | 'nutuiSkuItemDisableLine' | 'nutuiSkuItemActiveBg' | 'nutuiSkuSpecHeight' | 'nutuiSkuSpecLineHeight' | 'nutuiSkuSpecFontSize' | 'nutuiSkuSpecBackground' | 'nutuiSkuSpecColor' | 'nutuiSkuSpecMarginRight' | 'nutuiSkuSpecPadding' | 'nutuiSkuSpecTitleFontWeight' | 'nutuiSkuSpecTitleFontSize' | 'nutuiSkuSpecTitleColor' | 'nutuiSkuSpecTitleMarginBottom' | 'nutuiSkuOperateBtnHeight' | 'nutuiSkuOperateBtnBorderTop' | 'nutuiSkuOperateBtnItemHeight' | 'nutuiSkuOperateBtnItemFontSize' | 'nutuiSkuOperateBtnItemFontWeight' | 'nutuiSkuProductImgWidth' | 'nutuiSkuProductImgHeight' | 'nutuiSkuProductImgBorderRadius' | 'nutuiCardFontSize0' | 'nutuiCardFontSize1' | 'nutuiCardFontSize2' | 'nutuiCardFontSize3' | 'nutuiCardLeftBorderRadius' | 'nutuiCardLeftBackgroundColor' | 'nutuiGridBorderColor' | 'nutuiGridItemContentPadding' | 'nutuiGridItemContentBgColor' | 'nutuiGridItemTextMargin' | 'nutuiGridItemTextColor' | 'nutuiGridItemTextFontSize' | 'nutuiTableBorderColor' | 'nutuiTableColsPadding' | 'nutuiTableTrEvenBgColor' | 'nutuiTableTrOddBgColor' | 'nutuiNavbarWidth' | 'nutuiNavbarHeight' | 'nutuiNavbarMarginBottom' | 'nutuiNavbarPadding' | 'nutuiNavbarBackground' | 'nutuiNavbarBoxShadow' | 'nutuiNavbarColor' | 'nutuiNavbarFontSize' | 'nutuiNavbarTitleFontSize' | 'nutuiNavbarTitleFontWeight' | 'nutuiNavbarTitleFontColor' | 'nutuiSidenavbarContentBgColor' | 'nutuiSidenavbarSubTitleBorderColor' | 'nutuiSidenavbarSubTitleBgColor' | 'nutuiSidenavbarSubTitleFontSize' | 'nutuiSidenavbarSubTitleRadius' | 'nutuiSidenavbarSubTitleBorder' | 'nutuiSidenavbarSubTitleWidth' | 'nutuiSidenavbarSubTitleHeight' | 'nutuiSidenavbarSubTitleTextLineHeight' | 'nutuiSidenavbarSubTitleTextColor' | 'nutuiSidenavbarItemTitleColor' | 'nutuiSidenavbarItemTitleBgColor' | 'nutuiSidenavbarItemHeight' | 'nutuiSidenavbarItemLineHeight' | 'nutuiSidenavbarItemFontSize' | 'nutuiElevatorListInnerBgColor' | 'nutuiElevatorListItemHighcolor' | 'nutuiElevatorListItemFontSize' | 'nutuiElevatorListItemFontColor' | 'nutuiElevatorListItemNamePadding' | 'nutuiElevatorListItemNameHeight' | 'nutuiElevatorListItemNameLineHeight' | 'nutuiElevatorListItemCodeFontSize' | 'nutuiElevatorListItemCodeFontColor' | 'nutuiElevatorListItemCodeFontWeight' | 'nutuiElevatorListItemCodePadding' | 'nutuiElevatorListItemCodeHeight' | 'nutuiElevatorListItemCodeLineHeight' | 'nutuiElevatorListItemCodeBorderBottom' | 'nutuiElevatorListItemCodeBorderBottomColor' | 'nutuiElevatorListItemCodeCurrentBgColor' | 'nutuiElevatorListItemCodeCurrentBorderRadius' | 'nutuiElevatorListItemCodeCurrentWidth' | 'nutuiElevatorListItemCodeCurrentHeight' | 'nutuiElevatorListItemCodeCurrentLineHeight' | 'nutuiElevatorListItemCodeCurrentPosition' | 'nutuiElevatorListItemCodeCurrentRight' | 'nutuiElevatorListItemCodeCurrentTop' | 'nutuiElevatorListItemCodeCurrentTransform' | 'nutuiElevatorListItemCodeCurrentTextAlign' | 'nutuiElevatorListItemBarsPosition' | 'nutuiElevatorListItemBarsRight' | 'nutuiElevatorListItemBarsTop' | 'nutuiElevatorListItemBarsTransform' | 'nutuiElevatorListItemBarsPadding' | 'nutuiElevatorListItemBarsBackgroundColor' | 'nutuiElevatorListItemBarsBorderRadius' | 'nutuiElevatorListItemBarsTextAlign' | 'nutuiElevatorListItemBarsZIndex' | 'nutuiElevatorListItemBarsInnerItemPadding' | 'nutuiElevatorListItemBarsInnerItemFontSize' | 'nutuiElevatorListFixedColor' | 'nutuiElevatorListFixedBgColor' | 'nutuiElevatorListFixedBoxShadow' | 'nutuiElevatorListItemBarsInnerItemActiveColor' | 'nutuiListItemMargin' | 'nutuiEcardBgColor' | 'nutuiAddresslistBg' | 'nutuiAddresslistBorder' | 'nutuiAddresslistFontColor' | 'nutuiAddresslistFontSize' | 'nutuiAddresslistMaskBg' | 'nutuiAddresslistAddrFontColor' | 'nutuiAddresslistAddrFontSize' | 'nutuiAddresslistSetBg' | 'nutuiAddresslistDelBg' | 'nutuiAddresslistContntsContactDefault' | 'nutuiAddresslistContntsContactColor' | 'nutuiCategoryBgColor' | 'nutuiCategoryListLeftBgColor' | 'nutuiCategoryListItemColor' | 'nutuiCategoryListItemCheckedColor' | 'nutuiCategoryListItemCheckedImgBgColor' | 'nutuiCategoryPaneGrayColor' | 'nutuiCategoryPaneBorderColor' | 'nutuiCategoryPaneTitleColor' | 'nutuiCircleprogressPrimaryColor' | 'nutuiCircleprogressPathColor' | 'nutuiCircleprogressTextColor' | 'nutuiCircleprogressTextSize' | 'nutuiCommentHeaderUserNameColor' | 'nutuiCommentHeaderTimeColor' | 'nutuiCommentBottomLabelColor' | 'nutuiCommentShopColor' | 'nutuiEllipsisExpandCollapseColor' | 'nutuiWatermarkZIndex' | 'nutuiInvoicePadding' | 'nutuiTrendarrowFontSize' | 'nutuiTrendarrowBeforeIconMargin' | 'nutuiCountupHeight' | 'nutuiCountupBaseSize' | 'nutuiCountupBorderRaduis' | 'nutuiCountupLrMargin' | 'nutuiCountupBgcolor' | 'nutuiCountupColor' | 'nutuiCountupWidth' | 'nutuiRowContentColor' | 'nutuiRowContentBackgroundColor' | 'nutuiRowContentBorderRadius' | 'nutuiRowContentHeight' | 'nutuiRowContentLineHeight' | 'nutuiColDefaultMarginBottom' | 'nutuiBrandColorOpacity';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
style?: CSSProperties;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface CountDownProps extends BasicComponent {
|
|
5
4
|
paused: boolean;
|
|
6
5
|
startTime: number;
|
|
7
6
|
endTime: number;
|
|
7
|
+
remainingTime: number;
|
|
8
8
|
millisecond: boolean;
|
|
9
9
|
format: string;
|
|
10
10
|
autoStart: boolean;
|
|
11
11
|
time: number;
|
|
12
|
+
destroy: boolean;
|
|
12
13
|
onEnd: () => void;
|
|
13
14
|
onPaused: (restTime: number) => void;
|
|
14
15
|
onRestart: (restTime: number) => void;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
style?: CSSProperties;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface CountDownProps extends BasicComponent {
|
|
5
4
|
paused: boolean;
|
|
6
5
|
startTime: number;
|
|
7
6
|
endTime: number;
|
|
7
|
+
remainingTime: number;
|
|
8
8
|
millisecond: boolean;
|
|
9
9
|
format: string;
|
|
10
10
|
autoStart: boolean;
|
|
11
11
|
time: number;
|
|
12
|
+
destroy: boolean;
|
|
12
13
|
onEnd: () => void;
|
|
13
14
|
onPaused: (restTime: number) => void;
|
|
14
15
|
onRestart: (restTime: number) => void;
|
|
@@ -7,37 +7,20 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
/** 搜索框形状,可选值为 round */
|
|
9
9
|
shape?: 'square' | 'round';
|
|
10
|
-
/** 自定义class名 */
|
|
11
|
-
className?: string;
|
|
12
10
|
/** 是否禁用输入框 */
|
|
13
11
|
disabled?: boolean;
|
|
14
12
|
/** 最大输入长度 */
|
|
15
13
|
maxLength?: number;
|
|
16
14
|
/** 是否启用清除图标,点击清除图标后会清空输入框 */
|
|
17
15
|
clearable?: boolean;
|
|
18
|
-
clearSize?: string | number;
|
|
19
|
-
/** 搜索框外部背景色 */
|
|
20
|
-
background?: string;
|
|
21
|
-
/** 搜索框背景色 */
|
|
22
|
-
inputBackground?: string;
|
|
23
|
-
/** 输入框内容对齐方式 */
|
|
24
|
-
align?: string;
|
|
25
16
|
/** 是否将输入框设为只读状态,只读状态下无法输入内容 */
|
|
26
17
|
readOnly?: boolean;
|
|
27
18
|
/** 是否自动聚焦,iOS 系统不支持该属性 */
|
|
28
19
|
autoFocus?: boolean;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/** 输入框内 右icon */
|
|
34
|
-
rightinIcon?: React.ReactNode;
|
|
35
|
-
/** 输入框外 左icon */
|
|
36
|
-
leftoutIcon?: React.ReactNode;
|
|
37
|
-
/** 输入框外 右icon */
|
|
38
|
-
rightoutIcon?: React.ReactNode;
|
|
39
|
-
/** 取消按钮文字 */
|
|
40
|
-
actionText?: React.ReactNode;
|
|
20
|
+
left: React.ReactNode;
|
|
21
|
+
right: React.ReactNode;
|
|
22
|
+
leftIn: React.ReactNode;
|
|
23
|
+
rightIn: React.ReactNode;
|
|
41
24
|
/** 确定搜索时触发 */
|
|
42
25
|
onSearch?: (val: string) => void;
|
|
43
26
|
/** 输入框内容变化时触发 */
|
|
@@ -48,17 +31,7 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
48
31
|
onBlur?: (value: string, event: Event) => void;
|
|
49
32
|
/** 点击清除按钮后触发 */
|
|
50
33
|
onClear?: (event: Event) => void;
|
|
51
|
-
/** 点击取消按钮后触发 */
|
|
52
|
-
onCancel?: () => void;
|
|
53
34
|
/** 点击输入区域时触发 */
|
|
54
35
|
onClickInput?: (event: Event) => void;
|
|
55
|
-
/** 点击输入框内左侧图标时触发 */
|
|
56
|
-
onClickLeftinIcon?: (value: string, event: Event) => void;
|
|
57
|
-
/** 点击输入框外左侧图标时触发 */
|
|
58
|
-
onClickLeftoutIcon?: (value: string, event: Event) => void;
|
|
59
|
-
/** 点击输入框内右侧图标时触发 */
|
|
60
|
-
onClickRightinIcon?: (value: string, event: Event) => void;
|
|
61
|
-
/** 点击输入框外右侧图标时触发 */
|
|
62
|
-
onClickRightoutIcon?: (value: string, event: Event) => void;
|
|
63
36
|
}
|
|
64
37
|
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
@@ -7,37 +7,20 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
/** 搜索框形状,可选值为 round */
|
|
9
9
|
shape?: 'square' | 'round';
|
|
10
|
-
/** 自定义class名 */
|
|
11
|
-
className?: string;
|
|
12
10
|
/** 是否禁用输入框 */
|
|
13
11
|
disabled?: boolean;
|
|
14
12
|
/** 最大输入长度 */
|
|
15
13
|
maxLength?: number;
|
|
16
14
|
/** 是否启用清除图标,点击清除图标后会清空输入框 */
|
|
17
15
|
clearable?: boolean;
|
|
18
|
-
clearSize?: string | number;
|
|
19
|
-
/** 搜索框外部背景色 */
|
|
20
|
-
background?: string;
|
|
21
|
-
/** 搜索框背景色 */
|
|
22
|
-
inputBackground?: string;
|
|
23
|
-
/** 输入框内容对齐方式 */
|
|
24
|
-
align?: string;
|
|
25
16
|
/** 是否将输入框设为只读状态,只读状态下无法输入内容 */
|
|
26
17
|
readOnly?: boolean;
|
|
27
18
|
/** 是否自动聚焦,iOS 系统不支持该属性 */
|
|
28
19
|
autoFocus?: boolean;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/** 输入框内 右icon */
|
|
34
|
-
rightinIcon?: React.ReactNode;
|
|
35
|
-
/** 输入框外 左icon */
|
|
36
|
-
leftoutIcon?: React.ReactNode;
|
|
37
|
-
/** 输入框外 右icon */
|
|
38
|
-
rightoutIcon?: React.ReactNode;
|
|
39
|
-
/** 取消按钮文字 */
|
|
40
|
-
actionText?: React.ReactNode;
|
|
20
|
+
left: React.ReactNode;
|
|
21
|
+
right: React.ReactNode;
|
|
22
|
+
leftIn: React.ReactNode;
|
|
23
|
+
rightIn: React.ReactNode;
|
|
41
24
|
/** 确定搜索时触发 */
|
|
42
25
|
onSearch?: (val: string) => void;
|
|
43
26
|
/** 输入框内容变化时触发 */
|
|
@@ -48,17 +31,7 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
48
31
|
onBlur?: (value: string, event: Event) => void;
|
|
49
32
|
/** 点击清除按钮后触发 */
|
|
50
33
|
onClear?: (event: Event) => void;
|
|
51
|
-
/** 点击取消按钮后触发 */
|
|
52
|
-
onCancel?: () => void;
|
|
53
34
|
/** 点击输入区域时触发 */
|
|
54
35
|
onClickInput?: (event: Event) => void;
|
|
55
|
-
/** 点击输入框内左侧图标时触发 */
|
|
56
|
-
onClickLeftinIcon?: (value: string, event: Event) => void;
|
|
57
|
-
/** 点击输入框外左侧图标时触发 */
|
|
58
|
-
onClickLeftoutIcon?: (value: string, event: Event) => void;
|
|
59
|
-
/** 点击输入框内右侧图标时触发 */
|
|
60
|
-
onClickRightinIcon?: (value: string, event: Event) => void;
|
|
61
|
-
/** 点击输入框外右侧图标时触发 */
|
|
62
|
-
onClickRightoutIcon?: (value: string, event: Event) => void;
|
|
63
36
|
}
|
|
64
37
|
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export interface ShortPasswordProps extends
|
|
4
|
-
|
|
5
|
-
description: string;
|
|
6
|
-
tips: string;
|
|
7
|
-
tipsIcon: React.ReactNode;
|
|
8
|
-
iconSize: string | number;
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { PopupProps } from '../popup/popup';
|
|
3
|
+
export interface ShortPasswordProps extends PopupProps {
|
|
4
|
+
value: string;
|
|
9
5
|
visible: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
autoFocus
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
plain: boolean;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
description: ReactNode;
|
|
9
|
+
tips: ReactNode;
|
|
10
|
+
hideFooter: boolean;
|
|
11
|
+
length: number;
|
|
12
|
+
error: ReactNode;
|
|
13
|
+
autoFocus: boolean;
|
|
14
|
+
onFocus: () => void;
|
|
15
|
+
onChange: (value: string) => void;
|
|
16
|
+
onConfirm: (value: string) => void;
|
|
20
17
|
onCancel: () => void;
|
|
21
18
|
onClose: () => void;
|
|
22
19
|
onTips: () => void;
|
|
23
|
-
onComplete: (value: string
|
|
20
|
+
onComplete: (value: string) => void;
|
|
24
21
|
}
|
|
25
|
-
export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps
|
|
22
|
+
export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps>>;
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export interface ShortPasswordProps extends
|
|
4
|
-
|
|
5
|
-
description: string;
|
|
6
|
-
tips: string;
|
|
7
|
-
tipsIcon: React.ReactNode;
|
|
8
|
-
iconSize: string | number;
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { PopupProps } from '@/packages/popup/popup.taro';
|
|
3
|
+
export interface ShortPasswordProps extends PopupProps {
|
|
4
|
+
value: string;
|
|
9
5
|
visible: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
autoFocus
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
plain: boolean;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
description: ReactNode;
|
|
9
|
+
tips: ReactNode;
|
|
10
|
+
hideFooter: boolean;
|
|
11
|
+
length: number;
|
|
12
|
+
error: ReactNode;
|
|
13
|
+
autoFocus: boolean;
|
|
14
|
+
onFocus: () => void;
|
|
15
|
+
onChange: (value: string) => void;
|
|
16
|
+
onConfirm: (value: string) => void;
|
|
20
17
|
onCancel: () => void;
|
|
21
18
|
onClose: () => void;
|
|
22
19
|
onTips: () => void;
|
|
23
|
-
onComplete: (value: string
|
|
20
|
+
onComplete: (value: string) => void;
|
|
24
21
|
}
|
|
25
|
-
export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps
|
|
22
|
+
export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps>>;
|