@wimi/ui 0.4.13 → 0.4.15

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.
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-ByPAXpqi.mjs";
1
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index--p3WIvK2.mjs";
2
2
  function _mergeNamespaces(n, m) {
3
3
  for (var i = 0; i < m.length; i++) {
4
4
  const e = m[i];
@@ -44641,31 +44641,31 @@ async function loadDayjsLocale(lang) {
44641
44641
  let locale2;
44642
44642
  switch (lang) {
44643
44643
  case "en-US": {
44644
- locale2 = await import("./en-B05wBZ2q.mjs").then((n10) => n10.e);
44644
+ locale2 = await import("./en-zhQ74CV8.mjs").then((n10) => n10.e);
44645
44645
  break;
44646
44646
  }
44647
44647
  case "zh-CN": {
44648
- locale2 = await import("./zh-cn-_AZ8R08b.mjs").then((n10) => n10.z);
44648
+ locale2 = await import("./zh-cn-BPD5pfh8.mjs").then((n10) => n10.z);
44649
44649
  break;
44650
44650
  }
44651
44651
  case "zh-TW": {
44652
- locale2 = await import("./zh-tw-CMX5zErd.mjs").then((n10) => n10.z);
44652
+ locale2 = await import("./zh-tw-DsvLOt9e.mjs").then((n10) => n10.z);
44653
44653
  break;
44654
44654
  }
44655
44655
  case "ko-KR": {
44656
- locale2 = await import("./ko-B0k4qkMJ.mjs").then((n10) => n10.k);
44656
+ locale2 = await import("./ko-C09EeqdV.mjs").then((n10) => n10.k);
44657
44657
  break;
44658
44658
  }
44659
44659
  case "ja-JP": {
44660
- locale2 = await import("./ja-B0ajEqEd.mjs").then((n10) => n10.j);
44660
+ locale2 = await import("./ja-B3oW-E9e.mjs").then((n10) => n10.j);
44661
44661
  break;
44662
44662
  }
44663
44663
  case "ru-RU": {
44664
- locale2 = await import("./ru-BaYgCW_A.mjs").then((n10) => n10.r);
44664
+ locale2 = await import("./ru-BdoFWoJn.mjs").then((n10) => n10.r);
44665
44665
  break;
44666
44666
  }
44667
44667
  default: {
44668
- locale2 = await import("./zh-cn-_AZ8R08b.mjs").then((n10) => n10.z);
44668
+ locale2 = await import("./zh-cn-BPD5pfh8.mjs").then((n10) => n10.z);
44669
44669
  }
44670
44670
  }
44671
44671
  if (locale2) {
@@ -225923,8 +225923,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
225923
225923
  ], 4)) : createCommentVNode("", true),
225924
225924
  createVNode(unref(CnScrollbar), {
225925
225925
  style: normalizeStyle$2(contentStyle.value),
225926
- shadow: "",
225927
- "shadow-border": ""
225926
+ shadow: ""
225928
225927
  }, {
225929
225928
  default: withCtx(() => [
225930
225929
  renderSlot(_ctx.$slots, "default")
@@ -225952,8 +225951,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
225952
225951
  }, [
225953
225952
  createVNode(unref(CnScrollbar), {
225954
225953
  class: "border-border h-full",
225955
- shadow: "",
225956
- "shadow-border": ""
225954
+ shadow: ""
225957
225955
  }, {
225958
225956
  default: withCtx(() => [
225959
225957
  renderSlot(_ctx.$slots, "extra")
@@ -303182,9 +303180,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
303182
303180
  const globalGridConfig = ((_a3 = VxeUI == null ? void 0 : VxeUI.getConfig()) == null ? void 0 : _a3.grid) ?? {};
303183
303181
  const mergedOptions = cloneDeep$3(mergeWithArrayOverride({}, toRaw(toolbarOptions.value), toRaw(gridOptions.value), globalGridConfig));
303184
303182
  if (mergedOptions.proxyConfig) {
303185
- const { ajax, autoLoad } = mergedOptions.proxyConfig;
303183
+ const { ajax } = mergedOptions.proxyConfig;
303186
303184
  mergedOptions.proxyConfig.enabled = !!ajax;
303187
- mergedOptions.proxyConfig.autoLoad = autoLoad ?? false;
303185
+ mergedOptions.proxyConfig.autoLoad = false;
303188
303186
  }
303189
303187
  if (mergedOptions.pagerConfig) {
303190
303188
  const mobileLayouts = ["PrevJump", "PrevPage", "Number", "NextPage", "NextJump"];
@@ -303212,8 +303210,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
303212
303210
  return {
303213
303211
  ...gridEvents.value,
303214
303212
  toolbarToolClick: onToolbarToolClick,
303215
- custom: () => {
303216
- customOpen.value = false;
303213
+ custom: ({ type }) => {
303214
+ console.log(type);
303215
+ if (type === "confirm") {
303216
+ console.log(1);
303217
+ }
303218
+ if (type === "close") {
303219
+ customOpen.value = false;
303220
+ }
303221
+ },
303222
+ customVisibleAll: ({ checked }) => {
303223
+ console.log(checked);
303217
303224
  }
303218
303225
  };
303219
303226
  });
@@ -303243,7 +303250,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
303243
303250
  const autoLoad = (_b3 = defaultGridOptions.proxyConfig) == null ? void 0 : _b3.autoLoad;
303244
303251
  const enableProxyConfig = (_c2 = options.value.proxyConfig) == null ? void 0 : _c2.enabled;
303245
303252
  if (enableProxyConfig && autoLoad) {
303246
- (_e2 = (_d2 = props2.api.grid).commitProxy) == null ? void 0 : _e2.call(_d2, "_init", formOptions.value ? await formApi.getValues() ?? {} : {});
303253
+ (_e2 = (_d2 = props2.api.grid).commitProxy) == null ? void 0 : _e2.call(_d2, "query", formOptions.value ? await formApi.getValues() ?? {} : {});
303247
303254
  }
303248
303255
  const formConfig = (_f2 = gridOptions.value) == null ? void 0 : _f2.formConfig;
303249
303256
  if (formConfig && formConfig.enabled) {
@@ -303350,7 +303357,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
303350
303357
  type: "text",
303351
303358
  icon: h$3(unref(ReloadOutlined)),
303352
303359
  class: "mr-2",
303353
- onClick: ($event) => slotProps.$grid.commitProxy("_init")
303360
+ onClick: ($event) => slotProps.$grid.commitProxy("query")
303354
303361
  }, {
303355
303362
  default: withCtx(() => [
303356
303363
  createTextVNode(toDisplayString(unref(locales).reload), 1)
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _, ad, a2, a3, a4, aa, a5, a8, a6, a7, a9, ab, e, b, h, ae, ag, ah, ai, aj, ak, af, al, am, an, ao, ap, aq, ar, as, B, $, N, Q, R, S, q, a0, y, W, a, i, f, j, k, l, t, v, T, w, x, z, A, C, F, G, I, H, J, O, P, U, V, X, L, ac, aZ, aR, au, a1, aW, av, aw, aA, aB, aF, az, aC, at, aG, ax, ay, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aS, Y, aY, aX, aV, aD, s, D, Z, o, K, aT, aU, aE, m, p, r, M, u, E, n } from "./index-ByPAXpqi.mjs";
1
+ import { _, ad, a2, a3, a4, aa, a5, a8, a6, a7, a9, ab, e, b, h, ae, ag, ah, ai, aj, ak, af, al, am, an, ao, ap, aq, ar, as, B, $, N, Q, R, S, q, a0, y, W, a, i, f, j, k, l, t, v, T, w, x, z, A, C, F, G, I, H, J, O, P, U, V, X, L, ac, aZ, aR, au, a1, aW, av, aw, aA, aB, aF, az, aC, at, aG, ax, ay, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aS, Y, aY, aX, aV, aD, s, D, Z, o, K, aT, aU, aE, m, p, r, M, u, E, n } from "./index--p3WIvK2.mjs";
2
2
  export {
3
3
  _ as ApiComponent,
4
4
  ad as Badge,