Acme.BookStore.HttpApi.Host/node_modules/sweetalert2/src/utils/dom/renderers/renderContent.js
(完整代码) 623Bimport * as dom from '../../dom/index.js'
import { renderInput } from './renderInput.js'
export const renderContent = (instance, params) => {
const htmlContainer = dom.getHtmlContainer()
dom.applyCustomClass(htmlContainer, params, 'htmlContainer')
// Content as HTML
if (params.html) {
dom.parseHtmlToContainer(params.html, htmlContainer)
dom.show(htmlContainer, 'block')
// Content as plain text
} else if (params.text) {
htmlContainer.textContent = params.text
dom.show(htmlContainer, 'block')
// No content
} else {
dom.hide(htmlContainer)
}
renderInput(instance, params)
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
