pinokiod 1.1.34 → 1.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
const SimpleModal = async (params) => {
|
|
2
|
-
let
|
|
2
|
+
let menu = (params.menu ? params.menu : [])
|
|
3
|
+
let btns = menu.map((item) => {
|
|
3
4
|
if (item.href) {
|
|
4
|
-
|
|
5
|
+
let icon = (item.icon ? `<i class="${item.icon}"></i> ` : "")
|
|
6
|
+
return `<a class='btn' href='${item.href}' target='_blank'>${icon}${item.text}</a>`
|
|
5
7
|
} else if (item.action) {
|
|
6
8
|
return `<a class='btn' target='_blank'>${item.text}</a>`
|
|
7
9
|
}
|
|
8
10
|
}).join("")
|
|
9
11
|
await Swal.fire({
|
|
10
|
-
title: params.title,
|
|
11
|
-
confirmButtonText: '
|
|
12
|
+
title: params.title || " ",
|
|
13
|
+
confirmButtonText: 'Next',
|
|
12
14
|
html: `<div class='simple-modal-desc'>
|
|
13
|
-
${params.description}
|
|
15
|
+
${params.description || ""}
|
|
14
16
|
</div>
|
|
15
17
|
<div class='simple-modal-content'>${btns}</div>`,
|
|
16
18
|
// showConfirmButton: false,
|