nubomed-ui 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/nubomed-ui.es.js CHANGED
@@ -141,7 +141,7 @@ const L = ["disabled"], w = {
141
141
  }), N = [k, V], E = {
142
142
  install(a) {
143
143
  N.forEach((e) => {
144
- a.component(e.name, e.default);
144
+ a.component(e.name, e);
145
145
  });
146
146
  }
147
147
  };
package/nubomed-ui.umd.js CHANGED
@@ -1 +1 @@
1
- (function(o,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(o=typeof globalThis<"u"?globalThis:o||self,t(o["nubomed-ui"]={},o.Vue))})(this,function(o,t){"use strict";function f(n){const e=`nb-${n}`;return[e,_(e)]}function _(n){return(e,a)=>(e&&typeof e!="string"&&(a=e,e=""),e=e?`${n}__${e}`:n,`${e}${i(e,a)}`)}function i(n,e){return e?typeof e=="string"?` ${n}--${e}`:Array.isArray(e)?e.reduce((a,l)=>a+i(n,l),""):Object.keys(e).reduce((a,l)=>a+(e[l]?i(n,l):""),""):""}const L="",b=["disabled"],g={key:0,class:"is-loading"},y=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})],-1)],p=Object.assign({name:"nb-button"},{__name:"index",props:{type:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const a=n,[l,s]=f("button"),d=t.computed(()=>a.loading?!0:a.disabled),c=s([a.size,a.type,{disabled:a.disabled,loading:a.loading,plain:a.plain,text:a.text}]),r=()=>{e("click")};return(u,$)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(t.unref(c)),disabled:d.value,onClick:r},[n.loading?(t.openBlock(),t.createElementBlock("i",g,y)):t.createCommentVNode("",!0),t.renderSlot(u.$slots,"default")],10,b))}}),w="",h=["disabled"],z={key:0,class:"is-loading"},B=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})],-1)],m=Object.assign({name:"nb-button-group"},{__name:"index",props:{type:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const a=n,[l,s]=f("button"),d=t.computed(()=>a.loading?!0:a.disabled),c=s([a.size,a.type,{disabled:a.disabled,loading:a.loading,plain:a.plain,text:a.text}]),r=()=>{e("click")};return(u,$)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(t.unref(c)),disabled:d.value,onClick:r},[n.loading?(t.openBlock(),t.createElementBlock("i",z,B)):t.createCommentVNode("",!0),t.renderSlot(u.$slots,"default")],10,h))}}),k=[p,m],x={install(n){k.forEach(e=>{n.component(e.name,e.default)})}};o.Button=p,o.ButtonGroup=m,o.default=x,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(o,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(o=typeof globalThis<"u"?globalThis:o||self,t(o["nubomed-ui"]={},o.Vue))})(this,function(o,t){"use strict";function f(n){const e=`nb-${n}`;return[e,_(e)]}function _(n){return(e,a)=>(e&&typeof e!="string"&&(a=e,e=""),e=e?`${n}__${e}`:n,`${e}${i(e,a)}`)}function i(n,e){return e?typeof e=="string"?` ${n}--${e}`:Array.isArray(e)?e.reduce((a,l)=>a+i(n,l),""):Object.keys(e).reduce((a,l)=>a+(e[l]?i(n,l):""),""):""}const L="",b=["disabled"],g={key:0,class:"is-loading"},y=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})],-1)],p=Object.assign({name:"nb-button"},{__name:"index",props:{type:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const a=n,[l,s]=f("button"),d=t.computed(()=>a.loading?!0:a.disabled),c=s([a.size,a.type,{disabled:a.disabled,loading:a.loading,plain:a.plain,text:a.text}]),r=()=>{e("click")};return(u,$)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(t.unref(c)),disabled:d.value,onClick:r},[n.loading?(t.openBlock(),t.createElementBlock("i",g,y)):t.createCommentVNode("",!0),t.renderSlot(u.$slots,"default")],10,b))}}),w="",h=["disabled"],z={key:0,class:"is-loading"},B=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})],-1)],m=Object.assign({name:"nb-button-group"},{__name:"index",props:{type:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const a=n,[l,s]=f("button"),d=t.computed(()=>a.loading?!0:a.disabled),c=s([a.size,a.type,{disabled:a.disabled,loading:a.loading,plain:a.plain,text:a.text}]),r=()=>{e("click")};return(u,$)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(t.unref(c)),disabled:d.value,onClick:r},[n.loading?(t.openBlock(),t.createElementBlock("i",z,B)):t.createCommentVNode("",!0),t.renderSlot(u.$slots,"default")],10,h))}}),k=[p,m],x={install(n){k.forEach(e=>{n.component(e.name,e)})}};o.Button=p,o.ButtonGroup=m,o.default=x,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nubomed-ui",
3
- "version": "1.0.1",
4
- "description": "基于Element-Plus的组件库",
3
+ "version": "1.0.2",
4
+ "description": "",
5
5
  "main": "nubomed-ui.es.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"