UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

34 lines (33 loc) 966 B
import { NodeViewWrapper, nodeViewProps } from "@tiptap/vue-2"; import normalizeComponent from "../../../../_virtual/_plugin-vue2_normalizer.js"; const _sfc_main = { name: "SlashCommandsComponent", components: { NodeViewWrapper }, props: nodeViewProps, emits: ["selected-command"], computed: { text() { return "/" + this.$props.node.attrs.command; } }, created() { this.$parent.$emit("selected-command", this.$props.node.attrs.command); } }; var _sfc_render = function render() { var _vm = this, _c = _vm._self._c; return _c("node-view-wrapper", { staticClass: "d-d-inline-block" }, [_vm._v(" " + _vm._s(_vm.text) + " ")]); }; var _sfc_staticRenderFns = []; var __component__ = /* @__PURE__ */ normalizeComponent( _sfc_main, _sfc_render, _sfc_staticRenderFns ); const SlashCommandComponent = __component__.exports; export { SlashCommandComponent as default }; //# sourceMappingURL=SlashCommandComponent.vue.js.map