mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-05 23:27:31 +08:00
Fix names and strings
This commit is contained in:
@@ -72,7 +72,7 @@ export default class IInputPinTemplate extends PinTemplate {
|
||||
* @param {PinElement} pin
|
||||
*/
|
||||
getInputs(pin) {
|
||||
return this.#inputContentElements.map(element => Utility.encodeInputString(element.innerText))
|
||||
return this.#inputContentElements.map(element => Utility.encodeInputString(element.textContent))
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,8 +80,8 @@ export default class IInputPinTemplate extends PinTemplate {
|
||||
* @param {String[]?} values
|
||||
*/
|
||||
setInputs(pin, values = []) {
|
||||
pin.entity.DefaultValue = this.getInput(pin)
|
||||
this.#inputContentElements.forEach((element, i) => element.innerText = Utility.decodeInputString(values[i]))
|
||||
pin.entity.DefaultValue = this.getInput(pin)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user