assui 3.2.5 → 3.2.7

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.
@@ -20,7 +20,6 @@ export interface ImgCropProps {
20
20
  modalWidth?: string | number;
21
21
  modalCancel?: string;
22
22
  modalOk?: string;
23
- modalCenter?: boolean;
24
23
  zipImg?: {
25
24
  width: number;
26
25
  height: number;
@@ -193,7 +193,6 @@ var ImgCrop = function ImgCrop(props) {
193
193
  modalWidth = props.modalWidth,
194
194
  modalOk = props.modalOk,
195
195
  modalCancel = props.modalCancel,
196
- modalCenter = props.modalCenter,
197
196
  beforeCrop = props.beforeCrop,
198
197
  zipImg = props.zipImg,
199
198
  children = props.children,
@@ -280,11 +279,10 @@ var ImgCrop = function ImgCrop(props) {
280
279
  var obj = {
281
280
  width: modalWidth,
282
281
  okText: modalOk,
283
- cancelText: modalCancel,
284
- center: modalCenter
282
+ cancelText: modalCancel
285
283
  };
286
284
  return obj;
287
- }, [modalCancel, modalOk, modalWidth, modalCenter]);
285
+ }, [modalCancel, modalOk, modalWidth]);
288
286
  var onClose = React.useCallback(function () {
289
287
  setSrc('');
290
288
  setZoomVal(1);
@@ -380,7 +378,8 @@ var ImgCrop = function ImgCrop(props) {
380
378
  onOk: onOk,
381
379
  onCancel: onClose,
382
380
  maskClosable: false,
383
- destroyOnClose: true
381
+ destroyOnClose: true,
382
+ centered: true
384
383
  }, modalProps), /*#__PURE__*/React.createElement(EasyCrop, __assign({
385
384
  image: src,
386
385
  aspect: aspect,
@@ -20,7 +20,6 @@ export interface ImgCropProps {
20
20
  modalWidth?: string | number;
21
21
  modalCancel?: string;
22
22
  modalOk?: string;
23
- modalCenter?: boolean;
24
23
  zipImg?: {
25
24
  width: number;
26
25
  height: number;
@@ -236,7 +236,6 @@ var ImgCrop = function ImgCrop(props) {
236
236
  modalWidth = props.modalWidth,
237
237
  modalOk = props.modalOk,
238
238
  modalCancel = props.modalCancel,
239
- modalCenter = props.modalCenter,
240
239
  beforeCrop = props.beforeCrop,
241
240
  zipImg = props.zipImg,
242
241
  children = props.children,
@@ -323,11 +322,10 @@ var ImgCrop = function ImgCrop(props) {
323
322
  var obj = {
324
323
  width: modalWidth,
325
324
  okText: modalOk,
326
- cancelText: modalCancel,
327
- center: modalCenter
325
+ cancelText: modalCancel
328
326
  };
329
327
  return obj;
330
- }, [modalCancel, modalOk, modalWidth, modalCenter]);
328
+ }, [modalCancel, modalOk, modalWidth]);
331
329
  var onClose = React.useCallback(function () {
332
330
  setSrc('');
333
331
  setZoomVal(1);
@@ -423,7 +421,8 @@ var ImgCrop = function ImgCrop(props) {
423
421
  onOk: onOk,
424
422
  onCancel: onClose,
425
423
  maskClosable: false,
426
- destroyOnClose: true
424
+ destroyOnClose: true,
425
+ centered: true
427
426
  }, modalProps), React.createElement(EasyCrop_1["default"], __assign({
428
427
  image: src,
429
428
  aspect: aspect,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.2.5",
3
+ "version": "3.2.7",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -35,7 +35,7 @@
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
36
  "@types/react-color": "^3.0.6",
37
37
  "@types/react-resizable": "^3.0.0",
38
- "a-icons": "^1.2.4",
38
+ "a-icons": "^1.2.5",
39
39
  "aa-utils": "^2.1.27",
40
40
  "ahooks": "^3.0.8",
41
41
  "bignumber.js": "^9.0.1",
@@ -82,5 +82,5 @@
82
82
  "node": ">=10.0.0"
83
83
  },
84
84
  "license": "MIT",
85
- "gitHead": "aecb544cb04cb1f776d3a4d841cf416289dff335"
85
+ "gitHead": "d5f2a2f44b3d6d37f674d6bcfdb0ce406bde6db8"
86
86
  }