dtable-ui-component 6.0.24-beta1 → 6.0.25
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/lib/ActionSheet/index.js +194 -0
- package/lib/ActionSheet/style/index.css +365 -0
- package/lib/ActivityIndicator/index.css +108 -0
- package/lib/ActivityIndicator/index.js +76 -0
- package/lib/Badge/index.css +96 -0
- package/lib/Badge/index.js +65 -0
- package/lib/DateEditor/mb-date-editor-popover/index.js +3 -3
- package/lib/DatePicker/index.js +120 -0
- package/lib/DatePicker/locale/en_US.js +14 -0
- package/lib/DatePicker/locale/ru_RU.js +14 -0
- package/lib/DatePicker/locale/sv_SE.js +14 -0
- package/lib/DatePicker/locale/zh_CN.js +14 -0
- package/lib/DatePicker/style/index.css +290 -0
- package/lib/DatePicker/utils.js +36 -0
- package/lib/Drawer/index.css +142 -0
- package/lib/Drawer/index.js +21 -0
- package/lib/Icon/index.css +50 -0
- package/lib/Icon/index.js +34 -0
- package/lib/Icon/load-sprite.js +56 -0
- package/lib/InputItem/custom-input.js +321 -0
- package/lib/InputItem/custom-keyboard.js +162 -0
- package/lib/InputItem/index.js +388 -0
- package/lib/InputItem/input.js +45 -0
- package/lib/InputItem/locale/en_US.js +12 -0
- package/lib/InputItem/locale/ru_RU.js +12 -0
- package/lib/InputItem/locale/sv_SE.js +12 -0
- package/lib/InputItem/locale/zh_CN.js +12 -0
- package/lib/InputItem/portal.js +23 -0
- package/lib/InputItem/style/index.css +512 -0
- package/lib/List/index.css +381 -0
- package/lib/List/index.js +41 -0
- package/lib/List/list-item.js +169 -0
- package/lib/Modal/alert.js +82 -0
- package/lib/Modal/index.js +15 -0
- package/lib/Modal/modal.js +118 -0
- package/lib/Modal/operation.js +77 -0
- package/lib/Modal/prompt.js +207 -0
- package/lib/Picker/AbstractPicker.js +190 -0
- package/lib/Picker/index.js +28 -0
- package/lib/Picker/locale/en_US.js +12 -0
- package/lib/Picker/locale/ru_RU.js +12 -0
- package/lib/Picker/locale/sv_SE.js +12 -0
- package/lib/Picker/locale/zh_CN.js +12 -0
- package/lib/Picker/popupProps.js +12 -0
- package/lib/Picker/style/index.css +141 -0
- package/lib/Popover/index.js +62 -0
- package/lib/Popover/item.js +55 -0
- package/lib/Popover/style/index.css +229 -0
- package/lib/Progress/index.css +22 -0
- package/lib/Progress/index.js +65 -0
- package/lib/Radio/Radio.js +47 -0
- package/lib/Radio/RadioItem.js +57 -0
- package/lib/Radio/index.css +90 -0
- package/lib/Radio/index.js +12 -0
- package/lib/TabBar/Tab.js +76 -0
- package/lib/TabBar/index.css +138 -0
- package/lib/TabBar/index.js +128 -0
- package/lib/Tabs/index.css +443 -0
- package/lib/Tabs/index.js +38 -0
- package/lib/TextareaItem/index.css +231 -0
- package/lib/TextareaItem/index.js +231 -0
- package/lib/Toast/index.css +65 -0
- package/lib/Toast/index.js +131 -0
- package/lib/_util/class.js +34 -0
- package/lib/_util/closest.js +17 -0
- package/lib/_util/exenv.js +8 -0
- package/lib/_util/getDataAttr.js +15 -0
- package/lib/_util/getLocale.js +42 -0
- package/lib/index.js +103 -5
- package/lib/utils/utils.js +2 -3
- package/package.json +12 -3
- package/lib/BodyPortal/index.js +0 -29
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.am-radio {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
vertical-align: middle;
|
|
5
|
+
width: 15px;
|
|
6
|
+
height: 15px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.am-radio-inner {
|
|
10
|
+
position: absolute;
|
|
11
|
+
right: 0;
|
|
12
|
+
width: 15px;
|
|
13
|
+
height: 15px;
|
|
14
|
+
-webkit-box-sizing: border-box;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
-webkit-transform: rotate(0deg);
|
|
17
|
+
-ms-transform: rotate(0deg);
|
|
18
|
+
transform: rotate(0deg);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.am-radio-inner:after {
|
|
22
|
+
position: absolute;
|
|
23
|
+
display: none;
|
|
24
|
+
top: -2.5px;
|
|
25
|
+
right: 5px;
|
|
26
|
+
z-index: 999;
|
|
27
|
+
width: 7px;
|
|
28
|
+
height: 14px;
|
|
29
|
+
border-style: solid;
|
|
30
|
+
border-width: 0 1.5px 1.5px 0;
|
|
31
|
+
content: '\0020';
|
|
32
|
+
-webkit-transform: rotate(45deg);
|
|
33
|
+
-ms-transform: rotate(45deg);
|
|
34
|
+
transform: rotate(45deg);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.am-radio-input {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0;
|
|
40
|
+
left: 0;
|
|
41
|
+
opacity: 0;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
z-index: 2;
|
|
45
|
+
border: 0 none;
|
|
46
|
+
-webkit-appearance: none;
|
|
47
|
+
-moz-appearance: none;
|
|
48
|
+
appearance: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.am-radio.am-radio-checked .am-radio-inner {
|
|
52
|
+
border-width: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.am-radio.am-radio-checked .am-radio-inner:after {
|
|
56
|
+
display: block;
|
|
57
|
+
border-color: #108ee9;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.am-radio.am-radio-disabled.am-radio-checked .am-radio-inner:after {
|
|
61
|
+
display: block;
|
|
62
|
+
border-color: #bbb;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra {
|
|
66
|
+
-webkit-box-flex: 0;
|
|
67
|
+
-webkit-flex: 0;
|
|
68
|
+
-ms-flex: 0;
|
|
69
|
+
flex: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra .am-radio {
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: 0;
|
|
75
|
+
left: 0;
|
|
76
|
+
right: 0;
|
|
77
|
+
bottom: 0;
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 44px;
|
|
80
|
+
overflow: visible;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.am-list .am-list-item.am-radio-item .am-list-line .am-list-extra .am-radio-inner {
|
|
84
|
+
right: 15px;
|
|
85
|
+
top: 15px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.am-list .am-list-item.am-radio-item.am-radio-item-disabled .am-list-content {
|
|
89
|
+
color: #bbb;
|
|
90
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _Radio = _interopRequireDefault(require("./Radio"));
|
|
9
|
+
var _RadioItem = _interopRequireDefault(require("./RadioItem"));
|
|
10
|
+
require("./index.css");
|
|
11
|
+
_Radio.default.RadioItem = _RadioItem.default;
|
|
12
|
+
var _default = exports.default = _Radio.default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _Badge = _interopRequireDefault(require("../Badge"));
|
|
11
|
+
class Tab extends React.PureComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.renderIcon = () => {
|
|
15
|
+
const {
|
|
16
|
+
dot,
|
|
17
|
+
badge,
|
|
18
|
+
selected,
|
|
19
|
+
selectedIcon,
|
|
20
|
+
icon,
|
|
21
|
+
title,
|
|
22
|
+
prefixCls
|
|
23
|
+
} = this.props;
|
|
24
|
+
const iconRes = selected ? selectedIcon : icon;
|
|
25
|
+
const iconDom = /*#__PURE__*/React.isValidElement(iconRes) ? iconRes : /*#__PURE__*/React.createElement("img", {
|
|
26
|
+
className: "".concat(prefixCls, "-image"),
|
|
27
|
+
src: iconRes ? iconRes.uri : iconRes,
|
|
28
|
+
alt: title
|
|
29
|
+
});
|
|
30
|
+
if (badge) {
|
|
31
|
+
return /*#__PURE__*/React.createElement(_Badge.default, {
|
|
32
|
+
text: badge,
|
|
33
|
+
className: "".concat(prefixCls, "-badge tab-badge")
|
|
34
|
+
}, ' ', iconDom, ' ');
|
|
35
|
+
}
|
|
36
|
+
if (dot) {
|
|
37
|
+
return /*#__PURE__*/React.createElement(_Badge.default, {
|
|
38
|
+
dot: true,
|
|
39
|
+
className: "".concat(prefixCls, "-badge tab-dot")
|
|
40
|
+
}, iconDom);
|
|
41
|
+
}
|
|
42
|
+
return iconDom;
|
|
43
|
+
};
|
|
44
|
+
this.onClick = () => {
|
|
45
|
+
const onClick = this.props.onClick;
|
|
46
|
+
if (onClick) {
|
|
47
|
+
onClick();
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
const {
|
|
53
|
+
title,
|
|
54
|
+
prefixCls,
|
|
55
|
+
selected,
|
|
56
|
+
unselectedTintColor,
|
|
57
|
+
tintColor
|
|
58
|
+
} = this.props;
|
|
59
|
+
const iconColor = selected ? tintColor : unselectedTintColor;
|
|
60
|
+
return /*#__PURE__*/React.createElement("div", Object.assign({}, this.props.dataAttrs, {
|
|
61
|
+
onClick: this.onClick,
|
|
62
|
+
className: "".concat(prefixCls)
|
|
63
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: "".concat(prefixCls, "-icon"),
|
|
65
|
+
style: {
|
|
66
|
+
color: iconColor
|
|
67
|
+
}
|
|
68
|
+
}, this.renderIcon()), /*#__PURE__*/React.createElement("p", {
|
|
69
|
+
className: "".concat(prefixCls, "-title"),
|
|
70
|
+
style: {
|
|
71
|
+
color: selected ? tintColor : unselectedTintColor
|
|
72
|
+
}
|
|
73
|
+
}, title));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
var _default = exports.default = Tab;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
.am-tab-bar {
|
|
2
|
+
height: 100%;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.am-tab-bar-bar {
|
|
7
|
+
position: relative;
|
|
8
|
+
-webkit-box-sizing: border-box;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
height: 50px;
|
|
11
|
+
border-top: 1PX solid #ddd;
|
|
12
|
+
width: 100%;
|
|
13
|
+
display: -webkit-box;
|
|
14
|
+
display: -webkit-flex;
|
|
15
|
+
display: -ms-flexbox;
|
|
16
|
+
display: flex;
|
|
17
|
+
-webkit-transition-duration: .2s;
|
|
18
|
+
transition-duration: .2s;
|
|
19
|
+
-webkit-transition-property: height bottom;
|
|
20
|
+
transition-property: height bottom;
|
|
21
|
+
z-index: 100;
|
|
22
|
+
-webkit-justify-content: space-around;
|
|
23
|
+
-ms-flex-pack: distribute;
|
|
24
|
+
justify-content: space-around;
|
|
25
|
+
-webkit-box-align: center;
|
|
26
|
+
-webkit-align-items: center;
|
|
27
|
+
-ms-flex-align: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
bottom: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
|
|
33
|
+
html:not([data-scale]) .am-tab-bar-bar {
|
|
34
|
+
border-top: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
html:not([data-scale]) .am-tab-bar-bar::before {
|
|
38
|
+
content: '';
|
|
39
|
+
position: absolute;
|
|
40
|
+
background-color: #ddd;
|
|
41
|
+
display: block;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
top: 0;
|
|
44
|
+
right: auto;
|
|
45
|
+
bottom: auto;
|
|
46
|
+
left: 0;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 1PX;
|
|
49
|
+
-webkit-transform-origin: 50% 50%;
|
|
50
|
+
-ms-transform-origin: 50% 50%;
|
|
51
|
+
transform-origin: 50% 50%;
|
|
52
|
+
-webkit-transform: scaleY(0.5);
|
|
53
|
+
-ms-transform: scaleY(0.5);
|
|
54
|
+
transform: scaleY(0.5);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
59
|
+
html:not([data-scale]) .am-tab-bar-bar::before {
|
|
60
|
+
-webkit-transform: scaleY(0.33);
|
|
61
|
+
-ms-transform: scaleY(0.33);
|
|
62
|
+
transform: scaleY(0.33);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.am-tab-bar-bar-hidden-top {
|
|
67
|
+
bottom: 50px;
|
|
68
|
+
height: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.am-tab-bar-bar-hidden-bottom {
|
|
72
|
+
bottom: -50px;
|
|
73
|
+
height: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.am-tab-bar-bar .am-tab-bar-tab {
|
|
77
|
+
-webkit-box-flex: 1;
|
|
78
|
+
-webkit-flex: 1;
|
|
79
|
+
-ms-flex: 1;
|
|
80
|
+
flex: 1;
|
|
81
|
+
display: -webkit-box;
|
|
82
|
+
display: -webkit-flex;
|
|
83
|
+
display: -ms-flexbox;
|
|
84
|
+
display: flex;
|
|
85
|
+
-webkit-box-pack: center;
|
|
86
|
+
-webkit-justify-content: center;
|
|
87
|
+
-ms-flex-pack: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
-webkit-box-align: center;
|
|
90
|
+
-webkit-align-items: center;
|
|
91
|
+
-ms-flex-align: center;
|
|
92
|
+
align-items: center;
|
|
93
|
+
-webkit-box-orient: vertical;
|
|
94
|
+
-webkit-box-direction: normal;
|
|
95
|
+
-webkit-flex-direction: column;
|
|
96
|
+
-ms-flex-direction: column;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
text-align: center;
|
|
99
|
+
width: 100%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.am-tab-bar-bar .am-tab-bar-tab-image {
|
|
103
|
+
width: 22px;
|
|
104
|
+
height: 22px;
|
|
105
|
+
vertical-align: middle;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.am-tab-bar-bar .am-tab-bar-tab-title {
|
|
109
|
+
font-size: 10px;
|
|
110
|
+
margin: 3px 0 0 0;
|
|
111
|
+
line-height: 1;
|
|
112
|
+
text-align: center;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.am-tab-bar-bar .am-tab-bar-tab-icon {
|
|
116
|
+
display: -webkit-box;
|
|
117
|
+
display: -webkit-flex;
|
|
118
|
+
display: -ms-flexbox;
|
|
119
|
+
display: flex;
|
|
120
|
+
-webkit-box-pack: center;
|
|
121
|
+
-webkit-justify-content: center;
|
|
122
|
+
-ms-flex-pack: center;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.am-tab-bar-bar .am-tab-bar-tab-icon .tab-badge :last-child {
|
|
127
|
+
margin-top: 4px;
|
|
128
|
+
left: 22px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.am-tab-bar-bar .am-tab-bar-tab-icon .tab-dot :last-child {
|
|
132
|
+
margin-top: 4px;
|
|
133
|
+
left: 22px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.am-tab-bar-item {
|
|
137
|
+
height: 100%;
|
|
138
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Item = void 0;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _getDataAttr = _interopRequireDefault(require("../_util/getDataAttr"));
|
|
11
|
+
var _Tabs = _interopRequireDefault(require("../Tabs"));
|
|
12
|
+
var _Tab = _interopRequireDefault(require("./Tab"));
|
|
13
|
+
class Item extends React.Component {
|
|
14
|
+
render() {
|
|
15
|
+
const {
|
|
16
|
+
prefixCls,
|
|
17
|
+
style
|
|
18
|
+
} = this.props;
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: prefixCls,
|
|
21
|
+
style: style
|
|
22
|
+
}, this.props.children);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Item = Item;
|
|
26
|
+
Item.defaultProps = {
|
|
27
|
+
prefixCls: 'am-tab-bar-item',
|
|
28
|
+
title: ''
|
|
29
|
+
};
|
|
30
|
+
class AntTabBar extends React.Component {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this.getTabs = () => {
|
|
34
|
+
const tabs = [];
|
|
35
|
+
React.Children.forEach(this.props.children, c => {
|
|
36
|
+
if (c) {
|
|
37
|
+
tabs.push({
|
|
38
|
+
...c.props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
return tabs;
|
|
43
|
+
};
|
|
44
|
+
this.renderTabBar = () => {
|
|
45
|
+
const {
|
|
46
|
+
barTintColor,
|
|
47
|
+
prefixCls,
|
|
48
|
+
tintColor,
|
|
49
|
+
unselectedTintColor,
|
|
50
|
+
hidden,
|
|
51
|
+
tabBarPosition
|
|
52
|
+
} = this.props;
|
|
53
|
+
const tabsData = this.getTabs();
|
|
54
|
+
const content = Array.isArray(tabsData) ? tabsData.map((cProps, index) => {
|
|
55
|
+
return /*#__PURE__*/React.createElement(_Tab.default, {
|
|
56
|
+
key: index,
|
|
57
|
+
prefixCls: "".concat(this.props.prefixCls, "-tab"),
|
|
58
|
+
badge: cProps.badge,
|
|
59
|
+
dot: cProps.dot,
|
|
60
|
+
selected: cProps.selected,
|
|
61
|
+
icon: cProps.icon,
|
|
62
|
+
selectedIcon: cProps.selectedIcon,
|
|
63
|
+
title: cProps.title,
|
|
64
|
+
tintColor: tintColor,
|
|
65
|
+
unselectedTintColor: unselectedTintColor,
|
|
66
|
+
dataAttrs: (0, _getDataAttr.default)(cProps),
|
|
67
|
+
onClick: () => cProps.onPress && cProps.onPress()
|
|
68
|
+
});
|
|
69
|
+
}) : null;
|
|
70
|
+
let cls = "".concat(prefixCls, "-bar");
|
|
71
|
+
if (hidden) {
|
|
72
|
+
cls += " ".concat(prefixCls, "-bar-hidden-").concat(tabBarPosition);
|
|
73
|
+
}
|
|
74
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: cls,
|
|
76
|
+
style: {
|
|
77
|
+
backgroundColor: barTintColor
|
|
78
|
+
}
|
|
79
|
+
}, content);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
const {
|
|
84
|
+
prefixCls,
|
|
85
|
+
children,
|
|
86
|
+
animated,
|
|
87
|
+
swipeable,
|
|
88
|
+
noRenderContent,
|
|
89
|
+
prerenderingSiblingsNumber,
|
|
90
|
+
tabBarPosition
|
|
91
|
+
} = this.props;
|
|
92
|
+
const tabs = this.getTabs();
|
|
93
|
+
let activeIndex = 0;
|
|
94
|
+
if (Array.isArray(tabs)) {
|
|
95
|
+
tabs.forEach((tab, index) => {
|
|
96
|
+
if (tab.selected) {
|
|
97
|
+
activeIndex = index;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
className: prefixCls
|
|
103
|
+
}, /*#__PURE__*/React.createElement(_Tabs.default, {
|
|
104
|
+
tabs: tabs,
|
|
105
|
+
renderTabBar: this.renderTabBar,
|
|
106
|
+
tabBarPosition: tabBarPosition,
|
|
107
|
+
page: activeIndex < 0 ? undefined : activeIndex,
|
|
108
|
+
animated: animated,
|
|
109
|
+
swipeable: swipeable,
|
|
110
|
+
noRenderContent: noRenderContent,
|
|
111
|
+
prerenderingSiblingsNumber: prerenderingSiblingsNumber
|
|
112
|
+
}, children));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
AntTabBar.defaultProps = {
|
|
116
|
+
prefixCls: 'am-tab-bar',
|
|
117
|
+
barTintColor: 'white',
|
|
118
|
+
tintColor: '#108ee9',
|
|
119
|
+
hidden: false,
|
|
120
|
+
unselectedTintColor: '#888',
|
|
121
|
+
placeholder: '正在加载',
|
|
122
|
+
animated: false,
|
|
123
|
+
swipeable: false,
|
|
124
|
+
prerenderingSiblingsNumber: 1,
|
|
125
|
+
tabBarPosition: 'bottom'
|
|
126
|
+
};
|
|
127
|
+
AntTabBar.Item = Item;
|
|
128
|
+
var _default = exports.default = AntTabBar;
|