@ant-design/pro-components 2.3.38 → 2.3.40
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 +9 -13
- package/dist/components.min.js +1 -1
- package/es/version.js +2 -2
- 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,
|
|
@@ -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", {
|
|
@@ -47536,7 +47535,6 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
|
|
|
47536
47535
|
paddingInlineStart: 10
|
|
47537
47536
|
})), defineProperty_defineProperty(_$concat5, "&&-collapsed", (_collapsed = {}, defineProperty_defineProperty(_collapsed, "".concat(token.antCls, "-menu-item, \n ").concat(token.antCls, "-menu-item-group > ").concat(token.antCls, "-menu-item-group-list > ").concat(token.antCls, "-menu-item, \n ").concat(token.antCls, "-menu-item-group > ").concat(token.antCls, "-menu-item-group-list > ").concat(token.antCls, "-menu-submenu > ").concat(token.antCls, "-menu-submenu-title, \n ").concat(token.antCls, "-menu-submenu > ").concat(token.antCls, "-menu-submenu-title"), {
|
|
47538
47537
|
paddingInline: '0 !important',
|
|
47539
|
-
height: 'auto !important',
|
|
47540
47538
|
marginBlock: '8px !important'
|
|
47541
47539
|
}), defineProperty_defineProperty(_collapsed, "".concat(token.antCls, "-menu-item-group > ").concat(token.antCls, "-menu-item-group-list > ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title, \n ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title"), {
|
|
47542
47540
|
backgroundColor: (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorBgMenuItemSelected,
|
|
@@ -52731,7 +52729,7 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
|
|
|
52731
52729
|
zIndex: 0,
|
|
52732
52730
|
height: '100%',
|
|
52733
52731
|
width: '100%',
|
|
52734
|
-
|
|
52732
|
+
background: token === null || token === void 0 ? void 0 : (_token$layout34 = token.layout) === null || _token$layout34 === void 0 ? void 0 : _token$layout34.bgLayout
|
|
52735
52733
|
}), _$concat12)), defineProperty_defineProperty(_token$proComponentsC, "".concat(token.antCls, "-menu-submenu-popup"), {
|
|
52736
52734
|
backgroundColor: 'rgba(255, 255, 255, 0.42)',
|
|
52737
52735
|
'-webkit-backdrop-filter': 'blur(8px)',
|
|
@@ -58865,13 +58863,11 @@ var ProTable = function ProTable(props) {
|
|
|
58865
58863
|
(0,external_React_.useMemo)(function () {
|
|
58866
58864
|
var _action$dataSource;
|
|
58867
58865
|
if ((_action$dataSource = action.dataSource) === null || _action$dataSource === void 0 ? void 0 : _action$dataSource.length) {
|
|
58868
|
-
var newCache = new Map();
|
|
58869
58866
|
var keys = action.dataSource.map(function (data) {
|
|
58870
58867
|
var dataRowKey = getRowKey(data, -1);
|
|
58871
|
-
|
|
58868
|
+
preserveRecordsRef.current.set(dataRowKey, data);
|
|
58872
58869
|
return dataRowKey;
|
|
58873
58870
|
});
|
|
58874
|
-
preserveRecordsRef.current = newCache;
|
|
58875
58871
|
return keys;
|
|
58876
58872
|
}
|
|
58877
58873
|
return [];
|
|
@@ -80912,11 +80908,11 @@ function BaseProList(props) {
|
|
|
80912
80908
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
80913
80909
|
var version_version = {
|
|
80914
80910
|
"@ant-design/pro-card": "2.1.1",
|
|
80915
|
-
"@ant-design/pro-components": "2.3.
|
|
80911
|
+
"@ant-design/pro-components": "2.3.39",
|
|
80916
80912
|
"@ant-design/pro-descriptions": "2.0.33",
|
|
80917
80913
|
"@ant-design/pro-field": "2.1.25",
|
|
80918
80914
|
"@ant-design/pro-form": "2.4.1",
|
|
80919
|
-
"@ant-design/pro-layout": "7.3.
|
|
80915
|
+
"@ant-design/pro-layout": "7.3.3",
|
|
80920
80916
|
"@ant-design/pro-list": "2.0.34",
|
|
80921
80917
|
"@ant-design/pro-provider": "2.1.1",
|
|
80922
80918
|
"@ant-design/pro-skeleton": "2.0.6",
|