meixioacomponent 0.3.64 → 0.3.67

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.64",
3
+ "version": "0.3.67",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -187,7 +187,6 @@ export default {
187
187
  moveing(e) {
188
188
  let ref = this.$refs.drawer;
189
189
  this.drawerSize = e;
190
- console.log(this.drawerSize);
191
190
  ref.$el.style.cssText += `width:${e}px`;
192
191
  },
193
192
 
@@ -44,6 +44,7 @@ import SelectStore from '../config/selectStore/SelectStore'
44
44
  //
45
45
  import useImg from '../config/use/UseImg'
46
46
  import UseDrag from '../config/use/useDrag'
47
+ import UseResize from '../config/use/UseResize'
47
48
  import useUpload from '../config/use/UseUpload'
48
49
  import useFixedHeader from '../config/use/useFixedHeader'
49
50
  import useCropper from '../config/use/useCropper'
@@ -143,6 +144,7 @@ export default {
143
144
  SelectStore,
144
145
  useImg,
145
146
  UseDrag,
147
+ UseResize,
146
148
  useUpload,
147
149
  useFixedHeader,
148
150
  useCropper,
@@ -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
  }
@@ -8,7 +8,7 @@
8
8
  @handleScreen="handleScreen"
9
9
  >
10
10
  <template slot="search-hearch-extend">
11
- <slot slot="table-search-extend"></slot>
11
+ <slot name="table-search-extend"></slot>
12
12
  </template>
13
13
 
14
14
  <el-button
@@ -31,7 +31,7 @@
31
31
  @searchContentHeightChange="searchContentHeightChange"
32
32
  >
33
33
  <template slot="table-search-extend">
34
- <slot slot="search-extend"></slot>
34
+ <slot name="search-extend"></slot>
35
35
  </template>
36
36
  </oa_pro_table_searchVue>
37
37
  </div>
@@ -1,48 +1,52 @@
1
1
  class UseResize {
2
2
  constructor(parmas) {
3
3
  // type 为 width/height
4
- this.type = parmas.type;
4
+ this.type = parmas.type
5
5
  // 目标需要改变的值
6
- this.value = parmas.value;
6
+ this.value = parmas.value
7
7
  // 移动的时候的事件
8
- this.moveing = parmas.moveing;
8
+ this.moveing = parmas.moveing
9
9
  // 结束事件
10
- this.resizeEnd = parmas.resizeEnd;
11
- this.x = null;
12
- this.sub = null;
10
+ this.resizeEnd = parmas.resizeEnd
11
+ this.x = null
12
+ this.sub = null
13
13
  }
14
14
 
15
15
  setListen() {
16
- document.onmousemove = this.onResizeing;
17
- document.onmouseup = this.onResizeEnd;
16
+ document.onmousemove = this.onResizeing
17
+ document.onmouseup = this.onResizeEnd
18
18
  }
19
19
  removeListen() {
20
- document.onmousemove = null;
21
- document.onmouseup = null;
20
+ document.onmousemove = null
21
+ document.onmouseup = null
22
22
  }
23
23
 
24
24
  startResize(e) {
25
- this.setListen();
26
- if (this.type == "width") {
27
- this.x = e.clientX;
25
+ this.setListen()
26
+ if (this.type == 'width') {
27
+ this.x = e.clientX
28
28
  }
29
29
  }
30
30
 
31
+ initValue(value) {
32
+ this.value = value
33
+ }
34
+
31
35
  onResizeing = (e) => {
32
- let type = this.type;
33
- if (type == "width") {
34
- const stw = this.x - e.clientX;
35
- this.sub = this.value + stw;
36
- this.moveing(this.sub);
36
+ let type = this.type
37
+ if (type == 'width') {
38
+ const stw = this.x - e.clientX
39
+ this.sub = this.value + stw
40
+ this.moveing(this.sub)
37
41
  }
38
- };
42
+ }
39
43
  onResizeEnd = (e) => {
40
- this.removeListen();
41
- this.value = this.sub;
44
+ this.removeListen()
45
+ this.value = this.sub
42
46
  if (this.resizeEnd) {
43
- this.resizeEnd();
47
+ this.resizeEnd()
44
48
  }
45
- };
49
+ }
46
50
  }
47
51
 
48
- export default UseResize;
52
+ export default UseResize
@@ -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