mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17: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 { ElOption } from 'element-plus';
|
||||||
import { defineComponent } from 'vue';
|
|
||||||
|
|
||||||
export default defineComponent({
|
defineProps({
|
||||||
components: {
|
|
||||||
ElOption,
|
|
||||||
},
|
|
||||||
props: {
|
|
||||||
...ElOption.props,
|
...ElOption.props,
|
||||||
},
|
value: { type: [String, Number], required: true },
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ElOption v-bind="{ ...$props, ...$attrs }"><slot /></ElOption>
|
<ElOption v-bind="{ ...$props, ...$attrs }" :value="value"><slot /></ElOption>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue