nly-adminlte-vue
Version:
nly adminlte3 components
27 lines (23 loc) • 497 B
JavaScript
import Vue from "../../utils/vue";
import { mergeData } from "vue-functional-data-merge";
export const props = {
tag: {
type: String,
default: "section"
}
};
const name = "NlyWrapperContent";
export const NlyWrapperContent = Vue.extend({
name: name,
props,
functional: true,
render(h, { props, data, children }) {
return h(
props.tag,
mergeData(data, {
staticClass: "content-wrapper"
}),
children
);
}
});