@ant-design/pro-components 2.3.20 → 2.3.21

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.
@@ -20019,7 +20019,7 @@ __webpack_require__.d(__webpack_exports__, {
20019
20019
  "ProFormField": function() { return /* reexport */ components_Field; },
20020
20020
  "ProFormFieldSet": function() { return /* reexport */ components_FieldSet; },
20021
20021
  "ProFormGroup": function() { return /* reexport */ ProFormGroup; },
20022
- "ProFormItem": function() { return /* reexport */ components_FormItem; },
20022
+ "ProFormItem": function() { return /* reexport */ FormItem; },
20023
20023
  "ProFormList": function() { return /* reexport */ ProFormList; },
20024
20024
  "ProFormMoney": function() { return /* reexport */ components_Money; },
20025
20025
  "ProFormRadio": function() { return /* reexport */ components_Radio; },
@@ -20090,7 +20090,7 @@ __webpack_require__.d(__webpack_exports__, {
20090
20090
  "jaJPIntl": function() { return /* reexport */ jaJPIntl; },
20091
20091
  "koKRIntl": function() { return /* reexport */ koKRIntl; },
20092
20092
  "lighten": function() { return /* reexport */ lighten; },
20093
- "merge": function() { return /* reexport */ merge; },
20093
+ "merge": function() { return /* reexport */ merge_merge; },
20094
20094
  "mnMNIntl": function() { return /* reexport */ mnMNIntl; },
20095
20095
  "msMYIntl": function() { return /* reexport */ msMYIntl; },
20096
20096
  "nanoid": function() { return /* reexport */ nanoid; },
@@ -20135,7 +20135,7 @@ __webpack_require__.d(__webpack_exports__, {
20135
20135
  "zhTWIntl": function() { return /* reexport */ zhTWIntl; }
20136
20136
  });
20137
20137
 
20138
- // NAMESPACE OBJECT: ./packages/utils/es/useStyle/token.js
20138
+ // NAMESPACE OBJECT: ./packages/provider/es/useStyle/token.js
20139
20139
  var token_namespaceObject = {};
20140
20140
  __webpack_require__.r(token_namespaceObject);
20141
20141
  __webpack_require__.d(token_namespaceObject, {
@@ -20143,7 +20143,7 @@ __webpack_require__.d(token_namespaceObject, {
20143
20143
  "defaultAlgorithm": function() { return defaultAlgorithm; },
20144
20144
  "defaultTheme": function() { return defaultTheme; },
20145
20145
  "token": function() { return token_token; },
20146
- "useToken": function() { return token_useToken; }
20146
+ "useToken": function() { return useToken; }
20147
20147
  });
20148
20148
 
20149
20149
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
@@ -20319,7 +20319,10 @@ function arrayMoveMutable(array, fromIndex, toIndex) {
20319
20319
  * @param {number} toIndex
20320
20320
  * @returns T
20321
20321
  */
20322
- function arrayMoveImmutable(array, fromIndex, toIndex) {
20322
+ function arrayMoveImmutable(_ref) {
20323
+ var array = _ref.array,
20324
+ fromIndex = _ref.fromIndex,
20325
+ toIndex = _ref.toIndex;
20323
20326
  var newArray = toConsumableArray_toConsumableArray(array);
20324
20327
  arrayMoveMutable(newArray, fromIndex, toIndex);
20325
20328
  return newArray;
@@ -23322,268 +23325,6 @@ var useSWR = withArgs(useSWRHandler);
23322
23325
  close: '關閉'
23323
23326
  }
23324
23327
  });
23325
- ;// CONCATENATED MODULE: ./packages/provider/es/index.js
23326
-
23327
-
23328
-
23329
- //@ts-ignore
23330
-
23331
-
23332
-
23333
-
23334
-
23335
-
23336
-
23337
-
23338
-
23339
-
23340
-
23341
-
23342
-
23343
-
23344
-
23345
-
23346
-
23347
-
23348
-
23349
-
23350
-
23351
-
23352
-
23353
-
23354
-
23355
-
23356
-
23357
- var _ref = external_antd_.theme || {
23358
- useToken: function useToken() {
23359
- return {
23360
- hashId: ''
23361
- };
23362
- }
23363
- },
23364
- useToken = _ref.useToken;
23365
- /**
23366
- * 安全的从一个对象中读取相应的值
23367
- * @param source
23368
- * @param path
23369
- * @param defaultValue
23370
- * @returns
23371
- */
23372
- function get(source, path, defaultValue) {
23373
- // a[3].b -> a.3.b
23374
- var paths = path.replace(/\[(\d+)\]/g, '.$1').split('.');
23375
- var result = source;
23376
- var message = defaultValue;
23377
- // eslint-disable-next-line no-restricted-syntax
23378
- var _iterator = _createForOfIteratorHelper(paths),
23379
- _step;
23380
- try {
23381
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
23382
- var p = _step.value;
23383
- message = Object(result)[p];
23384
- result = Object(result)[p];
23385
- if (message === undefined) {
23386
- return defaultValue;
23387
- }
23388
- }
23389
- } catch (err) {
23390
- _iterator.e(err);
23391
- } finally {
23392
- _iterator.f();
23393
- }
23394
- return message;
23395
- }
23396
- /**
23397
- * 创建一个国际化的操作函数
23398
- *
23399
- * @param locale
23400
- * @param localeMap
23401
- */
23402
- var createIntl = function createIntl(locale, localeMap) {
23403
- return {
23404
- getMessage: function getMessage(id, defaultMessage) {
23405
- return get(localeMap, id, defaultMessage) || defaultMessage;
23406
- },
23407
- locale: locale
23408
- };
23409
- };
23410
- var mnMNIntl = createIntl('mn_MN', mn_MN);
23411
- var arEGIntl = createIntl('ar_EG', ar_EG);
23412
- var zhCNIntl = createIntl('zh_CN', provider_es_locale_zh_CN);
23413
- var enUSIntl = createIntl('en_US', en_US);
23414
- var enGBIntl = createIntl('en_GB', en_GB);
23415
- var viVNIntl = createIntl('vi_VN', vi_VN);
23416
- var itITIntl = createIntl('it_IT', it_IT);
23417
- var jaJPIntl = createIntl('ja_JP', ja_JP);
23418
- var esESIntl = createIntl('es_ES', es_ES);
23419
- var caESIntl = createIntl('ca_ES', ca_ES);
23420
- var ruRUIntl = createIntl('ru_RU', ru_RU);
23421
- var srRSIntl = createIntl('sr_RS', sr_RS);
23422
- var msMYIntl = createIntl('ms_MY', ms_MY);
23423
- var zhTWIntl = createIntl('zh_TW', zh_TW);
23424
- var frFRIntl = createIntl('fr_FR', fr_FR);
23425
- var ptBRIntl = createIntl('pt_BR', pt_BR);
23426
- var koKRIntl = createIntl('ko_KR', ko_KR);
23427
- var idIDIntl = createIntl('id_ID', id_ID);
23428
- var deDEIntl = createIntl('de_DE', de_DE);
23429
- var faIRIntl = createIntl('fa_IR', fa_IR);
23430
- var trTRIntl = createIntl('tr_TR', tr_TR);
23431
- var plPLIntl = createIntl('pl_PL', pl_PL);
23432
- var hrHRIntl = createIntl('hr_', hr_HR);
23433
- var intlMap = {
23434
- 'mn-MN': mnMNIntl,
23435
- 'ar-EG': arEGIntl,
23436
- 'zh-CN': zhCNIntl,
23437
- 'en-US': enUSIntl,
23438
- 'en-GB': enGBIntl,
23439
- 'vi-VN': viVNIntl,
23440
- 'it-IT': itITIntl,
23441
- 'ja-JP': jaJPIntl,
23442
- 'es-ES': esESIntl,
23443
- 'ca-ES': caESIntl,
23444
- 'ru-RU': ruRUIntl,
23445
- 'sr-RS': srRSIntl,
23446
- 'ms-MY': msMYIntl,
23447
- 'zh-TW': zhTWIntl,
23448
- 'fr-FR': frFRIntl,
23449
- 'pt-BR': ptBRIntl,
23450
- 'ko-KR': koKRIntl,
23451
- 'id-ID': idIDIntl,
23452
- 'de-DE': deDEIntl,
23453
- 'fa-IR': faIRIntl,
23454
- 'tr-TR': trTRIntl,
23455
- 'pl-PL': plPLIntl,
23456
- 'hr-HR': hrHRIntl
23457
- };
23458
- var intlMapKeys = Object.keys(intlMap);
23459
-
23460
- /* Creating a context object with the default values. */
23461
- var es_ConfigContext = /*#__PURE__*/external_React_default().createContext({
23462
- intl: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, zhCNIntl), {}, {
23463
- locale: 'default'
23464
- }),
23465
- isDeps: false,
23466
- valueTypeMap: {}
23467
- });
23468
- var ConfigConsumer = es_ConfigContext.Consumer,
23469
- ConfigProvider = es_ConfigContext.Provider;
23470
- /**
23471
- * 根据 antd 的 key 来找到的 locale 插件的 key
23472
- *
23473
- * @param localeKey
23474
- */
23475
-
23476
- var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) {
23477
- if (!localeKey) {
23478
- return 'zh-CN';
23479
- }
23480
- var localeName = localeKey.toLocaleLowerCase();
23481
- return intlMapKeys.find(function (intlKey) {
23482
- var LowerCaseKey = intlKey.toLocaleLowerCase();
23483
- return LowerCaseKey.includes(localeName);
23484
- });
23485
- };
23486
- /**
23487
- * 组件解除挂载后清空一下 cache
23488
- *
23489
- * @returns
23490
- */
23491
- var CacheClean = function CacheClean() {
23492
- var _useSWRConfig = useSWRConfig(),
23493
- cache = _useSWRConfig.cache;
23494
- (0,external_React_.useEffect)(function () {
23495
- return function () {
23496
- // is a map
23497
- // @ts-ignore
23498
- cache.clear();
23499
- };
23500
- // eslint-disable-next-line react-hooks/exhaustive-deps
23501
- }, []);
23502
- return null;
23503
- };
23504
- /**
23505
- * 如果没有配置 locale,这里组件会根据 antd 的 key 来自动选择
23506
- *
23507
- * @param param0
23508
- */
23509
- var ConfigProviderWrap = function ConfigProviderWrap(_ref2) {
23510
- var children = _ref2.children,
23511
- _ref2$autoClearCache = _ref2.autoClearCache,
23512
- autoClearCache = _ref2$autoClearCache === void 0 ? false : _ref2$autoClearCache;
23513
- var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
23514
- locale = _useContext.locale,
23515
- getPrefixCls = _useContext.getPrefixCls;
23516
- var token = useToken === null || useToken === void 0 ? void 0 : useToken();
23517
- // 如果 locale 不存在自动注入的 AntdConfigProvider
23518
- var Provider = locale === undefined ? external_antd_.ConfigProvider : (external_React_default()).Fragment;
23519
- var proProvide = (0,external_React_.useContext)(es_ConfigContext);
23520
- var proProvideValue = (0,external_React_.useMemo)(function () {
23521
- var _proProvide$intl;
23522
- var localeName = locale === null || locale === void 0 ? void 0 : locale.locale;
23523
- var key = findIntlKeyByAntdLocaleKey(localeName);
23524
- // antd 的 key 存在的时候以 antd 的为主
23525
- var intl = localeName && ((_proProvide$intl = proProvide.intl) === null || _proProvide$intl === void 0 ? void 0 : _proProvide$intl.locale) === 'default' ? intlMap[key] : proProvide.intl || intlMap[key];
23526
- return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, proProvide), {}, {
23527
- isDeps: true,
23528
- intl: intl || zhCNIntl
23529
- });
23530
- }, [locale === null || locale === void 0 ? void 0 : locale.locale, proProvide]);
23531
- var configProviderDom = (0,external_React_.useMemo)(function () {
23532
- var _process$env$NODE_ENV;
23533
- // 自动注入 antd 的配置
23534
- var configProvider = locale === undefined ? {
23535
- locale: es_locale_zh_CN,
23536
- theme: {
23537
- hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test'
23538
- }
23539
- } : {};
23540
- var provide = (0,jsx_runtime.jsx)(Provider, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, configProvider), {}, {
23541
- children: (0,jsx_runtime.jsx)(ConfigProvider, {
23542
- value: proProvideValue,
23543
- children: (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
23544
- children: [autoClearCache && (0,jsx_runtime.jsx)(CacheClean, {}), children]
23545
- })
23546
- })
23547
- }));
23548
- if (proProvide.isDeps) return provide;
23549
- return (0,jsx_runtime.jsx)("div", {
23550
- className: "".concat((getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro', " ").concat(token.hashId),
23551
- children: provide
23552
- });
23553
- }, [Provider, autoClearCache, children, getPrefixCls, locale, proProvide.isDeps, proProvideValue, token.hashId]);
23554
- if (!autoClearCache) return configProviderDom;
23555
- return (0,jsx_runtime.jsx)(SWRConfig, {
23556
- value: {
23557
- provider: function provider() {
23558
- return new Map();
23559
- }
23560
- },
23561
- children: configProviderDom
23562
- });
23563
- };
23564
- /**
23565
- * It returns the intl object from the context if it exists, otherwise it returns the intl object for
23566
- * the current locale
23567
- * @returns The return value of the function is the intl object.
23568
- */
23569
- function useIntl() {
23570
- var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
23571
- locale = _useContext2.locale;
23572
- var _useContext3 = (0,external_React_.useContext)(es_ConfigContext),
23573
- intl = _useContext3.intl;
23574
- if (intl && intl.locale !== 'default') {
23575
- return intl || zhCNIntl;
23576
- }
23577
- if (locale === null || locale === void 0 ? void 0 : locale.locale) {
23578
- return intlMap[findIntlKeyByAntdLocaleKey(locale.locale)] || zhCNIntl;
23579
- }
23580
- return zhCNIntl;
23581
- }
23582
- var ProProvider = es_ConfigContext;
23583
- /* harmony default export */ var es = (es_ConfigContext);
23584
- // EXTERNAL MODULE: ./node_modules/classnames/index.js
23585
- var classnames = __webpack_require__(8266);
23586
- var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
23587
23328
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
23588
23329
  function typeof_typeof(obj) {
23589
23330
  "@babel/helpers - typeof";
@@ -25945,7 +25686,7 @@ function module_tinycolor(color, opts) {
25945
25686
  }
25946
25687
  return new TinyColor(color, opts);
25947
25688
  }
25948
- ;// CONCATENATED MODULE: ./packages/utils/es/useStyle/token.js
25689
+ ;// CONCATENATED MODULE: ./packages/provider/es/useStyle/token.js
25949
25690
 
25950
25691
 
25951
25692
  var defaultTheme = {
@@ -26321,7 +26062,7 @@ var token_token = {
26321
26062
  token: defaultTheme,
26322
26063
  hashId: ''
26323
26064
  };
26324
- var token_useToken = function useToken() {
26065
+ var useToken = function useToken() {
26325
26066
  var _useState = (0,external_React_.useState)(token_token),
26326
26067
  _useState2 = slicedToArray_slicedToArray(_useState, 1),
26327
26068
  stateToken = _useState2[0];
@@ -26333,7 +26074,8 @@ var darkAlgorithm = function darkAlgorithm() {
26333
26074
  var defaultAlgorithm = function defaultAlgorithm() {
26334
26075
  return defaultTheme;
26335
26076
  };
26336
- ;// CONCATENATED MODULE: ./packages/utils/es/useStyle/index.js
26077
+ ;// CONCATENATED MODULE: ./packages/provider/es/useStyle/index.js
26078
+
26337
26079
 
26338
26080
 
26339
26081
 
@@ -26394,17 +26136,32 @@ var operationUnit = function operationUnit(token) {
26394
26136
  }
26395
26137
  };
26396
26138
  };
26139
+ var hashCode = function hashCode(str) {
26140
+ var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
26141
+ var h1 = 0xdeadbeef ^ seed,
26142
+ h2 = 0x41c6ce57 ^ seed;
26143
+ for (var i = 0, ch; i < str.length; i++) {
26144
+ ch = str.charCodeAt(i);
26145
+ h1 = Math.imul(h1 ^ ch, 2654435761);
26146
+ h2 = Math.imul(h2 ^ ch, 1597334677);
26147
+ }
26148
+ h1 = Math.imul(h1 ^ h1 >>> 16, 2246822507) ^ Math.imul(h2 ^ h2 >>> 13, 3266489909);
26149
+ h2 = Math.imul(h2 ^ h2 >>> 16, 2246822507) ^ Math.imul(h1 ^ h1 >>> 13, 3266489909);
26150
+ return 4294967296 * (2097151 & h2) + (h1 >>> 0);
26151
+ };
26397
26152
  /**
26398
26153
  * 封装了一下 antd 的 useStyle,支持了一下antd@4
26399
26154
  * @param componentName {string} 组件的名字
26400
26155
  * @param styleFn {GenerateStyle} 生成样式的函数
26401
26156
  * @returns {UseStyleResult}
26402
26157
  */
26403
- function useStyle(componentName, styleFn, deps) {
26158
+ function useStyle(componentName, styleFn) {
26404
26159
  var _useToken = useStyle_useToken(),
26405
26160
  token = _useToken.token,
26406
26161
  hashId = _useToken.hashId,
26407
26162
  theme = _useToken.theme;
26163
+ var proContext = (0,external_React_.useContext)(ProProvider);
26164
+ var proHashId = hashCode(JSON.stringify(proContext.token || {}));
26408
26165
  var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
26409
26166
  getPrefixCls = _useContext.getPrefixCls;
26410
26167
  /**
@@ -26416,11 +26173,11 @@ function useStyle(componentName, styleFn, deps) {
26416
26173
  return {
26417
26174
  wrapSSR: useStyleRegister({
26418
26175
  theme: theme,
26419
- token: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, deps), token),
26176
+ token: token,
26420
26177
  hashId: hashId,
26421
- path: [componentName]
26178
+ path: [componentName, "pro-".concat(proHashId)]
26422
26179
  }, function () {
26423
- return styleFn(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
26180
+ return styleFn(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), (proContext === null || proContext === void 0 ? void 0 : proContext.token) || {}), {}, {
26424
26181
  antCls: '.' + getPrefixCls(),
26425
26182
  proComponentsCls: proComponentsCls
26426
26183
  }));
@@ -26428,6 +26185,359 @@ function useStyle(componentName, styleFn, deps) {
26428
26185
  hashId: hashId
26429
26186
  };
26430
26187
  }
26188
+ ;// CONCATENATED MODULE: ./packages/provider/es/typing/layoutToken.js
26189
+
26190
+
26191
+ var getLayoutDesignToken = function getLayoutDesignToken(designTokens, antdToken) {
26192
+ var _finalDesignTokens$si, _finalDesignTokens$pa, _finalDesignTokens$pa2;
26193
+ var finalDesignTokens = objectSpread2_objectSpread2({}, designTokens);
26194
+ return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
26195
+ bgLayout: 'linear-gradient(#fff, #f7f8fa 28%)',
26196
+ colorTextAppListIcon: '#666',
26197
+ appListIconHoverBgColor: finalDesignTokens === null || finalDesignTokens === void 0 ? void 0 : (_finalDesignTokens$si = finalDesignTokens.sider) === null || _finalDesignTokens$si === void 0 ? void 0 : _finalDesignTokens$si.colorBgMenuItemSelected,
26198
+ colorBgAppListIconHover: 'rgba(0, 0, 0, 0.04)',
26199
+ colorTextAppListIconHover: antdToken.colorTextBase
26200
+ }, finalDesignTokens), {}, {
26201
+ header: objectSpread2_objectSpread2({
26202
+ colorBgHeader: 'rgba(240, 242, 245, 0.4)',
26203
+ colorHeaderTitle: antdToken.colorText,
26204
+ colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
26205
+ colorBgMenuItemSelected: 'transparent',
26206
+ colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
26207
+ colorBgRightActionsItemHover: setAlpha(antdToken.colorTextBase, 0.03),
26208
+ colorTextRightActionsItem: antdToken.colorTextTertiary,
26209
+ heightLayoutHeader: 56,
26210
+ colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
26211
+ colorTextMenuSecondary: antdToken.colorTextTertiary,
26212
+ colorTextMenuTitle: antdToken.colorText,
26213
+ colorTextMenuActive: antdToken.colorText
26214
+ }, finalDesignTokens.header),
26215
+ sider: objectSpread2_objectSpread2({
26216
+ paddingInlineLayoutMenu: 8,
26217
+ paddingBlockLayoutMenu: 8,
26218
+ colorBgCollapsedButton: '#fff',
26219
+ colorTextCollapsedButtonHover: antdToken.colorTextSecondary,
26220
+ colorTextCollapsedButton: setAlpha(antdToken.colorTextBase, 0.25),
26221
+ colorMenuBackground: 'transparent',
26222
+ colorBgMenuItemCollapsedHover: 'rgba(90, 75, 75, 0.03)',
26223
+ colorBgMenuItemCollapsedSelected: setAlpha(antdToken.colorTextBase, 0.04),
26224
+ colorMenuItemDivider: setAlpha(antdToken.colorTextBase, 0.06),
26225
+ colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
26226
+ colorBgMenuItemSelected: setAlpha(antdToken.colorTextBase, 0.04),
26227
+ colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
26228
+ colorTextMenuActive: antdToken.colorText,
26229
+ colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
26230
+ colorTextMenuSecondary: antdToken.colorTextTertiary,
26231
+ colorTextMenuTitle: antdToken.colorText,
26232
+ colorTextSubMenuSelected: setAlpha(antdToken.colorTextBase, 0.95)
26233
+ }, finalDesignTokens.sider),
26234
+ pageContainer: objectSpread2_objectSpread2({
26235
+ colorBgPageContainer: 'transparent',
26236
+ paddingInlinePageContainerContent: ((_finalDesignTokens$pa = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa === void 0 ? void 0 : _finalDesignTokens$pa.marginInlinePageContainerContent) || 40,
26237
+ paddingBlockPageContainerContent: ((_finalDesignTokens$pa2 = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa2 === void 0 ? void 0 : _finalDesignTokens$pa2.marginBlockPageContainerContent) || 24,
26238
+ colorBgPageContainerFixed: '#fff'
26239
+ }, finalDesignTokens.pageContainer)
26240
+ });
26241
+ };
26242
+ ;// CONCATENATED MODULE: ./packages/provider/es/utils/merge.js
26243
+
26244
+
26245
+ var merge = function merge() {
26246
+ var obj = {};
26247
+ for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
26248
+ rest[_key] = arguments[_key];
26249
+ }
26250
+ var il = rest.length;
26251
+ var key;
26252
+ var i = 0;
26253
+ for (; i < il; i += 1) {
26254
+ // eslint-disable-next-line no-restricted-syntax
26255
+ for (key in rest[i]) {
26256
+ if (rest[i].hasOwnProperty(key)) {
26257
+ if (typeof_typeof(obj[key]) === 'object' && typeof_typeof(rest[i][key]) === 'object' && obj[key] !== undefined && obj[key] !== null && !Array.isArray(obj[key]) && !Array.isArray(rest[i][key])) {
26258
+ obj[key] = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj[key]), rest[i][key]);
26259
+ } else {
26260
+ obj[key] = rest[i][key];
26261
+ }
26262
+ }
26263
+ }
26264
+ }
26265
+ return obj;
26266
+ };
26267
+ ;// CONCATENATED MODULE: ./packages/provider/es/index.js
26268
+
26269
+
26270
+
26271
+ //@ts-ignore
26272
+
26273
+
26274
+
26275
+
26276
+
26277
+
26278
+
26279
+
26280
+
26281
+
26282
+
26283
+
26284
+
26285
+
26286
+
26287
+
26288
+
26289
+
26290
+
26291
+
26292
+
26293
+
26294
+
26295
+
26296
+
26297
+
26298
+
26299
+
26300
+
26301
+
26302
+ var _ref = external_antd_.theme || {
26303
+ useToken: function useToken() {
26304
+ return {
26305
+ hashId: ''
26306
+ };
26307
+ }
26308
+ },
26309
+ es_useToken = _ref.useToken;
26310
+ /**
26311
+ * 安全的从一个对象中读取相应的值
26312
+ * @param source
26313
+ * @param path
26314
+ * @param defaultValue
26315
+ * @returns
26316
+ */
26317
+ function get(source, path, defaultValue) {
26318
+ // a[3].b -> a.3.b
26319
+ var paths = path.replace(/\[(\d+)\]/g, '.$1').split('.');
26320
+ var result = source;
26321
+ var message = defaultValue;
26322
+ // eslint-disable-next-line no-restricted-syntax
26323
+ var _iterator = _createForOfIteratorHelper(paths),
26324
+ _step;
26325
+ try {
26326
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
26327
+ var p = _step.value;
26328
+ message = Object(result)[p];
26329
+ result = Object(result)[p];
26330
+ if (message === undefined) {
26331
+ return defaultValue;
26332
+ }
26333
+ }
26334
+ } catch (err) {
26335
+ _iterator.e(err);
26336
+ } finally {
26337
+ _iterator.f();
26338
+ }
26339
+ return message;
26340
+ }
26341
+ /**
26342
+ * 创建一个国际化的操作函数
26343
+ *
26344
+ * @param locale
26345
+ * @param localeMap
26346
+ */
26347
+ var createIntl = function createIntl(locale, localeMap) {
26348
+ return {
26349
+ getMessage: function getMessage(id, defaultMessage) {
26350
+ return get(localeMap, id, defaultMessage) || defaultMessage;
26351
+ },
26352
+ locale: locale
26353
+ };
26354
+ };
26355
+ var mnMNIntl = createIntl('mn_MN', mn_MN);
26356
+ var arEGIntl = createIntl('ar_EG', ar_EG);
26357
+ var zhCNIntl = createIntl('zh_CN', provider_es_locale_zh_CN);
26358
+ var enUSIntl = createIntl('en_US', en_US);
26359
+ var enGBIntl = createIntl('en_GB', en_GB);
26360
+ var viVNIntl = createIntl('vi_VN', vi_VN);
26361
+ var itITIntl = createIntl('it_IT', it_IT);
26362
+ var jaJPIntl = createIntl('ja_JP', ja_JP);
26363
+ var esESIntl = createIntl('es_ES', es_ES);
26364
+ var caESIntl = createIntl('ca_ES', ca_ES);
26365
+ var ruRUIntl = createIntl('ru_RU', ru_RU);
26366
+ var srRSIntl = createIntl('sr_RS', sr_RS);
26367
+ var msMYIntl = createIntl('ms_MY', ms_MY);
26368
+ var zhTWIntl = createIntl('zh_TW', zh_TW);
26369
+ var frFRIntl = createIntl('fr_FR', fr_FR);
26370
+ var ptBRIntl = createIntl('pt_BR', pt_BR);
26371
+ var koKRIntl = createIntl('ko_KR', ko_KR);
26372
+ var idIDIntl = createIntl('id_ID', id_ID);
26373
+ var deDEIntl = createIntl('de_DE', de_DE);
26374
+ var faIRIntl = createIntl('fa_IR', fa_IR);
26375
+ var trTRIntl = createIntl('tr_TR', tr_TR);
26376
+ var plPLIntl = createIntl('pl_PL', pl_PL);
26377
+ var hrHRIntl = createIntl('hr_', hr_HR);
26378
+ var intlMap = {
26379
+ 'mn-MN': mnMNIntl,
26380
+ 'ar-EG': arEGIntl,
26381
+ 'zh-CN': zhCNIntl,
26382
+ 'en-US': enUSIntl,
26383
+ 'en-GB': enGBIntl,
26384
+ 'vi-VN': viVNIntl,
26385
+ 'it-IT': itITIntl,
26386
+ 'ja-JP': jaJPIntl,
26387
+ 'es-ES': esESIntl,
26388
+ 'ca-ES': caESIntl,
26389
+ 'ru-RU': ruRUIntl,
26390
+ 'sr-RS': srRSIntl,
26391
+ 'ms-MY': msMYIntl,
26392
+ 'zh-TW': zhTWIntl,
26393
+ 'fr-FR': frFRIntl,
26394
+ 'pt-BR': ptBRIntl,
26395
+ 'ko-KR': koKRIntl,
26396
+ 'id-ID': idIDIntl,
26397
+ 'de-DE': deDEIntl,
26398
+ 'fa-IR': faIRIntl,
26399
+ 'tr-TR': trTRIntl,
26400
+ 'pl-PL': plPLIntl,
26401
+ 'hr-HR': hrHRIntl
26402
+ };
26403
+ var intlMapKeys = Object.keys(intlMap);
26404
+
26405
+ /* Creating a context object with the default values. */
26406
+ var es_ConfigContext = /*#__PURE__*/external_React_default().createContext({
26407
+ intl: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, zhCNIntl), {}, {
26408
+ locale: 'default'
26409
+ }),
26410
+ isDeps: false,
26411
+ valueTypeMap: {}
26412
+ });
26413
+ var ConfigConsumer = es_ConfigContext.Consumer,
26414
+ ConfigProvider = es_ConfigContext.Provider;
26415
+ /**
26416
+ * 根据 antd 的 key 来找到的 locale 插件的 key
26417
+ *
26418
+ * @param localeKey
26419
+ */
26420
+
26421
+ var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) {
26422
+ if (!localeKey) {
26423
+ return 'zh-CN';
26424
+ }
26425
+ var localeName = localeKey.toLocaleLowerCase();
26426
+ return intlMapKeys.find(function (intlKey) {
26427
+ var LowerCaseKey = intlKey.toLocaleLowerCase();
26428
+ return LowerCaseKey.includes(localeName);
26429
+ });
26430
+ };
26431
+ /**
26432
+ * 组件解除挂载后清空一下 cache
26433
+ *
26434
+ * @returns
26435
+ */
26436
+ var CacheClean = function CacheClean() {
26437
+ var _useSWRConfig = useSWRConfig(),
26438
+ cache = _useSWRConfig.cache;
26439
+ (0,external_React_.useEffect)(function () {
26440
+ return function () {
26441
+ // is a map
26442
+ // @ts-ignore
26443
+ cache.clear();
26444
+ };
26445
+ // eslint-disable-next-line react-hooks/exhaustive-deps
26446
+ }, []);
26447
+ return null;
26448
+ };
26449
+ /**
26450
+ * 如果没有配置 locale,这里组件会根据 antd 的 key 来自动选择
26451
+ *
26452
+ * @param param0
26453
+ */
26454
+ var ConfigProviderWrap = function ConfigProviderWrap(_ref2) {
26455
+ var children = _ref2.children,
26456
+ _ref2$autoClearCache = _ref2.autoClearCache,
26457
+ autoClearCache = _ref2$autoClearCache === void 0 ? false : _ref2$autoClearCache,
26458
+ propsToken = _ref2.token;
26459
+ var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
26460
+ locale = _useContext.locale,
26461
+ getPrefixCls = _useContext.getPrefixCls;
26462
+ var tokenContext = es_useToken === null || es_useToken === void 0 ? void 0 : es_useToken();
26463
+ // 如果 locale 不存在自动注入的 AntdConfigProvider
26464
+ var Provider = locale === undefined ? external_antd_.ConfigProvider : (external_React_default()).Fragment;
26465
+ var proProvide = (0,external_React_.useContext)(es_ConfigContext);
26466
+ var proProvideValue = (0,external_React_.useMemo)(function () {
26467
+ var _proProvide$intl, _proProvide$token;
26468
+ var localeName = locale === null || locale === void 0 ? void 0 : locale.locale;
26469
+ var key = findIntlKeyByAntdLocaleKey(localeName);
26470
+ // antd 的 key 存在的时候以 antd 的为主
26471
+ var intl = localeName && ((_proProvide$intl = proProvide.intl) === null || _proProvide$intl === void 0 ? void 0 : _proProvide$intl.locale) === 'default' ? intlMap[key] : proProvide.intl || intlMap[key];
26472
+ /**
26473
+ * 合并一下token,不然导致嵌套 token 失效
26474
+ */
26475
+ var proLayoutTokenMerge = merge(((_proProvide$token = proProvide.token) === null || _proProvide$token === void 0 ? void 0 : _proProvide$token.layout) || {}, getLayoutDesignToken((propsToken === null || propsToken === void 0 ? void 0 : propsToken.layout) || {}, tokenContext.token));
26476
+ return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
26477
+ token: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, proProvide.token), {}, {
26478
+ layout: proLayoutTokenMerge
26479
+ })
26480
+ }, proProvide), {}, {
26481
+ isDeps: true,
26482
+ intl: intl || zhCNIntl
26483
+ });
26484
+ }, [locale === null || locale === void 0 ? void 0 : locale.locale, proProvide, tokenContext, propsToken]);
26485
+ var configProviderDom = (0,external_React_.useMemo)(function () {
26486
+ var _process$env$NODE_ENV;
26487
+ // 自动注入 antd 的配置
26488
+ var configProvider = locale === undefined ? {
26489
+ locale: es_locale_zh_CN,
26490
+ theme: {
26491
+ hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test'
26492
+ }
26493
+ } : {};
26494
+ var provide = (0,jsx_runtime.jsx)(Provider, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, configProvider), {}, {
26495
+ children: (0,jsx_runtime.jsx)(ConfigProvider, {
26496
+ value: proProvideValue,
26497
+ children: (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
26498
+ children: [autoClearCache && (0,jsx_runtime.jsx)(CacheClean, {}), children]
26499
+ })
26500
+ })
26501
+ }));
26502
+ if (proProvide.isDeps) return provide;
26503
+ return (0,jsx_runtime.jsx)("div", {
26504
+ className: "".concat((getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro', " ").concat(tokenContext.hashId),
26505
+ children: provide
26506
+ });
26507
+ }, [Provider, autoClearCache, children, getPrefixCls, locale, proProvide.isDeps, proProvideValue, tokenContext.hashId]);
26508
+ if (!autoClearCache) return configProviderDom;
26509
+ return (0,jsx_runtime.jsx)(SWRConfig, {
26510
+ value: {
26511
+ provider: function provider() {
26512
+ return new Map();
26513
+ }
26514
+ },
26515
+ children: configProviderDom
26516
+ });
26517
+ };
26518
+ /**
26519
+ * It returns the intl object from the context if it exists, otherwise it returns the intl object for
26520
+ * the current locale
26521
+ * @returns The return value of the function is the intl object.
26522
+ */
26523
+ function useIntl() {
26524
+ var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
26525
+ locale = _useContext2.locale;
26526
+ var _useContext3 = (0,external_React_.useContext)(es_ConfigContext),
26527
+ intl = _useContext3.intl;
26528
+ if (intl && intl.locale !== 'default') {
26529
+ return intl || zhCNIntl;
26530
+ }
26531
+ if (locale === null || locale === void 0 ? void 0 : locale.locale) {
26532
+ return intlMap[findIntlKeyByAntdLocaleKey(locale.locale)] || zhCNIntl;
26533
+ }
26534
+ return zhCNIntl;
26535
+ }
26536
+ var ProProvider = es_ConfigContext;
26537
+ /* harmony default export */ var es = (es_ConfigContext);
26538
+ // EXTERNAL MODULE: ./node_modules/classnames/index.js
26539
+ var classnames = __webpack_require__(8266);
26540
+ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
26431
26541
  ;// CONCATENATED MODULE: ./packages/utils/es/components/DropdownFooter/style.js
26432
26542
 
26433
26543
 
@@ -28706,7 +28816,7 @@ var isUrl = function isUrl(path) {
28706
28816
  * @param {any[]} ...rest
28707
28817
  * @returns T
28708
28818
  */
28709
- var merge = function merge() {
28819
+ var merge_merge = function merge() {
28710
28820
  var obj = {};
28711
28821
  for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
28712
28822
  rest[_key] = arguments[_key];
@@ -28972,7 +29082,7 @@ var transformKeySubmitValue = function transformKeySubmitValue(values, dataForma
28972
29082
  // namePath、transform在omit为false时需正常返回 https://github.com/ant-design/pro-components/issues/2901#issue-908097115
28973
29083
  return omit ? result : tempValues;
28974
29084
  };
28975
- finalValues = Array.isArray(values) && Array.isArray(finalValues) ? toConsumableArray_toConsumableArray(gen(values)) : merge({}, gen(values), finalValues);
29085
+ finalValues = Array.isArray(values) && Array.isArray(finalValues) ? toConsumableArray_toConsumableArray(gen(values)) : merge_merge({}, gen(values), finalValues);
28976
29086
  return finalValues;
28977
29087
  };
28978
29088
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js
@@ -29217,7 +29327,7 @@ function SaveEditableAction(_ref) {
29217
29327
  return onSave === null || onSave === void 0 ? void 0 : onSave(recordKey,
29218
29328
  // 如果是 map 模式,fields 就是一个值,所以需要set 到对象中
29219
29329
  // 数据模式 fields 是一个对象,所以不需要
29220
- merge({}, row, data), row, newLineConfig);
29330
+ merge_merge({}, row, data), row, newLineConfig);
29221
29331
  case 13:
29222
29332
  res = _context.sent;
29223
29333
  setLoading(false);
@@ -30626,7 +30736,7 @@ QuestionCircleOutlined_QuestionCircleOutlined.displayName = 'QuestionCircleOutli
30626
30736
 
30627
30737
 
30628
30738
  var Statistic_style_genProStyle = function genProStyle(token) {
30629
- var _layoutHorizontal, _layoutInline, _token$componentCls;
30739
+ var _layoutHorizonta, _layoutInline, _token$componentCls;
30630
30740
  return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
30631
30741
  display: 'flex',
30632
30742
  fontSize: token.fontSize,
@@ -30636,10 +30746,12 @@ var Statistic_style_genProStyle = function genProStyle(token) {
30636
30746
  '&-tip': {
30637
30747
  marginInlineStart: 4
30638
30748
  },
30639
- '&-wrapper': {
30749
+ '&-wrapper': defineProperty_defineProperty({
30640
30750
  display: 'flex',
30641
30751
  width: '100%'
30642
- },
30752
+ }, "".concat(token.componentCls, "-status"), {
30753
+ width: '14px'
30754
+ }),
30643
30755
  '&-icon': {
30644
30756
  marginInlineEnd: 16
30645
30757
  },
@@ -30672,16 +30784,16 @@ var Statistic_style_genProStyle = function genProStyle(token) {
30672
30784
  color: '#389e0d'
30673
30785
  }, "".concat(token.componentCls, "-trend-icon"), {
30674
30786
  borderBlockEndColor: '#52c41a'
30675
- }))), defineProperty_defineProperty(_token$componentCls, '&-layout-horizontal', (_layoutHorizontal = {
30787
+ }))), defineProperty_defineProperty(_token$componentCls, '& &-layout-horizontal', (_layoutHorizonta = {
30676
30788
  display: 'flex',
30677
30789
  justifyContent: 'space-between'
30678
- }, defineProperty_defineProperty(_layoutHorizontal, "".concat(token.antCls, "-statistic-title"), {
30790
+ }, defineProperty_defineProperty(_layoutHorizonta, "".concat(token.antCls, "-statistic-title"), {
30679
30791
  marginBlockEnd: 0
30680
- }), defineProperty_defineProperty(_layoutHorizontal, "".concat(token.antCls, "-statistic-content-value"), {
30792
+ }), defineProperty_defineProperty(_layoutHorizonta, "".concat(token.antCls, "-statistic-content-value"), {
30681
30793
  fontWeight: 500
30682
- }), defineProperty_defineProperty(_layoutHorizontal, "".concat(token.antCls, "-statistic-title,").concat(token.antCls, "-statistic-content,").concat(token.antCls, "-statistic-content-suffix,").concat(token.antCls, "-statistic-content-prefix,").concat(token.antCls, "-statistic-content-value-decimal"), {
30794
+ }), defineProperty_defineProperty(_layoutHorizonta, "".concat(token.antCls, "-statistic-title,").concat(token.antCls, "-statistic-content,").concat(token.antCls, "-statistic-content-suffix,").concat(token.antCls, "-statistic-content-prefix,").concat(token.antCls, "-statistic-content-value-decimal"), {
30683
30795
  fontSize: token.fontSizeBase
30684
- }), _layoutHorizontal)), defineProperty_defineProperty(_token$componentCls, '&-layout-inline', (_layoutInline = {
30796
+ }), _layoutHorizonta)), defineProperty_defineProperty(_token$componentCls, '& &-layout-inline', (_layoutInline = {
30685
30797
  display: 'inline-flex',
30686
30798
  color: token.colorTextSecondary
30687
30799
  }, defineProperty_defineProperty(_layoutInline, "".concat(token.antCls, "-statistic-title"), {
@@ -30734,12 +30846,14 @@ var Statistic = function Statistic(props) {
30734
30846
  var _useStyle = Statistic_style_useStyle(prefixCls),
30735
30847
  wrapSSR = _useStyle.wrapSSR,
30736
30848
  hashId = _useStyle.hashId;
30737
- var classString = classnames_default()(prefixCls, className);
30738
- var statusClass = classnames_default()("".concat(prefixCls, "-status"));
30739
- var iconClass = classnames_default()("".concat(prefixCls, "-icon"));
30740
- var wrapperClass = classnames_default()("".concat(prefixCls, "-wrapper"));
30741
- var contentClass = classnames_default()("".concat(prefixCls, "-content"));
30742
- var statisticClassName = classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-layout-").concat(layout), layout), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-trend-").concat(trend), trend), defineProperty_defineProperty(_classNames, "hashId", hashId), _classNames));
30849
+ var classString = classnames_default()(prefixCls, className, hashId);
30850
+ var statusClass = classnames_default()("".concat(prefixCls, "-status"), hashId);
30851
+ var iconClass = classnames_default()("".concat(prefixCls, "-icon"), hashId);
30852
+ var wrapperClass = classnames_default()("".concat(prefixCls, "-wrapper"), hashId);
30853
+ var contentClass = classnames_default()("".concat(prefixCls, "-content"), hashId);
30854
+ var statisticClassName = classnames_default()((_classNames = {
30855
+ hashId: hashId
30856
+ }, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-layout-").concat(layout), layout), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-trend-").concat(trend), trend), _classNames));
30743
30857
  var tipDom = tip && (0,jsx_runtime.jsx)(external_antd_.Tooltip, {
30744
30858
  title: tip,
30745
30859
  children: (0,jsx_runtime.jsx)(icons_QuestionCircleOutlined, {
@@ -30761,6 +30875,7 @@ var Statistic = function Statistic(props) {
30761
30875
  className: iconClass,
30762
30876
  children: icon
30763
30877
  });
30878
+ console.log('classString', classString);
30764
30879
  return wrapSSR((0,jsx_runtime.jsxs)("div", {
30765
30880
  className: classString,
30766
30881
  style: style,
@@ -31708,8 +31823,9 @@ var ProCardOperation = function ProCardOperation(props) {
31708
31823
  getPrefixCls = _useContext.getPrefixCls;
31709
31824
  var prefixCls = getPrefixCls('pro-card-operation');
31710
31825
  var _useStyle = Operation_style_useStyle(prefixCls),
31711
- wrapSSR = _useStyle.wrapSSR;
31712
- var classString = classnames_default()(prefixCls, className);
31826
+ wrapSSR = _useStyle.wrapSSR,
31827
+ hashId = _useStyle.hashId;
31828
+ var classString = classnames_default()(prefixCls, className, hashId);
31713
31829
  return wrapSSR((0,jsx_runtime.jsx)("div", {
31714
31830
  className: classString,
31715
31831
  style: style,
@@ -36017,9 +36133,9 @@ function createField(Field, config) {
36017
36133
  // eslint-disable-next-line react-hooks/exhaustive-deps
36018
36134
  isDeepEqualReact(prefRest, rest, ['onChange', 'onBlur', 'onFocus', 'record']) ? undefined : {}]);
36019
36135
  // 使用useMemo包裹避免不必要的re-render
36020
- var FormItem = (0,external_React_.useMemo)(function () {
36136
+ var formItem = (0,external_React_.useMemo)(function () {
36021
36137
  var _field$props$allowCle, _field$props, _field$props2, _otherProps$name;
36022
- return (0,jsx_runtime.jsx)(components_FormItem
36138
+ return (0,jsx_runtime.jsx)(FormItem
36023
36139
  // 全局的提供一个 tip 功能,可以减少代码量
36024
36140
  // 轻量模式下不通过 FormItem 显示 label
36025
36141
  , objectSpread2_objectSpread2(objectSpread2_objectSpread2({
@@ -36054,7 +36170,7 @@ function createField(Field, config) {
36054
36170
  var _useGridHelpers = useGridHelpers(rest),
36055
36171
  ColWrapper = _useGridHelpers.ColWrapper;
36056
36172
  return (0,jsx_runtime.jsx)(ColWrapper, {
36057
- children: FormItem
36173
+ children: formItem
36058
36174
  });
36059
36175
  };
36060
36176
  var DependencyWrapper = function DependencyWrapper(props) {
@@ -40024,8 +40140,10 @@ var FieldDigit = function FieldDigit(_ref, ref) {
40024
40140
  val = Number(val);
40025
40141
  }
40026
40142
  if (typeof val === 'number') {
40027
- var _val, _val$toFixed, _fieldProps$precision;
40028
- val = (_val = val) === null || _val === void 0 ? void 0 : (_val$toFixed = _val.toFixed) === null || _val$toFixed === void 0 ? void 0 : _val$toFixed.call(_val, (_fieldProps$precision = fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : 0);
40143
+ if (fieldProps.precision) {
40144
+ var _val, _val$toFixed, _fieldProps$precision;
40145
+ val = (_val = val) === null || _val === void 0 ? void 0 : (_val$toFixed = _val.toFixed) === null || _val$toFixed === void 0 ? void 0 : _val$toFixed.call(_val, (_fieldProps$precision = fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : 0);
40146
+ }
40029
40147
  val = Number(val);
40030
40148
  }
40031
40149
  return fieldProps === null || fieldProps === void 0 ? void 0 : (_fieldProps$onChange = fieldProps.onChange) === null || _fieldProps$onChange === void 0 ? void 0 : _fieldProps$onChange.call(fieldProps, val);
@@ -43899,7 +44017,7 @@ var ProFormDependency = function ProFormDependency(_ref) {
43899
44017
  var value = (_context$getFieldForm = context.getFieldFormatValueObject) === null || _context$getFieldForm === void 0 ? void 0 : _context$getFieldForm.call(context, pathToGet);
43900
44018
  if (value && Object.keys(value).length) {
43901
44019
  // transform 会生成多余的value,这里需要注入一下
43902
- values = merge({}, values, value);
44020
+ values = merge_merge({}, values, value);
43903
44021
  if ((0,utils_get["default"])(value, pathToGet)) {
43904
44022
  values = (0,set/* default */.Z)(values, finalName, (0,utils_get["default"])(value, pathToGet), false);
43905
44023
  }
@@ -44341,7 +44459,7 @@ var ProFormItem = function ProFormItem(props) {
44341
44459
  }), rest.proFormFieldKey || ((_rest$name4 = rest.name) === null || _rest$name4 === void 0 ? void 0 : _rest$name4.toString()));
44342
44460
  };
44343
44461
 
44344
- /* harmony default export */ var components_FormItem = (ProFormItem);
44462
+ /* harmony default export */ var FormItem = (ProFormItem);
44345
44463
  ;// CONCATENATED MODULE: ./packages/form/es/components/Group/style.js
44346
44464
 
44347
44465
 
@@ -47457,7 +47575,7 @@ function StepsForm(props) {
47457
47575
  return _context.abrupt("return");
47458
47576
  case 3:
47459
47577
  setLoading(true);
47460
- values = merge.apply(void 0, [{}].concat(toConsumableArray_toConsumableArray(Array.from(formDataRef.current.values()))));
47578
+ values = merge_merge.apply(void 0, [{}].concat(toConsumableArray_toConsumableArray(Array.from(formDataRef.current.values()))));
47461
47579
  _context.prev = 5;
47462
47580
  _context.next = 8;
47463
47581
  return onFinish(values);
@@ -49454,7 +49572,7 @@ function ProForm(props) {
49454
49572
  }
49455
49573
  ProForm.Group = components_Group;
49456
49574
  ProForm.useForm = external_antd_.Form.useForm;
49457
- ProForm.Item = components_FormItem;
49575
+ ProForm.Item = FormItem;
49458
49576
  ProForm.useWatch = external_antd_.Form.useWatch;
49459
49577
  ProForm.ErrorList = external_antd_.Form.ErrorList;
49460
49578
  ProForm.Provider = external_antd_.Form.Provider;
@@ -51435,75 +51553,6 @@ var GridContent = function GridContent(props) {
51435
51553
  }));
51436
51554
  };
51437
51555
 
51438
- ;// CONCATENATED MODULE: ./packages/layout/es/context/ProLayoutContext.js
51439
-
51440
-
51441
-
51442
-
51443
- var getLayoutDesignToken = function getLayoutDesignToken(designTokens, antdToken) {
51444
- var _finalDesignTokens$si, _finalDesignTokens$pa, _finalDesignTokens$pa2;
51445
- var finalDesignTokens = objectSpread2_objectSpread2({}, designTokens);
51446
- return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
51447
- bgLayout: 'linear-gradient(#fff, #f7f8fa 28%)',
51448
- colorTextAppListIcon: '#666',
51449
- appListIconHoverBgColor: finalDesignTokens === null || finalDesignTokens === void 0 ? void 0 : (_finalDesignTokens$si = finalDesignTokens.sider) === null || _finalDesignTokens$si === void 0 ? void 0 : _finalDesignTokens$si.colorBgMenuItemSelected,
51450
- colorBgAppListIconHover: 'rgba(0, 0, 0, 0.04)',
51451
- colorTextAppListIconHover: antdToken.colorTextBase
51452
- }, finalDesignTokens), {}, {
51453
- header: objectSpread2_objectSpread2({
51454
- colorBgHeader: 'rgba(240, 242, 245, 0.4)',
51455
- colorHeaderTitle: antdToken.colorText,
51456
- colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
51457
- colorBgMenuItemSelected: 'transparent',
51458
- colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
51459
- colorBgRightActionsItemHover: setAlpha(antdToken.colorTextBase, 0.03),
51460
- colorTextRightActionsItem: antdToken.colorTextTertiary,
51461
- heightLayoutHeader: 56,
51462
- colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
51463
- colorTextMenuSecondary: antdToken.colorTextTertiary,
51464
- colorTextMenuTitle: antdToken.colorText,
51465
- colorTextMenuActive: antdToken.colorText
51466
- }, finalDesignTokens.header),
51467
- sider: objectSpread2_objectSpread2({
51468
- paddingInlineLayoutMenu: 8,
51469
- paddingBlockLayoutMenu: 8,
51470
- colorBgCollapsedButton: '#fff',
51471
- colorTextCollapsedButtonHover: antdToken.colorTextSecondary,
51472
- colorTextCollapsedButton: setAlpha(antdToken.colorTextBase, 0.25),
51473
- colorMenuBackground: 'transparent',
51474
- colorBgMenuItemCollapsedHover: 'rgba(90, 75, 75, 0.03)',
51475
- colorBgMenuItemCollapsedSelected: setAlpha(antdToken.colorTextBase, 0.04),
51476
- colorMenuItemDivider: setAlpha(antdToken.colorTextBase, 0.06),
51477
- colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
51478
- colorBgMenuItemSelected: setAlpha(antdToken.colorTextBase, 0.04),
51479
- colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
51480
- colorTextMenuActive: antdToken.colorText,
51481
- colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
51482
- colorTextMenuSecondary: antdToken.colorTextTertiary,
51483
- colorTextMenuTitle: antdToken.colorText,
51484
- colorTextSubMenuSelected: setAlpha(antdToken.colorTextBase, 0.95)
51485
- }, finalDesignTokens.sider),
51486
- pageContainer: objectSpread2_objectSpread2({
51487
- colorBgPageContainer: 'transparent',
51488
- paddingInlinePageContainerContent: ((_finalDesignTokens$pa = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa === void 0 ? void 0 : _finalDesignTokens$pa.marginInlinePageContainerContent) || 40,
51489
- paddingBlockPageContainerContent: ((_finalDesignTokens$pa2 = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa2 === void 0 ? void 0 : _finalDesignTokens$pa2.marginBlockPageContainerContent) || 24,
51490
- colorBgPageContainerFixed: '#fff'
51491
- }, finalDesignTokens.pageContainer)
51492
- });
51493
- };
51494
- var defaultToken = getLayoutDesignToken({}, {});
51495
- var ProLayoutContext = /*#__PURE__*/external_React_default().createContext(defaultToken);
51496
- var ProLayoutProvider = function ProLayoutProvider(props) {
51497
- var _useToken = useStyle_useToken(),
51498
- token = _useToken.token,
51499
- hashId = _useToken.hashId;
51500
- return (0,jsx_runtime.jsx)(ProLayoutContext.Provider, {
51501
- value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, getLayoutDesignToken((props === null || props === void 0 ? void 0 : props.token) || {}, token)), {}, {
51502
- hashId: hashId
51503
- }),
51504
- children: props.children
51505
- });
51506
- };
51507
51556
  // EXTERNAL MODULE: ./node_modules/@ant-design/icons/ArrowLeftOutlined.js
51508
51557
  var ArrowLeftOutlined = __webpack_require__(2997);
51509
51558
  var ArrowLeftOutlined_default = /*#__PURE__*/__webpack_require__.n(ArrowLeftOutlined);
@@ -51840,7 +51889,7 @@ var getPixelRatio = function getPixelRatio(context) {
51840
51889
  if (!context) {
51841
51890
  return 1;
51842
51891
  }
51843
- var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1;
51892
+ var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || 1;
51844
51893
  return (window.devicePixelRatio || 1) / backingStore;
51845
51894
  };
51846
51895
  var WaterMark = function WaterMark(props) {
@@ -51956,8 +52005,6 @@ var WaterMark = function WaterMark(props) {
51956
52005
 
51957
52006
 
51958
52007
 
51959
-
51960
-
51961
52008
  var _map = [576, 768, 992, 1200].map(function (bp) {
51962
52009
  return "@media (min-width: ".concat(bp, "px)");
51963
52010
  }),
@@ -51967,24 +52014,24 @@ var _map = [576, 768, 992, 1200].map(function (bp) {
51967
52014
  lg = _map2[2],
51968
52015
  xl = _map2[3];
51969
52016
  var genPageContainerStyle = function genPageContainerStyle(token) {
51970
- var _extraContent, _token$componentCls;
52017
+ var _token$layout, _token$layout$pageCon, _token$layout2, _token$layout2$pageCo, _token$layout3, _token$layout3$pageCo, _token$layout$pageCon2, _token$layout4, _token$layout4$pageCo, _token$layout5, _token$layout5$pageCo, _token$layout6, _token$layout6$pageCo, _token$layout$pageCon3, _token$layout7, _token$layout7$pageCo, _extraContent, _token$componentCls;
51971
52018
  return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
51972
52019
  position: 'relative',
51973
52020
  '&-children-content': {
51974
- paddingBlock: token.paddingBlockPageContainerContent,
51975
- paddingInline: token.paddingInlinePageContainerContent
52021
+ paddingBlock: (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$pageCon = _token$layout.pageContainer) === null || _token$layout$pageCon === void 0 ? void 0 : _token$layout$pageCon.paddingBlockPageContainerContent,
52022
+ paddingInline: (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$pageCo = _token$layout2.pageContainer) === null || _token$layout2$pageCo === void 0 ? void 0 : _token$layout2$pageCo.paddingInlinePageContainerContent
51976
52023
  },
51977
52024
  '&-affix': defineProperty_defineProperty({}, "".concat(token.antCls, "-affix"), defineProperty_defineProperty({}, "".concat(token.componentCls, "-warp"), {
51978
- backgroundColor: token.colorBgPageContainerFixed,
52025
+ backgroundColor: (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$pageCo = _token$layout3.pageContainer) === null || _token$layout3$pageCo === void 0 ? void 0 : _token$layout3$pageCo.colorBgPageContainerFixed,
51979
52026
  transition: 'background-color 0.3s',
51980
52027
  boxShadow: '0 2px 8px #f0f1f2'
51981
52028
  }))
51982
52029
  }, defineProperty_defineProperty(_token$componentCls, '& &-warp-page-header', defineProperty_defineProperty({
51983
- paddingBlockEnd: token.paddingBlockPageContainerContent / 2,
51984
- paddingInlineStart: token.paddingInlinePageContainerContent,
51985
- paddingInlineEnd: token.paddingInlinePageContainerContent
52030
+ paddingBlockEnd: ((_token$layout$pageCon2 = (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$pageCo = _token$layout4.pageContainer) === null || _token$layout4$pageCo === void 0 ? void 0 : _token$layout4$pageCo.paddingBlockPageContainerContent) !== null && _token$layout$pageCon2 !== void 0 ? _token$layout$pageCon2 : 40) / 2,
52031
+ paddingInlineStart: (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$pageCo = _token$layout5.pageContainer) === null || _token$layout5$pageCo === void 0 ? void 0 : _token$layout5$pageCo.paddingInlinePageContainerContent,
52032
+ paddingInlineEnd: (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$pageCo = _token$layout6.pageContainer) === null || _token$layout6$pageCo === void 0 ? void 0 : _token$layout6$pageCo.paddingInlinePageContainerContent
51986
52033
  }, "& ~ ".concat(token.proComponentsCls, "-grid-content"), defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-page-container-children-content"), {
51987
- paddingBlock: token.paddingBlockPageContainerContent / 3
52034
+ paddingBlock: ((_token$layout$pageCon3 = (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$pageCo = _token$layout7.pageContainer) === null || _token$layout7$pageCo === void 0 ? void 0 : _token$layout7$pageCo.paddingBlockPageContainerContent) !== null && _token$layout$pageCon3 !== void 0 ? _token$layout$pageCon3 : 24) / 3
51988
52035
  }))), defineProperty_defineProperty(_token$componentCls, '&-detail', defineProperty_defineProperty({
51989
52036
  display: 'flex'
51990
52037
  }, sm, {
@@ -52016,16 +52063,12 @@ var genPageContainerStyle = function genPageContainerStyle(token) {
52016
52063
  }), _extraContent)), _token$componentCls));
52017
52064
  };
52018
52065
  function PageContainer_style_useStyle(prefixCls, componentsToken) {
52019
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
52020
- pageContainer = _useContext.pageContainer;
52021
52066
  return useStyle('PageContainer', function (token) {
52022
- var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
52067
+ var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
52023
52068
  componentCls: ".".concat(prefixCls)
52024
- }, pageContainer), componentsToken);
52069
+ }, componentsToken);
52025
52070
  return [genPageContainerStyle(proCardToken)];
52026
- },
52027
- // 触发一下更新
52028
- componentsToken);
52071
+ });
52029
52072
  }
52030
52073
  ;// CONCATENATED MODULE: ./packages/layout/es/components/PageContainer/index.js
52031
52074
 
@@ -52046,7 +52089,6 @@ var PageContainer_excluded = ["title", "content", "pageHeaderRender", "header",
52046
52089
 
52047
52090
 
52048
52091
 
52049
-
52050
52092
  function genLoading(spinProps) {
52051
52093
  if (typeof_typeof(spinProps) === 'object') {
52052
52094
  return spinProps;
@@ -52191,7 +52233,7 @@ var memoRenderPageHeader = function memoRenderPageHeader(props) {
52191
52233
  }));
52192
52234
  };
52193
52235
  var PageContainer = function PageContainer(props) {
52194
- var _restProps$header2, _classNames;
52236
+ var _restProps$header2, _token$layout2, _token$layout2$pageCo, _classNames, _token$layout3, _token$layout3$header;
52195
52237
  var children = props.children,
52196
52238
  _props$loading = props.loading,
52197
52239
  loading = _props$loading === void 0 ? false : _props$loading,
@@ -52221,8 +52263,8 @@ var PageContainer = function PageContainer(props) {
52221
52263
  };
52222
52264
  // eslint-disable-next-line react-hooks/exhaustive-deps
52223
52265
  }, []);
52224
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
52225
- pageContainer = _useContext.pageContainer;
52266
+ var _useContext = (0,external_React_.useContext)(ProProvider),
52267
+ token = _useContext.token;
52226
52268
  var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
52227
52269
  getPrefixCls = _useContext2.getPrefixCls;
52228
52270
  var prefixCls = props.prefixCls || getPrefixCls('pro');
@@ -52258,6 +52300,7 @@ var PageContainer = function PageContainer(props) {
52258
52300
  return spinProps.spinning ? (0,jsx_runtime.jsx)(PageLoading, objectSpread2_objectSpread2({}, spinProps)) : null;
52259
52301
  }, [loading]);
52260
52302
  var content = (0,external_React_.useMemo)(function () {
52303
+ var _token$layout, _token$layout$pageCon;
52261
52304
  return children ? (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
52262
52305
  children: [(0,jsx_runtime.jsx)("div", {
52263
52306
  className: classnames_default()("".concat(basePageContainer, "-children-content ").concat(hashId)),
@@ -52269,11 +52312,11 @@ var PageContainer = function PageContainer(props) {
52269
52312
  }), value.hasFooterToolbar && (0,jsx_runtime.jsx)("div", {
52270
52313
  style: {
52271
52314
  height: 64,
52272
- marginBlockStart: pageContainer.paddingBlockPageContainerContent
52315
+ marginBlockStart: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$pageCon = _token$layout.pageContainer) === null || _token$layout$pageCon === void 0 ? void 0 : _token$layout$pageCon.paddingBlockPageContainerContent
52273
52316
  }
52274
52317
  })]
52275
52318
  }) : null;
52276
- }, [children, basePageContainer, hashId, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingBlockPageContainerContent, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingInlinePageContainerContent, value.hasFooterToolbar, pageContainer.paddingBlockPageContainerContent]);
52319
+ }, [children, basePageContainer, hashId, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingBlockPageContainerContent, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingInlinePageContainerContent, value.hasFooterToolbar, token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$pageCo = _token$layout2.pageContainer) === null || _token$layout2$pageCo === void 0 ? void 0 : _token$layout2$pageCo.paddingBlockPageContainerContent]);
52277
52320
  var renderContentDom = (0,external_React_.useMemo)(function () {
52278
52321
  // 只要loadingDom非空我们就渲染loadingDom,否则渲染内容
52279
52322
  var dom = loadingDom || content;
@@ -52286,7 +52329,6 @@ var PageContainer = function PageContainer(props) {
52286
52329
  return dom;
52287
52330
  }, [props.waterMarkProps, value.waterMarkProps, loadingDom, content]);
52288
52331
  var containerClassName = classnames_default()(basePageContainer, hashId, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(basePageContainer, "-with-footer"), footer), defineProperty_defineProperty(_classNames, "".concat(basePageContainer, "-with-affix"), fixedHeader && pageHeaderDom), _classNames));
52289
- var token = (0,external_React_.useContext)(ProLayoutContext);
52290
52332
  return wrapSSR((0,jsx_runtime.jsxs)(ConfigProviderWrap, {
52291
52333
  children: [(0,jsx_runtime.jsxs)("div", {
52292
52334
  style: style,
@@ -52294,7 +52336,7 @@ var PageContainer = function PageContainer(props) {
52294
52336
  children: [fixedHeader && pageHeaderDom ?
52295
52337
  // 在 hasHeader 且 fixedHeader 的情况下,才需要设置高度
52296
52338
  (0,jsx_runtime.jsx)(external_antd_.Affix, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
52297
- offsetTop: value.hasHeader && value.fixedHeader ? token.header.heightLayoutHeader : 0
52339
+ offsetTop: value.hasHeader && value.fixedHeader ? token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$header = _token$layout3.header) === null || _token$layout3$header === void 0 ? void 0 : _token$layout3$header.heightLayoutHeader : 0
52298
52340
  }, affixProps), {}, {
52299
52341
  className: "".concat(basePageContainer, "-affix ").concat(hashId),
52300
52342
  children: (0,jsx_runtime.jsx)("div", {
@@ -52468,19 +52510,18 @@ var DefaultFooter = function DefaultFooter(_ref) {
52468
52510
 
52469
52511
 
52470
52512
 
52471
-
52472
-
52473
52513
  var genProLayoutHeaderStyle = function genProLayoutHeaderStyle(token) {
52514
+ var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header, _token$layout3, _token$layout3$header;
52474
52515
  return defineProperty_defineProperty({}, token.proLayoutCls, defineProperty_defineProperty({}, ".ant-layout-header".concat(token.componentCls), {
52475
- height: token.ProLayoutHeaderHeaderHeight,
52476
- lineHeight: "".concat(token.ProLayoutHeaderHeaderHeight, "px"),
52516
+ height: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader) || 56,
52517
+ lineHeight: "".concat((token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.heightLayoutHeader) || 56, "px"),
52477
52518
  // hitu 用了这个属性,不能删除哦 @南取
52478
52519
  zIndex: 19,
52479
52520
  width: '100%',
52480
52521
  paddingBlock: 0,
52481
52522
  paddingInline: 8,
52482
52523
  borderBlockEnd: "1px solid ".concat(token.colorSplit),
52483
- backgroundColor: token.colorBgHeader || 'rgba(255, 255, 255, 0.4)',
52524
+ backgroundColor: (token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$header = _token$layout3.header) === null || _token$layout3$header === void 0 ? void 0 : _token$layout3$header.colorBgHeader) || 'rgba(255, 255, 255, 0.4)',
52484
52525
  WebkitBackdropFilter: 'blur(8px)',
52485
52526
  backdropFilter: 'blur(8px)',
52486
52527
  '&-fixed-header': {
@@ -52512,14 +52553,11 @@ var genProLayoutHeaderStyle = function genProLayoutHeaderStyle(token) {
52512
52553
  }));
52513
52554
  };
52514
52555
  function header_useStyle(prefixCls, props) {
52515
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
52516
- header = _useContext.header;
52517
52556
  return useStyle('ProLayoutHeader', function (token) {
52518
52557
  var ProLayoutHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
52519
52558
  componentCls: ".".concat(prefixCls),
52520
- proLayoutCls: ".".concat(props.proLayoutCls),
52521
- ProLayoutHeaderHeaderHeight: header.heightLayoutHeader
52522
- }, header);
52559
+ proLayoutCls: ".".concat(props.proLayoutCls)
52560
+ });
52523
52561
  return [genProLayoutHeaderStyle(ProLayoutHeaderToken)];
52524
52562
  });
52525
52563
  }
@@ -52909,10 +52947,8 @@ var genAppsLogoComponentsSimpleListStyle = function genAppsLogoComponentsSimpleL
52909
52947
 
52910
52948
 
52911
52949
 
52912
-
52913
-
52914
52950
  var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
52915
- var _popover;
52951
+ var _token$layout, _token$layout2, _token$layout3, _token$layout4, _token$layout5, _popover;
52916
52952
  return defineProperty_defineProperty({}, token.componentCls, {
52917
52953
  '&-icon': {
52918
52954
  display: 'inline-flex',
@@ -52925,14 +52961,14 @@ var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
52925
52961
  height: 28,
52926
52962
  width: 28,
52927
52963
  cursor: 'pointer',
52928
- color: token.colorTextAppListIcon,
52964
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : _token$layout.colorTextAppListIcon,
52929
52965
  '&:hover': {
52930
- color: token.colorTextAppListIconHover,
52931
- backgroundColor: token.colorBgAppListIconHover
52966
+ color: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : _token$layout2.colorTextAppListIconHover,
52967
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : _token$layout3.colorBgAppListIconHover
52932
52968
  },
52933
52969
  '&-active': {
52934
- color: token.colorTextAppListIconHover,
52935
- backgroundColor: token.colorBgAppListIconHover
52970
+ color: token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : _token$layout4.colorTextAppListIconHover,
52971
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : _token$layout5.colorBgAppListIconHover
52936
52972
  }
52937
52973
  },
52938
52974
  '&-popover': (_popover = {}, defineProperty_defineProperty(_popover, "".concat(token.antCls, "-popover-arrow"), {
@@ -52946,11 +52982,10 @@ var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
52946
52982
  });
52947
52983
  };
52948
52984
  function AppsLogoComponents_style_useStyle(prefixCls) {
52949
- var proToken = (0,external_React_.useContext)(ProLayoutContext);
52950
52985
  return useStyle('AppsLogoComponents', function (token) {
52951
52986
  var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
52952
52987
  componentCls: ".".concat(prefixCls)
52953
- }, proToken);
52988
+ });
52954
52989
  return [genAppsLogoComponentsStyle(proCardToken)];
52955
52990
  });
52956
52991
  }
@@ -53079,9 +53114,8 @@ function ArrowSvgIcon() {
53079
53114
 
53080
53115
 
53081
53116
 
53082
-
53083
-
53084
53117
  var genSiderMenuStyle = function genSiderMenuStyle(token) {
53118
+ var _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider;
53085
53119
  return defineProperty_defineProperty({}, token.componentCls, {
53086
53120
  position: 'absolute',
53087
53121
  insetBlockStart: '18px',
@@ -53097,11 +53131,11 @@ var genSiderMenuStyle = function genSiderMenuStyle(token) {
53097
53131
  alignItems: 'center',
53098
53132
  justifyContent: 'center',
53099
53133
  cursor: 'pointer',
53100
- color: token.colorTextCollapsedButton,
53101
- backgroundColor: token.colorBgCollapsedButton,
53134
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorTextCollapsedButton,
53135
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorBgCollapsedButton,
53102
53136
  boxShadow: '0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)',
53103
53137
  '&:hover': {
53104
- color: token.colorTextCollapsedButtonHover,
53138
+ color: token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextCollapsedButtonHover,
53105
53139
  boxShadow: '0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)'
53106
53140
  },
53107
53141
  '.anticon': {
@@ -53119,12 +53153,10 @@ var genSiderMenuStyle = function genSiderMenuStyle(token) {
53119
53153
  });
53120
53154
  };
53121
53155
  function CollapsedIcon_style_useStyle(prefixCls) {
53122
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
53123
- sider = _useContext.sider;
53124
53156
  return useStyle('SiderMenuCollapsedIcon', function (token) {
53125
53157
  var siderMenuToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
53126
53158
  componentCls: ".".concat(prefixCls)
53127
- }, sider);
53159
+ });
53128
53160
  return [genSiderMenuStyle(siderMenuToken)];
53129
53161
  });
53130
53162
  }
@@ -53354,10 +53386,8 @@ var MenuCounter = createContainer(useMenuCounter);
53354
53386
 
53355
53387
 
53356
53388
 
53357
-
53358
-
53359
53389
  var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
53360
- var _collapsed, _collapsed2, _$concat2, _$concat4;
53390
+ var _token$layout, _token$layout$sider, _collapsed, _collapsed2, _$concat2, _$concat4;
53361
53391
  return defineProperty_defineProperty({}, "".concat(token.componentCls), (_$concat4 = {
53362
53392
  background: 'transparent',
53363
53393
  border: 'none'
@@ -53366,7 +53396,7 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
53366
53396
  height: 'auto !important',
53367
53397
  marginBlock: '8px !important'
53368
53398
  }), defineProperty_defineProperty(_collapsed, "".concat(token.antCls, "-menu-item-group > ").concat(token.antCls, "-menu-item-group-list > ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title, \n ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title"), {
53369
- backgroundColor: token.colorBgMenuItemSelected,
53399
+ backgroundColor: (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorBgMenuItemSelected,
53370
53400
  borderRadius: token.radiusBase
53371
53401
  }), defineProperty_defineProperty(_collapsed, "".concat(token.componentCls, "-group"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item-group-title"), {
53372
53402
  paddingInline: 0
@@ -53429,12 +53459,10 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
53429
53459
  }), _$concat4));
53430
53460
  };
53431
53461
  function menu_useStyle(prefixCls) {
53432
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
53433
- sider = _useContext.sider;
53434
53462
  return useStyle('ProLayoutBaseMenu', function (token) {
53435
53463
  var proLayoutMenuToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
53436
53464
  componentCls: ".".concat(prefixCls)
53437
- }, sider);
53465
+ });
53438
53466
  return [genProLayoutBaseMenuStyle(proLayoutMenuToken)];
53439
53467
  });
53440
53468
  }
@@ -53521,7 +53549,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
53521
53549
  var children = (item === null || item === void 0 ? void 0 : item.children) || (item === null || item === void 0 ? void 0 : item.routes);
53522
53550
  var menuType = isGroup && level === 0 ? 'group' : undefined;
53523
53551
  if (Array.isArray(children) && children.length > 0) {
53524
- var _this$props2, _this$props3, _classNames, _this$props4, _this$props5, _designToken$sider;
53552
+ var _this$props2, _this$props3, _classNames, _this$props4, _this$props5, _designToken$layout, _designToken$layout$s;
53525
53553
  /** Menu 第一级可以有icon,或者 isGroup 时第二级别也要有 */
53526
53554
  var shouldHasIcon = level === 0 || isGroup && level === 1;
53527
53555
  // get defaultTitle by menuItemRender
@@ -53567,7 +53595,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
53567
53595
  borderBlockEnd: 0,
53568
53596
  margin: _this.props.collapsed ? '4px' : '6px 16px',
53569
53597
  marginBlockStart: _this.props.collapsed ? 4 : 8,
53570
- borderColor: designToken === null || designToken === void 0 ? void 0 : (_designToken$sider = designToken.sider) === null || _designToken$sider === void 0 ? void 0 : _designToken$sider.colorMenuItemDivider
53598
+ borderColor: designToken === null || designToken === void 0 ? void 0 : (_designToken$layout = designToken.layout) === null || _designToken$layout === void 0 ? void 0 : (_designToken$layout$s = _designToken$layout.sider) === null || _designToken$layout$s === void 0 ? void 0 : _designToken$layout$s.colorMenuItemDivider
53571
53599
  }
53572
53600
  } : undefined].filter(Boolean);
53573
53601
  }
@@ -53700,7 +53728,8 @@ var BaseMenu = function BaseMenu(props) {
53700
53728
  onSelect = props.onSelect,
53701
53729
  menuRenderType = props.menuRenderType,
53702
53730
  propsOpenKeys = props.openKeys;
53703
- var designToken = (0,external_React_.useContext)(ProLayoutContext);
53731
+ var _useContext = (0,external_React_.useContext)(ProProvider),
53732
+ designToken = _useContext.token;
53704
53733
  var baseClassName = "".concat(prefixCls, "-base-menu");
53705
53734
  // 用于减少 defaultOpenKeys 计算的组件
53706
53735
  var defaultOpenKeysRef = (0,external_React_.useRef)([]);
@@ -53888,7 +53917,7 @@ var renderLogoAndTitle = function renderLogoAndTitle(props) {
53888
53917
  }, "title");
53889
53918
  };
53890
53919
  var SiderMenu = function SiderMenu(props) {
53891
- var _classNames, _props$menu2;
53920
+ var _classNames, _props$menu2, _process$env$NODE_ENV, _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider;
53892
53921
  var collapsed = props.collapsed,
53893
53922
  originCollapsed = props.originCollapsed,
53894
53923
  fixSiderbar = props.fixSiderbar,
@@ -54051,8 +54080,8 @@ var SiderMenu = function SiderMenu(props) {
54051
54080
  children: menuFooterDom
54052
54081
  })]
54053
54082
  });
54054
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
54055
- sider = _useContext.sider;
54083
+ var _useContext = (0,external_React_.useContext)(ProProvider),
54084
+ token = _useContext.token;
54056
54085
  return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
54057
54086
  children: [fixSiderbar && !isMobile && !hideMenuWhenCollapsedClassName && (0,jsx_runtime.jsx)("div", {
54058
54087
  style: objectSpread2_objectSpread2({
@@ -54082,18 +54111,18 @@ var SiderMenu = function SiderMenu(props) {
54082
54111
  , {
54083
54112
  // @ts-ignore
54084
54113
  theme: {
54085
- hashed: false,
54114
+ hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test',
54086
54115
  components: {
54087
54116
  Menu: {
54088
54117
  radiusItem: 4,
54089
- colorItemBgSelected: sider.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
54090
- colorItemBgActive: sider.colorBgMenuItemHover || 'rgba(0, 0, 0, 0.04)',
54118
+ colorItemBgSelected: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorBgMenuItemSelected) || 'rgba(0, 0, 0, 0.04)',
54119
+ colorItemBgActive: (token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorBgMenuItemHover) || 'rgba(0, 0, 0, 0.04)',
54091
54120
  colorActiveBarWidth: 0,
54092
54121
  colorActiveBarHeight: 0,
54093
54122
  colorActiveBarBorderSize: 0,
54094
- colorItemText: sider.colorTextMenu || 'rgba(0, 0, 0, 0.65)',
54095
- colorItemTextHover: sider.colorTextMenuActive || 'rgba(0, 0, 0, 0.85)',
54096
- colorItemTextSelected: sider.colorTextMenuSelected || 'rgba(0, 0, 0, 1)',
54123
+ colorItemText: (token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextMenu) || 'rgba(0, 0, 0, 0.65)',
54124
+ colorItemTextHover: (token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenuActive) || 'rgba(0, 0, 0, 0.85)',
54125
+ colorItemTextSelected: (token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorTextMenuSelected) || 'rgba(0, 0, 0, 1)',
54097
54126
  colorItemBg: 'transparent',
54098
54127
  colorSubItemBg: 'transparent'
54099
54128
  }
@@ -54117,9 +54146,8 @@ var SiderMenu = function SiderMenu(props) {
54117
54146
 
54118
54147
 
54119
54148
 
54120
-
54121
-
54122
54149
  var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
54150
+ var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header;
54123
54151
  return defineProperty_defineProperty({}, token.componentCls, {
54124
54152
  '&-header-actions': {
54125
54153
  display: 'flex',
@@ -54130,7 +54158,7 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
54130
54158
  justifyContent: 'center',
54131
54159
  paddingBlock: 0,
54132
54160
  paddingInline: 2,
54133
- color: token.colorTextRightActionsItem,
54161
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.colorTextRightActionsItem,
54134
54162
  fontSize: '16px',
54135
54163
  cursor: 'pointer',
54136
54164
  borderRadius: token.radiusBase,
@@ -54139,7 +54167,7 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
54139
54167
  paddingBlock: 6,
54140
54168
  borderRadius: token.radiusBase,
54141
54169
  '&:hover': {
54142
- backgroundColor: token.colorBgRightActionsItemHover
54170
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.colorBgRightActionsItemHover
54143
54171
  }
54144
54172
  }
54145
54173
  },
@@ -54169,12 +54197,10 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
54169
54197
  });
54170
54198
  };
54171
54199
  function rightContentStyle_useStyle(prefixCls) {
54172
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
54173
- header = _useContext.header;
54174
54200
  return useStyle('RightContent', function (token) {
54175
54201
  var proToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
54176
54202
  componentCls: ".".concat(prefixCls)
54177
- }, header);
54203
+ });
54178
54204
  return [genTopNavHeaderStyle(proToken)];
54179
54205
  });
54180
54206
  }
@@ -54310,9 +54336,9 @@ var RightContent = function RightContent(_ref) {
54310
54336
 
54311
54337
 
54312
54338
 
54313
-
54314
-
54315
54339
  var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
54340
+ var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header;
54341
+ console.log(token.layout);
54316
54342
  return defineProperty_defineProperty({}, token.componentCls, {
54317
54343
  position: 'relative',
54318
54344
  width: '100%',
@@ -54360,7 +54386,7 @@ var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
54360
54386
  marginInlineStart: 6,
54361
54387
  fontWeight: '600',
54362
54388
  fontSize: '16px',
54363
- color: token === null || token === void 0 ? void 0 : token.colorHeaderTitle,
54389
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.colorHeaderTitle,
54364
54390
  verticalAlign: 'top'
54365
54391
  }
54366
54392
  },
@@ -54370,17 +54396,15 @@ var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
54370
54396
  alignItems: 'center',
54371
54397
  paddingInline: 6,
54372
54398
  paddingBlock: 6,
54373
- lineHeight: "".concat(token.heightLayoutHeader - 12, "px")
54399
+ lineHeight: "".concat(((token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.heightLayoutHeader) || 56) - 12, "px")
54374
54400
  }
54375
54401
  });
54376
54402
  };
54377
54403
  function TopNavHeader_style_useStyle(prefixCls) {
54378
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
54379
- header = _useContext.header;
54380
54404
  return useStyle('ProLayoutTopNavHeader', function (token) {
54381
54405
  var topNavHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
54382
54406
  componentCls: ".".concat(prefixCls)
54383
- }, header);
54407
+ });
54384
54408
  return [style_genTopNavHeaderStyle(topNavHeaderToken)];
54385
54409
  });
54386
54410
  }
@@ -54398,6 +54422,7 @@ function TopNavHeader_style_useStyle(prefixCls) {
54398
54422
 
54399
54423
 
54400
54424
  var TopNavHeader = function TopNavHeader(props) {
54425
+ var _token$layout9, _token$layout9$header, _token$layout10, _token$layout10$heade, _token$layout11, _token$layout11$heade, _token$layout12, _token$layout12$heade, _token$layout13, _token$layout13$heade, _token$layout14, _token$layout14$heade;
54401
54426
  var ref = (0,external_React_.useRef)(null);
54402
54427
  var onMenuHeaderClick = props.onMenuHeaderClick,
54403
54428
  contentWidth = props.contentWidth,
@@ -54409,8 +54434,8 @@ var TopNavHeader = function TopNavHeader(props) {
54409
54434
  actionsRender = props.actionsRender;
54410
54435
  var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
54411
54436
  getPrefixCls = _useContext.getPrefixCls;
54412
- var _useContext2 = (0,external_React_.useContext)(ProLayoutContext),
54413
- header = _useContext2.header;
54437
+ var _useContext2 = (0,external_React_.useContext)(ProProvider),
54438
+ token = _useContext2.token;
54414
54439
  var prefixCls = "".concat(props.prefixCls || getPrefixCls('pro'), "-top-nav-header");
54415
54440
  var _useStyle = TopNavHeader_style_useStyle(prefixCls),
54416
54441
  wrapSSR = _useStyle.wrapSSR,
@@ -54419,24 +54444,24 @@ var TopNavHeader = function TopNavHeader(props) {
54419
54444
  collapsed: false
54420
54445
  }), layout === 'mix' ? 'headerTitleRender' : undefined);
54421
54446
  var contentDom = (0,external_React_.useMemo)(function () {
54422
- var _process$env$NODE_ENV, _props$menuProps;
54447
+ var _process$env$NODE_ENV, _token$layout, _token$layout$header, _token$layout2, _token$layout2$header, _token$layout3, _token$layout3$header, _token$layout4, _token$layout4$header, _token$layout5, _token$layout5$header, _token$layout6, _token$layout6$header, _token$layout7, _token$layout7$header, _token$layout8, _token$layout8$header, _props$menuProps;
54423
54448
  var defaultDom = (0,jsx_runtime.jsx)(external_antd_.ConfigProvider, {
54424
54449
  theme: {
54425
54450
  hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test',
54426
54451
  components: {
54427
54452
  Menu: {
54428
- colorItemBg: header.colorBgHeader || 'transparent',
54429
- colorSubItemBg: header.colorBgHeader || 'transparent',
54453
+ colorItemBg: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.colorBgHeader) || 'transparent',
54454
+ colorSubItemBg: (token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.colorBgHeader) || 'transparent',
54430
54455
  radiusItem: 4,
54431
- colorItemBgSelected: header.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
54432
- colorItemBgActive: header.colorBgMenuItemHover || 'rgba(0, 0, 0, 0.04)',
54433
- colorItemBgSelectedHorizontal: header.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
54456
+ colorItemBgSelected: (token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$header = _token$layout3.header) === null || _token$layout3$header === void 0 ? void 0 : _token$layout3$header.colorBgMenuItemSelected) || 'rgba(0, 0, 0, 0.04)',
54457
+ colorItemBgActive: (token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$header = _token$layout4.header) === null || _token$layout4$header === void 0 ? void 0 : _token$layout4$header.colorBgMenuItemHover) || 'rgba(0, 0, 0, 0.04)',
54458
+ colorItemBgSelectedHorizontal: (token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$header = _token$layout5.header) === null || _token$layout5$header === void 0 ? void 0 : _token$layout5$header.colorBgMenuItemSelected) || 'rgba(0, 0, 0, 0.04)',
54434
54459
  colorActiveBarWidth: 0,
54435
54460
  colorActiveBarHeight: 0,
54436
54461
  colorActiveBarBorderSize: 0,
54437
- colorItemText: header.colorTextMenu || 'rgba(0, 0, 0, 0.65)',
54438
- colorItemTextHover: header.colorTextMenuActive || 'rgba(0, 0, 0, 0.85)',
54439
- colorItemTextSelected: header.colorTextMenuSelected || 'rgba(0, 0, 0, 1)'
54462
+ colorItemText: (token === null || token === void 0 ? void 0 : (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$header = _token$layout6.header) === null || _token$layout6$header === void 0 ? void 0 : _token$layout6$header.colorTextMenu) || 'rgba(0, 0, 0, 0.65)',
54463
+ colorItemTextHover: (token === null || token === void 0 ? void 0 : (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$header = _token$layout7.header) === null || _token$layout7$header === void 0 ? void 0 : _token$layout7$header.colorTextMenuActive) || 'rgba(0, 0, 0, 0.85)',
54464
+ colorItemTextSelected: (token === null || token === void 0 ? void 0 : (_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$header = _token$layout8.header) === null || _token$layout8$header === void 0 ? void 0 : _token$layout8$header.colorTextMenuSelected) || 'rgba(0, 0, 0, 1)'
54440
54465
  }
54441
54466
  }
54442
54467
  },
@@ -54457,7 +54482,7 @@ var TopNavHeader = function TopNavHeader(props) {
54457
54482
  return headerContentRender(props, defaultDom);
54458
54483
  }
54459
54484
  return defaultDom;
54460
- }, [hashId, header.colorBgHeader, header.colorBgMenuItemHover, header.colorBgMenuItemSelected, header.colorTextMenu, header.colorTextMenuActive, header.colorTextMenuSelected, headerContentRender, prefixCls, props]);
54485
+ }, [hashId, token === null || token === void 0 ? void 0 : (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$header = _token$layout9.header) === null || _token$layout9$header === void 0 ? void 0 : _token$layout9$header.colorBgHeader, token === null || token === void 0 ? void 0 : (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$heade = _token$layout10.header) === null || _token$layout10$heade === void 0 ? void 0 : _token$layout10$heade.colorBgMenuItemHover, token === null || token === void 0 ? void 0 : (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$heade = _token$layout11.header) === null || _token$layout11$heade === void 0 ? void 0 : _token$layout11$heade.colorBgMenuItemSelected, token === null || token === void 0 ? void 0 : (_token$layout12 = token.layout) === null || _token$layout12 === void 0 ? void 0 : (_token$layout12$heade = _token$layout12.header) === null || _token$layout12$heade === void 0 ? void 0 : _token$layout12$heade.colorTextMenu, token === null || token === void 0 ? void 0 : (_token$layout13 = token.layout) === null || _token$layout13 === void 0 ? void 0 : (_token$layout13$heade = _token$layout13.header) === null || _token$layout13$heade === void 0 ? void 0 : _token$layout13$heade.colorTextMenuActive, token === null || token === void 0 ? void 0 : (_token$layout14 = token.layout) === null || _token$layout14 === void 0 ? void 0 : (_token$layout14$heade = _token$layout14.header) === null || _token$layout14$heade === void 0 ? void 0 : _token$layout14$heade.colorTextMenuSelected, headerContentRender, prefixCls, props]);
54461
54486
  return wrapSSR((0,jsx_runtime.jsx)("div", {
54462
54487
  className: classnames_default()(prefixCls, hashId, propsClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-light"), true)),
54463
54488
  style: style,
@@ -54491,10 +54516,8 @@ var TopNavHeader = function TopNavHeader(props) {
54491
54516
 
54492
54517
 
54493
54518
 
54494
-
54495
-
54496
54519
  var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
54497
- var _token$componentCls;
54520
+ var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header, _token$componentCls;
54498
54521
  return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
54499
54522
  position: 'relative',
54500
54523
  background: 'transparent',
@@ -54502,7 +54525,7 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
54502
54525
  alignItems: 'center',
54503
54526
  marginBlock: 0,
54504
54527
  marginInline: 16,
54505
- height: token.heightLayoutHeader,
54528
+ height: ((_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader) || 56,
54506
54529
  boxSizing: 'border-box',
54507
54530
  '> a': {
54508
54531
  height: '100%'
@@ -54511,7 +54534,7 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
54511
54534
  marginInlineEnd: 16
54512
54535
  }), defineProperty_defineProperty(_token$componentCls, '&-collapsed-button', {
54513
54536
  minHeight: '22px',
54514
- color: token.colorHeaderTitle,
54537
+ color: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.colorHeaderTitle,
54515
54538
  fontSize: '22px',
54516
54539
  marginInlineStart: '16px'
54517
54540
  }), defineProperty_defineProperty(_token$componentCls, '&-logo', {
@@ -54548,13 +54571,9 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
54548
54571
  }), _token$componentCls));
54549
54572
  };
54550
54573
  function GlobalHeader_style_useStyle(prefixCls) {
54551
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
54552
- header = _useContext.header;
54553
54574
  return useStyle('ProLayoutGlobalHeader', function (token) {
54554
54575
  var GlobalHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
54555
- componentCls: ".".concat(prefixCls),
54556
- heightLayoutHeader: header.heightLayoutHeader,
54557
- colorHeaderTitle: header.colorHeaderTitle
54576
+ componentCls: ".".concat(prefixCls)
54558
54577
  });
54559
54578
  return [genGlobalHeaderStyle(GlobalHeaderToken)];
54560
54579
  });
@@ -54669,7 +54688,7 @@ var GlobalHeader = function GlobalHeader(props) {
54669
54688
 
54670
54689
  var Header = external_antd_.Layout.Header;
54671
54690
  var DefaultHeader = function DefaultHeader(props) {
54672
- var _classNames, _process$env$NODE_ENV;
54691
+ var _classNames, _process$env$NODE_ENV, _token$layout, _token$layout$header, _token$layout2, _token$layout2$header;
54673
54692
  var isMobile = props.isMobile,
54674
54693
  fixedHeader = props.fixedHeader,
54675
54694
  propsClassName = props.className,
@@ -54680,8 +54699,8 @@ var DefaultHeader = function DefaultHeader(props) {
54680
54699
  layout = props.layout,
54681
54700
  headerRender = props.headerRender,
54682
54701
  headerContentRender = props.headerContentRender;
54683
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
54684
- header = _useContext.header;
54702
+ var _useContext = (0,external_React_.useContext)(ProProvider),
54703
+ token = _useContext.token;
54685
54704
  var renderContent = (0,external_React_.useCallback)(function () {
54686
54705
  var isTop = layout === 'top';
54687
54706
  var clearMenuData = clearMenuItem(props.menuData || []);
@@ -54730,8 +54749,8 @@ var DefaultHeader = function DefaultHeader(props) {
54730
54749
  },
54731
54750
  children: [needFixedHeader && (0,jsx_runtime.jsx)(Header, {
54732
54751
  style: objectSpread2_objectSpread2({
54733
- height: header.heightLayoutHeader,
54734
- lineHeight: "".concat(header.heightLayoutHeader, "px"),
54752
+ height: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader) || 56,
54753
+ lineHeight: "".concat((token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.heightLayoutHeader) || 56, "px"),
54735
54754
  backgroundColor: 'transparent',
54736
54755
  zIndex: 19
54737
54756
  }, style)
@@ -55905,7 +55924,7 @@ var initState = function initState(urlParams, settings, onSettingChange) {
55905
55924
  replaceSetting[key] = urlParams[key];
55906
55925
  }
55907
55926
  });
55908
- var newSettings = merge({}, settings, replaceSetting);
55927
+ var newSettings = merge_merge({}, settings, replaceSetting);
55909
55928
  delete newSettings.menu;
55910
55929
  delete newSettings.title;
55911
55930
  delete newSettings.iconfontUrl;
@@ -58137,13 +58156,11 @@ var Logo = function Logo() {
58137
58156
 
58138
58157
 
58139
58158
 
58140
-
58141
-
58142
58159
  var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
58143
- var _token$componentCls;
58160
+ var _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider, _token$layout6, _token$layout6$sider, _token$layout7, _token$layout7$sider, _token$layout8, _token$layout8$sider, _token$layout9, _token$layout9$header, _token$layout10, _token$layout10$heade, _token$layout11, _token$layout11$sider, _token$componentCls;
58144
58161
  return defineProperty_defineProperty({}, token.proComponentsCls, defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-layout"), defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
58145
58162
  position: 'relative',
58146
- background: token.colorMenuBackground || 'transparent',
58163
+ background: ((_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorMenuBackground) || 'transparent',
58147
58164
  boxSizing: 'border-box',
58148
58165
  '&-menu': {
58149
58166
  position: 'relative',
@@ -58162,8 +58179,8 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
58162
58179
  display: 'flex',
58163
58180
  flexDirection: 'column',
58164
58181
  height: '100%',
58165
- paddingInline: token.paddingInlineLayoutMenu,
58166
- paddingBlock: token.paddingBlockLayoutMenu,
58182
+ paddingInline: (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.paddingInlineLayoutMenu,
58183
+ paddingBlock: (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.paddingBlockLayoutMenu,
58167
58184
  borderInlineEnd: "1px solid ".concat(token.colorSplit)
58168
58185
  }), defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-menu"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item-group-title"), {
58169
58186
  fontSize: token.fontSizeSM,
@@ -58175,9 +58192,9 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
58175
58192
  justifyContent: 'space-between',
58176
58193
  paddingInline: 12,
58177
58194
  paddingBlock: 16,
58178
- color: token.colorTextMenu,
58195
+ color: (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenu,
58179
58196
  cursor: 'pointer',
58180
- borderBlockEnd: "1px solid ".concat(token.colorMenuItemDivider),
58197
+ borderBlockEnd: "1px solid ".concat((_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorMenuItemDivider),
58181
58198
  '> a': {
58182
58199
  display: 'flex',
58183
58200
  alignItems: 'center',
@@ -58195,7 +58212,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
58195
58212
  marginBlock: 0,
58196
58213
  marginInlineEnd: 0,
58197
58214
  marginInlineStart: 6,
58198
- color: token.colorTextMenuTitle,
58215
+ color: (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$sider = _token$layout6.sider) === null || _token$layout6$sider === void 0 ? void 0 : _token$layout6$sider.colorTextMenuTitle,
58199
58216
  fontWeight: 600,
58200
58217
  fontSize: 16,
58201
58218
  lineHeight: '22px',
@@ -58217,7 +58234,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
58217
58234
  justifyContent: 'space-between',
58218
58235
  marginBlock: 4,
58219
58236
  marginInline: 0,
58220
- color: token.colorTextMenu,
58237
+ color: (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$sider = _token$layout7.sider) === null || _token$layout7$sider === void 0 ? void 0 : _token$layout7$sider.colorTextMenu,
58221
58238
  '&-collapsed': {
58222
58239
  flexDirection: 'column-reverse',
58223
58240
  paddingBlock: 0,
@@ -58226,7 +58243,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
58226
58243
  transition: 'font-size 0.3s ease-in-out'
58227
58244
  },
58228
58245
  '&-list': {
58229
- color: token.colorTextMenuSecondary,
58246
+ color: (_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$sider = _token$layout8.sider) === null || _token$layout8$sider === void 0 ? void 0 : _token$layout8$sider.colorTextMenuSecondary,
58230
58247
  '&-collapsed': {
58231
58248
  marginBlockEnd: 8,
58232
58249
  animation: 'none'
@@ -58259,8 +58276,8 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
58259
58276
  insetInlineStart: "-".concat(token.proLayoutCollapsedWidth - 12, "px"),
58260
58277
  position: 'absolute'
58261
58278
  }), defineProperty_defineProperty(_token$componentCls, '&-mix', {
58262
- height: "calc(100% - ".concat(token.heightLayoutHeader, "px)"),
58263
- insetBlockStart: "".concat(token.heightLayoutHeader, "px")
58279
+ height: "calc(100% - ".concat((token === null || token === void 0 ? void 0 : (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$header = _token$layout9.header) === null || _token$layout9$header === void 0 ? void 0 : _token$layout9$header.heightLayoutHeader) || 56, "px)"),
58280
+ insetBlockStart: "".concat((token === null || token === void 0 ? void 0 : (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$heade = _token$layout10.header) === null || _token$layout10$heade === void 0 ? void 0 : _token$layout10$heade.heightLayoutHeader) || 56, "px")
58264
58281
  }), defineProperty_defineProperty(_token$componentCls, '&-extra', {
58265
58282
  marginBlockEnd: 16,
58266
58283
  marginBlock: 0,
@@ -58278,22 +58295,18 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
58278
58295
  boxShadow: 'none',
58279
58296
  background: 'transparent'
58280
58297
  }), defineProperty_defineProperty(_token$componentCls, '&-footer', {
58281
- color: token.colorTextMenuSecondary,
58298
+ color: (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$sider = _token$layout11.sider) === null || _token$layout11$sider === void 0 ? void 0 : _token$layout11$sider.colorTextMenuSecondary,
58282
58299
  paddingBlockEnd: 16,
58283
58300
  fontSize: token.fontSize
58284
58301
  }), _token$componentCls))));
58285
58302
  };
58286
58303
  function SiderMenu_style_useStyle(prefixCls, _ref2) {
58287
58304
  var proLayoutCollapsedWidth = _ref2.proLayoutCollapsedWidth;
58288
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
58289
- sider = _useContext.sider,
58290
- header = _useContext.header;
58291
58305
  return useStyle('ProLayoutSiderMenu', function (token) {
58292
58306
  var siderMenuToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
58293
58307
  componentCls: ".".concat(prefixCls),
58294
- proLayoutCollapsedWidth: proLayoutCollapsedWidth,
58295
- heightLayoutHeader: header.heightLayoutHeader
58296
- }, sider);
58308
+ proLayoutCollapsedWidth: proLayoutCollapsedWidth
58309
+ });
58297
58310
  return [style_genSiderMenuStyle(siderMenuToken)];
58298
58311
  });
58299
58312
  }
@@ -58396,8 +58409,6 @@ var SiderMenuWrapper = function SiderMenuWrapper(props) {
58396
58409
 
58397
58410
 
58398
58411
 
58399
-
58400
-
58401
58412
  /**
58402
58413
  * 主要区别:
58403
58414
  * 需要手动引入 import 'antd/dist/antd.css';
@@ -58406,7 +58417,7 @@ var SiderMenuWrapper = function SiderMenuWrapper(props) {
58406
58417
  * @returns
58407
58418
  */
58408
58419
  var compatibleStyle = function compatibleStyle(token) {
58409
- var _$concat$concat, _$concat5, _$concat6, _$concat8, _$concat9, _token$componentCls, _$concat$concat2, _$concat11, _ref;
58420
+ var _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider, _token$layout6, _token$layout6$sider, _token$layout7, _token$layout7$sider, _token$layout8, _token$layout8$sider, _token$layout9, _token$layout9$sider, _$concat$concat, _token$layout10, _token$layout10$sider, _token$layout11, _token$layout11$sider, _token$layout12, _token$layout12$sider, _token$layout13, _token$layout13$sider, _token$layout14, _token$layout14$sider, _token$layout15, _token$layout15$heade, _token$layout16, _token$layout16$heade, _token$layout17, _token$layout17$heade, _token$layout18, _token$layout18$heade, _token$layout19, _token$layout19$heade, _$concat5, _$concat6, _token$layout20, _token$layout20$heade, _token$layout21, _token$layout21$heade, _token$layout22, _token$layout22$heade, _token$layout23, _token$layout23$heade, _token$layout24, _token$layout24$heade, _token$layout25, _token$layout25$heade, _$concat8, _$concat9, _token$componentCls, _token$layout26, _token$layout26$sider, _token$layout27, _token$layout27$sider, _token$layout28, _token$layout28$sider, _token$layout29, _token$layout29$sider, _token$layout30, _token$layout30$sider, _$concat$concat2, _$concat11, _ref;
58410
58421
  if (external_antd_.version.startsWith('5')) {
58411
58422
  return {};
58412
58423
  }
@@ -58417,16 +58428,16 @@ var compatibleStyle = function compatibleStyle(token) {
58417
58428
  width: '100%',
58418
58429
  height: '100%'
58419
58430
  }, defineProperty_defineProperty(_token$componentCls, "".concat(token.proComponentsCls, "-base-menu"), (_$concat6 = {
58420
- color: token.sider.colorTextMenu
58431
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorTextMenu
58421
58432
  }, defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-sub"), {
58422
- color: token.sider.colorTextMenu
58433
+ color: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorTextMenu
58423
58434
  }), defineProperty_defineProperty(_$concat6, "& ".concat(token.antCls, "-layout"), {
58424
58435
  backgroundColor: 'transparent',
58425
58436
  width: '100%'
58426
58437
  }), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-submenu-expand-icon, ").concat(token.antCls, "-menu-submenu-arrow"), {
58427
58438
  color: 'inherit'
58428
58439
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu"), defineProperty_defineProperty({
58429
- color: token.sider.colorTextMenu
58440
+ color: token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextMenu
58430
58441
  }, "".concat(token.antCls, "-menu-item a"), {
58431
58442
  color: 'inherit'
58432
58443
  })), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-inline"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-selected::after,").concat(token.antCls, "-menu-item-selected::after"), {
@@ -58436,59 +58447,59 @@ var compatibleStyle = function compatibleStyle(token) {
58436
58447
  }), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-item:active, \n ").concat(token.antCls, "-menu-submenu-title:active"), {
58437
58448
  backgroundColor: 'transparent!important'
58438
58449
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-light"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active, \n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
58439
- color: token.sider.colorTextMenuActive,
58450
+ color: token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenuActive,
58440
58451
  borderRadius: token.radiusBase
58441
58452
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
58442
- color: token.sider.colorTextMenuActive
58453
+ color: token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorTextMenuActive
58443
58454
  }))), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu:not(").concat(token.antCls, "-menu-horizontal)"), (_$concat$concat = {}, defineProperty_defineProperty(_$concat$concat, "".concat(token.antCls, "-menu-item-selected"), {
58444
- backgroundColor: token.sider.colorBgMenuItemSelected,
58455
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$sider = _token$layout6.sider) === null || _token$layout6$sider === void 0 ? void 0 : _token$layout6$sider.colorBgMenuItemSelected,
58445
58456
  borderRadius: token.radiusBase
58446
58457
  }), defineProperty_defineProperty(_$concat$concat, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
58447
- color: token.sider.colorTextMenuActive,
58458
+ color: token === null || token === void 0 ? void 0 : (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$sider = _token$layout7.sider) === null || _token$layout7$sider === void 0 ? void 0 : _token$layout7$sider.colorTextMenuActive,
58448
58459
  borderRadius: token.radiusBase,
58449
- backgroundColor: token.sider.colorBgMenuItemHover
58460
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$sider = _token$layout8.sider) === null || _token$layout8$sider === void 0 ? void 0 : _token$layout8$sider.colorBgMenuItemHover
58450
58461
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
58451
- color: token.sider.colorTextMenuActive
58462
+ color: token === null || token === void 0 ? void 0 : (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$sider = _token$layout9.sider) === null || _token$layout9$sider === void 0 ? void 0 : _token$layout9$sider.colorTextMenuActive
58452
58463
  })), _$concat$concat)), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-item-selected"), {
58453
- color: token.sider.colorTextMenuSelected
58464
+ color: token === null || token === void 0 ? void 0 : (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$sider = _token$layout10.sider) === null || _token$layout10$sider === void 0 ? void 0 : _token$layout10$sider.colorTextMenuSelected
58454
58465
  }), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-submenu-selected"), {
58455
- color: token.sider.colorTextMenuSelected
58466
+ color: token === null || token === void 0 ? void 0 : (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$sider = _token$layout11.sider) === null || _token$layout11$sider === void 0 ? void 0 : _token$layout11$sider.colorTextMenuSelected
58456
58467
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu:not(").concat(token.antCls, "-menu-inline) ").concat(token.antCls, "-menu-submenu-open"), {
58457
- color: token.sider.colorTextMenuSelected
58468
+ color: token === null || token === void 0 ? void 0 : (_token$layout12 = token.layout) === null || _token$layout12 === void 0 ? void 0 : (_token$layout12$sider = _token$layout12.sider) === null || _token$layout12$sider === void 0 ? void 0 : _token$layout12$sider.colorTextMenuSelected
58458
58469
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-vertical"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-submenu-selected"), {
58459
58470
  borderRadius: token.radiusBase,
58460
- color: token.sider.colorTextMenuSelected
58471
+ color: token === null || token === void 0 ? void 0 : (_token$layout13 = token.layout) === null || _token$layout13 === void 0 ? void 0 : (_token$layout13$sider = _token$layout13.sider) === null || _token$layout13$sider === void 0 ? void 0 : _token$layout13$sider.colorTextMenuSelected
58461
58472
  })), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-submenu:hover > ").concat(token.antCls, "-menu-submenu-title > ").concat(token.antCls, "-menu-submenu-arrow"), {
58462
- color: token.sider.colorTextMenuActive
58473
+ color: token === null || token === void 0 ? void 0 : (_token$layout14 = token.layout) === null || _token$layout14 === void 0 ? void 0 : (_token$layout14$sider = _token$layout14.sider) === null || _token$layout14$sider === void 0 ? void 0 : _token$layout14$sider.colorTextMenuActive
58463
58474
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-horizontal"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "".concat(token.antCls, "-menu-item:hover,\n ").concat(token.antCls, "-menu-submenu:hover,\n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active"), {
58464
58475
  borderRadius: 4,
58465
- color: token.header.colorTextMenuActive,
58466
- backgroundColor: token.header.colorBgMenuItemHover
58476
+ color: token === null || token === void 0 ? void 0 : (_token$layout15 = token.layout) === null || _token$layout15 === void 0 ? void 0 : (_token$layout15$heade = _token$layout15.header) === null || _token$layout15$heade === void 0 ? void 0 : _token$layout15$heade.colorTextMenuActive,
58477
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout16 = token.layout) === null || _token$layout16 === void 0 ? void 0 : (_token$layout16$heade = _token$layout16.header) === null || _token$layout16$heade === void 0 ? void 0 : _token$layout16$heade.colorBgMenuItemHover
58467
58478
  }), defineProperty_defineProperty(_$concat5, "".concat(token.antCls, "-menu-item-open,\n ").concat(token.antCls, "-menu-submenu-open,\n ").concat(token.antCls, "-menu-item-selected,\n ").concat(token.antCls, "-menu-submenu-selected"), defineProperty_defineProperty({
58468
- backgroundColor: token.header.colorBgMenuItemSelected,
58479
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout17 = token.layout) === null || _token$layout17 === void 0 ? void 0 : (_token$layout17$heade = _token$layout17.header) === null || _token$layout17$heade === void 0 ? void 0 : _token$layout17$heade.colorBgMenuItemSelected,
58469
58480
  borderRadius: token.radiusBase,
58470
- color: token.header.colorTextMenuSelected
58481
+ color: token === null || token === void 0 ? void 0 : (_token$layout18 = token.layout) === null || _token$layout18 === void 0 ? void 0 : (_token$layout18$heade = _token$layout18.header) === null || _token$layout18$heade === void 0 ? void 0 : _token$layout18$heade.colorTextMenuSelected
58471
58482
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
58472
- color: token.header.colorTextMenuSelected
58483
+ color: token === null || token === void 0 ? void 0 : (_token$layout19 = token.layout) === null || _token$layout19 === void 0 ? void 0 : (_token$layout19$heade = _token$layout19.header) === null || _token$layout19$heade === void 0 ? void 0 : _token$layout19$heade.colorTextMenuSelected
58473
58484
  })), defineProperty_defineProperty(_$concat5, "> ".concat(token.antCls, "-menu-item, > ").concat(token.antCls, "-menu-submenu"), {
58474
58485
  paddingInline: 16,
58475
58486
  marginInline: 4
58476
58487
  }), defineProperty_defineProperty(_$concat5, "> ".concat(token.antCls, "-menu-item::after, > ").concat(token.antCls, "-menu-submenu::after"), {
58477
58488
  display: 'none'
58478
58489
  }), _$concat5)), _$concat6)), defineProperty_defineProperty(_token$componentCls, "".concat(token.proComponentsCls, "-top-nav-header-base-menu"), (_$concat9 = {}, defineProperty_defineProperty(_$concat9, "&".concat(token.antCls, "-menu"), defineProperty_defineProperty({
58479
- color: token.header.colorTextMenu
58490
+ color: token === null || token === void 0 ? void 0 : (_token$layout20 = token.layout) === null || _token$layout20 === void 0 ? void 0 : (_token$layout20$heade = _token$layout20.header) === null || _token$layout20$heade === void 0 ? void 0 : _token$layout20$heade.colorTextMenu
58480
58491
  }, "".concat(token.antCls, "-menu-item a"), {
58481
58492
  color: 'inherit'
58482
58493
  })), defineProperty_defineProperty(_$concat9, "&".concat(token.antCls, "-menu-light"), (_$concat8 = {}, defineProperty_defineProperty(_$concat8, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active, \n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
58483
- color: token.header.colorTextMenuActive,
58494
+ color: token === null || token === void 0 ? void 0 : (_token$layout21 = token.layout) === null || _token$layout21 === void 0 ? void 0 : (_token$layout21$heade = _token$layout21.header) === null || _token$layout21$heade === void 0 ? void 0 : _token$layout21$heade.colorTextMenuActive,
58484
58495
  borderRadius: token.radiusBase,
58485
- backgroundColor: token.header.colorBgMenuItemSelected
58496
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout22 = token.layout) === null || _token$layout22 === void 0 ? void 0 : (_token$layout22$heade = _token$layout22.header) === null || _token$layout22$heade === void 0 ? void 0 : _token$layout22$heade.colorBgMenuItemSelected
58486
58497
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
58487
- color: token.header.colorTextMenuActive
58498
+ color: token === null || token === void 0 ? void 0 : (_token$layout23 = token.layout) === null || _token$layout23 === void 0 ? void 0 : (_token$layout23$heade = _token$layout23.header) === null || _token$layout23$heade === void 0 ? void 0 : _token$layout23$heade.colorTextMenuActive
58488
58499
  })), defineProperty_defineProperty(_$concat8, "".concat(token.antCls, "-menu-item-selected"), {
58489
- color: token.header.colorTextMenuSelected,
58500
+ color: token === null || token === void 0 ? void 0 : (_token$layout24 = token.layout) === null || _token$layout24 === void 0 ? void 0 : (_token$layout24$heade = _token$layout24.header) === null || _token$layout24$heade === void 0 ? void 0 : _token$layout24$heade.colorTextMenuSelected,
58490
58501
  borderRadius: token.radiusBase,
58491
- backgroundColor: token.header.colorBgMenuItemSelected
58502
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout25 = token.layout) === null || _token$layout25 === void 0 ? void 0 : (_token$layout25$heade = _token$layout25.header) === null || _token$layout25$heade === void 0 ? void 0 : _token$layout25$heade.colorBgMenuItemSelected
58492
58503
  }), _$concat8)), _$concat9)), _token$componentCls)), defineProperty_defineProperty(_ref, "".concat(token.antCls, "-menu-sub").concat(token.antCls, "-menu-inline"), {
58493
58504
  backgroundColor: 'transparent!important'
58494
58505
  }), defineProperty_defineProperty(_ref, "".concat(token.antCls, "-menu-submenu-popup"), (_$concat11 = {
@@ -58501,22 +58512,22 @@ var compatibleStyle = function compatibleStyle(token) {
58501
58512
  }, "".concat(token.antCls, "-menu-item:active, \n ").concat(token.antCls, "-menu-submenu-title:active"), {
58502
58513
  backgroundColor: 'transparent!important'
58503
58514
  })), defineProperty_defineProperty(_$concat11, "".concat(token.antCls, "-menu-item-selected"), {
58504
- color: token.sider.colorTextMenuSelected
58515
+ color: token === null || token === void 0 ? void 0 : (_token$layout26 = token.layout) === null || _token$layout26 === void 0 ? void 0 : (_token$layout26$sider = _token$layout26.sider) === null || _token$layout26$sider === void 0 ? void 0 : _token$layout26$sider.colorTextMenuSelected
58505
58516
  }), defineProperty_defineProperty(_$concat11, "".concat(token.antCls, "-menu-submenu-selected"), {
58506
- color: token.sider.colorTextMenuSelected
58517
+ color: token === null || token === void 0 ? void 0 : (_token$layout27 = token.layout) === null || _token$layout27 === void 0 ? void 0 : (_token$layout27$sider = _token$layout27.sider) === null || _token$layout27$sider === void 0 ? void 0 : _token$layout27$sider.colorTextMenuSelected
58507
58518
  }), defineProperty_defineProperty(_$concat11, "".concat(token.antCls, "-menu:not(").concat(token.antCls, "-menu-horizontal)"), (_$concat$concat2 = {}, defineProperty_defineProperty(_$concat$concat2, "".concat(token.antCls, "-menu-item-selected"), {
58508
58519
  backgroundColor: 'rgba(0, 0, 0, 0.04)',
58509
58520
  borderRadius: token.radiusBase,
58510
- color: token.sider.colorTextMenuSelected
58521
+ color: token === null || token === void 0 ? void 0 : (_token$layout28 = token.layout) === null || _token$layout28 === void 0 ? void 0 : (_token$layout28$sider = _token$layout28.sider) === null || _token$layout28$sider === void 0 ? void 0 : _token$layout28$sider.colorTextMenuSelected
58511
58522
  }), defineProperty_defineProperty(_$concat$concat2, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
58512
- color: token.sider.colorTextMenuActive,
58523
+ color: token === null || token === void 0 ? void 0 : (_token$layout29 = token.layout) === null || _token$layout29 === void 0 ? void 0 : (_token$layout29$sider = _token$layout29.sider) === null || _token$layout29$sider === void 0 ? void 0 : _token$layout29$sider.colorTextMenuActive,
58513
58524
  borderRadius: token.radiusBase
58514
58525
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
58515
- color: token.sider.colorTextMenuActive
58526
+ color: token === null || token === void 0 ? void 0 : (_token$layout30 = token.layout) === null || _token$layout30 === void 0 ? void 0 : (_token$layout30$sider = _token$layout30.sider) === null || _token$layout30$sider === void 0 ? void 0 : _token$layout30$sider.colorTextMenuActive
58516
58527
  })), _$concat$concat2)), _$concat11)), _ref;
58517
58528
  };
58518
58529
  var genProLayoutStyle = function genProLayoutStyle(token) {
58519
- var _$concat12, _token$proComponentsC;
58530
+ var _token$layout31, _token$layout31$pageC, _token$layout32, _token$layout32$pageC, _token$layout33, _token$layout33$pageC, _token$layout34, _$concat12, _token$proComponentsC;
58520
58531
  return defineProperty_defineProperty({
58521
58532
  body: {
58522
58533
  paddingBlock: 0,
@@ -58535,13 +58546,13 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
58535
58546
  display: 'flex',
58536
58547
  flexDirection: 'column',
58537
58548
  width: '100%',
58538
- backgroundColor: token.pageContainer.colorBgPageContainer || 'transparent',
58549
+ backgroundColor: (token === null || token === void 0 ? void 0 : (_token$layout31 = token.layout) === null || _token$layout31 === void 0 ? void 0 : (_token$layout31$pageC = _token$layout31.pageContainer) === null || _token$layout31$pageC === void 0 ? void 0 : _token$layout31$pageC.colorBgPageContainer) || 'transparent',
58539
58550
  position: 'relative',
58540
58551
  '*': {
58541
58552
  boxSizing: 'border-box'
58542
58553
  },
58543
- paddingBlock: token.pageContainer.paddingBlockPageContainerContent,
58544
- paddingInline: token.pageContainer.paddingInlinePageContainerContent,
58554
+ paddingBlock: token === null || token === void 0 ? void 0 : (_token$layout32 = token.layout) === null || _token$layout32 === void 0 ? void 0 : (_token$layout32$pageC = _token$layout32.pageContainer) === null || _token$layout32$pageC === void 0 ? void 0 : _token$layout32$pageC.paddingBlockPageContainerContent,
58555
+ paddingInline: token === null || token === void 0 ? void 0 : (_token$layout33 = token.layout) === null || _token$layout33 === void 0 ? void 0 : (_token$layout33$pageC = _token$layout33.pageContainer) === null || _token$layout33$pageC === void 0 ? void 0 : _token$layout33$pageC.paddingInlinePageContainerContent,
58545
58556
  '&-has-page-container': {
58546
58557
  padding: 0
58547
58558
  }
@@ -58560,7 +58571,7 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
58560
58571
  zIndex: 0,
58561
58572
  height: '100%',
58562
58573
  width: '100%',
58563
- background: token.bgLayout
58574
+ background: token === null || token === void 0 ? void 0 : (_token$layout34 = token.layout) === null || _token$layout34 === void 0 ? void 0 : _token$layout34.bgLayout
58564
58575
  }), _$concat12)), defineProperty_defineProperty(_token$proComponentsC, "".concat(token.antCls, "-menu-submenu-popup"), {
58565
58576
  backgroundColor: 'rgba(255, 255, 255, 0.42)',
58566
58577
  '-webkit-backdrop-filter': 'blur(8px)',
@@ -58568,11 +58579,10 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
58568
58579
  }), _token$proComponentsC));
58569
58580
  };
58570
58581
  function es_style_useStyle(prefixCls) {
58571
- var proToken = (0,external_React_.useContext)(ProLayoutContext);
58572
58582
  return useStyle('ProLayout', function (token) {
58573
58583
  var proLayoutToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
58574
58584
  componentCls: ".".concat(prefixCls)
58575
- }, proToken);
58585
+ });
58576
58586
  return [genProLayoutStyle(proLayoutToken), compatibleStyle(proLayoutToken)];
58577
58587
  });
58578
58588
  }
@@ -59234,6 +59244,7 @@ BaseProLayout.defaultProps = objectSpread2_objectSpread2(objectSpread2_objectSpr
59234
59244
  var ProLayout_ProLayout = function ProLayout(props) {
59235
59245
  var _process$env$NODE_ENV;
59236
59246
  var colorPrimary = props.colorPrimary;
59247
+ var tokenContext = (0,external_React_.useContext)(ProProvider);
59237
59248
  return (0,jsx_runtime.jsx)(external_antd_.ConfigProvider
59238
59249
  // @ts-ignore
59239
59250
  , {
@@ -59249,10 +59260,10 @@ var ProLayout_ProLayout = function ProLayout(props) {
59249
59260
  },
59250
59261
  children: (0,jsx_runtime.jsx)(ConfigProviderWrap, {
59251
59262
  autoClearCache: true,
59252
- children: (0,jsx_runtime.jsx)(ProLayoutProvider, {
59253
- token: props.token,
59254
- children: (0,jsx_runtime.jsx)(BaseProLayout, objectSpread2_objectSpread2({}, props))
59255
- })
59263
+ token: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tokenContext.token), {}, {
59264
+ layout: props.token
59265
+ }),
59266
+ children: (0,jsx_runtime.jsx)(BaseProLayout, objectSpread2_objectSpread2({}, props))
59256
59267
  })
59257
59268
  });
59258
59269
  };
@@ -60738,24 +60749,29 @@ function sortableElement(WrappedComponent) {
60738
60749
 
60739
60750
 
60740
60751
  var Alert_style_genProStyle = function genProStyle(token) {
60741
- var _token$componentCls;
60742
- return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
60743
- marginBlockEnd: 16
60744
- }, defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-alert ").concat(token.antCls, "-alert-no-icon"), {
60745
- paddingBlock: token.paddingSM,
60746
- paddingInline: token.paddingLG
60747
- }), defineProperty_defineProperty(_token$componentCls, '&-info', {
60748
- display: 'flex',
60749
- alignItems: 'center',
60750
- transition: 'all 0.3s',
60751
- '&-content': {
60752
- flex: 1
60752
+ return defineProperty_defineProperty({}, token.componentCls, {
60753
+ marginBlockEnd: 16,
60754
+ backgroundColor: 'rgba(0,0,0,0.02)',
60755
+ borderRadius: token.radiusBase,
60756
+ border: '0.5px solid #BFBFBF',
60757
+ '&-container': {
60758
+ paddingBlock: token.paddingSM,
60759
+ paddingInline: token.paddingLG
60753
60760
  },
60754
- '&-option': {
60755
- minWidth: 48,
60756
- paddingInlineStart: 16
60761
+ '&-info': {
60762
+ display: 'flex',
60763
+ alignItems: 'center',
60764
+ transition: 'all 0.3s',
60765
+ color: token.colorTextSecondary,
60766
+ '&-content': {
60767
+ flex: 1
60768
+ },
60769
+ '&-option': {
60770
+ minWidth: 48,
60771
+ paddingInlineStart: 16
60772
+ }
60757
60773
  }
60758
- }), _token$componentCls));
60774
+ });
60759
60775
  };
60760
60776
  function Alert_style_useStyle(prefixCls) {
60761
60777
  return useStyle('ProTableAlert', function (token) {
@@ -60820,9 +60836,10 @@ function TableAlert(_ref) {
60820
60836
  return null;
60821
60837
  }
60822
60838
  return wrapSSR((0,jsx_runtime.jsx)("div", {
60823
- className: className,
60824
- children: (0,jsx_runtime.jsx)(external_antd_.Alert, {
60825
- message: (0,jsx_runtime.jsxs)("div", {
60839
+ className: "".concat(className, " ").concat(hashId),
60840
+ children: (0,jsx_runtime.jsx)("div", {
60841
+ className: "".concat(className, "-container ").concat(hashId),
60842
+ children: (0,jsx_runtime.jsxs)("div", {
60826
60843
  className: "".concat(className, "-info ").concat(hashId),
60827
60844
  children: [(0,jsx_runtime.jsx)("div", {
60828
60845
  className: "".concat(className, "-info-content ").concat(hashId),
@@ -60831,8 +60848,7 @@ function TableAlert(_ref) {
60831
60848
  className: "".concat(className, "-info-option ").concat(hashId),
60832
60849
  children: option
60833
60850
  }) : null]
60834
- }),
60835
- type: "info"
60851
+ })
60836
60852
  })
60837
60853
  }));
60838
60854
  }
@@ -61095,7 +61111,11 @@ function sortData(_ref, data) {
61095
61111
  var oldIndex = _ref.oldIndex,
61096
61112
  newIndex = _ref.newIndex;
61097
61113
  if (oldIndex !== newIndex) {
61098
- var newData = arrayMoveImmutable(toConsumableArray_toConsumableArray(data || []), oldIndex, newIndex).filter(function (el) {
61114
+ var newData = arrayMoveImmutable({
61115
+ array: toConsumableArray_toConsumableArray(data || []),
61116
+ fromIndex: oldIndex,
61117
+ toIndex: newIndex
61118
+ }).filter(function (el) {
61099
61119
  return !!el;
61100
61120
  });
61101
61121
  return toConsumableArray_toConsumableArray(newData);
@@ -62291,7 +62311,8 @@ var HeaderMenu = function HeaderMenu(props) {
62291
62311
  _props$type = props.type,
62292
62312
  type = _props$type === void 0 ? 'inline' : _props$type,
62293
62313
  prefixCls = props.prefixCls,
62294
- propActiveKey = props.activeKey;
62314
+ propActiveKey = props.activeKey,
62315
+ hashId = props.hashId;
62295
62316
  var _useMergedState = (0,useMergedState/* default */.Z)(propActiveKey, {
62296
62317
  value: propActiveKey,
62297
62318
  onChange: props.onChange
@@ -62307,13 +62328,13 @@ var HeaderMenu = function HeaderMenu(props) {
62307
62328
  }) || items[0];
62308
62329
  if (type === 'inline') {
62309
62330
  return (0,jsx_runtime.jsx)("div", {
62310
- className: classnames_default()("".concat(prefixCls, "-menu"), "".concat(prefixCls, "-inline-menu")),
62331
+ className: classnames_default()("".concat(prefixCls, "-menu"), "".concat(prefixCls, "-inline-menu"), hashId),
62311
62332
  children: items.map(function (item, index) {
62312
62333
  return (0,jsx_runtime.jsx)("div", {
62313
62334
  onClick: function onClick() {
62314
62335
  setActiveKey(item.key);
62315
62336
  },
62316
- className: classnames_default()("".concat(prefixCls, "-inline-menu-item"), activeItem.key === item.key ? "".concat(prefixCls, "-inline-menu-item-active") : undefined),
62337
+ className: classnames_default()("".concat(prefixCls, "-inline-menu-item"), activeItem.key === item.key ? "".concat(prefixCls, "-inline-menu-item-active") : undefined, hashId),
62317
62338
  children: item.label
62318
62339
  }, item.key || index);
62319
62340
  })
@@ -62686,7 +62707,8 @@ var ListToolBar = function ListToolBar(_ref2) {
62686
62707
  subTitle: subTitle
62687
62708
  })
62688
62709
  }), menu && (0,jsx_runtime.jsx)(ListToolBar_HeaderMenu, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, menu), {}, {
62689
- prefixCls: prefixCls
62710
+ prefixCls: prefixCls,
62711
+ hashId: hashId
62690
62712
  })), !hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
62691
62713
  className: "".concat(prefixCls, "-search ").concat(hashId),
62692
62714
  children: searchNode
@@ -62698,12 +62720,12 @@ var ListToolBar = function ListToolBar(_ref2) {
62698
62720
  return (0,jsx_runtime.jsxs)(external_antd_.Space, {
62699
62721
  className: "".concat(prefixCls, "-right ").concat(hashId),
62700
62722
  direction: isMobile ? 'vertical' : 'horizontal',
62701
- size: 16,
62723
+ size: 8,
62702
62724
  align: isMobile ? 'end' : 'center',
62703
- children: [hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
62725
+ children: [!multipleLine ? filtersNode : null, hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
62704
62726
  className: "".concat(prefixCls, "-search ").concat(hashId),
62705
62727
  children: searchNode
62706
- }) : null, !multipleLine ? filtersNode : null, actionDom, (settings === null || settings === void 0 ? void 0 : settings.length) ? (0,jsx_runtime.jsx)(external_antd_.Space, {
62728
+ }) : null, actionDom, (settings === null || settings === void 0 ? void 0 : settings.length) ? (0,jsx_runtime.jsx)(external_antd_.Space, {
62707
62729
  size: 12,
62708
62730
  align: "center",
62709
62731
  className: "".concat(prefixCls, "-setting-items ").concat(hashId),
@@ -63238,7 +63260,7 @@ var style_genProListStyle = function genProListStyle(token) {
63238
63260
  }), defineProperty_defineProperty(_search, '&-light-filter', {
63239
63261
  marginBlockEnd: 0,
63240
63262
  paddingBlock: 0,
63241
- paddingInline: 8
63263
+ paddingInline: 0
63242
63264
  }), defineProperty_defineProperty(_search, '&-form-option', (_formOption = {}, defineProperty_defineProperty(_formOption, "".concat(token.antCls, "-form-item"), {}), defineProperty_defineProperty(_formOption, "".concat(token.antCls, "-form-item-label"), {}), defineProperty_defineProperty(_formOption, "".concat(token.antCls, "-form-item-control-input"), {}), _formOption)), defineProperty_defineProperty(_search, '@media (max-width: 575px)', defineProperty_defineProperty({}, token.componentCls, defineProperty_defineProperty({
63243
63265
  height: 'auto !important',
63244
63266
  paddingBlockEnd: '24px'
@@ -64193,7 +64215,6 @@ var Table_excluded = ["rowKey", "tableClassName", "action", "tableColumn", "type
64193
64215
 
64194
64216
  // 兼容代码-----------
64195
64217
 
64196
-
64197
64218
  //----------------------
64198
64219
 
64199
64220
 
@@ -85062,17 +85083,17 @@ function BaseProList(props) {
85062
85083
  /* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
85063
85084
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
85064
85085
  var version_version = {
85065
- "@ant-design/pro-card": "2.0.14",
85066
- "@ant-design/pro-components": "2.3.19",
85067
- "@ant-design/pro-descriptions": "2.0.16",
85068
- "@ant-design/pro-field": "2.1.9",
85069
- "@ant-design/pro-form": "2.2.7",
85070
- "@ant-design/pro-layout": "7.1.8",
85071
- "@ant-design/pro-list": "2.0.16",
85072
- "@ant-design/pro-provider": "2.0.6",
85086
+ "@ant-design/pro-card": "2.0.15",
85087
+ "@ant-design/pro-components": "2.3.20",
85088
+ "@ant-design/pro-descriptions": "2.0.17",
85089
+ "@ant-design/pro-field": "2.1.10",
85090
+ "@ant-design/pro-form": "2.2.8",
85091
+ "@ant-design/pro-layout": "7.1.9",
85092
+ "@ant-design/pro-list": "2.0.17",
85093
+ "@ant-design/pro-provider": "2.0.7",
85073
85094
  "@ant-design/pro-skeleton": "2.0.4",
85074
- "@ant-design/pro-table": "3.0.16",
85075
- "@ant-design/pro-utils": "2.2.6"
85095
+ "@ant-design/pro-table": "3.0.17",
85096
+ "@ant-design/pro-utils": "2.2.7"
85076
85097
  };
85077
85098
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx
85078
85099