update components
This commit is contained in:
parent
47a5078596
commit
ecbff1ca26
12 changed files with 280 additions and 144 deletions
|
@ -1,5 +1,10 @@
|
|||
define([], function () {
|
||||
|
||||
function replaceAll(str, find, replace) {
|
||||
|
||||
return str.split(find).join(replace);
|
||||
}
|
||||
|
||||
return function (options) {
|
||||
|
||||
if (typeof options === 'string') {
|
||||
|
@ -9,7 +14,8 @@ define([], function () {
|
|||
};
|
||||
}
|
||||
|
||||
var result = confirm(options.text);
|
||||
var text = replaceAll(options.text || '', '<br/>', '\n');
|
||||
var result = confirm(text);
|
||||
|
||||
if (result) {
|
||||
return Promise.resolve();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue