File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -540,13 +540,17 @@ const VueComponentInReact = applyVueInReact(VueComponent, {
540
540
// react.componentWrapAttrs代表是vue组件在react组件中的组件包囊层的标签设置
541
541
// 以下设置将设置组件的包囊层div的display为inline-block
542
542
componentWrapAttrs: {
543
- style: ' display:inline-block' ,
543
+ style: {
544
+ display: ' inline-block'
545
+ },
544
546
class: ' react-wrap-vue-component-1'
545
547
},
546
548
// react.slotWrapAttrs代表是vue组件在react组件中的插槽包囊层的标签设置
547
549
// 以下设置将设置插槽的包囊层div的display为inline-block
548
550
slotWrapAttrs: {
549
- style: ' display:inline-block'
551
+ style: {
552
+ display: ' inline-block'
553
+ }
550
554
},
551
555
},
552
556
})
@@ -560,9 +564,15 @@ const originOptions = {
560
564
slotWrap: ' div' ,
561
565
componentWrapAttrs: {
562
566
__use_react_component_wrap: ' ' ,
567
+ style: {
568
+ all: ' unset'
569
+ }
563
570
},
564
571
slotWrapAttrs: {
565
572
__use_react_slot_wrap: ' ' ,
573
+ style: {
574
+ all: ' unset'
575
+ }
566
576
}
567
577
},
568
578
vue: {
@@ -575,9 +585,15 @@ const originOptions = {
575
585
},
576
586
componentWrapAttrs: {
577
587
' data-use-vue-component-wrap' : ' ' ,
588
+ style: {
589
+ all: ' unset' ,
590
+ }
578
591
},
579
592
slotWrapAttrs: {
580
593
' data-use-vue-slot-wrap' : ' ' ,
594
+ style: {
595
+ all: ' unset'
596
+ }
581
597
}
582
598
}
583
599
}
You can’t perform that action at this time.
0 commit comments