This commit is contained in:
7
dist/sigpro.esm.js
vendored
7
dist/sigpro.esm.js
vendored
@@ -559,6 +559,13 @@ var SigPro = Object.freeze({
|
|||||||
Anim,
|
Anim,
|
||||||
Batch
|
Batch
|
||||||
});
|
});
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
Object.assign(window, SigPro);
|
||||||
|
"div span p h1 h2 h3 h4 h5 h6 br hr section article aside nav main header footer ul ol li a em strong pre code form label input textarea select button img svg".split(" ").forEach((t) => {
|
||||||
|
const name = t[0].toUpperCase() + t.slice(1);
|
||||||
|
window[name] = (p, c) => Tag(t, p, c);
|
||||||
|
});
|
||||||
|
}
|
||||||
export {
|
export {
|
||||||
onUnmount,
|
onUnmount,
|
||||||
onMount,
|
onMount,
|
||||||
|
|||||||
2
dist/sigpro.esm.min.js
vendored
2
dist/sigpro.esm.min.js
vendored
File diff suppressed because one or more lines are too long
7
dist/sigpro.js
vendored
7
dist/sigpro.js
vendored
@@ -616,4 +616,11 @@
|
|||||||
Anim,
|
Anim,
|
||||||
Batch
|
Batch
|
||||||
});
|
});
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
Object.assign(window, SigPro);
|
||||||
|
"div span p h1 h2 h3 h4 h5 h6 br hr section article aside nav main header footer ul ol li a em strong pre code form label input textarea select button img svg".split(" ").forEach((t) => {
|
||||||
|
const name = t[0].toUpperCase() + t.slice(1);
|
||||||
|
window[name] = (p, c) => Tag(t, p, c);
|
||||||
|
});
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
2
dist/sigpro.min.js
vendored
2
dist/sigpro.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -616,4 +616,11 @@
|
|||||||
Anim,
|
Anim,
|
||||||
Batch
|
Batch
|
||||||
});
|
});
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
Object.assign(window, SigPro);
|
||||||
|
"div span p h1 h2 h3 h4 h5 h6 br hr section article aside nav main header footer ul ol li a em strong pre code form label input textarea select button img svg".split(" ").forEach((t) => {
|
||||||
|
const name = t[0].toUpperCase() + t.slice(1);
|
||||||
|
window[name] = (p, c) => Tag(t, p, c);
|
||||||
|
});
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
22
sigpro.js
22
sigpro.js
@@ -539,20 +539,18 @@ const Mount = (comp, target) => {
|
|||||||
return inst
|
return inst
|
||||||
}
|
}
|
||||||
|
|
||||||
const SigPro = Object.freeze({
|
const SigPro = Object.freeze({
|
||||||
$, $$, Watch, Tag, Render, If, For, Router, Mount, onMount, onUnmount, Anim, Batch
|
$, $$, Watch, Tag, Render, If, For, Router, Mount, onMount, onUnmount, Anim, Batch
|
||||||
})
|
})
|
||||||
|
|
||||||
// export const initDX = () => {
|
if (typeof window !== "undefined") {
|
||||||
// if (typeof window !== "undefined") {
|
Object.assign(window, SigPro)
|
||||||
// Object.assign(window, SigPro)
|
"div span p h1 h2 h3 h4 h5 h6 br hr section article aside nav main header footer ul ol li a em strong pre code form label input textarea select button img svg"
|
||||||
// "div span p h1 h2 h3 h4 h5 h6 br hr section article aside nav main header footer ul ol li a em strong pre code form label input textarea select button img svg"
|
.split(" ").forEach(t => {
|
||||||
// .split(" ").forEach(t => {
|
const name = t[0].toUpperCase() + t.slice(1)
|
||||||
// const name = t[0].toUpperCase() + t.slice(1)
|
window[name] = (p, c) => Tag(t, p, c)
|
||||||
// window[name] = (p, c) => Tag(t, p, c)
|
})
|
||||||
// })
|
}
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
export { $, $$, Watch, Tag, Render, If, For, Router, Mount, onMount, onUnmount, Anim, Batch }
|
export { $, $$, Watch, Tag, Render, If, For, Router, Mount, onMount, onUnmount, Anim, Batch }
|
||||||
export default SigPro
|
export default SigPro
|
||||||
Reference in New Issue
Block a user