|
@@ -1,9 +1,10 @@
|
|
|
<script setup lang="ts">
|
|
|
- import { onMounted } from 'vue';
|
|
|
- import { KKAudio } from '@kankan/components';
|
|
|
+ import { onMounted, VNode } from 'vue';
|
|
|
+ import { UIAudio, UIIcon } from '@kankan/components';
|
|
|
+ // import { buildProps } from '@kankan/utils';
|
|
|
// import { h } from 'vue';
|
|
|
// import * as KanKanSDK from '@kankan/sdk';
|
|
|
- // console.log('KKAudio', KanKanSDK);
|
|
|
+ console.log('UI', UIAudio, UIIcon);
|
|
|
|
|
|
onMounted(async () => {
|
|
|
const KanKan = (window as any).KanKan;
|
|
@@ -19,22 +20,26 @@
|
|
|
// });
|
|
|
// app.use(KKAudio);
|
|
|
|
|
|
- console.log(app);
|
|
|
-
|
|
|
// console.log('kankan', KKAudio);
|
|
|
// const res = await kankan.use(KKAudio.render());
|
|
|
// console.log('11', res);
|
|
|
- // app.use('TagEditor');
|
|
|
+ app.use('TagEditor');
|
|
|
|
|
|
const TagView = await app.use('TagView', {
|
|
|
- render: (data) => {
|
|
|
+ render: (data: VNode) => {
|
|
|
console.log('data', data.type);
|
|
|
},
|
|
|
});
|
|
|
- TagView.on('click', (event) => {
|
|
|
+
|
|
|
+ TagView.on('click', (event: Event) => {
|
|
|
console.log('event', event);
|
|
|
- debugger;
|
|
|
+ // debugger;
|
|
|
});
|
|
|
+ console.log('1app', app);
|
|
|
+
|
|
|
+ const TagEditor = await app.TagManager.editor.promise();
|
|
|
+ console.log('TagEditor', TagEditor);
|
|
|
+ // TagEditor.enter();
|
|
|
|
|
|
console.log('TagView', TagView);
|
|
|
// .then(function () {
|