[新增] card 卡片组件

This commit is contained in:
就眠仪式 2021-09-27 08:49:54 +08:00
parent 80952a2172
commit 1cee98414e
5 changed files with 37 additions and 1 deletions

9
src/module/col/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 || 'LayCol', Component)
}
export default Component as IDefineComponent

9
src/module/col/index.vue Normal file
View File

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

View File

@ -1,6 +1,6 @@
import type { App } from 'vue'
import Component from './index.vue'
import type { IDefineComponent } from '../../type/index'
import type { IDefineComponent } from '../type/index'
Component.install = (app: App) => {
app.component(Component.name || 'LayRadio ', Component)

9
src/module/row/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 || 'LayRow', Component)
}
export default Component as IDefineComponent

9
src/module/row/index.vue Normal file
View File

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