牛逼已成

This commit is contained in:
2024-06-29 13:30:06 +08:00
parent 6fb8506f4f
commit fda8e1e999
2 changed files with 37 additions and 22 deletions

View File

@@ -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 => {