Sha256: 77629158b7b03ea7a6689d3053545bc708a41d3561815facf6b44bbd16c700f2
Contents?: true
Size: 481 Bytes
Versions: 3
Compression:
Stored size: 481 Bytes
Contents
import { CocoComponent } from "@assets/js/base/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
3 entries across 3 versions & 1 rubygems