Skip to content

Commit 8d4d045

Browse files
committed
feat(uac): add Ad
1 parent ab2f5c5 commit 8d4d045

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<script setup lang="ts">
2+
import type { AdProps } from "@uni-helper/uni-app-types";
3+
4+
defineOptions({
5+
name: "Ad",
6+
});
7+
8+
const props = defineProps<AdProps>();
9+
</script>
10+
11+
<template>
12+
<ad :props>
13+
<slot></slot>
14+
</ad>
15+
</template>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { AdInstance } from "@uni-helper/uni-app-types";
2+
import Ad from "./Ad.vue";
3+
4+
export default Ad;
5+
6+
export { Ad, type AdInstance };

packages/uni-app-components/src/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ export * from "./AdFullscreenVideo";
44
export * from "./AdInteractive";
55
export * from "./AdInterstitial";
66
export * from "./AdRewardedVideo";
7+
export * from "./Ad";
78
export * from "./View";
89
export * from "./Input";

0 commit comments

Comments
 (0)