meixioacomponent 0.2.5 → 0.2.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.2.05",
3
+ "version": "0.2.08",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -22,12 +22,12 @@
22
22
  <div class="content-item-form">
23
23
  <pro_formVue
24
24
  :form="true"
25
+ :size="size"
25
26
  :footer="false"
26
27
  :formConfig="item"
27
28
  :labelWidth="labelWidth"
28
29
  :formList="item.formList"
29
30
  :rules="returnRules(item.key)"
30
- @scrollToItem="scrollToItem"
31
31
  :labelPosition="setLabelPosition(item.formType)"
32
32
  :formType="item.formType ? item.formType : 'default'"
33
33
  ref="proFormVue"
@@ -48,7 +48,8 @@ import baseButtonHandleVue from "../../base/baseButtonHandle/baseButtonHandle.vu
48
48
  export default {
49
49
  name: "baseDialogForm",
50
50
  data() {
51
- return {};
51
+ return {
52
+ };
52
53
  },
53
54
  props: {
54
55
  // 弹窗的标题
@@ -75,6 +76,10 @@ export default {
75
76
  rulesList: {
76
77
  type: Object,
77
78
  },
79
+ size: {
80
+ type: String,
81
+ default: "small",
82
+ },
78
83
  },
79
84
  components: {
80
85
  pro_formVue,
@@ -125,8 +130,9 @@ export default {
125
130
  }
126
131
  return validateResult;
127
132
  },
128
-
129
-
133
+ },
134
+ watch: {
135
+
130
136
  },
131
137
  };
132
138
  </script>
@@ -17,7 +17,7 @@
17
17
  :prop="citem.key"
18
18
  :label="citem.label"
19
19
  v-for="(citem, cindex) in item"
20
- :class="[`chunk-${chunkLength}`, `${flexClass}`]"
20
+ :class="[`chunk-${chunkLength}`, `${flexClass}`, size]"
21
21
  >
22
22
  <span slot="label" class="item-label">{{ citem.label }}</span>
23
23
  <pro_form_itemVue
@@ -76,14 +76,14 @@ export default {
76
76
  chunkLength: null,
77
77
  };
78
78
  },
79
- created() {},
80
- mounted() {
79
+ created() {
81
80
  this.$nextTick(() => {
82
81
  this.init();
83
82
  this.setFormData();
84
83
  this.setFormLineList();
85
84
  });
86
85
  },
86
+ mounted() {},
87
87
  props: {
88
88
  rules: {
89
89
  type: Object,
@@ -217,7 +217,6 @@ export default {
217
217
  },
218
218
  setFormLineList() {
219
219
  this.formLineList = ArrayChunk(this.$props.formList, this.chunkLength);
220
- //console.log(this.formLineList);
221
220
  },
222
221
  // 返回form表单值
223
222
  returnFormValue() {
@@ -267,6 +266,12 @@ export default {
267
266
  this.$emit("onCancel");
268
267
  },
269
268
  },
269
+ watch: {
270
+ formList(newVal, oldVal) {
271
+ this.setFormData();
272
+ this.setFormLineList();
273
+ },
274
+ },
270
275
  };
271
276
  </script>
272
277
 
@@ -313,5 +318,17 @@ export default {
313
318
  .form-footer {
314
319
  margin-top: var(--margin-5);
315
320
  }
321
+
322
+ .mini {
323
+ align-items: flex-start;
324
+ margin-bottom: var(--margin-4) !important;
325
+
326
+ .item-label {
327
+ font-size: var(--font-size-s) !important;
328
+ }
329
+ /deep/ .el-form-item__label {
330
+ line-height: 24px !important;
331
+ }
332
+ }
316
333
  }
317
334
  </style>
@@ -481,12 +481,7 @@ export default {
481
481
  }
482
482
  }
483
483
  .mini {
484
- /deep/ .el-form-item {
485
- margin-bottom: var(--margin-5);
486
- }
487
- /deep/ .el-form-item__label {
488
- line-height: 28px !important;
489
- }
484
+
490
485
  /deep/ .item-label {
491
486
  font-size: var(--font-size-s) !important;
492
487
  }
@@ -2,6 +2,9 @@
2
2
  <div class="pro-form-wrap">
3
3
  <baseSectionVue :headerText="formTitle" v-model="sectionOpen">
4
4
  <base-icon :name="iconClass" :size="`l`" slot="header-prefix"></base-icon>
5
+ <template slot="section-header-right">
6
+ <slot name="header-right"></slot>
7
+ </template>
5
8
  <template slot="sectionContent">
6
9
  <pro_formVue
7
10
  :size="size"