Frontrend Vol.11
2017年度フロントエンド大反省会
{
count: number
inc: (
payload: { amount: number }
): void
}
inc(1)
<button>
+
@click
inc(1)
<button>
+
@click
inc(1)
import __Component from "./CountButton.vue";
import {
__vlsRenderHelper,
__vlsComponentHelper
} from "vue-editor-bridge";
__vlsRenderHelper(__Component, function () {
__vlsComponentHelper("button", {
props: {},
on: {
click: ($event: Event) => {
this.inc(1);
}
}
}, ["+"]);
});