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

11 lines
188 B
JavaScript
Raw Normal View History

2017-12-08 14:31:53 +08:00
export default {
methods: {
2019-01-12 11:33:27 +08:00
setState(state, callback) {
Object.assign(this.$data, state);
2017-12-08 14:31:53 +08:00
this.$nextTick(() => {
2019-01-12 11:33:27 +08:00
callback && callback();
});
2017-12-08 14:31:53 +08:00
},
},
2019-01-12 11:33:27 +08:00
};