Sha256: d085d2bc230dc9535362c7522f18ede96d19a064cf87b87c48e6c729de6e3b42

Contents?: true

Size: 483 Bytes

Versions: 7

Compression:

Stored size: 483 Bytes

Contents

import { CocoComponent } from "@assets/js/shared/coco.js";

export default CocoComponent("icon", () => {
  return {
    options: ["style", "spin"],

    get spin() {
      return this.$options.spin;
    },

    set spin(val) {
      this.$options.spin = val;
    },

    get fill() {
      return this.$options.style === "fill";
    },

    set fill(val) {
      this.$options.style = val === true ? "fill" : "line";
    },

    root: {
      "x-options": "options",
    },
  };
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
coveragebook_components-0.12.2 app/components/coco/shared/icon/icon.js
coveragebook_components-0.12.1 app/components/coco/shared/icon/icon.js
coveragebook_components-0.12.0 app/components/coco/shared/icon/icon.js
coveragebook_components-0.11.0 app/components/coco/shared/icon/icon.js
coveragebook_components-0.10.1.beta.2 app/components/coco/shared/icon/icon.js
coveragebook_components-0.10.1.beta.1 app/components/coco/shared/icon/icon.js
coveragebook_components-0.10.1.beta.0 app/components/coco/shared/icon/icon.js