mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 09:57:37 +00:00
no message
This commit is contained in:
parent
c0fe4a2bcb
commit
5d5b1000fe
14
resources/assets/js/functions/web.js
vendored
14
resources/assets/js/functions/web.js
vendored
@ -864,6 +864,14 @@
|
||||
}
|
||||
if (typeof config === "string") config = {title:config};
|
||||
let inputId = "modalInput_" + $A.randomString(6);
|
||||
let inputProps = {
|
||||
value: config.value,
|
||||
placeholder: $A.L(config.placeholder),
|
||||
elementId: inputId,
|
||||
}
|
||||
if ($A.isJson(config.inputProps)) {
|
||||
inputProps = Object.assign(inputProps, config.inputProps)
|
||||
}
|
||||
const onOk = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!config.onOk) {
|
||||
@ -905,11 +913,7 @@
|
||||
}
|
||||
}, $A.L(config.title)),
|
||||
h('Input', {
|
||||
props: {
|
||||
value: config.value,
|
||||
placeholder: $A.L(config.placeholder),
|
||||
elementId: inputId,
|
||||
},
|
||||
props: inputProps,
|
||||
on: {
|
||||
input: (val) => {
|
||||
config.value = val;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user