gm-printer-label 3.1.0-beta.4 → 3.1.0-beta.5
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 +1 -1
- package/src/printer/block.js +6 -2
package/package.json
CHANGED
package/src/printer/block.js
CHANGED
|
@@ -332,9 +332,9 @@ class Block extends React.Component {
|
|
|
332
332
|
/>
|
|
333
333
|
)
|
|
334
334
|
}
|
|
335
|
-
console.log('content', content)
|
|
336
335
|
if (content.indexOf('div') != '-1') {
|
|
337
336
|
// console.log('content', dangerouslySetInnerHTML={{ __html: content }})
|
|
337
|
+
console.log('div', _.split(content, ':', 2))
|
|
338
338
|
}
|
|
339
339
|
const active = index === selected
|
|
340
340
|
return (
|
|
@@ -359,7 +359,11 @@ class Block extends React.Component {
|
|
|
359
359
|
{content.indexOf('div') != '-1' ? (
|
|
360
360
|
/** 表单 */
|
|
361
361
|
<div
|
|
362
|
-
dangerouslySetInnerHTML={{
|
|
362
|
+
dangerouslySetInnerHTML={{
|
|
363
|
+
__html: _.slice(content, _.indexOf(content, ':') + 1, -1).join(
|
|
364
|
+
''
|
|
365
|
+
),
|
|
366
|
+
}}
|
|
363
367
|
/>
|
|
364
368
|
) : (
|
|
365
369
|
content
|