@ebiz/designer-components 0.0.18-beta.38 → 0.0.18-beta.39
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
@@ -101,13 +101,13 @@ const isValidApiConfig = () => {
|
|
101
101
|
apiConfig.value.apiType < apiMap.length;
|
102
102
|
}
|
103
103
|
|
104
|
-
const click = async () => {
|
104
|
+
const click = async (e) => {
|
105
105
|
// 总是调用onClick回调
|
106
106
|
props.onClick()
|
107
|
+
emit('click', e)
|
107
108
|
|
108
109
|
// 如果是普通按钮或API配置无效,不调用接口
|
109
110
|
if (isNormal.value || !isValidApiConfig()) {
|
110
|
-
emit('click', null)
|
111
111
|
return
|
112
112
|
}
|
113
113
|
|
@@ -122,7 +122,6 @@ const click = async () => {
|
|
122
122
|
|
123
123
|
// 只有当返回值明确为false时才中断,undefined或其他值都继续执行
|
124
124
|
if (shouldContinue === false) {
|
125
|
-
emit('click', null)
|
126
125
|
return null
|
127
126
|
}
|
128
127
|
|
@@ -135,7 +134,6 @@ const click = async () => {
|
|
135
134
|
})
|
136
135
|
|
137
136
|
// 成功处理
|
138
|
-
emit('click', res)
|
139
137
|
emit('success', res)
|
140
138
|
props.onFinish(res)
|
141
139
|
|