@oceanbase/ui 1.0.0-alpha.7 → 1.0.0-alpha.9
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/dist/ui.min.js +1 -1
- package/es/BasicLayout/style/index.js +1 -1
- package/es/DateRanger/style/index.js +10 -10
- package/es/Dialog/style/index.js +1 -1
- package/es/PageContainer/index.js +26 -10
- package/es/PageContainer/style/index.js +10 -2
- package/es/Password/index.js +1 -1
- package/es/Ranger/style/index.js +1 -1
- package/es/_util/genComponentStyleHook.d.ts +2 -1
- package/lib/BasicLayout/style/index.js +1 -1
- package/lib/DateRanger/style/index.js +10 -10
- package/lib/Dialog/style/index.js +1 -1
- package/lib/PageContainer/index.js +20 -8
- package/lib/PageContainer/style/index.js +11 -1
- package/lib/Password/index.js +1 -1
- package/lib/Ranger/style/index.js +1 -1
- package/lib/_util/genComponentStyleHook.d.ts +2 -1
- package/package.json +3 -3
|
@@ -46,7 +46,7 @@ export var genBasicLayoutStyle = function genBasicLayoutStyle(token) {
|
|
|
46
46
|
'100%': {
|
|
47
47
|
backgroundRepeat: 'no-repeat',
|
|
48
48
|
backgroundSize: '100% 100%',
|
|
49
|
-
borderRadius:
|
|
49
|
+
borderRadius: token.borderRadiusLG
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}, "".concat(componentCls, "-banner-wrapper"), {
|
|
@@ -9,7 +9,6 @@ export var genDateRangerStyle = function genDateRangerStyle(token) {
|
|
|
9
9
|
colorBgContainer = token.colorBgContainer,
|
|
10
10
|
colorBorder = token.colorBorder,
|
|
11
11
|
borderRadius = token.borderRadius,
|
|
12
|
-
colorPrimaryBorderHover = token.colorPrimaryBorderHover,
|
|
13
12
|
colorTextSecondary = token.colorTextSecondary,
|
|
14
13
|
colorFillSecondary = token.colorFillSecondary,
|
|
15
14
|
colorFill = token.colorFill;
|
|
@@ -37,12 +36,12 @@ export var genDateRangerStyle = function genDateRangerStyle(token) {
|
|
|
37
36
|
}), "".concat(antCls, "-picker-input > input"), {
|
|
38
37
|
cursor: 'pointer'
|
|
39
38
|
})), '&:hover', {
|
|
40
|
-
borderColor:
|
|
39
|
+
borderColor: token.colorPrimaryHover
|
|
41
40
|
})), "".concat(componentCls, "-wrapper-has-jumper"), {
|
|
42
41
|
borderTopRightRadius: 0,
|
|
43
42
|
borderBottomRightRadius: 0
|
|
44
43
|
}), "".concat(componentCls, "-play"), {
|
|
45
|
-
padding: '
|
|
44
|
+
padding: '3px 11px 3px'
|
|
46
45
|
}), "".concat(componentCls, "-picker-input"), {
|
|
47
46
|
maxWidth: 125
|
|
48
47
|
}), "".concat(componentCls, "-date-picker"), _defineProperty(_defineProperty({}, "".concat(antCls, "-select-selector"), {
|
|
@@ -59,7 +58,7 @@ export var genDateRangerStyle = function genDateRangerStyle(token) {
|
|
|
59
58
|
gap: 4,
|
|
60
59
|
backgroundColor: colorBgContainer,
|
|
61
60
|
backgroundClip: 'padding-box',
|
|
62
|
-
borderRadius:
|
|
61
|
+
borderRadius: token.borderRadiusMD,
|
|
63
62
|
outline: 'none',
|
|
64
63
|
boxShadow: '0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05)'
|
|
65
64
|
}, "".concat(antCls, "-dropdown-menu"), {
|
|
@@ -85,24 +84,25 @@ export var genDateRangerStyle = function genDateRangerStyle(token) {
|
|
|
85
84
|
color: colorTextSecondary,
|
|
86
85
|
transition: 'all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)',
|
|
87
86
|
'&:hover': {
|
|
88
|
-
borderColor:
|
|
87
|
+
borderColor: token.colorPrimaryHover,
|
|
89
88
|
'&::before': {
|
|
90
|
-
backgroundColor:
|
|
89
|
+
backgroundColor: token.colorPrimaryHover
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
}))), "".concat(componentCls, "-label"), {
|
|
93
|
+
fontSize: token.fontSizeSM,
|
|
94
94
|
backgroundColor: colorFillSecondary,
|
|
95
95
|
color: colorTextSecondary,
|
|
96
96
|
display: 'inline-block',
|
|
97
|
-
width:
|
|
97
|
+
width: 52,
|
|
98
98
|
padding: '4px 0',
|
|
99
|
-
borderRadius:
|
|
99
|
+
borderRadius: token.borderRadiusSM,
|
|
100
100
|
lineHeight: 1,
|
|
101
101
|
textAlign: 'center'
|
|
102
102
|
}), "".concat(componentCls, "-back-radio-focused"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-wrapper"), {
|
|
103
|
-
borderRightColor:
|
|
103
|
+
borderRightColor: token.colorPrimaryHover
|
|
104
104
|
}), "".concat(componentCls, "-playback-control"), _defineProperty({}, "".concat(antCls, "-radio-button-wrapper:first-child"), _defineProperty({}, "+ ".concat(antCls, "-radio-button-wrapper::before"), {
|
|
105
|
-
backgroundColor:
|
|
105
|
+
backgroundColor: token.colorPrimaryHover
|
|
106
106
|
})))), "".concat(componentCls, "-history-menu-item"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-menu-text-btn-wrapper"), {
|
|
107
107
|
justifyContent: 'space-between',
|
|
108
108
|
height: 0,
|
package/es/Dialog/style/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export var genDialogStyle = function genDialogStyle(token) {
|
|
|
21
21
|
boxSizing: 'content-box',
|
|
22
22
|
color: '#eee',
|
|
23
23
|
backgroundColor: 'rgba(65, 74, 77, 1)',
|
|
24
|
-
borderRadius:
|
|
24
|
+
borderRadius: token.borderRadiusLG,
|
|
25
25
|
boxShadow: boxShadowSecondary,
|
|
26
26
|
transition: 'visibility 0.2s ease-in-out, opacity 0.2s linear'
|
|
27
27
|
}, "".concat(componentCls, "-header"), _defineProperty(_defineProperty(_defineProperty({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["prefixCls", "className", "title", "header", "content", "extraContent", "tabList", "tabBarExtraContent", "footerToolBarProps", "locale", "loading"];
|
|
2
|
+
var _excluded = ["prefixCls", "className", "title", "subTitle", "onBack", "backIcon", "breadcrumb", "extra", "header", "content", "extraContent", "tabList", "tabBarExtraContent", "footerToolBarProps", "locale", "loading"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -54,7 +54,12 @@ var DocumentIcon = function DocumentIcon(_ref) {
|
|
|
54
54
|
var PageContainer = function PageContainer(_ref2) {
|
|
55
55
|
var customizePrefixCls = _ref2.prefixCls,
|
|
56
56
|
className = _ref2.className,
|
|
57
|
-
|
|
57
|
+
titleProp = _ref2.title,
|
|
58
|
+
subTitleProp = _ref2.subTitle,
|
|
59
|
+
onBackProp = _ref2.onBack,
|
|
60
|
+
backIconProp = _ref2.backIcon,
|
|
61
|
+
breadcrumbProp = _ref2.breadcrumb,
|
|
62
|
+
extraProp = _ref2.extra,
|
|
58
63
|
header = _ref2.header,
|
|
59
64
|
content = _ref2.content,
|
|
60
65
|
extraContent = _ref2.extraContent,
|
|
@@ -74,16 +79,24 @@ var PageContainer = function PageContainer(_ref2) {
|
|
|
74
79
|
token = _theme$useToken.token;
|
|
75
80
|
var _ref3 = header || {},
|
|
76
81
|
reload = _ref3.reload,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
_ref3$title = _ref3.title,
|
|
83
|
+
title = _ref3$title === void 0 ? titleProp : _ref3$title,
|
|
84
|
+
_ref3$subTitle = _ref3.subTitle,
|
|
85
|
+
subTitle = _ref3$subTitle === void 0 ? subTitleProp : _ref3$subTitle,
|
|
86
|
+
_ref3$onBack = _ref3.onBack,
|
|
87
|
+
onBack = _ref3$onBack === void 0 ? onBackProp : _ref3$onBack,
|
|
80
88
|
_ref3$backIcon = _ref3.backIcon,
|
|
81
|
-
backIcon = _ref3$backIcon === void 0 ? /*#__PURE__*/_jsx(Button, {
|
|
89
|
+
backIcon = _ref3$backIcon === void 0 ? backIconProp || /*#__PURE__*/_jsx(Button, {
|
|
82
90
|
style: {
|
|
83
91
|
fontSize: token.fontSizeLG
|
|
84
92
|
},
|
|
85
93
|
icon: /*#__PURE__*/_jsx(ArrowLeftOutlined, {})
|
|
86
|
-
}) : _ref3$backIcon
|
|
94
|
+
}) : _ref3$backIcon,
|
|
95
|
+
document = _ref3.document,
|
|
96
|
+
_ref3$breadcrumb = _ref3.breadcrumb,
|
|
97
|
+
breadcrumb = _ref3$breadcrumb === void 0 ? breadcrumbProp : _ref3$breadcrumb,
|
|
98
|
+
_ref3$extra = _ref3.extra,
|
|
99
|
+
extra = _ref3$extra === void 0 ? extraProp : _ref3$extra;
|
|
87
100
|
var reloadProps = isObject(reload) && ! /*#__PURE__*/React.isValidElement(reload) ? reload : {};
|
|
88
101
|
var reloadCls = classNames("".concat(rootPrefixCls, "-page-header-heading-reload"), reloadProps.className);
|
|
89
102
|
var documentLink = typeof document === 'string' ? document : undefined;
|
|
@@ -113,8 +126,11 @@ var PageContainer = function PageContainer(_ref2) {
|
|
|
113
126
|
}) : document]
|
|
114
127
|
})]
|
|
115
128
|
});
|
|
116
|
-
var newHeader = header && _objectSpread(_objectSpread({}, header), {}, {
|
|
129
|
+
var newHeader = (header || title || newSubTitle || onBack || breadcrumb || extra) && _objectSpread(_objectSpread({}, header), {}, {
|
|
130
|
+
title: title,
|
|
117
131
|
subTitle: newSubTitle,
|
|
132
|
+
onBack: onBack,
|
|
133
|
+
backIcon: backIcon,
|
|
118
134
|
breadcrumb: breadcrumb && _objectSpread({
|
|
119
135
|
itemRender: function itemRender(route, params, routes, paths) {
|
|
120
136
|
return /*#__PURE__*/_jsx(ItemRender, {
|
|
@@ -125,9 +141,9 @@ var PageContainer = function PageContainer(_ref2) {
|
|
|
125
141
|
});
|
|
126
142
|
}
|
|
127
143
|
}, breadcrumb),
|
|
128
|
-
|
|
144
|
+
extra: extra
|
|
129
145
|
});
|
|
130
|
-
var noHasHeader =
|
|
146
|
+
var noHasHeader = ['title', 'subTitle', 'onBack', 'breadcrumb', 'extra', 'tags', 'avatar'].every(function (item) {
|
|
131
147
|
return !(newHeader !== null && newHeader !== void 0 && newHeader[item]);
|
|
132
148
|
}) && !content && !extraContent && !tabList && !tabBarExtraContent;
|
|
133
149
|
var pageContainerCls = classNames(_defineProperty({}, "".concat(prefixCls, "-no-page-header"), noHasHeader), className);
|
|
@@ -56,15 +56,23 @@ export var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
56
56
|
marginBlock: 0
|
|
57
57
|
}), "".concat(antCls, "-page-header-heading-extra"), {
|
|
58
58
|
marginBlock: 0
|
|
59
|
-
}), "".concat(antCls, "-page-header-footer"), {
|
|
59
|
+
}), "".concat(antCls, "-page-header-footer"), _defineProperty({
|
|
60
60
|
marginBlockStart: 0
|
|
61
|
-
}
|
|
61
|
+
}, "".concat(antCls, "-tabs-top > ").concat(antCls, "-tabs-nav::before"), {
|
|
62
|
+
borderBottom: "1px solid ".concat(token.colorBorderSecondary),
|
|
63
|
+
left: -token.paddingXL,
|
|
64
|
+
right: -token.paddingXL
|
|
65
|
+
}))), "".concat(componentCls, "-children-container"), _defineProperty(_defineProperty({
|
|
62
66
|
paddingInline: token.paddingXL,
|
|
63
67
|
paddingBlockStart: 0,
|
|
64
68
|
paddingBlockEnd: padding
|
|
65
69
|
}, "& > ".concat(antCls, "-tabs-top:not(").concat(antCls, "-tabs-card):first-child"), {
|
|
66
70
|
// equal to page header paddingBlockEnd
|
|
67
71
|
marginTop: -padding
|
|
72
|
+
}), "& > ".concat(antCls, "-tabs-top > ").concat(antCls, "-tabs-nav::before"), {
|
|
73
|
+
borderBottom: "1px solid ".concat(token.colorBorderSecondary),
|
|
74
|
+
left: -token.paddingXL,
|
|
75
|
+
right: -token.paddingXL
|
|
68
76
|
}))), "".concat(componentCls, "-no-page-header"), _defineProperty({}, "".concat(componentCls, "-children-container"), {
|
|
69
77
|
paddingBlockStart: paddingLG
|
|
70
78
|
})), "".concat(componentCls, "-with-footer "), {
|
package/es/Password/index.js
CHANGED
package/es/Ranger/style/index.js
CHANGED
|
@@ -24,7 +24,7 @@ export var genRangerStyle = function genRangerStyle(token) {
|
|
|
24
24
|
}
|
|
25
25
|
}), "".concat(antCls, "-select-arrow"), {
|
|
26
26
|
zIndex: 1
|
|
27
|
-
}))), "".concat(componentCls, "-show-range"), _defineProperty({}, "".concat(componentCls, "-quick-picker
|
|
27
|
+
}))), "".concat(componentCls, "-show-range"), _defineProperty({}, "".concat(componentCls, "-quick-picker").concat(componentCls, "-quick-picker-select"), _defineProperty(_defineProperty({
|
|
28
28
|
marginRight: -1
|
|
29
29
|
}, "".concat(antCls, "-select-selector"), {
|
|
30
30
|
borderTopRightRadius: '0 !important',
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
3
|
+
import type { AliasToken } from '@oceanbase/design/es/theme/interface';
|
|
3
4
|
import type { ProAliasToken } from '@ant-design/pro-components';
|
|
4
|
-
export interface OBToken extends ProAliasToken {
|
|
5
|
+
export interface OBToken extends ProAliasToken, AliasToken {
|
|
5
6
|
/** Wrap component class with `.` prefix */
|
|
6
7
|
componentCls: string;
|
|
7
8
|
/** Origin prefix which do not have `.` prefix */
|
|
@@ -31,7 +31,6 @@ var genDateRangerStyle = (token) => {
|
|
|
31
31
|
colorBgContainer,
|
|
32
32
|
colorBorder,
|
|
33
33
|
borderRadius,
|
|
34
|
-
colorPrimaryBorderHover,
|
|
35
34
|
colorTextSecondary,
|
|
36
35
|
colorFillSecondary,
|
|
37
36
|
colorFill
|
|
@@ -64,7 +63,7 @@ var genDateRangerStyle = (token) => {
|
|
|
64
63
|
}
|
|
65
64
|
},
|
|
66
65
|
"&:hover": {
|
|
67
|
-
borderColor:
|
|
66
|
+
borderColor: token.colorPrimaryHover
|
|
68
67
|
}
|
|
69
68
|
},
|
|
70
69
|
[`${componentCls}-wrapper-has-jumper`]: {
|
|
@@ -72,7 +71,7 @@ var genDateRangerStyle = (token) => {
|
|
|
72
71
|
borderBottomRightRadius: 0
|
|
73
72
|
},
|
|
74
73
|
[`${componentCls}-play`]: {
|
|
75
|
-
padding: "
|
|
74
|
+
padding: "3px 11px 3px"
|
|
76
75
|
},
|
|
77
76
|
[`${componentCls}-picker-input`]: {
|
|
78
77
|
maxWidth: 125
|
|
@@ -96,7 +95,7 @@ var genDateRangerStyle = (token) => {
|
|
|
96
95
|
gap: 4,
|
|
97
96
|
backgroundColor: colorBgContainer,
|
|
98
97
|
backgroundClip: "padding-box",
|
|
99
|
-
borderRadius:
|
|
98
|
+
borderRadius: token.borderRadiusMD,
|
|
100
99
|
outline: "none",
|
|
101
100
|
boxShadow: "0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05)",
|
|
102
101
|
[`${antCls}-dropdown-menu`]: {
|
|
@@ -131,32 +130,33 @@ var genDateRangerStyle = (token) => {
|
|
|
131
130
|
color: colorTextSecondary,
|
|
132
131
|
transition: "all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)",
|
|
133
132
|
"&:hover": {
|
|
134
|
-
borderColor:
|
|
133
|
+
borderColor: token.colorPrimaryHover,
|
|
135
134
|
"&::before": {
|
|
136
|
-
backgroundColor:
|
|
135
|
+
backgroundColor: token.colorPrimaryHover
|
|
137
136
|
}
|
|
138
137
|
}
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
},
|
|
142
141
|
[`${componentCls}-label`]: {
|
|
142
|
+
fontSize: token.fontSizeSM,
|
|
143
143
|
backgroundColor: colorFillSecondary,
|
|
144
144
|
color: colorTextSecondary,
|
|
145
145
|
display: "inline-block",
|
|
146
|
-
width:
|
|
146
|
+
width: 52,
|
|
147
147
|
padding: "4px 0",
|
|
148
|
-
borderRadius:
|
|
148
|
+
borderRadius: token.borderRadiusSM,
|
|
149
149
|
lineHeight: 1,
|
|
150
150
|
textAlign: "center"
|
|
151
151
|
},
|
|
152
152
|
[`${componentCls}-back-radio-focused`]: {
|
|
153
153
|
[`${componentCls}-wrapper`]: {
|
|
154
|
-
borderRightColor:
|
|
154
|
+
borderRightColor: token.colorPrimaryHover
|
|
155
155
|
},
|
|
156
156
|
[`${componentCls}-playback-control`]: {
|
|
157
157
|
[`${antCls}-radio-button-wrapper:first-child`]: {
|
|
158
158
|
[`+ ${antCls}-radio-button-wrapper::before`]: {
|
|
159
|
-
backgroundColor:
|
|
159
|
+
backgroundColor: token.colorPrimaryHover
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -43,7 +43,7 @@ var genDialogStyle = (token) => {
|
|
|
43
43
|
boxSizing: "content-box",
|
|
44
44
|
color: "#eee",
|
|
45
45
|
backgroundColor: "rgba(65, 74, 77, 1)",
|
|
46
|
-
borderRadius:
|
|
46
|
+
borderRadius: token.borderRadiusLG,
|
|
47
47
|
boxShadow: boxShadowSecondary,
|
|
48
48
|
transition: "visibility 0.2s ease-in-out, opacity 0.2s linear",
|
|
49
49
|
[`${componentCls}-header`]: {
|
|
@@ -72,8 +72,14 @@ var DocumentIcon = ({ className }) => {
|
|
|
72
72
|
var PageContainer = ({
|
|
73
73
|
prefixCls: customizePrefixCls,
|
|
74
74
|
className,
|
|
75
|
-
/* compatible with title prop */
|
|
76
|
-
title,
|
|
75
|
+
/* compatible with title, title, subTitle, onBack, backIcon, extra prop */
|
|
76
|
+
title: titleProp,
|
|
77
|
+
subTitle: subTitleProp,
|
|
78
|
+
onBack: onBackProp,
|
|
79
|
+
backIcon: backIconProp,
|
|
80
|
+
breadcrumb: breadcrumbProp,
|
|
81
|
+
extra: extraProp,
|
|
82
|
+
// this is divider for above //
|
|
77
83
|
header,
|
|
78
84
|
content,
|
|
79
85
|
extraContent,
|
|
@@ -91,10 +97,13 @@ var PageContainer = ({
|
|
|
91
97
|
const { token } = import_design.theme.useToken();
|
|
92
98
|
const {
|
|
93
99
|
reload,
|
|
94
|
-
|
|
100
|
+
title = titleProp,
|
|
101
|
+
subTitle = subTitleProp,
|
|
102
|
+
onBack = onBackProp,
|
|
103
|
+
backIcon = backIconProp || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Button, { style: { fontSize: token.fontSizeLG }, icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ArrowLeftOutlined, {}) }),
|
|
95
104
|
document,
|
|
96
|
-
breadcrumb,
|
|
97
|
-
|
|
105
|
+
breadcrumb = breadcrumbProp,
|
|
106
|
+
extra = extraProp
|
|
98
107
|
} = header || {};
|
|
99
108
|
const reloadProps = (0, import_lodash.isObject)(reload) && !import_react.default.isValidElement(reload) ? reload : {};
|
|
100
109
|
const reloadCls = (0, import_classnames.default)(
|
|
@@ -126,16 +135,19 @@ var PageContainer = ({
|
|
|
126
135
|
) }) : document
|
|
127
136
|
] })
|
|
128
137
|
] });
|
|
129
|
-
const newHeader = header && {
|
|
138
|
+
const newHeader = (header || title || newSubTitle || onBack || breadcrumb || extra) && {
|
|
130
139
|
...header,
|
|
140
|
+
title,
|
|
131
141
|
subTitle: newSubTitle,
|
|
142
|
+
onBack,
|
|
143
|
+
backIcon,
|
|
132
144
|
breadcrumb: breadcrumb && {
|
|
133
145
|
itemRender: (route, params, routes, paths) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ItemRender.default, { route, params, routes, paths }),
|
|
134
146
|
...breadcrumb
|
|
135
147
|
},
|
|
136
|
-
|
|
148
|
+
extra
|
|
137
149
|
};
|
|
138
|
-
const noHasHeader =
|
|
150
|
+
const noHasHeader = ["title", "subTitle", "onBack", "breadcrumb", "extra", "tags", "avatar"].every(
|
|
139
151
|
(item) => !(newHeader == null ? void 0 : newHeader[item])
|
|
140
152
|
) && !content && !extraContent && !tabList && !tabBarExtraContent;
|
|
141
153
|
const pageContainerCls = (0, import_classnames.default)(
|
|
@@ -89,7 +89,12 @@ var genPageContainerStyle = (token) => {
|
|
|
89
89
|
marginBlock: 0
|
|
90
90
|
},
|
|
91
91
|
[`${antCls}-page-header-footer`]: {
|
|
92
|
-
marginBlockStart: 0
|
|
92
|
+
marginBlockStart: 0,
|
|
93
|
+
[`${antCls}-tabs-top > ${antCls}-tabs-nav::before`]: {
|
|
94
|
+
borderBottom: `1px solid ${token.colorBorderSecondary}`,
|
|
95
|
+
left: -token.paddingXL,
|
|
96
|
+
right: -token.paddingXL
|
|
97
|
+
}
|
|
93
98
|
}
|
|
94
99
|
},
|
|
95
100
|
[`${componentCls}-children-container`]: {
|
|
@@ -100,6 +105,11 @@ var genPageContainerStyle = (token) => {
|
|
|
100
105
|
[`& > ${antCls}-tabs-top:not(${antCls}-tabs-card):first-child`]: {
|
|
101
106
|
// equal to page header paddingBlockEnd
|
|
102
107
|
marginTop: -padding
|
|
108
|
+
},
|
|
109
|
+
[`& > ${antCls}-tabs-top > ${antCls}-tabs-nav::before`]: {
|
|
110
|
+
borderBottom: `1px solid ${token.colorBorderSecondary}`,
|
|
111
|
+
left: -token.paddingXL,
|
|
112
|
+
right: -token.paddingXL
|
|
103
113
|
}
|
|
104
114
|
}
|
|
105
115
|
},
|
package/lib/Password/index.js
CHANGED
|
@@ -54,7 +54,7 @@ var genRangerStyle = (token) => {
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
[`${componentCls}-show-range`]: {
|
|
57
|
-
[`${componentCls}-quick-picker
|
|
57
|
+
[`${componentCls}-quick-picker${componentCls}-quick-picker-select`]: {
|
|
58
58
|
marginRight: -1,
|
|
59
59
|
[`${antCls}-select-selector`]: {
|
|
60
60
|
borderTopRightRadius: "0 !important",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
3
|
+
import type { AliasToken } from '@oceanbase/design/es/theme/interface';
|
|
3
4
|
import type { ProAliasToken } from '@ant-design/pro-components';
|
|
4
|
-
export interface OBToken extends ProAliasToken {
|
|
5
|
+
export interface OBToken extends ProAliasToken, AliasToken {
|
|
5
6
|
/** Wrap component class with `.` prefix */
|
|
6
7
|
componentCls: string;
|
|
7
8
|
/** Origin prefix which do not have `.` prefix */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.9",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@ant-design/cssinjs": "^1.24.0",
|
|
39
39
|
"@ant-design/pro-components": "^2.8.10",
|
|
40
40
|
"@inline-svg-unique-id/react": "^1.2.3",
|
|
41
|
-
"@oceanbase/design": "^1.0.0-alpha.
|
|
41
|
+
"@oceanbase/design": "^1.0.0-alpha.9",
|
|
42
42
|
"@oceanbase/icons": "^1.0.0-alpha.0",
|
|
43
43
|
"@oceanbase/util": "^1.0.0-alpha.2",
|
|
44
44
|
"ahooks": "^2.10.14",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"react": ">=16.9.0",
|
|
68
68
|
"react-dom": ">=16.9.0"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "b208f8aa2f982a955a827e14b58796e934cac016"
|
|
71
71
|
}
|