meixioacomponent 0.3.64 → 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/lib/meixioacomponent.common.js +155 -154
- package/lib/meixioacomponent.umd.js +155 -154
- package/lib/meixioacomponent.umd.min.js +13 -13
- package/package.json +1 -1
- package/packages/components/proForm/proForm/pro_form_item.vue +17 -4
- package/packages/components/proPageTable/oa_pro-table-search.vue +1 -1
- package/packages/components/proPageTable/oa_pro_table.vue +1 -1
- package/src/component/test.vue +53 -6
- package/src/component/testSelectStore.js +11 -23
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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
|
}
|
package/src/component/test.vue
CHANGED
|
@@ -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
|
|
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
|
-
|
|
17
|
-
|
|
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:
|
|
27
|
+
name: 'testSelectStore',
|
|
40
28
|
request: testRequest,
|
|
41
|
-
})
|
|
29
|
+
})
|
|
42
30
|
|
|
43
|
-
export default testSelectStore
|
|
31
|
+
export default testSelectStore
|