File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed
react/src/components/FieldPluginExample
vue2/src/components/FieldPluginExample
vue3/src/components/FieldPluginExample Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,7 @@ function ModalCloseButton() {
55
55
} ,
56
56
setup ( { container, actions } ) {
57
57
container . querySelector ( '.btn-close' ) . addEventListener ( 'click' , ( ) => {
58
- actions . setModalOpen ( ! currentData . isModalOpen , {
59
- width : '50%' ,
60
- } )
58
+ actions . setModalOpen ( ! currentData . isModalOpen )
61
59
} )
62
60
} ,
63
61
update ( { container, data } ) {
@@ -116,7 +114,7 @@ function ModalToggle() {
116
114
container
117
115
. querySelector ( '.btn-modal-toggle' )
118
116
. addEventListener ( 'click' , ( ) => {
119
- actions . setModalOpen ( ! currentData . isModalOpen , { width : '50%' } )
117
+ actions . setModalOpen ( ! currentData . isModalOpen )
120
118
} )
121
119
} ,
122
120
update ( { container, data } ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const ModalToggle: FunctionComponent<{
11
11
< button
12
12
className = "btn w-full"
13
13
type = "button"
14
- onClick = { ( ) => setModalOpen ( ! isModalOpen , { width : '50%' } ) }
14
+ onClick = { ( ) => setModalOpen ( ! isModalOpen ) }
15
15
>
16
16
{ isModalOpen ? 'Close' : 'Open' } modal
17
17
</ button >
Original file line number Diff line number Diff line change 4
4
<button
5
5
class =" btn w-full"
6
6
type =" button"
7
- @click =" () => setModalOpen(!isModalOpen, { width: '50%' } )"
7
+ @click =" () => setModalOpen(!isModalOpen)"
8
8
>
9
9
{{ isModalOpen ? 'Close' : 'Open' }} modal
10
10
</button >
Original file line number Diff line number Diff line change @@ -13,12 +13,7 @@ const props = defineProps<{
13
13
<button
14
14
class =" btn w-full"
15
15
type =" button"
16
- @click ="
17
- () =>
18
- props.setModalOpen(!props.isModalOpen, {
19
- width: '50%',
20
- })
21
- "
16
+ @click =" () => props.setModalOpen(!props.isModalOpen)"
22
17
>
23
18
{{ props.isModalOpen ? 'Close' : 'Open' }} modal
24
19
</button >
You can’t perform that action at this time.
0 commit comments