luyoumin-ui 0.0.3 → 0.0.5
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.map +1 -1
- package/dist/luyoumin-ui.umd.js.map +1 -1
- package/index.d.ts +4 -3
- package/package.json +5 -5
|
@@ -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 }
|
|
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// 批量组件注册\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,EACd,QAAQC,GAAU;AACL,IAAAH,EAAA,QAAQ,CAACI,MAAS;AAEvB,MAAAD,EAAA,UAAUC,EAAK,MAAMA,CAAI;AAAA,IAAA,CAC9B;AAAA,EACH;AACF;"}
|
|
@@ -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 }
|
|
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// 批量组件注册\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,yNCrBxBC,EAAa,CAACC,CAAe,EAG7BC,EAAU,CACd,QAAQC,EAAU,CACLH,EAAA,QAASI,GAAS,CAEvBD,EAAA,UAAUC,EAAK,KAAMA,CAAI,CAAA,CAC9B,CACH,CACF"}
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
2
|
|
|
3
3
|
export interface InstallOptions {
|
|
4
|
-
|
|
4
|
+
/** @default `ElIcon` */
|
|
5
|
+
prefix?: string;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
declare const _default: (app: App, {prefix}?: InstallOptions) => void;
|
|
7
|
+
// eslint-disable-next-line no-unused-vars
|
|
8
|
+
declare const _default: (app: App, { prefix }?: InstallOptions) => void;
|
|
8
9
|
export default _default;
|
|
9
10
|
export { default as JsonExportExcel } from './dist/src/components/JsonExportExcel.vue';
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "luyoumin-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Ui component library based on Vue3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
8
|
"index.d.ts"
|
|
9
9
|
],
|
|
10
|
-
"main": "
|
|
11
|
-
"module": "
|
|
12
|
-
"style": "
|
|
13
|
-
"types": "
|
|
10
|
+
"main": "dist/luyoumin-ui.umd.js",
|
|
11
|
+
"module": "dist/luyoumin-ui.es.js",
|
|
12
|
+
"style": "dist/style.css",
|
|
13
|
+
"types": "index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./index.d.ts",
|