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.10.0 app/components/coco/base/icon/icon.js
coveragebook_components-0.9.1 app/components/coco/base/icon/icon.js
coveragebook_components-0.9.0 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.9 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.8 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.7 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.6 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.5 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.4 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.3 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.2 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.1 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.0 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.0.beta.3 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.0.beta.2 app/components/coco/base/icon/icon.js
coveragebook_components-0.8.0.beta.1 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.10 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.9 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.8 app/components/coco/base/icon/icon.js
coveragebook_components-0.7.7 app/components/coco/base/icon/icon.js