Slide 22
Slide 22 text
ιʔείʔυ͔ΒQSPQTTMPUTFNJUTͷܕΛநग़
import {
defineComponentEmits,
defineComponentProps,
defineComponentSlots,
} from '~util';
export const tagName = 'my-checkbox';
export const props = defineComponentProps<{
checked: boolean;
}>({
checked: false,
});
export const slots = defineComponentSlots<{
default: () => void;
}>();
export const emit = defineComponentEmits<{
changed: boolean | 'indeterminate';
}>();
{
"schemaVersion": "1.0.0",
"modules": [
{
"kind": "javascript-module",
"declarations": [
{
"kind": "class",
"customElement": true,
"tagName": "my-checkbox",
"attributes": [
{
"name": "checked",
"fieldName": "checked",
"type": {
"text": "boolean"
},
"default": "false"
}
],
"slots": [],
"events": [
{
"name": "changed",
"type": {
"text": "CustomEvent"
}