luyoumin-ui 0.0.1 → 0.0.2

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.
@@ -1,8 +1,8 @@
1
- import { defineComponent as a, toRaw as s, openBlock as r, createElementBlock as l } from "vue";
2
- const p = {
1
+ import { defineComponent as a, onMounted as s, toRaw as l, openBlock as r, createElementBlock as p } from "vue";
2
+ const f = {
3
3
  name: "JsonExportExcel"
4
4
  }, _ = /* @__PURE__ */ a({
5
- ...p,
5
+ ...f,
6
6
  props: {
7
7
  title: {
8
8
  type: String,
@@ -19,20 +19,22 @@ const p = {
19
19
  }
20
20
  },
21
21
  setup(t) {
22
- s(t);
23
- const e = () => {
22
+ const o = t;
23
+ s(() => {
24
+ }), l(o);
25
+ const n = () => {
24
26
  };
25
- return (n, c) => (r(), l("button", {
27
+ return (e, c) => (r(), p("button", {
26
28
  class: "muk-btn primary",
27
- onClick: e
29
+ onClick: n
28
30
  }, "download"));
29
31
  }
30
- }), f = (t, o) => {
31
- const e = t.__vccOpts || t;
32
- for (const [n, c] of o)
33
- e[n] = c;
34
- return e;
35
- }, d = /* @__PURE__ */ f(_, [["__scopeId", "data-v-0e1b04a1"]]), i = [d], u = {
32
+ }), d = (t, o) => {
33
+ const n = t.__vccOpts || t;
34
+ for (const [e, c] of o)
35
+ n[e] = c;
36
+ return n;
37
+ }, u = /* @__PURE__ */ d(_, [["__scopeId", "data-v-556afcf2"]]), i = [u], x = {
36
38
  install(t) {
37
39
  i.forEach((o) => {
38
40
  t.component(o.name, o);
@@ -40,7 +42,7 @@ const p = {
40
42
  }
41
43
  };
42
44
  export {
43
- d as JsonExportExcel,
44
- u as default
45
+ u as JsonExportExcel,
46
+ x as default
45
47
  };
46
48
  //# sourceMappingURL=luyoumin-ui.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"luyoumin-ui.es.js","sources":["../src/components/JsonExportExcel.vue","../lib/main.ts"],"sourcesContent":["<template>\n <button class=\"muk-btn primary\" @click=\"handleClick\">download</button>\n</template>\n\n<script setup lang=\"ts\">\n import { toRaw } 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 const { jsonData, fields, title } = toRaw(props);\n const handleClick = () => {\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<script lang=\"ts\">\n export default {\n name: 'JsonExportExcel'\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;}\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</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;"],"names":["__default__","toRaw","__props","handleClick","components","JsonExportExcel","install","App","item"],"mappings":";AA4BI,MAAAA,IAAe;AAAA,EACX,MAAM;AACV;;;;;;;;;;;;;;;;;;AAVoC,IAAAC,EAdtBC,CAciC;AAC/C,UAAMC,IAAc,MAAM;AAAA,IAAA;;;;;;;;;;;iEClBxBC,IAAa,CAACC,CAAe,GAG7BC,IAAU;AAAA,EACZ,QAAQC,GAAU;AACd,IAAAH,EAAW,QAAQ,CAAQI,MAAA;AAEnB,MAAAD,EAAA,UAAUC,EAAK,MAAMA,CAAI;AAAA,IAAA,CAChC;AAAA,EACL;AACJ;"}
1
+ {"version":3,"file":"luyoumin-ui.es.js","sources":["../src/components/JsonExportExcel.vue","../lib/main.ts"],"sourcesContent":["<template>\n <button class=\"muk-btn primary\" @click=\"handleClick\">download</button>\n</template>\n\n<script setup lang=\"ts\">\n import { onMounted, toRaw } 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 handleClick = () => {\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<script lang=\"ts\">\n export default {\n name: 'JsonExportExcel'\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;}\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</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;"],"names":["__default__","props","__props","onMounted","toRaw","handleClick","components","JsonExportExcel","install","App","item"],"mappings":";AA+BI,MAAAA,IAAe;AAAA,EACX,MAAM;AACV;;;;;;;;;;;;;;;;;;AA3BA,UAAMC,IAAQC;AAcd,IAAAC,EAAU,MAAM;AAAA,IAAA,CAEf,GACmCC,EAAMH,CAAK;AAC/C,UAAMI,IAAc,MAAM;AAAA,IAAA;;;;;;;;;;;iECrBxBC,IAAa,CAACC,CAAe,GAG7BC,IAAU;AAAA,EACZ,QAAQC,GAAU;AACd,IAAAH,EAAW,QAAQ,CAAQI,MAAA;AAEnB,MAAAD,EAAA,UAAUC,EAAK,MAAMA,CAAI;AAAA,IAAA,CAChC;AAAA,EACL;AACJ;"}
@@ -1,2 +1,2 @@
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["luyoumin-ui"]={},e.Vue))})(this,function(e,t){"use strict";const i={name:"JsonExportExcel"},r=t.defineComponent({...i,props:{title:{type:String,default:()=>"file name"},jsonData:{type:Array,default:()=>[]},fields:{type:Object,default:()=>{}}},setup(n){const o=n;t.toRaw(o);const s=()=>{};return(l,a)=>(t.openBlock(),t.createElementBlock("button",{class:"muk-btn primary",onClick:s},"download"))}}),c=((n,o)=>{const s=n.__vccOpts||n;for(const[l,a]of o)s[l]=a;return s})(r,[["__scopeId","data-v-0e1b04a1"]]),u=[c],p={install(n){u.forEach(o=>{n.component(o.name,o)})}};e.JsonExportExcel=c,e.default=p,Object.defineProperties(e,{__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["luyoumin-ui"]={},t.Vue))})(this,function(t,e){"use strict";const i={name:"JsonExportExcel"},r=e.defineComponent({...i,props:{title:{type:String,default:()=>"file name"},jsonData:{type:Array,default:()=>[]},fields:{type:Object,default:()=>{}}},setup(n){const o=n;e.onMounted(()=>{}),e.toRaw(o);const c=()=>{};return(l,a)=>(e.openBlock(),e.createElementBlock("button",{class:"muk-btn primary",onClick:c},"download"))}}),s=((n,o)=>{const c=n.__vccOpts||n;for(const[l,a]of o)c[l]=a;return c})(r,[["__scopeId","data-v-556afcf2"]]),f=[s],u={install(n){f.forEach(o=>{n.component(o.name,o)})}};t.JsonExportExcel=s,t.default=u,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 <button class=\"muk-btn primary\" @click=\"handleClick\">download</button>\n</template>\n\n<script setup lang=\"ts\">\n import { toRaw } 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 const { jsonData, fields, title } = toRaw(props);\n const handleClick = () => {\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<script lang=\"ts\">\n export default {\n name: 'JsonExportExcel'\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;}\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</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;"],"names":["__default__","props","__props","toRaw","handleClick","components","JsonExportExcel","install","App","item"],"mappings":"mQA4BI,MAAAA,EAAe,CACX,KAAM,iBACV,kKAxBA,MAAMC,EAAQC,EAcsBC,EAAAA,MAAMF,CAAK,EAC/C,MAAMG,EAAc,IAAM,CAAA,4NClBxBC,EAAa,CAACC,CAAe,EAG7BC,EAAU,CACZ,QAAQC,EAAU,CACdH,EAAW,QAAgBI,GAAA,CAEnBD,EAAA,UAAUC,EAAK,KAAMA,CAAI,CAAA,CAChC,CACL,CACJ"}
1
+ {"version":3,"file":"luyoumin-ui.umd.js","sources":["../src/components/JsonExportExcel.vue","../lib/main.ts"],"sourcesContent":["<template>\n <button class=\"muk-btn primary\" @click=\"handleClick\">download</button>\n</template>\n\n<script setup lang=\"ts\">\n import { onMounted, toRaw } 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 handleClick = () => {\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<script lang=\"ts\">\n export default {\n name: 'JsonExportExcel'\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;}\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</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;"],"names":["__default__","props","__props","onMounted","toRaw","handleClick","components","JsonExportExcel","install","App","item"],"mappings":"mQA+BI,MAAAA,EAAe,CACX,KAAM,iBACV,kKA3BA,MAAMC,EAAQC,EAcdC,EAAAA,UAAU,IAAM,CAAA,CAEf,EACmCC,EAAAA,MAAMH,CAAK,EAC/C,MAAMI,EAAc,IAAM,CAAA,4NCrBxBC,EAAa,CAACC,CAAe,EAG7BC,EAAU,CACZ,QAAQC,EAAU,CACdH,EAAW,QAAgBI,GAAA,CAEnBD,EAAA,UAAUC,EAAK,KAAMA,CAAI,CAAA,CAChC,CACL,CACJ"}
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .muk-btn[data-v-0e1b04a1]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;background:#fff;text-align:center;border:1px solid transparent;border-radius:4px;cursor:pointer}.large[data-v-0e1b04a1]{width:240px;height:50px;font-size:16px}.moddle[data-v-0e1b04a1]{width:180px;height:50px;font-size:16px}.small[data-v-0e1b04a1]{width:100px;height:32px}.mini[data-v-0e1b04a1]{width:60px;height:32px}.default[data-v-0e1b04a1]{border-color:#e4e4e4;color:#666}.primary[data-v-0e1b04a1]{border-color:#6848c7;background:#7861b7;color:#fff}.plain[data-v-0e1b04a1]{border-color:#87ceeb;color:#87ceeb;background:lighten(skyblue,50%)}.gray[data-v-0e1b04a1]{border-color:#ccc;background:#ccc;color:#fff}
1
+ .muk-btn[data-v-556afcf2]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;background:#fff;text-align:center;border:1px solid transparent;border-radius:4px;cursor:pointer}.large[data-v-556afcf2]{width:240px;height:50px;font-size:16px}.moddle[data-v-556afcf2]{width:180px;height:50px;font-size:16px}.small[data-v-556afcf2]{width:100px;height:32px}.mini[data-v-556afcf2]{width:60px;height:32px}.default[data-v-556afcf2]{border-color:#e4e4e4;color:#666}.primary[data-v-556afcf2]{border-color:#6848c7;background:#7861b7;color:#fff}.plain[data-v-556afcf2]{border-color:#87ceeb;color:#87ceeb;background:lighten(skyblue,50%)}.gray[data-v-556afcf2]{border-color:#ccc;background:#ccc;color:#fff}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luyoumin-ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Ui component library based on Vue3",
5
5
  "type": "module",
6
6
  "files": [