[新增] scroll 组件

This commit is contained in:
就眠仪式
2021-10-03 00:01:14 +08:00
parent ff9ddb6a86
commit 895bed093c
4 changed files with 21 additions and 17 deletions

View File

@@ -40,6 +40,7 @@ import LayBreadcrumb from './module/breadcrumb/index'
import LayBreadcrumbItem from './module/breadcrumbItem/index'
import LayField from './module/field/index'
import LaySelect from './module/select/index'
import LayScroll from './module/scroll/index'
const components: Record<string, IDefineComponent> = {
LayRadio,
@@ -78,7 +79,8 @@ const components: Record<string, IDefineComponent> = {
LayBreadcrumbItem,
LayAvatar,
LayField,
LaySelect
LaySelect,
LayScroll
}
const install = (app: App, options?: InstallOptions): void => {
@@ -131,6 +133,7 @@ export {
LayAvatar,
LayField,
LaySelect,
LayScroll,
install,
}

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 || 'LayScroll', Component)
}
export default Component as IDefineComponent

View File

@@ -0,0 +1,7 @@
<template>
<div class="layui-side-scroll"></div>
</template>
<script setup name="LayScroll" lang="ts">
</script>