meixioacomponent 1.1.58 → 1.1.60
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/components/index.d.ts.map +1 -1
- package/lib/meixioacomponent.common.js +29 -14
- package/lib/meixioacomponent.umd.js +29 -14
- package/lib/meixioacomponent.umd.min.js +2 -2
- package/package.json +1 -1
- package/packages/components/base/baseTimeRangePicker/baseTimeRangePicker.vue +12 -2
- package/packages/components/index.ts +0 -2
- package/packages/utils/upload.js +2 -1
package/package.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
ref="baseTimeRangePickerContentRef"
|
|
5
5
|
v-model="module"
|
|
6
6
|
v-bind="$attrs"
|
|
7
|
+
:size="size"
|
|
8
|
+
:type="type"
|
|
7
9
|
@change="onChange"
|
|
8
10
|
@blur="onBlur"
|
|
9
11
|
@focus="onFocus"
|
|
@@ -11,7 +13,7 @@
|
|
|
11
13
|
</div>
|
|
12
14
|
</template>
|
|
13
15
|
|
|
14
|
-
<script
|
|
16
|
+
<script>
|
|
15
17
|
import {defineComponent} from 'vue'
|
|
16
18
|
import elDatePicker from "../elDatePicker/index.vue";
|
|
17
19
|
|
|
@@ -21,7 +23,15 @@ export default defineComponent({
|
|
|
21
23
|
return {}
|
|
22
24
|
},
|
|
23
25
|
props: {
|
|
24
|
-
value: {}
|
|
26
|
+
value: {},
|
|
27
|
+
size: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'small'
|
|
30
|
+
},
|
|
31
|
+
type:{
|
|
32
|
+
type: String,
|
|
33
|
+
default: 'datetimerange'
|
|
34
|
+
}
|
|
25
35
|
},
|
|
26
36
|
components: {
|
|
27
37
|
elDatePicker
|
|
@@ -154,8 +154,6 @@ const install = (Vue) => {
|
|
|
154
154
|
componentConfig.createDialogCacheWrap();
|
|
155
155
|
componentConfig.eventBus = new componentConfig.Vue();
|
|
156
156
|
proTableLocalConfigManage.initByProTableLocalConfigManage();
|
|
157
|
-
|
|
158
|
-
|
|
159
157
|
};
|
|
160
158
|
//
|
|
161
159
|
if (typeof window !== "undefined" && window[`Vue`]) {
|
package/packages/utils/upload.js
CHANGED
|
@@ -2,6 +2,7 @@ import axios from "axios";
|
|
|
2
2
|
import uploadRequest from "../config/uploadRequest";
|
|
3
3
|
import componentConfig from "../config/componentConfig";
|
|
4
4
|
import { v4 } from "uuid";
|
|
5
|
+
import {fileSuffix} from "./utils";
|
|
5
6
|
|
|
6
7
|
// state 0是未开始 1是已完成 2是以失败
|
|
7
8
|
class Upload {
|
|
@@ -22,7 +23,7 @@ class Upload {
|
|
|
22
23
|
if (isOss) {
|
|
23
24
|
try {
|
|
24
25
|
const v4Id = v4();
|
|
25
|
-
const fileName = `${v4Id}
|
|
26
|
+
const fileName = `${v4Id}.${fileSuffix(this.file.name)}`;
|
|
26
27
|
let { accessKeyId, signature, host, policy, dir } =
|
|
27
28
|
await this.getOssParams();
|
|
28
29
|
params.append("OSSAccessKeyId", `${accessKeyId}`);
|