App.vue 934 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <script setup lang="ts">
  2. import { onMounted, inject } from 'vue'
  3. import { UIAudio, UIButton, UIIcon, UIInput } from '@kankan-components/components'
  4. import Tags from './components/tag/Tags.vue'
  5. // import { buildProps } from '@kankan-components/utils';
  6. // import { h } from 'vue';
  7. // import * as KanKanSDK from '@kankan/sdk';
  8. // console.log('UI', UIAudio, UIIcon)
  9. onMounted(async () => {
  10. const __sdk: any = inject('__sdk')
  11. __sdk.mount('#scene').render()
  12. })
  13. </script>
  14. <template>
  15. <div id="scene">
  16. <Tags />
  17. </div>
  18. <div id="scene-front">
  19. <UIAudio src="http://samplelib.com/lib/preview/mp3/sample-3s.mp3" />
  20. <UIButton>djdjddd</UIButton>
  21. <UIIcon type="checkbox" :size="129" />
  22. <UIInput type="radio" />
  23. </div>
  24. </template>
  25. <style scoped>
  26. #scene {
  27. width: 100vw;
  28. height: 100vh;
  29. }
  30. #scene-front {
  31. position: absolute;
  32. left: 0;
  33. top: 0;
  34. z-index: 2;
  35. }
  36. </style>