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