@ant-design/pro-components 2.3.39 → 2.3.41
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 +22 -25
- package/dist/components.min.js +1 -1
- package/es/version.js +11 -11
- package/lib/index.d.ts +11 -0
- package/lib/index.js +126 -0
- package/lib/version.d.ts +13 -0
- package/lib/version.js +20 -0
- package/package.json +14 -12
package/dist/components.js
CHANGED
|
@@ -21171,7 +21171,7 @@ var CheckCard = function CheckCard(props) {
|
|
|
21171
21171
|
bordered = _checkCardProps$borde === void 0 ? true : _checkCardProps$borde,
|
|
21172
21172
|
checked = checkCardProps.checked;
|
|
21173
21173
|
var sizeCls = getSizeCls(size);
|
|
21174
|
-
var classString = classnames_default()(prefixCls, className, hashId, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-loading"), cardLoading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-checked"), checked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-multiple"), multiple), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-bordered"), bordered),
|
|
21174
|
+
var classString = classnames_default()(prefixCls, className, hashId, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-loading"), cardLoading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-checked"), checked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-multiple"), multiple), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-bordered"), bordered), _classNames));
|
|
21175
21175
|
var metaDom = (0,external_React_.useMemo)(function () {
|
|
21176
21176
|
if (cardLoading) {
|
|
21177
21177
|
return (0,jsx_runtime.jsx)(CardLoading, {
|
|
@@ -21608,9 +21608,7 @@ var Statistic = function Statistic(props) {
|
|
|
21608
21608
|
var iconClass = classnames_default()("".concat(prefixCls, "-icon"), hashId);
|
|
21609
21609
|
var wrapperClass = classnames_default()("".concat(prefixCls, "-wrapper"), hashId);
|
|
21610
21610
|
var contentClass = classnames_default()("".concat(prefixCls, "-content"), hashId);
|
|
21611
|
-
var statisticClassName = classnames_default()((_classNames = {
|
|
21612
|
-
hashId: hashId
|
|
21613
|
-
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-layout-").concat(layout), layout), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-trend-").concat(trend), trend), _classNames));
|
|
21611
|
+
var statisticClassName = classnames_default()(hashId, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-layout-").concat(layout), layout), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-trend-").concat(trend), trend), _classNames));
|
|
21614
21612
|
var tipDom = tip && (0,jsx_runtime.jsx)(external_antd_.Tooltip, {
|
|
21615
21613
|
title: tip,
|
|
21616
21614
|
children: (0,jsx_runtime.jsx)(icons_QuestionCircleOutlined, {
|
|
@@ -31490,7 +31488,8 @@ var SearchSelect = function SearchSelect(props, ref) {
|
|
|
31490
31488
|
onSearch = props.onSearch,
|
|
31491
31489
|
_onFocus = props.onFocus,
|
|
31492
31490
|
_onChange = props.onChange,
|
|
31493
|
-
|
|
31491
|
+
_props$autoClearSearc = props.autoClearSearchValue,
|
|
31492
|
+
autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc,
|
|
31494
31493
|
_props$searchOnFocus = props.searchOnFocus,
|
|
31495
31494
|
searchOnFocus = _props$searchOnFocus === void 0 ? false : _props$searchOnFocus,
|
|
31496
31495
|
_props$resetAfterSele = props.resetAfterSelect,
|
|
@@ -41538,7 +41537,7 @@ var genLoginFormStyle = function genLoginFormStyle(token) {
|
|
|
41538
41537
|
flexDirection: 'column',
|
|
41539
41538
|
height: '100%',
|
|
41540
41539
|
paddingInline: 32,
|
|
41541
|
-
paddingBlock:
|
|
41540
|
+
paddingBlock: 24,
|
|
41542
41541
|
overflow: 'auto',
|
|
41543
41542
|
background: 'inherit'
|
|
41544
41543
|
},
|
|
@@ -41788,7 +41787,7 @@ var style_genLoginFormStyle = function genLoginFormStyle(token) {
|
|
|
41788
41787
|
textAlign: 'start'
|
|
41789
41788
|
}
|
|
41790
41789
|
}
|
|
41791
|
-
}), defineProperty_defineProperty(_ref, "@media (max-width: ".concat(token.screenMDMin), defineProperty_defineProperty({}, token.componentCls, {
|
|
41790
|
+
}), defineProperty_defineProperty(_ref, "@media (max-width: ".concat(token.screenMDMin, "px)"), defineProperty_defineProperty({}, token.componentCls, {
|
|
41792
41791
|
flexDirection: 'column-reverse',
|
|
41793
41792
|
background: 'none !important',
|
|
41794
41793
|
'&-notice': {
|
|
@@ -41800,7 +41799,7 @@ var style_genLoginFormStyle = function genLoginFormStyle(token) {
|
|
|
41800
41799
|
width: '100%'
|
|
41801
41800
|
}
|
|
41802
41801
|
}
|
|
41803
|
-
})), defineProperty_defineProperty(_ref, "@media (min-width: ".concat(token.screenMDMin), defineProperty_defineProperty({}, token.componentCls, {
|
|
41802
|
+
})), defineProperty_defineProperty(_ref, "@media (min-width: ".concat(token.screenMDMin, "px)"), defineProperty_defineProperty({}, token.componentCls, {
|
|
41804
41803
|
'&-container': {
|
|
41805
41804
|
paddingInline: 0,
|
|
41806
41805
|
paddingBlockStart: 128,
|
|
@@ -41809,7 +41808,7 @@ var style_genLoginFormStyle = function genLoginFormStyle(token) {
|
|
|
41809
41808
|
backgroundPosition: 'center 110px',
|
|
41810
41809
|
backgroundSize: '100%'
|
|
41811
41810
|
}
|
|
41812
|
-
})), defineProperty_defineProperty(_ref, "@media (max-width: ".concat(token.screenSM), defineProperty_defineProperty({}, token.componentCls, {
|
|
41811
|
+
})), defineProperty_defineProperty(_ref, "@media (max-width: ".concat(token.screenSM, "px)"), defineProperty_defineProperty({}, token.componentCls, {
|
|
41813
41812
|
'&-main': {
|
|
41814
41813
|
width: '95%',
|
|
41815
41814
|
maxWidth: '328px'
|
|
@@ -46535,7 +46534,7 @@ var PageContainerBase = function PageContainerBase(props) {
|
|
|
46535
46534
|
children: [fixedHeader && pageHeaderDom ?
|
|
46536
46535
|
// 在 hasHeader 且 fixedHeader 的情况下,才需要设置高度
|
|
46537
46536
|
(0,jsx_runtime.jsx)(external_antd_.Affix, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
46538
|
-
offsetTop: value.hasHeader && value.fixedHeader ? token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader :
|
|
46537
|
+
offsetTop: value.hasHeader && value.fixedHeader ? token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader : 1
|
|
46539
46538
|
}, affixProps), {}, {
|
|
46540
46539
|
className: "".concat(basePageContainer, "-affix ").concat(hashId),
|
|
46541
46540
|
children: (0,jsx_runtime.jsx)("div", {
|
|
@@ -52730,7 +52729,7 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
|
|
|
52730
52729
|
zIndex: 0,
|
|
52731
52730
|
height: '100%',
|
|
52732
52731
|
width: '100%',
|
|
52733
|
-
|
|
52732
|
+
background: token === null || token === void 0 ? void 0 : (_token$layout34 = token.layout) === null || _token$layout34 === void 0 ? void 0 : _token$layout34.bgLayout
|
|
52734
52733
|
}), _$concat12)), defineProperty_defineProperty(_token$proComponentsC, "".concat(token.antCls, "-menu-submenu-popup"), {
|
|
52735
52734
|
backgroundColor: 'rgba(255, 255, 255, 0.42)',
|
|
52736
52735
|
'-webkit-backdrop-filter': 'blur(8px)',
|
|
@@ -58864,13 +58863,11 @@ var ProTable = function ProTable(props) {
|
|
|
58864
58863
|
(0,external_React_.useMemo)(function () {
|
|
58865
58864
|
var _action$dataSource;
|
|
58866
58865
|
if ((_action$dataSource = action.dataSource) === null || _action$dataSource === void 0 ? void 0 : _action$dataSource.length) {
|
|
58867
|
-
var newCache = new Map();
|
|
58868
58866
|
var keys = action.dataSource.map(function (data) {
|
|
58869
58867
|
var dataRowKey = getRowKey(data, -1);
|
|
58870
|
-
|
|
58868
|
+
preserveRecordsRef.current.set(dataRowKey, data);
|
|
58871
58869
|
return dataRowKey;
|
|
58872
58870
|
});
|
|
58873
|
-
preserveRecordsRef.current = newCache;
|
|
58874
58871
|
return keys;
|
|
58875
58872
|
}
|
|
58876
58873
|
return [];
|
|
@@ -80910,17 +80907,17 @@ function BaseProList(props) {
|
|
|
80910
80907
|
|
|
80911
80908
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
80912
80909
|
var version_version = {
|
|
80913
|
-
"@ant-design/pro-card": "2.1.
|
|
80914
|
-
"@ant-design/pro-components": "2.3.
|
|
80915
|
-
"@ant-design/pro-descriptions": "2.0.
|
|
80916
|
-
"@ant-design/pro-field": "2.1.
|
|
80917
|
-
"@ant-design/pro-form": "2.4.
|
|
80918
|
-
"@ant-design/pro-layout": "7.3.
|
|
80919
|
-
"@ant-design/pro-list": "2.0.
|
|
80920
|
-
"@ant-design/pro-provider": "2.1.
|
|
80921
|
-
"@ant-design/pro-skeleton": "2.0.
|
|
80922
|
-
"@ant-design/pro-table": "3.2.
|
|
80923
|
-
"@ant-design/pro-utils": "2.4.
|
|
80910
|
+
"@ant-design/pro-card": "2.1.2",
|
|
80911
|
+
"@ant-design/pro-components": "2.3.40",
|
|
80912
|
+
"@ant-design/pro-descriptions": "2.0.34",
|
|
80913
|
+
"@ant-design/pro-field": "2.1.26",
|
|
80914
|
+
"@ant-design/pro-form": "2.4.2",
|
|
80915
|
+
"@ant-design/pro-layout": "7.3.4",
|
|
80916
|
+
"@ant-design/pro-list": "2.0.35",
|
|
80917
|
+
"@ant-design/pro-provider": "2.1.2",
|
|
80918
|
+
"@ant-design/pro-skeleton": "2.0.7",
|
|
80919
|
+
"@ant-design/pro-table": "3.2.2",
|
|
80920
|
+
"@ant-design/pro-utils": "2.4.2"
|
|
80924
80921
|
};
|
|
80925
80922
|
;// CONCATENATED MODULE: ./packages/components/src/index.tsx
|
|
80926
80923
|
|