assui 3.2.4 → 3.2.5

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,6 +20,7 @@ export interface ImgCropProps {
20
20
  modalWidth?: string | number;
21
21
  modalCancel?: string;
22
22
  modalOk?: string;
23
+ modalCenter?: boolean;
23
24
  zipImg?: {
24
25
  width: number;
25
26
  height: number;
@@ -193,6 +193,7 @@ var ImgCrop = function ImgCrop(props) {
193
193
  modalWidth = props.modalWidth,
194
194
  modalOk = props.modalOk,
195
195
  modalCancel = props.modalCancel,
196
+ modalCenter = props.modalCenter,
196
197
  beforeCrop = props.beforeCrop,
197
198
  zipImg = props.zipImg,
198
199
  children = props.children,
@@ -279,10 +280,11 @@ var ImgCrop = function ImgCrop(props) {
279
280
  var obj = {
280
281
  width: modalWidth,
281
282
  okText: modalOk,
282
- cancelText: modalCancel
283
+ cancelText: modalCancel,
284
+ center: modalCenter
283
285
  };
284
286
  return obj;
285
- }, [modalCancel, modalOk, modalWidth]);
287
+ }, [modalCancel, modalOk, modalWidth, modalCenter]);
286
288
  var onClose = React.useCallback(function () {
287
289
  setSrc('');
288
290
  setZoomVal(1);
@@ -20,6 +20,7 @@ export interface ImgCropProps {
20
20
  modalWidth?: string | number;
21
21
  modalCancel?: string;
22
22
  modalOk?: string;
23
+ modalCenter?: boolean;
23
24
  zipImg?: {
24
25
  width: number;
25
26
  height: number;
@@ -236,6 +236,7 @@ var ImgCrop = function ImgCrop(props) {
236
236
  modalWidth = props.modalWidth,
237
237
  modalOk = props.modalOk,
238
238
  modalCancel = props.modalCancel,
239
+ modalCenter = props.modalCenter,
239
240
  beforeCrop = props.beforeCrop,
240
241
  zipImg = props.zipImg,
241
242
  children = props.children,
@@ -322,10 +323,11 @@ var ImgCrop = function ImgCrop(props) {
322
323
  var obj = {
323
324
  width: modalWidth,
324
325
  okText: modalOk,
325
- cancelText: modalCancel
326
+ cancelText: modalCancel,
327
+ center: modalCenter
326
328
  };
327
329
  return obj;
328
- }, [modalCancel, modalOk, modalWidth]);
330
+ }, [modalCancel, modalOk, modalWidth, modalCenter]);
329
331
  var onClose = React.useCallback(function () {
330
332
  setSrc('');
331
333
  setZoomVal(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
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.3",
38
+ "a-icons": "^1.2.4",
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": "643c8d2b456267ad030883c3c84a8cd51aec8710"
85
+ "gitHead": "aecb544cb04cb1f776d3a4d841cf416289dff335"
86
86
  }