colors.js 322 B

123456789101112
  1. Vue.component("colors", {
  2. template: `<span v-bind:id="jp_props.id" style="display:none"></span>`,
  3. mounted() {
  4. var colors = this.$props.jp_props.options;
  5. for (var color in colors) {
  6. document.body.style.setProperty("--q-color-" + color, colors[color]);
  7. }
  8. },
  9. props: {
  10. jp_props: Object,
  11. },
  12. });