doph-js 0.0.2 → 0.0.3
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/dist/dophJs.js +16 -7
- package/dist/dophJs.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components.js +8 -0
- package/src/index.js +12 -6
package/dist/dophJs.js
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as e, createElementBlock as c, normalizeClass as r, renderSlot as a } from "vue";
|
|
2
|
+
const l = {
|
|
3
3
|
__name: "DButton",
|
|
4
4
|
props: {
|
|
5
5
|
class: String
|
|
6
6
|
},
|
|
7
7
|
setup(t) {
|
|
8
|
-
const
|
|
9
|
-
return (
|
|
10
|
-
class:
|
|
8
|
+
const o = t;
|
|
9
|
+
return (n, p) => (e(), c("div", {
|
|
10
|
+
class: r(["button", o.class])
|
|
11
11
|
}, [
|
|
12
|
-
|
|
12
|
+
a(n.$slots, "default")
|
|
13
13
|
], 2));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
+
const s = { DButton: l }, i = {
|
|
17
|
+
install(t) {
|
|
18
|
+
for (const o in s)
|
|
19
|
+
if (s.hasOwnProperty(o)) {
|
|
20
|
+
const n = s[o];
|
|
21
|
+
t.component(n.name, n);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
16
25
|
export {
|
|
17
|
-
|
|
26
|
+
i as default
|
|
18
27
|
};
|
package/dist/dophJs.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module<"u"?module.exports=e(require("vue")):typeof define=="function"&&define.amd?define(["vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,n.DophJs=e(n.Vue))})(this,function(n){"use strict";const e={__name:"DButton",props:{class:String},setup(c){const t=c;return(o,f)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["button",t.class])},[n.renderSlot(o.$slots,"default")],2))}},i="",p="",r="",l="",s={DButton:e};return{install(c){for(const t in s)if(s.hasOwnProperty(t)){const o=s[t];c.component(o.name,o)}}}});
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import components from'./components'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
const plugin = {
|
|
4
|
+
install (Vue) {
|
|
5
|
+
for (const prop in components) {
|
|
6
|
+
if (components.hasOwnProperty(prop)) {
|
|
7
|
+
const component = components[prop]
|
|
8
|
+
Vue.component(component.name, component)
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
7
13
|
|
|
8
|
-
export
|
|
14
|
+
export default plugin
|