@tencentcloud/roomkit-electron-vue3
Version:
<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,
41 lines (40 loc) • 1.22 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const type = require("../type.js");
const IconButton = require("../../common/base/IconButton.vue.js");
const RedoIcon = require("./Icon/RedoIcon.vue.js");
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
__name: "RedoButton",
props: {
step: Number,
historyListLength: Number
},
emits: ["click"],
setup(__props, { emit: __emit }) {
const props = __props;
const isRedoDisabled = Vue.computed(() => {
return props.step >= props.historyListLength;
});
const emit = __emit;
const onClick = () => {
emit("click", {
drawingTool: type.DrawingTool.Redo
});
};
return (_ctx, _cache) => {
return Vue.openBlock(), Vue.createBlock(IconButton.default, {
class: "tool-button",
onClickIcon: onClick
}, {
default: Vue.withCtx(() => [
Vue.createVNode(RedoIcon.default, {
class: Vue.normalizeClass({ "tool-disabled": isRedoDisabled.value })
}, null, 8, ["class"])
]),
_: 1
});
};
}
});
exports.default = _sfc_main;