@zat-design/sisyphus-react 3.2.2-beta.12 → 3.2.2-beta.13
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/index.esm.css +4 -4
- package/es/ProDrawerForm/index.js +1 -15
- package/es/ProEditTable/style/index.less +8 -6
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
- package/es/locale/en_US.d.ts +1 -0
- package/es/locale/en_US.js +2 -1
- package/es/locale/zh_CN.d.ts +1 -0
- package/es/locale/zh_CN.js +2 -1
- package/lib/ProDrawerForm/index.js +0 -14
- package/lib/ProEditTable/style/index.less +8 -6
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
- package/lib/locale/en_US.d.ts +1 -0
- package/lib/locale/en_US.js +2 -1
- package/lib/locale/zh_CN.d.ts +1 -0
- package/lib/locale/zh_CN.js +2 -1
- package/package.json +1 -1
- package/typings.d.ts +0 -6
package/dist/index.esm.css
CHANGED
|
@@ -4065,6 +4065,10 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4065
4065
|
line-height: 1;
|
|
4066
4066
|
content: "*";
|
|
4067
4067
|
}
|
|
4068
|
+
.pro-edit-table .ant-table-scroll-horizontal .ant-table-cell-fix-right-first::after {
|
|
4069
|
+
-webkit-box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
4070
|
+
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
4071
|
+
}
|
|
4068
4072
|
.pro-edit-table .ant-table-content > table .ant-table-summary {
|
|
4069
4073
|
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
4070
4074
|
color: var(--zaui-text, #343434);
|
|
@@ -4074,10 +4078,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4074
4078
|
.pro-edit-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-right {
|
|
4075
4079
|
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
4076
4080
|
}
|
|
4077
|
-
.pro-edit-table .ant-table-content > table .ant-table-cell-fix-right-first::after {
|
|
4078
|
-
-webkit-box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
4079
|
-
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
4080
|
-
}
|
|
4081
4081
|
.pro-edit-table .ant-table-content > table th.ant-table-selection-column {
|
|
4082
4082
|
width: 48px;
|
|
4083
4083
|
}
|
|
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
var _locale$ProDrawerForm3;
|
|
4
4
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
-
import { forwardRef,
|
|
5
|
+
import { forwardRef, useImperativeHandle, useMemo } from 'react';
|
|
6
6
|
import { ProDrawer, ProModal } from './components';
|
|
7
7
|
import ProForm from '../ProForm';
|
|
8
8
|
import { transformBySize } from './utils';
|
|
@@ -50,20 +50,6 @@ var ProDrawerForm = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50
50
|
Modal: ProModal
|
|
51
51
|
}[showType];
|
|
52
52
|
}, [showType]);
|
|
53
|
-
var removeStyle = function removeStyle() {
|
|
54
|
-
var styleTags = document.getElementsByTagName('style');
|
|
55
|
-
for (var i = 0; i < styleTags.length; i++) {
|
|
56
|
-
var rcUtilKey = styleTags[i].getAttribute('rc-util-key');
|
|
57
|
-
if ((rcUtilKey === null || rcUtilKey === void 0 ? void 0 : rcUtilKey.indexOf('rc-util-locker')) === 0) {
|
|
58
|
-
styleTags[i].remove();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
useEffect(function () {
|
|
63
|
-
if (!visible) {
|
|
64
|
-
removeStyle();
|
|
65
|
-
}
|
|
66
|
-
}, [visible]);
|
|
67
53
|
return _jsx(_Fragment, {
|
|
68
54
|
children: visible ? _jsx(Com, _objectSpread(_objectSpread({}, props), {}, {
|
|
69
55
|
isView: isView,
|
|
@@ -133,6 +133,14 @@
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
.@{ant-prefix}-table-scroll-horizontal {
|
|
137
|
+
.@{ant-prefix}-table-cell-fix-right-first {
|
|
138
|
+
&::after {
|
|
139
|
+
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
136
144
|
.@{ant-prefix}-table-content {
|
|
137
145
|
>table {
|
|
138
146
|
.@{ant-prefix}-table-summary {
|
|
@@ -147,12 +155,6 @@
|
|
|
147
155
|
}
|
|
148
156
|
}
|
|
149
157
|
|
|
150
|
-
.@{ant-prefix}-table-cell-fix-right-first {
|
|
151
|
-
&::after {
|
|
152
|
-
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
158
|
th.@{ant-prefix}-table-selection-column {
|
|
157
159
|
width: 48px;
|
|
158
160
|
}
|
|
@@ -5,6 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
5
5
|
import { useDebounceFn, usePrevious, useRequest } from 'ahooks';
|
|
6
6
|
import { isEqual } from 'lodash';
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
|
+
import locale, { formatMessage } from '../../../../../locale';
|
|
8
9
|
var defaultPage = {
|
|
9
10
|
pageNum: 1,
|
|
10
11
|
pageSize: 10
|
|
@@ -128,7 +129,11 @@ export function useRequestList(service, options, useRequestOptions) {
|
|
|
128
129
|
onShowSizeChange: onChange,
|
|
129
130
|
hideOnSinglePage: page.pageSize === 10,
|
|
130
131
|
showTotal: function showTotal(total) {
|
|
131
|
-
|
|
132
|
+
var _locale$ProEditTable;
|
|
133
|
+
if (!total) return;
|
|
134
|
+
return formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProEditTable = locale.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
|
|
135
|
+
total: total
|
|
136
|
+
});
|
|
132
137
|
}
|
|
133
138
|
} : false
|
|
134
139
|
});
|
package/es/locale/en_US.d.ts
CHANGED
package/es/locale/en_US.js
CHANGED
package/es/locale/zh_CN.d.ts
CHANGED
package/es/locale/zh_CN.js
CHANGED
|
@@ -57,20 +57,6 @@ var ProDrawerForm = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
57
57
|
Modal: _components.ProModal
|
|
58
58
|
}[showType];
|
|
59
59
|
}, [showType]);
|
|
60
|
-
var removeStyle = function removeStyle() {
|
|
61
|
-
var styleTags = document.getElementsByTagName('style');
|
|
62
|
-
for (var i = 0; i < styleTags.length; i++) {
|
|
63
|
-
var rcUtilKey = styleTags[i].getAttribute('rc-util-key');
|
|
64
|
-
if ((rcUtilKey === null || rcUtilKey === void 0 ? void 0 : rcUtilKey.indexOf('rc-util-locker')) === 0) {
|
|
65
|
-
styleTags[i].remove();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
(0, _react.useEffect)(function () {
|
|
70
|
-
if (!visible) {
|
|
71
|
-
removeStyle();
|
|
72
|
-
}
|
|
73
|
-
}, [visible]);
|
|
74
60
|
return (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
75
61
|
children: visible ? (0, _jsxRuntime.jsx)(Com, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
76
62
|
isView: isView,
|
|
@@ -133,6 +133,14 @@
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
.@{ant-prefix}-table-scroll-horizontal {
|
|
137
|
+
.@{ant-prefix}-table-cell-fix-right-first {
|
|
138
|
+
&::after {
|
|
139
|
+
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
136
144
|
.@{ant-prefix}-table-content {
|
|
137
145
|
>table {
|
|
138
146
|
.@{ant-prefix}-table-summary {
|
|
@@ -147,12 +155,6 @@
|
|
|
147
155
|
}
|
|
148
156
|
}
|
|
149
157
|
|
|
150
|
-
.@{ant-prefix}-table-cell-fix-right-first {
|
|
151
|
-
&::after {
|
|
152
|
-
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
158
|
th.@{ant-prefix}-table-selection-column {
|
|
157
159
|
width: 48px;
|
|
158
160
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
@@ -13,6 +14,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
14
|
var _ahooks = require("ahooks");
|
|
14
15
|
var _lodash = require("lodash");
|
|
15
16
|
var _react = require("react");
|
|
17
|
+
var _locale = _interopRequireWildcard(require("../../../../../locale"));
|
|
16
18
|
var defaultPage = {
|
|
17
19
|
pageNum: 1,
|
|
18
20
|
pageSize: 10
|
|
@@ -136,7 +138,11 @@ function useRequestList(service, options, useRequestOptions) {
|
|
|
136
138
|
onShowSizeChange: onChange,
|
|
137
139
|
hideOnSinglePage: page.pageSize === 10,
|
|
138
140
|
showTotal: function showTotal(total) {
|
|
139
|
-
|
|
141
|
+
var _locale$ProEditTable;
|
|
142
|
+
if (!total) return;
|
|
143
|
+
return (0, _locale.formatMessage)(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProEditTable = _locale.default.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
|
|
144
|
+
total: total
|
|
145
|
+
});
|
|
140
146
|
}
|
|
141
147
|
} : false
|
|
142
148
|
});
|
package/lib/locale/en_US.d.ts
CHANGED
package/lib/locale/en_US.js
CHANGED
|
@@ -106,7 +106,8 @@ var _default = exports.default = {
|
|
|
106
106
|
},
|
|
107
107
|
ProModalSelect: {
|
|
108
108
|
checkMsg: 'Please check the box first',
|
|
109
|
-
select: 'Please select'
|
|
109
|
+
select: 'Please select',
|
|
110
|
+
total: '{total} items in total'
|
|
110
111
|
},
|
|
111
112
|
ProSelect: {
|
|
112
113
|
checkMsg: 'Please check first',
|
package/lib/locale/zh_CN.d.ts
CHANGED
package/lib/locale/zh_CN.js
CHANGED
package/package.json
CHANGED
package/typings.d.ts
CHANGED
|
@@ -2,12 +2,6 @@ declare module '*.css';
|
|
|
2
2
|
declare module '*.less';
|
|
3
3
|
declare module '*.png';
|
|
4
4
|
declare module '*.svg';
|
|
5
|
-
// declare module 'zat-design-pro-component';
|
|
6
|
-
declare module 'zat-design-pro-component/lib/tokens' {
|
|
7
|
-
const tokens: Record<string, string>;
|
|
8
|
-
export default tokens;
|
|
9
|
-
}
|
|
10
|
-
// declare module '@zat-design-pro-component/utils';
|
|
11
5
|
declare interface EventCenter {
|
|
12
6
|
subscribe: (eventName: string, callback: Function) => void;
|
|
13
7
|
publish: (eventName: string, data?: any) => void;
|