Skip to content

Commit 4cf233f

Browse files
committed
remove useless slots
1 parent 81a0c37 commit 4cf233f

File tree

6 files changed

+13
-56
lines changed

6 files changed

+13
-56
lines changed

dist/VueFinalModal.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/content/en/slots.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

lib/VueFinalModal.vue

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,15 @@
4141
tabindex="-1"
4242
@click="onClickContainer"
4343
>
44-
<slot name="content-before" />
45-
<slot name="content">
46-
<div
47-
ref="vfmContent"
48-
body-scroll-lock-ignore
49-
class="vfm__content vfm--cursor-auto"
50-
:class="[contentClass, { 'vfm--prevent-auto': preventClick }]"
51-
@click.stop
52-
>
53-
<slot />
54-
</div>
55-
</slot>
56-
<slot name="content-after" />
44+
<div
45+
ref="vfmContent"
46+
body-scroll-lock-ignore
47+
class="vfm__content vfm--cursor-auto"
48+
:class="[contentClass, { 'vfm--prevent-auto': preventClick }]"
49+
@click.stop
50+
>
51+
<slot />
52+
</div>
5753
</div>
5854
</transition>
5955
</div>

0 commit comments

Comments
 (0)