Sha256: 1d2890387592e3e482617db733e69fddff1a4aa3524fa04b1d622daef86d4529

Contents?: true

Size: 469 Bytes

Versions: 41

Compression:

Stored size: 469 Bytes

Contents

import { CocoComponent } from "@js/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

41 entries across 41 versions & 1 rubygems

Version Path
coveragebook_components-0.7.6 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.5 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.4 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.3 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.2 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.1 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.0 app/components/coco/base/icon/icon.js
coveragebook_components-0.6.5 app/components/coco/base/icon/icon.js
coveragebook_components-0.6.4 app/components/coco/base/icon/icon.js
coveragebook_components-0.6.3 app/components/coco/base/icon/icon.js
coveragebook_components-0.6.2 app/components/coco/base/icon/icon.js
coveragebook_components-0.6.1 app/components/coco/base/icon/icon.js
coveragebook_components-0.6.0 app/components/coco/base/icon/icon.js
coveragebook_components-0.5.7 app/components/coco/base/icon/icon.js
coveragebook_components-0.5.6 app/components/coco/base/icon/icon.js
coveragebook_components-0.5.5 app/components/coco/base/icon/icon.js
coveragebook_components-0.5.4 app/components/coco/base/icon/icon.js
coveragebook_components-0.5.3 app/components/coco/base/icon/icon.js
coveragebook_components-0.5.2 app/components/coco/base/icon/icon.js
coveragebook_components-0.5.1 app/components/coco/base/icon/icon.js