[新增] card 卡片组件
This commit is contained in:
parent
80952a2172
commit
1cee98414e
9
src/module/col/index.ts
Normal file
9
src/module/col/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 || 'LayCol', Component)
|
||||
}
|
||||
|
||||
export default Component as IDefineComponent
|
9
src/module/col/index.vue
Normal file
9
src/module/col/index.vue
Normal file
@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div class="layui-col">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="LayCol" lang="ts">
|
||||
|
||||
</script>
|
@ -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
9
src/module/row/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 || 'LayRow', Component)
|
||||
}
|
||||
|
||||
export default Component as IDefineComponent
|
9
src/module/row/index.vue
Normal file
9
src/module/row/index.vue
Normal file
@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div class="layui-row">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="LayRow" lang="ts">
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user