|
@@ -14,7 +14,7 @@ const components = {
|
|
|
|
|
|
//表单渲染
|
|
|
export default class HTableForm {
|
|
|
- static createForm({template, tableForm, appId, onRight}) {
|
|
|
+ static createForm({template, tableForm, appId, onRight, onBlur}) {
|
|
|
const app = createApp({
|
|
|
data() {
|
|
|
return {
|
|
@@ -77,8 +77,10 @@ export default class HTableForm {
|
|
|
},
|
|
|
//失去焦点事件
|
|
|
getRegularExpression(event, reg, msg) {
|
|
|
- //const KeyName = event?.target?.getAttribute('keyname') || ''
|
|
|
- //console.log(KeyName,reg,msg)
|
|
|
+ const KeyName = event?.target?.getAttribute('keyname') || ''
|
|
|
+ if (onBlur) {
|
|
|
+ onBlur(event, KeyName, reg, msg)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|