Files
17168ERP/web/App_Script/sweetalert2-9.10.9/src/instanceMethods/getInput.js
2025-08-29 01:27:25 +08:00

13 lines
446 B
JavaScript

import * as dom from '../utils/dom/index.js'
import privateProps from '../privateProps.js'
// Get input element by specified type or, if type isn't specified, by params.input
export function getInput (instance) {
const innerParams = privateProps.innerParams.get(instance || this)
const domCache = privateProps.domCache.get(instance || this)
if (!domCache) {
return null
}
return dom.getInput(domCache.content, innerParams.input)
}