experiments(dui3): wip ITestBinding + page

This commit is contained in:
Dimitrie Stefanescu
2023-07-14 11:39:47 +01:00
parent 77aad568bc
commit fd46eaebe6
3 changed files with 15 additions and 0 deletions
@@ -2,6 +2,7 @@ export interface ITestBinding {
sayHi: (name: string, count: number, sayHelloNotHi: boolean) => Promise<string[]>
goAway: () => Promise<void>
getComplexType: () => Promise<ComplexType>
triggerEvent: (eventName: string) => Promise<void>
on: <E extends keyof ITestBindingEvents>(
event: E,
callback: ITestBindingEvents[E]
+3
View File
@@ -10,6 +10,9 @@
Hello world! You have
{{ accounts.length }} accounts.
</div>
<div>
<FormButton to="/test">Go To Test Bindings Page</FormButton>
</div>
<div v-for="acc in accounts" :key="acc.accountInfo.id">
<div class="truncate text-xs">
{{ acc.accountInfo.userInfo.email }} @
+11
View File
@@ -0,0 +1,11 @@
<template>
<div>Hello test bindings page!</div>
<div><FormButton size="xs">sayHi</FormButton></div>
<div><FormButton size="xs">goAway</FormButton></div>
<div><FormButton size="xs">getComplexType</FormButton></div>
<div><FormButton size="xs">SayHi</FormButton></div>
<hr />
<div><FormButton size="xs">Trigger empty test event</FormButton></div>
<div><FormButton size="xs">Trigger test event</FormButton></div>
</template>
<script setup lang="ts"></script>