luyoumin-ui 0.0.6 → 0.0.7

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,6 @@
1
1
  import { defineComponent as a, onMounted as s, toRaw as r, openBlock as l, createElementBlock as p } from "vue";
2
- const d = {
3
- name: "JsonExportExcel"
4
- }, _ = /* @__PURE__ */ a({
5
- ...d,
2
+ const d = /* @__PURE__ */ a({
3
+ __name: "JsonExportExcel",
6
4
  props: {
7
5
  title: {
8
6
  type: String,
@@ -34,13 +32,13 @@ const d = {
34
32
  for (const [e, c] of o)
35
33
  n[e] = c;
36
34
  return n;
37
- }, i = /* @__PURE__ */ f(_, [["__scopeId", "data-v-95c44d1c"]]), m = [i], u = (t) => {
35
+ }, i = /* @__PURE__ */ f(d, [["__scopeId", "data-v-dd3ab85f"]]), m = [i], _ = (t) => {
38
36
  m.forEach((o) => {
39
37
  t.component(o.name, o);
40
38
  });
41
- }, k = { install: u };
39
+ }, x = { install: _ };
42
40
  export {
43
41
  i as JsonExportExcel,
44
- k as default
42
+ x as default
45
43
  };
46
44
  //# 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 <div class=\"muk-btn primary\" @click=\"handleClick\">download</div>\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;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</style>","import JsonExportExcel from '../src/components/JsonExportExcel.vue';\n// 按需引入\nexport { JsonExportExcel };\nconst components = [JsonExportExcel];\n\n// 批量组件注册\n// const 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// };\nconst install = (App: any) => {\n components.forEach(item => {\n App.component(item.name, item);\n })\n}\n\n\n// export default install;\nexport default {install};"],"names":["__default__","props","__props","onMounted","toRaw","handleClick","components","JsonExportExcel","install","App","item","main"],"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,GAW7BC,IAAU,CAACC,MAAa;AAC1B,EAAAH,EAAW,QAAQ,CAAQI,MAAA;AACnB,IAAAD,EAAA,UAAUC,EAAK,MAAMA,CAAI;AAAA,EAAA,CAChC;AACL,GAIeC,IAAA,EAAC,SAAAH,EAAO;"}
1
+ {"version":3,"file":"luyoumin-ui.es.js","sources":["../src/components/JsonExportExcel.vue","../lib/main.ts"],"sourcesContent":["<template>\n <div class=\"muk-btn primary\" @click=\"handleClick\">download</div>\n</template>\n\n<script setup lang=\"ts\" name=\"JsonExportExcel\">\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\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</style>","import JsonExportExcel from '../src/components/JsonExportExcel.vue';\n// 按需引入\nexport { JsonExportExcel };\nconst components = [JsonExportExcel];\n\n// 批量组件注册\n// const 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// };\nconst install = (App: any) => {\n components.forEach(item => {\n App.component(item.name, item);\n })\n}\n\n\n// export default install;\nexport default {install};"],"names":["props","__props","onMounted","toRaw","handleClick","components","JsonExportExcel","install","App","item","main"],"mappings":";;;;;;;;;;;;;;;;;;;AAMI,UAAMA,IAAQC;AAcd,IAAAC,EAAU,MAAM;AAAA,IAAA,CAEf,GACmCC,EAAMH,CAAK;AAC/C,UAAMI,IAAc,MAAM;AAAA,IAAA;;;;;;;;;;;iECrBxBC,IAAa,CAACC,CAAe,GAW7BC,IAAU,CAACC,MAAa;AAC1B,EAAAH,EAAW,QAAQ,CAAQI,MAAA;AACnB,IAAAD,EAAA,UAAUC,EAAK,MAAMA,CAAI;AAAA,EAAA,CAChC;AACL,GAIeC,IAAA,EAAC,SAAAH,EAAO;"}
@@ -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 a={name:"JsonExportExcel"},r=e.defineComponent({...a,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(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:"muk-btn primary",onClick:c},"download"))}}),s=((n,o)=>{const c=n.__vccOpts||n;for(const[i,l]of o)c[i]=l;return c})(r,[["__scopeId","data-v-95c44d1c"]]),d=[s],p={install:n=>{d.forEach(o=>{n.component(o.name,o)})}};t.JsonExportExcel=s,t.default=p,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 c=((n,o)=>{const s=n.__vccOpts||n;for(const[i,a]of o)s[i]=a;return s})(e.defineComponent({__name:"JsonExportExcel",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 s=()=>{};return(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"muk-btn primary",onClick:s},"download"))}}),[["__scopeId","data-v-dd3ab85f"]]),l=[c],r={install:n=>{l.forEach(o=>{n.component(o.name,o)})}};t.JsonExportExcel=c,t.default=r,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 class=\"muk-btn primary\" @click=\"handleClick\">download</div>\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;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</style>","import JsonExportExcel from '../src/components/JsonExportExcel.vue';\n// 按需引入\nexport { JsonExportExcel };\nconst components = [JsonExportExcel];\n\n// 批量组件注册\n// const 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// };\nconst install = (App: any) => {\n components.forEach(item => {\n App.component(item.name, item);\n })\n}\n\n\n// export default install;\nexport default {install};"],"names":["__default__","props","__props","onMounted","toRaw","handleClick","components","JsonExportExcel","main","App","item"],"mappings":"+PA+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,yNCrBxBC,EAAa,CAACC,CAAe,EAmBpBC,EAAA,CAAC,QARCC,GAAa,CAC1BH,EAAW,QAAgBI,GAAA,CACnBD,EAAA,UAAUC,EAAK,KAAMA,CAAI,CAAA,CAChC,CACL,CAIuB"}
1
+ {"version":3,"file":"luyoumin-ui.umd.js","sources":["../src/components/JsonExportExcel.vue","../lib/main.ts"],"sourcesContent":["<template>\n <div class=\"muk-btn primary\" @click=\"handleClick\">download</div>\n</template>\n\n<script setup lang=\"ts\" name=\"JsonExportExcel\">\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\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</style>","import JsonExportExcel from '../src/components/JsonExportExcel.vue';\n// 按需引入\nexport { JsonExportExcel };\nconst components = [JsonExportExcel];\n\n// 批量组件注册\n// const 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// };\nconst install = (App: any) => {\n components.forEach(item => {\n App.component(item.name, item);\n })\n}\n\n\n// export default install;\nexport default {install};"],"names":["props","__props","onMounted","toRaw","handleClick","components","JsonExportExcel","main","App","item"],"mappings":"8fAMI,MAAMA,EAAQC,EAcdC,EAAAA,UAAU,IAAM,CAAA,CAEf,EACmCC,EAAAA,MAAMH,CAAK,EAC/C,MAAMI,EAAc,IAAM,CAAA,gJCrBxBC,EAAa,CAACC,CAAe,EAmBpBC,EAAA,CAAC,QARCC,GAAa,CAC1BH,EAAW,QAAgBI,GAAA,CACnBD,EAAA,UAAUC,EAAK,KAAMA,CAAI,CAAA,CAChC,CACL,CAIuB"}
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .muk-btn[data-v-95c44d1c]{-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;padding:10px 20px}.large[data-v-95c44d1c]{width:240px;height:50px;font-size:16px}.moddle[data-v-95c44d1c]{width:180px;height:50px;font-size:16px}.small[data-v-95c44d1c]{width:100px;height:32px}.mini[data-v-95c44d1c]{width:60px;height:32px}.default[data-v-95c44d1c]{border-color:#e4e4e4;color:#666}.primary[data-v-95c44d1c]{border-color:#6848c7;background:#7861b7;color:#fff}.plain[data-v-95c44d1c]{border-color:#87ceeb;color:#87ceeb;background:lighten(skyblue,50%)}.gray[data-v-95c44d1c]{border-color:#ccc;background:#ccc;color:#fff}
1
+ .muk-btn[data-v-dd3ab85f]{-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;padding:10px 20px}.large[data-v-dd3ab85f]{width:240px;height:50px;font-size:16px}.moddle[data-v-dd3ab85f]{width:180px;height:50px;font-size:16px}.small[data-v-dd3ab85f]{width:100px;height:32px}.mini[data-v-dd3ab85f]{width:60px;height:32px}.default[data-v-dd3ab85f]{border-color:#e4e4e4;color:#666}.primary[data-v-dd3ab85f]{border-color:#6848c7;background:#7861b7;color:#fff}.plain[data-v-dd3ab85f]{border-color:#87ceeb;color:#87ceeb;background:lighten(skyblue,50%)}.gray[data-v-dd3ab85f]{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.6",
3
+ "version": "0.0.7",
4
4
  "description": "Ui component library based on Vue3",
5
5
  "type": "module",
6
6
  "files": [
@@ -9,10 +9,17 @@
9
9
  ],
10
10
  "main": "./dist/luyoumin-ui.umd.js",
11
11
  "module": "./dist/luyoumin-ui.es.js",
12
+ "style": "./dist/style.css",
13
+ "types": "./index.d.ts",
12
14
  "exports": {
13
15
  ".": {
16
+ "types": "./index.d.ts",
14
17
  "import": "./dist/luyoumin-ui.es.js",
15
18
  "require": "./dist/luyoumin-ui.umd.js"
19
+ },
20
+ "./dist/style.css": {
21
+ "import": "./dist/style.css",
22
+ "require": "./dist/style.css"
16
23
  }
17
24
  },
18
25
  "scripts": {