@ant-design/pro-components 2.0.0-experimental.8 → 2.0.0-experimental.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +507 -469
- package/dist/components.min.js +1 -1
- package/es/version.js +10 -10
- package/package.json +10 -10
package/dist/components.js
CHANGED
|
@@ -22997,14 +22997,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
22997
22997
|
"DescriptionsSkeleton": function() { return /* reexport */ DescriptionsSkeleton; },
|
|
22998
22998
|
"DragSortTable": function() { return /* reexport */ components_DragSortTable; },
|
|
22999
22999
|
"DrawerForm": function() { return /* reexport */ DrawerForm; },
|
|
23000
|
-
"DropdownFooter": function() { return /* reexport */
|
|
23000
|
+
"DropdownFooter": function() { return /* reexport */ DropdownFooter; },
|
|
23001
23001
|
"EditableProTable": function() { return /* reexport */ components_EditableTable; },
|
|
23002
|
-
"ErrorBoundary": function() { return /* reexport */
|
|
23002
|
+
"ErrorBoundary": function() { return /* reexport */ ErrorBoundary; },
|
|
23003
23003
|
"FieldCode": function() { return /* reexport */ Code; },
|
|
23004
23004
|
"FieldContext": function() { return /* reexport */ FieldContext_FieldContext; },
|
|
23005
23005
|
"FieldDatePicker": function() { return /* reexport */ DatePicker; },
|
|
23006
23006
|
"FieldIndexColumn": function() { return /* reexport */ components_IndexColumn; },
|
|
23007
|
-
"FieldLabel": function() { return /* reexport */
|
|
23007
|
+
"FieldLabel": function() { return /* reexport */ FieldLabel; },
|
|
23008
23008
|
"FieldMoney": function() { return /* reexport */ Money; },
|
|
23009
23009
|
"FieldPercent": function() { return /* reexport */ Percent; },
|
|
23010
23010
|
"FieldProgress": function() { return /* reexport */ Progress; },
|
|
@@ -23014,16 +23014,16 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23014
23014
|
"FieldStatus": function() { return /* reexport */ components_Status; },
|
|
23015
23015
|
"FieldText": function() { return /* reexport */ Text; },
|
|
23016
23016
|
"FieldTimePicker": function() { return /* reexport */ TimePicker; },
|
|
23017
|
-
"FilterDropdown": function() { return /* reexport */
|
|
23017
|
+
"FilterDropdown": function() { return /* reexport */ FilterDropdown; },
|
|
23018
23018
|
"FooterToolbar": function() { return /* reexport */ FooterToolbar; },
|
|
23019
23019
|
"FormItemProvide": function() { return /* reexport */ FormItemProvide; },
|
|
23020
23020
|
"GridContent": function() { return /* reexport */ GridContent; },
|
|
23021
23021
|
"Group": function() { return /* reexport */ components_Group; },
|
|
23022
23022
|
"IndexColumn": function() { return /* reexport */ components_IndexColumn; },
|
|
23023
|
-
"InlineErrorFormItem": function() { return /* reexport */
|
|
23023
|
+
"InlineErrorFormItem": function() { return /* reexport */ InlineErrorFormItem; },
|
|
23024
23024
|
"IntlConsumer": function() { return /* reexport */ ConfigConsumer; },
|
|
23025
23025
|
"IntlProvider": function() { return /* reexport */ ConfigProvider; },
|
|
23026
|
-
"LabelIconTip": function() { return /* reexport */
|
|
23026
|
+
"LabelIconTip": function() { return /* reexport */ LabelIconTip; },
|
|
23027
23027
|
"LightFilter": function() { return /* reexport */ LightFilter; },
|
|
23028
23028
|
"ListPageSkeleton": function() { return /* reexport */ component_List; },
|
|
23029
23029
|
"ListSkeleton": function() { return /* reexport */ ListSkeleton; },
|
|
@@ -23045,7 +23045,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23045
23045
|
"ProFormCascader": function() { return /* reexport */ components_Cascader; },
|
|
23046
23046
|
"ProFormCheckbox": function() { return /* reexport */ components_Checkbox; },
|
|
23047
23047
|
"ProFormColorPicker": function() { return /* reexport */ es_components_ColorPicker; },
|
|
23048
|
-
"ProFormContext": function() { return /* reexport */
|
|
23048
|
+
"ProFormContext": function() { return /* reexport */ ProFormContext; },
|
|
23049
23049
|
"ProFormDatePicker": function() { return /* reexport */ components_DatePicker; },
|
|
23050
23050
|
"ProFormDateRangePicker": function() { return /* reexport */ DateRangePicker; },
|
|
23051
23051
|
"ProFormDateTimePicker": function() { return /* reexport */ DateTimePicker; },
|
|
@@ -23092,11 +23092,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23092
23092
|
"arEGIntl": function() { return /* reexport */ arEGIntl; },
|
|
23093
23093
|
"arrayMoveImmutable": function() { return /* reexport */ arrayMoveImmutable; },
|
|
23094
23094
|
"caESIntl": function() { return /* reexport */ caESIntl; },
|
|
23095
|
-
"conversionMomentValue": function() { return /* reexport */
|
|
23096
|
-
"conversionSubmitValue": function() { return /* reexport */
|
|
23095
|
+
"conversionMomentValue": function() { return /* reexport */ conversionMomentValue; },
|
|
23096
|
+
"conversionSubmitValue": function() { return /* reexport */ conversionMomentValue; },
|
|
23097
23097
|
"convertMoment": function() { return /* reexport */ convertMoment; },
|
|
23098
23098
|
"createIntl": function() { return /* reexport */ createIntl; },
|
|
23099
|
-
"dateArrayFormatter": function() { return /* reexport */
|
|
23099
|
+
"dateArrayFormatter": function() { return /* reexport */ dateArrayFormatter; },
|
|
23100
23100
|
"dateFormatterMap": function() { return /* reexport */ dateFormatterMap; },
|
|
23101
23101
|
"deDEIntl": function() { return /* reexport */ deDEIntl; },
|
|
23102
23102
|
"defaultRenderText": function() { return /* reexport */ defaultRenderText; },
|
|
@@ -23107,19 +23107,19 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23107
23107
|
"faIRIntl": function() { return /* reexport */ faIRIntl; },
|
|
23108
23108
|
"frFRIntl": function() { return /* reexport */ frFRIntl; },
|
|
23109
23109
|
"genCopyable": function() { return /* reexport */ genCopyable; },
|
|
23110
|
-
"getFieldPropsOrFormItemProps": function() { return /* reexport */
|
|
23110
|
+
"getFieldPropsOrFormItemProps": function() { return /* reexport */ getFieldPropsOrFormItemProps; },
|
|
23111
23111
|
"getMenuData": function() { return /* reexport */ getMenuData; },
|
|
23112
23112
|
"getPageTitle": function() { return /* reexport */ getPageTitle; },
|
|
23113
23113
|
"hrHRIntl": function() { return /* reexport */ hrHRIntl; },
|
|
23114
23114
|
"idIDIntl": function() { return /* reexport */ idIDIntl; },
|
|
23115
23115
|
"intlMap": function() { return /* reexport */ intlMap; },
|
|
23116
23116
|
"intlMapKeys": function() { return /* reexport */ intlMapKeys; },
|
|
23117
|
-
"isBrowser": function() { return /* reexport */
|
|
23118
|
-
"isDeepEqualReact": function() { return /* reexport */
|
|
23119
|
-
"isDropdownValueType": function() { return /* reexport */
|
|
23120
|
-
"isImg": function() { return /* reexport */
|
|
23121
|
-
"isNil": function() { return /* reexport */
|
|
23122
|
-
"isUrl": function() { return /* reexport */
|
|
23117
|
+
"isBrowser": function() { return /* reexport */ isBrowser; },
|
|
23118
|
+
"isDeepEqualReact": function() { return /* reexport */ isDeepEqualReact; },
|
|
23119
|
+
"isDropdownValueType": function() { return /* reexport */ isDropdownValueType; },
|
|
23120
|
+
"isImg": function() { return /* reexport */ isImg; },
|
|
23121
|
+
"isNil": function() { return /* reexport */ isNil; },
|
|
23122
|
+
"isUrl": function() { return /* reexport */ isUrl; },
|
|
23123
23123
|
"itITIntl": function() { return /* reexport */ itITIntl; },
|
|
23124
23124
|
"jaJPIntl": function() { return /* reexport */ jaJPIntl; },
|
|
23125
23125
|
"koKRIntl": function() { return /* reexport */ koKRIntl; },
|
|
@@ -23128,10 +23128,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23128
23128
|
"mnMNIntl": function() { return /* reexport */ mnMNIntl; },
|
|
23129
23129
|
"msMYIntl": function() { return /* reexport */ msMYIntl; },
|
|
23130
23130
|
"nanoid": function() { return /* reexport */ nanoid; },
|
|
23131
|
-
"omitBoolean": function() { return /* reexport */
|
|
23132
|
-
"omitUndefined": function() { return /* reexport */
|
|
23133
|
-
"omitUndefinedAndEmptyArr": function() { return /* reexport */
|
|
23134
|
-
"
|
|
23131
|
+
"omitBoolean": function() { return /* reexport */ omitBoolean; },
|
|
23132
|
+
"omitUndefined": function() { return /* reexport */ omitUndefined; },
|
|
23133
|
+
"omitUndefinedAndEmptyArr": function() { return /* reexport */ omitUndefinedAndEmptyArr; },
|
|
23134
|
+
"parseValueToDay": function() { return /* reexport */ parseValueToDay; },
|
|
23135
23135
|
"pickProFormItemProps": function() { return /* reexport */ pickProFormItemProps; },
|
|
23136
23136
|
"pickProProps": function() { return /* reexport */ pickProProps; },
|
|
23137
23137
|
"plPLIntl": function() { return /* reexport */ plPLIntl; },
|
|
@@ -23144,19 +23144,19 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
23144
23144
|
"setAlpha": function() { return /* reexport */ setAlpha; },
|
|
23145
23145
|
"srRSIntl": function() { return /* reexport */ srRSIntl; },
|
|
23146
23146
|
"trTRIntl": function() { return /* reexport */ trTRIntl; },
|
|
23147
|
-
"transformKeySubmitValue": function() { return /* reexport */
|
|
23148
|
-
"useDebounceFn": function() { return /* reexport */
|
|
23147
|
+
"transformKeySubmitValue": function() { return /* reexport */ transformKeySubmitValue; },
|
|
23148
|
+
"useDebounceFn": function() { return /* reexport */ useDebounceFn; },
|
|
23149
23149
|
"useDebounceValue": function() { return /* reexport */ useDebounceValue; },
|
|
23150
|
-
"useDeepCompareEffect": function() { return /* reexport */
|
|
23150
|
+
"useDeepCompareEffect": function() { return /* reexport */ useDeepCompareEffect; },
|
|
23151
23151
|
"useDeepCompareEffectDebounce": function() { return /* reexport */ useDeepCompareEffectDebounce; },
|
|
23152
|
-
"useDocumentTitle": function() { return /* reexport */
|
|
23153
|
-
"useEditableArray": function() { return /* reexport */
|
|
23154
|
-
"useEditableMap": function() { return /* reexport */
|
|
23155
|
-
"useFetchData": function() { return /* reexport */
|
|
23152
|
+
"useDocumentTitle": function() { return /* reexport */ useDocumentTitle; },
|
|
23153
|
+
"useEditableArray": function() { return /* reexport */ useEditableArray; },
|
|
23154
|
+
"useEditableMap": function() { return /* reexport */ useEditableMap; },
|
|
23155
|
+
"useFetchData": function() { return /* reexport */ useFetchData; },
|
|
23156
23156
|
"useIntl": function() { return /* reexport */ useIntl; },
|
|
23157
|
-
"useLatest": function() { return /* reexport */
|
|
23158
|
-
"useMountMergeState": function() { return /* reexport */
|
|
23159
|
-
"usePrevious": function() { return /* reexport */
|
|
23157
|
+
"useLatest": function() { return /* reexport */ useLatest; },
|
|
23158
|
+
"useMountMergeState": function() { return /* reexport */ useMergedState/* default */.Z; },
|
|
23159
|
+
"usePrevious": function() { return /* reexport */ usePrevious; },
|
|
23160
23160
|
"useRefFunction": function() { return /* reexport */ useRefFunction; },
|
|
23161
23161
|
"useStyle": function() { return /* reexport */ useStyle; },
|
|
23162
23162
|
"version": function() { return /* reexport */ version_version; },
|
|
@@ -26439,7 +26439,6 @@ var createIntl = function createIntl(locale, localeMap) {
|
|
|
26439
26439
|
locale: locale
|
|
26440
26440
|
};
|
|
26441
26441
|
};
|
|
26442
|
-
|
|
26443
26442
|
var mnMNIntl = createIntl('mn_MN', mn_MN);
|
|
26444
26443
|
var arEGIntl = createIntl('ar_EG', ar_EG);
|
|
26445
26444
|
var zhCNIntl = createIntl('zh_CN', provider_es_locale_zh_CN);
|
|
@@ -26490,7 +26489,6 @@ var intlMap = {
|
|
|
26490
26489
|
};
|
|
26491
26490
|
var intlMapKeys = Object.keys(intlMap);
|
|
26492
26491
|
|
|
26493
|
-
|
|
26494
26492
|
var es_ConfigContext = /*#__PURE__*/external_React_default().createContext({
|
|
26495
26493
|
intl: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, zhCNIntl), {}, {
|
|
26496
26494
|
locale: 'default'
|
|
@@ -26505,6 +26503,8 @@ var ConfigConsumer = es_ConfigContext.Consumer,
|
|
|
26505
26503
|
* @param localeKey
|
|
26506
26504
|
*/
|
|
26507
26505
|
|
|
26506
|
+
|
|
26507
|
+
|
|
26508
26508
|
var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) {
|
|
26509
26509
|
if (!localeKey) {
|
|
26510
26510
|
return 'zh-CN';
|
|
@@ -26592,7 +26592,6 @@ var ConfigProviderWrap = function ConfigProviderWrap(_ref) {
|
|
|
26592
26592
|
children: configProviderDom
|
|
26593
26593
|
});
|
|
26594
26594
|
};
|
|
26595
|
-
|
|
26596
26595
|
function useIntl() {
|
|
26597
26596
|
var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
26598
26597
|
locale = _useContext2.locale;
|
|
@@ -29375,16 +29374,42 @@ var defaultAlgorithm = function defaultAlgorithm() {
|
|
|
29375
29374
|
|
|
29376
29375
|
|
|
29377
29376
|
|
|
29377
|
+
/**
|
|
29378
|
+
* 把一个颜色设置一下透明度
|
|
29379
|
+
* @example (#fff, 0.5) => rgba(255, 255, 255, 0.5)
|
|
29380
|
+
* @param baseColor {string}
|
|
29381
|
+
* @param alpha {0-1}
|
|
29382
|
+
* @returns rgba {string}
|
|
29383
|
+
*/
|
|
29384
|
+
|
|
29378
29385
|
var setAlpha = function setAlpha(baseColor, alpha) {
|
|
29379
29386
|
return new TinyColor(baseColor).setAlpha(alpha).toRgbString();
|
|
29380
29387
|
};
|
|
29388
|
+
/**
|
|
29389
|
+
* 把一个颜色修改一些明度
|
|
29390
|
+
* @example (#000, 50) => #808080
|
|
29391
|
+
* @param baseColor {string}
|
|
29392
|
+
* @param brightness {0-100}
|
|
29393
|
+
* @returns hexColor {string}
|
|
29394
|
+
*/
|
|
29395
|
+
|
|
29381
29396
|
var lighten = function lighten(baseColor, brightness) {
|
|
29382
29397
|
var instance = new TinyColor(baseColor);
|
|
29383
29398
|
return instance.lighten(brightness).toHexString();
|
|
29384
29399
|
};
|
|
29400
|
+
/**
|
|
29401
|
+
* 如果 antd 里面没有,就用我 mock 的,这样 antd@4 和 antd@5 可以兼容
|
|
29402
|
+
*/
|
|
29385
29403
|
|
|
29386
29404
|
var _batToken$antdTheme = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token_namespaceObject), external_antd_.theme),
|
|
29387
29405
|
useStyle_useToken = _batToken$antdTheme.useToken;
|
|
29406
|
+
/**
|
|
29407
|
+
* 封装了一下 antd 的 useStyle,支持了一下antd@4
|
|
29408
|
+
* @param componentName {string} 组件的名字
|
|
29409
|
+
* @param styleFn {GenerateStyle} 生成样式的函数
|
|
29410
|
+
* @returns {UseStyleResult}
|
|
29411
|
+
*/
|
|
29412
|
+
|
|
29388
29413
|
|
|
29389
29414
|
function useStyle(componentName, styleFn) {
|
|
29390
29415
|
var _useToken = useStyle_useToken(),
|
|
@@ -29394,6 +29419,12 @@ function useStyle(componentName, styleFn) {
|
|
|
29394
29419
|
|
|
29395
29420
|
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
29396
29421
|
getPrefixCls = _useContext.getPrefixCls;
|
|
29422
|
+
/**
|
|
29423
|
+
* pro 的 类
|
|
29424
|
+
* @type {string}
|
|
29425
|
+
* @example .ant-pro
|
|
29426
|
+
*/
|
|
29427
|
+
|
|
29397
29428
|
|
|
29398
29429
|
var proComponentsCls = ".".concat(getPrefixCls(), "-pro");
|
|
29399
29430
|
return {
|
|
@@ -29498,7 +29529,7 @@ var DropdownFooter = function DropdownFooter(props) {
|
|
|
29498
29529
|
}));
|
|
29499
29530
|
};
|
|
29500
29531
|
|
|
29501
|
-
|
|
29532
|
+
|
|
29502
29533
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
29503
29534
|
function _setPrototypeOf(o, p) {
|
|
29504
29535
|
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
@@ -29651,7 +29682,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
29651
29682
|
return ErrorBoundary;
|
|
29652
29683
|
}((external_React_default()).Component);
|
|
29653
29684
|
|
|
29654
|
-
|
|
29685
|
+
|
|
29655
29686
|
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js
|
|
29656
29687
|
// This icon file is generated automatically.
|
|
29657
29688
|
var CloseOutlined = {
|
|
@@ -29990,14 +30021,17 @@ var style_genProStyle = function genProStyle(token) {
|
|
|
29990
30021
|
alignItems: 'center',
|
|
29991
30022
|
height: '30px',
|
|
29992
30023
|
paddingBlock: 0,
|
|
29993
|
-
paddingInline:
|
|
29994
|
-
fontSize:
|
|
30024
|
+
paddingInline: 8,
|
|
30025
|
+
fontSize: token.fontSizeBase,
|
|
29995
30026
|
lineHeight: '30px',
|
|
29996
30027
|
borderRadius: '2px',
|
|
29997
30028
|
cursor: 'pointer',
|
|
29998
30029
|
'&:hover': {
|
|
29999
30030
|
backgroundColor: 'rgba(0,0,0,0.1)'
|
|
30000
30031
|
},
|
|
30032
|
+
'*': {
|
|
30033
|
+
boxSizing: 'border-box'
|
|
30034
|
+
},
|
|
30001
30035
|
'&-active': defineProperty_defineProperty({
|
|
30002
30036
|
paddingBlock: 0,
|
|
30003
30037
|
paddingInline: 12,
|
|
@@ -30005,7 +30039,7 @@ var style_genProStyle = function genProStyle(token) {
|
|
|
30005
30039
|
}, "&".concat(token.componentCls, "-allow-clear:hover:not(").concat(token.componentCls, "-disabled)"), (_$concat$concat = {}, defineProperty_defineProperty(_$concat$concat, "".concat(token.componentCls, "-arrow"), {
|
|
30006
30040
|
display: 'none'
|
|
30007
30041
|
}), defineProperty_defineProperty(_$concat$concat, "".concat(token.componentCls, "-close"), {
|
|
30008
|
-
display: 'inline-
|
|
30042
|
+
display: 'inline-flex'
|
|
30009
30043
|
}), _$concat$concat)),
|
|
30010
30044
|
'&-icon': defineProperty_defineProperty({
|
|
30011
30045
|
height: '12px',
|
|
@@ -30016,9 +30050,10 @@ var style_genProStyle = function genProStyle(token) {
|
|
|
30016
30050
|
verticalAlign: 'middle'
|
|
30017
30051
|
}, "&".concat(token.componentCls, "-close"), {
|
|
30018
30052
|
display: 'none',
|
|
30019
|
-
height:
|
|
30020
|
-
|
|
30021
|
-
|
|
30053
|
+
height: 14,
|
|
30054
|
+
alignItems: 'center',
|
|
30055
|
+
justifyContent: 'center',
|
|
30056
|
+
width: 14,
|
|
30022
30057
|
color: token.colorBgBase,
|
|
30023
30058
|
fontSize: 8,
|
|
30024
30059
|
backgroundColor: token.colorTextPlaceholder,
|
|
@@ -30088,7 +30123,7 @@ function FieldLabel_style_useStyle(prefixCls) {
|
|
|
30088
30123
|
|
|
30089
30124
|
|
|
30090
30125
|
|
|
30091
|
-
var
|
|
30126
|
+
var FieldLabelFunction = function FieldLabelFunction(props, ref) {
|
|
30092
30127
|
var _classNames;
|
|
30093
30128
|
|
|
30094
30129
|
var label = props.label,
|
|
@@ -30208,7 +30243,7 @@ var FieldLabel = function FieldLabel(props, ref) {
|
|
|
30208
30243
|
}));
|
|
30209
30244
|
};
|
|
30210
30245
|
|
|
30211
|
-
|
|
30246
|
+
var FieldLabel = /*#__PURE__*/external_React_default().forwardRef(FieldLabelFunction);
|
|
30212
30247
|
;// CONCATENATED MODULE: ./packages/utils/es/components/FilterDropdown/style.js
|
|
30213
30248
|
|
|
30214
30249
|
|
|
@@ -30281,7 +30316,7 @@ var FilterDropdown = function FilterDropdown(props) {
|
|
|
30281
30316
|
children: [(0,jsx_runtime.jsx)("div", {
|
|
30282
30317
|
className: "".concat(prefixCls, "-content"),
|
|
30283
30318
|
children: children
|
|
30284
|
-
}), footer && (0,jsx_runtime.jsx)(
|
|
30319
|
+
}), footer && (0,jsx_runtime.jsx)(DropdownFooter, objectSpread2_objectSpread2({
|
|
30285
30320
|
disabled: disabled,
|
|
30286
30321
|
footerRender: footerRender
|
|
30287
30322
|
}, footer))]
|
|
@@ -30293,7 +30328,7 @@ var FilterDropdown = function FilterDropdown(props) {
|
|
|
30293
30328
|
}));
|
|
30294
30329
|
};
|
|
30295
30330
|
|
|
30296
|
-
|
|
30331
|
+
|
|
30297
30332
|
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js
|
|
30298
30333
|
// This icon file is generated automatically.
|
|
30299
30334
|
var LoadingOutlined = {
|
|
@@ -30416,7 +30451,7 @@ var FIX_INLINE_STYLE = {
|
|
|
30416
30451
|
marginInlineEnd: 0
|
|
30417
30452
|
};
|
|
30418
30453
|
|
|
30419
|
-
var
|
|
30454
|
+
var InlineErrorFormItemPopover = function InlineErrorFormItemPopover(_ref) {
|
|
30420
30455
|
var inputProps = _ref.inputProps,
|
|
30421
30456
|
input = _ref.input,
|
|
30422
30457
|
extra = _ref.extra,
|
|
@@ -30468,7 +30503,7 @@ var InlineErrorFormItem = function InlineErrorFormItem(_ref) {
|
|
|
30468
30503
|
}), "popover");
|
|
30469
30504
|
};
|
|
30470
30505
|
|
|
30471
|
-
var
|
|
30506
|
+
var InternalFormItemFunction = function InternalFormItemFunction(_ref2) {
|
|
30472
30507
|
var label = _ref2.label,
|
|
30473
30508
|
rules = _ref2.rules,
|
|
30474
30509
|
name = _ref2.name,
|
|
@@ -30485,7 +30520,7 @@ var InternalFormItem = function InternalFormItem(_ref2) {
|
|
|
30485
30520
|
_internalItemRender: {
|
|
30486
30521
|
mark: 'pro_table_render',
|
|
30487
30522
|
render: function render(inputProps, doms) {
|
|
30488
|
-
return (0,jsx_runtime.jsx)(
|
|
30523
|
+
return (0,jsx_runtime.jsx)(InlineErrorFormItemPopover, objectSpread2_objectSpread2({
|
|
30489
30524
|
inputProps: inputProps,
|
|
30490
30525
|
popoverProps: popoverProps
|
|
30491
30526
|
}, doms));
|
|
@@ -30497,7 +30532,7 @@ var InternalFormItem = function InternalFormItem(_ref2) {
|
|
|
30497
30532
|
}));
|
|
30498
30533
|
};
|
|
30499
30534
|
|
|
30500
|
-
|
|
30535
|
+
var InlineErrorFormItem = function InlineErrorFormItem(props) {
|
|
30501
30536
|
var errorType = props.errorType,
|
|
30502
30537
|
rules = props.rules,
|
|
30503
30538
|
name = props.name,
|
|
@@ -30506,7 +30541,7 @@ var InternalFormItem = function InternalFormItem(_ref2) {
|
|
|
30506
30541
|
rest = objectWithoutProperties_objectWithoutProperties(props, _excluded2);
|
|
30507
30542
|
|
|
30508
30543
|
if (name && (rules === null || rules === void 0 ? void 0 : rules.length) && errorType === 'popover') {
|
|
30509
|
-
return (0,jsx_runtime.jsx)(
|
|
30544
|
+
return (0,jsx_runtime.jsx)(InternalFormItemFunction, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
30510
30545
|
name: name,
|
|
30511
30546
|
rules: rules,
|
|
30512
30547
|
popoverProps: popoverProps
|
|
@@ -30522,7 +30557,7 @@ var InternalFormItem = function InternalFormItem(_ref2) {
|
|
|
30522
30557
|
name: name,
|
|
30523
30558
|
children: children
|
|
30524
30559
|
}));
|
|
30525
|
-
}
|
|
30560
|
+
};
|
|
30526
30561
|
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/InfoCircleOutlined.js
|
|
30527
30562
|
// This icon file is generated automatically.
|
|
30528
30563
|
var InfoCircleOutlined = {
|
|
@@ -30627,7 +30662,7 @@ function LabelIconTip_style_useStyle(prefixCls) {
|
|
|
30627
30662
|
* @param props
|
|
30628
30663
|
*/
|
|
30629
30664
|
|
|
30630
|
-
var LabelIconTip = function
|
|
30665
|
+
var LabelIconTip = /*#__PURE__*/external_React_default().memo(function (props) {
|
|
30631
30666
|
var label = props.label,
|
|
30632
30667
|
tooltip = props.tooltip,
|
|
30633
30668
|
ellipsis = props.ellipsis,
|
|
@@ -30678,13 +30713,10 @@ var LabelIconTip = function LabelIconTip(props) {
|
|
|
30678
30713
|
})
|
|
30679
30714
|
}))]
|
|
30680
30715
|
}));
|
|
30681
|
-
};
|
|
30682
|
-
|
|
30683
|
-
/* harmony default export */ var components_LabelIconTip = (/*#__PURE__*/external_React_default().memo(LabelIconTip));
|
|
30716
|
+
});
|
|
30684
30717
|
;// CONCATENATED MODULE: ./packages/utils/es/components/ProFormContext/index.js
|
|
30685
30718
|
|
|
30686
30719
|
var ProFormContext = /*#__PURE__*/external_React_default().createContext({});
|
|
30687
|
-
/* harmony default export */ var components_ProFormContext = (ProFormContext);
|
|
30688
30720
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
30689
30721
|
var dayjs_min = __webpack_require__(3129);
|
|
30690
30722
|
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
@@ -30694,8 +30726,6 @@ var utils_get = __webpack_require__(4959);
|
|
|
30694
30726
|
var isNil = function isNil(value) {
|
|
30695
30727
|
return value === null || value === undefined;
|
|
30696
30728
|
};
|
|
30697
|
-
|
|
30698
|
-
/* harmony default export */ var es_isNil = (isNil);
|
|
30699
30729
|
;// CONCATENATED MODULE: ./packages/utils/es/conversionMomentValue/index.js
|
|
30700
30730
|
|
|
30701
30731
|
|
|
@@ -30780,7 +30810,7 @@ var conversionMomentValue = function conversionMomentValue(value, dateFormatter,
|
|
|
30780
30810
|
if (typeof window === 'undefined') return value; // 如果 value 是 string | null | Blob类型 其中之一,直接返回
|
|
30781
30811
|
// 形如 {key: [File, File]} 的表单字段当进行第二次递归时会导致其直接越过 typeof value !== 'object' 这一判断 https://github.com/ant-design/pro-components/issues/2071
|
|
30782
30812
|
|
|
30783
|
-
if (typeof_typeof(value) !== 'object' ||
|
|
30813
|
+
if (typeof_typeof(value) !== 'object' || isNil(value) || value instanceof Blob || Array.isArray(value)) {
|
|
30784
30814
|
return value;
|
|
30785
30815
|
}
|
|
30786
30816
|
|
|
@@ -30799,7 +30829,7 @@ var conversionMomentValue = function conversionMomentValue(value, dateFormatter,
|
|
|
30799
30829
|
|
|
30800
30830
|
var itemValue = value[key];
|
|
30801
30831
|
|
|
30802
|
-
if (
|
|
30832
|
+
if (isNil(itemValue) && omitNil) {
|
|
30803
30833
|
return;
|
|
30804
30834
|
} // 处理嵌套的情况
|
|
30805
30835
|
|
|
@@ -30827,8 +30857,6 @@ var conversionMomentValue = function conversionMomentValue(value, dateFormatter,
|
|
|
30827
30857
|
});
|
|
30828
30858
|
return tmpValue;
|
|
30829
30859
|
};
|
|
30830
|
-
|
|
30831
|
-
/* harmony default export */ var es_conversionMomentValue = (conversionMomentValue);
|
|
30832
30860
|
;// CONCATENATED MODULE: ./packages/utils/es/dateArrayFormatter/index.js
|
|
30833
30861
|
|
|
30834
30862
|
|
|
@@ -30870,8 +30898,6 @@ var dateArrayFormatter = function dateArrayFormatter(value, format) {
|
|
|
30870
30898
|
var valueStr = parsedStartText && parsedEndText ? "".concat(parsedStartText, " ~ ").concat(parsedEndText) : '';
|
|
30871
30899
|
return valueStr;
|
|
30872
30900
|
};
|
|
30873
|
-
|
|
30874
|
-
/* harmony default export */ var es_dateArrayFormatter = (dateArrayFormatter);
|
|
30875
30901
|
;// CONCATENATED MODULE: ./packages/utils/es/genCopyable/index.js
|
|
30876
30902
|
|
|
30877
30903
|
|
|
@@ -30957,8 +30983,6 @@ var getFieldPropsOrFormItemProps = function getFieldPropsOrFormItemProps(fieldPr
|
|
|
30957
30983
|
|
|
30958
30984
|
return runFunction(fieldProps, form, extraProps);
|
|
30959
30985
|
};
|
|
30960
|
-
|
|
30961
|
-
/* harmony default export */ var es_getFieldPropsOrFormItemProps = (getFieldPropsOrFormItemProps);
|
|
30962
30986
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
30963
30987
|
|
|
30964
30988
|
function _regeneratorRuntime() {
|
|
@@ -31374,7 +31398,6 @@ var useRefFunction = function useRefFunction(reFunction) {
|
|
|
31374
31398
|
|
|
31375
31399
|
|
|
31376
31400
|
|
|
31377
|
-
|
|
31378
31401
|
function useDebounceFn(fn, wait) {
|
|
31379
31402
|
var callback = useRefFunction(fn);
|
|
31380
31403
|
var timer = (0,external_React_.useRef)();
|
|
@@ -31476,8 +31499,6 @@ function useDebounceFn(fn, wait) {
|
|
|
31476
31499
|
cancel: cancel
|
|
31477
31500
|
};
|
|
31478
31501
|
}
|
|
31479
|
-
|
|
31480
|
-
/* harmony default export */ var hooks_useDebounceFn = (useDebounceFn);
|
|
31481
31502
|
;// CONCATENATED MODULE: ./packages/utils/es/hooks/useLatest/index.js
|
|
31482
31503
|
|
|
31483
31504
|
/**
|
|
@@ -31489,8 +31510,6 @@ var useLatest = function useLatest(value) {
|
|
|
31489
31510
|
ref.current = value;
|
|
31490
31511
|
return ref;
|
|
31491
31512
|
};
|
|
31492
|
-
|
|
31493
|
-
/* harmony default export */ var hooks_useLatest = (useLatest);
|
|
31494
31513
|
;// CONCATENATED MODULE: ./packages/utils/es/hooks/useDebounceValue/index.js
|
|
31495
31514
|
|
|
31496
31515
|
|
|
@@ -31505,7 +31524,7 @@ function useDebounceValue(value) {
|
|
|
31505
31524
|
debouncedValue = _useState2[0],
|
|
31506
31525
|
setDebouncedValue = _useState2[1];
|
|
31507
31526
|
|
|
31508
|
-
var valueRef =
|
|
31527
|
+
var valueRef = useLatest(value);
|
|
31509
31528
|
(0,external_React_.useEffect)(function () {
|
|
31510
31529
|
var handler = setTimeout(function () {
|
|
31511
31530
|
setDebouncedValue(valueRef.current);
|
|
@@ -31658,8 +31677,6 @@ function isDeepEqualReact(a, b, ignoreKeys, debug) {
|
|
|
31658
31677
|
|
|
31659
31678
|
return a !== a && b !== b;
|
|
31660
31679
|
}
|
|
31661
|
-
|
|
31662
|
-
/* harmony default export */ var es_isDeepEqualReact = (isDeepEqualReact);
|
|
31663
31680
|
;// CONCATENATED MODULE: ./packages/utils/es/hooks/useDeepCompareEffect/index.js
|
|
31664
31681
|
|
|
31665
31682
|
|
|
@@ -31667,7 +31684,7 @@ function isDeepEqualReact(a, b, ignoreKeys, debug) {
|
|
|
31667
31684
|
|
|
31668
31685
|
|
|
31669
31686
|
var isDeepEqual = function isDeepEqual(a, b, ignoreKeys) {
|
|
31670
|
-
return
|
|
31687
|
+
return isDeepEqualReact(a, b, ignoreKeys);
|
|
31671
31688
|
};
|
|
31672
31689
|
|
|
31673
31690
|
function useDeepCompareMemoize(value, ignoreKeys) {
|
|
@@ -31685,9 +31702,8 @@ function useDeepCompareEffect(effect, dependencies, ignoreKeys) {
|
|
|
31685
31702
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31686
31703
|
(0,external_React_.useEffect)(effect, useDeepCompareMemoize(dependencies || [], ignoreKeys));
|
|
31687
31704
|
}
|
|
31688
|
-
|
|
31689
31705
|
function useDeepCompareEffectDebounce(effect, dependencies, ignoreKeys, waitTime) {
|
|
31690
|
-
var effectDn =
|
|
31706
|
+
var effectDn = useDebounceFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31691
31707
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31692
31708
|
while (1) {
|
|
31693
31709
|
switch (_context.prev = _context.next) {
|
|
@@ -31705,33 +31721,24 @@ function useDeepCompareEffectDebounce(effect, dependencies, ignoreKeys, waitTime
|
|
|
31705
31721
|
effectDn.run(); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31706
31722
|
}, useDeepCompareMemoize(dependencies || [], ignoreKeys));
|
|
31707
31723
|
}
|
|
31708
|
-
|
|
31709
|
-
|
|
31710
|
-
/* harmony default export */ var hooks_useDeepCompareEffect = (useDeepCompareEffect);
|
|
31711
31724
|
;// CONCATENATED MODULE: ./packages/utils/es/isBrowser/index.js
|
|
31712
31725
|
var isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
|
|
31713
|
-
|
|
31714
31726
|
var isBrowser = function isBrowser() {
|
|
31715
31727
|
if (false) {}
|
|
31716
31728
|
|
|
31717
31729
|
return typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.matchMedia !== 'undefined' && !isNode;
|
|
31718
31730
|
};
|
|
31719
|
-
|
|
31720
|
-
/* harmony default export */ var es_isBrowser = (isBrowser);
|
|
31721
31731
|
;// CONCATENATED MODULE: ./packages/utils/es/hooks/useDocumentTitle/index.js
|
|
31722
31732
|
|
|
31723
31733
|
|
|
31724
|
-
|
|
31725
31734
|
function useDocumentTitle(titleInfo, appDefaultTitle) {
|
|
31726
31735
|
var titleText = typeof titleInfo.pageName === 'string' ? titleInfo.title : appDefaultTitle;
|
|
31727
31736
|
(0,external_React_.useEffect)(function () {
|
|
31728
|
-
if (
|
|
31737
|
+
if (isBrowser() && titleText) {
|
|
31729
31738
|
document.title = titleText;
|
|
31730
31739
|
}
|
|
31731
31740
|
}, [titleInfo.title, titleText]);
|
|
31732
31741
|
}
|
|
31733
|
-
|
|
31734
|
-
/* harmony default export */ var hooks_useDocumentTitle = (useDocumentTitle);
|
|
31735
31742
|
;// CONCATENATED MODULE: ./packages/utils/es/hooks/useFetchData/index.js
|
|
31736
31743
|
|
|
31737
31744
|
|
|
@@ -31739,7 +31746,6 @@ function useDocumentTitle(titleInfo, appDefaultTitle) {
|
|
|
31739
31746
|
|
|
31740
31747
|
|
|
31741
31748
|
var testId = 0;
|
|
31742
|
-
|
|
31743
31749
|
function useFetchData(props) {
|
|
31744
31750
|
/** Key 是用来缓存请求的,如果不在是有问题 */
|
|
31745
31751
|
var _useState = (0,external_React_.useState)(function () {
|
|
@@ -31800,11 +31806,8 @@ function useFetchData(props) {
|
|
|
31800
31806
|
|
|
31801
31807
|
return [data || error];
|
|
31802
31808
|
}
|
|
31803
|
-
|
|
31804
|
-
/* harmony default export */ var hooks_useFetchData = (useFetchData);
|
|
31805
31809
|
;// CONCATENATED MODULE: ./packages/utils/es/hooks/usePrevious/index.js
|
|
31806
31810
|
|
|
31807
|
-
|
|
31808
31811
|
var usePrevious = function usePrevious(state) {
|
|
31809
31812
|
var ref = (0,external_React_.useRef)();
|
|
31810
31813
|
(0,external_React_.useEffect)(function () {
|
|
@@ -31812,8 +31815,6 @@ var usePrevious = function usePrevious(state) {
|
|
|
31812
31815
|
});
|
|
31813
31816
|
return ref.current;
|
|
31814
31817
|
};
|
|
31815
|
-
|
|
31816
|
-
/* harmony default export */ var hooks_usePrevious = (usePrevious);
|
|
31817
31818
|
;// CONCATENATED MODULE: ./packages/utils/es/isDropdownValueType/index.js
|
|
31818
31819
|
var isDropdownValueType = function isDropdownValueType(valueType) {
|
|
31819
31820
|
var isDropdown = false;
|
|
@@ -31824,15 +31825,11 @@ var isDropdownValueType = function isDropdownValueType(valueType) {
|
|
|
31824
31825
|
|
|
31825
31826
|
return isDropdown;
|
|
31826
31827
|
};
|
|
31827
|
-
|
|
31828
|
-
/* harmony default export */ var es_isDropdownValueType = (isDropdownValueType);
|
|
31829
31828
|
;// CONCATENATED MODULE: ./packages/utils/es/isImg/index.js
|
|
31830
31829
|
/** 判断是否是图片链接 */
|
|
31831
31830
|
function isImg(path) {
|
|
31832
31831
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(path);
|
|
31833
31832
|
}
|
|
31834
|
-
|
|
31835
|
-
/* harmony default export */ var es_isImg = (isImg);
|
|
31836
31833
|
;// CONCATENATED MODULE: ./packages/utils/es/isUrl/index.js
|
|
31837
31834
|
var isUrl = function isUrl(path) {
|
|
31838
31835
|
if (!path) return false;
|
|
@@ -31848,8 +31845,6 @@ var isUrl = function isUrl(path) {
|
|
|
31848
31845
|
return false;
|
|
31849
31846
|
}
|
|
31850
31847
|
};
|
|
31851
|
-
|
|
31852
|
-
/* harmony default export */ var es_isUrl = (isUrl);
|
|
31853
31848
|
;// CONCATENATED MODULE: ./packages/utils/es/merge/index.js
|
|
31854
31849
|
|
|
31855
31850
|
|
|
@@ -31925,8 +31920,6 @@ var omitBoolean = function omitBoolean(obj) {
|
|
|
31925
31920
|
|
|
31926
31921
|
return undefined;
|
|
31927
31922
|
};
|
|
31928
|
-
|
|
31929
|
-
/* harmony default export */ var es_omitBoolean = (omitBoolean);
|
|
31930
31923
|
;// CONCATENATED MODULE: ./packages/utils/es/omitUndefined/index.js
|
|
31931
31924
|
var omitUndefined = function omitUndefined(obj) {
|
|
31932
31925
|
var newObj = {};
|
|
@@ -31942,8 +31935,6 @@ var omitUndefined = function omitUndefined(obj) {
|
|
|
31942
31935
|
|
|
31943
31936
|
return newObj;
|
|
31944
31937
|
};
|
|
31945
|
-
|
|
31946
|
-
/* harmony default export */ var es_omitUndefined = (omitUndefined);
|
|
31947
31938
|
;// CONCATENATED MODULE: ./packages/utils/es/omitUndefinedAndEmptyArr/index.js
|
|
31948
31939
|
var omitUndefinedAndEmptyArr = function omitUndefinedAndEmptyArr(obj) {
|
|
31949
31940
|
var newObj = {};
|
|
@@ -31962,28 +31953,23 @@ var omitUndefinedAndEmptyArr = function omitUndefinedAndEmptyArr(obj) {
|
|
|
31962
31953
|
});
|
|
31963
31954
|
return newObj;
|
|
31964
31955
|
};
|
|
31965
|
-
|
|
31966
|
-
/* harmony default export */ var es_omitUndefinedAndEmptyArr = (omitUndefinedAndEmptyArr);
|
|
31967
31956
|
;// CONCATENATED MODULE: ./packages/utils/es/parseValueToMoment/index.js
|
|
31968
31957
|
|
|
31969
31958
|
|
|
31970
|
-
|
|
31971
|
-
|
|
31972
|
-
if (es_isNil(value) || dayjs_min_default().isDayjs(value)) {
|
|
31959
|
+
var parseValueToDay = function parseValueToDay(value, formatter) {
|
|
31960
|
+
if (isNil(value) || dayjs_min_default().isDayjs(value)) {
|
|
31973
31961
|
return value;
|
|
31974
31962
|
}
|
|
31975
31963
|
|
|
31976
31964
|
if (Array.isArray(value)) {
|
|
31977
31965
|
return value.map(function (v) {
|
|
31978
|
-
return
|
|
31966
|
+
return parseValueToDay(v, formatter);
|
|
31979
31967
|
});
|
|
31980
31968
|
}
|
|
31981
31969
|
|
|
31982
31970
|
if (typeof value === 'number') return dayjs_min_default()(value);
|
|
31983
31971
|
return dayjs_min_default()(value, formatter);
|
|
31984
31972
|
};
|
|
31985
|
-
|
|
31986
|
-
/* harmony default export */ var es_parseValueToMoment = (parseValueToMoment);
|
|
31987
31973
|
;// CONCATENATED MODULE: ./packages/utils/es/pickProFormItemProps/index.js
|
|
31988
31974
|
var antdFormItemPropsList = [// https://ant.design/components/form-cn/#Form.Item
|
|
31989
31975
|
'colon', 'dependencies', 'extra', 'getValueFromEvent', 'getValueProps', 'hasFeedback', 'help', 'htmlFor', 'initialValue', 'noStyle', 'label', 'labelAlign', 'labelCol', 'name', 'preserve', 'normalize', 'required', 'rules', 'shouldUpdate', 'trigger', 'validateFirst', 'validateStatus', 'validateTrigger', 'valuePropName', 'wrapperCol', 'hidden', // 我自定义的
|
|
@@ -32046,14 +32032,13 @@ function isPlainObj(itemValue) {
|
|
|
32046
32032
|
if (Array.isArray(itemValue)) return false;
|
|
32047
32033
|
return true;
|
|
32048
32034
|
}
|
|
32049
|
-
|
|
32050
32035
|
var transformKeySubmitValue = function transformKeySubmitValue(values, dataFormatMapRaw) {
|
|
32051
32036
|
var omit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; // ignore nil transform
|
|
32052
32037
|
|
|
32053
32038
|
var dataFormatMap = Object.keys(dataFormatMapRaw).reduce(function (ret, key) {
|
|
32054
32039
|
var value = dataFormatMapRaw[key];
|
|
32055
32040
|
|
|
32056
|
-
if (!
|
|
32041
|
+
if (!isNil(value)) {
|
|
32057
32042
|
// eslint-disable-next-line no-param-reassign
|
|
32058
32043
|
ret[key] = value; // can't be undefined
|
|
32059
32044
|
}
|
|
@@ -32068,7 +32053,7 @@ var transformKeySubmitValue = function transformKeySubmitValue(values, dataForma
|
|
|
32068
32053
|
if (typeof window === 'undefined') return values; // 如果 value 是 string | null | Array | Blob类型 其中之一,直接返回
|
|
32069
32054
|
// 形如 {key: [File, File]} 的表单字段当进行第二次递归时会导致其直接越过 typeof value !== 'object' 这一判断 https://github.com/ant-design/pro-components/issues/2071
|
|
32070
32055
|
|
|
32071
|
-
if (typeof_typeof(values) !== 'object' ||
|
|
32056
|
+
if (typeof_typeof(values) !== 'object' || isNil(values) || values instanceof Blob) {
|
|
32072
32057
|
return values;
|
|
32073
32058
|
}
|
|
32074
32059
|
|
|
@@ -32132,8 +32117,6 @@ var transformKeySubmitValue = function transformKeySubmitValue(values, dataForma
|
|
|
32132
32117
|
finalValues = Array.isArray(values) && Array.isArray(finalValues) ? toConsumableArray_toConsumableArray(gen(values)) : merge({}, gen(values), finalValues);
|
|
32133
32118
|
return finalValues;
|
|
32134
32119
|
};
|
|
32135
|
-
|
|
32136
|
-
/* harmony default export */ var es_transformKeySubmitValue = (transformKeySubmitValue);
|
|
32137
32120
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js
|
|
32138
32121
|
|
|
32139
32122
|
|
|
@@ -32186,17 +32169,6 @@ var lib_warning = __webpack_require__(3193);
|
|
|
32186
32169
|
;// CONCATENATED MODULE: ./packages/utils/es/useMountMergeState/index.js
|
|
32187
32170
|
|
|
32188
32171
|
|
|
32189
|
-
|
|
32190
|
-
function useMountMergeState(initialState, option) {
|
|
32191
|
-
var _useMergedState = (0,useMergedState/* default */.Z)(initialState, option),
|
|
32192
|
-
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
32193
|
-
state = _useMergedState2[0],
|
|
32194
|
-
setState = _useMergedState2[1];
|
|
32195
|
-
|
|
32196
|
-
return [state, setState];
|
|
32197
|
-
}
|
|
32198
|
-
|
|
32199
|
-
/* harmony default export */ var es_useMountMergeState = (useMountMergeState);
|
|
32200
32172
|
;// CONCATENATED MODULE: ./packages/utils/es/useEditableArray/index.js
|
|
32201
32173
|
|
|
32202
32174
|
|
|
@@ -32207,8 +32179,9 @@ function useMountMergeState(initialState, option) {
|
|
|
32207
32179
|
|
|
32208
32180
|
|
|
32209
32181
|
|
|
32210
|
-
var useEditableArray_excluded = ["map_row_parentKey"
|
|
32211
|
-
useEditableArray_excluded2 = ["map_row_key"]
|
|
32182
|
+
var useEditableArray_excluded = ["map_row_parentKey"],
|
|
32183
|
+
useEditableArray_excluded2 = ["map_row_parentKey", "map_row_key"],
|
|
32184
|
+
_excluded3 = ["map_row_key"];
|
|
32212
32185
|
|
|
32213
32186
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
32214
32187
|
|
|
@@ -32307,26 +32280,32 @@ function editableRowByKey(params, action) {
|
|
|
32307
32280
|
var kvArrayMap = new Map();
|
|
32308
32281
|
var kvSource = [];
|
|
32309
32282
|
map.forEach(function (value) {
|
|
32310
|
-
if (value.map_row_parentKey) {
|
|
32311
|
-
|
|
32283
|
+
if (value.map_row_parentKey && !value.map_row_key) {
|
|
32284
|
+
var map_row_parentKey = value.map_row_parentKey,
|
|
32285
|
+
rest = objectWithoutProperties_objectWithoutProperties(value, useEditableArray_excluded);
|
|
32286
|
+
|
|
32287
|
+
kvArrayMap.set(map_row_parentKey, [].concat(toConsumableArray_toConsumableArray(kvArrayMap.get(map_row_parentKey) || []), [rest]));
|
|
32288
|
+
}
|
|
32289
|
+
});
|
|
32290
|
+
map.forEach(function (value) {
|
|
32291
|
+
if (value.map_row_parentKey && value.map_row_key) {
|
|
32312
32292
|
var map_row_parentKey = value.map_row_parentKey,
|
|
32313
32293
|
map_row_key = value.map_row_key,
|
|
32314
|
-
|
|
32294
|
+
rest = objectWithoutProperties_objectWithoutProperties(value, useEditableArray_excluded2);
|
|
32315
32295
|
|
|
32316
32296
|
if (kvArrayMap.has(map_row_key)) {
|
|
32317
|
-
|
|
32297
|
+
rest[childrenColumnName] = kvArrayMap.get(map_row_key);
|
|
32318
32298
|
}
|
|
32319
32299
|
|
|
32320
|
-
kvArrayMap.set(map_row_parentKey, [].concat(toConsumableArray_toConsumableArray(kvArrayMap.get(map_row_parentKey) || []), [
|
|
32300
|
+
kvArrayMap.set(map_row_parentKey, [].concat(toConsumableArray_toConsumableArray(kvArrayMap.get(map_row_parentKey) || []), [rest]));
|
|
32321
32301
|
}
|
|
32322
32302
|
});
|
|
32323
32303
|
map.forEach(function (value) {
|
|
32324
32304
|
if (!value.map_row_parentKey) {
|
|
32325
|
-
// @ts-ignore
|
|
32326
32305
|
var map_row_key = value.map_row_key,
|
|
32327
|
-
rest = objectWithoutProperties_objectWithoutProperties(value,
|
|
32306
|
+
rest = objectWithoutProperties_objectWithoutProperties(value, _excluded3);
|
|
32328
32307
|
|
|
32329
|
-
if (kvArrayMap.has(map_row_key)) {
|
|
32308
|
+
if (map_row_key && kvArrayMap.has(map_row_key)) {
|
|
32330
32309
|
var item = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rest), {}, defineProperty_defineProperty({}, childrenColumnName, kvArrayMap.get(map_row_key)));
|
|
32331
32310
|
|
|
32332
32311
|
kvSource.push(item);
|
|
@@ -32339,8 +32318,7 @@ function editableRowByKey(params, action) {
|
|
|
32339
32318
|
return kvSource;
|
|
32340
32319
|
};
|
|
32341
32320
|
|
|
32342
|
-
|
|
32343
|
-
return source;
|
|
32321
|
+
return fill(kvMap);
|
|
32344
32322
|
}
|
|
32345
32323
|
/**
|
|
32346
32324
|
* 保存按钮的dom
|
|
@@ -32357,9 +32335,9 @@ function SaveEditableAction(_ref) {
|
|
|
32357
32335
|
newLineConfig = _ref.newLineConfig,
|
|
32358
32336
|
editorType = _ref.editorType,
|
|
32359
32337
|
tableName = _ref.tableName;
|
|
32360
|
-
var context = (0,external_React_.useContext)(
|
|
32338
|
+
var context = (0,external_React_.useContext)(ProFormContext);
|
|
32361
32339
|
|
|
32362
|
-
var _useMountMergeState =
|
|
32340
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(false),
|
|
32363
32341
|
_useMountMergeState2 = slicedToArray_slicedToArray(_useMountMergeState, 2),
|
|
32364
32342
|
loading = _useMountMergeState2[0],
|
|
32365
32343
|
setLoading = _useMountMergeState2[1];
|
|
@@ -32455,7 +32433,7 @@ var DeleteEditableAction = function DeleteEditableAction(_ref2) {
|
|
|
32455
32433
|
deletePopconfirmMessage = _ref2.deletePopconfirmMessage,
|
|
32456
32434
|
cancelEditable = _ref2.cancelEditable;
|
|
32457
32435
|
|
|
32458
|
-
var _useMountMergeState3 =
|
|
32436
|
+
var _useMountMergeState3 = (0,useMergedState/* default */.Z)(function () {
|
|
32459
32437
|
return false;
|
|
32460
32438
|
}),
|
|
32461
32439
|
_useMountMergeState4 = slicedToArray_slicedToArray(_useMountMergeState3, 2),
|
|
@@ -32527,7 +32505,7 @@ var CancelEditableAction = function CancelEditableAction(props) {
|
|
|
32527
32505
|
cancelEditable = props.cancelEditable,
|
|
32528
32506
|
row = props.row,
|
|
32529
32507
|
cancelText = props.cancelText;
|
|
32530
|
-
var context = (0,external_React_.useContext)(
|
|
32508
|
+
var context = (0,external_React_.useContext)(ProFormContext);
|
|
32531
32509
|
return (0,jsx_runtime.jsx)("a", {
|
|
32532
32510
|
onClick: function () {
|
|
32533
32511
|
var _onClick2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e) {
|
|
@@ -32603,17 +32581,18 @@ function useEditableArray(props) {
|
|
|
32603
32581
|
var dataSourceKeyIndexMapRef = (0,external_React_.useRef)(new Map());
|
|
32604
32582
|
var newLineRecordRef = (0,external_React_.useRef)(undefined);
|
|
32605
32583
|
useDeepCompareEffectDebounce(function () {
|
|
32606
|
-
var map = new Map();
|
|
32584
|
+
var map = new Map(); //存在children时会覆盖Map的key,导致使用数组索引查找key错误
|
|
32607
32585
|
|
|
32608
|
-
var loopGetKey = function loopGetKey(dataSource) {
|
|
32586
|
+
var loopGetKey = function loopGetKey(dataSource, parentKey) {
|
|
32609
32587
|
dataSource === null || dataSource === void 0 ? void 0 : dataSource.forEach(function (record, index) {
|
|
32610
32588
|
var _recordKeyToString2;
|
|
32611
32589
|
|
|
32612
|
-
|
|
32613
|
-
map.set(
|
|
32590
|
+
var key = parentKey === undefined || parentKey === null ? index.toString() : parentKey + '_' + index.toString();
|
|
32591
|
+
map.set(key, recordKeyToString(props.getRowKey(record, -1)));
|
|
32592
|
+
map.set((_recordKeyToString2 = recordKeyToString(props.getRowKey(record, -1))) === null || _recordKeyToString2 === void 0 ? void 0 : _recordKeyToString2.toString(), key);
|
|
32614
32593
|
|
|
32615
32594
|
if (props.childrenColumnName && record[props.childrenColumnName]) {
|
|
32616
|
-
loopGetKey(record[props.childrenColumnName]);
|
|
32595
|
+
loopGetKey(record[props.childrenColumnName], key);
|
|
32617
32596
|
}
|
|
32618
32597
|
});
|
|
32619
32598
|
};
|
|
@@ -32655,7 +32634,7 @@ function useEditableArray(props) {
|
|
|
32655
32634
|
var keys = editableType === 'single' ? editableKeys === null || editableKeys === void 0 ? void 0 : editableKeys.slice(0, 1) : editableKeys;
|
|
32656
32635
|
return new Set(keys);
|
|
32657
32636
|
}, [(editableKeys || []).join(','), editableType]);
|
|
32658
|
-
var editableKeysRef =
|
|
32637
|
+
var editableKeysRef = usePrevious(editableKeys);
|
|
32659
32638
|
/** 这行是不是编辑状态 */
|
|
32660
32639
|
|
|
32661
32640
|
var isEditable = useRefFunction(function (row) {
|
|
@@ -32723,7 +32702,7 @@ function useEditableArray(props) {
|
|
|
32723
32702
|
setEditableRowKeys(Array.from(editableKeysSet));
|
|
32724
32703
|
return true;
|
|
32725
32704
|
});
|
|
32726
|
-
var propsOnValuesChange =
|
|
32705
|
+
var propsOnValuesChange = useDebounceFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32727
32706
|
var _props$onValuesChange;
|
|
32728
32707
|
|
|
32729
32708
|
var _len,
|
|
@@ -33025,8 +33004,6 @@ function useEditableArray(props) {
|
|
|
33025
33004
|
onValuesChange: onValuesChange
|
|
33026
33005
|
};
|
|
33027
33006
|
}
|
|
33028
|
-
|
|
33029
|
-
/* harmony default export */ var es_useEditableArray = (useEditableArray);
|
|
33030
33007
|
;// CONCATENATED MODULE: ./packages/utils/es/useEditableMap/index.js
|
|
33031
33008
|
|
|
33032
33009
|
|
|
@@ -33253,8 +33230,6 @@ function useEditableMap(props) {
|
|
|
33253
33230
|
cancelEditable: cancelEditable
|
|
33254
33231
|
};
|
|
33255
33232
|
}
|
|
33256
|
-
|
|
33257
|
-
/* harmony default export */ var es_useEditableMap = (useEditableMap);
|
|
33258
33233
|
;// CONCATENATED MODULE: ./packages/utils/es/index.js
|
|
33259
33234
|
|
|
33260
33235
|
|
|
@@ -33433,7 +33408,7 @@ var CheckCardGroup = function CheckCardGroup(props) {
|
|
|
33433
33408
|
var groupPrefixCls = "".concat(prefixCls, "-group");
|
|
33434
33409
|
var domProps = omit_js_es(restProps, ['children', 'defaultValue', 'value', 'disabled', 'size']);
|
|
33435
33410
|
|
|
33436
|
-
var _useMountMergeState =
|
|
33411
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(props.defaultValue, {
|
|
33437
33412
|
value: props.value,
|
|
33438
33413
|
onChange: props.onChange
|
|
33439
33414
|
}),
|
|
@@ -33745,7 +33720,7 @@ var CheckCard_excluded = ["prefixCls", "className", "avatar", "title", "descript
|
|
|
33745
33720
|
var CheckCard = function CheckCard(props) {
|
|
33746
33721
|
var _classNames;
|
|
33747
33722
|
|
|
33748
|
-
var _useMountMergeState =
|
|
33723
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(props.defaultChecked || false, {
|
|
33749
33724
|
value: props.checked,
|
|
33750
33725
|
onChange: props.onChange
|
|
33751
33726
|
}),
|
|
@@ -34818,7 +34793,7 @@ var Card = /*#__PURE__*/external_React_default().forwardRef(function (props, ref
|
|
|
34818
34793
|
_props$bordered = props.bordered,
|
|
34819
34794
|
bordered = _props$bordered === void 0 ? false : _props$bordered,
|
|
34820
34795
|
_props$boxShadow = props.boxShadow,
|
|
34821
|
-
boxShadow = _props$boxShadow === void 0 ?
|
|
34796
|
+
boxShadow = _props$boxShadow === void 0 ? false : _props$boxShadow,
|
|
34822
34797
|
children = props.children,
|
|
34823
34798
|
size = props.size,
|
|
34824
34799
|
actions = props.actions,
|
|
@@ -35004,7 +34979,7 @@ var Card = /*#__PURE__*/external_React_default().forwardRef(function (props, ref
|
|
|
35004
34979
|
},
|
|
35005
34980
|
children: [(0,jsx_runtime.jsxs)("div", {
|
|
35006
34981
|
className: "".concat(prefixCls, "-title"),
|
|
35007
|
-
children: [collapsibleButton, (0,jsx_runtime.jsx)(
|
|
34982
|
+
children: [collapsibleButton, (0,jsx_runtime.jsx)(LabelIconTip, {
|
|
35008
34983
|
label: title,
|
|
35009
34984
|
tooltip: tooltip || tip,
|
|
35010
34985
|
subTitle: subTitle
|
|
@@ -40189,14 +40164,14 @@ function createField(Field, config) {
|
|
|
40189
40164
|
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40190
40165
|
[getFieldProps, getFormItemProps, rest.dependenciesValues, onlyChange]);
|
|
40191
40166
|
var fieldProps = (0,external_React_.useMemo)(function () {
|
|
40192
|
-
var newFieldProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, ignoreFormItem ?
|
|
40167
|
+
var newFieldProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, ignoreFormItem ? omitUndefined({
|
|
40193
40168
|
value: rest.value
|
|
40194
40169
|
}) : {}), {}, {
|
|
40195
40170
|
placeholder: placeholder,
|
|
40196
40171
|
disabled: props.disabled
|
|
40197
40172
|
}, contextValue.fieldProps), changedProps.fieldProps), rest.fieldProps);
|
|
40198
40173
|
|
|
40199
|
-
newFieldProps.style =
|
|
40174
|
+
newFieldProps.style = omitUndefined(newFieldProps === null || newFieldProps === void 0 ? void 0 : newFieldProps.style);
|
|
40200
40175
|
return newFieldProps;
|
|
40201
40176
|
}, [ignoreFormItem, rest.value, rest.fieldProps, placeholder, props.disabled, contextValue.fieldProps, changedProps.fieldProps]); // restFormItemProps is user props pass to Form.Item
|
|
40202
40177
|
|
|
@@ -40221,7 +40196,7 @@ function createField(Field, config) {
|
|
|
40221
40196
|
if (Array.isArray(prefixName) && name) name = "".concat(prefixName.join('.'), ".").concat(name);
|
|
40222
40197
|
return name && "form-field-".concat(name); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40223
40198
|
}, [index_esm_stringify(otherProps === null || otherProps === void 0 ? void 0 : otherProps.name), prefixName]);
|
|
40224
|
-
var prefRest =
|
|
40199
|
+
var prefRest = usePrevious(rest);
|
|
40225
40200
|
var onChange = (0,external_React_.useCallback)(function () {
|
|
40226
40201
|
var _fieldProps$onChange;
|
|
40227
40202
|
|
|
@@ -40243,7 +40218,7 @@ function createField(Field, config) {
|
|
|
40243
40218
|
}, fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.style);
|
|
40244
40219
|
|
|
40245
40220
|
if (isIgnoreWidth) Reflect.deleteProperty(newStyle, 'width');
|
|
40246
|
-
return
|
|
40221
|
+
return omitUndefined(newStyle); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40247
40222
|
}, [index_esm_stringify(fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.style), contextValue.grid, isIgnoreWidth, width]);
|
|
40248
40223
|
var className = (0,external_React_.useMemo)(function () {
|
|
40249
40224
|
var isSizeEnum = width && WIDTH_SIZE_ENUM[width];
|
|
@@ -40252,7 +40227,7 @@ function createField(Field, config) {
|
|
|
40252
40227
|
}, "pro-field-".concat(width), isSizeEnum && !isIgnoreWidth)) || undefined;
|
|
40253
40228
|
}, [width, fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.className, isIgnoreWidth]);
|
|
40254
40229
|
var fieldProFieldProps = (0,external_React_.useMemo)(function () {
|
|
40255
|
-
return
|
|
40230
|
+
return omitUndefined(objectSpread2_objectSpread2({
|
|
40256
40231
|
mode: rest === null || rest === void 0 ? void 0 : rest.mode,
|
|
40257
40232
|
readonly: readonly,
|
|
40258
40233
|
params: rest.params,
|
|
@@ -40277,7 +40252,7 @@ function createField(Field, config) {
|
|
|
40277
40252
|
ref: props === null || props === void 0 ? void 0 : props.fieldRef
|
|
40278
40253
|
}), props.proFormFieldKey || props.name); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40279
40254
|
}, [fieldProFieldProps, fieldFieldProps, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40280
|
-
|
|
40255
|
+
isDeepEqualReact(prefRest, rest, ['onChange', 'onBlur', 'onFocus', 'record']) ? undefined : {}]); // 使用useMemo包裹避免不必要的re-render
|
|
40281
40256
|
|
|
40282
40257
|
var FormItem = (0,external_React_.useMemo)(function () {
|
|
40283
40258
|
var _field$props$allowCle, _field$props, _field$props2, _otherProps$name;
|
|
@@ -40299,7 +40274,7 @@ function createField(Field, config) {
|
|
|
40299
40274
|
label: label || ''
|
|
40300
40275
|
}, otherProps === null || otherProps === void 0 ? void 0 : otherProps.messageVariables),
|
|
40301
40276
|
convertValue: convertValue,
|
|
40302
|
-
lightProps:
|
|
40277
|
+
lightProps: omitUndefined(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, fieldProps), {}, {
|
|
40303
40278
|
valueType: valueType,
|
|
40304
40279
|
bordered: bordered,
|
|
40305
40280
|
allowClear: (_field$props$allowCle = field === null || field === void 0 ? void 0 : (_field$props = field.props) === null || _field$props === void 0 ? void 0 : _field$props.allowClear) !== null && _field$props$allowCle !== void 0 ? _field$props$allowCle : allowClear,
|
|
@@ -40744,9 +40719,7 @@ var LightSelect = function LightSelect(props, ref) {
|
|
|
40744
40719
|
var _useStyle = useStyle('LightSelect', function (token) {
|
|
40745
40720
|
var _$concat2;
|
|
40746
40721
|
|
|
40747
|
-
return defineProperty_defineProperty({}, ".".concat(prefixCls), (_$concat2 = {
|
|
40748
|
-
color: token.colorPrimary
|
|
40749
|
-
}, defineProperty_defineProperty(_$concat2, "".concat(token.antCls, "-select"), {
|
|
40722
|
+
return defineProperty_defineProperty({}, ".".concat(prefixCls), (_$concat2 = {}, defineProperty_defineProperty(_$concat2, "".concat(token.antCls, "-select"), {
|
|
40750
40723
|
position: 'absolute',
|
|
40751
40724
|
width: '153px',
|
|
40752
40725
|
height: '28px',
|
|
@@ -40855,7 +40828,7 @@ var LightSelect = function LightSelect(props, ref) {
|
|
|
40855
40828
|
|
|
40856
40829
|
return ((_String = String(o[labelPropsName])) === null || _String === void 0 ? void 0 : (_String$toLowerCase = _String.toLowerCase()) === null || _String$toLowerCase === void 0 ? void 0 : _String$toLowerCase.includes(keyword)) || ((_o$valuePropsName = o[valuePropsName]) === null || _o$valuePropsName === void 0 ? void 0 : (_o$valuePropsName$toS = _o$valuePropsName.toString()) === null || _o$valuePropsName$toS === void 0 ? void 0 : (_o$valuePropsName$toS2 = _o$valuePropsName$toS.toLowerCase()) === null || _o$valuePropsName$toS2 === void 0 ? void 0 : _o$valuePropsName$toS2.includes(keyword));
|
|
40857
40830
|
}) : options
|
|
40858
|
-
})), (0,jsx_runtime.jsx)(
|
|
40831
|
+
})), (0,jsx_runtime.jsx)(FieldLabel, {
|
|
40859
40832
|
ellipsis: true,
|
|
40860
40833
|
size: size,
|
|
40861
40834
|
label: label,
|
|
@@ -41322,7 +41295,7 @@ var useFieldFetchData = function useFieldFetchData(props) {
|
|
|
41322
41295
|
});
|
|
41323
41296
|
}, []);
|
|
41324
41297
|
|
|
41325
|
-
var _useMountMergeState =
|
|
41298
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(function () {
|
|
41326
41299
|
if (props.valueEnum) {
|
|
41327
41300
|
return getOptionsFormValueEnum(props.valueEnum);
|
|
41328
41301
|
}
|
|
@@ -41335,7 +41308,7 @@ var useFieldFetchData = function useFieldFetchData(props) {
|
|
|
41335
41308
|
options = _useMountMergeState2[0],
|
|
41336
41309
|
setOptions = _useMountMergeState2[1];
|
|
41337
41310
|
|
|
41338
|
-
|
|
41311
|
+
useDeepCompareEffect(function () {
|
|
41339
41312
|
var _props$fieldProps3, _props$fieldProps4; // 优先使用 fieldProps?.options
|
|
41340
41313
|
|
|
41341
41314
|
|
|
@@ -41712,7 +41685,7 @@ var FieldCascader = function FieldCascader(_ref, ref) {
|
|
|
41712
41685
|
disabled = _rest$fieldProps4.disabled,
|
|
41713
41686
|
allowClear = _rest$fieldProps4.allowClear,
|
|
41714
41687
|
placeholder = _rest$fieldProps4.placeholder;
|
|
41715
|
-
return (0,jsx_runtime.jsx)(
|
|
41688
|
+
return (0,jsx_runtime.jsx)(FieldLabel, {
|
|
41716
41689
|
label: label,
|
|
41717
41690
|
disabled: disabled,
|
|
41718
41691
|
placeholder: placeholder,
|
|
@@ -44682,7 +44655,7 @@ var FieldDatePicker = function FieldDatePicker(_ref, ref) {
|
|
|
44682
44655
|
allowClear = fieldProps.allowClear,
|
|
44683
44656
|
_fieldProps$placehold = fieldProps.placeholder,
|
|
44684
44657
|
placeholder = _fieldProps$placehold === void 0 ? intl.getMessage('tableForm.selectPlaceholder', '请选择') : _fieldProps$placehold;
|
|
44685
|
-
var momentValue =
|
|
44658
|
+
var momentValue = parseValueToDay(value);
|
|
44686
44659
|
|
|
44687
44660
|
if (light) {
|
|
44688
44661
|
var valueStr = momentValue && momentValue.format(format) || '';
|
|
@@ -44719,7 +44692,7 @@ var FieldDatePicker = function FieldDatePicker(_ref, ref) {
|
|
|
44719
44692
|
}
|
|
44720
44693
|
},
|
|
44721
44694
|
open: open
|
|
44722
|
-
})), (0,jsx_runtime.jsx)(
|
|
44695
|
+
})), (0,jsx_runtime.jsx)(FieldLabel, {
|
|
44723
44696
|
label: label,
|
|
44724
44697
|
disabled: disabled,
|
|
44725
44698
|
placeholder: placeholder,
|
|
@@ -45020,7 +44993,7 @@ var FieldFromNow = function FieldFromNow(_ref) {
|
|
|
45020
44993
|
|
|
45021
44994
|
if (mode === 'edit' || mode === 'update') {
|
|
45022
44995
|
var placeholder = intl.getMessage('tableForm.selectPlaceholder', '请选择');
|
|
45023
|
-
var momentValue =
|
|
44996
|
+
var momentValue = parseValueToDay(fieldProps.value);
|
|
45024
44997
|
|
|
45025
44998
|
var _dom = (0,jsx_runtime.jsx)(external_antd_.DatePicker, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
45026
44999
|
placeholder: placeholder,
|
|
@@ -45998,7 +45971,7 @@ var FieldRangePicker = function FieldRangePicker(_ref, ref) {
|
|
|
45998
45971
|
}
|
|
45999
45972
|
|
|
46000
45973
|
if (mode === 'edit' || mode === 'update') {
|
|
46001
|
-
var momentValue =
|
|
45974
|
+
var momentValue = parseValueToDay(fieldProps.value);
|
|
46002
45975
|
|
|
46003
45976
|
var _dom = (0,jsx_runtime.jsx)(external_antd_.DatePicker.RangePicker, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
46004
45977
|
ref: ref,
|
|
@@ -46487,10 +46460,10 @@ var FieldTimePicker = function FieldTimePicker(_ref, ref) {
|
|
|
46487
46460
|
placeholder = fieldProps.placeholder,
|
|
46488
46461
|
allowClear = fieldProps.allowClear,
|
|
46489
46462
|
value = fieldProps.value;
|
|
46490
|
-
var
|
|
46463
|
+
var dayValue = parseValueToDay(value, finalFormat);
|
|
46491
46464
|
|
|
46492
46465
|
if (light) {
|
|
46493
|
-
var valueStr =
|
|
46466
|
+
var valueStr = dayValue && dayValue.format(finalFormat) || '';
|
|
46494
46467
|
_dom = (0,jsx_runtime.jsxs)("div", {
|
|
46495
46468
|
className: "".concat(prefixCls, "-light"),
|
|
46496
46469
|
onClick: function onClick(e) {
|
|
@@ -46506,7 +46479,7 @@ var FieldTimePicker = function FieldTimePicker(_ref, ref) {
|
|
|
46506
46479
|
}
|
|
46507
46480
|
},
|
|
46508
46481
|
children: [(0,jsx_runtime.jsx)(external_antd_.TimePicker, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
46509
|
-
value:
|
|
46482
|
+
value: dayValue,
|
|
46510
46483
|
format: format,
|
|
46511
46484
|
ref: ref
|
|
46512
46485
|
}, fieldProps), {}, {
|
|
@@ -46522,7 +46495,7 @@ var FieldTimePicker = function FieldTimePicker(_ref, ref) {
|
|
|
46522
46495
|
}
|
|
46523
46496
|
},
|
|
46524
46497
|
open: open
|
|
46525
|
-
})), (0,jsx_runtime.jsx)(
|
|
46498
|
+
})), (0,jsx_runtime.jsx)(FieldLabel, {
|
|
46526
46499
|
label: label,
|
|
46527
46500
|
disabled: disabled,
|
|
46528
46501
|
placeholder: placeholder,
|
|
@@ -46542,7 +46515,7 @@ var FieldTimePicker = function FieldTimePicker(_ref, ref) {
|
|
|
46542
46515
|
format: format,
|
|
46543
46516
|
bordered: plain === undefined ? true : !plain
|
|
46544
46517
|
}, fieldProps), {}, {
|
|
46545
|
-
value:
|
|
46518
|
+
value: dayValue
|
|
46546
46519
|
}));
|
|
46547
46520
|
}
|
|
46548
46521
|
|
|
@@ -46607,7 +46580,7 @@ var FieldTimeRangePicker = function FieldTimeRangePicker(_ref2) {
|
|
|
46607
46580
|
|
|
46608
46581
|
if (mode === 'edit' || mode === 'update') {
|
|
46609
46582
|
var value = fieldProps.value;
|
|
46610
|
-
var momentValue =
|
|
46583
|
+
var momentValue = parseValueToDay(value, finalFormat);
|
|
46611
46584
|
|
|
46612
46585
|
var _dom2 = (0,jsx_runtime.jsx)(external_antd_.TimePicker.RangePicker, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
46613
46586
|
format: format,
|
|
@@ -46841,7 +46814,7 @@ var FieldTreeSelect = function FieldTreeSelect(_ref, ref) {
|
|
|
46841
46814
|
var disabled = fieldProps.disabled,
|
|
46842
46815
|
allowClear = fieldProps.allowClear,
|
|
46843
46816
|
placeholder = fieldProps.placeholder;
|
|
46844
|
-
return (0,jsx_runtime.jsx)(
|
|
46817
|
+
return (0,jsx_runtime.jsx)(FieldLabel, {
|
|
46845
46818
|
label: label,
|
|
46846
46819
|
disabled: disabled,
|
|
46847
46820
|
placeholder: placeholder,
|
|
@@ -47397,7 +47370,7 @@ var ProField = function ProField(_ref, ref) {
|
|
|
47397
47370
|
|
|
47398
47371
|
var fieldProps = (value !== undefined || _onChange || (rest === null || rest === void 0 ? void 0 : rest.fieldProps)) && objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
47399
47372
|
value: value
|
|
47400
|
-
},
|
|
47373
|
+
}, omitUndefined(rest === null || rest === void 0 ? void 0 : rest.fieldProps)), {}, {
|
|
47401
47374
|
onChange: function onChange() {
|
|
47402
47375
|
var _rest$fieldProps, _rest$fieldProps$onCh;
|
|
47403
47376
|
|
|
@@ -47539,7 +47512,7 @@ var BaseProFormField = function BaseProFormField(props) {
|
|
|
47539
47512
|
};
|
|
47540
47513
|
|
|
47541
47514
|
var ProFormField = createField( /*#__PURE__*/(0,external_React_.memo)(BaseProFormField, function (prevProps, nextProps) {
|
|
47542
|
-
return
|
|
47515
|
+
return isDeepEqualReact(nextProps, prevProps, ['onChange', 'onBlur']);
|
|
47543
47516
|
}));
|
|
47544
47517
|
/* harmony default export */ var components_Field = (ProFormField);
|
|
47545
47518
|
;// CONCATENATED MODULE: ./packages/form/es/components/Cascader/index.js
|
|
@@ -47898,7 +47871,7 @@ var ProFormDateRangePicker = /*#__PURE__*/external_React_default().forwardRef(fu
|
|
|
47898
47871
|
filedConfig: {
|
|
47899
47872
|
valueType: DateRangePicker_valueType,
|
|
47900
47873
|
lightFilterLabelFormatter: function lightFilterLabelFormatter(value) {
|
|
47901
|
-
return
|
|
47874
|
+
return dateArrayFormatter(value, (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.format) || 'YYYY-MM-DD');
|
|
47902
47875
|
}
|
|
47903
47876
|
}
|
|
47904
47877
|
}, rest));
|
|
@@ -47971,7 +47944,7 @@ var ProFormDateTimeRangePicker = /*#__PURE__*/external_React_default().forwardRe
|
|
|
47971
47944
|
filedConfig: {
|
|
47972
47945
|
valueType: DateTimeRangePicker_valueType,
|
|
47973
47946
|
lightFilterLabelFormatter: function lightFilterLabelFormatter(value) {
|
|
47974
|
-
return
|
|
47947
|
+
return dateArrayFormatter(value, 'YYYY-MM-DD HH:mm:ss');
|
|
47975
47948
|
}
|
|
47976
47949
|
}
|
|
47977
47950
|
}, rest));
|
|
@@ -48697,7 +48670,7 @@ function ProFormList(_ref) {
|
|
|
48697
48670
|
|
|
48698
48671
|
return [listContext.name, rest.name].flat(1);
|
|
48699
48672
|
}, [listContext.name, rest.name]);
|
|
48700
|
-
var proFormContext = (0,external_React_.useContext)(
|
|
48673
|
+
var proFormContext = (0,external_React_.useContext)(ProFormContext); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48701
48674
|
|
|
48702
48675
|
(0,external_React_.useImperativeHandle)(actionRef, function () {
|
|
48703
48676
|
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, actionRefs.current), {}, {
|
|
@@ -48791,7 +48764,7 @@ var ProFormDependency = function ProFormDependency(_ref) {
|
|
|
48791
48764
|
ignoreFormListField = _ref.ignoreFormListField,
|
|
48792
48765
|
rest = objectWithoutProperties_objectWithoutProperties(_ref, Dependency_excluded);
|
|
48793
48766
|
|
|
48794
|
-
var context = (0,external_React_.useContext)(
|
|
48767
|
+
var context = (0,external_React_.useContext)(ProFormContext); // ProFromList 的 field,里面有name和key
|
|
48795
48768
|
|
|
48796
48769
|
var formListField = (0,external_React_.useContext)(FormListContext); // flatten each name into an (string | number)[]
|
|
48797
48770
|
|
|
@@ -48821,7 +48794,7 @@ var ProFormDependency = function ProFormDependency(_ref) {
|
|
|
48821
48794
|
}
|
|
48822
48795
|
|
|
48823
48796
|
return flattenNames.some(function (name) {
|
|
48824
|
-
return !
|
|
48797
|
+
return !isDeepEqualReact((0,utils_get["default"])(prevValues, name), (0,utils_get["default"])(nextValues, name));
|
|
48825
48798
|
});
|
|
48826
48799
|
},
|
|
48827
48800
|
children: function children(form) {
|
|
@@ -49074,7 +49047,7 @@ var ProFormFieldSet = createField(BaseProFormFieldSet);
|
|
|
49074
49047
|
|
|
49075
49048
|
var FormItem_excluded = ["children", "onChange", "onBlur", "ignoreFormItem", "valuePropName"],
|
|
49076
49049
|
FormItem_excluded2 = ["children", "addonAfter", "addonBefore", "valuePropName", "convertValue"],
|
|
49077
|
-
|
|
49050
|
+
FormItem_excluded3 = ["valueType", "transform", "dataFormat", "ignoreFormItem", "lightProps", "children"];
|
|
49078
49051
|
|
|
49079
49052
|
|
|
49080
49053
|
|
|
@@ -49135,7 +49108,7 @@ var WithValueFomFiledProps = function WithValueFomFiledProps(formFieldProps) {
|
|
|
49135
49108
|
|
|
49136
49109
|
if ((filedChildren === null || filedChildren === void 0 ? void 0 : (_filedChildren$type3 = filedChildren.type) === null || _filedChildren$type3 === void 0 ? void 0 : _filedChildren$type3.displayName) !== 'ProFormComponent') return undefined;
|
|
49137
49110
|
if (! /*#__PURE__*/external_React_default().isValidElement(filedChildren)) return undefined;
|
|
49138
|
-
return
|
|
49111
|
+
return omitUndefined(objectSpread2_objectSpread2(objectSpread2_objectSpread2(defineProperty_defineProperty({
|
|
49139
49112
|
id: restProps.id
|
|
49140
49113
|
}, valuePropName, formFieldProps[valuePropName]), (filedChildren === null || filedChildren === void 0 ? void 0 : (_filedChildren$props10 = filedChildren.props) === null || _filedChildren$props10 === void 0 ? void 0 : _filedChildren$props10.fieldProps) || {}), {}, {
|
|
49141
49114
|
onBlur: onBlurMemo,
|
|
@@ -49161,7 +49134,7 @@ var WithValueFomFiledProps = function WithValueFomFiledProps(formFieldProps) {
|
|
|
49161
49134
|
if (! /*#__PURE__*/external_React_default().isValidElement(filedChildren)) return (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
49162
49135
|
children: filedChildren
|
|
49163
49136
|
});
|
|
49164
|
-
return /*#__PURE__*/external_React_default().cloneElement(filedChildren,
|
|
49137
|
+
return /*#__PURE__*/external_React_default().cloneElement(filedChildren, omitUndefined(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, restProps), {}, defineProperty_defineProperty({}, valuePropName, formFieldProps[valuePropName]), filedChildren.props), {}, {
|
|
49165
49138
|
onChange: finalChange,
|
|
49166
49139
|
fieldProps: fieldProps
|
|
49167
49140
|
})));
|
|
@@ -49258,7 +49231,7 @@ var ProFormItem = function ProFormItem(props) {
|
|
|
49258
49231
|
_props$lightProps = props.lightProps,
|
|
49259
49232
|
lightProps = _props$lightProps === void 0 ? {} : _props$lightProps,
|
|
49260
49233
|
unusedChildren = props.children,
|
|
49261
|
-
rest = objectWithoutProperties_objectWithoutProperties(props,
|
|
49234
|
+
rest = objectWithoutProperties_objectWithoutProperties(props, FormItem_excluded3);
|
|
49262
49235
|
|
|
49263
49236
|
var formListField = (0,external_React_.useContext)(FormListContext); // ProFromList 的 filed,里面有name和key
|
|
49264
49237
|
|
|
@@ -49293,7 +49266,7 @@ var ProFormItem = function ProFormItem(props) {
|
|
|
49293
49266
|
transform: transform
|
|
49294
49267
|
});
|
|
49295
49268
|
}, [formListField.listName, name, dataFormat, props.name, setFieldValueType, transform, valueType]);
|
|
49296
|
-
var isDropdown = /*#__PURE__*/ /*#__PURE__*/external_React_default().isValidElement(props.children) &&
|
|
49269
|
+
var isDropdown = /*#__PURE__*/ /*#__PURE__*/external_React_default().isValidElement(props.children) && isDropdownValueType(valueType || props.children.props.valueType);
|
|
49297
49270
|
var noLightFormItem = (0,external_React_.useMemo)(function () {
|
|
49298
49271
|
if (!lightProps.light || lightProps.customLightMode || isDropdown) {
|
|
49299
49272
|
return true;
|
|
@@ -49428,7 +49401,7 @@ var Group_Group = /*#__PURE__*/external_React_default().forwardRef(function (pro
|
|
|
49428
49401
|
extra = _groupProps$props.extra,
|
|
49429
49402
|
autoFocus = _groupProps$props.autoFocus;
|
|
49430
49403
|
|
|
49431
|
-
var _useMountMergeState =
|
|
49404
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(function () {
|
|
49432
49405
|
return defaultCollapsed || false;
|
|
49433
49406
|
}, {
|
|
49434
49407
|
value: props.collapsed,
|
|
@@ -49458,7 +49431,7 @@ var Group_Group = /*#__PURE__*/external_React_default().forwardRef(function (pro
|
|
|
49458
49431
|
rotate: !collapsed ? 90 : undefined
|
|
49459
49432
|
});
|
|
49460
49433
|
|
|
49461
|
-
var label = (0,jsx_runtime.jsx)(
|
|
49434
|
+
var label = (0,jsx_runtime.jsx)(LabelIconTip, {
|
|
49462
49435
|
label: collapsibleButton ? (0,jsx_runtime.jsxs)("div", {
|
|
49463
49436
|
children: [collapsibleButton, title]
|
|
49464
49437
|
}) : title,
|
|
@@ -49973,7 +49946,6 @@ FilterOutlined_FilterOutlined.displayName = 'FilterOutlined';
|
|
|
49973
49946
|
var genLightFilterStyle = function genLightFilterStyle(token) {
|
|
49974
49947
|
return defineProperty_defineProperty({}, token.componentCls, {
|
|
49975
49948
|
lineHeight: '30px',
|
|
49976
|
-
// 防止 &-container 负 margin 溢出影响外部布局
|
|
49977
49949
|
// @see https://yuque.antfin-inc.com/tech-ui/topics/523
|
|
49978
49950
|
'&::before': {
|
|
49979
49951
|
display: 'block',
|
|
@@ -49987,16 +49959,13 @@ var genLightFilterStyle = function genLightFilterStyle(token) {
|
|
|
49987
49959
|
'&-container': {
|
|
49988
49960
|
display: 'flex',
|
|
49989
49961
|
flexWrap: 'wrap',
|
|
49990
|
-
|
|
49991
|
-
marginInlineEnd: '-4px'
|
|
49962
|
+
gap: 8
|
|
49992
49963
|
},
|
|
49993
|
-
'&-item': {
|
|
49994
|
-
'&:not(:last-child)': {
|
|
49995
|
-
marginInlineEnd: 8
|
|
49996
|
-
},
|
|
49997
|
-
marginBlockStart: 8,
|
|
49964
|
+
'&-item': defineProperty_defineProperty({
|
|
49998
49965
|
whiteSpace: 'nowrap'
|
|
49999
|
-
},
|
|
49966
|
+
}, "".concat(token.antCls, "-form-item"), {
|
|
49967
|
+
marginBlock: 0
|
|
49968
|
+
}),
|
|
50000
49969
|
'&-line': {
|
|
50001
49970
|
minWidth: '198px'
|
|
50002
49971
|
},
|
|
@@ -50116,7 +50085,7 @@ var LightFilterContainer = function LightFilterContainer(props) {
|
|
|
50116
50085
|
});
|
|
50117
50086
|
}
|
|
50118
50087
|
|
|
50119
|
-
return (0,jsx_runtime.jsx)(
|
|
50088
|
+
return (0,jsx_runtime.jsx)(FieldLabel, {
|
|
50120
50089
|
size: size,
|
|
50121
50090
|
label: intl.getMessage('form.lightFilter.more', '更多筛选'),
|
|
50122
50091
|
expanded: open
|
|
@@ -50150,7 +50119,7 @@ var LightFilterContainer = function LightFilterContainer(props) {
|
|
|
50150
50119
|
}, key || index);
|
|
50151
50120
|
}), collapseItems.length ? (0,jsx_runtime.jsx)("div", {
|
|
50152
50121
|
className: "".concat(lightFilterClassName, "-item"),
|
|
50153
|
-
children: (0,jsx_runtime.jsx)(
|
|
50122
|
+
children: (0,jsx_runtime.jsx)(FilterDropdown, {
|
|
50154
50123
|
padding: 24,
|
|
50155
50124
|
onVisibleChange: setOpen,
|
|
50156
50125
|
visible: open,
|
|
@@ -52022,12 +51991,12 @@ var Actions_Actions = function Actions(props) {
|
|
|
52022
51991
|
getPrefixCls = _useContext.getPrefixCls;
|
|
52023
51992
|
|
|
52024
51993
|
var intl = useIntl();
|
|
52025
|
-
var collapseRender =
|
|
51994
|
+
var collapseRender = omitBoolean(props.collapseRender) || defaultCollapseRender;
|
|
52026
51995
|
return (0,jsx_runtime.jsxs)(external_antd_.Space, {
|
|
52027
51996
|
style: style,
|
|
52028
51997
|
size: 16,
|
|
52029
51998
|
children: [submitter, props.collapseRender !== false && (0,jsx_runtime.jsx)("a", {
|
|
52030
|
-
className: getPrefixCls('pro-
|
|
51999
|
+
className: getPrefixCls('pro-query-filter-collapse-button'),
|
|
52031
52000
|
onClick: function onClick() {
|
|
52032
52001
|
return setCollapsed(!collapsed);
|
|
52033
52002
|
},
|
|
@@ -52037,6 +52006,35 @@ var Actions_Actions = function Actions(props) {
|
|
|
52037
52006
|
};
|
|
52038
52007
|
|
|
52039
52008
|
/* harmony default export */ var QueryFilter_Actions = (Actions_Actions);
|
|
52009
|
+
;// CONCATENATED MODULE: ./packages/form/es/layouts/QueryFilter/style.js
|
|
52010
|
+
|
|
52011
|
+
|
|
52012
|
+
|
|
52013
|
+
|
|
52014
|
+
var QueryFilter_style_genProStyle = function genProStyle(token) {
|
|
52015
|
+
var _token$componentCls;
|
|
52016
|
+
|
|
52017
|
+
return defineProperty_defineProperty({}, token.proComponentsCls, defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
|
|
52018
|
+
padding: 24
|
|
52019
|
+
}, defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-form-item"), {
|
|
52020
|
+
marginBlock: 0
|
|
52021
|
+
}), defineProperty_defineProperty(_token$componentCls, '&-row', {
|
|
52022
|
+
rowGap: 24
|
|
52023
|
+
}), defineProperty_defineProperty(_token$componentCls, '&-collapse-button', {
|
|
52024
|
+
display: 'flex',
|
|
52025
|
+
alignItems: 'center'
|
|
52026
|
+
}), _token$componentCls)));
|
|
52027
|
+
};
|
|
52028
|
+
|
|
52029
|
+
function QueryFilter_style_useStyle(prefixCls) {
|
|
52030
|
+
return useStyle('QueryFilter', function (token) {
|
|
52031
|
+
var proToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
52032
|
+
componentCls: ".".concat(prefixCls)
|
|
52033
|
+
});
|
|
52034
|
+
|
|
52035
|
+
return [QueryFilter_style_genProStyle(proToken)];
|
|
52036
|
+
});
|
|
52037
|
+
}
|
|
52040
52038
|
;// CONCATENATED MODULE: ./packages/form/es/layouts/QueryFilter/index.js
|
|
52041
52039
|
|
|
52042
52040
|
|
|
@@ -52057,6 +52055,7 @@ var _document, _document$body;
|
|
|
52057
52055
|
|
|
52058
52056
|
|
|
52059
52057
|
|
|
52058
|
+
|
|
52060
52059
|
var CONFIG_SPAN_BREAKPOINTS = {
|
|
52061
52060
|
xs: 513,
|
|
52062
52061
|
sm: 513,
|
|
@@ -52274,8 +52273,11 @@ var QueryFilterContent = function QueryFilterContent(props) {
|
|
|
52274
52273
|
var offsetSpan = currentSpan % 24 + spanSize.span;
|
|
52275
52274
|
return 24 - offsetSpan;
|
|
52276
52275
|
}, [currentSpan, spanSize.span]);
|
|
52276
|
+
var context = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext);
|
|
52277
|
+
var baseClassName = context.getPrefixCls('pro-query-filter');
|
|
52277
52278
|
return (0,jsx_runtime.jsxs)(external_antd_.Row, {
|
|
52278
52279
|
gutter: searchGutter,
|
|
52280
|
+
className: "".concat(baseClassName, "-row"),
|
|
52279
52281
|
justify: "start",
|
|
52280
52282
|
children: [doms, submitter && (0,jsx_runtime.jsx)(external_antd_.Col, {
|
|
52281
52283
|
span: spanSize.span,
|
|
@@ -52286,7 +52288,7 @@ var QueryFilterContent = function QueryFilterContent(props) {
|
|
|
52286
52288
|
children: (0,jsx_runtime.jsx)(external_antd_.Form.Item, {
|
|
52287
52289
|
label: " ",
|
|
52288
52290
|
colon: false,
|
|
52289
|
-
className: "
|
|
52291
|
+
className: "".concat(baseClassName, "-actions"),
|
|
52290
52292
|
children: (0,jsx_runtime.jsx)(QueryFilter_Actions, {
|
|
52291
52293
|
hiddenNum: hiddenNum,
|
|
52292
52294
|
collapsed: collapsed,
|
|
@@ -52299,7 +52301,7 @@ var QueryFilterContent = function QueryFilterContent(props) {
|
|
|
52299
52301
|
}, "resize-observer-row");
|
|
52300
52302
|
};
|
|
52301
52303
|
|
|
52302
|
-
var defaultWidth =
|
|
52304
|
+
var defaultWidth = isBrowser() ? (_document = document) === null || _document === void 0 ? void 0 : (_document$body = _document.body) === null || _document$body === void 0 ? void 0 : _document$body.clientWidth : 1024;
|
|
52303
52305
|
|
|
52304
52306
|
function QueryFilter(props) {
|
|
52305
52307
|
var controlCollapsed = props.collapsed,
|
|
@@ -52328,9 +52330,13 @@ function QueryFilter(props) {
|
|
|
52328
52330
|
rest = objectWithoutProperties_objectWithoutProperties(props, QueryFilter_excluded);
|
|
52329
52331
|
|
|
52330
52332
|
var context = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext);
|
|
52331
|
-
var baseClassName = context.getPrefixCls('pro-
|
|
52333
|
+
var baseClassName = context.getPrefixCls('pro-query-filter');
|
|
52332
52334
|
|
|
52333
|
-
var
|
|
52335
|
+
var _useStyle = QueryFilter_style_useStyle(baseClassName),
|
|
52336
|
+
wrapSSR = _useStyle.wrapSSR,
|
|
52337
|
+
hashId = _useStyle.hashId;
|
|
52338
|
+
|
|
52339
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(function () {
|
|
52334
52340
|
return typeof (style === null || style === void 0 ? void 0 : style.width) === 'number' ? style === null || style === void 0 ? void 0 : style.width : defaultWidth;
|
|
52335
52341
|
}),
|
|
52336
52342
|
_useMountMergeState2 = slicedToArray_slicedToArray(_useMountMergeState, 2),
|
|
@@ -52369,7 +52375,7 @@ function QueryFilter(props) {
|
|
|
52369
52375
|
|
|
52370
52376
|
return undefined;
|
|
52371
52377
|
}, [spanSize.layout, labelWidth]);
|
|
52372
|
-
return (0,jsx_runtime.jsx)(rc_resize_observer_es, {
|
|
52378
|
+
return wrapSSR((0,jsx_runtime.jsx)(rc_resize_observer_es, {
|
|
52373
52379
|
onResize: function onResize(offset) {
|
|
52374
52380
|
if (width !== offset.width && offset.width > 17) {
|
|
52375
52381
|
setWidth(offset.width);
|
|
@@ -52379,7 +52385,7 @@ function QueryFilter(props) {
|
|
|
52379
52385
|
isKeyPressSubmit: true,
|
|
52380
52386
|
preserve: preserve
|
|
52381
52387
|
}, rest), {}, {
|
|
52382
|
-
className: classnames_default()(baseClassName, rest.className),
|
|
52388
|
+
className: classnames_default()(baseClassName, hashId, rest.className),
|
|
52383
52389
|
onReset: onReset,
|
|
52384
52390
|
style: style,
|
|
52385
52391
|
layout: spanSize.layout,
|
|
@@ -52417,7 +52423,7 @@ function QueryFilter(props) {
|
|
|
52417
52423
|
});
|
|
52418
52424
|
}
|
|
52419
52425
|
}))
|
|
52420
|
-
}, "resize-observer");
|
|
52426
|
+
}, "resize-observer"));
|
|
52421
52427
|
}
|
|
52422
52428
|
|
|
52423
52429
|
|
|
@@ -52725,7 +52731,7 @@ function StepsForm(props) {
|
|
|
52725
52731
|
var unRegForm = (0,external_React_.useCallback)(function (name) {
|
|
52726
52732
|
setFormArray(function (oldFormArray) {
|
|
52727
52733
|
return oldFormArray.filter(function (n) {
|
|
52728
|
-
return n
|
|
52734
|
+
return n !== name;
|
|
52729
52735
|
});
|
|
52730
52736
|
});
|
|
52731
52737
|
formMapRef.current.delete(name);
|
|
@@ -52986,8 +52992,6 @@ function StepsForm(props) {
|
|
|
52986
52992
|
}));
|
|
52987
52993
|
}
|
|
52988
52994
|
|
|
52989
|
-
|
|
52990
|
-
|
|
52991
52995
|
function StepsFormWarp(props) {
|
|
52992
52996
|
return (0,jsx_runtime.jsx)(ConfigProviderWrap, {
|
|
52993
52997
|
children: (0,jsx_runtime.jsx)(StepsForm, objectSpread2_objectSpread2({}, props))
|
|
@@ -52996,6 +53000,7 @@ function StepsFormWarp(props) {
|
|
|
52996
53000
|
|
|
52997
53001
|
StepsFormWarp.StepForm = StepsForm_StepForm;
|
|
52998
53002
|
StepsFormWarp.useForm = external_antd_.Form.useForm;
|
|
53003
|
+
|
|
52999
53004
|
;// CONCATENATED MODULE: ./packages/form/es/components/SchemaForm/layoutType/Embed.js
|
|
53000
53005
|
|
|
53001
53006
|
|
|
@@ -53025,7 +53030,7 @@ var StepsForm_StepsForm = function StepsForm(_ref) {
|
|
|
53025
53030
|
grid = _ref.grid,
|
|
53026
53031
|
props = objectWithoutProperties_objectWithoutProperties(_ref, layoutType_StepsForm_excluded);
|
|
53027
53032
|
|
|
53028
|
-
var propsRef =
|
|
53033
|
+
var propsRef = useLatest(props);
|
|
53029
53034
|
/**
|
|
53030
53035
|
* Fixed StepsForm toggle step causing formRef to update
|
|
53031
53036
|
*/
|
|
@@ -53140,7 +53145,7 @@ var field = function field(item, _ref) {
|
|
|
53140
53145
|
var renderFormItem = (item === null || item === void 0 ? void 0 : item.renderFormItem) ? function (_, config) {
|
|
53141
53146
|
var _item$renderFormItem, _item$getFormItemProp2, _item$getFieldProps2;
|
|
53142
53147
|
|
|
53143
|
-
var renderConfig =
|
|
53148
|
+
var renderConfig = omitUndefined(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, config), {}, {
|
|
53144
53149
|
onChange: undefined
|
|
53145
53150
|
}));
|
|
53146
53151
|
return item === null || item === void 0 ? void 0 : (_item$renderFormItem = item.renderFormItem) === null || _item$renderFormItem === void 0 ? void 0 : _item$renderFormItem.call(item, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
@@ -53337,7 +53342,7 @@ function BetaSchemaForm(props) {
|
|
|
53337
53342
|
}, [restProps]);
|
|
53338
53343
|
var formRef = (0,external_React_.useRef)(props.form || form);
|
|
53339
53344
|
var oldValuesRef = (0,external_React_.useRef)();
|
|
53340
|
-
var propsRef =
|
|
53345
|
+
var propsRef = useLatest(props);
|
|
53341
53346
|
(0,external_React_.useImperativeHandle)(restProps.formRef, function () {
|
|
53342
53347
|
return formRef.current;
|
|
53343
53348
|
});
|
|
@@ -53359,11 +53364,11 @@ function BetaSchemaForm(props) {
|
|
|
53359
53364
|
}).map(function (originItem, index) {
|
|
53360
53365
|
var _item$dataIndex;
|
|
53361
53366
|
|
|
53362
|
-
var title = runFunction(originItem.title, originItem, 'form', (0,jsx_runtime.jsx)(
|
|
53367
|
+
var title = runFunction(originItem.title, originItem, 'form', (0,jsx_runtime.jsx)(LabelIconTip, {
|
|
53363
53368
|
label: originItem.title,
|
|
53364
53369
|
tooltip: originItem.tooltip || originItem.tip
|
|
53365
53370
|
}));
|
|
53366
|
-
var item =
|
|
53371
|
+
var item = omitUndefined({
|
|
53367
53372
|
title: title,
|
|
53368
53373
|
label: title,
|
|
53369
53374
|
name: originItem.name,
|
|
@@ -53833,7 +53838,7 @@ var TimeRangePicker = /*#__PURE__*/external_React_default().forwardRef(function
|
|
|
53833
53838
|
filedConfig: {
|
|
53834
53839
|
valueType: 'timeRange',
|
|
53835
53840
|
lightFilterLabelFormatter: function lightFilterLabelFormatter(value) {
|
|
53836
|
-
return
|
|
53841
|
+
return dateArrayFormatter(value, 'HH:mm:SS');
|
|
53837
53842
|
}
|
|
53838
53843
|
}
|
|
53839
53844
|
}, rest));
|
|
@@ -54308,7 +54313,7 @@ function BaseFormComponents(props) {
|
|
|
54308
54313
|
/** 使用 callback 的类型 */
|
|
54309
54314
|
|
|
54310
54315
|
var transformKey = (0,external_React_.useCallback)(function (values, omit, parentKey) {
|
|
54311
|
-
return
|
|
54316
|
+
return transformKeySubmitValue(conversionMomentValue(values, dateFormatter, fieldsValueType.current, omit, parentKey), transformKeyRef.current, omit);
|
|
54312
54317
|
}, [dateFormatter]);
|
|
54313
54318
|
var formatValues = (0,external_React_.useMemo)(function () {
|
|
54314
54319
|
return {
|
|
@@ -54435,7 +54440,7 @@ function BaseFormComponents(props) {
|
|
|
54435
54440
|
return response; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54436
54441
|
}, []);
|
|
54437
54442
|
|
|
54438
|
-
var _useMountMergeState =
|
|
54443
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(false),
|
|
54439
54444
|
_useMountMergeState2 = slicedToArray_slicedToArray(_useMountMergeState, 2),
|
|
54440
54445
|
loading = _useMountMergeState2[0],
|
|
54441
54446
|
setLoading = _useMountMergeState2[1];
|
|
@@ -54535,11 +54540,11 @@ function BaseFormComponents(props) {
|
|
|
54535
54540
|
if (syncToInitialValues) return;
|
|
54536
54541
|
setUrlParamsMergeInitialValues({});
|
|
54537
54542
|
}, [syncToInitialValues]);
|
|
54538
|
-
var preInitialValues =
|
|
54543
|
+
var preInitialValues = usePrevious(props.initialValues); // 提示一个 initialValues ,问的人实在是太多了
|
|
54539
54544
|
|
|
54540
54545
|
(0,external_React_.useEffect)(function () {
|
|
54541
54546
|
if (syncToUrl || !props.initialValues || !preInitialValues || rest.request) return;
|
|
54542
|
-
var isEqual =
|
|
54547
|
+
var isEqual = isDeepEqualReact(props.initialValues, preInitialValues);
|
|
54543
54548
|
(0,lib_warning.noteOnce)(isEqual, "initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ? <Form/> : null ");
|
|
54544
54549
|
(0,lib_warning.noteOnce)(isEqual, "The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? <Form/> : null "); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54545
54550
|
}, [props.initialValues]);
|
|
@@ -54569,7 +54574,7 @@ function BaseFormComponents(props) {
|
|
|
54569
54574
|
});
|
|
54570
54575
|
}
|
|
54571
54576
|
},
|
|
54572
|
-
children: (0,jsx_runtime.jsx)(
|
|
54577
|
+
children: (0,jsx_runtime.jsx)(ProFormContext.Provider, {
|
|
54573
54578
|
value: formatValues,
|
|
54574
54579
|
children: (0,jsx_runtime.jsx)(external_antd_.ConfigProvider.SizeContext.Provider, {
|
|
54575
54580
|
value: rest.size || sizeContextValue,
|
|
@@ -54709,7 +54714,7 @@ function BaseForm(props) {
|
|
|
54709
54714
|
requestFormCacheId += 0;
|
|
54710
54715
|
}, []);
|
|
54711
54716
|
|
|
54712
|
-
var _useFetchData =
|
|
54717
|
+
var _useFetchData = useFetchData({
|
|
54713
54718
|
request: request,
|
|
54714
54719
|
params: params,
|
|
54715
54720
|
proFieldKey: formKey
|
|
@@ -54816,7 +54821,7 @@ var LightWrapper = function LightWrapper(props) {
|
|
|
54816
54821
|
tempValue = _useState2[0],
|
|
54817
54822
|
setTempValue = _useState2[1];
|
|
54818
54823
|
|
|
54819
|
-
var _useMountMergeState =
|
|
54824
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(false),
|
|
54820
54825
|
_useMountMergeState2 = slicedToArray_slicedToArray(_useMountMergeState, 2),
|
|
54821
54826
|
open = _useMountMergeState2[0],
|
|
54822
54827
|
setOpen = _useMountMergeState2[1];
|
|
@@ -54839,17 +54844,17 @@ var LightWrapper = function LightWrapper(props) {
|
|
|
54839
54844
|
var _valueType$toLowerCas;
|
|
54840
54845
|
|
|
54841
54846
|
if ((valueType === null || valueType === void 0 ? void 0 : (_valueType$toLowerCas = valueType.toLowerCase()) === null || _valueType$toLowerCas === void 0 ? void 0 : _valueType$toLowerCas.endsWith('range')) && !labelFormatter) {
|
|
54842
|
-
return
|
|
54847
|
+
return dateArrayFormatter(labelValue, dateFormatterMap[valueType] || 'YYYY-MM-DD');
|
|
54843
54848
|
}
|
|
54844
54849
|
|
|
54845
54850
|
return labelValue;
|
|
54846
54851
|
}, [labelValue, valueType, labelFormatter]);
|
|
54847
|
-
return wrapSSR((0,jsx_runtime.jsx)(
|
|
54852
|
+
return wrapSSR((0,jsx_runtime.jsx)(FilterDropdown, {
|
|
54848
54853
|
disabled: disabled,
|
|
54849
54854
|
onVisibleChange: setOpen,
|
|
54850
54855
|
placement: placement,
|
|
54851
54856
|
visible: open,
|
|
54852
|
-
label: (0,jsx_runtime.jsx)(
|
|
54857
|
+
label: (0,jsx_runtime.jsx)(FieldLabel, {
|
|
54853
54858
|
ellipsis: true,
|
|
54854
54859
|
size: size,
|
|
54855
54860
|
onClear: function onClear() {
|
|
@@ -56538,7 +56543,7 @@ var FieldRender = function FieldRender(props) {
|
|
|
56538
56543
|
/** 如果是只读模式,fieldProps 的 form是空的,所以需要兜底处理 */
|
|
56539
56544
|
|
|
56540
56545
|
if (mode === 'read' || !mode || valueType === 'option') {
|
|
56541
|
-
var fieldProps =
|
|
56546
|
+
var fieldProps = getFieldPropsOrFormItemProps(props.fieldProps, undefined, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56542
56547
|
rowKey: dataIndex,
|
|
56543
56548
|
isEditable: false
|
|
56544
56549
|
}));
|
|
@@ -56564,11 +56569,11 @@ var FieldRender = function FieldRender(props) {
|
|
|
56564
56569
|
children: function children(form) {
|
|
56565
56570
|
var _editableUtils$action;
|
|
56566
56571
|
|
|
56567
|
-
var formItemProps =
|
|
56572
|
+
var formItemProps = getFieldPropsOrFormItemProps(props.formItemProps, form, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56568
56573
|
rowKey: dataIndex,
|
|
56569
56574
|
isEditable: true
|
|
56570
56575
|
}));
|
|
56571
|
-
var fieldProps =
|
|
56576
|
+
var fieldProps = getFieldPropsOrFormItemProps(props.fieldProps, form, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), {}, {
|
|
56572
56577
|
rowKey: dataIndex,
|
|
56573
56578
|
isEditable: true
|
|
56574
56579
|
}));
|
|
@@ -56586,7 +56591,7 @@ var FieldRender = function FieldRender(props) {
|
|
|
56586
56591
|
type: 'descriptions'
|
|
56587
56592
|
}, form) : undefined;
|
|
56588
56593
|
return (0,jsx_runtime.jsxs)(external_antd_.Space, {
|
|
56589
|
-
children: [(0,jsx_runtime.jsx)(
|
|
56594
|
+
children: [(0,jsx_runtime.jsx)(InlineErrorFormItem, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
56590
56595
|
name: dataIndex
|
|
56591
56596
|
}, formItemProps), {}, {
|
|
56592
56597
|
style: objectSpread2_objectSpread2({
|
|
@@ -56646,7 +56651,7 @@ var schemaToDescriptionsItem = function schemaToDescriptionsItem(items, entity,
|
|
|
56646
56651
|
|
|
56647
56652
|
var field = /*#__PURE__*/(0,external_React_.createElement)(external_antd_.Descriptions.Item, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, restItem), {}, {
|
|
56648
56653
|
key: restItem.key || ((_restItem$label = restItem.label) === null || _restItem$label === void 0 ? void 0 : _restItem$label.toString()) || index,
|
|
56649
|
-
label: (title || restItem.label || restItem.tooltip || restItem.tip) && (0,jsx_runtime.jsx)(
|
|
56654
|
+
label: (title || restItem.label || restItem.tooltip || restItem.tip) && (0,jsx_runtime.jsx)(LabelIconTip, {
|
|
56650
56655
|
label: title || restItem.label,
|
|
56651
56656
|
tooltip: restItem.tooltip || restItem.tip,
|
|
56652
56657
|
ellipsis: item.ellipsis
|
|
@@ -56760,7 +56765,7 @@ var ProDescriptions = function ProDescriptions(props) {
|
|
|
56760
56765
|
* 可编辑行的相关配置
|
|
56761
56766
|
*/
|
|
56762
56767
|
|
|
56763
|
-
var editableUtils =
|
|
56768
|
+
var editableUtils = useEditableMap(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props.editable), {}, {
|
|
56764
56769
|
childrenColumnName: undefined,
|
|
56765
56770
|
dataSource: action.dataSource,
|
|
56766
56771
|
setDataSource: action.setDataSource
|
|
@@ -56836,14 +56841,14 @@ var ProDescriptions = function ProDescriptions(props) {
|
|
|
56836
56841
|
var title = null;
|
|
56837
56842
|
|
|
56838
56843
|
if (rest.title || rest.tooltip || rest.tip) {
|
|
56839
|
-
title = (0,jsx_runtime.jsx)(
|
|
56844
|
+
title = (0,jsx_runtime.jsx)(LabelIconTip, {
|
|
56840
56845
|
label: rest.title,
|
|
56841
56846
|
tooltip: rest.tooltip || rest.tip
|
|
56842
56847
|
});
|
|
56843
56848
|
}
|
|
56844
56849
|
|
|
56845
56850
|
var className = context.getPrefixCls('pro-descriptions');
|
|
56846
|
-
return (0,jsx_runtime.jsx)(
|
|
56851
|
+
return (0,jsx_runtime.jsx)(ErrorBoundary, {
|
|
56847
56852
|
children: (0,jsx_runtime.jsx)(FormComponent, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
56848
56853
|
form: (_props$editable = props.editable) === null || _props$editable === void 0 ? void 0 : _props$editable.form,
|
|
56849
56854
|
component: false,
|
|
@@ -57004,7 +57009,7 @@ var FooterToolbar = function FooterToolbar(props) {
|
|
|
57004
57009
|
}), dom) : dom
|
|
57005
57010
|
}));
|
|
57006
57011
|
|
|
57007
|
-
var ssrDom = !
|
|
57012
|
+
var ssrDom = !isBrowser() ? renderDom : /*#__PURE__*/(0,external_ReactDOM_.createPortal)(renderDom, (getTargetContainer === null || getTargetContainer === void 0 ? void 0 : getTargetContainer()) || document.querySelector('.ant-pro') || document.body, baseClassName);
|
|
57008
57013
|
return wrapSSR(ssrDom);
|
|
57009
57014
|
};
|
|
57010
57015
|
|
|
@@ -58261,17 +58266,12 @@ var locales = {
|
|
|
58261
58266
|
'it-IT': locales_it_IT,
|
|
58262
58267
|
'ko-KR': locales_ko_KR
|
|
58263
58268
|
};
|
|
58264
|
-
|
|
58265
58269
|
var getLanguage = function getLanguage() {
|
|
58266
58270
|
// support ssr
|
|
58267
|
-
if (!
|
|
58271
|
+
if (!isBrowser()) return 'zh-CN';
|
|
58268
58272
|
var lang = window.localStorage.getItem('umi_locale');
|
|
58269
58273
|
return lang || window.g_locale || navigator.language;
|
|
58270
58274
|
};
|
|
58271
|
-
|
|
58272
|
-
|
|
58273
|
-
|
|
58274
|
-
|
|
58275
58275
|
var gLocaleObject = function gLocaleObject() {
|
|
58276
58276
|
var gLocale = getLanguage();
|
|
58277
58277
|
return locales[gLocale] || locales['zh-CN'];
|
|
@@ -58607,10 +58607,10 @@ var genSettingDrawerStyle = function genSettingDrawerStyle(token) {
|
|
|
58607
58607
|
'&-realDark': {
|
|
58608
58608
|
backgroundColor: 'rgba(0, 21, 41, 0.85)',
|
|
58609
58609
|
'&::before': {
|
|
58610
|
-
backgroundColor:
|
|
58610
|
+
backgroundColor: token.colorTextSecondary
|
|
58611
58611
|
},
|
|
58612
58612
|
'&::after': {
|
|
58613
|
-
backgroundColor:
|
|
58613
|
+
backgroundColor: token.colorText
|
|
58614
58614
|
}
|
|
58615
58615
|
},
|
|
58616
58616
|
'&-light': {
|
|
@@ -58875,7 +58875,7 @@ var updateTheme = /*#__PURE__*/function () {
|
|
|
58875
58875
|
|
|
58876
58876
|
|
|
58877
58877
|
var initState = function initState(urlParams, settings, onSettingChange) {
|
|
58878
|
-
if (!
|
|
58878
|
+
if (!isBrowser()) return;
|
|
58879
58879
|
var replaceSetting = {};
|
|
58880
58880
|
Object.keys(urlParams).forEach(function (key) {
|
|
58881
58881
|
if (defaultSettings[key] || defaultSettings[key] === undefined) {
|
|
@@ -58900,7 +58900,7 @@ var initState = function initState(urlParams, settings, onSettingChange) {
|
|
|
58900
58900
|
};
|
|
58901
58901
|
|
|
58902
58902
|
var getParamsFromUrl = function getParamsFromUrl(urlParams, settings) {
|
|
58903
|
-
if (!
|
|
58903
|
+
if (!isBrowser()) return defaultSettings;
|
|
58904
58904
|
return objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, defaultSettings), settings || {}), urlParams);
|
|
58905
58905
|
};
|
|
58906
58906
|
|
|
@@ -59010,7 +59010,7 @@ var SettingDrawer = function SettingDrawer(props) {
|
|
|
59010
59010
|
/** 如果不是浏览器 都没有必要做了 */
|
|
59011
59011
|
|
|
59012
59012
|
|
|
59013
|
-
if (!
|
|
59013
|
+
if (!isBrowser()) return function () {
|
|
59014
59014
|
return null;
|
|
59015
59015
|
};
|
|
59016
59016
|
initState(getParamsFromUrl(urlParams, propsSettings), settingState, setSettingState);
|
|
@@ -59076,7 +59076,7 @@ var SettingDrawer = function SettingDrawer(props) {
|
|
|
59076
59076
|
var formatMessage = getFormatMessage();
|
|
59077
59077
|
(0,external_React_.useEffect)(function () {
|
|
59078
59078
|
/** 如果不是浏览器 都没有必要做了 */
|
|
59079
|
-
if (!
|
|
59079
|
+
if (!isBrowser()) return;
|
|
59080
59080
|
if (disableUrlParams) return;
|
|
59081
59081
|
|
|
59082
59082
|
if (firstRender.current) {
|
|
@@ -59099,11 +59099,12 @@ var SettingDrawer = function SettingDrawer(props) {
|
|
|
59099
59099
|
var baseClassName = "".concat(prefixCls, "-setting-drawer");
|
|
59100
59100
|
|
|
59101
59101
|
var _useStyle = SettingDrawer_style_useStyle(baseClassName),
|
|
59102
|
-
wrapSSR = _useStyle.wrapSSR
|
|
59102
|
+
wrapSSR = _useStyle.wrapSSR,
|
|
59103
|
+
hashId = _useStyle.hashId;
|
|
59103
59104
|
|
|
59104
59105
|
return wrapSSR((0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
59105
59106
|
children: [(0,jsx_runtime.jsx)("div", {
|
|
59106
|
-
className: "".concat(baseClassName, "-handle"),
|
|
59107
|
+
className: "".concat(baseClassName, "-handle ").concat(hashId),
|
|
59107
59108
|
onClick: function onClick() {
|
|
59108
59109
|
return setShow(!show);
|
|
59109
59110
|
},
|
|
@@ -59131,7 +59132,7 @@ var SettingDrawer = function SettingDrawer(props) {
|
|
|
59131
59132
|
zIndex: 999
|
|
59132
59133
|
},
|
|
59133
59134
|
children: (0,jsx_runtime.jsxs)("div", {
|
|
59134
|
-
className: "".concat(baseClassName, "-content"),
|
|
59135
|
+
className: "".concat(baseClassName, "-drawer-content"),
|
|
59135
59136
|
children: [(0,jsx_runtime.jsx)(Body, {
|
|
59136
59137
|
title: formatMessage({
|
|
59137
59138
|
id: 'app.setting.pagestyle',
|
|
@@ -59302,8 +59303,6 @@ var SettingDrawer = function SettingDrawer(props) {
|
|
|
59302
59303
|
})]
|
|
59303
59304
|
}));
|
|
59304
59305
|
};
|
|
59305
|
-
|
|
59306
|
-
|
|
59307
59306
|
;// CONCATENATED MODULE: ./packages/layout/es/components/AppsLogoComponents/AppsLogo.js
|
|
59308
59307
|
|
|
59309
59308
|
/**
|
|
@@ -59594,7 +59593,7 @@ function AppsLogoComponents_style_useStyle(prefixCls) {
|
|
|
59594
59593
|
return useStyle('apps-logo-components', function (token) {
|
|
59595
59594
|
var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
59596
59595
|
componentCls: ".".concat(prefixCls),
|
|
59597
|
-
appListIconTextColor:
|
|
59596
|
+
appListIconTextColor: 'rgb(102, 102, 102)',
|
|
59598
59597
|
appListIconHoverTextColor: token.colorLinkHover,
|
|
59599
59598
|
appListIconHoverBgColor: 'rgba(0, 0, 0, 0.04)'
|
|
59600
59599
|
});
|
|
@@ -60046,7 +60045,7 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
|
|
|
60046
60045
|
border: 'none',
|
|
60047
60046
|
'&-group': defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item-group-title"), {
|
|
60048
60047
|
fontSize: 12,
|
|
60049
|
-
color:
|
|
60048
|
+
color: token.colorTextLabel,
|
|
60050
60049
|
'.anticon': {
|
|
60051
60050
|
marginInlineEnd: 8
|
|
60052
60051
|
}
|
|
@@ -60100,7 +60099,7 @@ var getIcon = function getIcon(icon) {
|
|
|
60100
60099
|
var iconPrefixes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'icon-';
|
|
60101
60100
|
|
|
60102
60101
|
if (typeof icon === 'string' && icon !== '') {
|
|
60103
|
-
if (
|
|
60102
|
+
if (isUrl(icon) || isImg(icon)) {
|
|
60104
60103
|
return (0,jsx_runtime.jsx)(components_Icon, {
|
|
60105
60104
|
component: function component() {
|
|
60106
60105
|
return (0,jsx_runtime.jsx)("img", {
|
|
@@ -60262,7 +60261,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
|
|
|
60262
60261
|
})]
|
|
60263
60262
|
});
|
|
60264
60263
|
|
|
60265
|
-
var isHttpUrl =
|
|
60264
|
+
var isHttpUrl = isUrl(itemPath); // Is it a http link
|
|
60266
60265
|
|
|
60267
60266
|
if (isHttpUrl) {
|
|
60268
60267
|
defaultItem = (0,jsx_runtime.jsxs)("span", {
|
|
@@ -60350,12 +60349,12 @@ var BaseMenu = function BaseMenu(props) {
|
|
|
60350
60349
|
var _MenuCounter$useConta = MenuCounter.useContainer(),
|
|
60351
60350
|
flatMenuKeys = _MenuCounter$useConta.flatMenuKeys;
|
|
60352
60351
|
|
|
60353
|
-
var _useMountMergeState =
|
|
60352
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(menu === null || menu === void 0 ? void 0 : menu.defaultOpenAll),
|
|
60354
60353
|
_useMountMergeState2 = slicedToArray_slicedToArray(_useMountMergeState, 2),
|
|
60355
60354
|
defaultOpenAll = _useMountMergeState2[0],
|
|
60356
60355
|
setDefaultOpenAll = _useMountMergeState2[1];
|
|
60357
60356
|
|
|
60358
|
-
var _useMountMergeState3 =
|
|
60357
|
+
var _useMountMergeState3 = (0,useMergedState/* default */.Z)(function () {
|
|
60359
60358
|
if (menu === null || menu === void 0 ? void 0 : menu.defaultOpenAll) {
|
|
60360
60359
|
return getOpenKeysFromMenuData(menuData) || [];
|
|
60361
60360
|
}
|
|
@@ -60373,7 +60372,7 @@ var BaseMenu = function BaseMenu(props) {
|
|
|
60373
60372
|
openKeys = _useMountMergeState4[0],
|
|
60374
60373
|
setOpenKeys = _useMountMergeState4[1];
|
|
60375
60374
|
|
|
60376
|
-
var _useMountMergeState5 =
|
|
60375
|
+
var _useMountMergeState5 = (0,useMergedState/* default */.Z)([], {
|
|
60377
60376
|
value: propsSelectedKeys,
|
|
60378
60377
|
onChange: onSelect ? function (keys) {
|
|
60379
60378
|
if (onSelect && keys) {
|
|
@@ -60843,15 +60842,34 @@ var SiderMenu = function SiderMenu(props) {
|
|
|
60843
60842
|
theme: theme,
|
|
60844
60843
|
width: siderWidth,
|
|
60845
60844
|
className: classnames_default()(siderClassName, hideMenuWhenCollapsedClassName),
|
|
60846
|
-
children: [
|
|
60847
|
-
|
|
60848
|
-
|
|
60849
|
-
|
|
60850
|
-
|
|
60851
|
-
|
|
60845
|
+
children: [(0,jsx_runtime.jsx)(external_antd_.ConfigProvider, {
|
|
60846
|
+
theme: {
|
|
60847
|
+
override: {
|
|
60848
|
+
Menu: {
|
|
60849
|
+
radiusItem: 4,
|
|
60850
|
+
colorItemBgSelected: 'rgba(0, 0, 0, 0.04)',
|
|
60851
|
+
colorItemBgActive: 'rgba(0, 0, 0, 0.04)',
|
|
60852
|
+
colorActiveBarWidth: 0,
|
|
60853
|
+
colorActiveBarHeight: 0,
|
|
60854
|
+
colorActiveBarBorderSize: 0,
|
|
60855
|
+
colorItemText: 'rgba(0, 0, 0, 0.65)',
|
|
60856
|
+
colorItemTextHover: 'rgba(0, 0, 0, 0.85)',
|
|
60857
|
+
colorItemTextSelected: 'rgba(0, 0, 0, 1)',
|
|
60858
|
+
colorItemBg: 'transparent',
|
|
60859
|
+
colorSubItemBg: 'transparent'
|
|
60860
|
+
}
|
|
60861
|
+
}
|
|
60852
60862
|
},
|
|
60853
|
-
children:
|
|
60854
|
-
|
|
60863
|
+
children: hideMenuWhenCollapsedClassName ? (0,jsx_runtime.jsx)("div", {
|
|
60864
|
+
className: "".concat(baseClassName, "-hide-when-collapsed"),
|
|
60865
|
+
style: {
|
|
60866
|
+
height: '100%',
|
|
60867
|
+
width: '100%',
|
|
60868
|
+
opacity: hideMenuWhenCollapsedClassName ? 0 : 1
|
|
60869
|
+
},
|
|
60870
|
+
children: menuDomItems
|
|
60871
|
+
}) : menuDomItems
|
|
60872
|
+
}), collapsedDom]
|
|
60855
60873
|
})]
|
|
60856
60874
|
});
|
|
60857
60875
|
};
|
|
@@ -60880,7 +60898,8 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
60880
60898
|
alignItems: 'center',
|
|
60881
60899
|
minWidth: '192px'
|
|
60882
60900
|
}, "".concat(token.proComponentsCls, "-layout-apps-icon"), {
|
|
60883
|
-
marginInlineEnd: 16
|
|
60901
|
+
marginInlineEnd: 16,
|
|
60902
|
+
marginInlineStart: -8
|
|
60884
60903
|
})
|
|
60885
60904
|
},
|
|
60886
60905
|
'&-logo': {
|
|
@@ -60890,18 +60909,18 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
60890
60909
|
height: '100%',
|
|
60891
60910
|
alignItems: 'center',
|
|
60892
60911
|
overflow: 'hidden',
|
|
60893
|
-
a: {
|
|
60912
|
+
'> a': {
|
|
60894
60913
|
display: 'flex',
|
|
60895
60914
|
alignItems: 'center',
|
|
60896
60915
|
minHeight: '22px',
|
|
60897
60916
|
fontSize: '22px'
|
|
60898
60917
|
},
|
|
60899
|
-
img: {
|
|
60918
|
+
'a > img': {
|
|
60900
60919
|
display: 'inline-block',
|
|
60901
60920
|
height: '32px',
|
|
60902
60921
|
verticalAlign: 'middle'
|
|
60903
60922
|
},
|
|
60904
|
-
h1: {
|
|
60923
|
+
'a > h1': {
|
|
60905
60924
|
display: 'inline-block',
|
|
60906
60925
|
marginBlock: 0,
|
|
60907
60926
|
marginInline: 0,
|
|
@@ -60930,6 +60949,7 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
60930
60949
|
justifyContent: 'center',
|
|
60931
60950
|
paddingBlock: 0,
|
|
60932
60951
|
paddingInline: 6,
|
|
60952
|
+
color: setAlpha(token.colorTextBase, 0.65),
|
|
60933
60953
|
fontSize: '16px',
|
|
60934
60954
|
cursor: 'pointer',
|
|
60935
60955
|
borderRadius: token.radiusBase,
|
|
@@ -60948,8 +60968,10 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
60948
60968
|
justifyContent: 'center',
|
|
60949
60969
|
paddingInlineStart: '16px',
|
|
60950
60970
|
paddingInlineEnd: '16px',
|
|
60971
|
+
color: setAlpha(token.colorTextBase, 0.65),
|
|
60951
60972
|
'> div': {
|
|
60952
60973
|
height: '44px',
|
|
60974
|
+
color: setAlpha(token.colorTextBase, 0.65),
|
|
60953
60975
|
paddingInline: 8,
|
|
60954
60976
|
paddingBlock: 8,
|
|
60955
60977
|
cursor: 'pointer',
|
|
@@ -61064,7 +61086,7 @@ var RightContent = function RightContent(_ref) {
|
|
|
61064
61086
|
/** 减少一下渲染的次数 */
|
|
61065
61087
|
|
|
61066
61088
|
|
|
61067
|
-
var setRightSizeDebounceFn =
|
|
61089
|
+
var setRightSizeDebounceFn = useDebounceFn( /*#__PURE__*/function () {
|
|
61068
61090
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(width) {
|
|
61069
61091
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
61070
61092
|
while (1) {
|
|
@@ -61143,18 +61165,39 @@ var TopNavHeader = function TopNavHeader(props) {
|
|
|
61143
61165
|
var contentDom = (0,external_React_.useMemo)(function () {
|
|
61144
61166
|
var _props$menuProps;
|
|
61145
61167
|
|
|
61146
|
-
var defaultDom = (0,jsx_runtime.jsx)(
|
|
61147
|
-
theme:
|
|
61148
|
-
|
|
61149
|
-
|
|
61150
|
-
|
|
61151
|
-
|
|
61152
|
-
|
|
61153
|
-
|
|
61154
|
-
|
|
61155
|
-
|
|
61156
|
-
|
|
61157
|
-
|
|
61168
|
+
var defaultDom = (0,jsx_runtime.jsx)(external_antd_.ConfigProvider, {
|
|
61169
|
+
theme: {
|
|
61170
|
+
hashed: true,
|
|
61171
|
+
override: {
|
|
61172
|
+
Menu: {
|
|
61173
|
+
colorItemBg: 'transparent',
|
|
61174
|
+
colorSubItemBg: 'transparent',
|
|
61175
|
+
radiusItem: 4,
|
|
61176
|
+
colorItemBgSelected: 'rgba(0, 0, 0, 0.04)',
|
|
61177
|
+
colorItemBgActive: 'rgba(0, 0, 0, 0.04)',
|
|
61178
|
+
colorItemBgSelectedHorizontal: 'rgba(0, 0, 0, 0.04)',
|
|
61179
|
+
colorActiveBarWidth: 0,
|
|
61180
|
+
colorActiveBarHeight: 0,
|
|
61181
|
+
colorActiveBarBorderSize: 0,
|
|
61182
|
+
colorItemText: 'rgba(0, 0, 0, 0.65)',
|
|
61183
|
+
colorItemTextHover: 'rgba(0, 0, 0, 0.85)',
|
|
61184
|
+
colorItemTextSelected: 'rgba(0, 0, 0, 1)'
|
|
61185
|
+
}
|
|
61186
|
+
}
|
|
61187
|
+
},
|
|
61188
|
+
children: (0,jsx_runtime.jsx)(BaseMenu, objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
61189
|
+
theme: "light"
|
|
61190
|
+
}, props), {}, {
|
|
61191
|
+
className: "".concat(prefixCls, "-base-menu")
|
|
61192
|
+
}, props.menuProps), {}, {
|
|
61193
|
+
style: objectSpread2_objectSpread2({
|
|
61194
|
+
width: '100%'
|
|
61195
|
+
}, (_props$menuProps = props.menuProps) === null || _props$menuProps === void 0 ? void 0 : _props$menuProps.style),
|
|
61196
|
+
collapsed: false,
|
|
61197
|
+
menuRenderType: "header",
|
|
61198
|
+
mode: "horizontal"
|
|
61199
|
+
}))
|
|
61200
|
+
});
|
|
61158
61201
|
|
|
61159
61202
|
if (headerContentRender) {
|
|
61160
61203
|
return headerContentRender(props, defaultDom);
|
|
@@ -61715,7 +61758,8 @@ var genProLayoutHeaderStyle = function genProLayoutHeaderStyle(token) {
|
|
|
61715
61758
|
return defineProperty_defineProperty({}, token.proLayoutCls, defineProperty_defineProperty({}, token.componentCls, {
|
|
61716
61759
|
height: token.ProLayoutHeaderHeaderHeight,
|
|
61717
61760
|
lineHeight: "".concat(token.ProLayoutHeaderHeaderHeight, "px"),
|
|
61718
|
-
|
|
61761
|
+
// hitu 用了这个属性,不能删除哦 @南取
|
|
61762
|
+
zIndex: 19,
|
|
61719
61763
|
width: '100%',
|
|
61720
61764
|
paddingBlock: 0,
|
|
61721
61765
|
paddingInline: 8,
|
|
@@ -61835,7 +61879,8 @@ var DefaultHeader = function DefaultHeader(props) {
|
|
|
61835
61879
|
style: objectSpread2_objectSpread2({
|
|
61836
61880
|
height: headerHeight,
|
|
61837
61881
|
lineHeight: "".concat(headerHeight, "px"),
|
|
61838
|
-
backgroundColor: 'transparent'
|
|
61882
|
+
backgroundColor: 'transparent',
|
|
61883
|
+
zIndex: 19
|
|
61839
61884
|
}, style)
|
|
61840
61885
|
}), (0,jsx_runtime.jsx)(Header, {
|
|
61841
61886
|
className: className,
|
|
@@ -63747,7 +63792,9 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
63747
63792
|
paddingInline: 6,
|
|
63748
63793
|
paddingBlock: 6,
|
|
63749
63794
|
borderInlineEnd: "1px solid ".concat(token.colorSplit)
|
|
63750
|
-
}), defineProperty_defineProperty(_objectSpread2,
|
|
63795
|
+
}), defineProperty_defineProperty(_objectSpread2, "".concat(token.antCls, "-menu"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item-group-title"), {
|
|
63796
|
+
fontSize: token.fontSizeSM
|
|
63797
|
+
})), defineProperty_defineProperty(_objectSpread2, '&-logo', {
|
|
63751
63798
|
position: 'relative',
|
|
63752
63799
|
display: 'flex',
|
|
63753
63800
|
alignItems: 'center',
|
|
@@ -63782,9 +63829,12 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
63782
63829
|
verticalAlign: 'middle'
|
|
63783
63830
|
},
|
|
63784
63831
|
'&-collapsed': defineProperty_defineProperty({
|
|
63785
|
-
flexDirection: 'column'
|
|
63832
|
+
flexDirection: 'column-reverse',
|
|
63833
|
+
margin: -6
|
|
63786
63834
|
}, "".concat(token.proComponentsCls, "-layout-apps-icon"), {
|
|
63787
|
-
marginBlockEnd: 8
|
|
63835
|
+
marginBlockEnd: 8,
|
|
63836
|
+
fontSize: 16,
|
|
63837
|
+
transition: 'font-size 0.2s ease-in-out,color 0.2s ease-in-out'
|
|
63788
63838
|
})
|
|
63789
63839
|
}), defineProperty_defineProperty(_objectSpread2, '&-actions', {
|
|
63790
63840
|
display: 'flex',
|
|
@@ -64108,13 +64158,19 @@ var defaultMenuToken = {
|
|
|
64108
64158
|
*/
|
|
64109
64159
|
|
|
64110
64160
|
var compatibleStyle = function compatibleStyle(token) {
|
|
64111
|
-
var _menuHorizontal, _token$antCls;
|
|
64161
|
+
var _menuHorizontal, _token$antCls, _ref;
|
|
64112
64162
|
|
|
64113
64163
|
if (external_antd_.version.startsWith('5')) {
|
|
64114
64164
|
return {};
|
|
64115
64165
|
}
|
|
64116
64166
|
|
|
64117
|
-
return
|
|
64167
|
+
return _ref = {}, defineProperty_defineProperty(_ref, token.proComponentsCls, {
|
|
64168
|
+
width: '100%',
|
|
64169
|
+
height: '100%'
|
|
64170
|
+
}), defineProperty_defineProperty(_ref, token.componentCls, defineProperty_defineProperty({
|
|
64171
|
+
width: '100%',
|
|
64172
|
+
height: '100%'
|
|
64173
|
+
}, token.antCls, (_token$antCls = {
|
|
64118
64174
|
'&-menu': {
|
|
64119
64175
|
color: defaultMenuToken.colorItemText
|
|
64120
64176
|
},
|
|
@@ -64155,7 +64211,7 @@ var compatibleStyle = function compatibleStyle(token) {
|
|
|
64155
64211
|
marginInline: 4
|
|
64156
64212
|
}), defineProperty_defineProperty(_menuHorizontal, "> ".concat(token.antCls, "-menu-item::after, > ").concat(token.antCls, "-menu-submenu::after"), {
|
|
64157
64213
|
display: 'none'
|
|
64158
|
-
}), _menuHorizontal)), _token$antCls)));
|
|
64214
|
+
}), _menuHorizontal)), _token$antCls))), _ref;
|
|
64159
64215
|
};
|
|
64160
64216
|
|
|
64161
64217
|
var genProLayoutStyle = function genProLayoutStyle(token) {
|
|
@@ -64388,7 +64444,7 @@ var useCurrentMenuLayoutProps = function useCurrentMenuLayoutProps(currentMenu)
|
|
|
64388
64444
|
setCurrentMenuLayoutProps = _useState2[1];
|
|
64389
64445
|
|
|
64390
64446
|
(0,external_React_.useEffect)(function () {
|
|
64391
|
-
setCurrentMenuLayoutProps(
|
|
64447
|
+
setCurrentMenuLayoutProps(omitUndefined({
|
|
64392
64448
|
// 有时候会变成对象,是原来的方式
|
|
64393
64449
|
layout: typeof_typeof(currentMenu.layout) !== 'object' ? currentMenu.layout : undefined,
|
|
64394
64450
|
navTheme: currentMenu.navTheme,
|
|
@@ -64419,7 +64475,7 @@ var WrapContent = function WrapContent(props) {
|
|
|
64419
64475
|
children = props.children,
|
|
64420
64476
|
disableContentMargin = props.disableContentMargin;
|
|
64421
64477
|
var contentClassName = classnames_default()("".concat(prefixCls, "-content"), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-header"), props.hasHeader), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-content-has-margin"), !disableContentMargin), _classNames));
|
|
64422
|
-
var ErrorComponent = props.ErrorBoundary ||
|
|
64478
|
+
var ErrorComponent = props.ErrorBoundary || ErrorBoundary;
|
|
64423
64479
|
return props.ErrorBoundary === false ? (0,jsx_runtime.jsx)(external_antd_.Layout.Content, {
|
|
64424
64480
|
className: contentClassName,
|
|
64425
64481
|
style: style,
|
|
@@ -64649,7 +64705,7 @@ var BaseProLayout = function BaseProLayout(props) {
|
|
|
64649
64705
|
}, [designToken.errorColor, designToken.infoColor, designToken.primaryColor, // designToken.processingColor,
|
|
64650
64706
|
designToken.successColor, designToken.warningColor]);
|
|
64651
64707
|
|
|
64652
|
-
var _useMountMergeState =
|
|
64708
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(false, {
|
|
64653
64709
|
value: menu === null || menu === void 0 ? void 0 : menu.loading,
|
|
64654
64710
|
onChange: menu === null || menu === void 0 ? void 0 : menu.onLoadingChange
|
|
64655
64711
|
}),
|
|
@@ -64872,7 +64928,7 @@ var BaseProLayout = function BaseProLayout(props) {
|
|
|
64872
64928
|
hasFooterToolbar = _useState4[0],
|
|
64873
64929
|
setHasFooterToolbar = _useState4[1];
|
|
64874
64930
|
|
|
64875
|
-
|
|
64931
|
+
useDocumentTitle(pageTitleInfo, props.title || false);
|
|
64876
64932
|
var bgImgStyleList = (0,external_React_.useMemo)(function () {
|
|
64877
64933
|
if (layoutBgImgList && layoutBgImgList.length > 0) {
|
|
64878
64934
|
return layoutBgImgList.map(function (item, index) {
|
|
@@ -64919,49 +64975,10 @@ var BaseProLayout = function BaseProLayout(props) {
|
|
|
64919
64975
|
style: objectSpread2_objectSpread2({
|
|
64920
64976
|
minHeight: '100%'
|
|
64921
64977
|
}, style),
|
|
64922
|
-
children: [(0,jsx_runtime.
|
|
64923
|
-
theme: {
|
|
64924
|
-
override: {
|
|
64925
|
-
Menu: {
|
|
64926
|
-
radiusItem: 4,
|
|
64927
|
-
colorItemBgSelected: 'rgba(0, 0, 0, 0.04)',
|
|
64928
|
-
colorItemBgActive: 'rgba(0, 0, 0, 0.04)',
|
|
64929
|
-
colorActiveBarWidth: 0,
|
|
64930
|
-
colorActiveBarHeight: 0,
|
|
64931
|
-
colorActiveBarBorderSize: 0,
|
|
64932
|
-
colorItemText: 'rgba(0, 0, 0, 0.65)',
|
|
64933
|
-
colorItemTextHover: 'rgba(0, 0, 0, 0.85)',
|
|
64934
|
-
colorItemTextSelected: 'rgba(0, 0, 0, 1)',
|
|
64935
|
-
colorItemBg: 'transparent',
|
|
64936
|
-
colorSubItemBg: 'transparent'
|
|
64937
|
-
}
|
|
64938
|
-
}
|
|
64939
|
-
},
|
|
64940
|
-
children: siderMenuDom
|
|
64941
|
-
}), (0,jsx_runtime.jsxs)("div", {
|
|
64978
|
+
children: [siderMenuDom, (0,jsx_runtime.jsxs)("div", {
|
|
64942
64979
|
style: genLayoutStyle,
|
|
64943
64980
|
className: context.getPrefixCls('layout'),
|
|
64944
|
-
children: [(0,jsx_runtime.jsx)(
|
|
64945
|
-
theme: {
|
|
64946
|
-
override: {
|
|
64947
|
-
Menu: {
|
|
64948
|
-
colorItemBg: 'transparent',
|
|
64949
|
-
colorSubItemBg: 'transparent',
|
|
64950
|
-
radiusItem: 4,
|
|
64951
|
-
colorItemBgSelected: 'rgba(0, 0, 0, 0.04)',
|
|
64952
|
-
colorItemBgActive: 'rgba(0, 0, 0, 0.04)',
|
|
64953
|
-
colorItemBgSelectedHorizontal: 'rgba(0, 0, 0, 0.04)',
|
|
64954
|
-
colorActiveBarWidth: 0,
|
|
64955
|
-
colorActiveBarHeight: 0,
|
|
64956
|
-
colorActiveBarBorderSize: 0,
|
|
64957
|
-
colorItemText: 'rgba(0, 0, 0, 0.65)',
|
|
64958
|
-
colorItemTextHover: 'rgba(0, 0, 0, 0.85)',
|
|
64959
|
-
colorItemTextSelected: 'rgba(0, 0, 0, 1)'
|
|
64960
|
-
}
|
|
64961
|
-
}
|
|
64962
|
-
},
|
|
64963
|
-
children: headerDom
|
|
64964
|
-
}), (0,jsx_runtime.jsx)(WrapContent, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
64981
|
+
children: [headerDom, (0,jsx_runtime.jsx)(WrapContent, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
64965
64982
|
disableContentMargin: disableContentMargin,
|
|
64966
64983
|
autoClearCache: false,
|
|
64967
64984
|
isChildrenLayout: isChildrenLayout
|
|
@@ -64981,7 +64998,7 @@ var BaseProLayout = function BaseProLayout(props) {
|
|
|
64981
64998
|
BaseProLayout.defaultProps = objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
64982
64999
|
logo: (0,jsx_runtime.jsx)(Logo, {})
|
|
64983
65000
|
}, defaultSettings), {}, {
|
|
64984
|
-
location:
|
|
65001
|
+
location: isBrowser() ? window.location : undefined
|
|
64985
65002
|
});
|
|
64986
65003
|
|
|
64987
65004
|
var ProLayout_ProLayout = function ProLayout(props) {
|
|
@@ -66728,10 +66745,10 @@ var Alert_style_genProStyle = function genProStyle(token) {
|
|
|
66728
66745
|
|
|
66729
66746
|
return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
|
|
66730
66747
|
marginBlockEnd: 16
|
|
66731
|
-
}, defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-alert").concat(token.antCls, "-alert-no-icon"), {
|
|
66748
|
+
}, defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-alert ").concat(token.antCls, "-alert-no-icon"), {
|
|
66732
66749
|
paddingBlock: token.paddingSM,
|
|
66733
66750
|
paddingInline: token.paddingLG
|
|
66734
|
-
}), defineProperty_defineProperty(_token$componentCls, '
|
|
66751
|
+
}), defineProperty_defineProperty(_token$componentCls, '&-info', {
|
|
66735
66752
|
display: 'flex',
|
|
66736
66753
|
alignItems: 'center',
|
|
66737
66754
|
transition: 'all 0.3s',
|
|
@@ -66746,7 +66763,7 @@ var Alert_style_genProStyle = function genProStyle(token) {
|
|
|
66746
66763
|
};
|
|
66747
66764
|
|
|
66748
66765
|
function Alert_style_useStyle(prefixCls) {
|
|
66749
|
-
return useStyle('
|
|
66766
|
+
return useStyle('ProTableAlert', function (token) {
|
|
66750
66767
|
var proToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
66751
66768
|
componentCls: ".".concat(prefixCls)
|
|
66752
66769
|
});
|
|
@@ -67408,7 +67425,7 @@ var FormSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
67408
67425
|
onSubmit = _this$props.onSubmit,
|
|
67409
67426
|
onFormSearchSubmit = _this$props.onFormSearchSubmit; // 只传入 pagination 中的 current 和 pageSize 参数
|
|
67410
67427
|
|
|
67411
|
-
var pageInfo = pagination ?
|
|
67428
|
+
var pageInfo = pagination ? omitUndefined({
|
|
67412
67429
|
current: pagination.current,
|
|
67413
67430
|
pageSize: pagination.pageSize
|
|
67414
67431
|
}) : {};
|
|
@@ -67448,7 +67465,7 @@ var FormSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
67448
67465
|
action = _this$props2.action,
|
|
67449
67466
|
onFormSearchSubmit = _this$props2.onFormSearchSubmit,
|
|
67450
67467
|
onReset = _this$props2.onReset;
|
|
67451
|
-
var pageInfo = pagination ?
|
|
67468
|
+
var pageInfo = pagination ? omitUndefined({
|
|
67452
67469
|
current: pagination.current,
|
|
67453
67470
|
pageSize: pagination.pageSize
|
|
67454
67471
|
}) : {};
|
|
@@ -67483,7 +67500,7 @@ var FormSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
67483
67500
|
search: search,
|
|
67484
67501
|
manualRequest: manualRequest
|
|
67485
67502
|
};
|
|
67486
|
-
return !
|
|
67503
|
+
return !isDeepEqualReact(diffProps, {
|
|
67487
67504
|
columns: next.columns,
|
|
67488
67505
|
formRef: next.formRef,
|
|
67489
67506
|
loading: next.loading,
|
|
@@ -67514,7 +67531,7 @@ var FormSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
67514
67531
|
pagination = _this$props4.pagination,
|
|
67515
67532
|
ghost = _this$props4.ghost,
|
|
67516
67533
|
manualRequest = _this$props4.manualRequest;
|
|
67517
|
-
var pageInfo = pagination ?
|
|
67534
|
+
var pageInfo = pagination ? omitUndefined({
|
|
67518
67535
|
current: pagination.current,
|
|
67519
67536
|
pageSize: pagination.pageSize
|
|
67520
67537
|
}) : {};
|
|
@@ -67679,15 +67696,39 @@ function container_useContainer() {
|
|
|
67679
67696
|
_useMergedState4 = slicedToArray_slicedToArray(_useMergedState3, 2),
|
|
67680
67697
|
columnsMap = _useMergedState4[0],
|
|
67681
67698
|
setColumnsMap = _useMergedState4[1];
|
|
67699
|
+
/** 配置或列更改时对columnsMap重新赋值 */
|
|
67700
|
+
|
|
67682
67701
|
|
|
67702
|
+
(0,external_React_.useLayoutEffect)(function () {
|
|
67703
|
+
var _ref3 = props.columnsState || {},
|
|
67704
|
+
persistenceType = _ref3.persistenceType,
|
|
67705
|
+
persistenceKey = _ref3.persistenceKey;
|
|
67706
|
+
|
|
67707
|
+
if (persistenceKey && persistenceType && typeof window !== 'undefined') {
|
|
67708
|
+
/** 从持久化中读取数据 */
|
|
67709
|
+
var storage = window[persistenceType];
|
|
67710
|
+
|
|
67711
|
+
try {
|
|
67712
|
+
var storageValue = storage === null || storage === void 0 ? void 0 : storage.getItem(persistenceKey);
|
|
67713
|
+
|
|
67714
|
+
if (storageValue) {
|
|
67715
|
+
setColumnsMap(JSON.parse(storageValue));
|
|
67716
|
+
} else {
|
|
67717
|
+
setColumnsMap(defaultColumnKeyMap);
|
|
67718
|
+
}
|
|
67719
|
+
} catch (error) {
|
|
67720
|
+
console.warn(error);
|
|
67721
|
+
}
|
|
67722
|
+
}
|
|
67723
|
+
}, [props.columnsState, defaultColumnKeyMap, setColumnsMap]);
|
|
67683
67724
|
(0,lib_warning.noteOnce)(!props.columnsStateMap, 'columnsStateMap已经废弃,请使用 columnsState.value 替换');
|
|
67684
67725
|
(0,lib_warning.noteOnce)(!props.columnsStateMap, 'columnsStateMap has been discarded, please use columnSstate.value replacement');
|
|
67685
67726
|
/** 清空一下当前的 key */
|
|
67686
67727
|
|
|
67687
67728
|
var clearPersistenceStorage = (0,external_React_.useCallback)(function () {
|
|
67688
|
-
var
|
|
67689
|
-
persistenceType =
|
|
67690
|
-
persistenceKey =
|
|
67729
|
+
var _ref4 = props.columnsState || {},
|
|
67730
|
+
persistenceType = _ref4.persistenceType,
|
|
67731
|
+
persistenceKey = _ref4.persistenceKey;
|
|
67691
67732
|
|
|
67692
67733
|
if (!persistenceKey || !persistenceType || typeof window === 'undefined') return;
|
|
67693
67734
|
/** 给持久化中设置数据 */
|
|
@@ -68546,7 +68587,7 @@ var genProListStyle = function genProListStyle(token) {
|
|
|
68546
68587
|
height: '100%'
|
|
68547
68588
|
},
|
|
68548
68589
|
'&:hover': {
|
|
68549
|
-
color: token.
|
|
68590
|
+
color: token.colorPrimary
|
|
68550
68591
|
}
|
|
68551
68592
|
},
|
|
68552
68593
|
'&-left': {
|
|
@@ -68813,7 +68854,7 @@ var ListToolBar = function ListToolBar(_ref2) {
|
|
|
68813
68854
|
className: "".concat(prefixCls, "-left"),
|
|
68814
68855
|
children: (0,jsx_runtime.jsx)("div", {
|
|
68815
68856
|
className: "".concat(prefixCls, "-title"),
|
|
68816
|
-
children: (0,jsx_runtime.jsx)(
|
|
68857
|
+
children: (0,jsx_runtime.jsx)(LabelIconTip, {
|
|
68817
68858
|
tooltip: tooltip,
|
|
68818
68859
|
label: title,
|
|
68819
68860
|
subTitle: subTitle
|
|
@@ -68826,7 +68867,7 @@ var ListToolBar = function ListToolBar(_ref2) {
|
|
|
68826
68867
|
className: "".concat(prefixCls, "-left"),
|
|
68827
68868
|
children: [(0,jsx_runtime.jsx)("div", {
|
|
68828
68869
|
className: "".concat(prefixCls, "-title"),
|
|
68829
|
-
children: (0,jsx_runtime.jsx)(
|
|
68870
|
+
children: (0,jsx_runtime.jsx)(LabelIconTip, {
|
|
68830
68871
|
tooltip: tooltip,
|
|
68831
68872
|
label: title,
|
|
68832
68873
|
subTitle: subTitle
|
|
@@ -69063,7 +69104,7 @@ var FullScreenIcon = function FullScreenIcon() {
|
|
|
69063
69104
|
setFullscreen = _useState2[1];
|
|
69064
69105
|
|
|
69065
69106
|
(0,external_React_.useEffect)(function () {
|
|
69066
|
-
if (!
|
|
69107
|
+
if (!isBrowser()) {
|
|
69067
69108
|
return;
|
|
69068
69109
|
}
|
|
69069
69110
|
|
|
@@ -69305,7 +69346,7 @@ var ToolbarRender = /*#__PURE__*/function (_React$Component) {
|
|
|
69305
69346
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$se = _actionRef$current.setPageInfo) === null || _actionRef$current$se === void 0 ? void 0 : _actionRef$current$se.call(_actionRef$current, {
|
|
69306
69347
|
current: 1
|
|
69307
69348
|
});
|
|
69308
|
-
onFormSearchSubmit(
|
|
69349
|
+
onFormSearchSubmit(omitUndefined(defineProperty_defineProperty({
|
|
69309
69350
|
_timestamp: Date.now()
|
|
69310
69351
|
}, name, keyword)));
|
|
69311
69352
|
};
|
|
@@ -69322,7 +69363,7 @@ var ToolbarRender = /*#__PURE__*/function (_React$Component) {
|
|
|
69322
69363
|
headerTitle = _this$props2.headerTitle,
|
|
69323
69364
|
actionRef = _this$props2.actionRef,
|
|
69324
69365
|
toolBarRender = _this$props2.toolBarRender;
|
|
69325
|
-
return
|
|
69366
|
+
return isDeepEqualReact({
|
|
69326
69367
|
hideToolbar: hideToolbar,
|
|
69327
69368
|
tableColumn: tableColumn,
|
|
69328
69369
|
options: options,
|
|
@@ -69402,9 +69443,9 @@ var ToolbarRender = /*#__PURE__*/function (_React$Component) {
|
|
|
69402
69443
|
|
|
69403
69444
|
|
|
69404
69445
|
var style_genProListStyle = function genProListStyle(token) {
|
|
69405
|
-
var
|
|
69446
|
+
var _formOption, _search, _token$componentCls2, _ref;
|
|
69406
69447
|
|
|
69407
|
-
return _ref = {}, defineProperty_defineProperty(_ref, token.componentCls, (_token$
|
|
69448
|
+
return _ref = {}, defineProperty_defineProperty(_ref, token.componentCls, (_token$componentCls2 = {
|
|
69408
69449
|
zIndex: 1,
|
|
69409
69450
|
'&:not(:root):fullscreen': {
|
|
69410
69451
|
minHeight: '100vh',
|
|
@@ -69425,34 +69466,15 @@ var style_genProListStyle = function genProListStyle(token) {
|
|
|
69425
69466
|
fontSize: token.fontSize
|
|
69426
69467
|
}
|
|
69427
69468
|
}
|
|
69428
|
-
}, defineProperty_defineProperty(_token$
|
|
69469
|
+
}, defineProperty_defineProperty(_token$componentCls2, "".concat(token.antCls, "-table").concat(token.antCls, "-table-tbody").concat(token.antCls, "-table-wrapper:only-child").concat(token.antCls, "-table"), {
|
|
69429
69470
|
marginBlock: 0,
|
|
69430
69471
|
marginInline: 0
|
|
69431
|
-
}), defineProperty_defineProperty(_token$
|
|
69472
|
+
}), defineProperty_defineProperty(_token$componentCls2, "".concat(token.antCls, "-table").concat(token.antCls, "-table-middle ").concat(token.componentCls), {
|
|
69432
69473
|
marginBlock: -12,
|
|
69433
69474
|
marginInline: -8
|
|
69434
|
-
}), _token$
|
|
69435
|
-
'0%': {
|
|
69436
|
-
transform: 'rotate(0deg)'
|
|
69437
|
-
},
|
|
69438
|
-
'25%': {
|
|
69439
|
-
transform: 'rotate(90deg)'
|
|
69440
|
-
},
|
|
69441
|
-
'50%': {
|
|
69442
|
-
transform: 'rotate(180deg)'
|
|
69443
|
-
},
|
|
69444
|
-
'75%': {
|
|
69445
|
-
transform: 'rotate(270deg)'
|
|
69446
|
-
},
|
|
69447
|
-
'100%': {
|
|
69448
|
-
transform: 'rotate(360deg)'
|
|
69449
|
-
}
|
|
69450
|
-
}), defineProperty_defineProperty(_ref, '&-search', (_search = {
|
|
69475
|
+
}), defineProperty_defineProperty(_token$componentCls2, '& &-search', (_search = {
|
|
69451
69476
|
marginBlockEnd: '16px',
|
|
69452
|
-
|
|
69453
|
-
paddingInline: 24,
|
|
69454
|
-
paddingBlockEnd: 0,
|
|
69455
|
-
background: '@component-background',
|
|
69477
|
+
background: token.colorBgContainer,
|
|
69456
69478
|
'&-ghost': {
|
|
69457
69479
|
background: 'transparent'
|
|
69458
69480
|
}
|
|
@@ -69462,18 +69484,17 @@ var style_genProListStyle = function genProListStyle(token) {
|
|
|
69462
69484
|
paddingBlock: 0,
|
|
69463
69485
|
paddingInline: 16,
|
|
69464
69486
|
overflow: 'unset'
|
|
69465
|
-
}), defineProperty_defineProperty(_search, '&-light', {
|
|
69487
|
+
}), defineProperty_defineProperty(_search, '&-light-filter', {
|
|
69466
69488
|
marginBlockEnd: 0,
|
|
69467
|
-
|
|
69468
|
-
|
|
69469
|
-
paddingInline: 0
|
|
69489
|
+
paddingBlock: 0,
|
|
69490
|
+
paddingInline: 8
|
|
69470
69491
|
}), 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({
|
|
69471
69492
|
height: 'auto !important',
|
|
69472
69493
|
paddingBlockEnd: '24px'
|
|
69473
69494
|
}, "".concat(token.antCls, "-form-item-label"), {
|
|
69474
69495
|
minWidth: '80px',
|
|
69475
69496
|
textAlign: 'left'
|
|
69476
|
-
}))), _search)), defineProperty_defineProperty(
|
|
69497
|
+
}))), _search)), defineProperty_defineProperty(_token$componentCls2, '&-toolbar', {
|
|
69477
69498
|
display: 'flex',
|
|
69478
69499
|
alignItems: 'center',
|
|
69479
69500
|
justifyContent: 'space-between',
|
|
@@ -69493,6 +69514,22 @@ var style_genProListStyle = function genProListStyle(token) {
|
|
|
69493
69514
|
lineHeight: '24px',
|
|
69494
69515
|
opacity: '0.85'
|
|
69495
69516
|
}
|
|
69517
|
+
}), _token$componentCls2)), defineProperty_defineProperty(_ref, '@keyframes turn', {
|
|
69518
|
+
'0%': {
|
|
69519
|
+
transform: 'rotate(0deg)'
|
|
69520
|
+
},
|
|
69521
|
+
'25%': {
|
|
69522
|
+
transform: 'rotate(90deg)'
|
|
69523
|
+
},
|
|
69524
|
+
'50%': {
|
|
69525
|
+
transform: 'rotate(180deg)'
|
|
69526
|
+
},
|
|
69527
|
+
'75%': {
|
|
69528
|
+
transform: 'rotate(270deg)'
|
|
69529
|
+
},
|
|
69530
|
+
'100%': {
|
|
69531
|
+
transform: 'rotate(360deg)'
|
|
69532
|
+
}
|
|
69496
69533
|
}), defineProperty_defineProperty(_ref, "@media (max-width: ".concat(token.screenXS, ")"), defineProperty_defineProperty({}, token.componentCls, {
|
|
69497
69534
|
'.ant-table': {
|
|
69498
69535
|
width: '100%',
|
|
@@ -69601,7 +69638,7 @@ var es_useFetchData_useFetchData = function useFetchData(getData, defaultData, o
|
|
|
69601
69638
|
|
|
69602
69639
|
var pollingSetTimeRef = (0,external_React_.useRef)();
|
|
69603
69640
|
|
|
69604
|
-
var _useMountMergeState =
|
|
69641
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(defaultData, {
|
|
69605
69642
|
value: options === null || options === void 0 ? void 0 : options.dataSource,
|
|
69606
69643
|
onChange: options === null || options === void 0 ? void 0 : options.onDataSourceChange
|
|
69607
69644
|
}),
|
|
@@ -69609,7 +69646,7 @@ var es_useFetchData_useFetchData = function useFetchData(getData, defaultData, o
|
|
|
69609
69646
|
list = _useMountMergeState2[0],
|
|
69610
69647
|
setList = _useMountMergeState2[1];
|
|
69611
69648
|
|
|
69612
|
-
var _useMountMergeState3 =
|
|
69649
|
+
var _useMountMergeState3 = (0,useMergedState/* default */.Z)(false, {
|
|
69613
69650
|
value: options === null || options === void 0 ? void 0 : options.loading,
|
|
69614
69651
|
onChange: options === null || options === void 0 ? void 0 : options.onLoadingChange
|
|
69615
69652
|
}),
|
|
@@ -69619,7 +69656,7 @@ var es_useFetchData_useFetchData = function useFetchData(getData, defaultData, o
|
|
|
69619
69656
|
|
|
69620
69657
|
var requesting = (0,external_React_.useRef)(false);
|
|
69621
69658
|
|
|
69622
|
-
var _useMountMergeState5 =
|
|
69659
|
+
var _useMountMergeState5 = (0,useMergedState/* default */.Z)(function () {
|
|
69623
69660
|
return mergeOptionAndPageInfo(options);
|
|
69624
69661
|
}, {
|
|
69625
69662
|
onChange: options === null || options === void 0 ? void 0 : options.onPageInfoChange
|
|
@@ -69634,7 +69671,7 @@ var es_useFetchData_useFetchData = function useFetchData(getData, defaultData, o
|
|
|
69634
69671
|
}
|
|
69635
69672
|
});
|
|
69636
69673
|
|
|
69637
|
-
var _useMountMergeState7 =
|
|
69674
|
+
var _useMountMergeState7 = (0,useMergedState/* default */.Z)(false),
|
|
69638
69675
|
_useMountMergeState8 = slicedToArray_slicedToArray(_useMountMergeState7, 2),
|
|
69639
69676
|
pollingLoading = _useMountMergeState8[0],
|
|
69640
69677
|
setPollingLoading = _useMountMergeState8[1]; // Batching update https://github.com/facebook/react/issues/14259
|
|
@@ -69651,9 +69688,9 @@ var es_useFetchData_useFetchData = function useFetchData(getData, defaultData, o
|
|
|
69651
69688
|
}; // pre state
|
|
69652
69689
|
|
|
69653
69690
|
|
|
69654
|
-
var prePage =
|
|
69655
|
-
var prePageSize =
|
|
69656
|
-
var prePolling =
|
|
69691
|
+
var prePage = usePrevious(pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.current);
|
|
69692
|
+
var prePageSize = usePrevious(pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.pageSize);
|
|
69693
|
+
var prePolling = usePrevious(polling);
|
|
69657
69694
|
|
|
69658
69695
|
var _ref3 = options || {},
|
|
69659
69696
|
_ref3$effects = _ref3.effects,
|
|
@@ -69796,7 +69833,7 @@ var es_useFetchData_useFetchData = function useFetchData(getData, defaultData, o
|
|
|
69796
69833
|
};
|
|
69797
69834
|
}();
|
|
69798
69835
|
|
|
69799
|
-
var fetchListDebounce =
|
|
69836
|
+
var fetchListDebounce = useDebounceFn( /*#__PURE__*/function () {
|
|
69800
69837
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(isPolling) {
|
|
69801
69838
|
var msg, needPolling;
|
|
69802
69839
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -69892,7 +69929,7 @@ var es_useFetchData_useFetchData = function useFetchData(getData, defaultData, o
|
|
|
69892
69929
|
|
|
69893
69930
|
fetchListDebounce.run(false); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
69894
69931
|
}, [pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.pageSize]);
|
|
69895
|
-
|
|
69932
|
+
useDeepCompareEffect(function () {
|
|
69896
69933
|
fetchListDebounce.run(false);
|
|
69897
69934
|
|
|
69898
69935
|
if (!manual) {
|
|
@@ -70095,7 +70132,7 @@ var CellRenderFromItem = function CellRenderFromItem(props) {
|
|
|
70095
70132
|
var children = _ref3.children,
|
|
70096
70133
|
restProps = objectWithoutProperties_objectWithoutProperties(_ref3, cellRenderToFromItem_excluded);
|
|
70097
70134
|
|
|
70098
|
-
return (0,jsx_runtime.jsx)(
|
|
70135
|
+
return (0,jsx_runtime.jsx)(InlineErrorFormItem, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
70099
70136
|
popoverProps: {
|
|
70100
70137
|
getPopupContainer: formContext.getPopupContainer || function () {
|
|
70101
70138
|
return counter.rootDomRef.current || document.body;
|
|
@@ -70111,7 +70148,7 @@ var CellRenderFromItem = function CellRenderFromItem(props) {
|
|
|
70111
70148
|
var generateFormItem = (0,external_React_.useCallback)(function () {
|
|
70112
70149
|
var _ref4, _ref5;
|
|
70113
70150
|
|
|
70114
|
-
var formItemProps = objectSpread2_objectSpread2({},
|
|
70151
|
+
var formItemProps = objectSpread2_objectSpread2({}, getFieldPropsOrFormItemProps.apply(void 0, [columnProps === null || columnProps === void 0 ? void 0 : columnProps.formItemProps].concat(toConsumableArray_toConsumableArray(needProps))));
|
|
70115
70152
|
|
|
70116
70153
|
formItemProps.messageVariables = objectSpread2_objectSpread2({
|
|
70117
70154
|
label: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.title) || '此项',
|
|
@@ -70124,7 +70161,7 @@ var CellRenderFromItem = function CellRenderFromItem(props) {
|
|
|
70124
70161
|
name: formItemName,
|
|
70125
70162
|
proFormFieldKey: key,
|
|
70126
70163
|
ignoreFormItem: true,
|
|
70127
|
-
fieldProps:
|
|
70164
|
+
fieldProps: getFieldPropsOrFormItemProps.apply(void 0, [columnProps === null || columnProps === void 0 ? void 0 : columnProps.fieldProps].concat(toConsumableArray_toConsumableArray(needProps)))
|
|
70128
70165
|
}, proFieldProps), formItemName.join('-'));
|
|
70129
70166
|
/**
|
|
70130
70167
|
* 如果没有自定义直接返回
|
|
@@ -70226,7 +70263,7 @@ function cellRenderToFromItem(config) {
|
|
|
70226
70263
|
return (0,jsx_runtime.jsx)(components_Field, objectSpread2_objectSpread2({
|
|
70227
70264
|
mode: "read",
|
|
70228
70265
|
ignoreFormItem: true,
|
|
70229
|
-
fieldProps:
|
|
70266
|
+
fieldProps: getFieldPropsOrFormItemProps(columnProps === null || columnProps === void 0 ? void 0 : columnProps.fieldProps, null, columnProps)
|
|
70230
70267
|
}, proFieldProps));
|
|
70231
70268
|
}
|
|
70232
70269
|
|
|
@@ -70266,13 +70303,13 @@ var renderColumnsTitle = function renderColumnsTitle(item) {
|
|
|
70266
70303
|
var ellipsis = typeof (item === null || item === void 0 ? void 0 : item.ellipsis) === 'boolean' ? item === null || item === void 0 ? void 0 : item.ellipsis : item === null || item === void 0 ? void 0 : (_item$ellipsis = item.ellipsis) === null || _item$ellipsis === void 0 ? void 0 : _item$ellipsis.showTitle;
|
|
70267
70304
|
|
|
70268
70305
|
if (title && typeof title === 'function') {
|
|
70269
|
-
return title(item, 'table', (0,jsx_runtime.jsx)(
|
|
70306
|
+
return title(item, 'table', (0,jsx_runtime.jsx)(LabelIconTip, {
|
|
70270
70307
|
label: null,
|
|
70271
70308
|
tooltip: item.tooltip || item.tip
|
|
70272
70309
|
}));
|
|
70273
70310
|
}
|
|
70274
70311
|
|
|
70275
|
-
return (0,jsx_runtime.jsx)(
|
|
70312
|
+
return (0,jsx_runtime.jsx)(LabelIconTip, {
|
|
70276
70313
|
label: title,
|
|
70277
70314
|
tooltip: item.tooltip || item.tip,
|
|
70278
70315
|
ellipsis: ellipsis
|
|
@@ -70324,7 +70361,7 @@ var OptionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
70324
70361
|
var nextChildren = nextProps.children,
|
|
70325
70362
|
restNextProps = objectWithoutProperties_objectWithoutProperties(nextProps, columnRender_excluded2);
|
|
70326
70363
|
|
|
70327
|
-
return !
|
|
70364
|
+
return !isDeepEqualReact(restProps, restNextProps);
|
|
70328
70365
|
}
|
|
70329
70366
|
}, {
|
|
70330
70367
|
key: "render",
|
|
@@ -70411,7 +70448,7 @@ function columnRender(_ref) {
|
|
|
70411
70448
|
|
|
70412
70449
|
if (!columnProps.render) {
|
|
70413
70450
|
var isReactRenderNode = /*#__PURE__*/ /*#__PURE__*/external_React_default().isValidElement(dom) || ['string', 'number'].includes(typeof_typeof(dom));
|
|
70414
|
-
return !
|
|
70451
|
+
return !isNil(dom) && isReactRenderNode ? dom : null;
|
|
70415
70452
|
}
|
|
70416
70453
|
|
|
70417
70454
|
var renderDom = columnProps.render(dom, rowData, index, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, action), editableUtils), objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, columnProps), {}, {
|
|
@@ -70507,7 +70544,7 @@ function genProColumnToColumn(params) {
|
|
|
70507
70544
|
};
|
|
70508
70545
|
}
|
|
70509
70546
|
|
|
70510
|
-
return
|
|
70547
|
+
return omitBoolean(onFilter);
|
|
70511
70548
|
};
|
|
70512
70549
|
|
|
70513
70550
|
var keyName = rowKey;
|
|
@@ -70563,7 +70600,7 @@ function genProColumnToColumn(params) {
|
|
|
70563
70600
|
}
|
|
70564
70601
|
});
|
|
70565
70602
|
|
|
70566
|
-
return
|
|
70603
|
+
return omitUndefinedAndEmptyArr(tempColumns);
|
|
70567
70604
|
}).filter(function (item) {
|
|
70568
70605
|
return !item.hideInTable;
|
|
70569
70606
|
});
|
|
@@ -70725,7 +70762,7 @@ function TableRender(props) {
|
|
|
70725
70762
|
(_rest$onChange = rest.onChange) === null || _rest$onChange === void 0 ? void 0 : _rest$onChange.call(rest, changePagination, filters, sorter, extra);
|
|
70726
70763
|
|
|
70727
70764
|
if (!useLocaleFilter) {
|
|
70728
|
-
onFilterChange(
|
|
70765
|
+
onFilterChange(omitUndefined(filters));
|
|
70729
70766
|
} // 制造筛选的数据
|
|
70730
70767
|
// 制造一个排序的数据
|
|
70731
70768
|
|
|
@@ -70734,13 +70771,13 @@ function TableRender(props) {
|
|
|
70734
70771
|
var data = sorter.reduce(function (pre, value) {
|
|
70735
70772
|
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, pre), {}, defineProperty_defineProperty({}, "".concat(value.field), value.order));
|
|
70736
70773
|
}, {});
|
|
70737
|
-
onSortChange(
|
|
70774
|
+
onSortChange(omitUndefined(data));
|
|
70738
70775
|
} else {
|
|
70739
70776
|
var _sorter$column;
|
|
70740
70777
|
|
|
70741
70778
|
var sorterOfColumn = (_sorter$column = sorter.column) === null || _sorter$column === void 0 ? void 0 : _sorter$column.sorter;
|
|
70742
70779
|
var isSortByField = (sorterOfColumn === null || sorterOfColumn === void 0 ? void 0 : sorterOfColumn.toString()) === sorterOfColumn;
|
|
70743
|
-
onSortChange(
|
|
70780
|
+
onSortChange(omitUndefined(defineProperty_defineProperty({}, "".concat(isSortByField ? sorterOfColumn : sorter.field), sorter.order)) || {});
|
|
70744
70781
|
}
|
|
70745
70782
|
}
|
|
70746
70783
|
});
|
|
@@ -70917,7 +70954,7 @@ var ProTable = function ProTable(props) {
|
|
|
70917
70954
|
});
|
|
70918
70955
|
/** 单选多选的相关逻辑 */
|
|
70919
70956
|
|
|
70920
|
-
var _useMountMergeState =
|
|
70957
|
+
var _useMountMergeState = (0,useMergedState/* default */.Z)(propsRowSelection ? (propsRowSelection === null || propsRowSelection === void 0 ? void 0 : propsRowSelection.defaultSelectedRowKeys) || [] : undefined, {
|
|
70921
70958
|
value: propsRowSelection ? propsRowSelection.selectedRowKeys : undefined
|
|
70922
70959
|
}),
|
|
70923
70960
|
_useMountMergeState2 = slicedToArray_slicedToArray(_useMountMergeState, 2),
|
|
@@ -70934,7 +70971,7 @@ var ProTable = function ProTable(props) {
|
|
|
70934
70971
|
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
70935
70972
|
[setSelectedRowKeys]);
|
|
70936
70973
|
|
|
70937
|
-
var _useMountMergeState3 =
|
|
70974
|
+
var _useMountMergeState3 = (0,useMergedState/* default */.Z)(function () {
|
|
70938
70975
|
// 如果手动模式,或者 search 不存在的时候设置为 undefined
|
|
70939
70976
|
// undefined 就不会触发首次加载
|
|
70940
70977
|
if (manualRequest || search !== false) {
|
|
@@ -70947,12 +70984,12 @@ var ProTable = function ProTable(props) {
|
|
|
70947
70984
|
formSearch = _useMountMergeState4[0],
|
|
70948
70985
|
setFormSearch = _useMountMergeState4[1];
|
|
70949
70986
|
|
|
70950
|
-
var _useMountMergeState5 =
|
|
70987
|
+
var _useMountMergeState5 = (0,useMergedState/* default */.Z)({}),
|
|
70951
70988
|
_useMountMergeState6 = slicedToArray_slicedToArray(_useMountMergeState5, 2),
|
|
70952
70989
|
proFilter = _useMountMergeState6[0],
|
|
70953
70990
|
setProFilter = _useMountMergeState6[1];
|
|
70954
70991
|
|
|
70955
|
-
var _useMountMergeState7 =
|
|
70992
|
+
var _useMountMergeState7 = (0,useMergedState/* default */.Z)({}),
|
|
70956
70993
|
_useMountMergeState8 = slicedToArray_slicedToArray(_useMountMergeState7, 2),
|
|
70957
70994
|
proSort = _useMountMergeState8[0],
|
|
70958
70995
|
setProSort = _useMountMergeState8[1];
|
|
@@ -71136,7 +71173,7 @@ var ProTable = function ProTable(props) {
|
|
|
71136
71173
|
|
|
71137
71174
|
return mergePagination(newPropsPagination, pageConfig, intl); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
71138
71175
|
}, [propsPagination, action, intl]);
|
|
71139
|
-
|
|
71176
|
+
useDeepCompareEffect(function () {
|
|
71140
71177
|
var _action$pageInfo; // request 存在且params不为空,且已经请求过数据才需要设置。
|
|
71141
71178
|
|
|
71142
71179
|
|
|
@@ -71165,10 +71202,10 @@ var ProTable = function ProTable(props) {
|
|
|
71165
71202
|
counter.propsRef.current = props;
|
|
71166
71203
|
/** 可编辑行的相关配置 */
|
|
71167
71204
|
|
|
71168
|
-
var editableUtils =
|
|
71205
|
+
var editableUtils = useEditableArray(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props.editable), {}, {
|
|
71169
71206
|
tableName: props.name,
|
|
71170
71207
|
getRowKey: getRowKey,
|
|
71171
|
-
childrenColumnName: (_props$expandable2 = props.expandable) === null || _props$expandable2 === void 0 ? void 0 : _props$expandable2.childrenColumnName,
|
|
71208
|
+
childrenColumnName: ((_props$expandable2 = props.expandable) === null || _props$expandable2 === void 0 ? void 0 : _props$expandable2.childrenColumnName) || 'children',
|
|
71172
71209
|
dataSource: action.dataSource || [],
|
|
71173
71210
|
setDataSource: function setDataSource(data) {
|
|
71174
71211
|
var _props$editable3, _props$editable3$onVa;
|
|
@@ -71255,7 +71292,7 @@ var ProTable = function ProTable(props) {
|
|
|
71255
71292
|
}, [tableColumn], ['render', 'renderFormItem'], 100);
|
|
71256
71293
|
/** 同步 Pagination,支持受控的 页码 和 pageSize */
|
|
71257
71294
|
|
|
71258
|
-
|
|
71295
|
+
useDeepCompareEffect(function () {
|
|
71259
71296
|
var pageInfo = action.pageInfo;
|
|
71260
71297
|
|
|
71261
71298
|
var _ref4 = propsPagination || {},
|
|
@@ -71398,7 +71435,7 @@ var ProviderWarp = function ProviderWarp(props) {
|
|
|
71398
71435
|
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
71399
71436
|
getPrefixCls = _useContext.getPrefixCls;
|
|
71400
71437
|
|
|
71401
|
-
var ErrorComponent = props.ErrorBoundary === false ? (external_React_default()).Fragment : props.ErrorBoundary ||
|
|
71438
|
+
var ErrorComponent = props.ErrorBoundary === false ? (external_React_default()).Fragment : props.ErrorBoundary || ErrorBoundary;
|
|
71402
71439
|
|
|
71403
71440
|
var _useStyle = table_es_style_useStyle(getPrefixCls('pro-table')),
|
|
71404
71441
|
wrapSSR = _useStyle.wrapSSR;
|
|
@@ -71702,10 +71739,11 @@ var DropdownButton = function DropdownButton(_ref) {
|
|
|
71702
71739
|
onClick: function onClick(params) {
|
|
71703
71740
|
return onSelect && onSelect(params.key);
|
|
71704
71741
|
},
|
|
71705
|
-
|
|
71706
|
-
return
|
|
71707
|
-
|
|
71708
|
-
|
|
71742
|
+
items: menus === null || menus === void 0 ? void 0 : menus.map(function (item) {
|
|
71743
|
+
return {
|
|
71744
|
+
label: item.name,
|
|
71745
|
+
key: item.key
|
|
71746
|
+
};
|
|
71709
71747
|
})
|
|
71710
71748
|
});
|
|
71711
71749
|
|
|
@@ -71862,7 +71900,7 @@ function EditableTable(props) {
|
|
|
71862
71900
|
editableFormRef = props.editableFormRef,
|
|
71863
71901
|
rest = objectWithoutProperties_objectWithoutProperties(props, EditableTable_excluded);
|
|
71864
71902
|
|
|
71865
|
-
var preData =
|
|
71903
|
+
var preData = usePrevious(props.value);
|
|
71866
71904
|
var actionRef = (0,external_React_.useRef)();
|
|
71867
71905
|
var formRef = (0,external_React_.useRef)(); // 设置 ref
|
|
71868
71906
|
|
|
@@ -72157,7 +72195,7 @@ function EditableTable(props) {
|
|
|
72157
72195
|
|
|
72158
72196
|
var list = (0,utils_get["default"])(changeValue, [props.name].flat(1));
|
|
72159
72197
|
var changeItem = list === null || list === void 0 ? void 0 : list.find(function (item, index) {
|
|
72160
|
-
return !
|
|
72198
|
+
return !isDeepEqualReact(item, preData === null || preData === void 0 ? void 0 : preData[index]);
|
|
72161
72199
|
});
|
|
72162
72200
|
if (!changeItem) return null;
|
|
72163
72201
|
props === null || props === void 0 ? void 0 : (_props$editable5 = props.editable) === null || _props$editable5 === void 0 ? void 0 : (_props$editable5$onVa = _props$editable5.onValuesChange) === null || _props$editable5$onVa === void 0 ? void 0 : _props$editable5$onVa.call(_props$editable5, changeItem, list);
|
|
@@ -73797,6 +73835,7 @@ function useColumns(_ref2, transformColumns) {
|
|
|
73797
73835
|
children = _ref2.children,
|
|
73798
73836
|
expandable = _ref2.expandable,
|
|
73799
73837
|
expandedKeys = _ref2.expandedKeys,
|
|
73838
|
+
columnTitle = _ref2.columnTitle,
|
|
73800
73839
|
getRowKey = _ref2.getRowKey,
|
|
73801
73840
|
onTriggerExpand = _ref2.onTriggerExpand,
|
|
73802
73841
|
expandIcon = _ref2.expandIcon,
|
|
@@ -73850,7 +73889,7 @@ function useColumns(_ref2, transformColumns) {
|
|
|
73850
73889
|
var expandColumn = (_expandColumn = {}, defineProperty_defineProperty(_expandColumn, INTERNAL_COL_DEFINE, {
|
|
73851
73890
|
className: "".concat(prefixCls, "-expand-icon-col"),
|
|
73852
73891
|
columnType: 'EXPAND_COLUMN'
|
|
73853
|
-
}), defineProperty_defineProperty(_expandColumn, "title",
|
|
73892
|
+
}), defineProperty_defineProperty(_expandColumn, "title", columnTitle), defineProperty_defineProperty(_expandColumn, "fixed", fixedColumn), defineProperty_defineProperty(_expandColumn, "className", "".concat(prefixCls, "-row-expand-icon-cell")), defineProperty_defineProperty(_expandColumn, "width", columnWidth), defineProperty_defineProperty(_expandColumn, "render", function render(_, record, index) {
|
|
73854
73893
|
var rowKey = getRowKey(record, index);
|
|
73855
73894
|
var expanded = expandedKeys.has(rowKey);
|
|
73856
73895
|
var recordExpandable = rowExpandable ? rowExpandable(record) : true;
|
|
@@ -74864,6 +74903,7 @@ function Table_Table(props) {
|
|
|
74864
74903
|
defaultExpandedRowKeys = expandableConfig.defaultExpandedRowKeys,
|
|
74865
74904
|
defaultExpandAllRows = expandableConfig.defaultExpandAllRows,
|
|
74866
74905
|
expandedRowRender = expandableConfig.expandedRowRender,
|
|
74906
|
+
columnTitle = expandableConfig.columnTitle,
|
|
74867
74907
|
onExpand = expandableConfig.onExpand,
|
|
74868
74908
|
onExpandedRowsChange = expandableConfig.onExpandedRowsChange,
|
|
74869
74909
|
expandRowByClick = expandableConfig.expandRowByClick,
|
|
@@ -74952,6 +74992,7 @@ function Table_Table(props) {
|
|
|
74952
74992
|
|
|
74953
74993
|
var _useColumns = hooks_useColumns(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, props), expandableConfig), {}, {
|
|
74954
74994
|
expandable: !!expandedRowRender,
|
|
74995
|
+
columnTitle: columnTitle,
|
|
74955
74996
|
expandedKeys: mergedExpandedKeys,
|
|
74956
74997
|
getRowKey: getRowKey,
|
|
74957
74998
|
// https://github.com/ant-design/ant-design/issues/23894
|
|
@@ -77398,7 +77439,7 @@ function statisticToken(token) {
|
|
|
77398
77439
|
};
|
|
77399
77440
|
}
|
|
77400
77441
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
|
|
77401
|
-
/* harmony default export */ var version = ('5.0.0-experimental.
|
|
77442
|
+
/* harmony default export */ var version = ('5.0.0-experimental.15');
|
|
77402
77443
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
|
|
77403
77444
|
/* eslint import/no-unresolved: 0 */
|
|
77404
77445
|
// @ts-ignore
|
|
@@ -77472,8 +77513,7 @@ var seedToken = extends_extends(extends_extends({}, defaultPresetColors), {
|
|
|
77472
77513
|
|
|
77473
77514
|
function genColorMapToken(seed, _ref) {
|
|
77474
77515
|
var generateColorPalettes = _ref.generateColorPalettes,
|
|
77475
|
-
|
|
77476
|
-
generateBgPalettes = _ref.generateBgPalettes;
|
|
77516
|
+
generateNeutralColorPalettes = _ref.generateNeutralColorPalettes;
|
|
77477
77517
|
var colorSuccessBase = seed.colorSuccess,
|
|
77478
77518
|
colorWarningBase = seed.colorWarning,
|
|
77479
77519
|
colorErrorBase = seed.colorError,
|
|
@@ -77486,9 +77526,8 @@ function genColorMapToken(seed, _ref) {
|
|
|
77486
77526
|
var warningColors = generateColorPalettes(colorWarningBase);
|
|
77487
77527
|
var errorColors = generateColorPalettes(colorErrorBase);
|
|
77488
77528
|
var infoColors = generateColorPalettes(colorInfoBase);
|
|
77489
|
-
var
|
|
77490
|
-
|
|
77491
|
-
return extends_extends(extends_extends(extends_extends({}, bgColors), textColors), {
|
|
77529
|
+
var neutralColors = generateNeutralColorPalettes(colorBgBase, colorTextBase);
|
|
77530
|
+
return extends_extends(extends_extends({}, neutralColors), {
|
|
77492
77531
|
colorPrimaryBg: primaryColors[1],
|
|
77493
77532
|
colorPrimaryBgHover: primaryColors[2],
|
|
77494
77533
|
colorPrimaryBorder: primaryColors[3],
|
|
@@ -77539,7 +77578,7 @@ function genColorMapToken(seed, _ref) {
|
|
|
77539
77578
|
colorInfoTextHover: infoColors[5],
|
|
77540
77579
|
colorInfoText: infoColors[6],
|
|
77541
77580
|
colorInfoTextActive: infoColors[7],
|
|
77542
|
-
colorBgMask:
|
|
77581
|
+
colorBgMask: neutralColors.colorTextTertiary,
|
|
77543
77582
|
colorBgSpotlight: new TinyColor('#000').setAlpha(0.85).toRgbString()
|
|
77544
77583
|
});
|
|
77545
77584
|
}
|
|
@@ -77637,8 +77676,13 @@ var generateColorPalettes = function generateColorPalettes(baseColor) {
|
|
|
77637
77676
|
9: colors[8]
|
|
77638
77677
|
};
|
|
77639
77678
|
};
|
|
77640
|
-
var
|
|
77679
|
+
var generateNeutralColorPalettes = function generateNeutralColorPalettes(bgBaseColor, textBaseColor) {
|
|
77641
77680
|
return {
|
|
77681
|
+
colorText: getAlphaColor(textBaseColor, 0.85),
|
|
77682
|
+
// v5 should be 0.65
|
|
77683
|
+
colorTextSecondary: getAlphaColor(textBaseColor, 0.45),
|
|
77684
|
+
colorTextTertiary: getAlphaColor(textBaseColor, 0.45),
|
|
77685
|
+
colorTextQuaternary: getAlphaColor(textBaseColor, 0.25),
|
|
77642
77686
|
colorFill: getAlphaColor(textBaseColor, 0.06),
|
|
77643
77687
|
colorFillSecondary: getAlphaColor(textBaseColor, 0.04),
|
|
77644
77688
|
colorFillTertiary: getAlphaColor(textBaseColor, 0.03),
|
|
@@ -77651,14 +77695,6 @@ var generateBgPalettes = function generateBgPalettes(bgBaseColor, textBaseColor)
|
|
|
77651
77695
|
colorSplit: getAlphaColor(textBaseColor, 0.06)
|
|
77652
77696
|
};
|
|
77653
77697
|
};
|
|
77654
|
-
var generateTextAlphaPalettes = function generateTextAlphaPalettes(textBaseColor) {
|
|
77655
|
-
return {
|
|
77656
|
-
colorText: getAlphaColor(textBaseColor, 0.85),
|
|
77657
|
-
colorTextSecondary: getAlphaColor(textBaseColor, 0.65),
|
|
77658
|
-
colorTextTertiary: getAlphaColor(textBaseColor, 0.45),
|
|
77659
|
-
colorTextQuaternary: getAlphaColor(textBaseColor, 0.25)
|
|
77660
|
-
};
|
|
77661
|
-
};
|
|
77662
77698
|
;// CONCATENATED MODULE: ./node_modules/antd/es/theme/themes/default/index.js
|
|
77663
77699
|
|
|
77664
77700
|
|
|
@@ -77687,8 +77723,7 @@ function derivative(token) {
|
|
|
77687
77723
|
colorTextBase: colorTextBase
|
|
77688
77724
|
}), {
|
|
77689
77725
|
generateColorPalettes: generateColorPalettes,
|
|
77690
|
-
|
|
77691
|
-
generateTextAlphaPalettes: generateTextAlphaPalettes
|
|
77726
|
+
generateNeutralColorPalettes: generateNeutralColorPalettes
|
|
77692
77727
|
})), genCommonMapToken(token));
|
|
77693
77728
|
}
|
|
77694
77729
|
;// CONCATENATED MODULE: ./node_modules/antd/es/theme/util/alias.js
|
|
@@ -77747,7 +77782,7 @@ function formatToken(derivativeToken) {
|
|
|
77747
77782
|
colorTextDisabled: mergedToken.colorTextQuaternary,
|
|
77748
77783
|
colorTextHeading: mergedToken.colorText,
|
|
77749
77784
|
colorTextLabel: mergedToken.colorTextSecondary,
|
|
77750
|
-
colorTextDescription: mergedToken.
|
|
77785
|
+
colorTextDescription: mergedToken.colorTextTertiary,
|
|
77751
77786
|
colorHighlight: mergedToken.colorError,
|
|
77752
77787
|
colorIcon: mergedToken.colorTextTertiary,
|
|
77753
77788
|
colorIconHover: mergedToken.colorText,
|
|
@@ -84624,11 +84659,11 @@ var genSizeLargeButtonStyle = function genSizeLargeButtonStyle(token) {
|
|
|
84624
84659
|
|
|
84625
84660
|
/* harmony default export */ var button_style = (genComponentStyleHook('Button', function (token) {
|
|
84626
84661
|
var controlTmpOutline = token.controlTmpOutline,
|
|
84627
|
-
|
|
84628
|
-
|
|
84662
|
+
colorFillQuaternary = token.colorFillQuaternary,
|
|
84663
|
+
colorFillTertiary = token.colorFillTertiary;
|
|
84629
84664
|
var buttonToken = statistic_merge(token, {
|
|
84630
|
-
colorBgTextHover:
|
|
84631
|
-
colorBgTextActive:
|
|
84665
|
+
colorBgTextHover: colorFillQuaternary,
|
|
84666
|
+
colorBgTextActive: colorFillTertiary,
|
|
84632
84667
|
colorOutlineDefault: controlTmpOutline
|
|
84633
84668
|
});
|
|
84634
84669
|
return [// Shared
|
|
@@ -85551,6 +85586,7 @@ var dropdown_button_DropdownButton = function DropdownButton(props) {
|
|
|
85551
85586
|
var customizePrefixCls = props.prefixCls,
|
|
85552
85587
|
_props$type = props.type,
|
|
85553
85588
|
type = _props$type === void 0 ? 'default' : _props$type,
|
|
85589
|
+
danger = props.danger,
|
|
85554
85590
|
disabled = props.disabled,
|
|
85555
85591
|
loading = props.loading,
|
|
85556
85592
|
onClick = props.onClick,
|
|
@@ -85577,7 +85613,7 @@ var dropdown_button_DropdownButton = function DropdownButton(props) {
|
|
|
85577
85613
|
overlayClassName = props.overlayClassName,
|
|
85578
85614
|
overlayStyle = props.overlayStyle,
|
|
85579
85615
|
destroyPopupOnHide = props.destroyPopupOnHide,
|
|
85580
|
-
restProps = dropdown_button_rest(props, ["prefixCls", "type", "disabled", "loading", "onClick", "htmlType", "children", "className", "overlay", "trigger", "align", "visible", "onVisibleChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide"]);
|
|
85616
|
+
restProps = dropdown_button_rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "overlay", "trigger", "align", "visible", "onVisibleChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide"]);
|
|
85581
85617
|
|
|
85582
85618
|
var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
|
85583
85619
|
var buttonPrefixCls = "".concat(prefixCls, "-button");
|
|
@@ -85613,6 +85649,7 @@ var dropdown_button_DropdownButton = function DropdownButton(props) {
|
|
|
85613
85649
|
|
|
85614
85650
|
var leftButton = /*#__PURE__*/external_React_.createElement(es_button, {
|
|
85615
85651
|
type: type,
|
|
85652
|
+
danger: danger,
|
|
85616
85653
|
disabled: disabled,
|
|
85617
85654
|
loading: loading,
|
|
85618
85655
|
onClick: onClick,
|
|
@@ -85622,6 +85659,7 @@ var dropdown_button_DropdownButton = function DropdownButton(props) {
|
|
|
85622
85659
|
}, children);
|
|
85623
85660
|
var rightButton = /*#__PURE__*/external_React_.createElement(es_button, {
|
|
85624
85661
|
type: type,
|
|
85662
|
+
danger: danger,
|
|
85625
85663
|
icon: icon
|
|
85626
85664
|
});
|
|
85627
85665
|
|
|
@@ -88618,7 +88656,7 @@ var getHorizontalStyle = function getHorizontalStyle(token) {
|
|
|
88618
88656
|
var componentCls = token.componentCls,
|
|
88619
88657
|
motionDurationSlow = token.motionDurationSlow,
|
|
88620
88658
|
menuHorizontalHeight = token.menuHorizontalHeight,
|
|
88621
|
-
|
|
88659
|
+
colorSplit = token.colorSplit,
|
|
88622
88660
|
lineWidth = token.lineWidth,
|
|
88623
88661
|
lineType = token.lineType,
|
|
88624
88662
|
menuItemPaddingInline = token.menuItemPaddingInline,
|
|
@@ -88626,7 +88664,7 @@ var getHorizontalStyle = function getHorizontalStyle(token) {
|
|
|
88626
88664
|
return defineProperty_defineProperty({}, "".concat(componentCls, "-horizontal"), (_$concat = {
|
|
88627
88665
|
lineHeight: "".concat(menuHorizontalHeight, "px"),
|
|
88628
88666
|
border: 0,
|
|
88629
|
-
borderBottom: "".concat(lineWidth, "px ").concat(lineType, " ").concat(
|
|
88667
|
+
borderBottom: "".concat(lineWidth, "px ").concat(lineType, " ").concat(colorSplit),
|
|
88630
88668
|
boxShadow: 'none',
|
|
88631
88669
|
'&::after': {
|
|
88632
88670
|
display: 'block',
|
|
@@ -93617,17 +93655,17 @@ function BaseProList(props) {
|
|
|
93617
93655
|
/* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
|
|
93618
93656
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
93619
93657
|
var version_version = {
|
|
93620
|
-
"@ant-design/pro-card": "2.0.0-experimental.
|
|
93621
|
-
"@ant-design/pro-components": "2.0.0-experimental.
|
|
93622
|
-
"@ant-design/pro-descriptions": "2.0.0-experimental.
|
|
93623
|
-
"@ant-design/pro-field": "2.0.0-experimental.
|
|
93624
|
-
"@ant-design/pro-form": "2.0.0-experimental.
|
|
93625
|
-
"@ant-design/pro-layout": "7.0.0-experimental.
|
|
93626
|
-
"@ant-design/pro-list": "2.0.0-experimental.
|
|
93658
|
+
"@ant-design/pro-card": "2.0.0-experimental.8",
|
|
93659
|
+
"@ant-design/pro-components": "2.0.0-experimental.8",
|
|
93660
|
+
"@ant-design/pro-descriptions": "2.0.0-experimental.8",
|
|
93661
|
+
"@ant-design/pro-field": "2.0.0-experimental.8",
|
|
93662
|
+
"@ant-design/pro-form": "2.0.0-experimental.8",
|
|
93663
|
+
"@ant-design/pro-layout": "7.0.0-experimental.8",
|
|
93664
|
+
"@ant-design/pro-list": "2.0.0-experimental.8",
|
|
93627
93665
|
"@ant-design/pro-provider": "2.0.0-experimental.4",
|
|
93628
|
-
"@ant-design/pro-skeleton": "2.0.0-experimental.
|
|
93629
|
-
"@ant-design/pro-table": "3.0.0-experimental.
|
|
93630
|
-
"@ant-design/pro-utils": "2.0.0-experimental.
|
|
93666
|
+
"@ant-design/pro-skeleton": "2.0.0-experimental.5",
|
|
93667
|
+
"@ant-design/pro-table": "3.0.0-experimental.8",
|
|
93668
|
+
"@ant-design/pro-utils": "2.0.0-experimental.8"
|
|
93631
93669
|
};
|
|
93632
93670
|
;// CONCATENATED MODULE: ./packages/components/src/index.tsx
|
|
93633
93671
|
|