1.0.0 • Published 9 months ago
@allnulled/v-descriptor v1.0.0
v-descriptor
Inject CSS classes with meaning. For vue.js (v2).
Installation
<script src="node_modules/@allnulled/v-descriptor/v-descriptor.js"></script>
Usage
The current test goes as follows:
window.stylingDescriptor = {
titulo: ["fondoNegro", "letraBlanca"],
principal: ["letraGrande"],
emergencia: ["fondoRojoImportante"]
};
Vue.component("app", {
template: `
<div>
<div v-descriptor="'titulo principal emergencia'">
Este mensaje debería verse en rojooo
</div>
</div>
`
});
const app = new Vue({
render: h => h(Vue.options.components.app),
}).$mount("#app");
1.0.0
9 months ago