gm-printer 10.13.8-alpha.0 → 10.13.8-alpha.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.
package/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/Users/min/Documents/GMFE/gm-util/gm-printer/src/util.js":"1","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/get_css.js":"2","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/barcode.js":"3","/Users/min/Documents/GMFE/gm-util/gm-printer/src/index.js":"4","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/context_menu.js":"5","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/context_menu.js":"6","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/context_menu.js":"7","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/context_menu.js":"8","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/context_menu.js":"9","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor_special_table.js":"10","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/context_menu.js":"11","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/context_menu.js":"12","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/context_menu.js":"13","/Users/min/Documents/GMFE/gm-util/gm-printer/src/config.js":"14","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_store.js":"15","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_shadow_dom.js":"16","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/get_editor_css.js":"17","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_title.js":"18","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_store.js":"19","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_select.js":"20","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_edit_field.js":"21"},{"size":7133,"mtime":1638862566087,"results":"22","hashOfConfig":"23"},{"size":291,"mtime":1638935573926,"results":"24","hashOfConfig":"23"},{"size":523,"mtime":1638935549030,"results":"25","hashOfConfig":"23"},{"size":1093,"mtime":1638861826721,"results":"26","hashOfConfig":"23"},{"size":2315,"mtime":1638930939570,"results":"27","hashOfConfig":"23"},{"size":2314,"mtime":1638930918783,"results":"28","hashOfConfig":"23"},{"size":1100,"mtime":1638930900747,"results":"29","hashOfConfig":"23"},{"size":2062,"mtime":1638930869535,"results":"30","hashOfConfig":"23"},{"size":3013,"mtime":1638930838581,"results":"31","hashOfConfig":"23"},{"size":4379,"mtime":1638935458586,"results":"32","hashOfConfig":"23"},{"size":2543,"mtime":1638935387181,"results":"33","hashOfConfig":"23"},{"size":2965,"mtime":1638935364549,"results":"34","hashOfConfig":"23"},{"size":3519,"mtime":1638930747457,"results":"35","hashOfConfig":"23"},{"size":2833,"mtime":1638861837310,"results":"36","hashOfConfig":"23"},{"size":4212,"mtime":1638935746667,"results":"37","hashOfConfig":"23"},{"size":861,"mtime":1638931446915,"results":"38","hashOfConfig":"23"},{"size":178,"mtime":1638931439249,"results":"39","hashOfConfig":"23"},{"size":3272,"mtime":1638931374761,"results":"40","hashOfConfig":"23"},{"size":22205,"mtime":1638862315362,"results":"41","hashOfConfig":"23"},{"size":4903,"mtime":1638931210449,"results":"42","hashOfConfig":"23"},{"size":13268,"mtime":1638930638946,"results":"43","hashOfConfig":"23"},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"jpc0be",{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":2,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"76","messages":"77","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"84","messages":"85","errorCount":1,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/min/Documents/GMFE/gm-util/gm-printer/src/util.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/get_css.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/barcode.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/index.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor_special_table.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/config.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_store.js",["86","87"],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_shadow_dom.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/get_editor_css.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_title.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_store.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_select.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_edit_field.js",["88","89","90"],{"ruleId":"91","severity":2,"message":"92","line":10,"column":29,"nodeType":"93","endLine":10,"endColumn":35},{"ruleId":"91","severity":2,"message":"94","line":145,"column":63,"nodeType":"93","endLine":145,"endColumn":71},{"ruleId":"95","severity":1,"message":"96","line":265,"column":13,"nodeType":"97","endLine":265,"endColumn":49},{"ruleId":"95","severity":1,"message":"96","line":283,"column":13,"nodeType":"97","endLine":283,"endColumn":56},{"ruleId":"98","severity":2,"message":"99","line":436,"column":22,"nodeType":"100","messageId":"101","endLine":436,"endColumn":31},"react/prop-types","'config' is missing in props validation","Identifier","'mockData' is missing in props validation","react/jsx-handler-names","Handler function for onChange prop key must begin with 'handle'","JSXAttribute","gmfe/i18n-check","t函数的key只能为字符串常量(Literal),请使用单引号或双引号包裹","MemberExpression","isVariable"]
1
+ [{"/Users/min/Documents/GMFE/gm-util/gm-printer/src/util.js":"1","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/get_css.js":"2","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/barcode.js":"3","/Users/min/Documents/GMFE/gm-util/gm-printer/src/index.js":"4","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/context_menu.js":"5","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/context_menu.js":"6","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/context_menu.js":"7","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/context_menu.js":"8","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/context_menu.js":"9","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor_special_table.js":"10","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/context_menu.js":"11","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/context_menu.js":"12","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/context_menu.js":"13","/Users/min/Documents/GMFE/gm-util/gm-printer/src/config.js":"14","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_store.js":"15","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_shadow_dom.js":"16","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/get_editor_css.js":"17","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_title.js":"18","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_store.js":"19","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_select.js":"20","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_edit_field.js":"21","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/component.js":"22","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/editor.js":"23","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/editor.js":"24","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/editor.js":"25","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/editor.js":"26","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/editor.js":"27","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor.js":"28","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account_statement/editor.js":"29","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/editor.js":"30","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/editor.js":"31","/Users/min/Documents/GMFE/gm-util/gm-printer/src/components/tooltip/index.js":"32","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_special_field.js":"33"},{"size":7133,"mtime":1638862566087,"results":"34","hashOfConfig":"35"},{"size":291,"mtime":1638935573926,"results":"36","hashOfConfig":"35"},{"size":523,"mtime":1638935549030,"results":"37","hashOfConfig":"35"},{"size":1093,"mtime":1638861826721,"results":"38","hashOfConfig":"35"},{"size":2293,"mtime":1638948548042,"results":"39","hashOfConfig":"35"},{"size":2292,"mtime":1638948522492,"results":"40","hashOfConfig":"35"},{"size":1078,"mtime":1638948543271,"results":"41","hashOfConfig":"35"},{"size":2040,"mtime":1638948515902,"results":"42","hashOfConfig":"35"},{"size":2991,"mtime":1638948535719,"results":"43","hashOfConfig":"35"},{"size":4379,"mtime":1638935458586,"results":"44","hashOfConfig":"35"},{"size":2521,"mtime":1638948507982,"results":"45","hashOfConfig":"35"},{"size":2943,"mtime":1638948502114,"results":"46","hashOfConfig":"35"},{"size":3732,"mtime":1639722598379,"results":"47","hashOfConfig":"35"},{"size":2833,"mtime":1638861837310,"results":"48","hashOfConfig":"35"},{"size":4212,"mtime":1638935746667,"results":"49","hashOfConfig":"35"},{"size":861,"mtime":1638931446915,"results":"50","hashOfConfig":"35"},{"size":178,"mtime":1638931439249,"results":"51","hashOfConfig":"35"},{"size":3272,"mtime":1638931374761,"results":"52","hashOfConfig":"35"},{"size":22735,"mtime":1639724373576,"results":"53","hashOfConfig":"35"},{"size":4903,"mtime":1638931210449,"results":"54","hashOfConfig":"35"},{"size":13268,"mtime":1638930638946,"results":"55","hashOfConfig":"35"},{"size":14787,"mtime":1638948621474,"results":"56","hashOfConfig":"35"},{"size":2165,"mtime":1638949854481,"results":"57","hashOfConfig":"35"},{"size":2165,"mtime":1638949840121,"results":"58","hashOfConfig":"35"},{"size":2223,"mtime":1638949823846,"results":"59","hashOfConfig":"35"},{"size":2226,"mtime":1638949842800,"results":"60","hashOfConfig":"35"},{"size":3367,"mtime":1638949855771,"results":"61","hashOfConfig":"35"},{"size":2305,"mtime":1638949843817,"results":"62","hashOfConfig":"35"},{"size":3294,"mtime":1638949855131,"results":"63","hashOfConfig":"35"},{"size":2850,"mtime":1638949842017,"results":"64","hashOfConfig":"35"},{"size":4157,"mtime":1638949853726,"results":"65","hashOfConfig":"35"},{"size":605,"mtime":1638949882777,"results":"66","hashOfConfig":"35"},{"size":1175,"mtime":1638949720500,"results":"67","hashOfConfig":"35"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"jpc0be",{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"76","messages":"77","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"84","messages":"85","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"94","messages":"95","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"96","messages":"97","errorCount":2,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"108","messages":"109","errorCount":1,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/min/Documents/GMFE/gm-util/gm-printer/src/util.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/get_css.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/barcode.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/index.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor_special_table.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/config.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_store.js",["134","135"],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_shadow_dom.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/get_editor_css.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_title.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_store.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_select.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_edit_field.js",["136","137","138"],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/component.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account_statement/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/components/tooltip/index.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_special_field.js",[],{"ruleId":"139","severity":2,"message":"140","line":10,"column":29,"nodeType":"141","endLine":10,"endColumn":35},{"ruleId":"139","severity":2,"message":"142","line":145,"column":63,"nodeType":"141","endLine":145,"endColumn":71},{"ruleId":"143","severity":1,"message":"144","line":265,"column":13,"nodeType":"145","endLine":265,"endColumn":49},{"ruleId":"143","severity":1,"message":"144","line":283,"column":13,"nodeType":"145","endLine":283,"endColumn":56},{"ruleId":"146","severity":2,"message":"147","line":436,"column":22,"nodeType":"148","messageId":"149","endLine":436,"endColumn":31},"react/prop-types","'config' is missing in props validation","Identifier","'mockData' is missing in props validation","react/jsx-handler-names","Handler function for onChange prop key must begin with 'handle'","JSXAttribute","gmfe/i18n-check","t函数的key只能为字符串常量(Literal),请使用单引号或双引号包裹","MemberExpression","isVariable"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-printer",
3
- "version": "10.13.8-alpha.0",
3
+ "version": "10.13.8-alpha.4",
4
4
  "description": "diy printer",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -622,7 +622,7 @@ Radio.propTypes = {
622
622
  id: PropTypes.string,
623
623
  value: PropTypes.string,
624
624
  radioChecked: PropTypes.func,
625
- checked: PropTypes.string
625
+ checked: PropTypes.bool
626
626
  }
627
627
 
628
628
  const RadioGap = ({ width = '100%', height = '15px' }) => (
@@ -33,7 +33,7 @@ class SpecialField extends React.Component {
33
33
  }
34
34
 
35
35
  SpecialField.propTypes = {
36
- fields: PropTypes.object.isRequired,
36
+ fields: PropTypes.object,
37
37
  handleAddField: PropTypes.func,
38
38
  addFields: PropTypes.object.isRequired,
39
39
  editStore: PropTypes.object,
@@ -183,6 +183,21 @@ class EditorStore {
183
183
  @action
184
184
  setSizePageType(type) {
185
185
  const { size, gap, name } = pageTypeMap[type]
186
+ const { contents } = this.config
187
+ // 判断表格是否是三栏表格
188
+ const tableIsMulti3 = _.find(
189
+ contents,
190
+ item => item?.dataKey && item?.dataKey.includes('multi3')
191
+ )
192
+ // 原本是三栏表格,切换到三分纸时,修改dataKey的值
193
+ if (tableIsMulti3 && type === 'A4/3') {
194
+ this.config.contents = _.map(contents, item => {
195
+ if (item?.dataKey && item?.dataKey.includes('multi3')) {
196
+ return { ...item, dataKey: 'orders' }
197
+ }
198
+ return item
199
+ })
200
+ }
186
201
 
187
202
  this.config.page = {
188
203
  ...this.config.page,
@@ -19,7 +19,7 @@ const ToolTip = ({ text }) => {
19
19
  </span>
20
20
  )
21
21
  }
22
- ToolTip.PropTypes = {
22
+ ToolTip.propTypes = {
23
23
  text: PropTypes.string.isRequired
24
24
  }
25
25
 
@@ -57,6 +57,13 @@ class ContextMenu extends React.Component {
57
57
  return null
58
58
  }
59
59
 
60
+ const {
61
+ editStore: {
62
+ config: {
63
+ page: { type }
64
+ }
65
+ }
66
+ } = this.props
60
67
  const arr = name.split('.')
61
68
  const { dataKey, subtotal } = this.props.editStore.config.contents[arr[2]]
62
69
  const keyArr = dataKey.split('_')
@@ -74,12 +81,15 @@ class ContextMenu extends React.Component {
74
81
  >
75
82
  {i18next.t('双栏商品')}
76
83
  </div>
77
- <div
78
- onClick={this.handleChangeTableDataKey.bind(this, 'multi3', name)}
79
- className={isThreeActive ? 'active' : ''}
80
- >
81
- {i18next.t('三栏商品')}
82
- </div>
84
+ {/* 三分纸高度太小,做不了三栏,会死循环 */}
85
+ {type !== 'A4/3' && (
86
+ <div
87
+ onClick={this.handleChangeTableDataKey.bind(this, 'multi3', name)}
88
+ className={isThreeActive ? 'active' : ''}
89
+ >
90
+ {i18next.t('三栏商品')}
91
+ </div>
92
+ )}
83
93
  <div
84
94
  onClick={this.handleChangeTableDataKey.bind(this, 'category', name)}
85
95
  className={isCategoryActive ? 'active' : ''}
@@ -115,7 +125,7 @@ class ContextMenu extends React.Component {
115
125
  }
116
126
  }
117
127
  ContextMenu.propTypes = {
118
- editStore: PropTypes.object.isRequired,
119
- mockData: PropTypes.object.isRequired
128
+ editStore: PropTypes.object,
129
+ mockData: PropTypes.object
120
130
  }
121
131
  export default ContextMenu
@@ -110,7 +110,7 @@ Editor.propTypes = {
110
110
  showNewDate: PropTypes.bool
111
111
  }
112
112
 
113
- Editor.deaultProps = {
113
+ Editor.defaultProps = {
114
114
  onSave: _.noop,
115
115
  showNewDate: false
116
116
  }
@@ -101,7 +101,7 @@ class ContextMenu extends React.Component {
101
101
  }
102
102
  }
103
103
  ContextMenu.propTypes = {
104
- editStore: PropTypes.object.isRequired,
105
- mockData: PropTypes.object.isRequired
104
+ editStore: PropTypes.object,
105
+ mockData: PropTypes.object
106
106
  }
107
107
  export default ContextMenu
@@ -83,7 +83,7 @@ Editor.propTypes = {
83
83
  showNewDate: PropTypes.bool
84
84
  }
85
85
 
86
- Editor.deaultProps = {
86
+ Editor.defaultProps = {
87
87
  onSave: _.noop,
88
88
  showNewDate: false
89
89
  }
@@ -105,7 +105,7 @@ Editor.propTypes = {
105
105
  addFields: PropTypes.object.isRequired
106
106
  }
107
107
 
108
- Editor.deaultProps = {
108
+ Editor.defaultProps = {
109
109
  onSave: _.noop
110
110
  }
111
111
 
@@ -86,7 +86,7 @@ class ContextMenu extends React.Component {
86
86
  }
87
87
 
88
88
  ContextMenu.propTypes = {
89
- editStore: PropTypes.object.isRequired,
90
- mockData: PropTypes.object.isRequired
89
+ editStore: PropTypes.object,
90
+ mockData: PropTypes.object
91
91
  }
92
92
  export default ContextMenu
@@ -71,7 +71,7 @@ Editor.propTypes = {
71
71
  isPurchase: PropTypes.bool
72
72
  }
73
73
 
74
- Editor.deaultProps = {
74
+ Editor.defaultProps = {
75
75
  onSave: _.noop,
76
76
  isPurchase: false
77
77
  }
@@ -103,7 +103,7 @@ class ContextMenu extends React.Component {
103
103
  }
104
104
  }
105
105
  ContextMenu.propTypes = {
106
- editStore: PropTypes.object.isRequired,
107
- mockData: PropTypes.object.isRequired
106
+ editStore: PropTypes.object,
107
+ mockData: PropTypes.object
108
108
  }
109
109
  export default ContextMenu
@@ -101,7 +101,7 @@ Editor.propTypes = {
101
101
  showNewDate: PropTypes.bool
102
102
  }
103
103
 
104
- Editor.deaultProps = {
104
+ Editor.defaultProps = {
105
105
  onSave: _.noop,
106
106
  showNewDate: false
107
107
  }
@@ -77,7 +77,7 @@ class ContextMenu extends React.Component {
77
77
  }
78
78
 
79
79
  ContextMenu.propTypes = {
80
- editStore: PropTypes.object.isRequired,
81
- mockData: PropTypes.object.isRequired
80
+ editStore: PropTypes.object,
81
+ mockData: PropTypes.object
82
82
  }
83
83
  export default ContextMenu
@@ -72,7 +72,7 @@ Editor.propTypes = {
72
72
  addFields: PropTypes.object.isRequired
73
73
  }
74
74
 
75
- Editor.deaultProps = {
75
+ Editor.defaultProps = {
76
76
  onSave: _.noop
77
77
  }
78
78
 
@@ -33,7 +33,7 @@ class ContextMenu extends React.Component {
33
33
  }
34
34
  }
35
35
  ContextMenu.propTypes = {
36
- editStore: PropTypes.object.isRequired,
37
- mockData: PropTypes.object.isRequired
36
+ editStore: PropTypes.object,
37
+ mockData: PropTypes.object
38
38
  }
39
39
  export default ContextMenu
@@ -72,7 +72,7 @@ Editor.propTypes = {
72
72
  addFields: PropTypes.object.isRequired
73
73
  }
74
74
 
75
- Editor.deaultProps = {
75
+ Editor.defaultProps = {
76
76
  onSave: _.noop
77
77
  }
78
78
 
@@ -75,7 +75,7 @@ class ContextMenu extends React.Component {
75
75
  }
76
76
  }
77
77
  ContextMenu.propTypes = {
78
- editStore: PropTypes.object.isRequired,
79
- mockData: PropTypes.object.isRequired
78
+ editStore: PropTypes.object,
79
+ mockData: PropTypes.object
80
80
  }
81
81
  export default ContextMenu
@@ -69,7 +69,7 @@ Editor.propTypes = {
69
69
  addFields: PropTypes.object.isRequired
70
70
  }
71
71
 
72
- Editor.deaultProps = {
72
+ Editor.defaultProps = {
73
73
  onSave: _.noop
74
74
  }
75
75
 
@@ -75,7 +75,7 @@ class ContextMenu extends React.Component {
75
75
  }
76
76
  }
77
77
  ContextMenu.propTypes = {
78
- editStore: PropTypes.object.isRequired,
79
- mockData: PropTypes.object.isRequired
78
+ editStore: PropTypes.object,
79
+ mockData: PropTypes.object
80
80
  }
81
81
  export default ContextMenu
@@ -69,7 +69,7 @@ Editor.propTypes = {
69
69
  addFields: PropTypes.object.isRequired
70
70
  }
71
71
 
72
- Editor.deaultProps = {
72
+ Editor.defaultProps = {
73
73
  onSave: _.noop
74
74
  }
75
75