@ebiz/designer-components 0.0.18-beta.40 → 0.0.18-beta.41
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,9 +1,9 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
2
|
+
<t-tooltip :content="!isNormal && !apiConfig.apiId ? tooltipText : ''" placement="top">
|
3
|
+
<t-button :disabled="disabled || loading" :theme="type" :size="size" @click="click">
|
4
4
|
<slot>{{ text }}</slot>
|
5
|
-
</
|
6
|
-
</
|
5
|
+
</t-button>
|
6
|
+
</t-tooltip>
|
7
7
|
</template>
|
8
8
|
|
9
9
|
|
@@ -14,9 +14,9 @@ export default {
|
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<script lang='js' setup>
|
17
|
-
|
18
|
-
|
19
|
-
import {
|
17
|
+
|
18
|
+
import { ref, reactive, computed, toRef, toRefs } from 'vue';
|
19
|
+
import { Button as TButton,Tooltip as TTooltip } from 'tdesign-vue-next';
|
20
20
|
import dataService from '../apiService/simpleDataService';
|
21
21
|
|
22
22
|
const props = defineProps({
|
@@ -34,7 +34,7 @@ const props = defineProps({
|
|
34
34
|
},
|
35
35
|
type: {//'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info'
|
36
36
|
type: String,
|
37
|
-
default: '
|
37
|
+
default: 'primary'
|
38
38
|
},
|
39
39
|
size: {//'large' | 'medium' | 'small'
|
40
40
|
type: String,
|
@@ -4,7 +4,6 @@
|
|
4
4
|
:draggable="draggable" :fileListDisplay="fileListDisplay" :files="internalFiles" :format="format"
|
5
5
|
:formatRequest="formatRequest" :headers="headers" :isBatchUpload="isBatchUpload" :max="max" :method="method"
|
6
6
|
:multiple="multiple" :name="name" :placeholder="placeholder"
|
7
|
-
:requestMethod="useInternalUpload ? customRequestMethod : requestMethod"
|
8
7
|
:showUploadProgress="showUploadProgress" :sizeLimit="sizeLimit" :status="status" :theme="theme" :tips="tips"
|
9
8
|
:uploadAllFilesInOneRequest="uploadAllFilesInOneRequest" :uploadButton="uploadButton"
|
10
9
|
:useMockProgress="useMockProgress" :withCredentials="withCredentials" v-model="modelValue"
|
@@ -58,7 +57,7 @@ import { Upload as TUpload } from 'tdesign-vue-next';
|
|
58
57
|
import dataService from '../apiService/simpleDataService';
|
59
58
|
|
60
59
|
// 内部上传地址常量
|
61
|
-
const INTERNAL_UPLOAD_URL = '/file/upload';
|
60
|
+
const INTERNAL_UPLOAD_URL = '/api/file/app/td-upload';
|
62
61
|
|
63
62
|
// 内部维护的文件列表,代替直接使用props.files
|
64
63
|
const internalFiles = ref([]);
|
@@ -274,7 +273,7 @@ const props = defineProps({
|
|
274
273
|
// 是否使用内部上传服务,如果为true则忽略action参数
|
275
274
|
useInternalUpload: {
|
276
275
|
type: Boolean,
|
277
|
-
default:
|
276
|
+
default: false
|
278
277
|
}
|
279
278
|
});
|
280
279
|
|