[新增] scroll 组件
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
9
src/module/scroll/index.ts
Normal file
9
src/module/scroll/index.ts
Normal 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
|
||||
7
src/module/scroll/index.vue
Normal file
7
src/module/scroll/index.vue
Normal file
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div class="layui-side-scroll"></div>
|
||||
</template>
|
||||
|
||||
<script setup name="LayScroll" lang="ts">
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user