gm-printer 10.33.2 → 10.33.4

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.
@@ -0,0 +1 @@
1
+ <!doctype html><html><head></head><body><div id="appContainer"></div><script src="/demo.js"></script><script src="/demo.js"></script></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-printer",
3
- "version": "10.33.2",
3
+ "version": "10.33.4",
4
4
  "description": "diy printer",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -756,7 +756,7 @@ class EditorField extends React.Component {
756
756
  inputName='classificationAndLabelTallyRadio'
757
757
  checked={
758
758
  (specialConfig?.fields?.[0]?.valueField ??
759
- '下单金额') === fields.id
759
+ '出库金额') === fields.id
760
760
  }
761
761
  radioChecked={() =>
762
762
  editStore.setClassificationAndLabelTallyField(fields)
@@ -37,19 +37,12 @@ function getTipDOM(id) {
37
37
 
38
38
  Tip.warning = (message = '') => {
39
39
  tips.push(message)
40
- // TODO 这里要判断是否有dom 避免报错
40
+
41
41
  setTimeout(() => {
42
- const dom = getTipDOM('gm-printer-tip')
43
42
  tips.shift()
44
- if (!dom) {
45
- return
46
- }
47
- ReactDOM.render(<Tip list={tips} />)
43
+ ReactDOM.render(<Tip list={tips} />, getTipDOM('gm-printer-tip'))
48
44
  }, 3000)
49
- const dom = getTipDOM('gm-printer-tip')
50
- if (!dom) {
51
- return
52
- }
45
+
53
46
  ReactDOM.render(<Tip list={tips} />, getTipDOM('gm-printer-tip'))
54
47
  }
55
48
 
@@ -34,7 +34,7 @@ const SpecialTr = ({ data, config }) => {
34
34
 
35
35
  const defaultFields = [
36
36
  {
37
- valueField: '下单金额'
37
+ valueField: '出库金额'
38
38
  }
39
39
  ]
40
40
  const newFields = fields || defaultFields
package/.eslintcache DELETED
@@ -1 +0,0 @@
1
- [{"/Users/maoxuanlong/Desktop/guanmai/code/gm-printer1/src/components/tip/index.js":"1"},{"size":1293,"mtime":1760773799171,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1esol1r","/Users/maoxuanlong/Desktop/guanmai/code/gm-printer1/src/components/tip/index.js",[]]