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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "1.1.58",
3
+ "version": "1.1.60",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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`]) {
@@ -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}-${this.file.name}`;
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}`);