Skip to content

Commit

Permalink
feat(uac): add Ad
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Sep 5, 2024
1 parent ab2f5c5 commit 8d4d045
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/uni-app-components/src/components/Ad/Ad.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script setup lang="ts">
import type { AdProps } from "@uni-helper/uni-app-types";
defineOptions({
name: "Ad",
});
const props = defineProps<AdProps>();
</script>

<template>
<ad :props>
<slot></slot>
</ad>
</template>
6 changes: 6 additions & 0 deletions packages/uni-app-components/src/components/Ad/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { AdInstance } from "@uni-helper/uni-app-types";
import Ad from "./Ad.vue";

export default Ad;

export { Ad, type AdInstance };
1 change: 1 addition & 0 deletions packages/uni-app-components/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export * from "./AdFullscreenVideo";
export * from "./AdInteractive";
export * from "./AdInterstitial";
export * from "./AdRewardedVideo";
export * from "./Ad";
export * from "./View";
export * from "./Input";

0 comments on commit 8d4d045

Please # to comment.