gm-printer 10.30.2-beta.9 → 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/build/demo.js +9 -9
- package/package.json +1 -1
- package/src/printer/table_special_tr.js +6 -4
package/package.json
CHANGED
|
@@ -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>
|