Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit 86daa2e

Browse files
author
Kadir Yazıcı
committed
v0.1.3 tag support
1 parent df78882 commit 86daa2e

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.3
2+
3+
- Add `tag` prop support.
4+
15
## 0.1.1 / 0.1.2
26

37
- Fixed typings.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simplebar-vue3",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"main": "./dist/simplebar-vue3.umd.js",
55
"module": "./dist/simplebar-vue3.es.js",
66
"types": "./dist/lib.d.ts",

src/ScrollView.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ onDeactivated(() => {
6868
</script>
6969

7070
<template>
71-
<div ref="element">
71+
<Component :is="tag" ref="element">
7272
<slot />
73-
</div>
73+
</Component>
7474
</template>

test/App.vue

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const log = console.log;
2323
<KeepAlive>
2424
<ScrollView
2525
v-if="isOpen"
26+
tag="section"
2627
:ref="log"
2728
@scroll="log"
2829
@created="log"

0 commit comments

Comments
 (0)