mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-08 21:39:32 +08:00
25 lines
477 B
Vue
25 lines
477 B
Vue
<template>
|
|
<TMagicOption
|
|
v-for="option in options"
|
|
:label="option.text"
|
|
:value="option.value"
|
|
:key="valueKey ? option.value[valueKey] : option.value"
|
|
:disabled="option.disabled"
|
|
></TMagicOption>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { TMagicOption } from '@tmagic/design';
|
|
|
|
import { SelectOption } from '../schema';
|
|
|
|
defineOptions({
|
|
name: 'MFormSelectOptions',
|
|
});
|
|
|
|
defineProps<{
|
|
options: SelectOption[];
|
|
valueKey?: string;
|
|
}>();
|
|
</script>
|