mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
refactor: Migrate Option
to composition API (no-changelog) (#9754)
This commit is contained in:
parent
ac7a561379
commit
ed2ad6c7ba
|
@ -1,17 +1,12 @@
|
|||
<script lang="ts">
|
||||
<script setup lang="ts">
|
||||
import { ElOption } from 'element-plus';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
ElOption,
|
||||
},
|
||||
props: {
|
||||
defineProps({
|
||||
...ElOption.props,
|
||||
},
|
||||
value: { type: [String, Number], required: true },
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ElOption v-bind="{ ...$props, ...$attrs }"><slot /></ElOption>
|
||||
<ElOption v-bind="{ ...$props, ...$attrs }" :value="value"><slot /></ElOption>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue