add alpha branch

This commit is contained in:
就眠儀式
2022-01-27 16:18:16 +08:00
parent 5c79b2b9ba
commit 5ea8b7bf7c
103 changed files with 577 additions and 474 deletions

View File

@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
import type { IDefineComponent } from "../type/index";
Component.install = (app: App) => {
app.component(Component.name || "LaySelectOption", Component);
app.component(Component.name, Component);
};
export default Component as IDefineComponent;
export default Component;

View File

@@ -24,7 +24,7 @@ export default {
<script setup lang="ts">
import LayCheckbox from "../checkbox";
import { SelectItem, SelectItemHandle, SelectItemPush } from "../type";
import { SelectItem, SelectItemHandle, SelectItemPush } from "../../types";
import { computed, defineProps, inject, onMounted, Ref } from "vue";
const props = withDefaults(
@@ -72,6 +72,7 @@ const callSelectItemPush = function () {
label: props.label,
disabled: props.disabled,
};
// @ts-ignore
selectItemPush(item);
};
onMounted(() => {