@keyblade/pro-components 1.13.8-alpha.12 → 1.13.8-alpha.14

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,7 +1,7 @@
1
- import { defineComponent as h, useSlots as x, useAttrs as S, computed as r, resolveComponent as k, createElementBlock as d, openBlock as u, normalizeClass as p, createCommentVNode as v, createVNode as w, unref as i, renderSlot as f, mergeProps as E, toHandlers as P, createSlots as z, renderList as K, withCtx as L, normalizeProps as R, guardReactiveProps as _ } from "vue";
2
- import { conclude as A } from "vue-global-config";
3
- import { globalProps as M } from "../global-props.js";
4
- const c = "keyblade-pro-table", F = /* @__PURE__ */ h({
1
+ import { defineComponent as h, useSlots as x, useAttrs as S, computed as n, resolveComponent as w, createElementBlock as r, openBlock as s, normalizeClass as d, createCommentVNode as k, createVNode as v, renderSlot as u, normalizeProps as p, guardReactiveProps as i, mergeProps as E, unref as c, createSlots as _, renderList as P, withCtx as z } from "vue";
2
+ import { conclude as K } from "vue-global-config";
3
+ import { globalProps as R } from "../global-props.js";
4
+ const f = "keyblade-pro-table", H = /* @__PURE__ */ h({
5
5
  __name: "index",
6
6
  props: {
7
7
  size: { default: "large" },
@@ -65,30 +65,27 @@ const c = "keyblade-pro-table", F = /* @__PURE__ */ h({
65
65
  onRowContextmenu: {},
66
66
  onCellContextmenu: {}
67
67
  },
68
- setup(y) {
69
- const m = y, a = x(), C = S(), g = r(() => {
70
- const e = {};
71
- for (const [o, t] of Object.entries(C))
72
- o.startsWith("on") && typeof t == "function" && (e[o] = t);
73
- return e;
74
- }), b = r(() => A([m, M.table]) || {});
75
- return (e, o) => {
76
- var l, n;
77
- const t = k("a-table");
78
- return u(), d("div", {
79
- class: p(c)
68
+ setup(m) {
69
+ const o = m, a = x(), y = S(), C = n(() => K([o, R.table || {}]) || {}), g = n(() => {
70
+ var e, t;
71
+ return !((e = o.pagination) != null && e.total) && !((t = o.data) != null && t.length) && a["pagination-left"];
72
+ });
73
+ return (e, t) => {
74
+ const b = w("a-table");
75
+ return s(), r("div", {
76
+ class: d(f)
80
77
  }, [
81
- !((l = e.pagination) != null && l.total) && !((n = e.data) != null && n.length) && i(a).paginationLeft ? (u(), d("div", {
78
+ g.value ? (s(), r("div", {
82
79
  key: 0,
83
- class: p(`${c}-header`)
80
+ class: d(`${f}-header`)
84
81
  }, [
85
- f(e.$slots, "pagination-left")
86
- ], 2)) : v("", !0),
87
- w(t, E(b.value, P(g.value)), z({ _: 2 }, [
88
- K(i(a), (N, s) => ({
89
- name: s,
90
- fn: L((B) => [
91
- f(e.$slots, s, R(_(B ?? {})))
82
+ u(e.$slots, "pagination-left")
83
+ ], 2)) : k("", !0),
84
+ v(b, p(i(E(C.value, c(y)))), _({ _: 2 }, [
85
+ P(c(a), (A, l) => ({
86
+ name: l,
87
+ fn: z((B) => [
88
+ u(e.$slots, l, p(i(B ?? {})))
92
89
  ])
93
90
  }))
94
91
  ]), 1040)
@@ -97,5 +94,5 @@ const c = "keyblade-pro-table", F = /* @__PURE__ */ h({
97
94
  }
98
95
  });
99
96
  export {
100
- F as default
97
+ H as default
101
98
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@keyblade/pro-components",
3
3
  "description": "KeyBlade Pro Components",
4
4
  "author": "yangshuai <704807396@qq.com>",
5
- "version": "1.13.8-alpha.12",
5
+ "version": "1.13.8-alpha.14",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",