20 lines
448 B
Vue
20 lines
448 B
Vue
import type { ExtractPropTypes } from 'vue';
|
|
import { defineComponent } from 'vue';
|
|
|
|
export const optionProps = {
|
|
value: String,
|
|
disabled: Boolean,
|
|
label: [String, Number, Function],
|
|
};
|
|
|
|
export type OptionProps = Partial<ExtractPropTypes<typeof optionProps>>;
|
|
|
|
export default defineComponent({
|
|
compatConfig: { MODE: 3 },
|
|
name: 'Option',
|
|
props: optionProps,
|
|
render(_props: any, { slots }: any) {
|
|
return slots.default?.();
|
|
},
|
|
});
|