[新增] checkbox 组件 待完成 menu 组件

This commit is contained in:
就眠仪式
2021-09-30 01:44:02 +08:00
parent 14908eea6a
commit e65a4e7588
15 changed files with 307 additions and 23 deletions

9
src/module/form/index.ts Normal file
View File

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

View File

@@ -0,0 +1,9 @@
<template>
<form class="layui-form">
<slot></slot>
</form>
</template>
<script setup name="LayForm" lang="ts">
</script>