UNPKG

label-print-design

Version:

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

44 lines (41 loc) 1.09 kB
import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue'; var _sfc_main = /* @__PURE__ */ 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 openBlock(), createElementBlock( "button", { "aria-disabled": "false", onClick: click, class: normalizeClass([{ "disabled": _ctx.disabled, "my-button--small": _ctx.size == "small", "is-active": _ctx.isActive }, "my-button"]) }, [ renderSlot(_ctx.$slots, "default") ], 2 /* CLASS */ ); }; } }); export { _sfc_main as default }; //# sourceMappingURL=my-Button.vue2.mjs.map