[文档] 新增顶部选择
This commit is contained in:
9
src/module/iconPicker/index.ts
Normal file
9
src/module/iconPicker/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 || 'LayIconPicker', Component)
|
||||
}
|
||||
|
||||
export default Component as IDefineComponent
|
||||
12
src/module/iconPicker/index.vue
Normal file
12
src/module/iconPicker/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user