@zat-design/sisyphus-react 3.2.2-beta.7 → 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.
@@ -817,7 +817,7 @@
817
817
  }
818
818
  .pro-header {
819
819
  background-color: var(--zaui-base-bg, #ffffff);
820
- padding: 24px 0 0 0;
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(5px + var(--zaui-size) * 8px) 16px;
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(5px + var(--zaui-size) * 8px) 16px;
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 : 24px 0 0 0;
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
  }
@@ -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
@@ -148,5 +148,8 @@ declare const _default: {
148
148
  tableStripe: string;
149
149
  reset: string;
150
150
  };
151
+ ProViewer: {
152
+ preview: string;
153
+ };
151
154
  };
152
155
  export default _default;
@@ -147,5 +147,8 @@ export default {
147
147
  tableBorder: 'Table border',
148
148
  tableStripe: 'Table zebra',
149
149
  reset: 'Reset'
150
+ },
151
+ ProViewer: {
152
+ preview: 'preview'
150
153
  }
151
154
  };
@@ -147,5 +147,8 @@ declare const _default: {
147
147
  tableStripe: string;
148
148
  reset: string;
149
149
  };
150
+ ProViewer: {
151
+ preview: string;
152
+ };
150
153
  };
151
154
  export default _default;
@@ -146,5 +146,8 @@ export default {
146
146
  tableBorder: '表格边框',
147
147
  tableStripe: '表格斑马纹',
148
148
  reset: '重置'
149
+ },
150
+ ProViewer: {
151
+ preview: '预览'
149
152
  }
150
153
  };
@@ -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(5px + var(--zaui-size) * 8px) 16px;
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(5px + var(--zaui-size) * 8px) 16px;
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 : 24px 0 0 0;
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
  }
@@ -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
@@ -148,5 +148,8 @@ declare const _default: {
148
148
  tableStripe: string;
149
149
  reset: string;
150
150
  };
151
+ ProViewer: {
152
+ preview: string;
153
+ };
151
154
  };
152
155
  export default _default;
@@ -153,5 +153,8 @@ var _default = exports.default = {
153
153
  tableBorder: 'Table border',
154
154
  tableStripe: 'Table zebra',
155
155
  reset: 'Reset'
156
+ },
157
+ ProViewer: {
158
+ preview: 'preview'
156
159
  }
157
160
  };
@@ -147,5 +147,8 @@ declare const _default: {
147
147
  tableStripe: string;
148
148
  reset: string;
149
149
  };
150
+ ProViewer: {
151
+ preview: string;
152
+ };
150
153
  };
151
154
  export default _default;
@@ -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(5px + var(--zaui-size) * 8px) 16px;
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(5px + var(--zaui-size) * 8px) 16px;
226
+ padding: calc(4px + var(--zaui-size) * 8px);
227
227
  }
228
228
 
229
229
  // 偶数行背景色设置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.2.2-beta.7",
3
+ "version": "3.2.2-beta.8",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",