[新增] select option 组件
This commit is contained in:
9
src/module/selectOption/index.ts
Normal file
9
src/module/selectOption/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 || 'LaySelectOption', Component)
|
||||
}
|
||||
|
||||
export default Component as IDefineComponent
|
||||
14
src/module/selectOption/index.vue
Normal file
14
src/module/selectOption/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user