@deanwu/vue-component-library 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42766,11 +42766,15 @@ var es_array_unshift = __webpack_require__("3c65");
42766
42766
  });
42767
42767
  },
42768
42768
  createRow(opt = {}) {
42769
+ let data = {
42770
+ _timestamp: new Date().getTime(),
42771
+ [this.initSelected ? this.initSelected.name : '_selected']: this.initSelected ? !!this.initSelected.init(opt) : false
42772
+ };
42773
+ for (let key in data) {
42774
+ this.$set(opt.data, key, data[key]);
42775
+ }
42769
42776
  var row = Object.assign({
42770
- data: Object.assign(opt.data, {
42771
- _timestamp: new Date().getTime(),
42772
- [this.initSelected ? this.initSelected.name : '_selected']: this.initSelected ? !!this.initSelected.init(opt) : false
42773
- }),
42777
+ data: opt.data,
42774
42778
  index: 0,
42775
42779
  expandData: {
42776
42780
  state: opt.expandState || false,