@ant-design/pro-components 2.0.0-experimental.16 → 2.0.0-experimental.17
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/components.js +129 -87
- package/dist/components.min.js +1 -1
- package/es/version.js +11 -11
- package/package.json +2 -2
package/dist/components.js
CHANGED
|
@@ -60124,7 +60124,7 @@ var SiderMenu = function SiderMenu(props) {
|
|
|
60124
60124
|
};
|
|
60125
60125
|
|
|
60126
60126
|
|
|
60127
|
-
;// CONCATENATED MODULE: ./packages/layout/es/components/
|
|
60127
|
+
;// CONCATENATED MODULE: ./packages/layout/es/components/GlobalHeader/rightContentStyle.js
|
|
60128
60128
|
|
|
60129
60129
|
|
|
60130
60130
|
|
|
@@ -60133,64 +60133,6 @@ var SiderMenu = function SiderMenu(props) {
|
|
|
60133
60133
|
|
|
60134
60134
|
var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
60135
60135
|
return defineProperty_defineProperty({}, token.componentCls, {
|
|
60136
|
-
position: 'relative',
|
|
60137
|
-
width: '100%',
|
|
60138
|
-
height: '100%',
|
|
60139
|
-
backgroundColor: 'transparent',
|
|
60140
|
-
'.anticon': {
|
|
60141
|
-
color: 'inherit'
|
|
60142
|
-
},
|
|
60143
|
-
'&-main': {
|
|
60144
|
-
display: 'flex',
|
|
60145
|
-
height: '100%',
|
|
60146
|
-
paddingInlineStart: '16px',
|
|
60147
|
-
'&-left': defineProperty_defineProperty({
|
|
60148
|
-
display: 'flex',
|
|
60149
|
-
alignItems: 'center',
|
|
60150
|
-
minWidth: '192px'
|
|
60151
|
-
}, "".concat(token.proComponentsCls, "-layout-apps-icon"), {
|
|
60152
|
-
marginInlineEnd: 16,
|
|
60153
|
-
marginInlineStart: -8
|
|
60154
|
-
})
|
|
60155
|
-
},
|
|
60156
|
-
'&-logo': {
|
|
60157
|
-
position: 'relative',
|
|
60158
|
-
minWidth: '165px',
|
|
60159
|
-
display: 'flex',
|
|
60160
|
-
height: '100%',
|
|
60161
|
-
alignItems: 'center',
|
|
60162
|
-
overflow: 'hidden',
|
|
60163
|
-
'> *:first-child': {
|
|
60164
|
-
display: 'flex',
|
|
60165
|
-
alignItems: 'center',
|
|
60166
|
-
minHeight: '22px',
|
|
60167
|
-
fontSize: '22px'
|
|
60168
|
-
},
|
|
60169
|
-
'> *:first-child > img': {
|
|
60170
|
-
display: 'inline-block',
|
|
60171
|
-
height: '32px',
|
|
60172
|
-
verticalAlign: 'middle'
|
|
60173
|
-
},
|
|
60174
|
-
'> *:first-child > h1': {
|
|
60175
|
-
display: 'inline-block',
|
|
60176
|
-
marginBlock: 0,
|
|
60177
|
-
marginInline: 0,
|
|
60178
|
-
lineHeight: '24px',
|
|
60179
|
-
marginInlineStart: 6,
|
|
60180
|
-
fontWeight: '600',
|
|
60181
|
-
fontSize: '16px',
|
|
60182
|
-
color: token === null || token === void 0 ? void 0 : token.colorHeaderTitle,
|
|
60183
|
-
verticalAlign: 'top'
|
|
60184
|
-
}
|
|
60185
|
-
},
|
|
60186
|
-
'&-menu': {
|
|
60187
|
-
minWidth: 0,
|
|
60188
|
-
display: 'flex',
|
|
60189
|
-
alignItems: 'center',
|
|
60190
|
-
paddingInline: 6,
|
|
60191
|
-
paddingBlock: 6,
|
|
60192
|
-
lineHeight: "".concat(token.heightLayoutHeader - 12, "px")
|
|
60193
|
-
},
|
|
60194
60136
|
'&-header-actions': {
|
|
60195
60137
|
display: 'flex',
|
|
60196
60138
|
height: '100%',
|
|
@@ -60239,31 +60181,27 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
60239
60181
|
});
|
|
60240
60182
|
};
|
|
60241
60183
|
|
|
60242
|
-
function
|
|
60184
|
+
function rightContentStyle_useStyle(prefixCls) {
|
|
60243
60185
|
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
60244
60186
|
header = _useContext.header;
|
|
60245
60187
|
|
|
60246
|
-
return useStyle('
|
|
60247
|
-
var
|
|
60188
|
+
return useStyle('RightContent', function (token) {
|
|
60189
|
+
var proToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
60248
60190
|
componentCls: ".".concat(prefixCls)
|
|
60249
60191
|
}, header);
|
|
60250
60192
|
|
|
60251
|
-
return [genTopNavHeaderStyle(
|
|
60193
|
+
return [genTopNavHeaderStyle(proToken)];
|
|
60252
60194
|
});
|
|
60253
60195
|
}
|
|
60254
|
-
;// CONCATENATED MODULE: ./packages/layout/es/components/
|
|
60255
|
-
|
|
60256
|
-
|
|
60196
|
+
;// CONCATENATED MODULE: ./packages/layout/es/components/GlobalHeader/RightContent.js
|
|
60257
60197
|
|
|
60258
60198
|
|
|
60259
60199
|
|
|
60260
60200
|
|
|
60261
|
-
var TopNavHeader_excluded = ["rightContentRender", "prefixCls", "avatarProps", "actionsRender", "headerContentRender"],
|
|
60262
|
-
TopNavHeader_excluded2 = ["title"];
|
|
60263
|
-
|
|
60264
|
-
|
|
60265
60201
|
|
|
60266
60202
|
|
|
60203
|
+
var RightContent_excluded = ["rightContentRender", "avatarProps", "actionsRender", "headerContentRender"],
|
|
60204
|
+
RightContent_excluded2 = ["title"];
|
|
60267
60205
|
|
|
60268
60206
|
|
|
60269
60207
|
|
|
@@ -60280,11 +60218,19 @@ var TopNavHeader_excluded = ["rightContentRender", "prefixCls", "avatarProps", "
|
|
|
60280
60218
|
|
|
60281
60219
|
var RightContent = function RightContent(_ref) {
|
|
60282
60220
|
var rightContentRender = _ref.rightContentRender,
|
|
60283
|
-
prefixCls = _ref.prefixCls,
|
|
60284
60221
|
avatarProps = _ref.avatarProps,
|
|
60285
60222
|
actionsRender = _ref.actionsRender,
|
|
60286
60223
|
headerContentRender = _ref.headerContentRender,
|
|
60287
|
-
props = objectWithoutProperties_objectWithoutProperties(_ref,
|
|
60224
|
+
props = objectWithoutProperties_objectWithoutProperties(_ref, RightContent_excluded);
|
|
60225
|
+
|
|
60226
|
+
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
60227
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
60228
|
+
|
|
60229
|
+
var prefixCls = "".concat(getPrefixCls(), "-pro-global-header");
|
|
60230
|
+
|
|
60231
|
+
var _useStyle = rightContentStyle_useStyle(prefixCls),
|
|
60232
|
+
wrapSSR = _useStyle.wrapSSR,
|
|
60233
|
+
hashId = _useStyle.hashId;
|
|
60288
60234
|
|
|
60289
60235
|
var _useState = (0,external_React_.useState)('auto'),
|
|
60290
60236
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -60295,7 +60241,7 @@ var RightContent = function RightContent(_ref) {
|
|
|
60295
60241
|
if (!avatarProps) return null;
|
|
60296
60242
|
|
|
60297
60243
|
var title = avatarProps.title,
|
|
60298
|
-
rest = objectWithoutProperties_objectWithoutProperties(avatarProps,
|
|
60244
|
+
rest = objectWithoutProperties_objectWithoutProperties(avatarProps, RightContent_excluded2);
|
|
60299
60245
|
|
|
60300
60246
|
return [/*#__PURE__*/(0,external_React_.createElement)(external_antd_.Avatar, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rest), {}, {
|
|
60301
60247
|
size: 28,
|
|
@@ -60312,8 +60258,8 @@ var RightContent = function RightContent(_ref) {
|
|
|
60312
60258
|
var doms = actionsRender && (actionsRender === null || actionsRender === void 0 ? void 0 : actionsRender(restParams));
|
|
60313
60259
|
if (!doms && !avatarDom) return null;
|
|
60314
60260
|
if (!Array.isArray(doms)) doms = [doms];
|
|
60315
|
-
return (0,jsx_runtime.jsxs)("div", {
|
|
60316
|
-
className: "".concat(prefixCls, "-header-actions"),
|
|
60261
|
+
return wrapSSR((0,jsx_runtime.jsxs)("div", {
|
|
60262
|
+
className: "".concat(prefixCls, "-header-actions ").concat(hashId),
|
|
60317
60263
|
children: [doms.filter(Boolean).map(function (dom, index) {
|
|
60318
60264
|
var hideHover = false; // 如果配置了 hideHover 就不展示 hover 效果了
|
|
60319
60265
|
|
|
@@ -60333,7 +60279,7 @@ var RightContent = function RightContent(_ref) {
|
|
|
60333
60279
|
children: avatarDom
|
|
60334
60280
|
})
|
|
60335
60281
|
})]
|
|
60336
|
-
});
|
|
60282
|
+
}));
|
|
60337
60283
|
};
|
|
60338
60284
|
/** 减少一下渲染的次数 */
|
|
60339
60285
|
|
|
@@ -60390,6 +60336,101 @@ var RightContent = function RightContent(_ref) {
|
|
|
60390
60336
|
})
|
|
60391
60337
|
});
|
|
60392
60338
|
};
|
|
60339
|
+
;// CONCATENATED MODULE: ./packages/layout/es/components/TopNavHeader/style.js
|
|
60340
|
+
|
|
60341
|
+
|
|
60342
|
+
|
|
60343
|
+
|
|
60344
|
+
|
|
60345
|
+
|
|
60346
|
+
var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
60347
|
+
return defineProperty_defineProperty({}, token.componentCls, {
|
|
60348
|
+
position: 'relative',
|
|
60349
|
+
width: '100%',
|
|
60350
|
+
height: '100%',
|
|
60351
|
+
backgroundColor: 'transparent',
|
|
60352
|
+
'.anticon': {
|
|
60353
|
+
color: 'inherit'
|
|
60354
|
+
},
|
|
60355
|
+
'&-main': {
|
|
60356
|
+
display: 'flex',
|
|
60357
|
+
height: '100%',
|
|
60358
|
+
paddingInlineStart: '16px',
|
|
60359
|
+
'&-left': defineProperty_defineProperty({
|
|
60360
|
+
display: 'flex',
|
|
60361
|
+
alignItems: 'center',
|
|
60362
|
+
minWidth: '192px'
|
|
60363
|
+
}, "".concat(token.proComponentsCls, "-layout-apps-icon"), {
|
|
60364
|
+
marginInlineEnd: 16,
|
|
60365
|
+
marginInlineStart: -8
|
|
60366
|
+
})
|
|
60367
|
+
},
|
|
60368
|
+
'&-logo': {
|
|
60369
|
+
position: 'relative',
|
|
60370
|
+
minWidth: '165px',
|
|
60371
|
+
display: 'flex',
|
|
60372
|
+
height: '100%',
|
|
60373
|
+
alignItems: 'center',
|
|
60374
|
+
overflow: 'hidden',
|
|
60375
|
+
'> *:first-child': {
|
|
60376
|
+
display: 'flex',
|
|
60377
|
+
alignItems: 'center',
|
|
60378
|
+
minHeight: '22px',
|
|
60379
|
+
fontSize: '22px'
|
|
60380
|
+
},
|
|
60381
|
+
'> *:first-child > img': {
|
|
60382
|
+
display: 'inline-block',
|
|
60383
|
+
height: '32px',
|
|
60384
|
+
verticalAlign: 'middle'
|
|
60385
|
+
},
|
|
60386
|
+
'> *:first-child > h1': {
|
|
60387
|
+
display: 'inline-block',
|
|
60388
|
+
marginBlock: 0,
|
|
60389
|
+
marginInline: 0,
|
|
60390
|
+
lineHeight: '24px',
|
|
60391
|
+
marginInlineStart: 6,
|
|
60392
|
+
fontWeight: '600',
|
|
60393
|
+
fontSize: '16px',
|
|
60394
|
+
color: token === null || token === void 0 ? void 0 : token.colorHeaderTitle,
|
|
60395
|
+
verticalAlign: 'top'
|
|
60396
|
+
}
|
|
60397
|
+
},
|
|
60398
|
+
'&-menu': {
|
|
60399
|
+
minWidth: 0,
|
|
60400
|
+
display: 'flex',
|
|
60401
|
+
alignItems: 'center',
|
|
60402
|
+
paddingInline: 6,
|
|
60403
|
+
paddingBlock: 6,
|
|
60404
|
+
lineHeight: "".concat(token.heightLayoutHeader - 12, "px")
|
|
60405
|
+
}
|
|
60406
|
+
});
|
|
60407
|
+
};
|
|
60408
|
+
|
|
60409
|
+
function TopNavHeader_style_useStyle(prefixCls) {
|
|
60410
|
+
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
60411
|
+
header = _useContext.header;
|
|
60412
|
+
|
|
60413
|
+
return useStyle('top-nav-header', function (token) {
|
|
60414
|
+
var topNavHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
60415
|
+
componentCls: ".".concat(prefixCls)
|
|
60416
|
+
}, header);
|
|
60417
|
+
|
|
60418
|
+
return [style_genTopNavHeaderStyle(topNavHeaderToken)];
|
|
60419
|
+
});
|
|
60420
|
+
}
|
|
60421
|
+
;// CONCATENATED MODULE: ./packages/layout/es/components/TopNavHeader/index.js
|
|
60422
|
+
|
|
60423
|
+
|
|
60424
|
+
|
|
60425
|
+
|
|
60426
|
+
|
|
60427
|
+
|
|
60428
|
+
|
|
60429
|
+
|
|
60430
|
+
|
|
60431
|
+
|
|
60432
|
+
|
|
60433
|
+
|
|
60393
60434
|
|
|
60394
60435
|
var TopNavHeader = function TopNavHeader(props) {
|
|
60395
60436
|
var ref = (0,external_React_.useRef)(null);
|
|
@@ -60579,6 +60620,7 @@ function GlobalHeader_style_useStyle(prefixCls) {
|
|
|
60579
60620
|
|
|
60580
60621
|
|
|
60581
60622
|
|
|
60623
|
+
|
|
60582
60624
|
var GlobalHeader_renderLogo = function renderLogo(menuHeaderRender, logoDom) {
|
|
60583
60625
|
if (menuHeaderRender === false) {
|
|
60584
60626
|
return null;
|
|
@@ -94094,17 +94136,17 @@ function BaseProList(props) {
|
|
|
94094
94136
|
/* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
|
|
94095
94137
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
94096
94138
|
var version_version = {
|
|
94097
|
-
"@ant-design/pro-card": "2.0.0-experimental.
|
|
94098
|
-
"@ant-design/pro-components": "2.0.0-experimental.
|
|
94099
|
-
"@ant-design/pro-descriptions": "2.0.0-experimental.
|
|
94100
|
-
"@ant-design/pro-field": "2.0.0-experimental.
|
|
94101
|
-
"@ant-design/pro-form": "2.0.0-experimental.
|
|
94102
|
-
"@ant-design/pro-layout": "7.0.0-experimental.
|
|
94103
|
-
"@ant-design/pro-list": "2.0.0-experimental.
|
|
94104
|
-
"@ant-design/pro-provider": "2.0.0-experimental.
|
|
94105
|
-
"@ant-design/pro-skeleton": "2.0.0-experimental.
|
|
94106
|
-
"@ant-design/pro-table": "3.0.0-experimental.
|
|
94107
|
-
"@ant-design/pro-utils": "2.0.0-experimental.
|
|
94139
|
+
"@ant-design/pro-card": "2.0.0-experimental.12",
|
|
94140
|
+
"@ant-design/pro-components": "2.0.0-experimental.16",
|
|
94141
|
+
"@ant-design/pro-descriptions": "2.0.0-experimental.12",
|
|
94142
|
+
"@ant-design/pro-field": "2.0.0-experimental.12",
|
|
94143
|
+
"@ant-design/pro-form": "2.0.0-experimental.12",
|
|
94144
|
+
"@ant-design/pro-layout": "7.0.0-experimental.16",
|
|
94145
|
+
"@ant-design/pro-list": "2.0.0-experimental.13",
|
|
94146
|
+
"@ant-design/pro-provider": "2.0.0-experimental.7",
|
|
94147
|
+
"@ant-design/pro-skeleton": "2.0.0-experimental.6",
|
|
94148
|
+
"@ant-design/pro-table": "3.0.0-experimental.13",
|
|
94149
|
+
"@ant-design/pro-utils": "2.0.0-experimental.12"
|
|
94108
94150
|
};
|
|
94109
94151
|
;// CONCATENATED MODULE: ./packages/components/src/index.tsx
|
|
94110
94152
|
|