Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f86169d

Browse files
committed
+++
1 parent bebeb83 commit f86169d

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,13 +540,17 @@ const VueComponentInReact = applyVueInReact(VueComponent, {
540540
// react.componentWrapAttrs代表是vue组件在react组件中的组件包囊层的标签设置
541541
// 以下设置将设置组件的包囊层div的display为inline-block
542542
componentWrapAttrs: {
543-
style: 'display:inline-block',
543+
style: {
544+
display: 'inline-block'
545+
},
544546
class: 'react-wrap-vue-component-1'
545547
},
546548
// react.slotWrapAttrs代表是vue组件在react组件中的插槽包囊层的标签设置
547549
// 以下设置将设置插槽的包囊层div的display为inline-block
548550
slotWrapAttrs: {
549-
style: 'display:inline-block'
551+
style: {
552+
display: 'inline-block'
553+
}
550554
},
551555
},
552556
})
@@ -560,9 +564,15 @@ const originOptions = {
560564
slotWrap: 'div',
561565
componentWrapAttrs: {
562566
__use_react_component_wrap: '',
567+
style: {
568+
all: 'unset'
569+
}
563570
},
564571
slotWrapAttrs: {
565572
__use_react_slot_wrap: '',
573+
style: {
574+
all: 'unset'
575+
}
566576
}
567577
},
568578
vue: {
@@ -575,9 +585,15 @@ const originOptions = {
575585
},
576586
componentWrapAttrs: {
577587
'data-use-vue-component-wrap': '',
588+
style: {
589+
all: 'unset',
590+
}
578591
},
579592
slotWrapAttrs: {
580593
'data-use-vue-slot-wrap': '',
594+
style: {
595+
all: 'unset'
596+
}
581597
}
582598
}
583599
}

0 commit comments

Comments
 (0)