@paircode/ui-modals 0.1.0 → 0.1.1
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/assets/ui-modals.css +1 -1
- package/assets/ui-modals.js +667 -553
- package/client.js +5 -5
- package/package.json +19 -1
package/client.js
CHANGED
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
})
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
const link = document.createElement('link')
|
|
38
|
+
link.rel = 'stylesheet'
|
|
39
|
+
link.href = CSS
|
|
40
|
+
document.head.appendChild(link)
|
|
37
41
|
if (window[GLOBAL]) {
|
|
38
42
|
register()
|
|
39
43
|
} else {
|
|
40
|
-
const link = document.createElement('link')
|
|
41
|
-
link.rel = 'stylesheet'
|
|
42
|
-
link.href = CSS
|
|
43
|
-
document.head.appendChild(link)
|
|
44
44
|
const s = document.createElement('script')
|
|
45
45
|
s.src = JS
|
|
46
46
|
s.onload = register
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
}
|
|
52
52
|
document.head.appendChild(s)
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paircode/ui-modals",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"scope": "global",
|
|
5
5
|
"type": "plugin",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"client": "client.js",
|
|
8
|
+
"dsh": {
|
|
9
|
+
"ui": {
|
|
10
|
+
"platform": "web",
|
|
11
|
+
"slot": "modals",
|
|
12
|
+
"kind": "single",
|
|
13
|
+
"scope": "root",
|
|
14
|
+
"inject": [
|
|
15
|
+
"@paircode/core"
|
|
16
|
+
],
|
|
17
|
+
"immediately": true,
|
|
18
|
+
"build": {
|
|
19
|
+
"entry": "src/ui-main-modals.js",
|
|
20
|
+
"global": "UiModals",
|
|
21
|
+
"outDir": ".pair/plugins/ui-modals/assets",
|
|
22
|
+
"fileName": "ui-modals"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
8
26
|
"description": "6 个全局模态框 + GlobalDialogs + overlay 叠加挂载",
|
|
9
27
|
"keywords": [
|
|
10
28
|
"paircode"
|