UNPKG

nimble-ui

Version:
1 lines 3.19 kB
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="n7Vd")}({"4qRk":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var n=t.name||"",r=e.component(n);r||e.component(n,t)});return t}},"B/FW":function(t,e){},Lv3q:function(t,e,n){"use strict";n("B/FW");var r=n("VU/8")({methods:{_onClick:function(t){this.$emit("click",t)},_onTap:function(t){this.$emit("tap",t)},_onClickItem:function(t){this.$emit("clickItem",t)}}},null,!1,null,null,null);e.a=r.exports},"VU/8":function(t,e){t.exports=function(t,e,n,r,u,o){var i,s=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,s=t.default);var l,c="function"==typeof s?s.options:s;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),u&&(c._scopeId=u),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=r),l){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=l,c.render=function(t,e){return l.call(e),f(t,e)}):c.beforeCreate=f?[].concat(f,l):[l]}return{esModule:i,exports:s,options:c}}},k2Ua:function(t,e,n){"use strict";var r={extends:n("Lv3q").a,props:{disabled:{type:Boolean,default:!1},value:{default:""}},data:function(){return{}},watch:{},methods:{_onChange:function(t){this.$emit("change",t)}}},u=n("VU/8")(r,null,!1,null,null,null);e.a=u.exports},n7Vd:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={extends:n("k2Ua").a,name:"NuButton",props:{imgUrl:{type:String,default:""},nameText:{type:String,default:""},subNameText:{type:String,default:""},styleName:{type:String,default:"fill"},radius:{default:"normal"}},computed:{issubNameText:function(){var t=this.$slots&&this.$slots.hook_subNameText;return!!this.subNameText||t&&!!t.length},valueText:function(){return this.nameText||this.value||!this.imgUrl&&"提交"||"  "}},data:function(){return{myDisable:!1}}},u={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"nus_button",class:[t.radius&&"nu_radius-"+t.radius,t.styleName&&"nu_btn-"+t.styleName||"",t.disabled?"nu_disabled":"",t.issubNameText&&"nu_subNameText"],style:t.imgUrl&&{backgroundImage:"url("+t.imgUrl+")"},on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[t._t("default",[t._v("\n "+t._s(t.valueText)+"\n ")]),t._v(" "),t._t("hook_subNameText",[t._v("\n "+t._s(t.subNameText)+"\n ")])],2)},staticRenderFns:[]};var o=n("VU/8")(r,u,!1,function(t){n("u1jw")},null,null).exports,i=n("4qRk");e.default=Object(i.a)(o)},u1jw:function(t,e){}});