@hippy/vue-next v3.0.2-beta.11
@hippy/vue-next
Introduction
This package implements the logic of core runtime based on the custom renderer createRenderer
provided by vue3, so no intrusive modifications are made to vue3 framework. Moreover, the whole project is implemented based on TypeScript. Through the type system of TypeScript, code can be better constrained and development quality can be improved.
Usage
// app.ts
import { defineComponent, ref } from 'vue';
import { type HippyApp, createApp } from '@hippy/vue-next';
// create hippy app instance
const app: HippyApp = createApp(defineComponent({
setup() {
const counter = ref(0);
return {
counter,
}
}
}), {
appName: 'Demo',
});
// start hippy app
app.$start().then(({ superProps, rootViewId }) => {
// mount hippy app and render to native
app.mount('#mount');
})
// extend custom nativeapis and components
declare module '@hippy/vue-next' {
export interface NativeInterfaceMap {
// custom nativeapis
}
export interface HippyGlobalEventHandlersEventMap {
// events used by custom components
}
}
This is the simple usage. For more detail, please read the doc or try demo.
19 days ago
19 days ago
21 days ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
4 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
9 months ago
9 months ago
10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago