mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-16 02:10:38 +08:00
WIP
This commit is contained in:
@@ -8,6 +8,10 @@ import PinTemplate from "./PinTemplate"
|
||||
*/
|
||||
export default class StringPinTemplate extends PinTemplate {
|
||||
|
||||
hasInput() {
|
||||
return true
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {PinElement} pin
|
||||
*/
|
||||
@@ -16,8 +20,9 @@ export default class StringPinTemplate extends PinTemplate {
|
||||
return html`
|
||||
<span class="ueb-pin-input">
|
||||
<span class="ueb-pin-input-content" role="textbox" contenteditable="true"
|
||||
onkeydown="${stopEventPropagation}" onkeyup="${stopEventPropagation}"
|
||||
oncopy="${stopEventPropagation}" onpaste="${stopEventPropagation}"></span>
|
||||
onfocus="_ => this.closest('ueb-blueprint').editText = true"
|
||||
onfocusout="_ => this.closest('ueb-blueprint').editText = false"
|
||||
></span>
|
||||
</span>
|
||||
`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user