luyoumin-ui 0.0.1

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 ADDED
@@ -0,0 +1,9 @@
1
+ # Vue 3 + TypeScript + Vite
2
+
3
+ This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+
5
+ ## Recommended Setup
6
+
7
+ - [VS Code](https://code.visualstudio.com/) + [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (previously Volar) and disable Vetur
8
+
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.
@@ -0,0 +1,46 @@
1
+ import { defineComponent as a, toRaw as s, openBlock as r, createElementBlock as l } from "vue";
2
+ const p = {
3
+ name: "JsonExportExcel"
4
+ }, _ = /* @__PURE__ */ a({
5
+ ...p,
6
+ props: {
7
+ title: {
8
+ type: String,
9
+ default: () => "file name"
10
+ },
11
+ jsonData: {
12
+ type: Array,
13
+ default: () => []
14
+ },
15
+ fields: {
16
+ type: Object,
17
+ default: () => {
18
+ }
19
+ }
20
+ },
21
+ setup(t) {
22
+ s(t);
23
+ const e = () => {
24
+ };
25
+ return (n, c) => (r(), l("button", {
26
+ class: "muk-btn primary",
27
+ onClick: e
28
+ }, "download"));
29
+ }
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 = {
36
+ install(t) {
37
+ i.forEach((o) => {
38
+ t.component(o.name, o);
39
+ });
40
+ }
41
+ };
42
+ export {
43
+ d as JsonExportExcel,
44
+ u as default
45
+ };
46
+ //# sourceMappingURL=luyoumin-ui.es.js.map
@@ -0,0 +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;"}
@@ -0,0 +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"}})});
2
+ //# sourceMappingURL=luyoumin-ui.umd.js.map
@@ -0,0 +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"}
@@ -0,0 +1,32 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ jsonData: {
7
+ type: ArrayConstructor;
8
+ default: () => never[];
9
+ };
10
+ fields: {
11
+ type: ObjectConstructor;
12
+ default: () => void;
13
+ };
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ title: {
16
+ type: StringConstructor;
17
+ default: () => string;
18
+ };
19
+ jsonData: {
20
+ type: ArrayConstructor;
21
+ default: () => never[];
22
+ };
23
+ fields: {
24
+ type: ObjectConstructor;
25
+ default: () => void;
26
+ };
27
+ }>>, {
28
+ title: string;
29
+ jsonData: unknown[];
30
+ fields: Record<string, any>;
31
+ }, {}>;
32
+ export default _default;
@@ -0,0 +1 @@
1
+
package/dist/style.css ADDED
@@ -0,0 +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}
@@ -0,0 +1,5 @@
1
+ declare const _default: ({ mode, command }: {
2
+ mode: any;
3
+ command: any;
4
+ }) => import('vite').UserConfig;
5
+ export default _default;
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import type { App } from 'vue';
2
+
3
+ export interface InstallOptions {
4
+ prefix?: string
5
+ }
6
+
7
+ declare const _default: (app: App, {prefix}?: InstallOptions) => void;
8
+ export default _default;
9
+ export { default as JsonExportExcel } from './dist/src/components/JsonExportExcel.vue';
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "luyoumin-ui",
3
+ "version": "0.0.1",
4
+ "description": "Ui component library based on Vue3",
5
+ "type": "module",
6
+ "files": [
7
+ "dist",
8
+ "index.d.ts"
9
+ ],
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
+ "exports": {
15
+ ".": {
16
+ "types": "./index.d.ts",
17
+ "import": "./dist/luyoumin-ui.es.js",
18
+ "require": "./dist/luyoumin-ui.umd.js"
19
+ },
20
+ "./dist/style.css": {
21
+ "import": "./dist/style.css",
22
+ "require": "./dist/style.css"
23
+ }
24
+ },
25
+ "scripts": {
26
+ "dev": "vite",
27
+ "build": "vue-tsc && vite build"
28
+ },
29
+ "keywords": [
30
+ "luyoumin-ui"
31
+ ],
32
+ "author": "luyoumin",
33
+ "license": "ISC",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/renleiabc/luyoumin-ui.git"
37
+ },
38
+ "bugs": {
39
+ "url": "https://github.com/renleiabc/luyoumin-ui/issues"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^20.12.2",
43
+ "@vitejs/plugin-vue": "^5.0.4",
44
+ "less": "^4.2.0",
45
+ "sass": "^1.72.0",
46
+ "typescript": "^5.2.2",
47
+ "unplugin-auto-import": "^0.17.5",
48
+ "unplugin-vue-components": "^0.26.0",
49
+ "vite": "^5.2.0",
50
+ "vite-plugin-compression": "^0.5.1",
51
+ "vite-plugin-dts": "^3.8.1",
52
+ "vue": "^3.4.21",
53
+ "vue-tsc": "^2.0.7"
54
+ }
55
+ }