Sha256: 23de3930bb09b728de3602111780a3f679dded482984689bab3af9fa845d685c
Contents?: true
Size: 399 Bytes
Versions: 14
Compression:
Stored size: 399 Bytes
Contents
import Vue from 'vue'; export default Vue.component('asset-index', { props: { assets: { coerce: (val) => JSON.parse(val) }, editPath: true }, methods: { editUrl: function(asset) { return this.editPath.replace(/~id/, asset.id); }, afterUpload: function(asset) { this.assets.unshift(asset); this.assets = this.assets.slice(0, 20); } } })
Version data entries
14 entries across 14 versions & 1 rubygems