@ebiz/designer-components 0.0.18-beta.40 → 0.0.18-beta.42

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": "@ebiz/designer-components",
3
- "version": "0.0.18-beta.40",
3
+ "version": "0.0.18-beta.42",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <tiny-tooltip :content="!isNormal && !apiConfig.apiId ? tooltipText : ''" placement="top">
3
- <tiny-button :disabled="disabled || loading" :type="type" :size="size" @click="click">
3
+ <t-button :disabled="disabled || loading" :theme="type" :size="size" @click="click">
4
4
  <slot>{{ text }}</slot>
5
- </tiny-button>
5
+ </t-button>
6
6
  </tiny-tooltip>
7
7
  </template>
8
8
 
@@ -14,9 +14,10 @@ export default {
14
14
  </script>
15
15
 
16
16
  <script lang='js' setup>
17
- import { ref, toRefs, defineProps, defineEmits } from 'vue';
18
- //import { Button as TButton, Tooltip as TTooltip } from 'tdesign-vue-next';
19
- import { TinyButton, TinyTooltip } from '@opentiny/vue';
17
+
18
+ import { ref, reactive, computed, toRef, toRefs } from 'vue';
19
+ import { Button as TButton } from 'tdesign-vue-next';
20
+ import { TinyTooltip } from '@opentiny/vue';
20
21
  import dataService from '../apiService/simpleDataService';
21
22
 
22
23
  const props = defineProps({
@@ -34,7 +35,7 @@ const props = defineProps({
34
35
  },
35
36
  type: {//'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info'
36
37
  type: String,
37
- default: 'default'
38
+ default: 'primary'
38
39
  },
39
40
  size: {//'large' | 'medium' | 'small'
40
41
  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: true
276
+ default: false
278
277
  }
279
278
  });
280
279