meixioacomponent 0.4.76 → 0.4.78
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 +210 -180
- package/lib/meixioacomponent.umd.js +210 -180
- package/lib/meixioacomponent.umd.min.js +13 -13
- package/package.json +1 -1
- package/packages/components/base/baseDialog/index.vue +4 -3
- package/packages/components/base/baseNumberInput/index.vue +8 -2
- package/packages/components/proForm/proForm/pro_form_item.vue +17 -6
- package/packages/components/proPageTable/oa_pro_table.vue +10 -4
- package/src/component/test.vue +15 -15
- package/src/config/CompanyInfoConfig.js +4 -2
package/package.json
CHANGED
|
@@ -47,9 +47,11 @@
|
|
|
47
47
|
></base-icon>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
|
-
|
|
50
|
+
|
|
51
|
+
<base-list class="dialog-content-wrap" :style="dialogContentStyle">
|
|
51
52
|
<slot name="dialog-content"></slot>
|
|
52
|
-
</
|
|
53
|
+
</base-list>
|
|
54
|
+
|
|
53
55
|
<slot
|
|
54
56
|
class="dialog-footer-wrap"
|
|
55
57
|
slot="footer"
|
|
@@ -225,7 +227,6 @@ export default {
|
|
|
225
227
|
.dialog-content-wrap {
|
|
226
228
|
width: 100%;
|
|
227
229
|
height: auto;
|
|
228
|
-
max-height: 70vh;
|
|
229
230
|
overflow-y: auto;
|
|
230
231
|
}
|
|
231
232
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="pro-number-wrap" :class="{ select: select }">
|
|
2
|
+
<div class="pro-number-wrap" :class="{ select: select, disabled: disabled }">
|
|
3
3
|
<el-input-number
|
|
4
4
|
:min="min"
|
|
5
5
|
:max="max"
|
|
@@ -173,7 +173,13 @@ export default {
|
|
|
173
173
|
// }
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
.disabled {
|
|
177
|
+
.number-unit {
|
|
178
|
+
span {
|
|
179
|
+
color: #8f959e;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
177
183
|
/deep/ input {
|
|
178
184
|
font-weight: var(--font-weight-kg);
|
|
179
185
|
}
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
v-model="module"
|
|
132
132
|
:size="size"
|
|
133
133
|
ref="target"
|
|
134
|
-
:type="
|
|
134
|
+
:type="datePickType"
|
|
135
135
|
placeholder="选择日期"
|
|
136
136
|
:disabled="isDisabled"
|
|
137
137
|
v-else-if="isDatePick"
|
|
@@ -371,12 +371,23 @@ export default {
|
|
|
371
371
|
return min < 0 || min == undefined || min == null ? 0 : min
|
|
372
372
|
},
|
|
373
373
|
isDatePick() {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
this.type == 'datetime' ||
|
|
377
|
-
this.type == 'daterange'
|
|
378
|
-
)
|
|
374
|
+
const type = this.type
|
|
375
|
+
return type == 'time' || type == 'datetime' || type == 'daterange'
|
|
379
376
|
},
|
|
377
|
+
datePickType() {
|
|
378
|
+
const type = this.type
|
|
379
|
+
switch (type) {
|
|
380
|
+
case 'time':
|
|
381
|
+
return 'date'
|
|
382
|
+
case 'datetime':
|
|
383
|
+
return 'datetime'
|
|
384
|
+
case 'daterange':
|
|
385
|
+
return 'daterange'
|
|
386
|
+
default:
|
|
387
|
+
break
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
|
|
380
391
|
module: {
|
|
381
392
|
get() {
|
|
382
393
|
return this.$props.value
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<div class="oa-pro-table-search">
|
|
24
24
|
<oa_pro_table_searchVue
|
|
25
25
|
v-model="module"
|
|
26
|
-
v-show="!isCheckTableRow"
|
|
26
|
+
v-show="!isCheckTableRow || !isHasHandlePlugin"
|
|
27
27
|
ref="oaProTableSearch"
|
|
28
28
|
:screenList="screenList"
|
|
29
29
|
:placeholder="placeholder"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<oa_pro_table_check_handle_barVue
|
|
40
40
|
:del-fn="delFn"
|
|
41
41
|
:export-fn="exportFn"
|
|
42
|
-
v-if="isCheckTableRow"
|
|
42
|
+
v-if="isCheckTableRow && isHasHandlePlugin"
|
|
43
43
|
:checked-value="tableCheckboxConfig.value"
|
|
44
44
|
>
|
|
45
45
|
<template slot="check-handle">
|
|
@@ -277,6 +277,7 @@ export default {
|
|
|
277
277
|
},
|
|
278
278
|
created() {
|
|
279
279
|
this.init()
|
|
280
|
+
|
|
280
281
|
componentConfig.eventBus.$on('handleTableBorder', this.handleTableBorder)
|
|
281
282
|
},
|
|
282
283
|
mounted() {
|
|
@@ -462,11 +463,16 @@ export default {
|
|
|
462
463
|
|
|
463
464
|
// 行被选中删除的方法
|
|
464
465
|
delFn() {
|
|
465
|
-
return this._linkViewClassSubs
|
|
466
|
+
return this._linkViewClassSubs?.delFn || null
|
|
466
467
|
},
|
|
467
468
|
// 行被选中导出的方法
|
|
468
469
|
exportFn() {
|
|
469
|
-
return this._linkViewClassSubs
|
|
470
|
+
return this._linkViewClassSubs?.exportFn || null
|
|
471
|
+
},
|
|
472
|
+
|
|
473
|
+
// 是否存在delFn,exportFn以及check-handle-plugin slot
|
|
474
|
+
isHasHandlePlugin() {
|
|
475
|
+
return this.delFn || this.exportFn || this.$slots[`check-handle-plugin`]
|
|
470
476
|
},
|
|
471
477
|
},
|
|
472
478
|
components: {
|
package/src/component/test.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
<template>
|
|
2
2
|
<base-dialog
|
|
3
3
|
ref="dialog"
|
|
4
4
|
:modal="true"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:isCache="true"
|
|
7
7
|
:isDestroy="true"
|
|
8
8
|
:appendToBody="true"
|
|
9
|
-
:contentHeight="`
|
|
9
|
+
:contentHeight="`500px`"
|
|
10
10
|
@destroy="destroy"
|
|
11
11
|
>
|
|
12
12
|
<div class="dialog-content" slot="dialog-content">
|
|
@@ -151,7 +151,7 @@ export default {
|
|
|
151
151
|
<style lang="less" scoped>
|
|
152
152
|
.verify-email-wrap {
|
|
153
153
|
width: 100%;
|
|
154
|
-
height:
|
|
154
|
+
height: 10000px;
|
|
155
155
|
|
|
156
156
|
.des-text {
|
|
157
157
|
display: inline-block;
|
|
@@ -166,7 +166,7 @@ export default {
|
|
|
166
166
|
transform: translateY(-50%);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
</style>
|
|
169
|
+
</style>
|
|
170
170
|
|
|
171
171
|
<!-- <template>
|
|
172
172
|
<base-drawer
|
|
@@ -311,8 +311,8 @@ export default {
|
|
|
311
311
|
box-sizing: border-box;
|
|
312
312
|
}
|
|
313
313
|
</style> -->
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
<!--
|
|
315
|
+
<template>
|
|
316
316
|
<div class="page-table-wrap" ref="pageTableWrap" v-if="show">
|
|
317
317
|
<base-pro-table
|
|
318
318
|
ref="table"
|
|
@@ -362,6 +362,7 @@ export default {
|
|
|
362
362
|
</el-dropdown>
|
|
363
363
|
</template>
|
|
364
364
|
|
|
365
|
+
|
|
365
366
|
<template v-slot:gmtCreate="data">
|
|
366
367
|
<el-button type="text" :disabled="false">222</el-button>
|
|
367
368
|
</template>
|
|
@@ -525,7 +526,7 @@ export default {
|
|
|
525
526
|
})
|
|
526
527
|
}
|
|
527
528
|
return new Promise((resolve, reject) => {
|
|
528
|
-
resolve(
|
|
529
|
+
resolve([{}])
|
|
529
530
|
})
|
|
530
531
|
},
|
|
531
532
|
rowClick(row) {
|
|
@@ -807,7 +808,7 @@ export default {
|
|
|
807
808
|
|
|
808
809
|
<style></style> -->
|
|
809
810
|
|
|
810
|
-
<template>
|
|
811
|
+
<!-- <template>
|
|
811
812
|
<div>
|
|
812
813
|
<base-form-wrap
|
|
813
814
|
:rowNumber="2"
|
|
@@ -841,9 +842,9 @@ export default {
|
|
|
841
842
|
return {
|
|
842
843
|
formList: [
|
|
843
844
|
{
|
|
844
|
-
value: '
|
|
845
|
+
value: '',
|
|
845
846
|
key: 'inds',
|
|
846
|
-
type: '
|
|
847
|
+
type: 'time',
|
|
847
848
|
label: '营业执照号',
|
|
848
849
|
list: [
|
|
849
850
|
{ label: 'aa', value: '1' },
|
|
@@ -853,12 +854,11 @@ export default {
|
|
|
853
854
|
|
|
854
855
|
{
|
|
855
856
|
value: '',
|
|
856
|
-
type: '
|
|
857
|
+
type: 'number',
|
|
858
|
+
unit: '天',
|
|
857
859
|
label: '产品保质期',
|
|
858
|
-
disabled:true,
|
|
860
|
+
disabled: true,
|
|
859
861
|
key: 'goodsExpirationDate',
|
|
860
|
-
linkKey: 'goodsExpirationUnit',
|
|
861
|
-
useStore: 'testSelectStore',
|
|
862
862
|
},
|
|
863
863
|
|
|
864
864
|
{
|
|
@@ -928,4 +928,4 @@ export default {
|
|
|
928
928
|
}
|
|
929
929
|
</script>
|
|
930
930
|
|
|
931
|
-
<style lang="less" scoped></style>
|
|
931
|
+
<style lang="less" scoped></style> -->
|
|
@@ -7,8 +7,10 @@ class CompanyInfoConfig extends LinkViewClass {
|
|
|
7
7
|
super()
|
|
8
8
|
this.dynamicMount = null
|
|
9
9
|
this.drawerContent = null
|
|
10
|
+
this.delFn=()=>{}
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
|
|
13
|
+
this.tableData = [{}]
|
|
12
14
|
}
|
|
13
15
|
async setTable(params) {
|
|
14
16
|
const res = await request({
|
|
@@ -17,7 +19,7 @@ class CompanyInfoConfig extends LinkViewClass {
|
|
|
17
19
|
params: params,
|
|
18
20
|
})
|
|
19
21
|
|
|
20
|
-
this.tableData = res.data.data.records
|
|
22
|
+
// this.tableData = res.data.data.records
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|