luyoumin-ui 0.0.9 → 0.0.10
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/luyoumin-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as l, onMounted as r, toRaw as p, ref as d, openBlock as s, createElementBlock as c, createElementVNode as i, createCommentVNode as f } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const u = { style: { position: "relative" } }, _ = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "float-box"
|
|
5
|
-
},
|
|
5
|
+
}, m = /* @__PURE__ */ l({
|
|
6
6
|
__name: "JsonExportExcel",
|
|
7
7
|
props: {
|
|
8
8
|
title: {
|
|
@@ -19,30 +19,32 @@ const _ = { style: { position: "relative" } }, m = {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
22
|
+
setup(e) {
|
|
23
|
+
const t = e;
|
|
24
24
|
r(() => {
|
|
25
|
-
}), p(
|
|
25
|
+
}), p(t);
|
|
26
26
|
const o = d(!1), n = () => {
|
|
27
27
|
o.value = !o.value;
|
|
28
28
|
};
|
|
29
|
-
return (a,
|
|
29
|
+
return (a, y) => (s(), c("div", u, [
|
|
30
30
|
i("div", {
|
|
31
31
|
class: "muk-btn primary",
|
|
32
32
|
onClick: n
|
|
33
33
|
}, "download"),
|
|
34
|
-
o.value ? (s(), c("div",
|
|
34
|
+
o.value ? (s(), c("div", _, "你好你好你好")) : f("", !0)
|
|
35
35
|
]));
|
|
36
36
|
}
|
|
37
|
-
}), v = (
|
|
38
|
-
const o =
|
|
39
|
-
for (const [n, a] of
|
|
37
|
+
}), v = (e, t) => {
|
|
38
|
+
const o = e.__vccOpts || e;
|
|
39
|
+
for (const [n, a] of t)
|
|
40
40
|
o[n] = a;
|
|
41
41
|
return o;
|
|
42
|
-
}, x = /* @__PURE__ */ v(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
}, x = /* @__PURE__ */ v(m, [["__scopeId", "data-v-7a4f9d97"]]), E = [
|
|
43
|
+
{ name: "JsonExportExcel", value: x }
|
|
44
|
+
], h = {
|
|
45
|
+
install(e) {
|
|
46
|
+
E.forEach((t) => {
|
|
47
|
+
e.component(t.name, t.value);
|
|
46
48
|
});
|
|
47
49
|
}
|
|
48
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"luyoumin-ui.es.js","sources":["../src/components/JsonExportExcel.vue","../lib/main.ts"],"sourcesContent":["<template>\n <div style=\"position: relative;\">\n <div class=\"muk-btn primary\" @click=\"handleClick\">download</div>\n <div v-if=\"showFloat\" class=\"float-box\">你好你好你好</div>\n </div>\n</template>\n\n<script setup lang=\"ts\" name=\"JsonExportExcel\">\n import { onMounted, toRaw, ref } from 'vue';\n const props = defineProps({\n title: {\n type: String,\n default: () => 'file name'\n },\n jsonData: {\n type: Array,\n default: () => []\n },\n fields: {\n type: Object,\n default: () => {}\n }\n })\n onMounted(() => {\n console.log('插件-组件-初始化');\n })\n const { jsonData, fields, title } = toRaw(props);\n const showFloat = ref(false);\n const handleClick = () => {\n showFloat.value = !showFloat.value;\n console.log('export-click=====111', jsonData);\n console.log('export-click=====222', fields);\n console.log('export-click=====333', title);\n }\n</script>\n\n<style scoped>\n .muk-btn {appearance: none;border: none;outline: none;background: #fff;text-align: center;border: 1px solid transparent;\n border-radius: 4px;cursor: pointer;padding: 10px 20px;}\n .large {width: 240px;height: 50px;font-size: 16px;}\n .moddle {width: 180px;height: 50px;font-size: 16px;}\n .small {width: 100px;height: 32px;}\n .mini {width: 60px;height: 32px;}\n .default {border-color: #e4e4e4;color: #666;}\n .primary {border-color: rgb(104, 72, 199);background: rgb(120, 97, 183);color: #fff;}\n .plain {border-color: skyblue;color: skyblue;background: lighten(skyblue, 50%);}\n .gray {border-color: #ccc;background: #ccc;color: #fff;}\n .float-box {position: fixed;top: 100px;left: 100px;font-size: 200x;color: black;font-weight: bold;}\n</style>","import JsonExportExcel from '../src/components/JsonExportExcel.vue';\n// 按需引入\nexport { JsonExportExcel };\nconst components = [JsonExportExcel];\n\n// 批量组件注册\nconst install = {\n install(App: any) {\n components.forEach((item) => {\n console.log('🚀 ~ components.forEach ~ item:', item);\n App.component(item.name, item);\n });\n }\n};\n\nexport default install;\n"],"names":["props","__props","onMounted","toRaw","showFloat","ref","handleClick","components","JsonExportExcel","install","App","item"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AASI,UAAMA,IAAQC;AAcd,IAAAC,EAAU,MAAM;AAAA,IAAA,CAEf,GACmCC,EAAMH,CAAK;AACzC,UAAAI,IAAYC,EAAI,EAAK,GACrBC,IAAc,MAAM;AACZ,MAAAF,EAAA,QAAQ,CAACA,EAAU;AAAA,IAAA;;;;;;;;;;;;;;iEC1B/BG,IAAa,
|
|
1
|
+
{"version":3,"file":"luyoumin-ui.es.js","sources":["../src/components/JsonExportExcel.vue","../lib/main.ts"],"sourcesContent":["<template>\n <div style=\"position: relative;\">\n <div class=\"muk-btn primary\" @click=\"handleClick\">download</div>\n <div v-if=\"showFloat\" class=\"float-box\">你好你好你好</div>\n </div>\n</template>\n\n<script setup lang=\"ts\" name=\"JsonExportExcel\">\n import { onMounted, toRaw, ref } from 'vue';\n const props = defineProps({\n title: {\n type: String,\n default: () => 'file name'\n },\n jsonData: {\n type: Array,\n default: () => []\n },\n fields: {\n type: Object,\n default: () => {}\n }\n })\n onMounted(() => {\n console.log('插件-组件-初始化');\n })\n const { jsonData, fields, title } = toRaw(props);\n const showFloat = ref(false);\n const handleClick = () => {\n showFloat.value = !showFloat.value;\n console.log('export-click=====111', jsonData);\n console.log('export-click=====222', fields);\n console.log('export-click=====333', title);\n }\n</script>\n\n<style scoped>\n .muk-btn {appearance: none;border: none;outline: none;background: #fff;text-align: center;border: 1px solid transparent;\n border-radius: 4px;cursor: pointer;padding: 10px 20px;}\n .large {width: 240px;height: 50px;font-size: 16px;}\n .moddle {width: 180px;height: 50px;font-size: 16px;}\n .small {width: 100px;height: 32px;}\n .mini {width: 60px;height: 32px;}\n .default {border-color: #e4e4e4;color: #666;}\n .primary {border-color: rgb(104, 72, 199);background: rgb(120, 97, 183);color: #fff;}\n .plain {border-color: skyblue;color: skyblue;background: lighten(skyblue, 50%);}\n .gray {border-color: #ccc;background: #ccc;color: #fff;}\n .float-box {position: fixed;top: 100px;left: 100px;font-size: 200x;color: black;font-weight: bold;}\n</style>","import JsonExportExcel from '../src/components/JsonExportExcel.vue';\n// 按需引入\nexport { JsonExportExcel };\nconst components = [\n {name: 'JsonExportExcel', value: JsonExportExcel}\n];\n\n// 批量组件注册\nconst install = {\n install(App: any) {\n components.forEach((item) => {\n console.log('🚀 ~ components.forEach ~ item:', item);\n App.component(item.name, item.value);\n });\n }\n};\n\nexport default install;\n"],"names":["props","__props","onMounted","toRaw","showFloat","ref","handleClick","components","JsonExportExcel","install","App","item"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AASI,UAAMA,IAAQC;AAcd,IAAAC,EAAU,MAAM;AAAA,IAAA,CAEf,GACmCC,EAAMH,CAAK;AACzC,UAAAI,IAAYC,EAAI,EAAK,GACrBC,IAAc,MAAM;AACZ,MAAAF,EAAA,QAAQ,CAACA,EAAU;AAAA,IAAA;;;;;;;;;;;;;;iEC1B/BG,IAAa;AAAA,EACf,EAAC,MAAM,mBAAmB,OAAOC,EAAe;AACpD,GAGMC,IAAU;AAAA,EACd,QAAQC,GAAU;AACL,IAAAH,EAAA,QAAQ,CAACI,MAAS;AAE3B,MAAAD,EAAI,UAAUC,EAAK,MAAMA,EAAK,KAAK;AAAA,IAAA,CACpC;AAAA,EACH;AACF;"}
|
package/dist/luyoumin-ui.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.LuyouminUi={},t.Vue))})(this,function(t,e){"use strict";const i={style:{position:"relative"}},r={key:0,class:"float-box"},l=((o,n)=>{const s=o.__vccOpts||o;for(const[c,a]of n)s[c]=a;return s})(e.defineComponent({__name:"JsonExportExcel",props:{title:{type:String,default:()=>"file name"},jsonData:{type:Array,default:()=>[]},fields:{type:Object,default:()=>{}}},setup(o){const n=o;e.onMounted(()=>{}),e.toRaw(n);const s=e.ref(!1),c=()=>{s.value=!s.value};return(a,_)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",{class:"muk-btn primary",onClick:c},"download"),s.value?(e.openBlock(),e.createElementBlock("div",r,"你好你好你好")):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-7a4f9d97"]]),d=[l],f={install(o){d.forEach(n=>{o.component(n.name,n)})}};t.JsonExportExcel=l,t.default=f,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.LuyouminUi={},t.Vue))})(this,function(t,e){"use strict";const i={style:{position:"relative"}},r={key:0,class:"float-box"},l=((o,n)=>{const s=o.__vccOpts||o;for(const[c,a]of n)s[c]=a;return s})(e.defineComponent({__name:"JsonExportExcel",props:{title:{type:String,default:()=>"file name"},jsonData:{type:Array,default:()=>[]},fields:{type:Object,default:()=>{}}},setup(o){const n=o;e.onMounted(()=>{}),e.toRaw(n);const s=e.ref(!1),c=()=>{s.value=!s.value};return(a,_)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",{class:"muk-btn primary",onClick:c},"download"),s.value?(e.openBlock(),e.createElementBlock("div",r,"你好你好你好")):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-7a4f9d97"]]),d=[{name:"JsonExportExcel",value:l}],f={install(o){d.forEach(n=>{o.component(n.name,n.value)})}};t.JsonExportExcel=l,t.default=f,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
2
2
|
//# sourceMappingURL=luyoumin-ui.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"luyoumin-ui.umd.js","sources":["../src/components/JsonExportExcel.vue","../lib/main.ts"],"sourcesContent":["<template>\n <div style=\"position: relative;\">\n <div class=\"muk-btn primary\" @click=\"handleClick\">download</div>\n <div v-if=\"showFloat\" class=\"float-box\">你好你好你好</div>\n </div>\n</template>\n\n<script setup lang=\"ts\" name=\"JsonExportExcel\">\n import { onMounted, toRaw, ref } from 'vue';\n const props = defineProps({\n title: {\n type: String,\n default: () => 'file name'\n },\n jsonData: {\n type: Array,\n default: () => []\n },\n fields: {\n type: Object,\n default: () => {}\n }\n })\n onMounted(() => {\n console.log('插件-组件-初始化');\n })\n const { jsonData, fields, title } = toRaw(props);\n const showFloat = ref(false);\n const handleClick = () => {\n showFloat.value = !showFloat.value;\n console.log('export-click=====111', jsonData);\n console.log('export-click=====222', fields);\n console.log('export-click=====333', title);\n }\n</script>\n\n<style scoped>\n .muk-btn {appearance: none;border: none;outline: none;background: #fff;text-align: center;border: 1px solid transparent;\n border-radius: 4px;cursor: pointer;padding: 10px 20px;}\n .large {width: 240px;height: 50px;font-size: 16px;}\n .moddle {width: 180px;height: 50px;font-size: 16px;}\n .small {width: 100px;height: 32px;}\n .mini {width: 60px;height: 32px;}\n .default {border-color: #e4e4e4;color: #666;}\n .primary {border-color: rgb(104, 72, 199);background: rgb(120, 97, 183);color: #fff;}\n .plain {border-color: skyblue;color: skyblue;background: lighten(skyblue, 50%);}\n .gray {border-color: #ccc;background: #ccc;color: #fff;}\n .float-box {position: fixed;top: 100px;left: 100px;font-size: 200x;color: black;font-weight: bold;}\n</style>","import JsonExportExcel from '../src/components/JsonExportExcel.vue';\n// 按需引入\nexport { JsonExportExcel };\nconst components = [JsonExportExcel];\n\n// 批量组件注册\nconst install = {\n install(App: any) {\n components.forEach((item) => {\n console.log('🚀 ~ components.forEach ~ item:', item);\n App.component(item.name, item);\n });\n }\n};\n\nexport default install;\n"],"names":["props","__props","onMounted","toRaw","showFloat","ref","handleClick","components","JsonExportExcel","install","App","item"],"mappings":"0jBASI,MAAMA,EAAQC,EAcdC,EAAAA,UAAU,IAAM,CAAA,CAEf,EACmCC,EAAAA,MAAMH,CAAK,EACzC,MAAAI,EAAYC,MAAI,EAAK,EACrBC,EAAc,IAAM,CACZF,EAAA,MAAQ,CAACA,EAAU,KAAA,2QC1B/BG,EAAa,
|
|
1
|
+
{"version":3,"file":"luyoumin-ui.umd.js","sources":["../src/components/JsonExportExcel.vue","../lib/main.ts"],"sourcesContent":["<template>\n <div style=\"position: relative;\">\n <div class=\"muk-btn primary\" @click=\"handleClick\">download</div>\n <div v-if=\"showFloat\" class=\"float-box\">你好你好你好</div>\n </div>\n</template>\n\n<script setup lang=\"ts\" name=\"JsonExportExcel\">\n import { onMounted, toRaw, ref } from 'vue';\n const props = defineProps({\n title: {\n type: String,\n default: () => 'file name'\n },\n jsonData: {\n type: Array,\n default: () => []\n },\n fields: {\n type: Object,\n default: () => {}\n }\n })\n onMounted(() => {\n console.log('插件-组件-初始化');\n })\n const { jsonData, fields, title } = toRaw(props);\n const showFloat = ref(false);\n const handleClick = () => {\n showFloat.value = !showFloat.value;\n console.log('export-click=====111', jsonData);\n console.log('export-click=====222', fields);\n console.log('export-click=====333', title);\n }\n</script>\n\n<style scoped>\n .muk-btn {appearance: none;border: none;outline: none;background: #fff;text-align: center;border: 1px solid transparent;\n border-radius: 4px;cursor: pointer;padding: 10px 20px;}\n .large {width: 240px;height: 50px;font-size: 16px;}\n .moddle {width: 180px;height: 50px;font-size: 16px;}\n .small {width: 100px;height: 32px;}\n .mini {width: 60px;height: 32px;}\n .default {border-color: #e4e4e4;color: #666;}\n .primary {border-color: rgb(104, 72, 199);background: rgb(120, 97, 183);color: #fff;}\n .plain {border-color: skyblue;color: skyblue;background: lighten(skyblue, 50%);}\n .gray {border-color: #ccc;background: #ccc;color: #fff;}\n .float-box {position: fixed;top: 100px;left: 100px;font-size: 200x;color: black;font-weight: bold;}\n</style>","import JsonExportExcel from '../src/components/JsonExportExcel.vue';\n// 按需引入\nexport { JsonExportExcel };\nconst components = [\n {name: 'JsonExportExcel', value: JsonExportExcel}\n];\n\n// 批量组件注册\nconst install = {\n install(App: any) {\n components.forEach((item) => {\n console.log('🚀 ~ components.forEach ~ item:', item);\n App.component(item.name, item.value);\n });\n }\n};\n\nexport default install;\n"],"names":["props","__props","onMounted","toRaw","showFloat","ref","handleClick","components","JsonExportExcel","install","App","item"],"mappings":"0jBASI,MAAMA,EAAQC,EAcdC,EAAAA,UAAU,IAAM,CAAA,CAEf,EACmCC,EAAAA,MAAMH,CAAK,EACzC,MAAAI,EAAYC,MAAI,EAAK,EACrBC,EAAc,IAAM,CACZF,EAAA,MAAQ,CAACA,EAAU,KAAA,2QC1B/BG,EAAa,CACf,CAAC,KAAM,kBAAmB,MAAOC,CAAe,CACpD,EAGMC,EAAU,CACd,QAAQC,EAAU,CACLH,EAAA,QAASI,GAAS,CAE3BD,EAAI,UAAUC,EAAK,KAAMA,EAAK,KAAK,CAAA,CACpC,CACH,CACF"}
|