mooho-base-admin-plus 2.2.9 → 2.2.11
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/history.md +2 -0
- package/package/mooho-base-admin-plus.min.esm.js +26 -9
- package/package/mooho-base-admin-plus.min.js +6 -6
- package/package.json +1 -1
- package/src/components/upload/upload-attachment.vue +9 -1
- package/src/components/upload/upload-image.vue +23 -1
- package/src/components/view/column-edit.vue +1 -1
- package/src/components/view/view-form.vue +1 -0
- package/src/components/view/view-table.vue +13 -1
package/package.json
CHANGED
|
@@ -9,7 +9,15 @@
|
|
|
9
9
|
:on-preview="onUploadPreview"
|
|
10
10
|
:on-remove="onUploadRemove"
|
|
11
11
|
:disabled="readonly"
|
|
12
|
-
:accept="
|
|
12
|
+
:accept="
|
|
13
|
+
!!(accept || '').trim()
|
|
14
|
+
? accept
|
|
15
|
+
.split(',')
|
|
16
|
+
.map(item => '.' + item.replaceAll('.', ''))
|
|
17
|
+
.join(',')
|
|
18
|
+
: null
|
|
19
|
+
"
|
|
20
|
+
:format="!!(accept || '').trim() ? accept.split(',').map(item => item.replaceAll('.', '')) : null"
|
|
13
21
|
:multiple="true"
|
|
14
22
|
:type="draggable ? 'drag' : 'select'"
|
|
15
23
|
>
|
|
@@ -16,7 +16,23 @@
|
|
|
16
16
|
<Icon custom="fa fa-download" @click="downloadImage(item)"></Icon>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
|
-
<Upload
|
|
19
|
+
<Upload
|
|
20
|
+
v-if="!readonly"
|
|
21
|
+
:accept="
|
|
22
|
+
!!(accept || '').trim()
|
|
23
|
+
? accept
|
|
24
|
+
.split(',')
|
|
25
|
+
.map(item => '.' + item.replaceAll('.', ''))
|
|
26
|
+
.join(',')
|
|
27
|
+
: 'image/*'
|
|
28
|
+
"
|
|
29
|
+
:format="!!(accept || '').trim() ? accept.split(',').map(item => item.replaceAll('.', '')) : null"
|
|
30
|
+
:action="uploadURL"
|
|
31
|
+
:headers="uploadHeaders"
|
|
32
|
+
:show-upload-list="false"
|
|
33
|
+
:before-upload="beforeUpload"
|
|
34
|
+
:on-success="onUploadSuccess"
|
|
35
|
+
>
|
|
20
36
|
<div
|
|
21
37
|
class="form-image"
|
|
22
38
|
v-if="fileList.length < maxCount || maxCount == null"
|
|
@@ -71,6 +87,12 @@
|
|
|
71
87
|
// 图片高度
|
|
72
88
|
height: {
|
|
73
89
|
type: Number
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* 允许的文件类型
|
|
93
|
+
*/
|
|
94
|
+
accept: {
|
|
95
|
+
type: String
|
|
74
96
|
}
|
|
75
97
|
},
|
|
76
98
|
computed: {
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
<Input type="text" v-model="data.pattern" maxlength="100" />
|
|
443
443
|
</FormItem>
|
|
444
444
|
</Col>
|
|
445
|
-
<Col v-bind="grid8" v-if="data.controlType == 'Attachment'">
|
|
445
|
+
<Col v-bind="grid8" v-if="data.controlType == 'Attachment' || data.controlType == 'Image'">
|
|
446
446
|
<FormItem label="接受的文件类型" key="pattern" prop="pattern">
|
|
447
447
|
<Input type="text" v-model="data.pattern" maxlength="100" />
|
|
448
448
|
</FormItem>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@submit.prevent
|
|
18
18
|
>
|
|
19
19
|
<div ref="filterCommand">
|
|
20
|
-
<Row :gutter="24" type="flex" justify="
|
|
20
|
+
<Row :gutter="24" type="flex" :justify="getJustify(tableView.filterAlign)">
|
|
21
21
|
<!--
|
|
22
22
|
@slot 筛选栏
|
|
23
23
|
@binding {object} table 表格对象
|
|
@@ -2559,6 +2559,18 @@
|
|
|
2559
2559
|
} else {
|
|
2560
2560
|
this.setData(model, expression, null);
|
|
2561
2561
|
}
|
|
2562
|
+
},
|
|
2563
|
+
// 筛选栏对齐方式
|
|
2564
|
+
getJustify(filterAlign) {
|
|
2565
|
+
if (filterAlign == 'Left') {
|
|
2566
|
+
return 'start';
|
|
2567
|
+
} else if (filterAlign == 'Center') {
|
|
2568
|
+
return 'center';
|
|
2569
|
+
} else if (filterAlign == 'Right') {
|
|
2570
|
+
return 'end';
|
|
2571
|
+
} else {
|
|
2572
|
+
return 'end';
|
|
2573
|
+
}
|
|
2562
2574
|
}
|
|
2563
2575
|
}
|
|
2564
2576
|
};
|