dtable-ui-component 6.0.24 → 6.0.26
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 +35 -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 +389 -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 +16 -0
- package/lib/Modal/modal.js +118 -0
- package/lib/Modal/operation.js +77 -0
- package/lib/Modal/prompt.js +207 -0
- package/lib/Modal/style/index.css +580 -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 +63 -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 +66 -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 +129 -0
- package/lib/Tabs/index.css +443 -0
- package/lib/Tabs/index.js +39 -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 +106 -1
- package/package.json +12 -3
|
@@ -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,129 @@
|
|
|
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
|
+
require("./index.css");
|
|
14
|
+
class Item extends React.Component {
|
|
15
|
+
render() {
|
|
16
|
+
const {
|
|
17
|
+
prefixCls,
|
|
18
|
+
style
|
|
19
|
+
} = this.props;
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
className: prefixCls,
|
|
22
|
+
style: style
|
|
23
|
+
}, this.props.children);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.Item = Item;
|
|
27
|
+
Item.defaultProps = {
|
|
28
|
+
prefixCls: 'am-tab-bar-item',
|
|
29
|
+
title: ''
|
|
30
|
+
};
|
|
31
|
+
class AntTabBar extends React.Component {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
this.getTabs = () => {
|
|
35
|
+
const tabs = [];
|
|
36
|
+
React.Children.forEach(this.props.children, c => {
|
|
37
|
+
if (c) {
|
|
38
|
+
tabs.push({
|
|
39
|
+
...c.props
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return tabs;
|
|
44
|
+
};
|
|
45
|
+
this.renderTabBar = () => {
|
|
46
|
+
const {
|
|
47
|
+
barTintColor,
|
|
48
|
+
prefixCls,
|
|
49
|
+
tintColor,
|
|
50
|
+
unselectedTintColor,
|
|
51
|
+
hidden,
|
|
52
|
+
tabBarPosition
|
|
53
|
+
} = this.props;
|
|
54
|
+
const tabsData = this.getTabs();
|
|
55
|
+
const content = Array.isArray(tabsData) ? tabsData.map((cProps, index) => {
|
|
56
|
+
return /*#__PURE__*/React.createElement(_Tab.default, {
|
|
57
|
+
key: index,
|
|
58
|
+
prefixCls: "".concat(this.props.prefixCls, "-tab"),
|
|
59
|
+
badge: cProps.badge,
|
|
60
|
+
dot: cProps.dot,
|
|
61
|
+
selected: cProps.selected,
|
|
62
|
+
icon: cProps.icon,
|
|
63
|
+
selectedIcon: cProps.selectedIcon,
|
|
64
|
+
title: cProps.title,
|
|
65
|
+
tintColor: tintColor,
|
|
66
|
+
unselectedTintColor: unselectedTintColor,
|
|
67
|
+
dataAttrs: (0, _getDataAttr.default)(cProps),
|
|
68
|
+
onClick: () => cProps.onPress && cProps.onPress()
|
|
69
|
+
});
|
|
70
|
+
}) : null;
|
|
71
|
+
let cls = "".concat(prefixCls, "-bar");
|
|
72
|
+
if (hidden) {
|
|
73
|
+
cls += " ".concat(prefixCls, "-bar-hidden-").concat(tabBarPosition);
|
|
74
|
+
}
|
|
75
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
className: cls,
|
|
77
|
+
style: {
|
|
78
|
+
backgroundColor: barTintColor
|
|
79
|
+
}
|
|
80
|
+
}, content);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
const {
|
|
85
|
+
prefixCls,
|
|
86
|
+
children,
|
|
87
|
+
animated,
|
|
88
|
+
swipeable,
|
|
89
|
+
noRenderContent,
|
|
90
|
+
prerenderingSiblingsNumber,
|
|
91
|
+
tabBarPosition
|
|
92
|
+
} = this.props;
|
|
93
|
+
const tabs = this.getTabs();
|
|
94
|
+
let activeIndex = 0;
|
|
95
|
+
if (Array.isArray(tabs)) {
|
|
96
|
+
tabs.forEach((tab, index) => {
|
|
97
|
+
if (tab.selected) {
|
|
98
|
+
activeIndex = index;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
className: prefixCls
|
|
104
|
+
}, /*#__PURE__*/React.createElement(_Tabs.default, {
|
|
105
|
+
tabs: tabs,
|
|
106
|
+
renderTabBar: this.renderTabBar,
|
|
107
|
+
tabBarPosition: tabBarPosition,
|
|
108
|
+
page: activeIndex < 0 ? undefined : activeIndex,
|
|
109
|
+
animated: animated,
|
|
110
|
+
swipeable: swipeable,
|
|
111
|
+
noRenderContent: noRenderContent,
|
|
112
|
+
prerenderingSiblingsNumber: prerenderingSiblingsNumber
|
|
113
|
+
}, children));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
AntTabBar.defaultProps = {
|
|
117
|
+
prefixCls: 'am-tab-bar',
|
|
118
|
+
barTintColor: 'white',
|
|
119
|
+
tintColor: '#108ee9',
|
|
120
|
+
hidden: false,
|
|
121
|
+
unselectedTintColor: '#888',
|
|
122
|
+
placeholder: '正在加载',
|
|
123
|
+
animated: false,
|
|
124
|
+
swipeable: false,
|
|
125
|
+
prerenderingSiblingsNumber: 1,
|
|
126
|
+
tabBarPosition: 'bottom'
|
|
127
|
+
};
|
|
128
|
+
AntTabBar.Item = Item;
|
|
129
|
+
var _default = exports.default = AntTabBar;
|
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
.am-tabs {
|
|
2
|
+
-webkit-box-sizing: border-box;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: -webkit-box;
|
|
5
|
+
display: -webkit-flex;
|
|
6
|
+
display: -ms-flexbox;
|
|
7
|
+
display: flex;
|
|
8
|
+
-webkit-box-flex: 1;
|
|
9
|
+
-webkit-flex: 1;
|
|
10
|
+
-ms-flex: 1;
|
|
11
|
+
flex: 1;
|
|
12
|
+
position: relative;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
height: 100%;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.am-tabs * {
|
|
19
|
+
-webkit-box-sizing: border-box;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.am-tabs-content-wrap {
|
|
24
|
+
display: -webkit-box;
|
|
25
|
+
display: -webkit-flex;
|
|
26
|
+
display: -ms-flexbox;
|
|
27
|
+
display: flex;
|
|
28
|
+
-webkit-box-flex: 1;
|
|
29
|
+
-webkit-flex: 1;
|
|
30
|
+
-ms-flex: 1;
|
|
31
|
+
flex: 1;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
min-height: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.am-tabs-content-wrap-animated {
|
|
38
|
+
-webkit-transition: left 0.3s cubic-bezier(0.35, 0, 0.25, 1), top 0.3s cubic-bezier(0.35, 0, 0.25, 1), -webkit-transform 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
39
|
+
transition: left 0.3s cubic-bezier(0.35, 0, 0.25, 1), top 0.3s cubic-bezier(0.35, 0, 0.25, 1), -webkit-transform 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
40
|
+
transition: transform 0.3s cubic-bezier(0.35, 0, 0.25, 1), left 0.3s cubic-bezier(0.35, 0, 0.25, 1), top 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
41
|
+
transition: transform 0.3s cubic-bezier(0.35, 0, 0.25, 1), left 0.3s cubic-bezier(0.35, 0, 0.25, 1), top 0.3s cubic-bezier(0.35, 0, 0.25, 1), -webkit-transform 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
42
|
+
will-change: transform, left, top;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.am-tabs-pane-wrap {
|
|
46
|
+
width: 100%;
|
|
47
|
+
-webkit-flex-shrink: 0;
|
|
48
|
+
-ms-flex-negative: 0;
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
overflow-y: auto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.am-tabs-tab-bar-wrap {
|
|
54
|
+
-webkit-flex-shrink: 0;
|
|
55
|
+
-ms-flex-negative: 0;
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.am-tabs-horizontal .am-tabs-pane-wrap-active {
|
|
60
|
+
height: auto;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.am-tabs-horizontal .am-tabs-pane-wrap-inactive {
|
|
64
|
+
height: 0;
|
|
65
|
+
overflow: visible;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.am-tabs-vertical .am-tabs-content-wrap {
|
|
69
|
+
-webkit-box-orient: vertical;
|
|
70
|
+
-webkit-box-direction: normal;
|
|
71
|
+
-webkit-flex-direction: column;
|
|
72
|
+
-ms-flex-direction: column;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.am-tabs-vertical .am-tabs-tab-bar-wrap {
|
|
77
|
+
height: 100%;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.am-tabs-vertical .am-tabs-pane-wrap {
|
|
81
|
+
height: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.am-tabs-vertical .am-tabs-pane-wrap-active {
|
|
85
|
+
overflow: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.am-tabs-vertical .am-tabs-pane-wrap-inactive {
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.am-tabs-top,
|
|
93
|
+
.am-tabs-bottom {
|
|
94
|
+
-webkit-box-orient: vertical;
|
|
95
|
+
-webkit-box-direction: normal;
|
|
96
|
+
-webkit-flex-direction: column;
|
|
97
|
+
-ms-flex-direction: column;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.am-tabs-left,
|
|
102
|
+
.am-tabs-right {
|
|
103
|
+
-webkit-box-orient: horizontal;
|
|
104
|
+
-webkit-box-direction: normal;
|
|
105
|
+
-webkit-flex-direction: row;
|
|
106
|
+
-ms-flex-direction: row;
|
|
107
|
+
flex-direction: row;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.am-tabs-default-bar {
|
|
111
|
+
position: relative;
|
|
112
|
+
display: -webkit-box;
|
|
113
|
+
display: -webkit-flex;
|
|
114
|
+
display: -ms-flexbox;
|
|
115
|
+
display: flex;
|
|
116
|
+
-webkit-flex-shrink: 0;
|
|
117
|
+
-ms-flex-negative: 0;
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
-webkit-box-orient: horizontal;
|
|
120
|
+
-webkit-box-direction: normal;
|
|
121
|
+
-webkit-flex-direction: row;
|
|
122
|
+
-ms-flex-direction: row;
|
|
123
|
+
flex-direction: row;
|
|
124
|
+
width: 100%;
|
|
125
|
+
height: 100%;
|
|
126
|
+
overflow: visible;
|
|
127
|
+
z-index: 1;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.am-tabs-default-bar-tab {
|
|
131
|
+
position: relative;
|
|
132
|
+
display: -webkit-box;
|
|
133
|
+
display: -webkit-flex;
|
|
134
|
+
display: -ms-flexbox;
|
|
135
|
+
display: flex;
|
|
136
|
+
-webkit-flex-shrink: 0;
|
|
137
|
+
-ms-flex-negative: 0;
|
|
138
|
+
flex-shrink: 0;
|
|
139
|
+
-webkit-box-pack: center;
|
|
140
|
+
-webkit-justify-content: center;
|
|
141
|
+
-ms-flex-pack: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
-webkit-box-align: center;
|
|
144
|
+
-webkit-align-items: center;
|
|
145
|
+
-ms-flex-align: center;
|
|
146
|
+
align-items: center;
|
|
147
|
+
font-size: 15px;
|
|
148
|
+
height: 43.5px;
|
|
149
|
+
line-height: 43.5px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.am-tabs-default-bar-tab .am-badge .am-badge-text {
|
|
153
|
+
top: -13px;
|
|
154
|
+
-webkit-transform: translateX(-5px);
|
|
155
|
+
-ms-transform: translateX(-5px);
|
|
156
|
+
transform: translateX(-5px);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.am-tabs-default-bar-tab .am-badge .am-badge-dot {
|
|
160
|
+
top: -6px;
|
|
161
|
+
-webkit-transform: translateX(0);
|
|
162
|
+
-ms-transform: translateX(0);
|
|
163
|
+
transform: translateX(0);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.am-tabs-default-bar-tab-active {
|
|
167
|
+
color: #108ee9;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.am-tabs-default-bar-underline {
|
|
171
|
+
position: absolute;
|
|
172
|
+
border: 1px #108ee9 solid;
|
|
173
|
+
-webkit-transform: translate3d(0, 0, 0);
|
|
174
|
+
transform: translate3d(0, 0, 0);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.am-tabs-default-bar-animated .am-tabs-default-bar-content {
|
|
178
|
+
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
179
|
+
transition: -webkit-transform 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
180
|
+
transition: transform 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
181
|
+
transition: transform 0.3s cubic-bezier(0.35, 0, 0.25, 1), -webkit-transform 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
182
|
+
will-change: transform;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.am-tabs-default-bar-animated .am-tabs-default-bar-underline {
|
|
186
|
+
-webkit-transition: top 0.3s cubic-bezier(0.35, 0, 0.25, 1), left 0.3s cubic-bezier(0.35, 0, 0.25, 1), color 0.3s cubic-bezier(0.35, 0, 0.25, 1), width 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
187
|
+
transition: top 0.3s cubic-bezier(0.35, 0, 0.25, 1), left 0.3s cubic-bezier(0.35, 0, 0.25, 1), color 0.3s cubic-bezier(0.35, 0, 0.25, 1), width 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
188
|
+
will-change: top, left, width, color;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.am-tabs-default-bar-top,
|
|
192
|
+
.am-tabs-default-bar-bottom {
|
|
193
|
+
-webkit-box-orient: horizontal;
|
|
194
|
+
-webkit-box-direction: normal;
|
|
195
|
+
-webkit-flex-direction: row;
|
|
196
|
+
-ms-flex-direction: row;
|
|
197
|
+
flex-direction: row;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.am-tabs-default-bar-top .am-tabs-default-bar-content,
|
|
201
|
+
.am-tabs-default-bar-bottom .am-tabs-default-bar-content {
|
|
202
|
+
display: -webkit-box;
|
|
203
|
+
display: -webkit-flex;
|
|
204
|
+
display: -ms-flexbox;
|
|
205
|
+
display: flex;
|
|
206
|
+
width: 100%;
|
|
207
|
+
-webkit-box-orient: horizontal;
|
|
208
|
+
-webkit-box-direction: normal;
|
|
209
|
+
-webkit-flex-direction: row;
|
|
210
|
+
-ms-flex-direction: row;
|
|
211
|
+
flex-direction: row;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.am-tabs-default-bar-top .am-tabs-default-bar-prevpage,
|
|
215
|
+
.am-tabs-default-bar-bottom .am-tabs-default-bar-prevpage {
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
position: absolute;
|
|
218
|
+
top: 0;
|
|
219
|
+
display: block;
|
|
220
|
+
width: 59px;
|
|
221
|
+
height: 100%;
|
|
222
|
+
content: ' ';
|
|
223
|
+
z-index: 999;
|
|
224
|
+
left: 0;
|
|
225
|
+
background: -webkit-gradient(linear, left top, right top, from(#ffffff), to(rgba(255, 255, 255, 0)));
|
|
226
|
+
background: -webkit-linear-gradient(left, #ffffff, rgba(255, 255, 255, 0));
|
|
227
|
+
background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.am-tabs-default-bar-top .am-tabs-default-bar-nextpage,
|
|
231
|
+
.am-tabs-default-bar-bottom .am-tabs-default-bar-nextpage {
|
|
232
|
+
pointer-events: none;
|
|
233
|
+
position: absolute;
|
|
234
|
+
top: 0;
|
|
235
|
+
display: block;
|
|
236
|
+
width: 59px;
|
|
237
|
+
height: 100%;
|
|
238
|
+
content: ' ';
|
|
239
|
+
z-index: 999;
|
|
240
|
+
right: 0;
|
|
241
|
+
background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(#ffffff));
|
|
242
|
+
background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0), #ffffff);
|
|
243
|
+
background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.am-tabs-default-bar-top .am-tabs-default-bar-tab,
|
|
247
|
+
.am-tabs-default-bar-bottom .am-tabs-default-bar-tab {
|
|
248
|
+
padding: 8px 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.am-tabs-default-bar-top .am-tabs-default-bar-underline,
|
|
252
|
+
.am-tabs-default-bar-bottom .am-tabs-default-bar-underline {
|
|
253
|
+
bottom: 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.am-tabs-default-bar-top .am-tabs-default-bar-tab {
|
|
257
|
+
border-bottom: 1PX solid #ddd;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
|
|
261
|
+
html:not([data-scale]) .am-tabs-default-bar-top .am-tabs-default-bar-tab {
|
|
262
|
+
border-bottom: none;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
html:not([data-scale]) .am-tabs-default-bar-top .am-tabs-default-bar-tab::after {
|
|
266
|
+
content: '';
|
|
267
|
+
position: absolute;
|
|
268
|
+
background-color: #ddd;
|
|
269
|
+
display: block;
|
|
270
|
+
z-index: 1;
|
|
271
|
+
top: auto;
|
|
272
|
+
right: auto;
|
|
273
|
+
bottom: 0;
|
|
274
|
+
left: 0;
|
|
275
|
+
width: 100%;
|
|
276
|
+
height: 1PX;
|
|
277
|
+
-webkit-transform-origin: 50% 100%;
|
|
278
|
+
-ms-transform-origin: 50% 100%;
|
|
279
|
+
transform-origin: 50% 100%;
|
|
280
|
+
-webkit-transform: scaleY(0.5);
|
|
281
|
+
-ms-transform: scaleY(0.5);
|
|
282
|
+
transform: scaleY(0.5);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
287
|
+
html:not([data-scale]) .am-tabs-default-bar-top .am-tabs-default-bar-tab::after {
|
|
288
|
+
-webkit-transform: scaleY(0.33);
|
|
289
|
+
-ms-transform: scaleY(0.33);
|
|
290
|
+
transform: scaleY(0.33);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.am-tabs-default-bar-bottom .am-tabs-default-bar-tab {
|
|
295
|
+
border-top: 1PX solid #ddd;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
|
|
299
|
+
html:not([data-scale]) .am-tabs-default-bar-bottom .am-tabs-default-bar-tab {
|
|
300
|
+
border-top: none;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
html:not([data-scale]) .am-tabs-default-bar-bottom .am-tabs-default-bar-tab::before {
|
|
304
|
+
content: '';
|
|
305
|
+
position: absolute;
|
|
306
|
+
background-color: #ddd;
|
|
307
|
+
display: block;
|
|
308
|
+
z-index: 1;
|
|
309
|
+
top: 0;
|
|
310
|
+
right: auto;
|
|
311
|
+
bottom: auto;
|
|
312
|
+
left: 0;
|
|
313
|
+
width: 100%;
|
|
314
|
+
height: 1PX;
|
|
315
|
+
-webkit-transform-origin: 50% 50%;
|
|
316
|
+
-ms-transform-origin: 50% 50%;
|
|
317
|
+
transform-origin: 50% 50%;
|
|
318
|
+
-webkit-transform: scaleY(0.5);
|
|
319
|
+
-ms-transform: scaleY(0.5);
|
|
320
|
+
transform: scaleY(0.5);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
325
|
+
html:not([data-scale]) .am-tabs-default-bar-bottom .am-tabs-default-bar-tab::before {
|
|
326
|
+
-webkit-transform: scaleY(0.33);
|
|
327
|
+
-ms-transform: scaleY(0.33);
|
|
328
|
+
transform: scaleY(0.33);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.am-tabs-default-bar-left,
|
|
333
|
+
.am-tabs-default-bar-right {
|
|
334
|
+
-webkit-box-orient: vertical;
|
|
335
|
+
-webkit-box-direction: normal;
|
|
336
|
+
-webkit-flex-direction: column;
|
|
337
|
+
-ms-flex-direction: column;
|
|
338
|
+
flex-direction: column;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.am-tabs-default-bar-left .am-tabs-default-bar-content,
|
|
342
|
+
.am-tabs-default-bar-right .am-tabs-default-bar-content {
|
|
343
|
+
display: -webkit-box;
|
|
344
|
+
display: -webkit-flex;
|
|
345
|
+
display: -ms-flexbox;
|
|
346
|
+
display: flex;
|
|
347
|
+
height: 100%;
|
|
348
|
+
-webkit-box-orient: vertical;
|
|
349
|
+
-webkit-box-direction: normal;
|
|
350
|
+
-webkit-flex-direction: column;
|
|
351
|
+
-ms-flex-direction: column;
|
|
352
|
+
flex-direction: column;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.am-tabs-default-bar-left .am-tabs-default-bar-tab,
|
|
356
|
+
.am-tabs-default-bar-right .am-tabs-default-bar-tab {
|
|
357
|
+
padding: 0 8px;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.am-tabs-default-bar-left .am-tabs-default-bar-underline {
|
|
361
|
+
right: 0;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.am-tabs-default-bar-left .am-tabs-default-bar-tab {
|
|
365
|
+
border-right: 1PX solid #ddd;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
|
|
369
|
+
html:not([data-scale]) .am-tabs-default-bar-left .am-tabs-default-bar-tab {
|
|
370
|
+
border-right: none;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
html:not([data-scale]) .am-tabs-default-bar-left .am-tabs-default-bar-tab::after {
|
|
374
|
+
content: '';
|
|
375
|
+
position: absolute;
|
|
376
|
+
background-color: #ddd;
|
|
377
|
+
display: block;
|
|
378
|
+
z-index: 1;
|
|
379
|
+
top: 0;
|
|
380
|
+
right: 0;
|
|
381
|
+
bottom: auto;
|
|
382
|
+
left: auto;
|
|
383
|
+
width: 1PX;
|
|
384
|
+
height: 100%;
|
|
385
|
+
background: #ddd;
|
|
386
|
+
-webkit-transform-origin: 100% 50%;
|
|
387
|
+
-ms-transform-origin: 100% 50%;
|
|
388
|
+
transform-origin: 100% 50%;
|
|
389
|
+
-webkit-transform: scaleX(0.5);
|
|
390
|
+
-ms-transform: scaleX(0.5);
|
|
391
|
+
transform: scaleX(0.5);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
396
|
+
html:not([data-scale]) .am-tabs-default-bar-left .am-tabs-default-bar-tab::after {
|
|
397
|
+
-webkit-transform: scaleX(0.33);
|
|
398
|
+
-ms-transform: scaleX(0.33);
|
|
399
|
+
transform: scaleX(0.33);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.am-tabs-default-bar-right .am-tabs-default-bar-underline {
|
|
404
|
+
left: 0;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.am-tabs-default-bar-right .am-tabs-default-bar-tab {
|
|
408
|
+
border-left: 1PX solid #ddd;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
|
|
412
|
+
html:not([data-scale]) .am-tabs-default-bar-right .am-tabs-default-bar-tab {
|
|
413
|
+
border-left: none;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
html:not([data-scale]) .am-tabs-default-bar-right .am-tabs-default-bar-tab::before {
|
|
417
|
+
content: '';
|
|
418
|
+
position: absolute;
|
|
419
|
+
background-color: #ddd;
|
|
420
|
+
display: block;
|
|
421
|
+
z-index: 1;
|
|
422
|
+
top: 0;
|
|
423
|
+
right: auto;
|
|
424
|
+
bottom: auto;
|
|
425
|
+
left: 0;
|
|
426
|
+
width: 1PX;
|
|
427
|
+
height: 100%;
|
|
428
|
+
-webkit-transform-origin: 100% 50%;
|
|
429
|
+
-ms-transform-origin: 100% 50%;
|
|
430
|
+
transform-origin: 100% 50%;
|
|
431
|
+
-webkit-transform: scaleX(0.5);
|
|
432
|
+
-ms-transform: scaleX(0.5);
|
|
433
|
+
transform: scaleX(0.5);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 2dppx) and (min-resolution: 3dppx) {
|
|
438
|
+
html:not([data-scale]) .am-tabs-default-bar-right .am-tabs-default-bar-tab::before {
|
|
439
|
+
-webkit-transform: scaleX(0.33);
|
|
440
|
+
-ms-transform: scaleX(0.33);
|
|
441
|
+
transform: scaleX(0.33);
|
|
442
|
+
}
|
|
443
|
+
}
|