import Magix from 'magix' import * as View from '../../../view' Magix.applyStyle('@./coordinate-setting.less') export default View.extend({ tmpl: '@coordinate-setting.html', init (options) { this.options = options }, render () { const { config } = this.options // if (config.showCompare) { // config.coords.push({ // name: 'TGI', // value: 'tgi' // }) // } this.updater.digest({ config }) }, 'cancel' (e) { this.options.dialog.close() }, 'confirm' (e) { this.options.dialog.afterClose(() => { this.options.callback() }) this.options.dialog.close() } })