UNPKG

plus-equals

Version:

Web component that allows for incrementing a property of the host. or other "upSearched" components.

10 lines (9 loc) 261 B
import {PassUp} from 'pass-up/pass-up.js'; import {def} from 'trans-render/lib/def.js'; export class PE extends PassUp{ static is = 'p-e'; override doSet(match: any, prop: string, lastVal: any){ match[prop] += lastVal; } } def(PE);