gm-printer 10.27.3-beta.1 → 10.27.3-beta.3
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/.eslintcache +1 -1
- package/package.json +1 -1
- package/src/printer/printer.js +7 -3
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/Users/
|
|
1
|
+
[{"/Users/mac/Documents/Z_gmfe/gm-printer/src/printer/printer.js":"1"},{"size":10902,"mtime":1725959509433,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":3,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"16862vb","/Users/mac/Documents/Z_gmfe/gm-printer/src/printer/printer.js",["6","7","8"],{"ruleId":"9","severity":2,"message":"10","line":6,"column":24,"nodeType":"11","endLine":6,"endColumn":38},{"ruleId":"12","severity":2,"message":"13","line":23,"column":24,"nodeType":"11","endLine":23,"endColumn":28},{"ruleId":"12","severity":2,"message":"13","line":41,"column":24,"nodeType":"11","endLine":41,"endColumn":28},"no-unused-vars","'TR_BASE_HEIGHT' is defined but never used.","Identifier","react/prop-types","'flag' is missing in props validation"]
|
package/package.json
CHANGED
package/src/printer/printer.js
CHANGED
|
@@ -20,7 +20,7 @@ const Sign = props => (
|
|
|
20
20
|
{...props}
|
|
21
21
|
style={{
|
|
22
22
|
...props.style,
|
|
23
|
-
position: props?.flag ? '
|
|
23
|
+
position: props?.flag ? 'absolute' : 'relative',
|
|
24
24
|
left: 0,
|
|
25
25
|
right: 0
|
|
26
26
|
}}
|
|
@@ -38,7 +38,7 @@ const Footer = props => (
|
|
|
38
38
|
{...props}
|
|
39
39
|
style={{
|
|
40
40
|
...props.style,
|
|
41
|
-
position: props?.flag ? '
|
|
41
|
+
position: props?.flag ? 'absolute' : 'relative',
|
|
42
42
|
bottom: 0,
|
|
43
43
|
left: 0,
|
|
44
44
|
right: 0
|
|
@@ -226,7 +226,11 @@ class Printer extends React.Component {
|
|
|
226
226
|
flag={isLastPage && config?.isFixLastFooter}
|
|
227
227
|
/>
|
|
228
228
|
)}
|
|
229
|
-
<Footer
|
|
229
|
+
<Footer
|
|
230
|
+
config={config.footer}
|
|
231
|
+
pageIndex={i}
|
|
232
|
+
flag={isLastPage && config?.isFixLastFooter}
|
|
233
|
+
/>
|
|
230
234
|
</Page>
|
|
231
235
|
)
|
|
232
236
|
})}
|