How to use the @ams-team/ams.configs function in @ams-team/ams

To help you get started, we’ve selected a few @ams-team/ams examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vipshop / ams / packages / block-chart / src / block.vue View on Github external
created() {
        const autoResizeRender = ams.configs && ams.configs['block_chart'] && ams.configs['block_chart']['resize-render'];
        if (autoResizeRender !== false) {
            const { addEvent, debounce } = ams.utils;
            addEvent(window, 'resize', debounce(() => {
                this.chartDom && this.chartDom.resize();
            }, 100));
        }
    },
    updated() {