@ebiz/designer-components 0.0.26 → 0.0.27

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/dist/index.mjs CHANGED
@@ -117890,26 +117890,26 @@ const na = {
117890
117890
  "DEL_DATA",
117891
117891
  "BATCH_DEL_DATA",
117892
117892
  "MULTIPLE_DATA_LINK_SEARCH"
117893
- ], a = t, { text: o, isNormal: i, disabled: l, type: s, size: u, variant: c, apiConfig: d, data: f } = et(n), v = J("请先设置接口配置"), h = J(!1), p = () => d.value && d.value.apiId && typeof d.value.apiType == "number" && d.value.apiType >= 0 && d.value.apiType < r.length, m = async (g) => {
117894
- if (n.onClick(), a("click", g), !(i.value || !p()))
117893
+ ], a = t, { text: o, isNormal: i, disabled: l, type: s, size: u, variant: c, apiConfig: d, data: f } = et(n), v = J("请先设置接口配置"), h = J(!1), p = async (m) => {
117894
+ if (n.onClick(), a("click", m), !i.value)
117895
117895
  try {
117896
117896
  h.value = !0, a("loading", !0);
117897
- const y = await Promise.resolve(n.onPrepare());
117898
- if (a("prepare", y), y === !1)
117897
+ const g = await Promise.resolve(n.onPrepare());
117898
+ if (a("prepare", g), g === !1)
117899
117899
  return null;
117900
- const w = r[d.value.apiType], S = await na.fetch(f.value, {
117900
+ const y = r[d.value.apiType], w = await na.fetch(f.value, {
117901
117901
  key: d.value.key,
117902
117902
  apiId: d.value.apiId,
117903
- apiType: w
117903
+ apiType: y
117904
117904
  });
117905
- return a("success", S), n.onFinish(S), S;
117906
- } catch (y) {
117907
- return a("error", y), n.onError(y), null;
117905
+ return a("success", w), n.onFinish(w), w;
117906
+ } catch (g) {
117907
+ return a("error", g), n.onError(g), null;
117908
117908
  } finally {
117909
117909
  h.value = !1, a("loading", !1);
117910
117910
  }
117911
117911
  };
117912
- return (g, y) => (k(), re(Ae(xn), {
117912
+ return (m, g) => (k(), re(Ae(xn), {
117913
117913
  content: !Ae(i) && !Ae(d).apiId ? v.value : "",
117914
117914
  placement: "top"
117915
117915
  }, {
@@ -117918,10 +117918,10 @@ const na = {
117918
117918
  disabled: Ae(l) || h.value,
117919
117919
  theme: Ae(s),
117920
117920
  size: Ae(u),
117921
- onClick: m
117921
+ onClick: p
117922
117922
  }, {
117923
117923
  default: Q(() => [
117924
- ne(g.$slots, "default", {}, () => [
117924
+ ne(m.$slots, "default", {}, () => [
117925
117925
  Se(te(Ae(o)), 1)
117926
117926
  ])
117927
117927
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebiz/designer-components",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -105,7 +105,7 @@ const click = async (e) => {
105
105
  emit('click', e)
106
106
 
107
107
  // 如果是普通按钮或API配置无效,不调用接口
108
- if (isNormal.value || !isValidApiConfig()) {
108
+ if (isNormal.value) {
109
109
  return
110
110
  }
111
111