element-ui-root 1.7.0 → 2.0.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.
@@ -13946,8 +13946,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
13946
13946
 
13947
13947
  let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
13948
13948
 
13949
- let count = Object.keys(this.config).length;
13950
- return count > 0 && h("keep-alive", [h("div", {
13949
+ return h("keep-alive", [h("div", {
13951
13950
  "class": "a-f-search",
13952
13951
  "style": {
13953
13952
  padding: this.margin
@@ -133874,6 +133873,10 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
133874
133873
  type: Boolean,
133875
133874
  default: () => true
133876
133875
  },
133876
+ check: {
133877
+ type: Boolean,
133878
+ default: () => true
133879
+ },
133877
133880
  action: {
133878
133881
  type: Boolean,
133879
133882
  default: () => true
@@ -133972,6 +133975,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
133972
133975
 
133973
133976
  submit() {
133974
133977
  // 提交表单
133978
+ if (!this.check) this.$emit('submit');
133975
133979
  let pass = false; // 判断是否是空表单
133976
133980
 
133977
133981
  for (let a in this.form) {
@@ -134095,7 +134099,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
134095
134099
  submit,
134096
134100
  cancel
134097
134101
  } = this.$listeners;
134098
- return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
134102
+ return h("keep-alive", [h("div", {
134099
134103
  "class": !this.inline ? 'a-f-editor vertical' : 'a-f-editor',
134100
134104
  "style": {
134101
134105
  padding: this.margin
@@ -167345,7 +167349,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
167345
167349
  submit,
167346
167350
  cancel
167347
167351
  } = this.$listeners;
167348
- return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
167352
+ return h("keep-alive", [h("div", {
167349
167353
  "class": "b-f-search",
167350
167354
  "style": {
167351
167355
  padding: this.margin
package/dist/index.umd.js CHANGED
@@ -13955,8 +13955,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
13955
13955
 
13956
13956
  let label = a => this.label ? this.config[a].text || this.config[a].label || this.config[a].title : '';
13957
13957
 
13958
- let count = Object.keys(this.config).length;
13959
- return count > 0 && h("keep-alive", [h("div", {
13958
+ return h("keep-alive", [h("div", {
13960
13959
  "class": "a-f-search",
13961
13960
  "style": {
13962
13961
  padding: this.margin
@@ -133883,6 +133882,10 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
133883
133882
  type: Boolean,
133884
133883
  default: () => true
133885
133884
  },
133885
+ check: {
133886
+ type: Boolean,
133887
+ default: () => true
133888
+ },
133886
133889
  action: {
133887
133890
  type: Boolean,
133888
133891
  default: () => true
@@ -133981,6 +133984,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
133981
133984
 
133982
133985
  submit() {
133983
133986
  // 提交表单
133987
+ if (!this.check) this.$emit('submit');
133984
133988
  let pass = false; // 判断是否是空表单
133985
133989
 
133986
133990
  for (let a in this.form) {
@@ -134104,7 +134108,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
134104
134108
  submit,
134105
134109
  cancel
134106
134110
  } = this.$listeners;
134107
- return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
134111
+ return h("keep-alive", [h("div", {
134108
134112
  "class": !this.inline ? 'a-f-editor vertical' : 'a-f-editor',
134109
134113
  "style": {
134110
134114
  padding: this.margin
@@ -167354,7 +167358,7 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
167354
167358
  submit,
167355
167359
  cancel
167356
167360
  } = this.$listeners;
167357
- return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
167361
+ return h("keep-alive", [h("div", {
167358
167362
  "class": "b-f-search",
167359
167363
  "style": {
167360
167364
  padding: this.margin