const e=require("./props-util/index.js");let t=require("vue");var n={methods:{setState(n={},r){let i=typeof n==`function`?n(this.$data,this.$props):n;if(this.getDerivedStateFromProps){let t=this.getDerivedStateFromProps(e.getOptionProps(this),{...this.$data,...i});if(t===null)return;i={...i,...t||{}}}Object.assign(this.$data,i),this._.isMounted&&this.$forceUpdate(),(0,t.nextTick)(()=>{r&&r()})},__emit(){let e=[].slice.call(arguments,0),t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;let n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++)n[t](...e.slice(1));else n(...e.slice(1))}}};exports.default=n;