meixioacomponent 0.3.62 → 0.3.65

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.3.62",
3
+ "version": "0.3.65",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -325,13 +325,15 @@ export default {
325
325
 
326
326
  case 'select':
327
327
  let list = this.selectData
328
+ const selectConfig = this.selectConfig
328
329
  if (list.length > 0) {
329
330
  if (!this.multiple) {
330
331
  if (this.module) {
331
332
  let index = list.findIndex((item) => {
332
- return item.value == this.module
333
+ return item[`${selectConfig.value}`] == this.module
333
334
  })
334
- return list[index].label
335
+
336
+ return list[index][`${selectConfig.label}`]
335
337
  } else {
336
338
  return '暂无数据'
337
339
  }
@@ -339,10 +341,12 @@ export default {
339
341
  let text = ''
340
342
  this.module.forEach((item) => {
341
343
  let index = list.findIndex((citem) => {
342
- return citem.value == item
344
+ return citem[`${selectConfig.value}`] == item
343
345
  })
344
346
 
345
- text += text ? ` / ${list[index].label}` : list[index].label
347
+ text += text
348
+ ? ` / ${list[index][`${selectConfig.label}`]}`
349
+ : list[index][`${selectConfig.label}`]
346
350
  })
347
351
  return text
348
352
  }
@@ -583,6 +587,15 @@ export default {
583
587
  .disabled {
584
588
  cursor: not-allowed !important;
585
589
 
590
+ .item-content {
591
+ /deep/ textarea {
592
+ border: 0px !important;
593
+ &:hover {
594
+ border-color: transparent !important ;
595
+ }
596
+ }
597
+ }
598
+
586
599
  .content-value {
587
600
  color: var(--font-color-ds) !important;
588
601
  }
@@ -7,6 +7,10 @@
7
7
  @handleSearch="handleSearch"
8
8
  @handleScreen="handleScreen"
9
9
  >
10
+ <template slot="search-hearch-extend">
11
+ <slot name="table-search-extend"></slot>
12
+ </template>
13
+
10
14
  <el-button
11
15
  size="small"
12
16
  :class="{
@@ -15,11 +19,13 @@
15
19
  :disabled="_proScreenList.length <= 0 && !proScreenCardShow"
16
20
  @click="handleProScreenList(false)"
17
21
  :type="proScreenCardShow ? 'selected' : 'info'"
18
- >{{ handleScreenText }} <i :class="handleScreenIcon"></i>
22
+ >
23
+ {{ handleScreenText }}
24
+ <i :class="handleScreenIcon"></i>
19
25
  </el-button>
20
26
  <el-button size="small" @click="handleOpenProScreen">
21
- <i class="meixicomponenticonfont meixicomponenticon-shaixuan"></i
22
- >高级筛选
27
+ <i class="meixicomponenticonfont meixicomponenticon-shaixuan"></i>
28
+ 高级筛选
23
29
  </el-button>
24
30
  </searchHeaderVue>
25
31
 
@@ -32,7 +38,7 @@
32
38
  :event="false"
33
39
  :icon="false"
34
40
  :useSlot="true"
35
- style="width: auto"
41
+ style="width: auto;"
36
42
  :valueAlign="`left`"
37
43
  :label="`排列方式:`"
38
44
  >
@@ -65,9 +71,9 @@
65
71
  </template>
66
72
 
67
73
  <script>
68
- import oa_pro_screen_itemVue from "./oa_pro_screen_item.vue";
69
- import searchHeaderVue from "../searchHeader/searchHeader.vue";
70
- import baseButtonHandle from "../base/baseButtonHandle/baseButtonHandle.vue";
74
+ import oa_pro_screen_itemVue from './oa_pro_screen_item.vue'
75
+ import searchHeaderVue from '../searchHeader/searchHeader.vue'
76
+ import baseButtonHandle from '../base/baseButtonHandle/baseButtonHandle.vue'
71
77
  export default {
72
78
  data() {
73
79
  return {
@@ -78,14 +84,14 @@ export default {
78
84
  toggle: {
79
85
  index: 1,
80
86
  list: [
81
- { label: "三列", value: 1 },
82
- { label: "四列", value: 2 },
87
+ { label: '三列', value: 1 },
88
+ { label: '四列', value: 2 },
83
89
  ],
84
90
  },
85
- };
91
+ }
86
92
  },
87
93
  created() {
88
- this.initFooterHandleList();
94
+ this.initFooterHandleList()
89
95
  },
90
96
  props: {
91
97
  value: {},
@@ -107,97 +113,97 @@ export default {
107
113
  },
108
114
  computed: {
109
115
  proScreenCardShow() {
110
- return this._proScreenList.length > 0 && this.showProScreenList;
116
+ return this._proScreenList.length > 0 && this.showProScreenList
111
117
  },
112
118
  handleScreenIcon() {
113
- return this.proScreenCardShow ? "el-icon-arrow-up" : "el-icon-arrow-down";
119
+ return this.proScreenCardShow ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
114
120
  },
115
121
  handleScreenText() {
116
- return this.proScreenCardShow ? "收起筛选" : "展开筛选";
122
+ return this.proScreenCardShow ? '收起筛选' : '展开筛选'
117
123
  },
118
124
 
119
125
  _proScreenList() {
120
126
  return this.$props.proScreenList.filter((item) => {
121
- return item.exposed;
122
- });
127
+ return item.exposed
128
+ })
123
129
  },
124
130
  rowWidth() {
125
- return this.toggle.index == 1 ? 33 : 25;
131
+ return this.toggle.index == 1 ? 33 : 25
126
132
  },
127
133
 
128
134
  screenStyle() {
129
135
  return {
130
136
  width: `${this.rowWidth}%`,
131
- };
137
+ }
132
138
  },
133
139
 
134
140
  module: {
135
141
  get() {
136
- return this.$props.value;
142
+ return this.$props.value
137
143
  },
138
144
  set(val) {
139
- this.$emit("input", val);
145
+ this.$emit('input', val)
140
146
  },
141
147
  },
142
148
  },
143
149
  methods: {
144
150
  handleSearch() {
145
- this.$parent.refreshData();
151
+ this.$parent.refreshData()
146
152
  },
147
153
  handleProScreenList(flag = false) {
148
154
  if (!flag) {
149
- this.showProScreenList = !this.showProScreenList;
155
+ this.showProScreenList = !this.showProScreenList
150
156
  } else {
151
- this.showProScreenList = true;
157
+ this.showProScreenList = true
152
158
  }
153
159
 
154
- this.computedHeight();
160
+ this.computedHeight()
155
161
  },
156
162
  handleScreen(index) {
157
- this.$parent.handleScreen(index);
163
+ this.$parent.handleScreen(index)
158
164
  },
159
165
  computedHeight() {
160
166
  this.$nextTick(() => {
161
167
  this.$emit(
162
- "searchContentHeightChange",
163
- this.$refs.oaProTableSearchContent.clientHeight
164
- );
165
- });
168
+ 'searchContentHeightChange',
169
+ this.$refs.oaProTableSearchContent.clientHeight,
170
+ )
171
+ })
166
172
  },
167
173
  handleOpenProScreen() {
168
- this.$parent.handleOpenProScreen();
174
+ this.$parent.handleOpenProScreen()
169
175
  },
170
176
 
171
177
  // 尾部按钮
172
178
  initFooterHandleList() {
173
179
  this.footerHandleConfig = [
174
180
  {
175
- text: "确定",
176
- type: "primary",
181
+ text: '确定',
182
+ type: 'primary',
177
183
  plain: false,
178
184
  click: () => {
179
- this.$parent.refreshData();
185
+ this.$parent.refreshData()
180
186
  },
181
187
  },
182
188
  {
183
- text: "清空条件",
184
- type: "info",
189
+ text: '清空条件',
190
+ type: 'info',
185
191
  plain: true,
186
192
  click: () => {
187
- this.$parent.cleanProscreenCondition(true);
193
+ this.$parent.cleanProscreenCondition(true)
188
194
  },
189
195
  },
190
- ];
196
+ ]
191
197
  },
192
198
  },
193
199
  watch: {
194
200
  proScreenCardShow(newVal, oldVal) {
195
201
  if (!newVal) {
196
- this.showProScreenList = false;
202
+ this.showProScreenList = false
197
203
  }
198
204
  },
199
205
  },
200
- };
206
+ }
201
207
  </script>
202
208
 
203
209
  <style lang="less" scoped>
@@ -29,7 +29,11 @@
29
29
  :proScreenList="proScreenList"
30
30
  :proScreenConfig="_proScreenConfig"
31
31
  @searchContentHeightChange="searchContentHeightChange"
32
- ></oa_pro_table_searchVue>
32
+ >
33
+ <template slot="table-search-extend">
34
+ <slot name="search-extend"></slot>
35
+ </template>
36
+ </oa_pro_table_searchVue>
33
37
  </div>
34
38
 
35
39
  <!-- 表格内容 -->
@@ -5,15 +5,15 @@
5
5
  v-if="input"
6
6
  size="small"
7
7
  v-model="module"
8
- style="width: 220px"
8
+ style="width: 220px;"
9
9
  :placeholder="placeholder"
10
10
  suffix-icon="el-icon-search"
11
11
  @keyup.enter.native="handleSearch"
12
- >
13
- </el-input>
12
+ ></el-input>
14
13
 
15
14
  <div class="header-config-wrap" v-if="searchList">
16
15
  <span class="view-text">显示:</span>
16
+
17
17
  <el-button
18
18
  :key="index"
19
19
  :size="size"
@@ -23,8 +23,11 @@
23
23
  @click="handleScreen(index)"
24
24
  v-for="(item, index) in searchList.list"
25
25
  :type="index == searchList.index ? 'selected' : 'info'"
26
- >{{ item.label }}</el-button
27
26
  >
27
+ {{ item.label }}
28
+ </el-button>
29
+
30
+ <slot name="search-hearch-extend"></slot>
28
31
  </div>
29
32
  </div>
30
33
  <div class="search-header-wrap-right">
@@ -36,7 +39,7 @@
36
39
  <script>
37
40
  export default {
38
41
  data() {
39
- return {};
42
+ return {}
40
43
  },
41
44
  props: {
42
45
  value: {},
@@ -49,29 +52,29 @@ export default {
49
52
  },
50
53
  size: {
51
54
  type: String,
52
- default: "small",
55
+ default: 'small',
53
56
  },
54
57
  placeholder: { type: String },
55
58
  },
56
59
  computed: {
57
60
  module: {
58
61
  get() {
59
- return this.$props.value;
62
+ return this.$props.value
60
63
  },
61
64
  set(val) {
62
- this.$emit("input", val);
65
+ this.$emit('input', val)
63
66
  },
64
67
  },
65
68
  },
66
69
  methods: {
67
70
  handleSearch() {
68
- this.$emit("handleSearch");
71
+ this.$emit('handleSearch')
69
72
  },
70
73
  handleScreen(index) {
71
- this.$emit("handleScreen", index);
74
+ this.$emit('handleScreen', index)
72
75
  },
73
76
  },
74
- };
77
+ }
75
78
  </script>
76
79
 
77
80
  <style lang="less" scoped>
@@ -311,7 +311,7 @@ export default {
311
311
  }
312
312
  </style> -->
313
313
 
314
- <template>
314
+ <!-- <template>
315
315
  <div class="page-table-wrap" ref="pageTableWrap" v-if="show">
316
316
  <base-pro-table
317
317
  :align="`left`"
@@ -327,7 +327,6 @@ export default {
327
327
  :totalPropsList="totalPropsList"
328
328
  :proScreenConfig="proScreenConfig"
329
329
  >
330
- <!-- 表格头部插槽 -->
331
330
  <template>
332
331
  <base-icon
333
332
  :color="`m`"
@@ -359,16 +358,15 @@ export default {
359
358
  </el-dropdown>
360
359
  </template>
361
360
 
362
- <!-- 自定义模板列 -->
363
361
  <template v-slot:gmtCreate="data">
364
362
  <el-button type="text" :disabled="false">222</el-button>
365
363
  </template>
366
364
  <template v-slot:address="data">template-{{ data.scope }}</template>
367
365
  </base-pro-table>
368
366
  </div>
369
- </template>
367
+ </template> -->
370
368
 
371
- <script>
369
+ <!-- <script>
372
370
  import tableTable from '../test'
373
371
  import companyInfoConfig from '../config/CompanyInfoConfig'
374
372
  import componentConfig from '../../packages/config/componentConfig'
@@ -557,7 +555,7 @@ export default {
557
555
  height: 100%;
558
556
  background: inherit;
559
557
  }
560
- </style>
558
+ </style> -->
561
559
 
562
560
  <!-- 普通表单 -->
563
561
 
@@ -817,3 +815,52 @@ export default {
817
815
  </script>
818
816
 
819
817
  <style></style> -->
818
+
819
+ <template>
820
+ <base-form-wrap
821
+ :rowNumber="2"
822
+ :disabled="true"
823
+ :labelWidth="`155px`"
824
+ ref="businessBaseForm"
825
+ :formTitle="`dsada`"
826
+ :formList="formList"
827
+ ></base-form-wrap>
828
+ </template>
829
+
830
+ <script>
831
+ export default {
832
+ data() {
833
+ return {
834
+ formList: [
835
+ {
836
+ value: '',
837
+ key: 'legalPerson',
838
+ type: 'input',
839
+ label: '法人名称',
840
+ },
841
+ {
842
+ value: '',
843
+ key: 'idCard',
844
+ type: 'input',
845
+ label: '法人身份证',
846
+ },
847
+ {
848
+ value: '',
849
+ key: 'businessLicense',
850
+ type: 'select',
851
+ label: '营业执照号',
852
+ useStore: 'testSelectStore',
853
+ },
854
+ {
855
+ value: 'sdakjsdkajk',
856
+ key: 'businessLicenseFile',
857
+ type: 'textarea',
858
+ label: '营业执照电子版',
859
+ },
860
+ ],
861
+ }
862
+ },
863
+ }
864
+ </script>
865
+
866
+ <style lang="less" scoped></style>
@@ -1,4 +1,4 @@
1
- import meixioacomponent from "../../packages/components/index";
1
+ import meixioacomponent from '../../packages/components/index'
2
2
  // 示例
3
3
  let testRequest = () => {
4
4
  return new Promise((resolve, reject) => {
@@ -6,38 +6,26 @@ let testRequest = () => {
6
6
  resolve([
7
7
  {
8
8
  value: 1,
9
- label: "黄金糕",
9
+ label: '黄金糕',
10
10
  },
11
11
  {
12
12
  value: 2,
13
- label: "双皮奶",
13
+ label: '双皮奶',
14
14
  },
15
- {
16
- value: 3,
17
- label: "蚵仔煎",
18
- },
19
- {
20
- value: 4,
21
- label: "龙须面",
22
- },
23
- {
24
- value: 5,
25
- label: "北京烤鸭",
26
- },
27
- ]);
28
- }, 5000);
29
- });
30
- };
15
+ ])
16
+ }, 100)
17
+ })
18
+ }
31
19
 
32
20
  class TestSelectStore extends meixioacomponent.SelectStore {
33
21
  constructor(params) {
34
- super(params);
22
+ super(params)
35
23
  }
36
24
  }
37
25
 
38
26
  let testSelectStore = new TestSelectStore({
39
- name: "testSelectStore",
27
+ name: 'testSelectStore',
40
28
  request: testRequest,
41
- });
29
+ })
42
30
 
43
- export default testSelectStore;
31
+ export default testSelectStore