<template>
    <div style="width: 100%">
        <Container>
            <div>
                <Select v-model="value" style="width:96.5%;" >
                    <Option v-for="item in optionsData" :value="item.value||''" :key="item.value">{{ item.key }}</Option>
                </Select>
            </div>
        </Container>
    </div>
</template>

<script>
import * as components from './style';
import {PropertyMixin} from '../../service/main-tool-editor-type-mixin';
export default {
    components: {
        ...components
    },
    mixins: [PropertyMixin],
    position: 'mainToolEditorTypeIconBtnTypeSelect',
    name: 'main-tool-editor-type-iconBtnTypeSelect',
    data () {
        return {
            propArr:[]
        };
    },
    props: {
        instanceInfo: Object,
        editor: Object
    },
    computed: {
        applicationState () {
            return this.$store.state.application;
        },
        viewportState () {
            return this.$store.state.viewport;
        },
        optionsData () {
            let _data = this.propArr || [];
            return _data;
        }
    },
    methods: {
        // change_status(val){  // 筛选状态
        //
        //     console.log(this.val);
        //     this.val=val;
        //     this.setInstanceProps(this.val);
        // },
        handleChange () {

        }
    },
    mounted(){

        let _this=this;
            _this.propArr=configPageIde.iconBtnType;
            _this.initCurrtField();
    },
    watch: {
        value (n, o) {
            if (n === o) {
                return;
            }
            this.setInstanceProps(n);
        }
    }
};
</script>

<style>

</style>
