@nutui/nutui-react-taro 3.0.0-beta.6 → 3.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -9
- package/dist/cjs/packages/address/style/style.css +56 -89
- package/dist/cjs/packages/animate/style/animate.scss +0 -3
- package/dist/cjs/packages/animate/style/style.css +0 -3
- package/dist/cjs/packages/cascader/style/style.css +49 -85
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/countdown.js +1 -1
- package/dist/cjs/packages/countdown/style/countdown.scss +21 -2
- package/dist/cjs/packages/countdown/style/style.css +20 -2
- package/dist/cjs/packages/elevator/elevator.js +23 -16
- package/dist/cjs/packages/elevator/style/elevator.scss +7 -4
- package/dist/cjs/packages/elevator/style/style.css +7 -4
- package/dist/cjs/packages/inputnumber/inputnumber.js +0 -1
- package/dist/cjs/packages/inputnumber/style/inputnumber.scss +19 -16
- package/dist/cjs/packages/inputnumber/style/style.css +21 -19
- package/dist/cjs/packages/numberkeyboard/numberkeyboard.js +6 -5
- package/dist/cjs/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
- package/dist/cjs/packages/numberkeyboard/style/style.css +12 -0
- package/dist/cjs/packages/popover/style/popover.scss +16 -11
- package/dist/cjs/packages/popover/style/style.css +14 -2
- package/dist/cjs/packages/tabs/style/style.css +49 -85
- package/dist/cjs/packages/tabs/style/tabs.scss +68 -106
- package/dist/cjs/packages/tabs/tabs.js +2 -4
- package/dist/cjs/packages/tour/style/style.css +14 -2
- package/dist/es/packages/address/style/style.css +56 -89
- package/dist/es/packages/animate/style/animate.scss +0 -3
- package/dist/es/packages/animate/style/style.css +0 -3
- package/dist/es/packages/cascader/style/style.css +49 -85
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/countdown.js +1 -1
- package/dist/es/packages/countdown/style/countdown.scss +21 -2
- package/dist/es/packages/countdown/style/style.css +20 -2
- package/dist/es/packages/elevator/elevator.js +26 -19
- package/dist/es/packages/elevator/style/elevator.scss +7 -4
- package/dist/es/packages/elevator/style/style.css +7 -4
- package/dist/es/packages/inputnumber/inputnumber.js +1 -2
- package/dist/es/packages/inputnumber/style/inputnumber.scss +19 -16
- package/dist/es/packages/inputnumber/style/style.css +21 -19
- package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +10 -50
- package/dist/es/packages/numberkeyboard/numberkeyboard.js +6 -5
- package/dist/es/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
- package/dist/es/packages/numberkeyboard/style/style.css +12 -0
- package/dist/es/packages/popover/style/popover.scss +16 -11
- package/dist/es/packages/popover/style/style.css +14 -2
- package/dist/es/packages/tabpane/tabpane.d.ts +3 -15
- package/dist/es/packages/tabs/style/style.css +49 -85
- package/dist/es/packages/tabs/style/tabs.scss +68 -106
- package/dist/es/packages/tabs/tabs.d.ts +12 -60
- package/dist/es/packages/tabs/tabs.js +2 -4
- package/dist/es/packages/tour/style/style.css +14 -2
- package/dist/nutui.react.umd.js +64 -75
- package/dist/style.css +1 -1
- package/dist/styles/theme-dark.scss +2 -0
- package/dist/styles/theme-default.scss +2 -0
- package/dist/styles/variables.scss +14 -13
- package/package.json +1 -1
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
color: var(--nutui-color-primary, #ff0f23);
|
|
51
51
|
}
|
|
52
52
|
.nut-elevator-list-fixed {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
53
55
|
width: 100%;
|
|
54
56
|
position: absolute;
|
|
55
57
|
top: 0;
|
|
@@ -57,14 +59,15 @@
|
|
|
57
59
|
z-index: 1;
|
|
58
60
|
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
59
61
|
height: var(--nutui-elevator-list-item-code-height, 35px);
|
|
60
|
-
line-height: var(--nutui-elevator-list-item-code-line-height, 35px);
|
|
61
|
-
font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-size-base, 14px));
|
|
62
|
-
color: var(--nutui-elevator-list-fixed-color, var(--nutui-color-primary, #ff0f23));
|
|
63
|
-
font-weight: var(--nutui-elevator-list-item-code-font-weight, var(--nutui-font-weight-bold, 600));
|
|
64
62
|
background-color: var(--nutui-elevator-list-fixed-bg-color, #ffffff);
|
|
65
63
|
box-sizing: border-box;
|
|
66
64
|
box-shadow: var(--nutui-elevator-list-fixed-box-shadow, 0 0 10px #eee);
|
|
67
65
|
}
|
|
66
|
+
.nut-elevator-list-fixed-title {
|
|
67
|
+
font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-size-base, 14px));
|
|
68
|
+
color: var(--nutui-elevator-list-fixed-color, var(--nutui-color-primary, #ff0f23));
|
|
69
|
+
font-weight: var(--nutui-elevator-list-item-code-font-weight, var(--nutui-font-weight-bold, 600));
|
|
70
|
+
}
|
|
68
71
|
.nut-elevator-code-current {
|
|
69
72
|
position: absolute;
|
|
70
73
|
right: var(--nutui-elevator-list-item-code-current-right, 60px);
|
|
@@ -9,7 +9,7 @@ import { Input as TaroInput, View, Text } from "@tarojs/components";
|
|
|
9
9
|
import { Minus, Plus } from "@nutui/icons-react-taro";
|
|
10
10
|
import { usePropsValue } from "../../utils/use-props-value";
|
|
11
11
|
import { ComponentDefaults } from "../../utils/typings";
|
|
12
|
-
import {
|
|
12
|
+
import { harmonyAndRn, rn } from "../../utils/platform-taro";
|
|
13
13
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
14
14
|
disabled: false,
|
|
15
15
|
readOnly: false,
|
|
@@ -50,7 +50,6 @@ export var InputNumber = function(props) {
|
|
|
50
50
|
]);
|
|
51
51
|
var isRnAndHarmony = harmonyAndRn();
|
|
52
52
|
var isRn = rn();
|
|
53
|
-
var isHarmony = harmony();
|
|
54
53
|
var classes = classNames(classPrefix, className);
|
|
55
54
|
var _useState = _sliced_to_array(useState(false), 2), focused = _useState[0], setFocused = _useState[1];
|
|
56
55
|
var inputRef = useRef(null);
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
.nut-inputnumber {
|
|
2
|
-
display: flex;
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
width: calc(
|
|
4
|
+
2 * #{$inputnumber-input-margin} + 2 * #{$inputnumber-button-width} + #{$inputnumber-input-width}
|
|
5
|
+
);
|
|
3
6
|
flex-direction: row;
|
|
4
7
|
align-items: center;
|
|
5
|
-
|
|
8
|
+
background-color: $color-background;
|
|
9
|
+
border-radius: $inputnumber-input-border-radius;
|
|
10
|
+
overflow: hidden;
|
|
6
11
|
&-minus,
|
|
7
12
|
&-add {
|
|
8
13
|
display: flex;
|
|
@@ -11,21 +16,18 @@
|
|
|
11
16
|
width: $inputnumber-button-width;
|
|
12
17
|
height: $inputnumber-button-height;
|
|
13
18
|
background-color: $inputnumber-button-background-color;
|
|
14
|
-
|
|
19
|
+
.nut-icon {
|
|
20
|
+
--nut-icon-width: 20px;
|
|
21
|
+
--nut-icon-height: 20px;
|
|
22
|
+
}
|
|
15
23
|
}
|
|
16
24
|
|
|
17
25
|
&-icon {
|
|
18
|
-
color: $
|
|
19
|
-
/* #ifdef rn harmony */
|
|
20
|
-
font-size: 14px;
|
|
21
|
-
/* #endif */
|
|
22
|
-
/* #ifndef rn harmony */
|
|
23
|
-
font-size: $inputnumber-icon-size;
|
|
24
|
-
/* #endif */
|
|
26
|
+
color: $color-text;
|
|
25
27
|
cursor: pointer;
|
|
26
28
|
|
|
27
29
|
&-disabled {
|
|
28
|
-
color: $
|
|
30
|
+
color: $color-text-disabled;
|
|
29
31
|
cursor: not-allowed;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
@@ -35,16 +37,17 @@
|
|
|
35
37
|
justify-content: center;
|
|
36
38
|
align-items: center;
|
|
37
39
|
width: $inputnumber-input-width;
|
|
40
|
+
font-size: $inputnumber-input-font-size;
|
|
38
41
|
height: $inputnumber-input-height;
|
|
39
42
|
text-align: center;
|
|
40
43
|
outline: none;
|
|
41
44
|
border: $inputnumber-input-border;
|
|
42
|
-
|
|
43
|
-
margin: $inputnumber-input-margin;
|
|
44
|
-
color: $
|
|
45
|
+
margin-left: $inputnumber-input-margin;
|
|
46
|
+
margin-right: $inputnumber-input-margin;
|
|
47
|
+
color: $color-text;
|
|
45
48
|
background-color: $inputnumber-input-background-color;
|
|
46
49
|
&-disabled {
|
|
47
|
-
color: $
|
|
50
|
+
color: $color-text-disabled;
|
|
48
51
|
}
|
|
49
52
|
&::-webkit-outer-spin-button,
|
|
50
53
|
&::-webkit-inner-spin-button {
|
|
@@ -53,7 +56,7 @@
|
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
&-input-disabled {
|
|
56
|
-
color: $
|
|
59
|
+
color: $color-text-disabled;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
&-icon-minus {
|
|
@@ -3,55 +3,57 @@
|
|
|
3
3
|
/* #ifndef harmony */
|
|
4
4
|
/* #endif */
|
|
5
5
|
.nut-inputnumber {
|
|
6
|
-
display: flex;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
width: calc(2 * var(--nutui-inputnumber-input-margin, 0px) + 2 * var(--nutui-inputnumber-button-width, 20px) + var(--nutui-inputnumber-input-width, 26px));
|
|
7
8
|
flex-direction: row;
|
|
8
9
|
align-items: center;
|
|
10
|
+
background-color: var(--nutui-color-background, #f5f6fa);
|
|
11
|
+
border-radius: var(--nutui-inputnumber-input-border-radius, 4px);
|
|
12
|
+
overflow: hidden;
|
|
9
13
|
}
|
|
10
14
|
.nut-inputnumber-minus, .nut-inputnumber-add {
|
|
11
15
|
display: flex;
|
|
12
16
|
justify-content: center;
|
|
13
17
|
align-items: center;
|
|
14
|
-
width: var(--nutui-inputnumber-button-width,
|
|
15
|
-
height: var(--nutui-inputnumber-button-height,
|
|
18
|
+
width: var(--nutui-inputnumber-button-width, 20px);
|
|
19
|
+
height: var(--nutui-inputnumber-button-height, 20px);
|
|
16
20
|
background-color: var(--nutui-inputnumber-button-background-color, transparent);
|
|
17
|
-
|
|
21
|
+
}
|
|
22
|
+
.nut-inputnumber-minus .nut-icon, .nut-inputnumber-add .nut-icon {
|
|
23
|
+
--nut-icon-width: 20px;
|
|
24
|
+
--nut-icon-height: 20px;
|
|
18
25
|
}
|
|
19
26
|
.nut-inputnumber-icon {
|
|
20
|
-
color: var(--nutui-
|
|
21
|
-
/* #ifdef rn harmony */
|
|
22
|
-
font-size: 14px;
|
|
23
|
-
/* #endif */
|
|
24
|
-
/* #ifndef rn harmony */
|
|
25
|
-
font-size: var(--nutui-inputnumber-icon-size, 8px);
|
|
26
|
-
/* #endif */
|
|
27
|
+
color: var(--nutui-color-text, #505259);
|
|
27
28
|
cursor: pointer;
|
|
28
29
|
}
|
|
29
30
|
.nut-inputnumber-icon-disabled {
|
|
30
|
-
color: var(--nutui-
|
|
31
|
+
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
31
32
|
cursor: not-allowed;
|
|
32
33
|
}
|
|
33
34
|
.nut-inputnumber-input {
|
|
34
35
|
display: flex;
|
|
35
36
|
justify-content: center;
|
|
36
37
|
align-items: center;
|
|
37
|
-
width: var(--nutui-inputnumber-input-width,
|
|
38
|
-
|
|
38
|
+
width: var(--nutui-inputnumber-input-width, 26px);
|
|
39
|
+
font-size: var(--nutui-inputnumber-input-font-size, var(--nutui-font-size-s, 12px));
|
|
40
|
+
height: var(--nutui-inputnumber-input-height, 20px);
|
|
39
41
|
text-align: center;
|
|
40
42
|
outline: none;
|
|
41
43
|
border: var(--nutui-inputnumber-input-border, 0);
|
|
42
|
-
|
|
43
|
-
margin: var(--nutui-inputnumber-input-margin,
|
|
44
|
-
color: var(--nutui-
|
|
44
|
+
margin-left: var(--nutui-inputnumber-input-margin, 0px);
|
|
45
|
+
margin-right: var(--nutui-inputnumber-input-margin, 0px);
|
|
46
|
+
color: var(--nutui-color-text, #505259);
|
|
45
47
|
background-color: var(--nutui-inputnumber-input-background-color, var(--nutui-color-background, #f5f6fa));
|
|
46
48
|
}
|
|
47
49
|
.nut-inputnumber-input-disabled {
|
|
48
|
-
color: var(--nutui-
|
|
50
|
+
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
49
51
|
}
|
|
50
52
|
.nut-inputnumber-input::-webkit-outer-spin-button, .nut-inputnumber-input::-webkit-inner-spin-button {
|
|
51
53
|
appearance: none;
|
|
52
54
|
}
|
|
53
55
|
.nut-inputnumber-input-disabled {
|
|
54
|
-
color: var(--nutui-
|
|
56
|
+
color: var(--nutui-color-text-disabled, #c2c4cc);
|
|
55
57
|
}
|
|
56
58
|
.nut-inputnumber-icon-minus {
|
|
57
59
|
--nut-icon-width: 16px;
|
|
@@ -1,55 +1,15 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { PopupProps } from "../popup/popup";
|
|
3
3
|
export interface NumberKeyboardProps extends PopupProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* 自定义完成按钮文字,如"支付","下一步","提交"等,搭配 rightColumn 使用
|
|
16
|
-
* @default 完成
|
|
17
|
-
*/
|
|
18
|
-
confirmText?: string
|
|
19
|
-
/**
|
|
20
|
-
* 键盘模式, default:默认样式 rightColumn:带右侧栏
|
|
21
|
-
* @default default
|
|
22
|
-
*/
|
|
23
|
-
type: 'default' | 'rightColumn'
|
|
24
|
-
/**
|
|
25
|
-
* 自定义键盘额外的键, 数组形式最多支持添加 2 个, 超出默认取前 2 项
|
|
26
|
-
* @default -
|
|
27
|
-
*/
|
|
28
|
-
custom: Array<string>
|
|
29
|
-
/**
|
|
30
|
-
* 随机数
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
random: boolean
|
|
34
|
-
/**
|
|
35
|
-
* 点击按键时触发
|
|
36
|
-
* @default -
|
|
37
|
-
*/
|
|
38
|
-
onChange?: (value: string) => void
|
|
39
|
-
/**
|
|
40
|
-
* 点击删除键时触发
|
|
41
|
-
* @default -
|
|
42
|
-
*/
|
|
43
|
-
onDelete?: () => void
|
|
44
|
-
/**
|
|
45
|
-
* 点击关闭按钮或非键盘区域时触发
|
|
46
|
-
* @default -
|
|
47
|
-
*/
|
|
48
|
-
onClose: () => void
|
|
49
|
-
/**
|
|
50
|
-
* 点击确定按钮时触发
|
|
51
|
-
* @default -
|
|
52
|
-
*/
|
|
53
|
-
onConfirm?: () => void
|
|
4
|
+
visible: boolean;
|
|
5
|
+
rightActions: ReactNode;
|
|
6
|
+
confirmText?: string;
|
|
7
|
+
type: 'default' | 'rightColumn';
|
|
8
|
+
custom: Array<string>;
|
|
9
|
+
random: boolean;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
onDelete?: () => void;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onConfirm?: () => void;
|
|
54
14
|
}
|
|
55
15
|
export declare const NumberKeyboard: FunctionComponent<Partial<NumberKeyboardProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onClick' | 'title'>>;
|
|
@@ -10,6 +10,7 @@ import { View } from "@tarojs/components";
|
|
|
10
10
|
import Popup from "../popup/index";
|
|
11
11
|
import { useConfig } from "../configprovider/configprovider";
|
|
12
12
|
import { ComponentDefaults } from "../../utils/typings";
|
|
13
|
+
import { mergeProps } from "../../utils/merge-props";
|
|
13
14
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
14
15
|
visible: false,
|
|
15
16
|
rightActions: '',
|
|
@@ -20,7 +21,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
20
21
|
});
|
|
21
22
|
export var NumberKeyboard = function(props) {
|
|
22
23
|
var locale = useConfig().locale;
|
|
23
|
-
var
|
|
24
|
+
var _mergeProps = mergeProps(defaultProps, props), title = _mergeProps.title, rightActions = _mergeProps.rightActions, confirmText = _mergeProps.confirmText, visible = _mergeProps.visible, type = _mergeProps.type, custom = _mergeProps.custom, random = _mergeProps.random, style = _mergeProps.style, className = _mergeProps.className, onChange = _mergeProps.onChange, onDelete = _mergeProps.onDelete, onClose = _mergeProps.onClose, onConfirm = _mergeProps.onConfirm, rest = _object_without_properties(_mergeProps, [
|
|
24
25
|
"title",
|
|
25
26
|
"rightActions",
|
|
26
27
|
"confirmText",
|
|
@@ -88,8 +89,8 @@ export var NumberKeyboard = function(props) {
|
|
|
88
89
|
var style = {
|
|
89
90
|
background: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjM5Q0FBNDQwRjdFMzExRUFCMjM0QkJCRjE0NkZCODk4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM5Q0FBNDQxRjdFMzExRUFCMjM0QkJCRjE0NkZCODk4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+T12ahwAABClJREFUeNrUWVtIFFEY3pkdrbaCiAINK81VW3d2102pjKLtoXoJrNAswoeEXoyilx7sJXvIh6CHAoMg6yEfSpdECIqE0jCMbMm9qCVYUmR5S8huXmZO39nWOI7mzsy6uzqgM/vvzNnv+y/n/84ZjhBiWMwHF+kA+fn5y0ZHRzNwuTomgDnui9/vfzMvBJxWa7bE87W4tMbY8S8MhNz0BQLVugnY7fZdGORZPNNHJmSPUSf47QD/PN75z3NcpqD1IVEU8wC+dZojDIajyMu6WAG322zBmQf/7LzGnHeAdRtjmuAIKYoleMWxQnUEHA6HVZLldsb0m3oehdQQzzQSVILPJLIcYEw/4HkK/kG86yAsAZvNtgng3059hte/Gf56/uFCaGR8mIJdj3m2hzGNGAkpRM4vCPBzErBYLMko2A//DIQMoQ0WtgcCjWFnCVGswEzxCecqLc0y9Nyww2ariYhAbm7umgRB6GNM/QTgfT7fEzWD4t7dOK0D4TKAcrtcLkENeNx/gUoSpOnx4Gc9BHJyclZNjI8PMqY+judp2jSr1iuENDPi5fDX4WG32WxeogL81NGRIEk3NBNAh10uS9IIY/oIbxR6vd4WLXmJAq9Ayl1kTAUmk8mNyJrUgDfK8hFPV9dnTQSCHiLkO/Ndb8jzrXqKawYJQg4gsu6srKyV4cC/7ujo1CqneRSPxNh74PligPdE3PYVIDHuY6PRWCxPTp7VC35KSvwjwBpwdPP4gXYc86ZdZnr6Pf7S9HqexUs9z0qBLprz8wn+PzWRFknaKGsgjwlvCdLGH42GQ0lg+dqkMP+Enj+lF/yMWYgnJD1qEhhphOWgS2E2yQZDJWa/lEgIvGIa0D2HKJZGA7yiBgaZqO9AermdFstGXQR8fn+BootW4wfPRBE8zXmXoia2SYLgpsJRVwqBBJ2N+pnueRVhPR8l8MGCnaWw8wDCDSWQoasGQCKJnpjGcwkkKqMBfo7ZyQklQCOxWVcRg4QDXmhkSJRjsGvRAD8HCTuNhNPpXKtLzHn9/n0orBqm052GvL2lcfepTMs8PwsJqyRJRbrlNFpBCUBcYWaKE2h4tampqUtV6pP60HNtapuUksTY2NidiLcWUQPnMOhlxvQoITGxxOPxDIVdR2dnb/V2dr7Umn50/Q31261JC4UhUQYSVUxdtPCCUAK10RuvZeQ0LRQ2tD7fddxdyuT3TijJehATF/yinqmJ2wB+jCGRA11TH9xiXAwEQpG4i0gcZHLPjHSqF0Vx76IgEIpEA9a7+3H5K2RK4jnuPvTToXgR0LW9Htpap71iAzPVNsUIMH0XMdXkfLrfD9BdanifksiKW/5w3Emj3mcHBgb6kpKTn6KYzfBCehzg10H6lHPzMdIWq9U8znEpsXE6N4rTO9TjSGgPanG/pfwjwABn1PZcM5XI0AAAAABJRU5ErkJggg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTkwMjA5MzIyMjIxMzkzMzc2NzAwNjg0MC0tDQo=') no-repeat center",
|
|
90
91
|
backgroundSize: '100% 100%',
|
|
91
|
-
width:
|
|
92
|
-
height:
|
|
92
|
+
width: 28,
|
|
93
|
+
height: 24
|
|
93
94
|
};
|
|
94
95
|
return /*#__PURE__*/ React.createElement(View, {
|
|
95
96
|
style: style
|
|
@@ -125,7 +126,7 @@ export var NumberKeyboard = function(props) {
|
|
|
125
126
|
switch(item.type){
|
|
126
127
|
case 'num':
|
|
127
128
|
case 'custom':
|
|
128
|
-
return /*#__PURE__*/ React.createElement(
|
|
129
|
+
return /*#__PURE__*/ React.createElement(React.Fragment, null, item.id);
|
|
129
130
|
case 'delete':
|
|
130
131
|
return /*#__PURE__*/ React.createElement(DeleteIcon, null);
|
|
131
132
|
case 'close':
|
|
@@ -176,7 +177,7 @@ export var NumberKeyboard = function(props) {
|
|
|
176
177
|
className: "".concat(classPrefix, "-header")
|
|
177
178
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
178
179
|
className: "".concat(classPrefix, "-header-title")
|
|
179
|
-
}, title), type === 'default' && /*#__PURE__*/ React.createElement(
|
|
180
|
+
}, title), type === 'default' && /*#__PURE__*/ React.createElement(View, {
|
|
180
181
|
className: "".concat(classPrefix, "-header-close"),
|
|
181
182
|
onClick: onConfirm
|
|
182
183
|
}, rightActions || locale.done)), /*#__PURE__*/ React.createElement(View, {
|
|
@@ -17,12 +17,15 @@
|
|
|
17
17
|
&-title {
|
|
18
18
|
color: $color-title;
|
|
19
19
|
display: inline-block;
|
|
20
|
+
font-size: $popup-title-font-size;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
&-close {
|
|
23
24
|
position: absolute;
|
|
24
25
|
display: block;
|
|
25
26
|
right: 0;
|
|
27
|
+
top: 50%;
|
|
28
|
+
transform: translateY(-50%);
|
|
26
29
|
padding: $numberkeyboard-header-close-padding;
|
|
27
30
|
color: $numberkeyboard-header-close-color;
|
|
28
31
|
font-size: $numberkeyboard-header-close-font-size;
|
|
@@ -45,7 +48,12 @@
|
|
|
45
48
|
&-wrapper {
|
|
46
49
|
position: relative;
|
|
47
50
|
flex: 1;
|
|
51
|
+
/* #ifdef harmony */
|
|
52
|
+
width: 33%;
|
|
53
|
+
/* #endif */
|
|
54
|
+
/* #ifndef harmony */
|
|
48
55
|
flex-basis: 33%;
|
|
56
|
+
/* #endif */
|
|
49
57
|
box-sizing: border-box;
|
|
50
58
|
padding: 0 6px 6px 0;
|
|
51
59
|
background-color: $numberkeyboard-wrapper-background-color;
|
|
@@ -74,9 +82,10 @@
|
|
|
74
82
|
&-sidebar {
|
|
75
83
|
display: flex;
|
|
76
84
|
flex: 1;
|
|
85
|
+
flex-basis: 33%;
|
|
77
86
|
flex-direction: column;
|
|
78
|
-
|
|
79
87
|
.nut-numberkeyboard-body-wrapper {
|
|
88
|
+
width: 100%;
|
|
80
89
|
.key {
|
|
81
90
|
position: absolute;
|
|
82
91
|
top: 0;
|
|
@@ -429,11 +429,14 @@
|
|
|
429
429
|
.nut-numberkeyboard-header-title {
|
|
430
430
|
color: var(--nutui-color-title, #1a1a1a);
|
|
431
431
|
display: inline-block;
|
|
432
|
+
font-size: var(--nutui-popup-title-font-size, var(--nutui-font-size-xl, 18px));
|
|
432
433
|
}
|
|
433
434
|
.nut-numberkeyboard-header-close {
|
|
434
435
|
position: absolute;
|
|
435
436
|
display: block;
|
|
436
437
|
right: 0;
|
|
438
|
+
top: 50%;
|
|
439
|
+
transform: translateY(-50%);
|
|
437
440
|
padding: var(--nutui-numberkeyboard-header-close-padding, 0 16px);
|
|
438
441
|
color: var(--nutui-numberkeyboard-header-close-color, var(--nutui-color-text, #505259));
|
|
439
442
|
font-size: var(--nutui-numberkeyboard-header-close-font-size, 14px);
|
|
@@ -453,7 +456,12 @@
|
|
|
453
456
|
.nut-numberkeyboard-body-wrapper {
|
|
454
457
|
position: relative;
|
|
455
458
|
flex: 1;
|
|
459
|
+
/* #ifdef harmony */
|
|
460
|
+
width: 33%;
|
|
461
|
+
/* #endif */
|
|
462
|
+
/* #ifndef harmony */
|
|
456
463
|
flex-basis: 33%;
|
|
464
|
+
/* #endif */
|
|
457
465
|
box-sizing: border-box;
|
|
458
466
|
padding: 0 6px 6px 0;
|
|
459
467
|
background-color: var(--nutui-numberkeyboard-wrapper-background-color, var(--nutui-color-background-sunken, #f7f8fc));
|
|
@@ -478,8 +486,12 @@
|
|
|
478
486
|
.nut-numberkeyboard-sidebar {
|
|
479
487
|
display: flex;
|
|
480
488
|
flex: 1;
|
|
489
|
+
flex-basis: 33%;
|
|
481
490
|
flex-direction: column;
|
|
482
491
|
}
|
|
492
|
+
.nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper {
|
|
493
|
+
width: 100%;
|
|
494
|
+
}
|
|
483
495
|
.nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper .key {
|
|
484
496
|
position: absolute;
|
|
485
497
|
top: 0;
|
|
@@ -93,18 +93,14 @@
|
|
|
93
93
|
justify-content: center;
|
|
94
94
|
padding: $popover-menu-item-padding;
|
|
95
95
|
border-bottom: 1px solid $popover-divider-color;
|
|
96
|
+
max-width: $popover-menu-item-width;
|
|
97
|
+
word-wrap: break-word;
|
|
96
98
|
|
|
97
99
|
&:last-child {
|
|
98
100
|
margin-bottom: 0px;
|
|
99
101
|
border-bottom: none;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
|
-
// &:hover:not(:only-child) {
|
|
103
|
-
// cursor: pointer;
|
|
104
|
-
// color: $popover-hover-text-color;
|
|
105
|
-
// background-color: $popover-hover-background-color;
|
|
106
|
-
// }
|
|
107
|
-
|
|
108
104
|
&:hover:nth-of-type(2) {
|
|
109
105
|
border-radius: 8px 8px 0px 0px;
|
|
110
106
|
}
|
|
@@ -128,9 +124,10 @@
|
|
|
128
124
|
}
|
|
129
125
|
|
|
130
126
|
&-name {
|
|
131
|
-
width: 100
|
|
127
|
+
width: calc(100% - 34px);
|
|
132
128
|
word-break: keep-all;
|
|
133
129
|
margin: 0 6px 0 4px;
|
|
130
|
+
flex: 1;
|
|
134
131
|
}
|
|
135
132
|
|
|
136
133
|
&-action-icon {
|
|
@@ -170,7 +167,6 @@
|
|
|
170
167
|
|
|
171
168
|
&-top-start {
|
|
172
169
|
left: 0;
|
|
173
|
-
|
|
174
170
|
.nut-popover-arrow-top-start {
|
|
175
171
|
left: 16px;
|
|
176
172
|
transform: translateX(0%);
|
|
@@ -186,7 +182,6 @@
|
|
|
186
182
|
|
|
187
183
|
&-bottom-end {
|
|
188
184
|
right: 0;
|
|
189
|
-
|
|
190
185
|
.nut-popover-arrow-bottom-end {
|
|
191
186
|
right: 16px;
|
|
192
187
|
transform: translateX(0%);
|
|
@@ -195,7 +190,6 @@
|
|
|
195
190
|
|
|
196
191
|
&-bottom-start {
|
|
197
192
|
left: 0;
|
|
198
|
-
|
|
199
193
|
.nut-popover-arrow-bottom-start {
|
|
200
194
|
left: 16px;
|
|
201
195
|
transform: translateX(0%);
|
|
@@ -225,7 +219,18 @@
|
|
|
225
219
|
color: $popover-content-background-color;
|
|
226
220
|
|
|
227
221
|
.nut-popover-arrow {
|
|
228
|
-
|
|
222
|
+
&-top {
|
|
223
|
+
border-top-color: $popover-text-color;
|
|
224
|
+
}
|
|
225
|
+
&-bottom {
|
|
226
|
+
border-bottom-color: $popover-text-color;
|
|
227
|
+
}
|
|
228
|
+
&-left {
|
|
229
|
+
border-left-color: $popover-text-color;
|
|
230
|
+
}
|
|
231
|
+
&-right {
|
|
232
|
+
border-right-color: $popover-text-color;
|
|
233
|
+
}
|
|
229
234
|
}
|
|
230
235
|
|
|
231
236
|
.nut-popover-content {
|
|
@@ -493,6 +493,8 @@
|
|
|
493
493
|
justify-content: center;
|
|
494
494
|
padding: var(--nutui-popover-menu-item-padding, 8px);
|
|
495
495
|
border-bottom: 1px solid var(--nutui-popover-divider-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
496
|
+
max-width: var(--nutui-popover-menu-item-width, 160px);
|
|
497
|
+
word-wrap: break-word;
|
|
496
498
|
}
|
|
497
499
|
.nut-popover .nut-popover-content .nut-popover-menu-item:last-child {
|
|
498
500
|
margin-bottom: 0px;
|
|
@@ -518,9 +520,10 @@
|
|
|
518
520
|
font-size: 12px;
|
|
519
521
|
}
|
|
520
522
|
.nut-popover .nut-popover-content .nut-popover-menu-item-name {
|
|
521
|
-
width: 100
|
|
523
|
+
width: calc(100% - 34px);
|
|
522
524
|
word-break: keep-all;
|
|
523
525
|
margin: 0 6px 0 4px;
|
|
526
|
+
flex: 1;
|
|
524
527
|
}
|
|
525
528
|
.nut-popover .nut-popover-content .nut-popover-menu-item-action-icon {
|
|
526
529
|
display: flex;
|
|
@@ -591,9 +594,18 @@
|
|
|
591
594
|
background: var(--nutui-popover-text-color, #1a1a1a);
|
|
592
595
|
color: var(--nutui-popover-content-background-color, #ffffff);
|
|
593
596
|
}
|
|
594
|
-
.nut-popover-dark .nut-popover-arrow {
|
|
597
|
+
.nut-popover-dark .nut-popover-arrow-top {
|
|
598
|
+
border-top-color: var(--nutui-popover-text-color, #1a1a1a);
|
|
599
|
+
}
|
|
600
|
+
.nut-popover-dark .nut-popover-arrow-bottom {
|
|
595
601
|
border-bottom-color: var(--nutui-popover-text-color, #1a1a1a);
|
|
596
602
|
}
|
|
603
|
+
.nut-popover-dark .nut-popover-arrow-left {
|
|
604
|
+
border-left-color: var(--nutui-popover-text-color, #1a1a1a);
|
|
605
|
+
}
|
|
606
|
+
.nut-popover-dark .nut-popover-arrow-right {
|
|
607
|
+
border-right-color: var(--nutui-popover-text-color, #1a1a1a);
|
|
608
|
+
}
|
|
597
609
|
.nut-popover-dark .nut-popover-content {
|
|
598
610
|
background: var(--nutui-popover-text-color, #1a1a1a) !important;
|
|
599
611
|
color: var(--nutui-popover-content-background-color, #ffffff) !important;
|
|
@@ -3,21 +3,9 @@ interface TabPanelInnerProps {
|
|
|
3
3
|
autoHeightClassName: string;
|
|
4
4
|
}
|
|
5
5
|
export interface TabPaneProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
title: string | number
|
|
11
|
-
/**
|
|
12
|
-
* 标签 Key , 匹配的标识符, 默认为索引值
|
|
13
|
-
* @default -
|
|
14
|
-
*/
|
|
15
|
-
value: string | number
|
|
16
|
-
/**
|
|
17
|
-
* 是否禁用标签
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
disabled: boolean
|
|
6
|
+
title: string | number;
|
|
7
|
+
value: string | number;
|
|
8
|
+
disabled: boolean;
|
|
21
9
|
className: string;
|
|
22
10
|
children?: React.ReactNode;
|
|
23
11
|
}
|