<template>
    <el-select v-model="nv">
      <slot></slot>
    </el-select>
</template>

<script>
import {defineComponent} from 'vue';

export default defineComponent({
    name: 'Myselect',
    emits: ['update:modelValue', 'change'],
    props: {
        modelValue: [String, Function],
        options:Array,
        // name: String,
        // args: Array,
        // title: String,
        // body: Boolean,
        // fnx: Boolean,
        // defaultValue: {
        //     require: false
        // },
        // validate: Function,
    },

    data() {
        return {
            nv:null
        };
    },
    watch: {
        // modelValue(n){
        //     if()
        // }
    },
    mounted(){
        console.log(this.$attrs,'at');
        console.log(this.options,'at');
        
    },
    methods: {
        onOk() {
            this.$emit('update:modelValue', this.value);
        },
    }
});
</script>

<style>

</style>
