import Magix from 'magix' import View from 'dmp-new/view' Magix.applyStyle('@../summary.less') Magix.applyStyle('@./arrow.less') export default View.extend({ tmpl: '@arrow.html', init(options) { this.options = options }, async render() { const loc = Magix.Router.parse() const { config } = this.options const arrows = [ { background: '#ccc', key: 'total' }, { background: '#ccc', key: 'new' }, { background: '#ccc', key: 'stock' } ] this.updater.digest({ arrows, config }) } })