geekin-devtoys 0.0.4 → 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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../index-BOura9rV.js"),z=require("../_plugin-vue_export-helper-BHFhmbuH.js"),S={class:"g-dialog-header"},y={class:"g-dialog-operation-container"},b=e.defineComponent({name:"GDialog",inheritAttrs:!1,__name:"index",props:{title:{default:""},size:{default:""}},emits:["cancel","reset","save","minimize"],setup(a,{emit:p}){const n=a,f={small:"480px",medium:"580px",large:"680px"},_=e.computed(()=>n.size&&n.size in f?f[n.size]:n.size),s=p;function v(){s("cancel")}function C(){s("reset")}function g(){s("save")}const c=e.ref(!1),x=()=>{c.value=!c.value},d=e.ref(!1),u=e.ref(!0),V=()=>{u.value=!1,d.value=!0},N=()=>{u.value=!0,d.value=!1},h=e.computed(()=>({position:"fixed",bottom:"20px",right:"20px",width:"50px",height:"50px","z-index":"1000"}));return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(l,t)=>{const i=e.resolveComponent("el-icon"),m=e.resolveComponent("el-button"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[u.value?(e.openBlock(),e.createBlock(k,e.mergeProps({key:0},l.$attrs,{width:_.value,"lock-scroll":!1,"show-close":!1,fullscreen:c.value}),{header:e.withCtx(({close:w})=>[e.createElementVNode("div",S,[e.createElementVNode("p",null,e.toDisplayString(l.title),1),e.createElementVNode("div",y,[e.createVNode(i,{onClick:V,class:"g-icon--minimize"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.minus_default))]),_:1}),e.createVNode(i,{onClick:x,class:"g-icon--fullScreen"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.full_screen_default))]),_:1}),e.createVNode(i,{onClick:w,class:"g-icon--close"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.close_default))]),_:2},1032,["onClick"])])])]),footer:e.withCtx(()=>[e.createVNode(m,{onClick:v},{default:e.withCtx(()=>t[0]||(t[0]=[e.createTextVNode(" 取消 ")])),_:1,__:[0]}),e.createVNode(m,{onClick:C},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode(" 重置 ")])),_:1,__:[1]}),e.createVNode(m,{type:"primary",onClick:g},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 保存 ")])),_:1,__:[2]}),e.renderSlot(l.$slots,"moreOperations",{},void 0,!0)]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["width","fullscreen"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"g-dialog-minimized-icon",onClick:N,style:e.normalizeStyle(h.value)},[e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.chat_dot_round_default))]),_:1})],4)):e.createCommentVNode("",!0)])}}}),o=z._export_sfc(b,[["__scopeId","data-v-f70461e0"]]);o.install=a=>{a.component(o.name,o)};exports.GDialog=o;exports.default=o;
@@ -0,0 +1,142 @@
1
+ import { defineComponent as $, computed as C, ref as f, onMounted as A, onUnmounted as M, resolveComponent as p, createBlock as x, openBlock as _, Teleport as T, createCommentVNode as h, createElementBlock as F, mergeProps as L, withCtx as t, renderSlot as y, createVNode as e, createTextVNode as v, createElementVNode as g, toDisplayString as P, unref as s, normalizeStyle as U } from "vue";
2
+ import { m as Z, f as j, c as q, a as H } from "../index-BPwO5l8J.mjs";
3
+ import { _ as J } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ const K = { class: "g-dialog-header" }, Q = { class: "g-dialog-operation-container" }, R = /* @__PURE__ */ $({
5
+ name: "GDialog",
6
+ inheritAttrs: !1,
7
+ __name: "index",
8
+ props: {
9
+ title: { default: "" },
10
+ size: { default: "" }
11
+ },
12
+ emits: ["cancel", "reset", "save", "minimize"],
13
+ setup(a, { emit: S }) {
14
+ const l = a, z = {
15
+ small: "480px",
16
+ medium: "580px",
17
+ large: "680px"
18
+ }, w = C(() => l.size && l.size in z ? z[l.size] : l.size), r = S;
19
+ function b() {
20
+ r("cancel");
21
+ }
22
+ function D() {
23
+ r("reset");
24
+ }
25
+ function I() {
26
+ r("save");
27
+ }
28
+ const c = f(!1), N = () => {
29
+ c.value = !c.value;
30
+ }, u = f(!1), d = f(!0), V = () => {
31
+ d.value = !1, u.value = !0;
32
+ }, B = () => {
33
+ d.value = !0, u.value = !1;
34
+ }, E = C(() => ({
35
+ position: "fixed",
36
+ bottom: "20px",
37
+ right: "20px",
38
+ width: "50px",
39
+ height: "50px",
40
+ "z-index": "1000"
41
+ }));
42
+ return A(() => {
43
+ }), M(() => {
44
+ }), (n, o) => {
45
+ const i = p("el-icon"), m = p("el-button"), G = p("el-dialog");
46
+ return _(), x(T, { to: "body" }, [
47
+ d.value ? (_(), x(G, L({ key: 0 }, n.$attrs, {
48
+ width: w.value,
49
+ "lock-scroll": !1,
50
+ "show-close": !1,
51
+ fullscreen: c.value
52
+ }), {
53
+ header: t(({ close: O }) => [
54
+ g("div", K, [
55
+ g("p", null, P(n.title), 1),
56
+ g("div", Q, [
57
+ e(i, {
58
+ onClick: V,
59
+ class: "g-icon--minimize"
60
+ }, {
61
+ default: t(() => [
62
+ e(s(Z))
63
+ ]),
64
+ _: 1
65
+ }),
66
+ e(i, {
67
+ onClick: N,
68
+ class: "g-icon--fullScreen"
69
+ }, {
70
+ default: t(() => [
71
+ e(s(j))
72
+ ]),
73
+ _: 1
74
+ }),
75
+ e(i, {
76
+ onClick: O,
77
+ class: "g-icon--close"
78
+ }, {
79
+ default: t(() => [
80
+ e(s(q))
81
+ ]),
82
+ _: 2
83
+ }, 1032, ["onClick"])
84
+ ])
85
+ ])
86
+ ]),
87
+ footer: t(() => [
88
+ e(m, { onClick: b }, {
89
+ default: t(() => o[0] || (o[0] = [
90
+ v(" 取消 ")
91
+ ])),
92
+ _: 1,
93
+ __: [0]
94
+ }),
95
+ e(m, { onClick: D }, {
96
+ default: t(() => o[1] || (o[1] = [
97
+ v(" 重置 ")
98
+ ])),
99
+ _: 1,
100
+ __: [1]
101
+ }),
102
+ e(m, {
103
+ type: "primary",
104
+ onClick: I
105
+ }, {
106
+ default: t(() => o[2] || (o[2] = [
107
+ v(" 保存 ")
108
+ ])),
109
+ _: 1,
110
+ __: [2]
111
+ }),
112
+ y(n.$slots, "moreOperations", {}, void 0, !0)
113
+ ]),
114
+ default: t(() => [
115
+ y(n.$slots, "default", {}, void 0, !0)
116
+ ]),
117
+ _: 3
118
+ }, 16, ["width", "fullscreen"])) : h("", !0),
119
+ u.value ? (_(), F("div", {
120
+ key: 1,
121
+ class: "g-dialog-minimized-icon",
122
+ onClick: B,
123
+ style: U(E.value)
124
+ }, [
125
+ e(i, null, {
126
+ default: t(() => [
127
+ e(s(H))
128
+ ]),
129
+ _: 1
130
+ })
131
+ ], 4)) : h("", !0)
132
+ ]);
133
+ };
134
+ }
135
+ }), k = /* @__PURE__ */ J(R, [["__scopeId", "data-v-f70461e0"]]);
136
+ k.install = (a) => {
137
+ a.component(k.name, k);
138
+ };
139
+ export {
140
+ k as GDialog,
141
+ k as default
142
+ };
@@ -0,0 +1 @@
1
+ @charset "UTF-8";.g-dialog-header[data-v-f70461e0]{display:flex;flex-direction:row;justify-content:space-between;gap:16px}.g-dialog-header>p[data-v-f70461e0]{margin-top:-8px}.g-dialog-header .g-dialog-operation-container[data-v-f70461e0]{display:flex;flex-direction:row;justify-content:space-between;gap:8px;font-size:12px}.g-dialog-header .g-dialog-operation-container .g-icon--close[data-v-f70461e0],.g-dialog-header .g-dialog-operation-container .g-icon--fullScreen[data-v-f70461e0],.g-dialog-header .g-dialog-operation-container .g-icon--minimize[data-v-f70461e0]{cursor:pointer}.g-dialog-header .g-dialog-operation-container .g-icon--close[data-v-f70461e0]:hover,.g-dialog-header .g-dialog-operation-container .g-icon--fullScreen[data-v-f70461e0]:hover,.g-dialog-header .g-dialog-operation-container .g-icon--minimize[data-v-f70461e0]:hover{color:var(--el-color-primary);transition:all .3s ease}.g-dialog-minimized-icon[data-v-f70461e0]{position:fixed;bottom:20px;width:50px;height:50px;border-radius:50%;background-color:var(--el-color-primary);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1000;box-shadow:0 2px 12px #0000001a;transition:all .5s ease}.g-dialog-minimized-icon[data-v-f70461e0]:hover{animation:bounce-f70461e0 .6s ease-in-out 2;box-shadow:0 4px 16px #0003}@keyframes bounce-f70461e0{0%,to{transform:translateY(0)}50%{transform:translateY(-7px)}}.g-dialog-minimized-icon .el-icon[data-v-f70461e0]{font-size:24px}
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),S=require("../_plugin-vue_export-helper-BHFhmbuH.js"),E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='11px'%20height='12px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1755%20-466%20)'%3e%3cpath%20d='M%201755.77886671114%20477.5%20L%201760.5%20467.199345551568%20L%201765.22113328886%20477.5%20L%201755.77886671114%20477.5%20Z%20'%20fill-rule='nonzero'%20fill='%23fa3239'%20stroke='none'%20/%3e%3cpath%20d='M%201755%20478%20L%201760.5%20466%20L%201766%20478%20L%201755%20478%20Z%20M%201760.5%20468.398691103136%20L%201756.55773342227%20477%20L%201764.44226657773%20477%20L%201760.5%20468.398691103136%20Z%20'%20fill-rule='nonzero'%20fill='%23797979'%20stroke='none'%20/%3e%3c/g%3e%3c/svg%3e",V="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='11px'%20height='12px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1755%20-304%20)'%3e%3cpath%20d='M%201755.77886671114%20315.5%20L%201760.5%20305.199345551568%20L%201765.22113328886%20315.5%20L%201755.77886671114%20315.5%20Z%20'%20fill-rule='nonzero'%20fill='%232ce534'%20stroke='none'%20/%3e%3cpath%20d='M%201755%20316%20L%201760.5%20304%20L%201766%20316%20L%201755%20316%20Z%20M%201760.5%20306.398691103136%20L%201756.55773342227%20315%20L%201764.44226657773%20315%20L%201760.5%20306.398691103136%20Z%20'%20fill-rule='nonzero'%20fill='%23797979'%20stroke='none'%20/%3e%3c/g%3e%3c/svg%3e",N={class:"g-percent-symbol-updown"},P={src:E,alt:"down",style:{transform:"rotate(180deg)"},class:"g-percent-svg"},z={src:V,alt:"up",class:"g-percent-svg"},F=t.defineComponent({name:"GPercent",__name:"index",props:{to:{},from:{default:0},direction:{default:""},delay:{default:0},duration:{default:2},className:{default:""},startWhen:{type:Boolean,default:!0},decimalPlaces:{default:0},onStart:{},onEnd:{}},setup(d){const e=d,m=t.useTemplateRef("elementRef"),n=t.ref(e.direction==="down"?e.to:e.from),c=t.ref(!1),o=t.ref(null),u=t.ref(!1);let r=null;const g=t.computed(()=>20+40*(1/e.duration)),w=t.computed(()=>200*(1/e.duration));let a=0;const p=l=>{const s=e.direction==="down"?e.from:e.to,_=n.value,f=s-_,L=f*w.value,b=a*g.value,M=L-b;a+=M*.016,n.value+=a*.016,n.value=Math.max(0,Math.min(100,n.value));const y=Math.pow(10,-e.decimalPlaces)*.1,k=Math.pow(10,-e.decimalPlaces)*.1;Math.abs(f)>y||Math.abs(a)>k?o.value=requestAnimationFrame(p):(n.value=s,o.value=null,e.onEnd&&e.onEnd())},v=()=>{u.value||!c.value||!e.startWhen||(u.value=!0,e.onStart&&e.onStart(),setTimeout(()=>{a=0,o.value=requestAnimationFrame(p)},e.delay*1e3))},h=()=>{m.value&&(r=new IntersectionObserver(([l])=>{l.isIntersecting&&!c.value&&(c.value=!0,v())},{threshold:0,rootMargin:"0px"}),r.observe(m.value))},x=()=>{o.value&&(cancelAnimationFrame(o.value),o.value=null),r&&(r.disconnect(),r=null)};return t.watch([()=>e.from,()=>e.to,()=>e.direction],()=>{n.value=e.direction==="down"?e.to:e.from,u.value=!1},{immediate:!0}),t.watch(()=>e.startWhen,()=>{e.startWhen&&c.value&&!u.value&&v()}),t.onMounted(async()=>{await t.nextTick(),h()}),t.onUnmounted(()=>{x()}),(l,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"elementRef",ref:m,class:t.normalizeClass([l.className,"g-percent-container"])},[t.createElementVNode("div",N,[t.withDirectives(t.createElementVNode("img",P,null,512),[[t.vShow,e.direction==="down"]]),t.withDirectives(t.createElementVNode("img",z,null,512),[[t.vShow,e.direction==="up"]])]),t.createElementVNode("span",{class:t.normalizeClass(["g-percent-number",{"g-percent-number-down":e.direction==="down","g-percent-number-up":e.direction==="up"}])},t.toDisplayString(n.value.toFixed(e.decimalPlaces)),3),t.createElementVNode("div",{class:t.normalizeClass(["g-percent-symbol",{"g-percent-number-down":e.direction==="down","g-percent-number-up":e.direction==="up"}])},[t.renderSlot(l.$slots,"symbol",{},()=>[s[0]||(s[0]=t.createTextVNode("%"))],!0)],2)],2))}}),i=S._export_sfc(F,[["__scopeId","data-v-33634690"]]);i.install=d=>{d.component(i.name,i)};exports.GPercent=i;exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),S=require("../_plugin-vue_export-helper-BHFhmbuH.js"),E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='11px'%20height='12px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1755%20-466%20)'%3e%3cpath%20d='M%201755.77886671114%20477.5%20L%201760.5%20467.199345551568%20L%201765.22113328886%20477.5%20L%201755.77886671114%20477.5%20Z%20'%20fill-rule='nonzero'%20fill='%23fa3239'%20stroke='none'%20/%3e%3cpath%20d='M%201755%20478%20L%201760.5%20466%20L%201766%20478%20L%201755%20478%20Z%20M%201760.5%20468.398691103136%20L%201756.55773342227%20477%20L%201764.44226657773%20477%20L%201760.5%20468.398691103136%20Z%20'%20fill-rule='nonzero'%20fill='%23797979'%20stroke='none'%20/%3e%3c/g%3e%3c/svg%3e",V="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='11px'%20height='12px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1755%20-304%20)'%3e%3cpath%20d='M%201755.77886671114%20315.5%20L%201760.5%20305.199345551568%20L%201765.22113328886%20315.5%20L%201755.77886671114%20315.5%20Z%20'%20fill-rule='nonzero'%20fill='%232ce534'%20stroke='none'%20/%3e%3cpath%20d='M%201755%20316%20L%201760.5%20304%20L%201766%20316%20L%201755%20316%20Z%20M%201760.5%20306.398691103136%20L%201756.55773342227%20315%20L%201764.44226657773%20315%20L%201760.5%20306.398691103136%20Z%20'%20fill-rule='nonzero'%20fill='%23797979'%20stroke='none'%20/%3e%3c/g%3e%3c/svg%3e",N={class:"g-percent-symbol-updown"},P={src:E,alt:"down",style:{transform:"rotate(180deg)"},class:"g-percent-svg"},z={src:V,alt:"up",class:"g-percent-svg"},F=t.defineComponent({name:"GPercent",__name:"index",props:{to:{},from:{default:0},direction:{default:""},delay:{default:0},duration:{default:2},className:{default:""},startWhen:{type:Boolean,default:!0},decimalPlaces:{default:0},onStart:{},onEnd:{}},setup(d){const e=d,m=t.useTemplateRef("elementRef"),n=t.ref(e.direction==="down"?e.to:e.from),c=t.ref(!1),o=t.ref(null),u=t.ref(!1);let r=null;const g=t.computed(()=>20+40*(1/e.duration)),w=t.computed(()=>200*(1/e.duration));let a=0;const p=l=>{const s=e.direction==="down"?e.from:e.to,_=n.value,v=s-_,L=v*w.value,b=a*g.value,M=L-b;a+=M*.016,n.value+=a*.016,n.value=Math.max(0,Math.min(100,n.value));const y=Math.pow(10,-e.decimalPlaces)*.1,k=Math.pow(10,-e.decimalPlaces)*.1;Math.abs(v)>y||Math.abs(a)>k?o.value=requestAnimationFrame(p):(n.value=s,o.value=null,e.onEnd&&e.onEnd())},f=()=>{u.value||!c.value||!e.startWhen||(u.value=!0,e.onStart&&e.onStart(),setTimeout(()=>{a=0,o.value=requestAnimationFrame(p)},e.delay*1e3))},h=()=>{m.value&&(r=new IntersectionObserver(([l])=>{l.isIntersecting&&!c.value&&(c.value=!0,f())},{threshold:0,rootMargin:"0px"}),r.observe(m.value))},x=()=>{o.value&&(cancelAnimationFrame(o.value),o.value=null),r&&(r.disconnect(),r=null)};return t.watch([()=>e.from,()=>e.to,()=>e.direction],()=>{n.value=e.direction==="down"?e.to:e.from,u.value=!1},{immediate:!0}),t.watch(()=>e.startWhen,()=>{e.startWhen&&c.value&&!u.value&&f()}),t.onMounted(async()=>{await t.nextTick(),h()}),t.onUnmounted(()=>{x()}),(l,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"elementRef",ref:m,class:t.normalizeClass([l.className,"g-percent-container"])},[t.createElementVNode("div",N,[t.withDirectives(t.createElementVNode("img",P,null,512),[[t.vShow,e.direction==="down"]]),t.withDirectives(t.createElementVNode("img",z,null,512),[[t.vShow,e.direction==="up"]])]),t.createElementVNode("span",{class:t.normalizeClass(["g-percent-number",{"g-percent-number-down":e.direction==="down","g-percent-number-up":e.direction==="up"}])},t.toDisplayString(n.value.toFixed(e.decimalPlaces)),3),t.createElementVNode("div",{class:t.normalizeClass(["g-percent-symbol",{"g-percent-number-down":e.direction==="down","g-percent-number-up":e.direction==="up"}])},[t.renderSlot(l.$slots,"symbol",{},()=>[s[0]||(s[0]=t.createTextVNode("%"))],!0)],2)],2))}}),i=S._export_sfc(F,[["__scopeId","data-v-f258770a"]]);i.install=d=>{d.component(i.name,i)};exports.GPercent=i;exports.default=i;
@@ -28,24 +28,25 @@ const D = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3cs
28
28
  const e = d, m = E("elementRef"), t = u(e.direction === "down" ? e.to : e.from), i = u(!1), n = u(null), c = u(!1);
29
29
  let o = null;
30
30
  const b = h(() => 20 + 40 * (1 / e.duration)), M = h(() => 200 * (1 / e.duration));
31
- let r = 0;
32
- const v = (a) => {
33
- const s = e.direction === "down" ? e.from : e.to, S = t.value, w = s - S, F = w * M.value, I = r * b.value, P = F - I;
34
- r += P * 0.016, t.value += r * 0.016, t.value = Math.max(0, Math.min(100, t.value));
31
+ let a = 0;
32
+ const v = (r) => {
33
+ const s = e.direction === "down" ? e.from : e.to, S = t.value, w = s - S, F = w * M.value, I = a * b.value, P = F - I;
34
+ a += P * 0.016, t.value += a * 0.016, t.value = Math.max(0, Math.min(100, t.value));
35
35
  const Z = Math.pow(10, -e.decimalPlaces) * 0.1, z = Math.pow(10, -e.decimalPlaces) * 0.1;
36
- Math.abs(w) > Z || Math.abs(r) > z ? n.value = requestAnimationFrame(v) : (t.value = s, n.value = null, e.onEnd && e.onEnd());
36
+ Math.abs(w) > Z || Math.abs(a) > z ? n.value = requestAnimationFrame(v) : (t.value = s, n.value = null, e.onEnd && e.onEnd());
37
37
  }, g = () => {
38
38
  c.value || !i.value || !e.startWhen || (c.value = !0, e.onStart && e.onStart(), setTimeout(() => {
39
- r = 0, n.value = requestAnimationFrame(v);
39
+ a = 0, n.value = requestAnimationFrame(v);
40
40
  }, e.delay * 1e3));
41
41
  }, k = () => {
42
42
  m.value && (o = new IntersectionObserver(
43
- ([a]) => {
44
- a.isIntersecting && !i.value && (i.value = !0, g());
43
+ ([r]) => {
44
+ r.isIntersecting && !i.value && (i.value = !0, g());
45
45
  },
46
46
  {
47
47
  threshold: 0,
48
48
  rootMargin: "0px"
49
+ // 根容器的边距(类似CSS margin)
49
50
  }
50
51
  ), o.observe(m.value));
51
52
  }, y = () => {
@@ -66,10 +67,10 @@ const D = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3cs
66
67
  await N(), k();
67
68
  }), R(() => {
68
69
  y();
69
- }), (a, s) => (W(), V("div", {
70
+ }), (r, s) => (W(), V("div", {
70
71
  ref_key: "elementRef",
71
72
  ref: m,
72
- class: p([a.className, "g-percent-container"])
73
+ class: p([r.className, "g-percent-container"])
73
74
  }, [
74
75
  l("div", U, [
75
76
  L(l("img", $, null, 512), [
@@ -85,13 +86,13 @@ const D = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3cs
85
86
  l("div", {
86
87
  class: p(["g-percent-symbol", { "g-percent-number-down": e.direction === "down", "g-percent-number-up": e.direction === "up" }])
87
88
  }, [
88
- O(a.$slots, "symbol", {}, () => [
89
+ O(r.$slots, "symbol", {}, () => [
89
90
  s[0] || (s[0] = q("%"))
90
91
  ], !0)
91
92
  ], 2)
92
93
  ], 2));
93
94
  }
94
- }), f = /* @__PURE__ */ C(H, [["__scopeId", "data-v-33634690"]]);
95
+ }), f = /* @__PURE__ */ C(H, [["__scopeId", "data-v-f258770a"]]);
95
96
  f.install = (d) => {
96
97
  d.component(f.name, f);
97
98
  };
@@ -1 +1 @@
1
- .g-percent-container[data-v-33634690]{display:inline-flex;align-items:center;justify-content:center}.g-percent-number-down[data-v-33634690]{color:#ff4d4f}.g-percent-number-up[data-v-33634690]{color:#52c41a}.g-percent-svg[data-v-33634690]{width:8px;height:8px}
1
+ .g-percent-container[data-v-f258770a]{display:inline-flex;align-items:center;justify-content:center}.g-percent-number-down[data-v-f258770a]{color:#ff4d4f}.g-percent-number-up[data-v-f258770a]{color:#52c41a}.g-percent-svg[data-v-f258770a]{width:8px;height:8px}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("../index-BOura9rV.js"),w=require("../_plugin-vue_export-helper-BHFhmbuH.js"),b={class:"g-table"},v={key:1},k={class:"g-dropdown-link"},y=e.defineComponent({name:"CmTable",inheritAttrs:!1,__name:"index",props:{data:{default:()=>[]},loading:{type:Boolean,default:!1},pagination:{type:Boolean,default:!1},total:{default:0},operationLabel:{default:"操作"},isExpandAll:{type:Boolean,default:!1},currentPage:{default:1},pageSize:{default:10},operaWidth:{default:150}},emits:["update:currentPage","update:pageSize","size-change","current-change"],setup(l,{emit:d}){const r=l,n=d,i=t=>{n("update:pageSize",t),n("size-change",t)},p=t=>{n("update:currentPage",t),n("current-change",t)},u=e.useSlots();return e.computed(()=>u.moreOperations?150:100),(t,s)=>{const c=e.resolveComponent("el-icon"),m=e.resolveComponent("el-dropdown-menu"),g=e.resolveComponent("el-dropdown"),_=e.resolveComponent("el-table-column"),f=e.resolveComponent("el-table"),h=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"operate",{},void 0,!0)]),e.createVNode(f,e.mergeProps({data:t.data||[]},t.$attrs,{loading:t.loading||!1,stripe:""}),{empty:e.withCtx(()=>[t.$slots.empty?e.renderSlot(t.$slots,"empty",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock("span",v,"暂无数据"))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0),t.$slots.operations?(e.openBlock(),e.createBlock(_,{key:0,fixed:"right",label:t.operationLabel||"操作",width:t.operaWidth},{default:e.withCtx(a=>[e.renderSlot(t.$slots,"operations",{row:a.row,index:a.$index},void 0,!0),t.$slots.moreOperations?(e.openBlock(),e.createBlock(g,{key:0,size:"small",style:{"vertical-align":"baseline"}},{dropdown:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>[e.renderSlot(t.$slots,"moreOperations",{row:a.row,index:a.$index},void 0,!0)]),_:2},1024)]),default:e.withCtx(()=>[e.createElementVNode("span",k,[s[0]||(s[0]=e.createTextVNode(" 更多 ")),e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(e.unref(C.arrow_down_default))]),_:1})])]),_:2},1024)):e.createCommentVNode("",!0)]),_:3},8,["label","width"])):e.createCommentVNode("",!0)]),_:3},16,["data","loading"]),t.pagination?(e.openBlock(),e.createBlock(h,e.mergeProps({key:0,class:"g-pagination-contianer"},t.$attrs,{"current-page":r.currentPage,"page-size":r.pageSize,"page-sizes":[10,20,50,100],total:r.total||0,layout:"total, sizes, prev, pager, next",onSizeChange:i,onCurrentChange:p}),null,16,["current-page","page-size","total"])):e.createCommentVNode("",!0)])}}}),o=w._export_sfc(y,[["__scopeId","data-v-6bd5b10b"]]);o.install=l=>{l.component(o.name,o)};exports.GTable=o;exports.default=o;
@@ -0,0 +1,111 @@
1
+ import { defineComponent as B, useSlots as P, computed as N, resolveComponent as o, createElementBlock as g, openBlock as a, createElementVNode as f, createVNode as s, createBlock as p, createCommentVNode as u, renderSlot as n, mergeProps as _, withCtx as t, createTextVNode as V, unref as E } from "vue";
2
+ import { b as O } from "../index-BPwO5l8J.mjs";
3
+ import { _ as T } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ const A = { class: "g-table" }, L = { key: 1 }, W = { class: "g-dropdown-link" }, G = /* @__PURE__ */ B({
5
+ name: "CmTable",
6
+ inheritAttrs: !1,
7
+ __name: "index",
8
+ props: {
9
+ data: { default: () => [] },
10
+ loading: { type: Boolean, default: !1 },
11
+ pagination: { type: Boolean, default: !1 },
12
+ total: { default: 0 },
13
+ operationLabel: { default: "操作" },
14
+ isExpandAll: { type: Boolean, default: !1 },
15
+ currentPage: { default: 1 },
16
+ pageSize: { default: 10 },
17
+ operaWidth: { default: 150 }
18
+ },
19
+ emits: ["update:currentPage", "update:pageSize", "size-change", "current-change"],
20
+ setup(i, { emit: h }) {
21
+ const d = i, l = h, b = (e) => {
22
+ l("update:pageSize", e), l("size-change", e);
23
+ }, w = (e) => {
24
+ l("update:currentPage", e), l("current-change", e);
25
+ }, y = P();
26
+ return N(() => y.moreOperations ? 150 : 100), (e, c) => {
27
+ const z = o("el-icon"), $ = o("el-dropdown-menu"), C = o("el-dropdown"), k = o("el-table-column"), v = o("el-table"), S = o("el-pagination");
28
+ return a(), g("div", A, [
29
+ f("div", null, [
30
+ n(e.$slots, "operate", {}, void 0, !0)
31
+ ]),
32
+ s(v, _({
33
+ data: e.data || []
34
+ }, e.$attrs, {
35
+ loading: e.loading || !1,
36
+ stripe: ""
37
+ }), {
38
+ empty: t(() => [
39
+ e.$slots.empty ? n(e.$slots, "empty", { key: 0 }, void 0, !0) : (a(), g("span", L, "暂无数据"))
40
+ ]),
41
+ default: t(() => [
42
+ n(e.$slots, "default", {}, void 0, !0),
43
+ e.$slots.operations ? (a(), p(k, {
44
+ key: 0,
45
+ fixed: "right",
46
+ label: e.operationLabel || "操作",
47
+ width: e.operaWidth
48
+ }, {
49
+ default: t((r) => [
50
+ n(e.$slots, "operations", {
51
+ row: r.row,
52
+ index: r.$index
53
+ }, void 0, !0),
54
+ e.$slots.moreOperations ? (a(), p(C, {
55
+ key: 0,
56
+ size: "small",
57
+ style: { "vertical-align": "baseline" }
58
+ }, {
59
+ dropdown: t(() => [
60
+ s($, null, {
61
+ default: t(() => [
62
+ n(e.$slots, "moreOperations", {
63
+ row: r.row,
64
+ index: r.$index
65
+ }, void 0, !0)
66
+ ]),
67
+ _: 2
68
+ }, 1024)
69
+ ]),
70
+ default: t(() => [
71
+ f("span", W, [
72
+ c[0] || (c[0] = V(" 更多 ")),
73
+ s(z, null, {
74
+ default: t(() => [
75
+ s(E(O))
76
+ ]),
77
+ _: 1
78
+ })
79
+ ])
80
+ ]),
81
+ _: 2
82
+ }, 1024)) : u("", !0)
83
+ ]),
84
+ _: 3
85
+ }, 8, ["label", "width"])) : u("", !0)
86
+ ]),
87
+ _: 3
88
+ }, 16, ["data", "loading"]),
89
+ e.pagination ? (a(), p(S, _({
90
+ key: 0,
91
+ class: "g-pagination-contianer"
92
+ }, e.$attrs, {
93
+ "current-page": d.currentPage,
94
+ "page-size": d.pageSize,
95
+ "page-sizes": [10, 20, 50, 100],
96
+ total: d.total || 0,
97
+ layout: "total, sizes, prev, pager, next",
98
+ onSizeChange: b,
99
+ onCurrentChange: w
100
+ }), null, 16, ["current-page", "page-size", "total"])) : u("", !0)
101
+ ]);
102
+ };
103
+ }
104
+ }), m = /* @__PURE__ */ T(G, [["__scopeId", "data-v-6bd5b10b"]]);
105
+ m.install = (i) => {
106
+ i.component(m.name, m);
107
+ };
108
+ export {
109
+ m as GTable,
110
+ m as default
111
+ };
@@ -0,0 +1 @@
1
+ .g-table[data-v-6bd5b10b]{width:100%}.g-table .g-dropdown-link[data-v-6bd5b10b]{cursor:pointer;color:var(--el-color-primary);display:flex;align-items:center;padding:2px;font-size:12px;margin-left:12px;outline:none;border:none}.g-table .g-dropdown-link[data-v-6bd5b10b]:hover{color:var(--el-color-primary-light-5);outline:none;border:none}.g-table .g-dropdown-link[data-v-6bd5b10b]:focus{outline:none;border:none}.g-table[data-v-6bd5b10b] .el-dropdown-menu__item,.g-table[data-v-6bd5b10b] .el-dropdown-menu__item:hover{outline:none;border:none}.g-table .g-pagination-contianer[data-v-6bd5b10b]{margin-top:10px}
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../Demo/index.js"),n=require("../GCount/index.js"),u=require("../GPercent/index.js"),t={Demo:o.default,GCount:n.default,GPercent:u.default},l=c=>{Object.keys(t).forEach(r=>{const e=t[r];c.component(e.name,e)})},s={install:l};exports.Demo=o.default;exports.GCount=n.default;exports.GPercent=u.default;exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../GCount/index.js"),n=require("../GPercent/index.js"),l=require("../GDialog/index.js"),u=require("../GTable/index.js"),t={GCount:o.default,GPercent:n.default,GDialog:l.default,GTable:u.default},r=a=>{Object.keys(t).forEach(c=>{const e=t[c];a.component(e.name,e)})},s={install:r};exports.GCount=o.default;exports.GPercent=n.default;exports.GDialog=l.default;exports.GTable=u.default;exports.default=s;
@@ -1,15 +1,17 @@
1
- import m from "../Demo/index.mjs";
2
- import c from "../GCount/index.mjs";
3
- import s from "../GPercent/index.mjs";
4
- const n = { Demo: m, GCount: c, GPercent: s }, r = (t) => {
5
- Object.keys(n).forEach((e) => {
6
- const o = n[e];
7
- t.component(o.name, o);
1
+ import e from "../GCount/index.mjs";
2
+ import c from "../GPercent/index.mjs";
3
+ import r from "../GDialog/index.mjs";
4
+ import s from "../GTable/index.mjs";
5
+ const t = { GCount: e, GPercent: c, GDialog: r, GTable: s }, a = (n) => {
6
+ Object.keys(t).forEach((m) => {
7
+ const o = t[m];
8
+ n.component(o.name, o);
8
9
  });
9
- }, i = { install: r };
10
+ }, G = { install: a };
10
11
  export {
11
- m as Demo,
12
- c as GCount,
13
- s as GPercent,
14
- i as default
12
+ e as GCount,
13
+ r as GDialog,
14
+ c as GPercent,
15
+ s as GTable,
16
+ G as default
15
17
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");var o=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(a,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),l=o,r=e.defineComponent({name:"ChatDotRound",__name:"chat-dot-round",setup(t){return(a,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),c=r,_=e.defineComponent({name:"Close",__name:"close",setup(t){return(a,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),m=_,s=e.defineComponent({name:"FullScreen",__name:"full-screen",setup(t){return(a,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),u=s,d=e.defineComponent({name:"Minus",__name:"minus",setup(t){return(a,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),p=d;exports.arrow_down_default=l;exports.chat_dot_round_default=c;exports.close_default=m;exports.full_screen_default=u;exports.minus_default=p;
@@ -0,0 +1,83 @@
1
+ import { defineComponent as e, createElementBlock as r, openBlock as t, createElementVNode as a } from "vue";
2
+ var _ = /* @__PURE__ */ e({
3
+ name: "ArrowDown",
4
+ __name: "arrow-down",
5
+ setup(l) {
6
+ return (o, n) => (t(), r("svg", {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ viewBox: "0 0 1024 1024"
9
+ }, [
10
+ a("path", {
11
+ fill: "currentColor",
12
+ d: "M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"
13
+ })
14
+ ]));
15
+ }
16
+ }), u = _, s = /* @__PURE__ */ e({
17
+ name: "ChatDotRound",
18
+ __name: "chat-dot-round",
19
+ setup(l) {
20
+ return (o, n) => (t(), r("svg", {
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ viewBox: "0 0 1024 1024"
23
+ }, [
24
+ a("path", {
25
+ fill: "currentColor",
26
+ d: "m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"
27
+ }),
28
+ a("path", {
29
+ fill: "currentColor",
30
+ d: "M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"
31
+ })
32
+ ]));
33
+ }
34
+ }), h = s, c = /* @__PURE__ */ e({
35
+ name: "Close",
36
+ __name: "close",
37
+ setup(l) {
38
+ return (o, n) => (t(), r("svg", {
39
+ xmlns: "http://www.w3.org/2000/svg",
40
+ viewBox: "0 0 1024 1024"
41
+ }, [
42
+ a("path", {
43
+ fill: "currentColor",
44
+ d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
45
+ })
46
+ ]));
47
+ }
48
+ }), v = c, m = /* @__PURE__ */ e({
49
+ name: "FullScreen",
50
+ __name: "full-screen",
51
+ setup(l) {
52
+ return (o, n) => (t(), r("svg", {
53
+ xmlns: "http://www.w3.org/2000/svg",
54
+ viewBox: "0 0 1024 1024"
55
+ }, [
56
+ a("path", {
57
+ fill: "currentColor",
58
+ d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
59
+ })
60
+ ]));
61
+ }
62
+ }), f = m, w = /* @__PURE__ */ e({
63
+ name: "Minus",
64
+ __name: "minus",
65
+ setup(l) {
66
+ return (o, n) => (t(), r("svg", {
67
+ xmlns: "http://www.w3.org/2000/svg",
68
+ viewBox: "0 0 1024 1024"
69
+ }, [
70
+ a("path", {
71
+ fill: "currentColor",
72
+ d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
73
+ })
74
+ ]));
75
+ }
76
+ }), i = w;
77
+ export {
78
+ h as a,
79
+ u as b,
80
+ v as c,
81
+ f,
82
+ i as m
83
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geekin-devtoys",
3
- "version": "0.0.4",
3
+ "version": "0.1.1",
4
4
  "author": "leon",
5
5
  "license": "MIT",
6
6
  "description": "geekin-devtoys组件库",
@@ -35,14 +35,6 @@
35
35
  "import": "./lib/index/style.css",
36
36
  "require": "./lib/index/style.css"
37
37
  },
38
- "./Demo": {
39
- "import": "./lib/Demo/index.mjs",
40
- "require": "./lib/Demo/index.js"
41
- },
42
- "./Demo/style": {
43
- "import": "./lib/Demo/style.css",
44
- "require": "./lib/Demo/style.css"
45
- },
46
38
  "./GCount": {
47
39
  "import": "./lib/GCount/index.mjs",
48
40
  "require": "./lib/GCount/index.js"
@@ -51,6 +43,14 @@
51
43
  "import": "./lib/GCount/style.css",
52
44
  "require": "./lib/GCount/style.css"
53
45
  },
46
+ "./GDialog": {
47
+ "import": "./lib/GDialog/index.mjs",
48
+ "require": "./lib/GDialog/index.js"
49
+ },
50
+ "./GDialog/style": {
51
+ "import": "./lib/GDialog/style.css",
52
+ "require": "./lib/GDialog/style.css"
53
+ },
54
54
  "./GPercent": {
55
55
  "import": "./lib/GPercent/index.mjs",
56
56
  "require": "./lib/GPercent/index.js"
@@ -58,6 +58,14 @@
58
58
  "./GPercent/style": {
59
59
  "import": "./lib/GPercent/style.css",
60
60
  "require": "./lib/GPercent/style.css"
61
+ },
62
+ "./GTable": {
63
+ "import": "./lib/GTable/index.mjs",
64
+ "require": "./lib/GTable/index.js"
65
+ },
66
+ "./GTable/style": {
67
+ "import": "./lib/GTable/style.css",
68
+ "require": "./lib/GTable/style.css"
61
69
  }
62
70
  }
63
71
  }
package/lib/Demo/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),n=require("../_plugin-vue_export-helper-BHFhmbuH.js"),s={class:"demo"},r=Object.assign({name:"Demo"},{__name:"index",props:{msg:String},setup(t){return(c,a)=>(o.openBlock(),o.createElementBlock("div",s,o.toDisplayString(t.msg),1))}}),e=n._export_sfc(r,[["__scopeId","data-v-bd7af65f"]]);e.install=t=>{t.component(e.name,e)};exports.Demo=e;exports.default=e;
@@ -1,20 +0,0 @@
1
- import { createElementBlock as o, openBlock as s, toDisplayString as n } from "vue";
2
- import { _ as a } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
3
- const c = { class: "demo" }, m = /* @__PURE__ */ Object.assign({
4
- name: "Demo"
5
- }, {
6
- __name: "index",
7
- props: {
8
- msg: String
9
- },
10
- setup(e) {
11
- return (r, _) => (s(), o("div", c, n(e.msg), 1));
12
- }
13
- }), t = /* @__PURE__ */ a(m, [["__scopeId", "data-v-bd7af65f"]]);
14
- t.install = (e) => {
15
- e.component(t.name, t);
16
- };
17
- export {
18
- t as Demo,
19
- t as default
20
- };
@@ -1 +0,0 @@
1
- .demo[data-v-bd7af65f]{width:200px;height:40px;background-color:#7fffd4;margin:20px}