Sha256: bc7371648af5f57d6543b3a046524721ef691fe2dcebe272153bd6b179bcb01d

Contents?: true

Size: 486 Bytes

Versions: 23

Compression:

Stored size: 486 Bytes

Contents

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

23 entries across 23 versions & 1 rubygems

Version Path
coveragebook_components-0.19.9 app/components/coco/images/icon/icon.js
coveragebook_components-0.19.8 app/components/coco/images/icon/icon.js
coveragebook_components-0.19.7 app/components/coco/images/icon/icon.js
coveragebook_components-0.19.6 app/components/coco/images/icon/icon.js
coveragebook_components-0.19.5 app/components/coco/images/icon/icon.js
coveragebook_components-0.19.4 app/components/coco/images/icon/icon.js
coveragebook_components-0.19.3 app/components/coco/images/icon/icon.js
coveragebook_components-0.19.2 app/components/coco/images/icon/icon.js
coveragebook_components-0.19.1 app/components/coco/images/icon/icon.js
coveragebook_components-0.19.0 app/components/coco/images/icon/icon.js
coveragebook_components-0.18.8 app/components/coco/images/icon/icon.js
coveragebook_components-0.18.7 app/components/coco/images/icon/icon.js
coveragebook_components-0.18.0 app/components/coco/images/icon/icon.js
coveragebook_components-0.17.7 app/components/coco/images/icon/icon.js
coveragebook_components-0.17.6 app/components/coco/images/icon/icon.js
coveragebook_components-0.17.5 app/components/coco/images/icon/icon.js
coveragebook_components-0.17.4 app/components/coco/images/icon/icon.js
coveragebook_components-0.17.3 app/components/coco/images/icon/icon.js
coveragebook_components-0.17.2 app/components/coco/images/icon/icon.js
coveragebook_components-0.17.1 app/components/coco/images/icon/icon.js