gm-printer 10.30.2-beta.8 → 10.31.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-printer",
3
- "version": "10.30.2-beta.8",
3
+ "version": "10.31.0",
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)
@@ -1305,7 +1305,7 @@ class EditorStore {
1305
1305
  if (!tableConfig.specialConfig?.fields?.[0]) {
1306
1306
  specialConfig.fields = [
1307
1307
  {
1308
- valueField: '出库金额'
1308
+ valueField: '下单金额'
1309
1309
  }
1310
1310
  ]
1311
1311
  }
@@ -95,6 +95,9 @@ const SpecialTr = ({ data, config }) => {
95
95
  throw Error('_special缺少text,请检查data_to_key处理table数据代码!')
96
96
 
97
97
  if (isUpperLowerCaseSeparate) {
98
+ const htmlStr = isUpperCaseBefore
99
+ ? data[fields[0].valueField]?.upperLowerCaseSeparateAndUpperCaseBefore
100
+ : data[fields[0].valueField]?.upperLowerCaseSeparate
98
101
  return (
99
102
  <tr>
100
103
  <td
@@ -102,11 +105,10 @@ const SpecialTr = ({ data, config }) => {
102
105
  style={Object.assign({ fontWeight: 'bold' }, style)}
103
106
  >
104
107
  <Flex
105
- className='gm-flex-justify-between'
108
+ className='gm-flex-page gm-flex-justify-between-page'
109
+ style={{ 'justify-content': 'space-between' }}
106
110
  dangerouslySetInnerHTML={{
107
- __html:
108
- data[fields[0].valueField]?.upperLowerCaseSeparate ||
109
- data.text
111
+ __html: htmlStr || data.text
110
112
  }}
111
113
  />
112
114
  </td>