miao-plugin/apps/wiki/CharMaterial.js

19 lines
437 B
JavaScript
Raw Normal View History

2023-03-07 17:52:11 +00:00
import { Common } from '#miao'
const CharMaterial = {
async render ({ e, char }) {
let data = char.getData()
return await Common.render('wiki/character-material', {
// saveId: `info-${char.id}`,
data,
attr: char.getAttrList(),
detail: char.getDetail(),
imgs: char.getImgs(),
materials: char.getMaterials(),
elem: char.elem
}, { e, scale: 1.4 })
}
}
export default CharMaterial