This commit is contained in:
zh
2025-08-23 03:25:30 +08:00
2 changed files with 25 additions and 3 deletions

View File

@ -69,6 +69,17 @@ class TextBox extends Base {
that.textDom = dom;
}
async isClick(posi, id) {
let params = [
{
position: posi
},
id,
null
]
this.clickCallBack({ position: posi }, id, null)
}
async setHandeler(data) {
let that = this
@ -118,6 +129,16 @@ class TextBox extends Base {
async returnFun() {
return this.handler
}
get onClick() {
return this.clickCallBack
}
set onClick(val) {
if (val && typeof val !== 'function') {
console.error('val:', val, '不是一个function')
} else {
this.clickCallBack = val
}
}
get show() {
return this.options.show
}