[文档] 新增顶部选择

This commit is contained in:
就眠仪式
2021-10-06 23:22:30 +08:00
parent ed2b2b398e
commit 478450b94a
7 changed files with 300 additions and 40 deletions

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

View File

@@ -0,0 +1,12 @@
<template>
<i class="layui-icon" :class="[type]"></i>
</template>
<script setup name="LayIcon" lang="ts">
import { defineProps } from 'vue'
const props =
defineProps<{
type?: string
}>()
</script>