@lz-monorepo/components 1.0.0
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/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +2 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),t=e.defineComponent({__name:"Button",props:{type:{type:String,required:!1}},emits:["click"],setup(e,{expose:t,emit:o}){t();const n=o,r={emit:n,handleClick:e=>{n("click",e)}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});!function(e,t){void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".xy-button[data-v-ecdc6fa8]{border-radius:4px;cursor:pointer;padding:8px 16px}.xy-button--primary[data-v-ecdc6fa8]{background:#1890ff;color:#fff}");var o=((e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o})(t,[["render",function(t,o,n,r,c,d){return e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["lz-button",`lz-button--${n.type}`]),onClick:r.handleClick},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)}],["__scopeId","data-v-ecdc6fa8"],["__file","D:\\XXSC\\monorepo\\XY-monorepo\\packages\\components\\src\\Button.vue"]]),n={install(e){e.component("LzButton",o)}};exports.Button=o,exports.default=n;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/Button.vue","../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../src/index.ts"],"sourcesContent":["<template>\r\n <button class=\"lz-button\" :class=\"`lz-button--${type}`\" @click=\"handleClick\">\r\n <slot />\r\n </button>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\ndefineProps<{\r\n type?: \"primary\" | \"default\"\r\n}>()\r\n\r\nconst emit = defineEmits<{\r\n (e: \"click\", event: MouseEvent): void\r\n}>()\r\n\r\nconst handleClick = (event: MouseEvent) => {\r\n emit(\"click\", event)\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.xy-button {\r\n padding: 8px 16px;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n}\r\n\r\n.xy-button--primary {\r\n background: #1890ff;\r\n color: white;\r\n}\r\n</style>\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import Button from \"./Button.vue\"\r\nimport type { App } from \"vue\"\r\n\r\nexport { Button }\r\n\r\nexport default {\r\n install(app: App) {\r\n app.component(\"LzButton\", Button)\r\n }\r\n}\r\n"],"names":["emit","__emit","event","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_openBlock","_createElementBlock","class","_normalizeClass","$props","onClick","$setup","handleClick","_renderSlot","_ctx","$slots","undefined","index","install","app","component","Button"],"mappings":"oNAWA,MAAMA,EAAOC,wBAIQC,IACnBF,EAAK,QAASE,sFChBhB,SAAqBC,EAAKC,YACnBA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,qQDxBE,OAAAe,EAAAA,YAAAC,EAAAA,mBAES,SAAA,CAFDC,MAAKC,EAAAA,eAAA,CAAC,YAAW,cAAuBC,EAAAX,SAASY,QAAOC,EAAAC,aAC9D,CAAAC,EAAAA,WAAQC,EAAAC,OAAA,UAAA,QAAAC,GAAA,+HEGZC,EAAe,CACb,OAAAC,CAAQC,GACNA,EAAIC,UAAU,WAAYC,EAC5B","x_google_ignoreList":[1]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"mappings":";;;AAGA,cAAc,QAAQ;AACtB,iBAAiB,GAAG;AACpB;;;;","names":[]}
|
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{defineComponent as e,openBlock as t,createElementBlock as o,normalizeClass as n,renderSlot as r}from"vue";var c=e({__name:"Button",props:{type:{type:String,required:!1}},emits:["click"],setup(e,{expose:t,emit:o}){t();const n=o,r={emit:n,handleClick:e=>{n("click",e)}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});!function(e,t){void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".xy-button[data-v-ecdc6fa8]{border-radius:4px;cursor:pointer;padding:8px 16px}.xy-button--primary[data-v-ecdc6fa8]{background:#1890ff;color:#fff}");var a=((e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o})(c,[["render",function(e,c,a,d,i,s){return t(),o("button",{class:n(["lz-button",`lz-button--${a.type}`]),onClick:d.handleClick},[r(e.$slots,"default",{},void 0,!0)],2)}],["__scopeId","data-v-ecdc6fa8"],["__file","D:\\XXSC\\monorepo\\XY-monorepo\\packages\\components\\src\\Button.vue"]]),d={install(e){e.component("LzButton",a)}};export{a as Button,d as default};
|
|
2
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../src/Button.vue","../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../src/index.ts"],"sourcesContent":["<template>\r\n <button class=\"lz-button\" :class=\"`lz-button--${type}`\" @click=\"handleClick\">\r\n <slot />\r\n </button>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\ndefineProps<{\r\n type?: \"primary\" | \"default\"\r\n}>()\r\n\r\nconst emit = defineEmits<{\r\n (e: \"click\", event: MouseEvent): void\r\n}>()\r\n\r\nconst handleClick = (event: MouseEvent) => {\r\n emit(\"click\", event)\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.xy-button {\r\n padding: 8px 16px;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n}\r\n\r\n.xy-button--primary {\r\n background: #1890ff;\r\n color: white;\r\n}\r\n</style>\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import Button from \"./Button.vue\"\r\nimport type { App } from \"vue\"\r\n\r\nexport { Button }\r\n\r\nexport default {\r\n install(app: App) {\r\n app.component(\"LzButton\", Button)\r\n }\r\n}\r\n"],"names":["emit","__emit","event","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_openBlock","_createElementBlock","class","_normalizeClass","$props","onClick","$setup","handleClick","_renderSlot","_ctx","$slots","undefined","index","install","app","component","Button"],"mappings":"gOAWA,MAAMA,EAAOC,wBAIQC,IACnBF,EAAK,QAASE,sFChBhB,SAAqBC,EAAKC,YACnBA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,qQDxBE,OAAAe,IAAAC,EAES,SAAA,CAFDC,MAAKC,EAAA,CAAC,YAAW,cAAuBC,EAAAX,SAASY,QAAOC,EAAAC,aAC9D,CAAAC,EAAQC,EAAAC,OAAA,UAAA,QAAAC,GAAA,+HEGZC,EAAe,CACb,OAAAC,CAAQC,GACNA,EAAIC,UAAU,WAAYC,EAC5B","x_google_ignoreList":[1]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LzComponents={},e.Vue)}(this,function(e,t){"use strict";var o=t.defineComponent({__name:"Button",props:{type:{type:String,required:!1}},emits:["click"],setup(e,{expose:t,emit:o}){t();const n=o,r={emit:n,handleClick:e=>{n("click",e)}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});!function(e,t){void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".xy-button[data-v-ecdc6fa8]{border-radius:4px;cursor:pointer;padding:8px 16px}.xy-button--primary[data-v-ecdc6fa8]{background:#1890ff;color:#fff}");var n=((e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o})(o,[["render",function(e,o,n,r,d,c){return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["lz-button",`lz-button--${n.type}`]),onClick:r.handleClick},[t.renderSlot(e.$slots,"default",{},void 0,!0)],2)}],["__scopeId","data-v-ecdc6fa8"],["__file","D:\\XXSC\\monorepo\\XY-monorepo\\packages\\components\\src\\Button.vue"]]),r={install(e){e.component("LzButton",n)}};e.Button=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
|
+
//# sourceMappingURL=index.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/Button.vue","../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../src/index.ts"],"sourcesContent":["<template>\r\n <button class=\"lz-button\" :class=\"`lz-button--${type}`\" @click=\"handleClick\">\r\n <slot />\r\n </button>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\ndefineProps<{\r\n type?: \"primary\" | \"default\"\r\n}>()\r\n\r\nconst emit = defineEmits<{\r\n (e: \"click\", event: MouseEvent): void\r\n}>()\r\n\r\nconst handleClick = (event: MouseEvent) => {\r\n emit(\"click\", event)\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.xy-button {\r\n padding: 8px 16px;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n}\r\n\r\n.xy-button--primary {\r\n background: #1890ff;\r\n color: white;\r\n}\r\n</style>\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import Button from \"./Button.vue\"\r\nimport type { App } from \"vue\"\r\n\r\nexport { Button }\r\n\r\nexport default {\r\n install(app: App) {\r\n app.component(\"LzButton\", Button)\r\n }\r\n}\r\n"],"names":["emit","__emit","event","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_openBlock","_createElementBlock","class","_normalizeClass","$props","onClick","$setup","handleClick","_renderSlot","_ctx","$slots","undefined","index","install","app","component","Button"],"mappings":"+YAWA,MAAMA,EAAOC,wBAIQC,IACnBF,EAAK,QAASE,sFChBhB,SAAqBC,EAAKC,YACnBA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,qQDxBE,OAAAe,EAAAA,YAAAC,EAAAA,mBAES,SAAA,CAFDC,MAAKC,EAAAA,eAAA,CAAC,YAAW,cAAuBC,EAAAX,SAASY,QAAOC,EAAAC,aAC9D,CAAAC,EAAAA,WAAQC,EAAAC,OAAA,UAAA,QAAAC,GAAA,+HEGZC,EAAe,CACb,OAAAC,CAAQC,GACNA,EAAIC,UAAU,WAAYC,EAC5B","x_google_ignoreList":[1]}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lz-monorepo/components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "组件库",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs.js",
|
|
7
|
+
"module": "./dist/index.es.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.es.js",
|
|
13
|
+
"require": "./dist/index.cjs.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [],
|
|
23
|
+
"author": "",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"vue": "^3.0.0"
|
|
30
|
+
},
|
|
31
|
+
"buildOptions": {
|
|
32
|
+
"name": "LzComponents",
|
|
33
|
+
"formats": [
|
|
34
|
+
"es",
|
|
35
|
+
"cjs",
|
|
36
|
+
"umd"
|
|
37
|
+
],
|
|
38
|
+
"external": [
|
|
39
|
+
"vue"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|