@zephyr_zz/zephyr-ui 0.0.13 → 0.0.15
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/zephyr-ui.css +1 -0
- package/dist/zephyr-ui.es.js +20 -15
- package/dist/zephyr-ui.umd.js +1 -2
- package/package.json +1 -1
- package/dist/index.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.zz-button[data-v-7c55743a]{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:.2s}.zz-button--primary[data-v-7c55743a]{background:#409eff;color:#fff}.zz-button--success[data-v-7c55743a]{background:#67c23a;color:#fff}.zz-button--warning[data-v-7c55743a]{background:#e6a23c;color:#fff}.zz-button--danger[data-v-7c55743a]{background:#f56c6c;color:#fff}
|
package/dist/zephyr-ui.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
1
|
+
import './zephyr-ui.css';
|
|
2
|
+
import { defineComponent as c, createElementBlock as r, openBlock as l, normalizeClass as p, renderSlot as u } from "vue";
|
|
3
|
+
const _ = {
|
|
4
4
|
name: "ZzButton"
|
|
5
|
-
},
|
|
6
|
-
...
|
|
5
|
+
}, m = /* @__PURE__ */ c({
|
|
6
|
+
..._,
|
|
7
7
|
props: {
|
|
8
8
|
type: {
|
|
9
9
|
type: String,
|
|
@@ -11,22 +11,27 @@ const c = {
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
setup(t) {
|
|
14
|
-
return (
|
|
15
|
-
class:
|
|
14
|
+
return (o, n) => (l(), r("button", {
|
|
15
|
+
class: p(["zz-button", `zz-button--${t.type}`])
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
u(o.$slots, "default", {}, void 0, !0)
|
|
18
18
|
], 2));
|
|
19
19
|
}
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
}), d = (t, o) => {
|
|
21
|
+
const n = t.__vccOpts || t;
|
|
22
|
+
for (const [s, a] of o)
|
|
23
|
+
n[s] = a;
|
|
24
|
+
return n;
|
|
25
|
+
}, e = /* @__PURE__ */ d(m, [["__scopeId", "data-v-7c55743a"]]);
|
|
26
|
+
e.install = (t) => {
|
|
27
|
+
t.component("ZzButton", e);
|
|
23
28
|
};
|
|
24
|
-
const
|
|
29
|
+
const f = [e], z = {
|
|
25
30
|
install(t) {
|
|
26
|
-
|
|
31
|
+
f.forEach((o) => t.component(o.name || "ZzButton", o));
|
|
27
32
|
}
|
|
28
33
|
};
|
|
29
34
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
e as ZzButton,
|
|
36
|
+
z as default
|
|
32
37
|
};
|
package/dist/zephyr-ui.umd.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
(function(t
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(u);const c={name:"ZzButton"},o=e.defineComponent({...c,props:{type:{type:String,default:"primary"}},setup(n){return(r,d)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["zz-button",`zz-button--${n.type}`])},[e.renderSlot(r.$slots,"default")],2))}});o.install=n=>{n.component("ZzButton",o)};const f=[o],i={install(n){f.forEach(r=>n.component(r.name||"ZzButton",r))}};t.ZzButton=o,t.default=i,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.ZephyrUI={},e.Vue))})(this,(function(e,t){"use strict";const c={name:"ZzButton"},r=t.defineComponent({...c,props:{type:{type:String,default:"primary"}},setup(n){return(o,u)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["zz-button",`zz-button--${n.type}`])},[t.renderSlot(o.$slots,"default",{},void 0,!0)],2))}}),s=((n,o)=>{const u=n.__vccOpts||n;for(const[a,d]of o)u[a]=d;return u})(r,[["__scopeId","data-v-7c55743a"]]);s.install=n=>{n.component("ZzButton",s)};const i=[s],p={install(n){i.forEach(o=>n.component(o.name||"ZzButton",o))}};e.ZzButton=s,e.default=p,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED
package/dist/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.zz-button{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:.2s}.zz-button--primary{background:#409eff;color:#fff}.zz-button--success{background:#67c23a;color:#fff}.zz-button--warning{background:#e6a23c;color:#fff}.zz-button--danger{background:#f56c6c;color:#fff}
|