@zat-design/sisyphus-react 3.2.2-beta.6 → 3.2.2-beta.8
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 +3 -3
- package/es/ProLayout/components/ProHeader/style/index.less +1 -2
- package/es/ProViewer/index.js +3 -1
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +3 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_CN.js +4 -1
- package/es/style/theme/antd.less +2 -2
- package/lib/ProLayout/components/ProHeader/style/index.less +1 -2
- package/lib/ProViewer/index.js +4 -3
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.js +4 -1
- package/lib/style/theme/antd.less +2 -2
- package/package.json +1 -1
package/dist/index.esm.css
CHANGED
|
@@ -817,7 +817,7 @@
|
|
|
817
817
|
}
|
|
818
818
|
.pro-header {
|
|
819
819
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
820
|
-
padding:
|
|
820
|
+
padding: 16px 0 0 0 !important;
|
|
821
821
|
}
|
|
822
822
|
.pro-header.pro-header-no-back.pro-header-has-describe .pro-header-top {
|
|
823
823
|
padding-left: var(--zaui-space-size-md, 16px);
|
|
@@ -5072,13 +5072,13 @@ input[type='button'] {
|
|
|
5072
5072
|
.ant-table table .ant-table-tbody > tr > td,
|
|
5073
5073
|
.ant-table table .ant-table tfoot > tr > th,
|
|
5074
5074
|
.ant-table table .ant-table tfoot > tr > td {
|
|
5075
|
-
padding: calc(
|
|
5075
|
+
padding: calc(4px + var(--zaui-size) * 8px);
|
|
5076
5076
|
}
|
|
5077
5077
|
.ant-table.ant-table-scroll-horizontal table .ant-table-thead > tr > th,
|
|
5078
5078
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody > tr > td,
|
|
5079
5079
|
.ant-table.ant-table-scroll-horizontal table .ant-table tfoot > tr > th,
|
|
5080
5080
|
.ant-table.ant-table-scroll-horizontal table .ant-table tfoot > tr > td {
|
|
5081
|
-
padding: calc(
|
|
5081
|
+
padding: calc(4px + var(--zaui-size) * 8px);
|
|
5082
5082
|
}
|
|
5083
5083
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) {
|
|
5084
5084
|
background-color: var(--zaui-table-strip-bg, #fafafa);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.pro-header {
|
|
4
4
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
5
|
-
padding :
|
|
5
|
+
padding : 16px 0 0 0 !important;
|
|
6
6
|
|
|
7
7
|
&.pro-header-no-back.pro-header-has-describe {
|
|
8
8
|
.pro-header-top {
|
|
@@ -232,7 +232,6 @@
|
|
|
232
232
|
|
|
233
233
|
ul {
|
|
234
234
|
height : 0;
|
|
235
|
-
// padding : 0;
|
|
236
235
|
overflow : hidden;
|
|
237
236
|
}
|
|
238
237
|
}
|
package/es/ProViewer/index.js
CHANGED
|
@@ -8,10 +8,12 @@ import _Button from "antd/es/button";
|
|
|
8
8
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
9
9
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
10
10
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
11
|
+
var _locale$ProViewer;
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
/* eslint-disable jsx-a11y/iframe-has-title */
|
|
13
14
|
import { useSetState } from 'ahooks';
|
|
14
15
|
import React, { useEffect, useRef } from 'react';
|
|
16
|
+
import locale from '../locale';
|
|
15
17
|
// 用于解析word | excel
|
|
16
18
|
var officeApp = 'https://view.officeapps.live.com/op/view.aspx?src=';
|
|
17
19
|
// 文件MIME类型
|
|
@@ -199,7 +201,7 @@ ProViewer.defaultProps = {
|
|
|
199
201
|
width: '1200px',
|
|
200
202
|
height: '650px',
|
|
201
203
|
centered: true,
|
|
202
|
-
title:
|
|
204
|
+
title: locale === null || locale === void 0 ? void 0 : (_locale$ProViewer = locale.ProViewer) === null || _locale$ProViewer === void 0 ? void 0 : _locale$ProViewer.preview,
|
|
203
205
|
footer: null,
|
|
204
206
|
bodyStyle: {
|
|
205
207
|
padding: 0
|
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
|
@@ -67,7 +67,7 @@ export default {
|
|
|
67
67
|
buttonText: '上传文件',
|
|
68
68
|
draggerSelect: '重新选择',
|
|
69
69
|
draggerDelete: '删除',
|
|
70
|
-
draggerTips: '
|
|
70
|
+
draggerTips: '将文件拖拽到此处,或',
|
|
71
71
|
draggerBtnTxt: '点击上传',
|
|
72
72
|
draggerFileExt: '支持扩展名',
|
|
73
73
|
draggerLimitless: '无限制',
|
|
@@ -146,5 +146,8 @@ export default {
|
|
|
146
146
|
tableBorder: '表格边框',
|
|
147
147
|
tableStripe: '表格斑马纹',
|
|
148
148
|
reset: '重置'
|
|
149
|
+
},
|
|
150
|
+
ProViewer: {
|
|
151
|
+
preview: '预览'
|
|
149
152
|
}
|
|
150
153
|
};
|
package/es/style/theme/antd.less
CHANGED
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
.ant-table-tbody > tr > td,
|
|
215
215
|
.ant-table tfoot > tr > th,
|
|
216
216
|
.ant-table tfoot > tr > td {
|
|
217
|
-
padding: calc(
|
|
217
|
+
padding: calc(4px + var(--zaui-size) * 8px);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
.ant-table-tbody > tr > td,
|
|
224
224
|
.ant-table tfoot > tr > th,
|
|
225
225
|
.ant-table tfoot > tr > td {
|
|
226
|
-
padding: calc(
|
|
226
|
+
padding: calc(4px + var(--zaui-size) * 8px);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
// 偶数行背景色设置
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.pro-header {
|
|
4
4
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
5
|
-
padding :
|
|
5
|
+
padding : 16px 0 0 0 !important;
|
|
6
6
|
|
|
7
7
|
&.pro-header-no-back.pro-header-has-describe {
|
|
8
8
|
.pro-header-top {
|
|
@@ -232,7 +232,6 @@
|
|
|
232
232
|
|
|
233
233
|
ul {
|
|
234
234
|
height : 0;
|
|
235
|
-
// padding : 0;
|
|
236
235
|
overflow : hidden;
|
|
237
236
|
}
|
|
238
237
|
}
|
package/lib/ProViewer/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
@@ -14,8 +14,9 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
14
14
|
var _ahooks = require("ahooks");
|
|
15
15
|
var _antd = require("antd");
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
+
var _locale = _interopRequireDefault(require("../locale"));
|
|
18
|
+
var _locale$ProViewer;
|
|
17
19
|
/* eslint-disable jsx-a11y/iframe-has-title */
|
|
18
|
-
|
|
19
20
|
// 用于解析word | excel
|
|
20
21
|
var officeApp = 'https://view.officeapps.live.com/op/view.aspx?src=';
|
|
21
22
|
// 文件MIME类型
|
|
@@ -203,7 +204,7 @@ ProViewer.defaultProps = {
|
|
|
203
204
|
width: '1200px',
|
|
204
205
|
height: '650px',
|
|
205
206
|
centered: true,
|
|
206
|
-
title:
|
|
207
|
+
title: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProViewer = _locale.default.ProViewer) === null || _locale$ProViewer === void 0 ? void 0 : _locale$ProViewer.preview,
|
|
207
208
|
footer: null,
|
|
208
209
|
bodyStyle: {
|
|
209
210
|
padding: 0
|
package/lib/locale/en_US.d.ts
CHANGED
package/lib/locale/en_US.js
CHANGED
package/lib/locale/zh_CN.d.ts
CHANGED
package/lib/locale/zh_CN.js
CHANGED
|
@@ -73,7 +73,7 @@ var _default = exports.default = {
|
|
|
73
73
|
buttonText: '上传文件',
|
|
74
74
|
draggerSelect: '重新选择',
|
|
75
75
|
draggerDelete: '删除',
|
|
76
|
-
draggerTips: '
|
|
76
|
+
draggerTips: '将文件拖拽到此处,或',
|
|
77
77
|
draggerBtnTxt: '点击上传',
|
|
78
78
|
draggerFileExt: '支持扩展名',
|
|
79
79
|
draggerLimitless: '无限制',
|
|
@@ -152,5 +152,8 @@ var _default = exports.default = {
|
|
|
152
152
|
tableBorder: '表格边框',
|
|
153
153
|
tableStripe: '表格斑马纹',
|
|
154
154
|
reset: '重置'
|
|
155
|
+
},
|
|
156
|
+
ProViewer: {
|
|
157
|
+
preview: '预览'
|
|
155
158
|
}
|
|
156
159
|
};
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
.ant-table-tbody > tr > td,
|
|
215
215
|
.ant-table tfoot > tr > th,
|
|
216
216
|
.ant-table tfoot > tr > td {
|
|
217
|
-
padding: calc(
|
|
217
|
+
padding: calc(4px + var(--zaui-size) * 8px);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
.ant-table-tbody > tr > td,
|
|
224
224
|
.ant-table tfoot > tr > th,
|
|
225
225
|
.ant-table tfoot > tr > td {
|
|
226
|
-
padding: calc(
|
|
226
|
+
padding: calc(4px + var(--zaui-size) * 8px);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
// 偶数行背景色设置
|