Skip to content

Commit

Permalink
update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
smtdfc committed Mar 9, 2024
1 parent 1d44da8 commit 970ad78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ export class TurtleComponentInstance {
this.onDestroy = new Function()
}

get refs() {
return this._refs
}

initState(value) {
let state = createState(value)
state.component = this
return state
}

addUpdateDependents(dependents) {
dependents.forEach(dependent => {
dependent.component = this
Expand Down

0 comments on commit 970ad78

Please sign in to comment.