Sha256: bc7371648af5f57d6543b3a046524721ef691fe2dcebe272153bd6b179bcb01d
Contents?: true
Size: 486 Bytes
Versions: 22
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
22 entries across 22 versions & 1 rubygems