luyoumin-ui 0.0.2 → 0.0.4
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/README.md +4 -0
- package/dist/luyoumin-ui.es.js +13 -13
- package/dist/luyoumin-ui.es.js.map +1 -1
- package/dist/luyoumin-ui.umd.js +1 -1
- package/dist/luyoumin-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/index.d.ts +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,3 +7,7 @@ This template should help get you started developing with Vue 3 and TypeScript i
|
|
|
7
7
|
- [VS Code](https://code.visualstudio.com/) + [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (previously Volar) and disable Vetur
|
|
8
8
|
|
|
9
9
|
- Use [vue-tsc](https://github.com/vuejs/language-tools/tree/master/packages/tsc) for performing the same type checking from the command line, or for generating d.ts files for SFCs.
|
|
10
|
+
|
|
11
|
+
npm 发布流程:
|
|
12
|
+
1、npm login (输入账号密码和邮箱验证码登录,账号:luyoumin,密码:luyoumin19936871)
|
|
13
|
+
2、npm publish (每次上传需要更改版本号)
|
package/dist/luyoumin-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as a, onMounted as s, toRaw as l, openBlock as r, createElementBlock as p } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const d = {
|
|
3
3
|
name: "JsonExportExcel"
|
|
4
4
|
}, _ = /* @__PURE__ */ a({
|
|
5
|
-
...
|
|
5
|
+
...d,
|
|
6
6
|
props: {
|
|
7
7
|
title: {
|
|
8
8
|
type: String,
|
|
@@ -22,27 +22,27 @@ const f = {
|
|
|
22
22
|
const o = t;
|
|
23
23
|
s(() => {
|
|
24
24
|
}), l(o);
|
|
25
|
-
const
|
|
25
|
+
const e = () => {
|
|
26
26
|
};
|
|
27
|
-
return (
|
|
27
|
+
return (n, c) => (r(), p("div", {
|
|
28
28
|
class: "muk-btn primary",
|
|
29
|
-
onClick:
|
|
29
|
+
onClick: e
|
|
30
30
|
}, "download"));
|
|
31
31
|
}
|
|
32
|
-
}),
|
|
33
|
-
const
|
|
34
|
-
for (const [
|
|
35
|
-
n
|
|
36
|
-
return
|
|
37
|
-
},
|
|
32
|
+
}), f = (t, o) => {
|
|
33
|
+
const e = t.__vccOpts || t;
|
|
34
|
+
for (const [n, c] of o)
|
|
35
|
+
e[n] = c;
|
|
36
|
+
return e;
|
|
37
|
+
}, i = /* @__PURE__ */ f(_, [["__scopeId", "data-v-95c44d1c"]]), m = [i], x = {
|
|
38
38
|
install(t) {
|
|
39
|
-
|
|
39
|
+
m.forEach((o) => {
|
|
40
40
|
t.component(o.name, o);
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
i as JsonExportExcel,
|
|
46
46
|
x as default
|
|
47
47
|
};
|
|
48
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 <
|
|
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;"}
|
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["luyoumin-ui"]={},t.Vue))})(this,function(t,e){"use strict";const
|
|
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 r={name:"JsonExportExcel"},a=e.defineComponent({...r,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,i)=>(e.openBlock(),e.createElementBlock("div",{class:"muk-btn primary",onClick:c},"download"))}}),s=((n,o)=>{const c=n.__vccOpts||n;for(const[l,i]of o)c[l]=i;return c})(a,[["__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"}})});
|
|
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 <
|
|
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/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.muk-btn[data-v-
|
|
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}
|
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';
|