UNPKG

docute

Version:

Effortlessly documentation done right.

24 lines 543 B
export default { name: 'InjectedComponents', functional: true, props: { position: { type: String, required: true } }, render: function render(h, _ref) { var props = _ref.props, parent = _ref.parent; var components = parent.$pluginApi.getComponents(props.position); if (components.length === 0) return; return h('div', { class: 'InjectedComponents', attrs: { 'data-position': props.position } }, components.map(function (c) { return h(c); })); } };