[新增] select option 组件

This commit is contained in:
就眠仪式
2021-10-03 00:52:06 +08:00
parent 895bed093c
commit 69878c2c42
5 changed files with 32 additions and 7 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 || 'LaySelectOption', Component)
}
export default Component as IDefineComponent

View File

@@ -0,0 +1,14 @@
<template>
<dd :value="value">
<slot></slot>
</dd>
</template>
<script setup name="LaySelectOption" lang="ts">
import { defineProps } from 'vue'
const props =
defineProps<{
value?: string
}>()
</script>