ybd-ui 1.0.2 → 1.0.3
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["ybd-ui"]={},n.Vue))})(this,function(n,t){"use strict";const f=["disabled"],i=((e,o)=>{const s=e.__vccOpts||e;for(const[l,d]of o)s[l]=d;return s})(t.defineComponent({name:"YbButton",__name:"main",props:{btntype:{type:String,default:"default",validator:e=>["default","primary","danger"].includes(e)},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o}){const s=e,l=d=>{s.disabled||o("click",d)};return(d,p)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["my-btn",`my-btn--${e.btntype}`,{"my-btn--disabled":e.disabled}]),disabled:e.disabled,onClick:l},[t.renderSlot(d.$slots,"default",{},void 0,!0)],10,f))}}),[["__scopeId","data-v-7bc2a422"]]);i.install=function(e){e.component(i.name||"YbButton",i)};const a=[i];let c=!1;const u=function(e){c||(c=!0,a.map(o=>{e.component(o.name||"YbButton",o)}))};typeof window<"u"&&window.Vue&&u(window.Vue);const r={install:u,...a};n.default=r,n.ybButton=i,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ybd-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Vue 3 component library built with Vite",
|
|
6
6
|
"main": "./dist/ybd-ui.umd.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
20
|
"dev": "vite",
|
|
21
|
-
"build": "vite build",
|
|
21
|
+
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist",
|
|
22
22
|
"preview": "vite preview"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
@@ -36,4 +36,4 @@
|
|
|
36
36
|
"vite": "^5.0.0",
|
|
37
37
|
"vue-tsc": "^3.2.1"
|
|
38
38
|
}
|
|
39
|
-
}
|
|
39
|
+
}
|
package/dist/index.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(t=typeof globalThis<"u"?globalThis:t||self,t["ybd-ui"]=o(t.Vue))})(this,function(t){"use strict";const o=["disabled"],d=((e,n)=>{const s=e.__vccOpts||e;for(const[a,i]of n)s[a]=i;return s})(t.defineComponent({name:"YbButton",__name:"main",props:{btntype:{type:String,default:"default",validator:e=>["default","primary","danger"].includes(e)},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const s=e,a=i=>{s.disabled||n("click",i)};return(i,p)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["my-btn",`my-btn--${e.btntype}`,{"my-btn--disabled":e.disabled}]),disabled:e.disabled,onClick:a},[t.renderSlot(i.$slots,"default",{},void 0,!0)],10,o))}}),[["__scopeId","data-v-7bc2a422"]]);d.install=function(e){e.component(d.name||"YbButton",d)};const l=[d];let c=!1;const u=function(e){c||(c=!0,l.map(n=>{e.component(n.name||"YbButton",n)}))};return typeof window<"u"&&window.Vue&&u(window.Vue),{install:u,...l}});
|