ydb-components-material 0.1.24 → 0.1.26
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/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/umi.17eec708.js +1 -0
- package/build/docs/{umi.e536bfab.css → umi.cc89c510.css} +1 -1
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-item/index.js +2 -2
- package/es/components/file-item/index.scss +2 -2
- package/es/components/file-item/seal.js +28 -2
- package/lib/components/file-item/index.js +2 -2
- package/lib/components/file-item/index.scss +2 -2
- package/lib/components/file-item/seal.js +28 -2
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
- package/build/docs/umi.0ca7fca9.js +0 -1
|
@@ -245,9 +245,9 @@ var FileItem = function FileItem(_ref) {
|
|
|
245
245
|
certificateSno = userInfo.certificateSno,
|
|
246
246
|
acctType = userInfo.acctType;
|
|
247
247
|
var params = {
|
|
248
|
-
|
|
249
|
-
cardno: '140110199504131013',
|
|
248
|
+
cardno: acctType === '10' ? certNo : certificateSno,
|
|
250
249
|
// 个人传身份证号、法人传社会统一信用代码
|
|
250
|
+
// cardno: '140110199504131013', // 个人传身份证号、法人传社会统一信用代码
|
|
251
251
|
type: acctType === '10' ? '11' : '21',
|
|
252
252
|
pageNum: 1,
|
|
253
253
|
pageSize: 10
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
.sealPage {
|
|
320
|
-
position:
|
|
320
|
+
position: fixed;
|
|
321
321
|
top: 0;
|
|
322
322
|
left: 0;
|
|
323
323
|
width: 100%;
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
background: rgba(0, 0, 0, 0.5);
|
|
327
327
|
}
|
|
328
328
|
.sign_page {
|
|
329
|
-
position:
|
|
329
|
+
position: fixed;
|
|
330
330
|
top: 0;
|
|
331
331
|
left: 0;
|
|
332
332
|
width: 100%;
|
|
@@ -20,6 +20,7 @@ function SealPage(props) {
|
|
|
20
20
|
orderId = _useState2[0],
|
|
21
21
|
setOrderId = _useState2[1];
|
|
22
22
|
var timerRef = useRef(null);
|
|
23
|
+
var elementRef = useRef(null);
|
|
23
24
|
var handleRes = /*#__PURE__*/function () {
|
|
24
25
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
25
26
|
var res, pageUrl, orderIdVal;
|
|
@@ -63,7 +64,8 @@ function SealPage(props) {
|
|
|
63
64
|
handleClose();
|
|
64
65
|
finalFile = _extends({
|
|
65
66
|
name: file.name,
|
|
66
|
-
url: uploadedFileObj.fileUrl
|
|
67
|
+
url: uploadedFileObj.fileUrl,
|
|
68
|
+
isSealed: true
|
|
67
69
|
}, uploadedFileObj);
|
|
68
70
|
getSealRes(finalFile);
|
|
69
71
|
case 2:
|
|
@@ -137,11 +139,35 @@ function SealPage(props) {
|
|
|
137
139
|
handleClearInterval();
|
|
138
140
|
};
|
|
139
141
|
}, [orderId]);
|
|
142
|
+
var handleTouchMove = function handleTouchMove(e) {
|
|
143
|
+
e.preventDefault(); // 只有在 passive: false 时才能调用
|
|
144
|
+
console.log('Touch move');
|
|
145
|
+
};
|
|
146
|
+
var handleTouchStart = function handleTouchStart(e) {
|
|
147
|
+
console.log('Touch start - passive', e.touches[0].clientX);
|
|
148
|
+
};
|
|
149
|
+
useEffect(function () {
|
|
150
|
+
var element = elementRef.current;
|
|
151
|
+
if (!element) return;
|
|
152
|
+
|
|
153
|
+
// 添加被动事件监听器
|
|
154
|
+
element.addEventListener('touchstart', handleTouchStart, {
|
|
155
|
+
passive: true
|
|
156
|
+
});
|
|
157
|
+
element.addEventListener('touchmove', handleTouchMove, {
|
|
158
|
+
passive: false // 如果需要 preventDefault
|
|
159
|
+
});
|
|
160
|
+
return function () {
|
|
161
|
+
element.removeEventListener('touchstart', handleTouchStart);
|
|
162
|
+
element.removeEventListener('touchmove', handleTouchMove);
|
|
163
|
+
};
|
|
164
|
+
}, []);
|
|
140
165
|
useEffect(function () {
|
|
141
166
|
handleRes();
|
|
142
167
|
}, [userInfo, file, token, accessToken, baseUrl]);
|
|
143
168
|
return /*#__PURE__*/React.createElement("div", {
|
|
144
|
-
className: "sealPage"
|
|
169
|
+
className: "sealPage",
|
|
170
|
+
ref: elementRef
|
|
145
171
|
}, /*#__PURE__*/React.createElement("iframe", {
|
|
146
172
|
src: srcUrl,
|
|
147
173
|
id: "iframe",
|
|
@@ -251,9 +251,9 @@ var FileItem = function FileItem(_ref) {
|
|
|
251
251
|
certificateSno = userInfo.certificateSno,
|
|
252
252
|
acctType = userInfo.acctType;
|
|
253
253
|
var params = {
|
|
254
|
-
|
|
255
|
-
cardno: '140110199504131013',
|
|
254
|
+
cardno: acctType === '10' ? certNo : certificateSno,
|
|
256
255
|
// 个人传身份证号、法人传社会统一信用代码
|
|
256
|
+
// cardno: '140110199504131013', // 个人传身份证号、法人传社会统一信用代码
|
|
257
257
|
type: acctType === '10' ? '11' : '21',
|
|
258
258
|
pageNum: 1,
|
|
259
259
|
pageSize: 10
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
.sealPage {
|
|
320
|
-
position:
|
|
320
|
+
position: fixed;
|
|
321
321
|
top: 0;
|
|
322
322
|
left: 0;
|
|
323
323
|
width: 100%;
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
background: rgba(0, 0, 0, 0.5);
|
|
327
327
|
}
|
|
328
328
|
.sign_page {
|
|
329
|
-
position:
|
|
329
|
+
position: fixed;
|
|
330
330
|
top: 0;
|
|
331
331
|
left: 0;
|
|
332
332
|
width: 100%;
|
|
@@ -26,6 +26,7 @@ function SealPage(props) {
|
|
|
26
26
|
orderId = _useState2[0],
|
|
27
27
|
setOrderId = _useState2[1];
|
|
28
28
|
var timerRef = (0, _react.useRef)(null);
|
|
29
|
+
var elementRef = (0, _react.useRef)(null);
|
|
29
30
|
var handleRes = /*#__PURE__*/function () {
|
|
30
31
|
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
31
32
|
var res, pageUrl, orderIdVal;
|
|
@@ -69,7 +70,8 @@ function SealPage(props) {
|
|
|
69
70
|
handleClose();
|
|
70
71
|
finalFile = (0, _extends2["default"])({
|
|
71
72
|
name: file.name,
|
|
72
|
-
url: uploadedFileObj.fileUrl
|
|
73
|
+
url: uploadedFileObj.fileUrl,
|
|
74
|
+
isSealed: true
|
|
73
75
|
}, uploadedFileObj);
|
|
74
76
|
getSealRes(finalFile);
|
|
75
77
|
case 2:
|
|
@@ -143,11 +145,35 @@ function SealPage(props) {
|
|
|
143
145
|
handleClearInterval();
|
|
144
146
|
};
|
|
145
147
|
}, [orderId]);
|
|
148
|
+
var handleTouchMove = function handleTouchMove(e) {
|
|
149
|
+
e.preventDefault(); // 只有在 passive: false 时才能调用
|
|
150
|
+
console.log('Touch move');
|
|
151
|
+
};
|
|
152
|
+
var handleTouchStart = function handleTouchStart(e) {
|
|
153
|
+
console.log('Touch start - passive', e.touches[0].clientX);
|
|
154
|
+
};
|
|
155
|
+
(0, _react.useEffect)(function () {
|
|
156
|
+
var element = elementRef.current;
|
|
157
|
+
if (!element) return;
|
|
158
|
+
|
|
159
|
+
// 添加被动事件监听器
|
|
160
|
+
element.addEventListener('touchstart', handleTouchStart, {
|
|
161
|
+
passive: true
|
|
162
|
+
});
|
|
163
|
+
element.addEventListener('touchmove', handleTouchMove, {
|
|
164
|
+
passive: false // 如果需要 preventDefault
|
|
165
|
+
});
|
|
166
|
+
return function () {
|
|
167
|
+
element.removeEventListener('touchstart', handleTouchStart);
|
|
168
|
+
element.removeEventListener('touchmove', handleTouchMove);
|
|
169
|
+
};
|
|
170
|
+
}, []);
|
|
146
171
|
(0, _react.useEffect)(function () {
|
|
147
172
|
handleRes();
|
|
148
173
|
}, [userInfo, file, token, accessToken, baseUrl]);
|
|
149
174
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
|
-
className: "sealPage"
|
|
175
|
+
className: "sealPage",
|
|
176
|
+
ref: elementRef
|
|
151
177
|
}, /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
152
178
|
src: srcUrl,
|
|
153
179
|
id: "iframe",
|
package/lowcode_es/meta.js
CHANGED
|
@@ -89,7 +89,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
89
89
|
packageName = 'ydb-components-material';
|
|
90
90
|
}
|
|
91
91
|
if (version === void 0) {
|
|
92
|
-
version = '0.1.
|
|
92
|
+
version = '0.1.26';
|
|
93
93
|
}
|
|
94
94
|
if (basicLibraryVersion === void 0) {
|
|
95
95
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -94,7 +94,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
94
94
|
packageName = 'ydb-components-material';
|
|
95
95
|
}
|
|
96
96
|
if (version === void 0) {
|
|
97
|
-
version = '0.1.
|
|
97
|
+
version = '0.1.26';
|
|
98
98
|
}
|
|
99
99
|
if (basicLibraryVersion === void 0) {
|
|
100
100
|
basicLibraryVersion = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ydb-components-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "ydb-components-material",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
},
|
|
96
96
|
"componentConfig": {
|
|
97
97
|
"isComponentLibrary": true,
|
|
98
|
-
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.
|
|
98
|
+
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.26/build/lowcode/assets-prod.json"
|
|
99
99
|
},
|
|
100
100
|
"lcMeta": {
|
|
101
101
|
"type": "component"
|
|
102
102
|
},
|
|
103
|
-
"homepage": "https://unpkg.com/ydb-components-material@0.1.
|
|
103
|
+
"homepage": "https://unpkg.com/ydb-components-material@0.1.26/build/index.html"
|
|
104
104
|
}
|