8000 feat: add base implementation with sfc and tsx examples · allindevelopers/vue-local-scope@fd7f50c · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fd7f50c

Browse files
committed
feat: add base implementation with sfc and tsx examples
1 parent e85acb0 commit fd7f50c

16 files changed

+804
-158
lines changed

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
65
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
76
<title>Vite + Vue + TS</title>
87
</head>

lib/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as LocalScope } from "./local-scope.component.vue";

lib/local-scope.component.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script setup lang="ts" generic="T">
2+
defineOptions({ inheritAttrs: false });
3+
defineProps</* @vue-ignore */ T>();
4+
defineSlots<{ default?(< 4EA2 span class="pl-v">props: T): any }>();
5+
</script>
6+
7+
<template>
8+
<slot v-bind="$attrs as T" />
9+
</template>

0 commit comments

Comments
 (0)
0