@ebiz/designer-components 0.0.18-beta.41 → 0.0.18-beta.43
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
|
-
<
|
2
|
+
<tiny-tooltip :content="!isNormal && !apiConfig.apiId ? tooltipText : ''" placement="top">
|
3
3
|
<t-button :disabled="disabled || loading" :theme="type" :size="size" @click="click">
|
4
4
|
<slot>{{ text }}</slot>
|
5
5
|
</t-button>
|
6
|
-
</
|
6
|
+
</tiny-tooltip>
|
7
7
|
</template>
|
8
8
|
|
9
9
|
|
@@ -16,7 +16,8 @@ export default {
|
|
16
16
|
<script lang='js' setup>
|
17
17
|
|
18
18
|
import { ref, reactive, computed, toRef, toRefs } from 'vue';
|
19
|
-
import { Button as TButton
|
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({
|
@@ -114,7 +115,7 @@ const click = async (e) => {
|
|
114
115
|
emit('loading', true)
|
115
116
|
|
116
117
|
// 调用前置处理并获取返回值
|
117
|
-
const shouldContinue = props.onPrepare()
|
118
|
+
const shouldContinue = await Promise.resolve(props.onPrepare())
|
118
119
|
emit('prepare', shouldContinue)
|
119
120
|
|
120
121
|
// 只有当返回值明确为false时才中断,undefined或其他值都继续执行
|