meixioacomponent 0.2.11 → 0.2.14

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.11",
3
+ "version": "0.2.14",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -15,7 +15,7 @@
15
15
 
16
16
  <script>
17
17
  export default {
18
- name:'baseButtonHandle',
18
+ name: "baseButtonHandle",
19
19
  data() {
20
20
  return {};
21
21
  },
@@ -56,9 +56,10 @@ export default {
56
56
 
57
57
  <style lang="less" scoped>
58
58
  .footer-handle-wrap {
59
- width: 100%;
59
+ width: auto;
60
60
  height: 100%;
61
61
  display: flex;
62
+ max-width: 100%;
62
63
  align-items: center;
63
64
  }
64
65
  </style>
@@ -19,7 +19,7 @@
19
19
  :event="true"
20
20
  :plain="true"
21
21
  :color="`text-white`"
22
- :name="`icon-xiala`"
22
+ :name="`meixicomponenticon-xiala`"
23
23
  :disable="downDisable"
24
24
  @iconClick="downNews"
25
25
  >
@@ -3,6 +3,7 @@
3
3
  <div
4
4
  class="section-header"
5
5
  ref="sectionHeader"
6
+ @click.self="handleOpen"
6
7
  :style="{
7
8
  cursor: event && !disable ? 'pointer' : 'default',
8
9
  }"
@@ -30,11 +31,7 @@ export default {
30
31
  this.init();
31
32
  });
32
33
  },
33
- beforeDestroy() {
34
- if (this.$props.event) {
35
- this.$refs.sectionHeader.removeEventListener("click", this.handleOpen);
36
- }
37
- },
34
+ beforeDestroy() {},
38
35
  props: {
39
36
  disable: {
40
37
  type: Boolean,
@@ -68,7 +65,6 @@ export default {
68
65
  methods: {
69
66
  init() {
70
67
  if (!this.$props.event) return;
71
- this.$refs.sectionHeader.addEventListener("click", this.handleOpen);
72
68
  },
73
69
  handleOpen() {
74
70
  if (this.$props.disable) return;
@@ -73,7 +73,7 @@ export default {
73
73
  if (this.isDown) {
74
74
  return "meixicomponenticon-shouqi";
75
75
  }
76
- return "icon-xiala";
76
+ return "meixicomponenticon-xiala";
77
77
  },
78
78
 
79
79
  completed() {
@@ -210,6 +210,7 @@ export default {
210
210
  let result = this.submitVerifiData(params);
211
211
  if (result) {
212
212
  this.$refs[`area-${params.config.key}`][0].doClose();
213
+ this.$emit("formItemConfirm", params.config);
213
214
  } else {
214
215
  this.$message.error("请重新选择");
215
216
  }
@@ -106,8 +106,8 @@
106
106
  <el-option
107
107
  v-for="item in selectData"
108
108
  :key="item.value"
109
- :label="item.label"
110
- :value="item.value"
109
+ :label="item[`${selectLabelKey}`]"
110
+ :value="item[`${selectValueKey}`]"
111
111
  >
112
112
  </el-option>
113
113
  </el-select>
@@ -235,6 +235,27 @@ export default {
235
235
  return this.selectStore.getData();
236
236
  },
237
237
 
238
+ selectLabelKey() {
239
+ let config = this.$props.config?.config;
240
+
241
+ if (config) {
242
+ return config.label.key;
243
+ } else {
244
+ return `label`;
245
+ }
246
+ },
247
+ selectValueKey() {
248
+ let config = this.$props.config?.config;
249
+
250
+ if (config) {
251
+ return config.value.key;
252
+ } else {
253
+ return `value`;
254
+ }
255
+ },
256
+
257
+ selectValue() {},
258
+
238
259
  spContentType() {
239
260
  let configType = this.$props.config.type;
240
261
  if (
@@ -481,7 +502,6 @@ export default {
481
502
  }
482
503
  }
483
504
  .mini {
484
-
485
505
  /deep/ .item-label {
486
506
  font-size: var(--font-size-s) !important;
487
507
  }
@@ -1,7 +1,17 @@
1
1
  <template>
2
2
  <div class="pro-form-wrap">
3
- <baseSectionVue :headerText="formTitle" v-model="sectionOpen">
4
- <base-icon :name="iconClass" :size="`l`" slot="header-prefix"></base-icon>
3
+ <baseSectionVue
4
+ ref="baseSection"
5
+ v-model="sectionOpen"
6
+ :headerText="formTitle"
7
+ >
8
+ <base-icon
9
+ :size="`l`"
10
+ :event="true"
11
+ :name="iconClass"
12
+ slot="header-prefix"
13
+ @iconClick="handleSection"
14
+ ></base-icon>
5
15
  <template slot="section-header-right">
6
16
  <slot name="header-right"></slot>
7
17
  </template>
@@ -63,7 +73,7 @@ export default {
63
73
  if (this.sectionOpen) {
64
74
  return "meixicomponenticon-shouqi";
65
75
  }
66
- return "icon-xiala";
76
+ return "meixicomponenticon-xiala";
67
77
  },
68
78
  },
69
79
  components: {
@@ -71,6 +81,9 @@ export default {
71
81
  baseSectionVue,
72
82
  },
73
83
  methods: {
84
+ handleSection() {
85
+ this.sectionOpen = !this.sectionOpen;
86
+ },
74
87
  formItemConfirm(configItem) {
75
88
  this.$emit("formItemConfirm", configItem);
76
89
  },