ant-design-vue/components/_util/StateMixin.js

11 lines
185 B
JavaScript
Raw Normal View History

2017-12-08 06:31:53 +00:00
export default {
methods: {
setState (state, callback) {
2017-12-12 07:05:45 +00:00
Object.assign(this.$data, state)
2017-12-08 06:31:53 +00:00
this.$nextTick(() => {
2017-12-12 07:05:45 +00:00
callback && callback()
2017-12-08 06:31:53 +00:00
})
},
},
}