| | |
| | | } |
| | | options.onCreated && options.onCreated(this.dict) |
| | | this.dict.init(this.$options.dicts).then(() => { |
| | | options.onReady && options.onReady(this.dict) |
| | | options.onReaby && options.onReaby(this.dict) |
| | | this.$nextTick(() => { |
| | | this.$emit('dictReady', this.dict) |
| | | if (this.$options.methods && this.$options.methods.onDictReady instanceof Function) { |
| | | this.$options.methods.onDictReady.call(this, this.dict) |
| | | this.$emit('dictReaby', this.dict) |
| | | if (this.$options.methods && this.$options.methods.onDictReaby instanceof Function) { |
| | | this.$options.methods.onDictReaby.call(this, this.dict) |
| | | } |
| | | }) |
| | | }) |