牛逼已成
This commit is contained in:
@@ -36,6 +36,25 @@ Vue.prototype.$multipleStoreBoard = Vue.observable({
|
||||
Vue.prototype.$storeBoard = Vue.observable({
|
||||
search: {}
|
||||
})
|
||||
Vue.component("tableColumn", {
|
||||
props: {
|
||||
column: {default: () => ({})}
|
||||
},
|
||||
render(h) {
|
||||
const config = this.$props.column
|
||||
return h('el-table-column', {props: config},
|
||||
config.children?.map(col => h("tableColumn", {props: {column: col}})) || h('template', {
|
||||
slotScope: {
|
||||
default: ({row}) => {
|
||||
config.custom ? h('div', {style: {color: row.preSaleNum > row.stockNum ? 'red' : '#fff'}}, '周边库存情况') :
|
||||
h('span', row[config.prop] || '')
|
||||
}
|
||||
}
|
||||
}))
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
export default Promise.all([
|
||||
import("./fetch"),
|
||||
...libs.map(url => new Promise(resolve => {
|
||||
|
||||
Reference in New Issue
Block a user