@cloud-app-dev/vidc 3.2.35 → 3.2.36
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/es/DomMove/index.js +2 -2
- package/es/Picture/demo.js +42 -6
- package/es/Picture/index.js +4 -0
- package/package.json +1 -1
package/es/DomMove/index.js
CHANGED
|
@@ -149,8 +149,8 @@ function DomMove(_ref) {
|
|
|
149
149
|
DomMove.defaultProps = {
|
|
150
150
|
className: '',
|
|
151
151
|
size: {
|
|
152
|
-
width: '
|
|
153
|
-
height: '
|
|
152
|
+
width: '100%',
|
|
153
|
+
height: '100%'
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
package/es/Picture/demo.js
CHANGED
|
@@ -17,19 +17,21 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
17
17
|
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import Picture from '.';
|
|
20
|
-
import { useSimpleState } from '..';
|
|
20
|
+
import { Modal, useSimpleState } from '..';
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
23
|
export default function App() {
|
|
23
24
|
var _useSimpleState = useSimpleState({
|
|
24
|
-
open: false
|
|
25
|
+
open: false,
|
|
26
|
+
open2: false
|
|
25
27
|
}),
|
|
26
28
|
_useSimpleState2 = _slicedToArray(_useSimpleState, 2),
|
|
27
29
|
state = _useSimpleState2[0],
|
|
28
30
|
updateState = _useSimpleState2[1];
|
|
29
31
|
|
|
30
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/_jsxs(_ConfigProvider, {
|
|
31
33
|
prefixCls: "cloudapp",
|
|
32
|
-
children: /*#__PURE__*/_jsx("div", {
|
|
34
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
33
35
|
style: {
|
|
34
36
|
width: 800,
|
|
35
37
|
height: 600,
|
|
@@ -43,7 +45,7 @@ export default function App() {
|
|
|
43
45
|
pathname: '/',
|
|
44
46
|
icon: ''
|
|
45
47
|
}],
|
|
46
|
-
imagePath: "http://192.168.100.246:
|
|
48
|
+
imagePath: "http://192.168.100.246:5463/oss/v1/100004008/objects/638da35805f5f0a8101021f9?client_token=100004008_0_1670313176_9a47a8459c120d977904c9feb2354a7e",
|
|
47
49
|
isOpenSelect: state.open,
|
|
48
50
|
rects: [{
|
|
49
51
|
type: 'face',
|
|
@@ -73,6 +75,40 @@ export default function App() {
|
|
|
73
75
|
});
|
|
74
76
|
}
|
|
75
77
|
})
|
|
76
|
-
})
|
|
78
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
79
|
+
style: {
|
|
80
|
+
width: 800,
|
|
81
|
+
height: 600,
|
|
82
|
+
background: '#000',
|
|
83
|
+
marginTop: 40
|
|
84
|
+
},
|
|
85
|
+
children: [/*#__PURE__*/_jsx(_Button, {
|
|
86
|
+
onClick: function onClick() {
|
|
87
|
+
return updateState({
|
|
88
|
+
open2: true
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
children: "\u6253\u5F00"
|
|
92
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
93
|
+
title: "modal",
|
|
94
|
+
open: state.open2,
|
|
95
|
+
onCancel: function onCancel() {
|
|
96
|
+
return updateState({
|
|
97
|
+
open2: false
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
width: 844,
|
|
101
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
102
|
+
style: {
|
|
103
|
+
width: 800,
|
|
104
|
+
height: 600
|
|
105
|
+
},
|
|
106
|
+
children: /*#__PURE__*/_jsx(Picture, {
|
|
107
|
+
imagePath: "http://192.168.100.246:5463/oss/v1/100004008/objects/638da35805f5f0a8101021f9?client_token=100004008_0_1670313176_9a47a8459c120d977904c9feb2354a7e",
|
|
108
|
+
isOpenSelect: false
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
})]
|
|
112
|
+
})]
|
|
77
113
|
});
|
|
78
114
|
}
|
package/es/Picture/index.js
CHANGED
|
@@ -364,6 +364,10 @@ function Picture(_ref) {
|
|
|
364
364
|
ref: domImgRef,
|
|
365
365
|
draggable: false,
|
|
366
366
|
src: state.localUrl,
|
|
367
|
+
style: {
|
|
368
|
+
width: state.baseXOrY === 'x' ? '100%' : 'auto',
|
|
369
|
+
height: state.baseXOrY === 'y' ? '100%' : 'auto'
|
|
370
|
+
},
|
|
367
371
|
"data-src": imagePath,
|
|
368
372
|
onLoad: loadImageSuccess
|
|
369
373
|
}), !isEmpty ? /*#__PURE__*/_jsx(DrawRect, {
|
package/package.json
CHANGED