<script>
import numberbox from "./numberbox.vue";
export default {
    name: "NumberBoxV1",
    extends: numberbox,
    methods: {
        init() {
            // 获取默认属性
            this.myConfig = Object.assign({}, this.globalConfig, this.myConfig);

            // 获取动态属性
            if (this.config) {
                this.myConfig = Object.assign({}, this.myConfig, this.config);
            }

            this.myConfig.place = "unset";

            if (this.customInit) {
                this.customInit();
            }
        },
        parser(event) {
            this.label = this.getValueNumber(this.value);
            if (event) {
                const currentTarget = event.currentTarget;
                setTimeout(() => {
                    currentTarget.select();
                }, 0);
            }
        },
    },
    // mounted() {
    //     // console.log("我继承覆写了");
    // },
    // beforeUnmount() {
    //     // console.log("我销毁了");
    // },
};
</script>
