gm-printer 10.13.7 → 10.13.8-alpha.0
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/common/editor_edit_field.js +1 -17
- package/src/common/editor_select.js +5 -4
- package/src/common/editor_store.js +7 -0
- package/src/common/editor_title.js +3 -2
- package/src/common/get_editor_css.js +1 -1
- package/src/common/hoc_with_shadow_dom.js +5 -5
- package/src/common/hoc_with_store.js +64 -25
- package/src/config.js +2 -0
- package/src/editor/context_menu.js +12 -2
- package/src/editor_account/context_menu.js +7 -3
- package/src/editor_purchase/context_menu.js +5 -0
- package/src/editor_purchase/editor_special_table.js +8 -1
- package/src/editor_salemenus/context_menu.js +5 -1
- package/src/editor_settle/context_menu.js +20 -9
- package/src/editor_statement/context_menu.js +6 -2
- package/src/editor_stockin/context_menu.js +7 -3
- package/src/editor_stockout/context_menu.js +5 -1
- package/src/index.js +2 -1
- package/src/printer/barcode.js +6 -0
- package/src/printer/get_css.js +1 -1
- package/src/util.js +1 -1
- package/yarn-error.log +9663 -0
- package/build/demo.js +0 -54
|
@@ -3,6 +3,7 @@ import React from 'react'
|
|
|
3
3
|
import CommonContextMenu from '../common/common_context_menu'
|
|
4
4
|
import { inject, observer } from 'mobx-react'
|
|
5
5
|
import { Printer } from '../printer'
|
|
6
|
+
import PropTypes from 'prop-types'
|
|
6
7
|
|
|
7
8
|
const blockTypeList = [
|
|
8
9
|
{ value: '', text: i18next.t('插入文本') },
|
|
@@ -73,5 +74,8 @@ class ContextMenu extends React.Component {
|
|
|
73
74
|
)
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
ContextMenu.propTypes = {
|
|
78
|
+
editStore: PropTypes.object.isRequired,
|
|
79
|
+
mockData: PropTypes.object.isRequired
|
|
80
|
+
}
|
|
77
81
|
export default ContextMenu
|
package/src/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getCSS,
|
|
19
19
|
getPrintContainerHTML
|
|
20
20
|
} from './printer'
|
|
21
|
-
import { MULTI_SUFFIX } from './config'
|
|
21
|
+
import { MULTI_SUFFIX, MULTI_SUFFIX3 } from './config'
|
|
22
22
|
|
|
23
23
|
export * from './util'
|
|
24
24
|
export { setLocale } from '../locales'
|
|
@@ -40,5 +40,6 @@ export {
|
|
|
40
40
|
doBatchPrint,
|
|
41
41
|
getCSS,
|
|
42
42
|
MULTI_SUFFIX,
|
|
43
|
+
MULTI_SUFFIX3,
|
|
43
44
|
getPrintContainerHTML
|
|
44
45
|
}
|
package/src/printer/barcode.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import jsBarcode from 'jsbarcode'
|
|
3
|
+
import PropTypes from 'prop-types'
|
|
3
4
|
|
|
4
5
|
class BarCode extends React.Component {
|
|
5
6
|
barcode = React.createRef()
|
|
@@ -17,4 +18,9 @@ class BarCode extends React.Component {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
BarCode.propTypes = {
|
|
22
|
+
value: PropTypes.string,
|
|
23
|
+
dataName: PropTypes.string
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
export default BarCode
|
package/src/printer/get_css.js
CHANGED
|
@@ -3,7 +3,7 @@ import normalizeCSS from 'css-loader!./normalize.csss'
|
|
|
3
3
|
// eslint-disable-next-line
|
|
4
4
|
import printerCSS from 'css-loader!postcss-loader!less-loader!./style.lesss'
|
|
5
5
|
|
|
6
|
-
function getCSS
|
|
6
|
+
function getCSS() {
|
|
7
7
|
return normalizeCSS.toString() + printerCSS.toString()
|
|
8
8
|
}
|
|
9
9
|
|