element-ui-root 2.1.9 → 2.2.0

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.
@@ -132564,7 +132564,11 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
132564
132564
  },
132565
132565
  cols: {
132566
132566
  type: String,
132567
- default: () => ''
132567
+ default: () => '1'
132568
+ },
132569
+ gutter: {
132570
+ type: String,
132571
+ default: () => '10'
132568
132572
  },
132569
132573
  config: {
132570
132574
  type: Object,
@@ -132761,7 +132765,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
132761
132765
  }
132762
132766
  }, [r.hint ? h("el-row", {
132763
132767
  "attrs": {
132764
- "gutter": 20
132768
+ "gutter": parseInt(this.gutter)
132765
132769
  }
132766
132770
  }, [h("el-col", {
132767
132771
  "attrs": {
@@ -132823,12 +132827,16 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
132823
132827
  model: this.form,
132824
132828
  rules: Object.keys(this.rules).length > 0 ? this.rules : {}
132825
132829
  }
132826
- }]), [Object.keys(this.config).map((a, b) => this.config[a].span && this.config[a].span != '' || this.cols != '' ? h("el-col", {
132830
+ }]), [h("el-row", {
132831
+ "attrs": {
132832
+ "gutter": this.config[a].span && this.config[a].span != '' || this.cols != '' ? parseInt(this.gutter) : 0
132833
+ }
132834
+ }, [Object.keys(this.config).map((a, b) => this.config[a].span && this.config[a].span != '' || this.cols != '' ? h("el-col", {
132827
132835
  "key": b,
132828
132836
  "attrs": {
132829
- "span": Number(this.config[a].span) || Number(this.cols)
132837
+ "span": Number(this.config[a].span) || 24 / Number(this.cols)
132830
132838
  }
132831
- }, [this.format(a, b)]) : this.format(a, b)), this.$slots.default, (finish || submit || cancel) && h("div", {
132839
+ }, [this.format(a, b)]) : this.format(a, b)), this.$slots.default]), (finish || submit || cancel) && h("div", {
132832
132840
  "class": "action"
132833
132841
  }, [h("el-form-item", [finish && h("el-button", {
132834
132842
  "attrs": {
package/dist/index.umd.js CHANGED
@@ -132573,7 +132573,11 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
132573
132573
  },
132574
132574
  cols: {
132575
132575
  type: String,
132576
- default: () => ''
132576
+ default: () => '1'
132577
+ },
132578
+ gutter: {
132579
+ type: String,
132580
+ default: () => '10'
132577
132581
  },
132578
132582
  config: {
132579
132583
  type: Object,
@@ -132770,7 +132774,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
132770
132774
  }
132771
132775
  }, [r.hint ? h("el-row", {
132772
132776
  "attrs": {
132773
- "gutter": 20
132777
+ "gutter": parseInt(this.gutter)
132774
132778
  }
132775
132779
  }, [h("el-col", {
132776
132780
  "attrs": {
@@ -132832,12 +132836,16 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
132832
132836
  model: this.form,
132833
132837
  rules: Object.keys(this.rules).length > 0 ? this.rules : {}
132834
132838
  }
132835
- }]), [Object.keys(this.config).map((a, b) => this.config[a].span && this.config[a].span != '' || this.cols != '' ? h("el-col", {
132839
+ }]), [h("el-row", {
132840
+ "attrs": {
132841
+ "gutter": this.config[a].span && this.config[a].span != '' || this.cols != '' ? parseInt(this.gutter) : 0
132842
+ }
132843
+ }, [Object.keys(this.config).map((a, b) => this.config[a].span && this.config[a].span != '' || this.cols != '' ? h("el-col", {
132836
132844
  "key": b,
132837
132845
  "attrs": {
132838
- "span": Number(this.config[a].span) || Number(this.cols)
132846
+ "span": Number(this.config[a].span) || 24 / Number(this.cols)
132839
132847
  }
132840
- }, [this.format(a, b)]) : this.format(a, b)), this.$slots.default, (finish || submit || cancel) && h("div", {
132848
+ }, [this.format(a, b)]) : this.format(a, b)), this.$slots.default]), (finish || submit || cancel) && h("div", {
132841
132849
  "class": "action"
132842
132850
  }, [h("el-form-item", [finish && h("el-button", {
132843
132851
  "attrs": {