UNPKG

myprint-design

Version:

操作简单,组件丰富的一站式打印解决方案打印设计器

42 lines (37 loc) 1.03 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); var _sfc_main = /* @__PURE__ */ vue.defineComponent({ __name: "my-Button", props: { size: { default: "" }, disabled: { type: Boolean, default: false }, isActive: { type: Boolean, default: false } }, emits: ["click"], setup(__props, { emit: __emit }) { const emit = __emit; const props = __props; function click() { if (props.disabled) { return; } emit("click"); } return (_ctx, _cache) => { return vue.openBlock(), vue.createElementBlock("button", { "aria-disabled": "false", onClick: click, class: vue.normalizeClass([{ "disabled": _ctx.disabled, "my-button--small": _ctx.size == "small", "is-active": _ctx.isActive }, "my-button"]) }, [ vue.renderSlot(_ctx.$slots, "default") ], 2); }; } }); exports.default = _sfc_main; //# sourceMappingURL=my-Button.vue2.js.map