mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-12-01 19:28:37 +00:00
19 lines
457 B
JavaScript
19 lines
457 B
JavaScript
|
import { Common } from '../../components/index.js'
|
||
|
|
||
|
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
|